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
@@ -9,28 +9,32 @@ var _createRef = require("../../utils/createRef");
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ 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; }
13
+ 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; }
14
+ 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; }
12
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
16
  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
17
  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); }; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); }
20
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
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); }
21
22
  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; } }
23
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
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); }
24
27
  var noop = function noop() {};
25
28
  var RECAPTCHA_V2_PROVIDER = 'recaptcha_v2';
26
29
  var RECAPTCHA_ENTERPRISE_PROVIDER = 'recaptcha_enterprise';
27
30
  var HCAPTCHA_PROVIDER = 'hcaptcha';
28
31
  var FRIENDLY_CAPTCHA_PROVIDER = 'friendly_captcha';
29
32
  var ARKOSE_PROVIDER = 'arkose';
33
+ var AUTH0_V2_CAPTCHA_PROVIDER = 'auth0_v2';
30
34
  var TIMEOUT_MS = 500;
31
35
  var MAX_RETRY = 3;
32
36
  var isThirdPartyCaptcha = exports.isThirdPartyCaptcha = function isThirdPartyCaptcha(provider) {
33
- return provider === RECAPTCHA_ENTERPRISE_PROVIDER || provider === RECAPTCHA_V2_PROVIDER || provider === HCAPTCHA_PROVIDER || provider === FRIENDLY_CAPTCHA_PROVIDER || provider === ARKOSE_PROVIDER;
37
+ return provider === RECAPTCHA_ENTERPRISE_PROVIDER || provider === RECAPTCHA_V2_PROVIDER || provider === HCAPTCHA_PROVIDER || provider === FRIENDLY_CAPTCHA_PROVIDER || provider === ARKOSE_PROVIDER || provider === AUTH0_V2_CAPTCHA_PROVIDER;
34
38
  };
35
39
  var getCaptchaProvider = function getCaptchaProvider(provider) {
36
40
  switch (provider) {
@@ -44,6 +48,8 @@ var getCaptchaProvider = function getCaptchaProvider(provider) {
44
48
  return window.friendlyChallenge;
45
49
  case ARKOSE_PROVIDER:
46
50
  return window.arkose;
51
+ case AUTH0_V2_CAPTCHA_PROVIDER:
52
+ return window.turnstile;
47
53
  }
48
54
  };
49
55
  var scriptForProvider = function scriptForProvider(provider, lang, callback, clientSubdomain, siteKey) {
@@ -58,6 +64,8 @@ var scriptForProvider = function scriptForProvider(provider, lang, callback, cli
58
64
  return 'https://cdn.jsdelivr.net/npm/friendly-challenge@0.9.12/widget.min.js';
59
65
  case ARKOSE_PROVIDER:
60
66
  return 'https://' + clientSubdomain + '.arkoselabs.com/v2/' + siteKey + '/api.js';
67
+ case AUTH0_V2_CAPTCHA_PROVIDER:
68
+ return "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=".concat(callback);
61
69
  }
62
70
  };
63
71
  var providerDomPrefix = function providerDomPrefix(provider) {
@@ -72,6 +80,8 @@ var providerDomPrefix = function providerDomPrefix(provider) {
72
80
  return 'friendly-captcha';
73
81
  case ARKOSE_PROVIDER:
74
82
  return 'arkose';
83
+ case AUTH0_V2_CAPTCHA_PROVIDER:
84
+ return 'auth0-v2';
75
85
  }
76
86
  };
77
87
  var loadScript = function loadScript(url, attributes) {
@@ -93,12 +103,10 @@ var removeScript = function removeScript(url) {
93
103
  });
94
104
  };
