assui 3.2.17 → 3.2.18

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 (102) hide show
  1. package/es/a-select/index.js +3 -9
  2. package/es/button-drawer/index.js +3 -9
  3. package/es/button-modal/index.js +3 -9
  4. package/es/client-only/useClientOnly.js +1 -3
  5. package/es/color-select/index.js +2 -6
  6. package/es/complex-val-select/index.js +5 -9
  7. package/es/condition-input/index.js +3 -9
  8. package/es/condition-input/parse2RegexOption.js +1 -3
  9. package/es/condition-select-input/index.js +2 -6
  10. package/es/copy-to-clipboard/index.js +2 -6
  11. package/es/count-down/index.js +1 -3
  12. package/es/flex/index.js +2 -6
  13. package/es/flex/utils/index.js +1 -3
  14. package/es/highlight-textarea/extractSpansOfClasses.js +1 -3
  15. package/es/highlight-textarea/getRanges.js +1 -3
  16. package/es/highlight-textarea/index.js +3 -9
  17. package/es/img-crop/EasyCrop.js +3 -9
  18. package/es/img-crop/getCroppedImg.js +49 -51
  19. package/es/img-crop/index.js +53 -61
  20. package/es/json-editor/index.js +2 -6
  21. package/es/keep-tab/index.js +3 -9
  22. package/es/label-auto-complete/index.js +2 -6
  23. package/es/label-condition-input/index.js +2 -6
  24. package/es/label-condition-select-input/index.js +2 -6
  25. package/es/label-customize-range-picker/defaultRadioList.js +1 -3
  26. package/es/label-customize-range-picker/index.js +3 -9
  27. package/es/label-customize-range-picker/utils/index.js +1 -3
  28. package/es/label-date-picker/index.js +2 -6
  29. package/es/label-input/index.js +1 -3
  30. package/es/label-number-input/index.js +2 -6
  31. package/es/label-range-number/index.js +2 -6
  32. package/es/label-range-picker/index.js +3 -9
  33. package/es/label-select/index.js +2 -6
  34. package/es/label-text-area/index.js +3 -9
  35. package/es/label-tree-select/index.js +2 -6
  36. package/es/multipart-upload/index.js +6 -12
  37. package/es/multipart-upload/parse2RegexOption.js +1 -3
  38. package/es/number-format-input/index.js +2 -6
  39. package/es/number-input/index.js +3 -9
  40. package/es/rc-echart/index.js +1 -3
  41. package/es/rc-qrcode/index.js +1 -3
  42. package/es/rc-qrcode/useQrcode.js +1 -3
  43. package/es/rich-text-editor/index.js +3 -6
  44. package/es/single-img-upload/index.js +52 -60
  45. package/es/split-pane/index.js +1 -3
  46. package/es/step-number-input/index.js +3 -9
  47. package/es/text-area/index.js +3 -9
  48. package/es/text-input/index.js +3 -9
  49. package/lib/a-select/index.js +3 -9
  50. package/lib/beautiful-dnd/index.js +1 -3
  51. package/lib/button-drawer/index.js +4 -12
  52. package/lib/button-modal/index.js +4 -12
  53. package/lib/client-only/useClientOnly.js +1 -3
  54. package/lib/color-select/index.js +3 -9
  55. package/lib/complex-val-select/index.js +6 -12
  56. package/lib/condition-input/index.js +4 -12
  57. package/lib/condition-input/parse2RegexOption.js +1 -3
  58. package/lib/condition-select-input/index.js +3 -9
  59. package/lib/copy-to-clipboard/index.js +3 -9
  60. package/lib/count-down/index.js +1 -3
  61. package/lib/count-up/index.js +1 -3
  62. package/lib/flex/index.js +2 -6
  63. package/lib/flex/utils/index.js +1 -3
  64. package/lib/highlight-textarea/extractSpansOfClasses.js +1 -3
  65. package/lib/highlight-textarea/getRanges.js +1 -3
  66. package/lib/highlight-textarea/index.js +4 -12
  67. package/lib/img-crop/EasyCrop.js +4 -12
  68. package/lib/img-crop/getCroppedImg.js +49 -51
  69. package/lib/img-crop/index.js +54 -64
  70. package/lib/json-editor/index.js +3 -9
  71. package/lib/keep-tab/index.js +4 -12
  72. package/lib/label-auto-complete/index.js +2 -6
  73. package/lib/label-condition-input/index.js +2 -6
  74. package/lib/label-condition-select-input/index.js +3 -9
  75. package/lib/label-customize-range-picker/defaultRadioList.js +2 -6
  76. package/lib/label-customize-range-picker/index.js +4 -12
  77. package/lib/label-customize-range-picker/utils/index.js +1 -3
  78. package/lib/label-date-picker/index.js +2 -6
  79. package/lib/label-input/index.js +1 -3
  80. package/lib/label-number-input/index.js +2 -6
  81. package/lib/label-range-number/index.js +2 -6
  82. package/lib/label-range-picker/index.js +3 -9
  83. package/lib/label-select/index.js +2 -6
  84. package/lib/label-text-area/index.js +3 -9
  85. package/lib/label-tree-select/index.js +2 -6
  86. package/lib/multipart-upload/index.js +7 -15
  87. package/lib/multipart-upload/parse2RegexOption.js +1 -3
  88. package/lib/number-format-input/index.js +2 -6
  89. package/lib/number-input/index.js +4 -12
  90. package/lib/rc-echart/core.js +1 -3
  91. package/lib/rc-echart/index.js +2 -6
  92. package/lib/rc-qrcode/index.js +2 -6
  93. package/lib/rc-qrcode/useQrcode.js +1 -3
  94. package/lib/rc-transition-group/index.js +1 -3
  95. package/lib/rich-text-editor/index.js +3 -6
  96. package/lib/single-img-upload/index.js +53 -63
  97. package/lib/sortable-hoc/index.js +1 -3
  98. package/lib/split-pane/index.js +1 -3
  99. package/lib/step-number-input/index.js +4 -12
  100. package/lib/text-area/index.js +4 -12
  101. package/lib/text-input/index.js +3 -9
  102. package/package.json +2 -2
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -44,11 +40,11 @@ import Select from "antd/es/select";
44
40
  import useControllableValue from "ahooks/es/useControllableValue";
