auth0-lock 12.3.1 → 12.5.0

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.
Files changed (177) hide show
  1. package/.github/actions/get-prerelease/action.yml +30 -0
  2. package/.github/actions/get-release-notes/action.yml +42 -0
  3. package/.github/actions/get-version/action.yml +21 -0
  4. package/.github/actions/npm-publish/action.yml +53 -0
  5. package/.github/actions/release-create/action.yml +47 -0
  6. package/.github/actions/tag-exists/action.yml +36 -0
  7. package/.github/workflows/codeql.yml +3 -3
  8. package/.github/workflows/npm-release.yml +83 -0
  9. package/.github/workflows/release.yml +25 -0
  10. package/.github/workflows/test.yml +8 -8
  11. package/.shiprc +3 -2
  12. package/.version +1 -0
  13. package/CHANGELOG.md +14 -0
  14. package/DEVELOPMENT.md +8 -8
  15. package/Makefile +4 -4
  16. package/README.md +1 -1
  17. package/lib/CSSCore.js +0 -1
  18. package/lib/__tests__/connection/database/actions.js +1 -2
  19. package/lib/__tests__/connection/database/index.js +1 -1
  20. package/lib/__tests__/connection/database/login_pane.js +1 -1
  21. package/lib/__tests__/connection/database/password_reset_confirmation.js +1 -1
  22. package/lib/__tests__/connection/database/signed_up_confirmation.js +1 -1
  23. package/lib/__tests__/connection/enterprise/actions.js +1 -1
  24. package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
  25. package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
  26. package/lib/__tests__/connection/enterprise/quick_auth_screen.js +1 -1
  27. package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
  28. package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +1 -1
  29. package/lib/__tests__/core/actions.js +3 -3
  30. package/lib/__tests__/core/remote_data.js +1 -1
  31. package/lib/__tests__/core/signed_in_confirmation.js +1 -1
  32. package/lib/__tests__/core/sso/last_login_screen.js +2 -2
  33. package/lib/__tests__/core/tenant.js +2 -2
  34. package/lib/__tests__/core/web_api.js +2 -2
  35. package/lib/__tests__/engine/classic.js +2 -2
  36. package/lib/__tests__/field/captcha/auth0_v2.js +28 -0
  37. package/lib/__tests__/field/captcha/third_party_captcha.js +261 -0
  38. package/lib/__tests__/field/captcha.js +22 -0
  39. package/lib/__tests__/field/field.js +2 -2
  40. package/lib/__tests__/i18n.js +1 -1
  41. package/lib/__tests__/testUtils.js +3 -3
  42. package/lib/__tests__/ui/box/chrome.js +2 -2
  43. package/lib/__tests__/ui/box/confirmation_pane.js +1 -1
  44. package/lib/avatar.js +1 -1
  45. package/lib/connection/captcha.js +54 -20
  46. package/lib/connection/database/actions.js +19 -8
  47. package/lib/connection/database/index.js +1 -1
  48. package/lib/connection/database/login_pane.js +12 -14
  49. package/lib/connection/database/login_sign_up_tabs.js +14 -18
  50. package/lib/connection/database/mfa_pane.js +9 -11
  51. package/lib/connection/database/password_reset_confirmation.js +10 -12
  52. package/lib/connection/database/reset_password.js +13 -17
  53. package/lib/connection/database/reset_password_pane.js +21 -13
  54. package/lib/connection/database/signed_up_confirmation.js +10 -12
  55. package/lib/connection/enterprise/actions.js +5 -5
  56. package/lib/connection/enterprise/hrd_pane.js +11 -13
  57. package/lib/connection/enterprise/hrd_screen.js +10 -12
  58. package/lib/connection/enterprise/kerberos_screen.js +10 -12
  59. package/lib/connection/enterprise/quick_auth_screen.js +10 -12
  60. package/lib/connection/enterprise.js +1 -1
  61. package/lib/connection/passwordless/actions.js +8 -8
  62. package/lib/connection/passwordless/ask_vcode.js +9 -11
  63. package/lib/connection/passwordless/email_sent_confirmation.js +17 -23
  64. package/lib/connection/passwordless/index.js +1 -1
  65. package/lib/connection/social/index.js +1 -1
  66. package/lib/core/actions.js +3 -3
  67. package/lib/core/client/index.js +3 -4
  68. package/lib/core/client/settings.js +1 -1
  69. package/lib/core/error_screen.js +10 -12
  70. package/lib/core/index.js +13 -4
  71. package/lib/core/loading_screen.js +13 -17
  72. package/lib/core/remote_data.js +9 -1
  73. package/lib/core/screen.js +4 -5
  74. package/lib/core/signed_in_confirmation.js +10 -12
  75. package/lib/core/sso/last_login_screen.js +10 -12
  76. package/lib/core/tenant/index.js +3 -4
  77. package/lib/core/tenant/settings.js +1 -1
  78. package/lib/core/web_api/helper.js +4 -4
  79. package/lib/core/web_api/p2_api.js +9 -4
  80. package/lib/core/web_api.js +8 -4
  81. package/lib/core.js +13 -15
  82. package/lib/engine/classic/login.js +10 -12
  83. package/lib/engine/classic/mfa_login_screen.js +10 -12
  84. package/lib/engine/classic/sign_up_pane.js +11 -13
  85. package/lib/engine/classic/sign_up_screen.js +10 -12
  86. package/lib/engine/classic.js +4 -5
  87. package/lib/engine/passwordless/social_or_email_login_screen.js +12 -14
  88. package/lib/engine/passwordless/social_or_phone_number_login_screen.js +12 -14
  89. package/lib/engine/passwordless.js +4 -5
  90. package/lib/field/captcha/captcha_pane.js +17 -16
  91. package/lib/field/captcha/third_party_captcha.js +79 -39
  92. package/lib/field/custom_input.js +1 -1
  93. package/lib/field/email/email_pane.js +10 -12
  94. package/lib/field/email.js +1 -1
  95. package/lib/field/index.js +1 -1
  96. package/lib/field/mfa-code/mfa_code_pane.js +10 -12
  97. package/lib/field/password/password_pane.js +12 -14
  98. package/lib/field/phone-number/phone_number_pane.js +11 -13
  99. package/lib/field/social/event.js +1 -1
  100. package/lib/field/social/social_buttons_pane.js +10 -12
  101. package/lib/field/username/username_pane.js +10 -12
  102. package/lib/field/vcode/vcode_pane.js +12 -14
  103. package/lib/i18n/af.js +3 -1
  104. package/lib/i18n/ar.js +3 -1
  105. package/lib/i18n/az.js +3 -1
  106. package/lib/i18n/bg.js +3 -1
  107. package/lib/i18n/ca.js +3 -1
  108. package/lib/i18n/cs.js +3 -1
  109. package/lib/i18n/da.js +3 -1
  110. package/lib/i18n/de.js +3 -1
  111. package/lib/i18n/el.js +3 -1
  112. package/lib/i18n/en.js +3 -1
  113. package/lib/i18n/es.js +3 -1
  114. package/lib/i18n/et.js +3 -1
  115. package/lib/i18n/fa.js +3 -1
  116. package/lib/i18n/fi.js +3 -1
  117. package/lib/i18n/fr.js +3 -1
  118. package/lib/i18n/he.js +3 -1
  119. package/lib/i18n/hr.js +3 -1
  120. package/lib/i18n/hu.js +3 -1
  121. package/lib/i18n/id.js +3 -1
  122. package/lib/i18n/it.js +3 -1
  123. package/lib/i18n/ja.js +3 -1
  124. package/lib/i18n/ko.js +3 -1
  125. package/lib/i18n/lt.js +3 -1
  126. package/lib/i18n/lv.js +3 -1
  127. package/lib/i18n/ms.js +3 -1
  128. package/lib/i18n/nb.js +3 -1
  129. package/lib/i18n/nl.js +3 -1
  130. package/lib/i18n/nn.js +3 -1
  131. package/lib/i18n/no.js +3 -1
  132. package/lib/i18n/pl.js +3 -1
  133. package/lib/i18n/pt-br.js +3 -1
  134. package/lib/i18n/pt.js +3 -1
  135. package/lib/i18n/ro.js +3 -1
  136. package/lib/i18n/ru.js +3 -1
  137. package/lib/i18n/sk.js +3 -1
  138. package/lib/i18n/sl.js +3 -1
  139. package/lib/i18n/sr.js +3 -1
  140. package/lib/i18n/sv.js +3 -1
  141. package/lib/i18n/tr.js +3 -1
  142. package/lib/i18n/ua.js +3 -1
  143. package/lib/i18n/uk.js +3 -1
  144. package/lib/i18n/vi.js +3 -1
  145. package/lib/i18n/zh-tw.js +3 -1
  146. package/lib/i18n/zh.js +3 -1
  147. package/lib/i18n.js +2 -2
  148. package/lib/lock.js +10 -11
  149. package/lib/passwordless.js +10 -11
  150. package/lib/quick-auth/actions.js +3 -3
  151. package/lib/sync.js +1 -1
  152. package/lib/ui/box/chrome.js +13 -17
  153. package/lib/ui/box/confirmation_pane.js +1 -1
  154. package/lib/ui/box/container.js +11 -14
  155. package/lib/ui/box/global_message.js +9 -11
  156. package/lib/ui/box/header.js +19 -27
  157. package/lib/ui/box/multisize_slide.js +13 -17
  158. package/lib/ui/box.js +4 -6
  159. package/lib/ui/input/captcha_input.js +14 -16
  160. package/lib/ui/input/checkbox_input.js +9 -11
  161. package/lib/ui/input/email_input.js +10 -12
  162. package/lib/ui/input/input_wrap.js +9 -11
  163. package/lib/ui/input/location_input.js +9 -11
  164. package/lib/ui/input/mfa_code_input.js +10 -12
  165. package/lib/ui/input/password/password_strength.js +15 -21
  166. package/lib/ui/input/password_input.js +11 -13
  167. package/lib/ui/input/phone_number_input.js +10 -12
  168. package/lib/ui/input/select_input.js +9 -11
  169. package/lib/ui/input/text_input.js +10 -12
  170. package/lib/ui/input/username_input.js +10 -12
  171. package/lib/ui/input/vcode_input.js +10 -12
  172. package/lib/ui/list.js +16 -22
  173. package/lib/utils/atom.js +3 -4
  174. package/lib/utils/cache.js +3 -4
  175. package/lib/utils/jsonp_utils.js +3 -4
  176. package/package.json +4 -3
  177. package/.github/workflows/publish.yml +0 -121