95
105
  var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_React$Component) {
96
- _inherits(ThirdPartyCaptcha, _React$Component);
97
- var _super = _createSuper(ThirdPartyCaptcha);
98
106
  function ThirdPartyCaptcha(props) {
99
107
  var _this;
100
108
  _classCallCheck(this, ThirdPartyCaptcha);
101
- _this = _super.call(this, props);
109
+ _this = _callSuper(this, ThirdPartyCaptcha, [props]);
102
110
  _this.state = {
103
111
  retryCount: 0,
104
112
  scriptUrl: ''
@@ -132,10 +140,53 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
132
140
  };
133
141
  return _this;
134
142
  }
135
- _createClass(ThirdPartyCaptcha, [{
143
+ _inherits(ThirdPartyCaptcha, _React$Component);
144
+ return _createClass(ThirdPartyCaptcha, [{
145
+ key: "getRenderParams",
146
+ value: function getRenderParams() {
147
+ var _this2 = this;
148
+ if (this.props.provider === FRIENDLY_CAPTCHA_PROVIDER) {
149
+ return {
150
+ sitekey: this.props.sitekey,
151
+ language: this.props.hl,
152
+ doneCallback: this.changeHandler,
153
+ errorCallback: this.erroredHandler
154
+ };
155
+ }
156
+ var renderParams = {
157
+ sitekey: this.props.sitekey,
158
+ callback: this.changeHandler,
159
+ 'expired-callback': this.expiredHandler,
160
+ 'error-callback': this.erroredHandler
161
+ };
162
+ if (this.props.provider === AUTH0_V2_CAPTCHA_PROVIDER) {
163
+ renderParams = _objectSpread(_objectSpread({}, renderParams), {}, {
164
+ language: this.props.hl,
165
+ theme: 'light',
166
+ retry: 'never',
167
+ 'response-field': false,
168
+ 'error-callback': function errorCallback() {
169
+ if (_this2.state.retryCount < MAX_RETRY) {
170
+ getCaptchaProvider(_this2.props.provider).reset(_this2.widgetId);
171
+ _this2.setState(function (prevState) {
172
+ return {
173
+ retryCount: prevState.retryCount + 1
174
+ };
175
+ });
176
+ } else {
177
+ // similar implementation to ARKOSE_PROVIDER failOpen
178
+ _this2.changeHandler('BYPASS_CAPTCHA');
179
+ }
180
+ return true;
181
+ }
182
+ });
183
+ }
184
+ return renderParams;
185
+ }
186
+ }, {
136
187
  key: "injectCaptchaScript",
137
188
  value: function injectCaptchaScript() {
138
- var _this2 = this;
189
+ var _this3 = this;
139
190
  var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : noop;
140
191
  var _this$props = this.props,
141
192
  provider = _this$props.provider,
@@ -151,13 +202,13 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
151
202
  async: true,
152
203
  defer: true
153
204
  };
154
- if (provider === ARKOSE_PROVIDER) {
205
+ if (provider === ARKOSE_PROVIDER || provider === AUTH0_V2_CAPTCHA_PROVIDER) {
155
206
  attributes['data-callback'] = callbackName;
156
207
  attributes['onerror'] = function () {
157
- if (_this2.state.retryCount < MAX_RETRY) {
208
+ if (_this3.state.retryCount < MAX_RETRY) {
158
209
  removeScript(scriptUrl);
159
210
  loadScript(scriptUrl, attributes);
160
- _this2.setState(function (prevState) {
211
+ _this3.setState(function (prevState) {
161
212
  return {
162
213
  retryCount: prevState.retryCount + 1
163
214
  };
@@ -165,7 +216,7 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
165
216
  return;
166
217
  }
167
218
  removeScript(scriptUrl);
168
- _this2.changeHandler('BYPASS_CAPTCHA');
219
+ _this3.changeHandler('BYPASS_CAPTCHA');
169
220
  };
170
221
  window[callbackName] = function (arkose) {
171
222
  callback(arkose);
@@ -192,49 +243,39 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
192
243
  }, {
193
244
  key: "componentDidMount",
194
245
  value: function componentDidMount() {
195
- var _this3 = this;
246
+ var _this4 = this;
196
247
  this.injectCaptchaScript(function (arkose) {
197
- var provider = getCaptchaProvider(_this3.props.provider);
198
- if (_this3.props.provider === ARKOSE_PROVIDER) {
248
+ var provider = getCaptchaProvider(_this4.props.provider);
249
+ if (_this4.props.provider === ARKOSE_PROVIDER) {
199
250
  arkose.setConfig({
200
251
  onReady: function onReady() {
201
252
  arkose.run();
202
253
  },
203
254
  onCompleted: function onCompleted(response) {
204
- _this3.changeHandler(response.token);
255
+ _this4.changeHandler(response.token);
205
256
  },
206
257
  onError: function onError() {
207
- if (_this3.state.retryCount < MAX_RETRY) {
258
+ if (_this4.state.retryCount < MAX_RETRY) {
208
259
  arkose.reset();
209
260
  // To ensure reset is successful, we need to set a timeout here
210
261
  setTimeout(function () {
211
262
  arkose.run();
212
263
  }, TIMEOUT_MS);
213
- _this3.setState(function (prevState) {
264
+ _this4.setState(function (prevState) {
214
265
  return {
215
266
  retryCount: prevState.retryCount + 1
216
267
  };
217
268
  });
218
269
  } else {
219
- _this3.changeHandler('BYPASS_CAPTCHA');
270
+ _this4.changeHandler('BYPASS_CAPTCHA');
220
271
  }
221
272
  }
222
273
  });
223
- } else if (_this3.props.provider === FRIENDLY_CAPTCHA_PROVIDER) {
224
- _this3.widgetInstance = new provider.WidgetInstance(_this3.ref.current, {
225
- sitekey: _this3.props.sitekey,
226
- language: _this3.props.hl,
227
- doneCallback: _this3.changeHandler,
228
- errorCallback: _this3.erroredHandler
229
- });
274
+ } else if (_this4.props.provider === FRIENDLY_CAPTCHA_PROVIDER) {
275
+ _this4.widgetInstance = new provider.WidgetInstance(_this4.ref.current, _this4.getRenderParams());
230
276
  } else {
231
277
  // if this is enterprise then we change this to window.grecaptcha.enterprise.render
232
- _this3.widgetId = provider.render(_this3.ref.current, {
233
- callback: _this3.changeHandler,
234
- 'expired-callback': _this3.expiredHandler,
235
- 'error-callback': _this3.erroredHandler,
236
- sitekey: _this3.props.sitekey
237
- });
278
+ _this4.widgetId = provider.render(_this4.ref.current, _this4.getRenderParams());
238
279
  }
239
280
  });
240
281
  }
@@ -253,7 +294,7 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
253
294
  }, {
254
295
  key: "render",
255
296
  value: function render() {
256
- var _this4 = this;
297
+ var _this5 = this;
257
298
  /*
258
299
  This is an override for the following conflicting css-rule:
259
300
  @media screen and (max-width: 480px)
@@ -262,7 +303,7 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
262
303
  }
263
304
  */
264
305
  var fixInterval = setInterval(function () {
265
- var iframes = Array.from(document.querySelectorAll("iframe[src*=\"".concat(providerDomPrefix(_this4.props.provider), "\"]")));
306
+ var iframes = Array.from(document.querySelectorAll("iframe[src*=\"".concat(providerDomPrefix(_this5.props.provider), "\"]")));
266
307
  var containers = iframes.map(function (iframe) {
267
308
  return iframe.parentNode.parentNode;
268
309
  }).filter(function (container) {
@@ -302,7 +343,6 @@ var ThirdPartyCaptcha = exports.ThirdPartyCaptcha = /*#__PURE__*/function (_Reac
302
343
  }
303
344
  }
304
345
  }]);
305
- return ThirdPartyCaptcha;
306
346
  }(_react.default.Component); // TO DO: Confirm this change will not introduce unintended behavior for customers
307
347
  ThirdPartyCaptcha.displayName = 'ThirdPartyCaptcha';
308
348
  ThirdPartyCaptcha.propTypes = {
@@ -13,7 +13,7 @@ var _select_input = _interopRequireDefault(require("../ui/input/select_input"));
13
13
  var _checkbox_input = _interopRequireDefault(require("../ui/input/checkbox_input"));
14
14
  var l = _interopRequireWildcard(require("../core/index"));
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
  var CustomInput = function CustomInput(_ref) {
@@ -14,28 +14,27 @@ var l = _interopRequireWildcard(require("../../core/index"));
14
14
  var _email = require("../email");
15
15
  var _avatar = require("../../avatar");
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
  var EmailPane = exports.default = /*#__PURE__*/function (_React$Component) {
32
- _inherits(EmailPane, _React$Component);
33
- var _super = _createSuper(EmailPane);
34
32
  function EmailPane() {
35
33
  _classCallCheck(this, EmailPane);
36
- return _super.apply(this, arguments);
34
+ return _callSuper(this, EmailPane, arguments);
37
35
  }
38
- _createClass(EmailPane, [{
36
+ _inherits(EmailPane, _React$Component);
37
+ return _createClass(EmailPane, [{
39
38
  key: "componentDidMount",
40
39
  value: function componentDidMount() {
41
40
  var _this$props = this.props,
@@ -91,7 +90,6 @@ var EmailPane = exports.default = /*#__PURE__*/function (_React$Component) {
91
90
  });
92
91
  }
93
92
  }]);
94
- return EmailPane;
95
93
  }(_react.default.Component);
96
94
  EmailPane.propTypes = {
97
95
  i18n: _propTypes.default.object.isRequired,
@@ -15,7 +15,7 @@ var _index = require("./index");
15
15
  var _enterprise = require("../connection/enterprise");
16
16
  var i18n = _interopRequireWildcard(require("../i18n"));
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
  function validateEmail(str) {
21
21
  var strictValidation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -30,7 +30,7 @@ var _trim = _interopRequireDefault(require("trim"));
30
30
  var _option_selection_pane = _interopRequireDefault(require("./option_selection_pane"));
31
31
  var l = _interopRequireWildcard(require("../core/index"));
32
32
  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); }
33
- 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; }
33
+ 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; }
34
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
35
  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); }
36
36
  var minMax = function minMax(value, min, max) {
@@ -13,28 +13,27 @@ var _index2 = require("../../store/index");
13
13
  var l = _interopRequireWildcard(require("../../core/index"));
14
14
  var _mfa_code = require("../mfa_code");
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
  var MFACodePane = exports.default = /*#__PURE__*/function (_React$Component) {
31
- _inherits(MFACodePane, _React$Component);
32
- var _super = _createSuper(MFACodePane);
33
31
  function MFACodePane() {
34
32
  _classCallCheck(this, MFACodePane);
35
- return _super.apply(this, arguments);
33
+ return _callSuper(this, MFACodePane, arguments);
36
34
  }
37
- _createClass(MFACodePane, [{
35
+ _inherits(MFACodePane, _React$Component);
36
+ return _createClass(MFACodePane, [{
38
37
  key: "handleChange",
39
38
  value: function handleChange(e) {
40
39
  var lock = this.props.lock;
@@ -57,7 +56,6 @@ var MFACodePane = exports.default = /*#__PURE__*/function (_React$Component) {
57
56
  });
58
57
  }
59
58
  }]);
60
- return MFACodePane;
61
59
  }(_react.default.Component);
62
60
  MFACodePane.propTypes = {
63
61
  i18n: _propTypes.default.object.isRequired,
@@ -12,45 +12,44 @@ var _index2 = require("../../store/index");
12
12
  var l = _interopRequireWildcard(require("../../core/index"));
13
13
  var _password = require("../password");
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 _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); }
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 _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); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
- 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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
22
  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); }
25
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
- 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; } }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
+ 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); }
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 _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; }
29
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
- 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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
30
+ 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); }
31
31
  var PasswordPane = exports.default = /*#__PURE__*/function (_React$Component) {
32
- _inherits(PasswordPane, _React$Component);
33
- var _super = _createSuper(PasswordPane);
34
32
  function PasswordPane() {
35
33
  var _this;
36
34
  _classCallCheck(this, PasswordPane);
37
35
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38
36
  args[_key] = arguments[_key];
39
37
  }
40
- _this = _super.call.apply(_super, [this].concat(args));
41
- _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
38
+ _this = _callSuper(this, PasswordPane, [].concat(args));
39
+ _defineProperty(_this, "handleChange", function (e) {
42
40
  var _this$props = _this.props,
43
41
  lock = _this$props.lock,
44
42
  policy = _this$props.policy;
45
43
  (0, _index2.swap)(_index2.updateEntity, 'lock', l.id(lock), _password.setPassword, e.target.value, policy);
46
44
  });
47
- _defineProperty(_assertThisInitialized(_this), "handleShowPasswordChange", function (e) {
45
+ _defineProperty(_this, "handleShowPasswordChange", function (e) {
48
46
  var lock = _this.props.lock;
49
47
  (0, _index2.swap)(_index2.updateEntity, 'lock', l.id(lock), _password.setShowPassword, e.target.checked);
50
48
  });
51
49
  return _this;
52
50
  }
53
- _createClass(PasswordPane, [{
51
+ _inherits(PasswordPane, _React$Component);
52
+ return _createClass(PasswordPane, [{
54
53
  key: "render",
55
54
  value: function render() {
56
55
  var _this$props2 = this.props,
@@ -92,7 +91,6 @@ var PasswordPane = exports.default = /*#__PURE__*/function (_React$Component) {
92
91
  })));
93
92
  }
94
93
  }]);
95
- return PasswordPane;
96
94
  }(_react.default.Component);
97
95
  PasswordPane.propTypes = {
98
96
  i18n: _propTypes.default.object.isRequired,
@@ -15,20 +15,20 @@ var l = _interopRequireWildcard(require("../../core/index"));
15
15
  var _index3 = require("../../store/index");
16
16
  var _phone_number = require("../phone_number");
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
21
  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); } }
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
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); }
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); }
27
- 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); }; }
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); }
25
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
28
26
  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); }
