mario-core 2.9.56-beta → 2.9.58-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2323,6 +2323,85 @@ var PasswordInput = function PasswordInput(_ref) {
2323
2323
  }));
2324
2324
  };
2325
2325
 
2326
+ function _extends() {
2327
+ _extends = Object.assign || function (target) {
2328
+ for (var i = 1; i < arguments.length; i++) {
2329
+ var source = arguments[i];
2330
+
2331
+ for (var key in source) {
2332
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2333
+ target[key] = source[key];
2334
+ }
2335
+ }
2336
+ }
2337
+
2338
+ return target;
2339
+ };
2340
+
2341
+ return _extends.apply(this, arguments);
2342
+ }
2343
+
2344
+ function _objectDestructuringEmpty(obj) {
2345
+ if (obj == null) throw new TypeError("Cannot destructure undefined");
2346
+ }
2347
+
2348
+ function _objectWithoutPropertiesLoose(source, excluded) {
2349
+ if (source == null) return {};
2350
+ var target = {};
2351
+ var sourceKeys = Object.keys(source);
2352
+ var key, i;
2353
+
2354
+ for (i = 0; i < sourceKeys.length; i++) {
2355
+ key = sourceKeys[i];
2356
+ if (excluded.indexOf(key) >= 0) continue;
2357
+ target[key] = source[key];
2358
+ }
2359
+
2360
+ return target;
2361
+ }
2362
+
2363
+ function _unsupportedIterableToArray(o, minLen) {
2364
+ if (!o) return;
2365
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2366
+ var n = Object.prototype.toString.call(o).slice(8, -1);
2367
+ if (n === "Object" && o.constructor) n = o.constructor.name;
2368
+ if (n === "Map" || n === "Set") return Array.from(o);
2369
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2370
+ }
2371
+
2372
+ function _arrayLikeToArray(arr, len) {
2373
+ if (len == null || len > arr.length) len = arr.length;
2374
+
2375
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2376
+
2377
+ return arr2;
2378
+ }
2379
+
2380
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
2381
+ var it;
2382
+
2383
+ if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
2384
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
2385
+ if (it) o = it;
2386
+ var i = 0;
2387
+ return function () {
2388
+ if (i >= o.length) return {
2389
+ done: true
2390
+ };
2391
+ return {
2392
+ done: false,
2393
+ value: o[i++]
2394
+ };
2395
+ };
2396
+ }
2397
+
2398
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2399
+ }
2400
+
2401
+ it = o[Symbol.iterator]();
2402
+ return it.next.bind(it);
2403
+ }
2404
+
2326
2405
  var TINY_MCE_API_KEY = "adpshj9swgsscf83gw4gs2f74nx0vicpd5ydka20iqjd7l8r";
2327
2406
  var GOOGLE_RECAPTCHA_KEY = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0";
2328
2407
  var INIT_AMPLITUDE_KEY = "c617d0950cfdcae12953907273a1920f";
@@ -2650,7 +2729,12 @@ var useLogin = function useLogin() {
2650
2729
  dispatch(setLoading(true));
2651
2730
 
2652
2731
  var _temp4 = _catch(function () {
2653
- return Promise.resolve(logIn(data)).then(function (res) {
2732
+ var _data$email, _data$password;
2733
+
2734
+ return Promise.resolve(logIn(_extends({}, data, {
2735
+ email: data === null || data === void 0 ? void 0 : (_data$email = data.email) === null || _data$email === void 0 ? void 0 : _data$email.trim(),
2736
+ password: data === null || data === void 0 ? void 0 : (_data$password = data.password) === null || _data$password === void 0 ? void 0 : _data$password.trim()
2737
+ }))).then(function (res) {
2654
2738
  var _res$data = res.data,
2655
2739
  token = _res$data.token,
2656
2740
  id = _res$data.id,
@@ -2864,85 +2948,6 @@ var useLogin = function useLogin() {
2864
2948
  };
2865
2949
  };
2866
2950
 
2867
- function _extends() {
2868
- _extends = Object.assign || function (target) {
2869
- for (var i = 1; i < arguments.length; i++) {
2870
- var source = arguments[i];
2871
-
2872
- for (var key in source) {
2873
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2874
- target[key] = source[key];
2875
- }
2876
- }
2877
- }
2878
-
2879
- return target;
2880
- };
2881
-
2882
- return _extends.apply(this, arguments);
2883
- }
2884
-
2885
- function _objectDestructuringEmpty(obj) {
2886
- if (obj == null) throw new TypeError("Cannot destructure undefined");
2887
- }
2888
-
2889
- function _objectWithoutPropertiesLoose(source, excluded) {
2890
- if (source == null) return {};
2891
- var target = {};
2892
- var sourceKeys = Object.keys(source);
2893
- var key, i;
2894
-
2895
- for (i = 0; i < sourceKeys.length; i++) {
2896
- key = sourceKeys[i];
2897
- if (excluded.indexOf(key) >= 0) continue;
2898
- target[key] = source[key];
2899
- }
2900
-
2901
- return target;
2902
- }
2903
-
2904
- function _unsupportedIterableToArray(o, minLen) {
2905
- if (!o) return;
2906
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2907
- var n = Object.prototype.toString.call(o).slice(8, -1);
2908
- if (n === "Object" && o.constructor) n = o.constructor.name;
2909
- if (n === "Map" || n === "Set") return Array.from(o);
2910
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2911
- }
2912
-
2913
- function _arrayLikeToArray(arr, len) {
2914
- if (len == null || len > arr.length) len = arr.length;
2915
-
2916
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2917
-
2918
- return arr2;
2919
- }
2920
-
2921
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
2922
- var it;
2923
-
2924
- if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
2925
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
2926
- if (it) o = it;
2927
- var i = 0;
2928
- return function () {
2929
- if (i >= o.length) return {
2930
- done: true
2931
- };
2932
- return {
2933
- done: false,
2934
- value: o[i++]
2935
- };
2936
- };
2937
- }
2938
-
2939
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2940
- }
2941
-
2942
- it = o[Symbol.iterator]();
2943
- return it.next.bind(it);
2944
- }
2945
-
2946
2951
  var CustomSelector = function CustomSelector(_ref) {
2947
2952
  var defaultValue = _ref.defaultValue,
2948
2953
  options = _ref.options,
@@ -4123,7 +4128,7 @@ var TheLanguageDropdown = function TheLanguageDropdown() {
4123
4128
  display: 'flex',
4124
4129
  alignItems: 'center'
4125
4130
  }
4126
- }, displayCurrentLang[language || "us"], React__default.createElement(bs.BsChevronDown, {
4131
+ }, displayCurrentLang[language || "uk"], React__default.createElement(bs.BsChevronDown, {
4127
4132
  className: "ml-2",
4128
4133
  style: {
4129
4134
  fontSize: '10px'