45
41
  var Option = Select.Option;
46
42
  export { Option };
47
- var formatOptions = function formatOptions(dateSource) {
43
+ var _formatOptions = function formatOptions(dateSource) {
48
44
  if (dateSource) {
49
45
  var options = dateSource.map(function (item) {
50
46
  var otherProps = item.options ? {
51
- options: formatOptions(item.options)
47
+ options: _formatOptions(item.options)
52
48
  } : {};
53
49
  return __assign(__assign(__assign({}, item), {
54
50
  label: item.label,
@@ -86,7 +82,7 @@ var ComplexValSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
86
82
  });
87
83
  // 判断是否需要将optionValue转为JSON字符串
88
84
  var isReferenceTypeVal = isReferenceTypeOption(options);
89
- var finalOptions = isReferenceTypeVal ? formatOptions(options) : options;
85
+ var finalOptions = isReferenceTypeVal ? _formatOptions(options) : options;
90
86
  var handleChange = function handleChange(val) {
91
87
  var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
92
88
  setValue(nextVal, options);
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
package/es/flex/index.js CHANGED
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -49,60 +49,58 @@ var __generator = this && this.__generator || function (thisArg, body) {
49
49
  }
50
50
  function step(op) {
51
51
  if (f) throw new TypeError("Generator is already executing.");
52
- while (g && (g = 0, op[0] && (_ = 0)), _) {
53
- try {
54
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
55
- if (y = 0, t) op = [op[0] & 2, t.value];
56
- switch (op[0]) {
57
- case 0:
58
- case 1:
52
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
53
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
54
+ if (y = 0, t) op = [op[0] & 2, t.value];
55
+ switch (op[0]) {
56
+ case 0:
57
+ case 1:
58
+ t = op;
59
+ break;
60
+ case 4:
61
+ _.label++;
62
+ return {
63
+ value: op[1],
64
+ done: false
65
+ };
66
+ case 5:
67
+ _.label++;
68
+ y = op[1];
69
+ op = [0];
70
+ continue;
71
+ case 7:
72
+ op = _.ops.pop();
73
+ _.trys.pop();
74
+ continue;
75
+ default:
76
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
77
+ _ = 0;
78
+ continue;
79
+ }
80
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
81
+ _.label = op[1];
82
+ break;
83
+ }
84
+ if (op[0] === 6 && _.label < t[1]) {
85
+ _.label = t[1];
59
86
  t = op;
60
87
  break;
61
- case 4:
62
- _.label++;
63
- return {
64
- value: op[1],
65
- done: false
66
- };
67
- case 5:
68
- _.label++;
69
- y = op[1];
70
- op = [0];
71
- continue;
72
- case 7:
73
- op = _.ops.pop();
74
- _.trys.pop();
75
- continue;
76
- default:
77
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
78
- _ = 0;
79
- continue;
80
- }
81
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
82
- _.label = op[1];
83
- break;
84
- }
85
- if (op[0] === 6 && _.label < t[1]) {
86
- _.label = t[1];
87
- t = op;
88
- break;
89
- }
90
- if (t && _.label < t[2]) {
91
- _.label = t[2];
92
- _.ops.push(op);
93
- break;
94
- }
95
- if (t[2]) _.ops.pop();
96
- _.trys.pop();
97
- continue;
98
- }
99
- op = body.call(thisArg, _);
100
- } catch (e) {
101
- op = [6, e];
102
- y = 0;
103
- } finally {
104
- f = t = 0;
88
+ }
89
+ if (t && _.label < t[2]) {
90
+ _.label = t[2];
91
+ _.ops.push(op);
92
+ break;
93
+ }
94
+ if (t[2]) _.ops.pop();
95
+ _.trys.pop();
96
+ continue;
105
97
  }
98
+ op = body.call(thisArg, _);
99
+ } catch (e) {
100
+ op = [6, e];
101
+ y = 0;
102
+ } finally {
103
+ f = t = 0;
106
104
  }
107
105
  if (op[0] & 5) throw op[1];
108
106
  return {
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -61,60 +59,58 @@ var __generator = this && this.__generator || function (thisArg, body) {
61
59
  }
62
60
  function step(op) {
63
61
  if (f) throw new TypeError("Generator is already executing.");
64
- while (g && (g = 0, op[0] && (_ = 0)), _) {
65
- try {
66
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
67
- if (y = 0, t) op = [op[0] & 2, t.value];
68
- switch (op[0]) {
69
- case 0:
70
- case 1:
62
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
63
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
64
+ if (y = 0, t) op = [op[0] & 2, t.value];
65
+ switch (op[0]) {
66
+ case 0:
67
+ case 1:
68
+ t = op;
69
+ break;
70
+ case 4:
71
+ _.label++;
72
+ return {
73
+ value: op[1],
74
+ done: false
75
+ };
76
+ case 5:
77
+ _.label++;
78
+ y = op[1];
79
+ op = [0];
80
+ continue;
81
+ case 7:
82
+ op = _.ops.pop();
83
+ _.trys.pop();
84
+ continue;
85
+ default:
86
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
87
+ _ = 0;
88
+ continue;
89
+ }
90
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
91
+ _.label = op[1];
92
+ break;
93
+ }
94
+ if (op[0] === 6 && _.label < t[1]) {
95
+ _.label = t[1];
71
96
  t = op;
72
97
  break;
73
- case 4:
74
- _.label++;
75
- return {
76
- value: op[1],
77
- done: false
78
- };
79
- case 5:
80
- _.label++;
81
- y = op[1];
82
- op = [0];
83
- continue;
84
- case 7:
85
- op = _.ops.pop();
86
- _.trys.pop();
87
- continue;
88
- default:
89
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
90
- _ = 0;
91
- continue;
92
- }
93
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
94
- _.label = op[1];
95
- break;
96
- }
97
- if (op[0] === 6 && _.label < t[1]) {
98
- _.label = t[1];
99
- t = op;
100
- break;
101
- }
102
- if (t && _.label < t[2]) {
103
- _.label = t[2];
104
- _.ops.push(op);
105
- break;
106
- }
107
- if (t[2]) _.ops.pop();
108
- _.trys.pop();
109
- continue;
110
- }
111
- op = body.call(thisArg, _);
112
- } catch (e) {
113
- op = [6, e];
114
- y = 0;
115
- } finally {
116
- f = t = 0;
98
+ }
99
+ if (t && _.label < t[2]) {
100
+ _.label = t[2];
101
+ _.ops.push(op);
102
+ break;
103
+ }
104
+ if (t[2]) _.ops.pop();
105
+ _.trys.pop();
106
+ continue;
117
107
  }
108
+ op = body.call(thisArg, _);
109
+ } catch (e) {
110
+ op = [6, e];
111
+ y = 0;
112
+ } finally {
113
+ f = t = 0;
118
114
  }
119
115
  if (op[0] & 5) throw op[1];
120
116
  return {
@@ -125,9 +121,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
125
121
  };
126
122
  var __rest = this && this.__rest || function (s, e) {
127
123
  var t = {};
128
- for (var p in s) {
129
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
130
- }
124
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
131
125
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
132
126
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
133
127
  }
@@ -141,9 +135,7 @@ var __read = this && this.__read || function (o, n) {
141
135
  ar = [],
142
136
  e;
143
137
  try {
144
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
145
- ar.push(r.value);
146
- }
138
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
147
139
  } catch (error) {
148
140
  e = {
149
141
  error: error
@@ -176,7 +168,7 @@ var ImgCrop = function ImgCrop(props) {
176
168
  _c = props.grid,
177
169
  grid = _c === void 0 ? false : _c,
178
170
  _d = props.quality,
179
- quality = _d === void 0 ? 0.4 : _d,
171
+ quality = _d === void 0 ? 1 : _d,
180
172
  _e = props.zoom,
181
173
  zoom = _e === void 0 ? true : _e,
182
174
  _f = props.rotate,