29
27
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
30
- 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; } }
31
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } // import LocationInput from '../../ui/input/location_input';
28
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
+ 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); }
31
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } // import LocationInput from '../../ui/input/location_input';
32
32
  var IconSvg = exports.IconSvg = /*#__PURE__*/_react.default.createElement("svg", {
33
33
  focusable: "false",
34
34
  width: "14px",
@@ -57,13 +57,12 @@ var IconSvg = exports.IconSvg = /*#__PURE__*/_react.default.createElement("svg",
57
57
  d: "M22.4023125,22.8 C22.543625,21.9425 22.625,20.9975 22.625,20 L26.125,20 C26.125,21.316875 25.69275,22.52 24.9853125,23.5175 C24.3255625,23.2025 23.4383125,22.953125 22.4023125,22.8 L22.4023125,22.8 Z M21.372875,25.954375 C21.72725,25.3725 22.0234375,24.5675 22.2404375,23.6225 C22.8975625,23.696875 23.483375,23.80625 23.9624375,23.9375 L24.67075,23.9375 C23.829875,24.92625 22.6849375,25.6525 21.372875,25.954375 L21.372875,25.954375 Z M20,26.125 C19.412875,26.125 18.896625,25.105625 18.579,23.5525 C19.034,23.521875 19.503875,23.5 20,23.5 C20.4956875,23.5 20.966,23.521875 21.421,23.5525 C21.1029375,25.105625 20.5866875,26.125 20,26.125 L20,26.125 Z M15.3288125,23.9375 L16.0375625,23.9375 C16.5161875,23.80625 17.1024375,23.696875 17.759125,23.6225 C17.976125,24.5675 18.2723125,25.3725 18.6266875,25.954375 C17.3150625,25.6525 16.170125,24.92625 15.3288125,23.9375 L15.3288125,23.9375 Z M15.0146875,23.5175 C14.3068125,22.52 13.875,21.316875 13.875,20 L17.375,20 C17.375,20.9975 17.4559375,21.9425 17.59725,22.8 C16.56125,22.953125 15.6744375,23.2025 15.0146875,23.5175 L15.0146875,23.5175 Z M15.030875,16.45625 C15.6796875,16.78 16.5634375,17.03375 17.60075,17.195625 C17.501,17.799375 17.428375,18.4425 17.3964375,19.125 L13.951125,19.125 C14.0933125,18.13625 14.477,17.230625 15.030875,16.45625 L15.030875,16.45625 Z M18.6266875,14.04125 C18.27275,14.623125 17.977,15.42375 17.760875,16.373125 C17.1265,16.294375 16.558625,16.189375 16.0944375,16.0625 L15.34325,16.0625 C16.180625,15.069375 17.3168125,14.343125 18.6266875,14.04125 L18.6266875,14.04125 Z M20,13.875 C20.585375,13.875 21.0959375,14.894375 21.4118125,16.443125 C20.959875,16.478125 20.492625,16.5 20,16.5 C19.5069375,16.5 19.0396875,16.478125 18.58775,16.443125 C18.903625,14.894375 19.4141875,13.875 20,13.875 L20,13.875 Z M18.2749375,19.125 C18.3020625,18.473125 18.362,17.865 18.441625,17.29625 C18.9408125,17.344375 19.4596875,17.375 20,17.375 C20.5403125,17.375 21.0591875,17.344375 21.5579375,17.29625 C21.638,17.865 21.6979375,18.473125 21.724625,19.125 L18.2749375,19.125 L18.2749375,19.125 Z M21.75,20 C21.75,20.97125 21.6786875,21.88125 21.5631875,22.699375 C21.06225,22.65125 20.5420625,22.625 20,22.625 C19.4579375,22.625 18.9373125,22.65125 18.436375,22.699375 C18.320875,21.88125 18.25,20.97125 18.25,20 L21.75,20 L21.75,20 Z M24.6563125,16.0625 L23.905125,16.0625 C23.441375,16.189375 22.8730625,16.294375 22.2386875,16.373125 C22.0225625,15.42375 21.7268125,14.623125 21.372875,14.04125 C22.68275,14.343125 23.8189375,15.069375 24.6563125,16.0625 L24.6563125,16.0625 Z M24.9686875,16.45625 C25.5225625,17.230625 25.90625,18.13625 26.048875,19.125 L22.603125,19.125 C22.5711875,18.4425 22.499,17.799375 22.39925,17.195625 C23.4365625,17.03375 24.3203125,16.78 24.9686875,16.45625 L24.9686875,16.45625 Z M20,13 C16.1338125,13 13,16.1325 13,20 C13,23.863125 16.1338125,27 20,27 C23.86575,27 27,23.863125 27,20 C27,16.1325 23.86575,13 20,13 L20,13 Z"
58
58
  }))))));