@@ -43,7 +43,7 @@ var _tenant = require("../../core/tenant");
43
43
  var _enterprise = require("../../connection/enterprise");
44
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45
45
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
46
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
46
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
47
47
  var _dataFns = (0, _data_utils.dataFns)(['database']),
48
48
  get = _dataFns.get,
49
49
  initNS = _dataFns.initNS,
@@ -18,39 +18,38 @@ var _classic = require("../../engine/classic");
18
18
  var _enterprise = require("../enterprise");
19
19
  var _database = require("../database");
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
  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); }
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
25
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
30
28
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
31
29
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
32
- 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 _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
33
31
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
34
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
36
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
35
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
37
37
  var LoginPane = exports.default = /*#__PURE__*/function (_React$Component) {
38
- _inherits(LoginPane, _React$Component);
39
- var _super = _createSuper(LoginPane);
40
38
  function LoginPane() {
41
39
  var _this;
42
40
  _classCallCheck(this, LoginPane);
43
41
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
44
42
  args[_key] = arguments[_key];
45
43
  }
46
- _this = _super.call.apply(_super, [this].concat(args));
47
- _defineProperty(_assertThisInitialized(_this), "handleDontRememberPasswordClick", function (e) {
44
+ _this = _callSuper(this, LoginPane, [].concat(args));
45
+ _defineProperty(_this, "handleDontRememberPasswordClick", function (e) {
48
46
  e.preventDefault();
49
47
  (0, _actions.showResetPasswordActivity)(l.id(_this.props.lock));
50
48
  });
51
49
  return _this;
52
50
  }
53
- _createClass(LoginPane, [{
51
+ _inherits(LoginPane, _React$Component);
52
+ return _createClass(LoginPane, [{
54
53
  key: "render",
55
54
  value: function render() {
56
55
  var _this$props = this.props,
@@ -90,7 +89,7 @@ var LoginPane = exports.default = /*#__PURE__*/function (_React$Component) {
90
89
  i18n: i18n,
91
90
  lock: lock,
92
91
  onReload: function onReload() {
93
- return (0, _captcha.swapCaptcha)(l.id(lock), false, false);
92
+ return (0, _captcha.swapCaptcha)(l.id(lock), _captcha.Flow.DEFAULT, false);
94
93
  }
95
94
  }) : null;
96
95
  var dontRememberPassword = showForgotPasswordLink && (0, _index.hasScreen)(lock, 'forgotPassword') ? /*#__PURE__*/_react.default.createElement("p", {
@@ -108,7 +107,6 @@ var LoginPane = exports.default = /*#__PURE__*/function (_React$Component) {
108
107
  }), captchaPane, dontRememberPassword);
109
108
  }
110
109
  }]);
111
- return LoginPane;
112
110
  }(_react.default.Component);
113
111
  LoginPane.propTypes = {
114
112
  emailInputPlaceholder: _propTypes.default.string.isRequired,
@@ -12,29 +12,28 @@ var l = _interopRequireWildcard(require("../../core/index"));
12
12
  var _index2 = require("./index");
13
13
  var _actions2 = require("../../core/actions");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
19
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
26
24
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
- 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 _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
27
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
  var LoginSignUpTabs = exports.default = /*#__PURE__*/function (_React$Component) {
31
- _inherits(LoginSignUpTabs, _React$Component);
32
- var _super = _createSuper(LoginSignUpTabs);
33
31
  function LoginSignUpTabs() {
34
32
  _classCallCheck(this, LoginSignUpTabs);
35
- return _super.apply(this, arguments);
33
+ return _callSuper(this, LoginSignUpTabs, arguments);
36
34
  }
37
- _createClass(LoginSignUpTabs, [{
35
+ _inherits(LoginSignUpTabs, _React$Component);
36
+ return _createClass(LoginSignUpTabs, [{
38
37
  key: "render",
39
38
  value: function render() {
40
39
  var _this$props = this.props,
@@ -79,7 +78,6 @@ var LoginSignUpTabs = exports.default = /*#__PURE__*/function (_React$Component)
79
78
  (0, _actions2.closeLock)(l.id(this.props.lock), true);
80
79
  }
81
80
  }]);
82
- return LoginSignUpTabs;
83
81
  }(_react.default.Component);
84
82
  LoginSignUpTabs.propTypes = {
85
83
  lock: _propTypes.default.object.isRequired,
@@ -88,16 +86,14 @@ LoginSignUpTabs.propTypes = {
88
86
  signUpLink: _propTypes.default.string
89
87
  };
90
88
  var LoginSignUpTab = /*#__PURE__*/function (_React$Component2) {
91
- _inherits(LoginSignUpTab, _React$Component2);
92
- var _super2 = _createSuper(LoginSignUpTab);
93
89
  function LoginSignUpTab() {
94
90
  var _this;
95
91
  _classCallCheck(this, LoginSignUpTab);
96
92
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
97
93
  args[_key] = arguments[_key];
98
94
  }
99
- _this = _super2.call.apply(_super2, [this].concat(args));
100
- _defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
95
+ _this = _callSuper(this, LoginSignUpTab, [].concat(args));
96
+ _defineProperty(_this, "handleClick", function (e) {
101
97
  if (_this.props.href) {
102
98
  _this.props.clickWithHrefHandler();
103
99
  } else {
@@ -107,7 +103,8 @@ var LoginSignUpTab = /*#__PURE__*/function (_React$Component2) {
107
103
  });
108
104
  return _this;
109
105
  }
110
- _createClass(LoginSignUpTab, [{
106
+ _inherits(LoginSignUpTab, _React$Component2);
107
+ return _createClass(LoginSignUpTab, [{
111
108
  key: "render",
112
109
  value: function render() {
113
110
  var _this$props2 = this.props,
@@ -123,5 +120,4 @@ var LoginSignUpTab = /*#__PURE__*/function (_React$Component2) {
123
120
  }, label));
124
121
  }
125
122
  }]);
126
- return LoginSignUpTab;
127
123
  }(_react.default.Component);
@@ -12,23 +12,22 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
12
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
13
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
14
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
18
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
21
19
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
- 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; } }
20
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
21
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
24
  var MFAPane = exports.default = /*#__PURE__*/function (_React$Component) {
25
- _inherits(MFAPane, _React$Component);
26
- var _super = _createSuper(MFAPane);
27
25
  function MFAPane() {
28
26
  _classCallCheck(this, MFAPane);
29
- return _super.apply(this, arguments);
27
+ return _callSuper(this, MFAPane, arguments);
30
28
  }
31
- _createClass(MFAPane, [{
29
+ _inherits(MFAPane, _React$Component);
30
+ return _createClass(MFAPane, [{
32
31
  key: "render",
33
32
  value: function render() {
34
33
  var _this$props = this.props,
@@ -48,7 +47,6 @@ var MFAPane = exports.default = /*#__PURE__*/function (_React$Component) {
48
47
  return /*#__PURE__*/_react.default.createElement("div", null, titleElement, header, pane);
49
48
  }
50
49
  }]);
51
- return MFAPane;
52
50
  }(_react.default.Component);
53
51
  MFAPane.propTypes = {
54
52
  mfaInputPlaceholder: _propTypes.default.string.isRequired,
@@ -13,29 +13,28 @@ var _actions = require("../../core/actions");
13
13
  var l = _interopRequireWildcard(require("../../core/index"));
14
14
  var i18n = _interopRequireWildcard(require("../../i18n"));
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
19
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
26
24
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
- 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 _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
27
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
  // TODO: can't we get this from props?
31
31
  var PasswordResetConfirmation = exports.default = /*#__PURE__*/function (_React$Component) {
32
- _inherits(PasswordResetConfirmation, _React$Component);
33
- var _super = _createSuper(PasswordResetConfirmation);
34
32
  function PasswordResetConfirmation() {
35
33
  _classCallCheck(this, PasswordResetConfirmation);
36
- return _super.apply(this, arguments);
34
+ return _callSuper(this, PasswordResetConfirmation, arguments);
37
35
  }
38
- _createClass(PasswordResetConfirmation, [{
36
+ _inherits(PasswordResetConfirmation, _React$Component);
37
+ return _createClass(PasswordResetConfirmation, [{
39
38
  key: "handleClose",
40
39
  value: function handleClose() {
41
40
  var _this$props = this.props,
@@ -54,7 +53,6 @@ var PasswordResetConfirmation = exports.default = /*#__PURE__*/function (_React$
54
53
  }, /*#__PURE__*/_react.default.createElement("p", null, i18n.html(this.props.lock, ['success', 'forgotPassword'])));
55
54
  }
56
55
  }]);
57
- return PasswordResetConfirmation;
58
56
  }(_react.default.Component);
59
57
  PasswordResetConfirmation.propTypes = {
60
58
  closeHandler: _propTypes.default.func.isRequired,
@@ -19,28 +19,27 @@ var _index4 = require("../../store/index");
19
19
  var _email = require("../../field/email");
20
20
  var _field = require("../../field");
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
25
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
28
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
29
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
29
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
32
30
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
31
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34
- 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; } }
32
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
33
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
36
36
  var Component = /*#__PURE__*/function (_React$Component) {
37
- _inherits(Component, _React$Component);
38
- var _super = _createSuper(Component);
39
37
  function Component() {
40
38
  _classCallCheck(this, Component);
41
- return _super.apply(this, arguments);
39
+ return _callSuper(this, Component, arguments);
42
40
  }
43
- _createClass(Component, [{
41
+ _inherits(Component, _React$Component);
42
+ return _createClass(Component, [{
44
43
  key: "componentDidMount",
45
44
  value: function componentDidMount() {
46
45
  var model = this.props.model;
@@ -71,16 +70,14 @@ var Component = /*#__PURE__*/function (_React$Component) {
71
70
  });
72
71
  }
73
72
  }]);
74
- return Component;
75
73
  }(_react.default.Component);
76
74
  var ResetPassword = exports.default = /*#__PURE__*/function (_Screen) {
77
- _inherits(ResetPassword, _Screen);
78
- var _super2 = _createSuper(ResetPassword);
79
75
  function ResetPassword() {
80
76
  _classCallCheck(this, ResetPassword);
81
- return _super2.call(this, 'forgotPassword');
77
+ return _callSuper(this, ResetPassword, ['forgotPassword']);
82
78
  }
83
- _createClass(ResetPassword, [{
79
+ _inherits(ResetPassword, _Screen);
80
+ return _createClass(ResetPassword, [{
84
81
  key: "backHandler",
85
82
  value: function backHandler(m) {
86
83
  return (0, _index.hasScreen)(m, 'login') ? _actions.cancelResetPassword : undefined;
@@ -126,5 +123,4 @@ var ResetPassword = exports.default = /*#__PURE__*/function (_Screen) {
126
123
  return Component;
127
124
  }
128
125
  }]);
129
- return ResetPassword;
130
126
  }(_screen.default);
@@ -8,31 +8,32 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _email_pane = _interopRequireDefault(require("../../field/email/email_pane"));
10
10
  var l = _interopRequireWildcard(require("../../core/index"));
11
+ var _captcha_pane = _interopRequireDefault(require("../../field/captcha/captcha_pane"));
12
+ var _captcha = require("../../connection/captcha");
11
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
  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); }
15
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
18
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
19
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
20
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
21
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23
- 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; } }
23
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
27
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
28
30
  var ResetPasswordPane = exports.default = /*#__PURE__*/function (_React$Component) {
29
- _inherits(ResetPasswordPane, _React$Component);
30
- var _super = _createSuper(ResetPasswordPane);
31
31
  function ResetPasswordPane() {
32
32
  _classCallCheck(this, ResetPasswordPane);
33
- return _super.apply(this, arguments);
33
+ return _callSuper(this, ResetPasswordPane, arguments);
34
34
  }
35
- _createClass(ResetPasswordPane, [{
35
+ _inherits(ResetPasswordPane, _React$Component);
36
+ return _createClass(ResetPasswordPane, [{
36
37
  key: "render",
37
38
  value: function render() {
38
39
  var _this$props = this.props,
@@ -40,15 +41,22 @@ var ResetPasswordPane = exports.default = /*#__PURE__*/function (_React$Componen
40
41
  header = _this$props.header,
41
42
  i18n = _this$props.i18n,
42
43
  lock = _this$props.lock;
44
+ var captchaPane = l.passwordResetCaptcha(lock) && l.passwordResetCaptcha(lock).get('required') ? /*#__PURE__*/_react.default.createElement(_captcha_pane.default, {
45
+ i18n: i18n,
46
+ lock: lock,
47
+ flow: _captcha.Flow.PASSWORD_RESET,
48
+ onReload: function onReload() {
49
+ return (0, _captcha.swapCaptcha)(l.id(lock), _captcha.Flow.PASSWORD_RESET, false, null);
50
+ }
51
+ }) : null;
43
52
  return /*#__PURE__*/_react.default.createElement("div", null, header, /*#__PURE__*/_react.default.createElement(_email_pane.default, {
44
53
  i18n: i18n,
45
54
  lock: lock,
46
55
  placeholder: emailInputPlaceholder,
47
56
  strictValidation: false
48
- }));
57
+ }), captchaPane);
49
58
  }
50
59
  }]);
51
- return ResetPasswordPane;
52
60
  }(_react.default.Component);
53
61
  _defineProperty(ResetPasswordPane, "propTypes", {
54
62
  emailInputPlaceholder: _propTypes.default.string.isRequired,
@@ -14,29 +14,28 @@ var l = _interopRequireWildcard(require("../../core/index"));
14
14
  var _index2 = require("./index");
15
15
  var i18n = _interopRequireWildcard(require("../../i18n"));
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21
21
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
27
25
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
28
26
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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; } }
27
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
30
28
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
  // TODO: can't we get this from props?
32
32
  var SignedUpConfirmation = exports.default = /*#__PURE__*/function (_React$Component) {
33
- _inherits(SignedUpConfirmation, _React$Component);
34
- var _super = _createSuper(SignedUpConfirmation);
35
33
  function SignedUpConfirmation() {
36
34
  _classCallCheck(this, SignedUpConfirmation);
37
- return _super.apply(this, arguments);
35
+ return _callSuper(this, SignedUpConfirmation, arguments);
38
36
  }
39
- _createClass(SignedUpConfirmation, [{
37
+ _inherits(SignedUpConfirmation, _React$Component);
38
+ return _createClass(SignedUpConfirmation, [{
40
39
  key: "handleClose",
41
40
  value: function handleClose() {
42
41
  var _this$props = this.props,
@@ -55,7 +54,6 @@ var SignedUpConfirmation = exports.default = /*#__PURE__*/function (_React$Compo
55
54
  }, /*#__PURE__*/_react.default.createElement("p", null, i18n.html(lock, ['success', 'signUp'])));
56
55
  }
57
56
  }]);
58
- return SignedUpConfirmation;
59
57
  }(_react.default.Component);
60
58
  SignedUpConfirmation.propTypes = {
61
59
  closeHandler: _propTypes.default.func.isRequired,
@@ -15,13 +15,13 @@ var l = _interopRequireWildcard(require("../../core/index"));
15
15
  var _captcha = require("../captcha");
16
16
  var _index4 = require("../database/index");
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
19
  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); }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
22
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
24
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // TODO: enterprise connections should not depend on database
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // TODO: enterprise connections should not depend on database
25
25
  // connections. However, we now allow a username input to contain also
26
26
  // an email and this information is in the database module. We should
27
27
  // make this information flow from the UI (like we do for the startHRD
@@ -55,7 +55,7 @@ function logIn(id) {
55
55
  if (ssoConnection && !(0, _enterprise.isHRDActive)(m)) {
56
56
  return logInSSO(id, ssoConnection, params);
57
57
  }
58
- var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params, false, fields);
58
+ var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params, _captcha.Flow.DEFAULT, fields);
59
59
  if (!isCaptchaValid && !ssoConnection) {
60
60
  return (0, _captcha.showMissingCaptcha)(m, id);
61
61
  }
@@ -74,7 +74,7 @@ function logInActiveFlow(id, params) {
74
74
  login_hint: username
75
75
  }), function (id, error, fields, next) {
76
76
  var wasCaptchaInvalid = error && error.code === 'invalid captcha';
77
- (0, _captcha.swapCaptcha)(id, false, wasCaptchaInvalid, next);
77
+ (0, _captcha.swapCaptcha)(id, _captcha.Flow.DEFAULT, wasCaptchaInvalid, next);
78
78
  });
79
79
  }
80
80
  function logInSSO(id, connection, params) {