59
59
  var PhoneNumberPane = exports.default = /*#__PURE__*/function (_React$Component) {
60
- _inherits(PhoneNumberPane, _React$Component);
61
- var _super = _createSuper(PhoneNumberPane);
62
60
  function PhoneNumberPane() {
63
61
  _classCallCheck(this, PhoneNumberPane);
64
- return _super.apply(this, arguments);
62
+ return _callSuper(this, PhoneNumberPane, arguments);
65
63
  }
66
- _createClass(PhoneNumberPane, [{
64
+ _inherits(PhoneNumberPane, _React$Component);
65
+ return _createClass(PhoneNumberPane, [{
67
66
  key: "handlePhoneNumberChange",
68
67
  value: function handlePhoneNumberChange(e) {
69
68
  (0, _index3.swap)(_index3.updateEntity, 'lock', l.id(this.props.lock), _phone_number.setPhoneNumber, e.target.value);
@@ -97,7 +96,6 @@ var PhoneNumberPane = exports.default = /*#__PURE__*/function (_React$Component)
97
96
  }));
98
97
  }
99
98
  }]);
100
- return PhoneNumberPane;
101
99
  }(_react.default.Component);
102
100
  PhoneNumberPane.propTypes = {
103
101
  instructions: _propTypes.default.element,
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.emitFederatedLoginEvent = emitFederatedLoginEvent;
8
8
  var l = _interopRequireWildcard(require("../../core/index"));
9
9
  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); }
10
- 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; }
10
+ 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; }
11
11
  function emitFederatedLoginEvent(lock, provider, isSignUp) {
12
12
  var prov;
13
13
  try {