@m4l/components 0.1.13 → 0.1.15

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 (139) hide show
  1. package/assets/Logo/index.js +91 -0
  2. package/commonjs.js +9 -0
  3. package/components/CommonActions/components/ActionCancel/index.js +15 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
  6. package/components/CommonActions/components/ActionIntro/index.js +16 -0
  7. package/components/CommonActions/components/Actions/index.js +859 -0
  8. package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
  9. package/components/DataGrid/index.js +1067 -0
  10. package/components/DynamicFilter/index.js +1573 -0
  11. package/components/ErrorLabel/index.js +18 -0
  12. package/components/Icon/index.js +80 -0
  13. package/components/Image/index.js +128 -0
  14. package/components/LanguagePopover/index.js +93 -0
  15. package/components/Loadable/index.js +13 -0
  16. package/components/ModalDialog/index.js +180 -0
  17. package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
  18. package/components/ObjectLogs/index.js +284 -0
  19. package/components/Page/index.js +36 -0
  20. package/components/PaperForm/index.js +110 -0
  21. package/components/Period/index.js +230 -0
  22. package/components/PropertyValue/index.js +142 -0
  23. package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
  24. package/components/ScrollBar/index.js +52 -0
  25. package/components/ScrollToTop/index.js +10 -0
  26. package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
  27. package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
  28. package/components/animate/MotionContainer/index.js +31 -0
  29. package/components/animate/MotionLazyContainer/index.js +13 -0
  30. package/components/animate/features.js +2 -0
  31. package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
  32. package/components/animate/variants/container.js +20 -0
  33. package/components/animate/variants/fade.js +61 -0
  34. package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
  35. package/components/animate/variants/transition.js +16 -0
  36. package/components/formatters/BooleanFormatter/index.js +52 -0
  37. package/components/formatters/DateFormatter/index.js +66 -0
  38. package/components/formatters/index.js +112 -0
  39. package/components/hook-form/FormProvider/index.js +61 -0
  40. package/components/hook-form/RHFAutocomplete/index.js +144 -0
  41. package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
  42. package/components/hook-form/RHFCheckbox/index.js +65 -0
  43. package/components/hook-form/RHFDateTime/index.js +79 -0
  44. package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
  45. package/components/hook-form/RHFPeriod/index.js +47 -0
  46. package/components/hook-form/RHFRadioGroup/index.js +41 -0
  47. package/components/hook-form/RHFSelect/index.js +34 -0
  48. package/components/hook-form/RHFTextField/index.js +87 -0
  49. package/components/hook-form/RHFUpload/index.js +255 -0
  50. package/components/mui_extended/Accordion/index.js +105 -0
  51. package/components/mui_extended/Avatar/index.js +33 -0
  52. package/components/mui_extended/BoxIcon/index.js +20 -0
  53. package/components/mui_extended/Breadcrumbs/index.js +92 -0
  54. package/components/mui_extended/Button/index.js +131 -0
  55. package/components/mui_extended/IconButton/index.js +108 -0
  56. package/components/mui_extended/LinkWithRoute/index.js +30 -0
  57. package/components/mui_extended/MenuPopover/index.js +135 -0
  58. package/components/mui_extended/Pager/index.js +137 -0
  59. package/components/mui_extended/Tab/index.js +30 -0
  60. package/components/mui_extended/Typography/index.js +21 -0
  61. package/contexts/ModalContext/index.js +165 -0
  62. package/hooks/useFormAddEdit/index.js +42 -0
  63. package/hooks/useModal/index.js +4 -0
  64. package/index.js +70 -162
  65. package/lodash.js +62 -0
  66. package/node_modules.js +54 -0
  67. package/package.json +2 -1
  68. package/react-data-grid.js +2652 -0
  69. package/react-draggable.js +960 -0
  70. package/react-json-view.js +2764 -0
  71. package/react-lazy-load-image-component.js +792 -0
  72. package/react-resizable.js +541 -0
  73. package/react-splitter-layout.js +165 -0
  74. package/utils/index.js +572 -0
  75. package/assets/Logo/index.228dcb5a.js +0 -86
  76. package/commonjs.565e6834.js +0 -12
  77. package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
  78. package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
  79. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
  80. package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
  81. package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
  82. package/components/DataGrid/index.b688877d.js +0 -894
  83. package/components/DynamicFilter/index.82ce857e.js +0 -1158
  84. package/components/ErrorLabel/index.c8615f16.js +0 -19
  85. package/components/Icon/index.cbca79b0.js +0 -70
  86. package/components/Image/index.e790b50b.js +0 -122
  87. package/components/LanguagePopover/index.3d9611cb.js +0 -87
  88. package/components/Loadable/index.f5518558.js +0 -15
  89. package/components/ModalDialog/index.3850c053.js +0 -168
  90. package/components/ObjectLogs/index.27ef875d.js +0 -266
  91. package/components/Page/index.6d69977e.js +0 -35
  92. package/components/PaperForm/index.d7c74064.js +0 -105
  93. package/components/Period/index.5e68286a.js +0 -160
  94. package/components/PropertyValue/index.ab3dd7e9.js +0 -116
  95. package/components/ScrollBar/index.39eeb2de.js +0 -49
  96. package/components/ScrollToTop/index.e06f98f6.js +0 -11
  97. package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
  98. package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
  99. package/components/animate/features.0fbf41e1.js +0 -5
  100. package/components/animate/variants/container.11f82b76.js +0 -20
  101. package/components/animate/variants/fade.b561c0fc.js +0 -59
  102. package/components/animate/variants/transition.bd46b9ce.js +0 -15
  103. package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
  104. package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
  105. package/components/formatters/index.55856d65.js +0 -106
  106. package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
  107. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  108. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  109. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  110. package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
  111. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
  112. package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
  113. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
  114. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
  115. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  116. package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
  117. package/components/mui_extended/Accordion/index.2116e423.js +0 -103
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
  120. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
  121. package/components/mui_extended/Button/index.84d8898c.js +0 -110
  122. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  123. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  124. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  125. package/components/mui_extended/Pager/index.0576814f.js +0 -126
  126. package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
  127. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  128. package/contexts/ModalContext/index.2188b69e.js +0 -150
  129. package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
  130. package/hooks/useModal/index.6571d2d9.js +0 -6
  131. package/lodash.e09401f0.js +0 -32
  132. package/node_modules.168cb897.js +0 -55
  133. package/react-data-grid.d46d625e.js +0 -2115
  134. package/react-draggable.20e95c61.js +0 -714
  135. package/react-json-view.f56a7f8e.js +0 -2762
  136. package/react-lazy-load-image-component.45b56650.js +0 -784
  137. package/react-resizable.5277deaf.js +0 -371
  138. package/react-splitter-layout.7810ac1b.js +0 -165
  139. package/utils/index.214d9542.js +0 -435
@@ -0,0 +1,792 @@
1
+ import React from "react";
2
+ import require$$2 from "react-dom";
3
+ var build = { exports: {} };
4
+ (() => {
5
+ var e = { 296: (e2, t2, r2) => {
6
+ var n2 = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, c = /^0o[0-7]+$/i, s = parseInt, u = "object" == typeof r2.g && r2.g && r2.g.Object === Object && r2.g, l = "object" == typeof self && self && self.Object === Object && self, a = u || l || Function("return this")(), f = Object.prototype.toString, p = Math.max, y = Math.min, d = function() {
7
+ return a.Date.now();
8
+ };
9
+ function b(e3) {
10
+ var t3 = typeof e3;
11
+ return !!e3 && ("object" == t3 || "function" == t3);
12
+ }
13
+ function h(e3) {
14
+ if ("number" == typeof e3)
15
+ return e3;
16
+ if (function(e4) {
17
+ return "symbol" == typeof e4 || function(e5) {
18
+ return !!e5 && "object" == typeof e5;
19
+ }(e4) && "[object Symbol]" == f.call(e4);
20
+ }(e3))
21
+ return NaN;
22
+ if (b(e3)) {
23
+ var t3 = "function" == typeof e3.valueOf ? e3.valueOf() : e3;
24
+ e3 = b(t3) ? t3 + "" : t3;
25
+ }
26
+ if ("string" != typeof e3)
27
+ return 0 === e3 ? e3 : +e3;
28
+ e3 = e3.replace(n2, "");
29
+ var r3 = i.test(e3);
30
+ return r3 || c.test(e3) ? s(e3.slice(2), r3 ? 2 : 8) : o.test(e3) ? NaN : +e3;
31
+ }
32
+ e2.exports = function(e3, t3, r3) {
33
+ var n3, o2, i2, c2, s2, u2, l2 = 0, a2 = false, f2 = false, v = true;
34
+ if ("function" != typeof e3)
35
+ throw new TypeError("Expected a function");
36
+ function m(t4) {
37
+ var r4 = n3, i3 = o2;
38
+ return n3 = o2 = void 0, l2 = t4, c2 = e3.apply(i3, r4);
39
+ }
40
+ function O(e4) {
41
+ return l2 = e4, s2 = setTimeout(g, t3), a2 ? m(e4) : c2;
42
+ }
43
+ function w(e4) {
44
+ var r4 = e4 - u2;
45
+ return void 0 === u2 || r4 >= t3 || r4 < 0 || f2 && e4 - l2 >= i2;
46
+ }
47
+ function g() {
48
+ var e4 = d();
49
+ if (w(e4))
50
+ return P(e4);
51
+ s2 = setTimeout(g, function(e5) {
52
+ var r4 = t3 - (e5 - u2);
53
+ return f2 ? y(r4, i2 - (e5 - l2)) : r4;
54
+ }(e4));
55
+ }
56
+ function P(e4) {
57
+ return s2 = void 0, v && n3 ? m(e4) : (n3 = o2 = void 0, c2);
58
+ }
59
+ function j() {
60
+ var e4 = d(), r4 = w(e4);
61
+ if (n3 = arguments, o2 = this, u2 = e4, r4) {
62
+ if (void 0 === s2)
63
+ return O(u2);
64
+ if (f2)
65
+ return s2 = setTimeout(g, t3), m(u2);
66
+ }
67
+ return void 0 === s2 && (s2 = setTimeout(g, t3)), c2;
68
+ }
69
+ return t3 = h(t3) || 0, b(r3) && (a2 = !!r3.leading, i2 = (f2 = "maxWait" in r3) ? p(h(r3.maxWait) || 0, t3) : i2, v = "trailing" in r3 ? !!r3.trailing : v), j.cancel = function() {
70
+ void 0 !== s2 && clearTimeout(s2), l2 = 0, n3 = u2 = o2 = s2 = void 0;
71
+ }, j.flush = function() {
72
+ return void 0 === s2 ? c2 : P(d());
73
+ }, j;
74
+ };
75
+ }, 96: (e2, t2, r2) => {
76
+ var n2 = "Expected a function", o = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, c = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt, l = "object" == typeof r2.g && r2.g && r2.g.Object === Object && r2.g, a = "object" == typeof self && self && self.Object === Object && self, f = l || a || Function("return this")(), p = Object.prototype.toString, y = Math.max, d = Math.min, b = function() {
77
+ return f.Date.now();
78
+ };
79
+ function h(e3) {
80
+ var t3 = typeof e3;
81
+ return !!e3 && ("object" == t3 || "function" == t3);
82
+ }
83
+ function v(e3) {
84
+ if ("number" == typeof e3)
85
+ return e3;
86
+ if (function(e4) {
87
+ return "symbol" == typeof e4 || function(e5) {
88
+ return !!e5 && "object" == typeof e5;
89
+ }(e4) && "[object Symbol]" == p.call(e4);
90
+ }(e3))
91
+ return NaN;
92
+ if (h(e3)) {
93
+ var t3 = "function" == typeof e3.valueOf ? e3.valueOf() : e3;
94
+ e3 = h(t3) ? t3 + "" : t3;
95
+ }
96
+ if ("string" != typeof e3)
97
+ return 0 === e3 ? e3 : +e3;
98
+ e3 = e3.replace(o, "");
99
+ var r3 = c.test(e3);
100
+ return r3 || s.test(e3) ? u(e3.slice(2), r3 ? 2 : 8) : i.test(e3) ? NaN : +e3;
101
+ }
102
+ e2.exports = function(e3, t3, r3) {
103
+ var o2 = true, i2 = true;
104
+ if ("function" != typeof e3)
105
+ throw new TypeError(n2);
106
+ return h(r3) && (o2 = "leading" in r3 ? !!r3.leading : o2, i2 = "trailing" in r3 ? !!r3.trailing : i2), function(e4, t4, r4) {
107
+ var o3, i3, c2, s2, u2, l2, a2 = 0, f2 = false, p2 = false, m = true;
108
+ if ("function" != typeof e4)
109
+ throw new TypeError(n2);
110
+ function O(t5) {
111
+ var r5 = o3, n3 = i3;
112
+ return o3 = i3 = void 0, a2 = t5, s2 = e4.apply(n3, r5);
113
+ }
114
+ function w(e5) {
115
+ return a2 = e5, u2 = setTimeout(P, t4), f2 ? O(e5) : s2;
116
+ }
117
+ function g(e5) {
118
+ var r5 = e5 - l2;
119
+ return void 0 === l2 || r5 >= t4 || r5 < 0 || p2 && e5 - a2 >= c2;
120
+ }
121
+ function P() {
122
+ var e5 = b();
123
+ if (g(e5))
124
+ return j(e5);
125
+ u2 = setTimeout(P, function(e6) {
126
+ var r5 = t4 - (e6 - l2);
127
+ return p2 ? d(r5, c2 - (e6 - a2)) : r5;
128
+ }(e5));
129
+ }
130
+ function j(e5) {
131
+ return u2 = void 0, m && o3 ? O(e5) : (o3 = i3 = void 0, s2);
132
+ }
133
+ function T() {
134
+ var e5 = b(), r5 = g(e5);
135
+ if (o3 = arguments, i3 = this, l2 = e5, r5) {
136
+ if (void 0 === u2)
137
+ return w(l2);
138
+ if (p2)
139
+ return u2 = setTimeout(P, t4), O(l2);
140
+ }
141
+ return void 0 === u2 && (u2 = setTimeout(P, t4)), s2;
142
+ }
143
+ return t4 = v(t4) || 0, h(r4) && (f2 = !!r4.leading, c2 = (p2 = "maxWait" in r4) ? y(v(r4.maxWait) || 0, t4) : c2, m = "trailing" in r4 ? !!r4.trailing : m), T.cancel = function() {
144
+ void 0 !== u2 && clearTimeout(u2), a2 = 0, o3 = l2 = i3 = u2 = void 0;
145
+ }, T.flush = function() {
146
+ return void 0 === u2 ? s2 : j(b());
147
+ }, T;
148
+ }(e3, t3, { leading: o2, maxWait: t3, trailing: i2 });
149
+ };
150
+ }, 703: (e2, t2, r2) => {
151
+ var n2 = r2(414);
152
+ function o() {
153
+ }
154
+ function i() {
155
+ }
156
+ i.resetWarningCache = o, e2.exports = function() {
157
+ function e3(e4, t4, r4, o2, i2, c) {
158
+ if (c !== n2) {
159
+ var s = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
160
+ throw s.name = "Invariant Violation", s;
161
+ }
162
+ }
163
+ function t3() {
164
+ return e3;
165
+ }
166
+ e3.isRequired = e3;
167
+ var r3 = { array: e3, bool: e3, func: e3, number: e3, object: e3, string: e3, symbol: e3, any: e3, arrayOf: t3, element: e3, elementType: e3, instanceOf: t3, node: e3, objectOf: t3, oneOf: t3, oneOfType: t3, shape: t3, exact: t3, checkPropTypes: i, resetWarningCache: o };
168
+ return r3.PropTypes = r3, r3;
169
+ };
170
+ }, 697: (e2, t2, r2) => {
171
+ e2.exports = r2(703)();
172
+ }, 414: (e2) => {
173
+ e2.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
174
+ } }, t = {};
175
+ function r(n2) {
176
+ var o = t[n2];
177
+ if (void 0 !== o)
178
+ return o.exports;
179
+ var i = t[n2] = { exports: {} };
180
+ return e[n2](i, i.exports, r), i.exports;
181
+ }
182
+ r.n = (e2) => {
183
+ var t2 = e2 && e2.__esModule ? () => e2.default : () => e2;
184
+ return r.d(t2, { a: t2 }), t2;
185
+ }, r.d = (e2, t2) => {
186
+ for (var n2 in t2)
187
+ r.o(t2, n2) && !r.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: t2[n2] });
188
+ }, r.g = function() {
189
+ if ("object" == typeof globalThis)
190
+ return globalThis;
191
+ try {
192
+ return this || new Function("return this")();
193
+ } catch (e2) {
194
+ if ("object" == typeof window)
195
+ return window;
196
+ }
197
+ }(), r.o = (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2), r.r = (e2) => {
198
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
199
+ };
200
+ var n = {};
201
+ (() => {
202
+ r.r(n), r.d(n, { LazyLoadComponent: () => J, LazyLoadImage: () => ue, trackWindowScroll: () => C });
203
+ const e2 = React;
204
+ var t2 = r.n(e2), o = r(697);
205
+ const i = require$$2;
206
+ var c = r.n(i);
207
+ function s() {
208
+ return "undefined" != typeof window && "IntersectionObserver" in window && "isIntersecting" in window.IntersectionObserverEntry.prototype;
209
+ }
210
+ function u(e3) {
211
+ return (u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
212
+ return typeof e4;
213
+ } : function(e4) {
214
+ return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
215
+ })(e3);
216
+ }
217
+ function l(e3, t3) {
218
+ var r2 = Object.keys(e3);
219
+ if (Object.getOwnPropertySymbols) {
220
+ var n2 = Object.getOwnPropertySymbols(e3);
221
+ t3 && (n2 = n2.filter(function(t4) {
222
+ return Object.getOwnPropertyDescriptor(e3, t4).enumerable;
223
+ })), r2.push.apply(r2, n2);
224
+ }
225
+ return r2;
226
+ }
227
+ function a(e3, t3, r2) {
228
+ return t3 in e3 ? Object.defineProperty(e3, t3, { value: r2, enumerable: true, configurable: true, writable: true }) : e3[t3] = r2, e3;
229
+ }
230
+ function f(e3, t3) {
231
+ for (var r2 = 0; r2 < t3.length; r2++) {
232
+ var n2 = t3[r2];
233
+ n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e3, n2.key, n2);
234
+ }
235
+ }
236
+ function p(e3, t3) {
237
+ return (p = Object.setPrototypeOf || function(e4, t4) {
238
+ return e4.__proto__ = t4, e4;
239
+ })(e3, t3);
240
+ }
241
+ function y(e3, t3) {
242
+ if (t3 && ("object" === u(t3) || "function" == typeof t3))
243
+ return t3;
244
+ if (void 0 !== t3)
245
+ throw new TypeError("Derived constructors may only return object or undefined");
246
+ return function(e4) {
247
+ if (void 0 === e4)
248
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
249
+ return e4;
250
+ }(e3);
251
+ }
252
+ function d(e3) {
253
+ return (d = Object.setPrototypeOf ? Object.getPrototypeOf : function(e4) {
254
+ return e4.__proto__ || Object.getPrototypeOf(e4);
255
+ })(e3);
256
+ }
257
+ var b = function(e3) {
258
+ e3.forEach(function(e4) {
259
+ e4.isIntersecting && e4.target.onVisible();
260
+ });
261
+ }, h = {}, v = function(e3) {
262
+ !function(e4, t3) {
263
+ if ("function" != typeof t3 && null !== t3)
264
+ throw new TypeError("Super expression must either be null or a function");
265
+ e4.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t3 && p(e4, t3);
266
+ }(v2, e3);
267
+ var r2, n2, o2, i2, u2 = (o2 = v2, i2 = function() {
268
+ if ("undefined" == typeof Reflect || !Reflect.construct)
269
+ return false;
270
+ if (Reflect.construct.sham)
271
+ return false;
272
+ if ("function" == typeof Proxy)
273
+ return true;
274
+ try {
275
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
276
+ })), true;
277
+ } catch (e4) {
278
+ return false;
279
+ }
280
+ }(), function() {
281
+ var e4, t3 = d(o2);
282
+ if (i2) {
283
+ var r3 = d(this).constructor;
284
+ e4 = Reflect.construct(t3, arguments, r3);
285
+ } else
286
+ e4 = t3.apply(this, arguments);
287
+ return y(this, e4);
288
+ });
289
+ function v2(e4) {
290
+ var t3;
291
+ if (function(e5, t4) {
292
+ if (!(e5 instanceof t4))
293
+ throw new TypeError("Cannot call a class as a function");
294
+ }(this, v2), (t3 = u2.call(this, e4)).supportsObserver = !e4.scrollPosition && e4.useIntersectionObserver && s(), t3.supportsObserver) {
295
+ var r3 = e4.threshold;
296
+ t3.observer = function(e5) {
297
+ return h[e5] = h[e5] || new IntersectionObserver(b, { rootMargin: e5 + "px" }), h[e5];
298
+ }(r3);
299
+ }
300
+ return t3;
301
+ }
302
+ return r2 = v2, (n2 = [{ key: "componentDidMount", value: function() {
303
+ this.placeholder && this.observer && (this.placeholder.onVisible = this.props.onVisible, this.observer.observe(this.placeholder)), this.supportsObserver || this.updateVisibility();
304
+ } }, { key: "componentWillUnmount", value: function() {
305
+ this.observer && this.observer.unobserve(this.placeholder);
306
+ } }, { key: "componentDidUpdate", value: function() {
307
+ this.supportsObserver || this.updateVisibility();
308
+ } }, { key: "getPlaceholderBoundingBox", value: function() {
309
+ var e4 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : this.props.scrollPosition, t3 = this.placeholder.getBoundingClientRect(), r3 = c().findDOMNode(this.placeholder).style, n3 = { left: parseInt(r3.getPropertyValue("margin-left"), 10) || 0, top: parseInt(r3.getPropertyValue("margin-top"), 10) || 0 };
310
+ return { bottom: e4.y + t3.bottom + n3.top, left: e4.x + t3.left + n3.left, right: e4.x + t3.right + n3.left, top: e4.y + t3.top + n3.top };
311
+ } }, { key: "isPlaceholderInViewport", value: function() {
312
+ if ("undefined" == typeof window || !this.placeholder)
313
+ return false;
314
+ var e4 = this.props, t3 = e4.scrollPosition, r3 = e4.threshold, n3 = this.getPlaceholderBoundingBox(t3), o3 = t3.y + window.innerHeight, i3 = t3.x, c2 = t3.x + window.innerWidth, s2 = t3.y;
315
+ return Boolean(s2 - r3 <= n3.bottom && o3 + r3 >= n3.top && i3 - r3 <= n3.right && c2 + r3 >= n3.left);
316
+ } }, { key: "updateVisibility", value: function() {
317
+ this.isPlaceholderInViewport() && this.props.onVisible();
318
+ } }, { key: "render", value: function() {
319
+ var e4 = this, r3 = this.props, n3 = r3.className, o3 = r3.height, i3 = r3.placeholder, c2 = r3.style, s2 = r3.width;
320
+ if (i3 && "function" != typeof i3.type)
321
+ return t2().cloneElement(i3, { ref: function(t3) {
322
+ return e4.placeholder = t3;
323
+ } });
324
+ var u3 = function(e5) {
325
+ for (var t3 = 1; t3 < arguments.length; t3++) {
326
+ var r4 = null != arguments[t3] ? arguments[t3] : {};
327
+ t3 % 2 ? l(Object(r4), true).forEach(function(t4) {
328
+ a(e5, t4, r4[t4]);
329
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e5, Object.getOwnPropertyDescriptors(r4)) : l(Object(r4)).forEach(function(t4) {
330
+ Object.defineProperty(e5, t4, Object.getOwnPropertyDescriptor(r4, t4));
331
+ });
332
+ }
333
+ return e5;
334
+ }({ display: "inline-block" }, c2);
335
+ return void 0 !== s2 && (u3.width = s2), void 0 !== o3 && (u3.height = o3), t2().createElement("span", { className: n3, ref: function(t3) {
336
+ return e4.placeholder = t3;
337
+ }, style: u3 }, i3);
338
+ } }]) && f(r2.prototype, n2), v2;
339
+ }(t2().Component);
340
+ v.propTypes = { onVisible: o.PropTypes.func.isRequired, className: o.PropTypes.string, height: o.PropTypes.oneOfType([o.PropTypes.number, o.PropTypes.string]), placeholder: o.PropTypes.element, threshold: o.PropTypes.number, useIntersectionObserver: o.PropTypes.bool, scrollPosition: o.PropTypes.shape({ x: o.PropTypes.number.isRequired, y: o.PropTypes.number.isRequired }), width: o.PropTypes.oneOfType([o.PropTypes.number, o.PropTypes.string]) }, v.defaultProps = { className: "", placeholder: null, threshold: 100, useIntersectionObserver: true };
341
+ const m = v;
342
+ var O = r(296), w = r.n(O), g = r(96), P = r.n(g), j = function(e3) {
343
+ var t3 = getComputedStyle(e3, null);
344
+ return t3.getPropertyValue("overflow") + t3.getPropertyValue("overflow-y") + t3.getPropertyValue("overflow-x");
345
+ };
346
+ const T = function(e3) {
347
+ if (!(e3 instanceof HTMLElement))
348
+ return window;
349
+ for (var t3 = e3; t3 && t3 instanceof HTMLElement; ) {
350
+ if (/(scroll|auto)/.test(j(t3)))
351
+ return t3;
352
+ t3 = t3.parentNode;
353
+ }
354
+ return window;
355
+ };
356
+ function S(e3) {
357
+ return (S = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
358
+ return typeof e4;
359
+ } : function(e4) {
360
+ return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
361
+ })(e3);
362
+ }
363
+ var E = ["delayMethod", "delayTime"];
364
+ function _() {
365
+ return (_ = Object.assign || function(e3) {
366
+ for (var t3 = 1; t3 < arguments.length; t3++) {
367
+ var r2 = arguments[t3];
368
+ for (var n2 in r2)
369
+ Object.prototype.hasOwnProperty.call(r2, n2) && (e3[n2] = r2[n2]);
370
+ }
371
+ return e3;
372
+ }).apply(this, arguments);
373
+ }
374
+ function I(e3, t3) {
375
+ for (var r2 = 0; r2 < t3.length; r2++) {
376
+ var n2 = t3[r2];
377
+ n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e3, n2.key, n2);
378
+ }
379
+ }
380
+ function L(e3, t3) {
381
+ return (L = Object.setPrototypeOf || function(e4, t4) {
382
+ return e4.__proto__ = t4, e4;
383
+ })(e3, t3);
384
+ }
385
+ function x(e3, t3) {
386
+ if (t3 && ("object" === S(t3) || "function" == typeof t3))
387
+ return t3;
388
+ if (void 0 !== t3)
389
+ throw new TypeError("Derived constructors may only return object or undefined");
390
+ return R(e3);
391
+ }
392
+ function R(e3) {
393
+ if (void 0 === e3)
394
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
395
+ return e3;
396
+ }
397
+ function k(e3) {
398
+ return (k = Object.setPrototypeOf ? Object.getPrototypeOf : function(e4) {
399
+ return e4.__proto__ || Object.getPrototypeOf(e4);
400
+ })(e3);
401
+ }
402
+ var D = function() {
403
+ return "undefined" == typeof window ? 0 : window.scrollX || window.pageXOffset;
404
+ }, N = function() {
405
+ return "undefined" == typeof window ? 0 : window.scrollY || window.pageYOffset;
406
+ };
407
+ const C = function(e3) {
408
+ var r2 = function(r3) {
409
+ !function(e4, t3) {
410
+ if ("function" != typeof t3 && null !== t3)
411
+ throw new TypeError("Super expression must either be null or a function");
412
+ e4.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t3 && L(e4, t3);
413
+ }(a2, r3);
414
+ var n2, o2, i2, u2, l2 = (i2 = a2, u2 = function() {
415
+ if ("undefined" == typeof Reflect || !Reflect.construct)
416
+ return false;
417
+ if (Reflect.construct.sham)
418
+ return false;
419
+ if ("function" == typeof Proxy)
420
+ return true;
421
+ try {
422
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
423
+ })), true;
424
+ } catch (e4) {
425
+ return false;
426
+ }
427
+ }(), function() {
428
+ var e4, t3 = k(i2);
429
+ if (u2) {
430
+ var r4 = k(this).constructor;
431
+ e4 = Reflect.construct(t3, arguments, r4);
432
+ } else
433
+ e4 = t3.apply(this, arguments);
434
+ return x(this, e4);
435
+ });
436
+ function a2(e4) {
437
+ var r4;
438
+ if (function(e5, t3) {
439
+ if (!(e5 instanceof t3))
440
+ throw new TypeError("Cannot call a class as a function");
441
+ }(this, a2), (r4 = l2.call(this, e4)).useIntersectionObserver = e4.useIntersectionObserver && s(), r4.useIntersectionObserver)
442
+ return x(r4);
443
+ var n3 = r4.onChangeScroll.bind(R(r4));
444
+ return "debounce" === e4.delayMethod ? r4.delayedScroll = w()(n3, e4.delayTime) : "throttle" === e4.delayMethod && (r4.delayedScroll = P()(n3, e4.delayTime)), r4.state = { scrollPosition: { x: D(), y: N() } }, r4.baseComponentRef = t2().createRef(), r4;
445
+ }
446
+ return n2 = a2, (o2 = [{ key: "componentDidMount", value: function() {
447
+ this.addListeners();
448
+ } }, { key: "componentWillUnmount", value: function() {
449
+ this.removeListeners();
450
+ } }, { key: "componentDidUpdate", value: function() {
451
+ "undefined" == typeof window || this.useIntersectionObserver || T(c().findDOMNode(this.baseComponentRef.current)) !== this.scrollElement && (this.removeListeners(), this.addListeners());
452
+ } }, { key: "addListeners", value: function() {
453
+ "undefined" == typeof window || this.useIntersectionObserver || (this.scrollElement = T(c().findDOMNode(this.baseComponentRef.current)), this.scrollElement.addEventListener("scroll", this.delayedScroll, { passive: true }), window.addEventListener("resize", this.delayedScroll, { passive: true }), this.scrollElement !== window && window.addEventListener("scroll", this.delayedScroll, { passive: true }));
454
+ } }, { key: "removeListeners", value: function() {
455
+ "undefined" == typeof window || this.useIntersectionObserver || (this.scrollElement.removeEventListener("scroll", this.delayedScroll), window.removeEventListener("resize", this.delayedScroll), this.scrollElement !== window && window.removeEventListener("scroll", this.delayedScroll));
456
+ } }, { key: "onChangeScroll", value: function() {
457
+ this.useIntersectionObserver || this.setState({ scrollPosition: { x: D(), y: N() } });
458
+ } }, { key: "render", value: function() {
459
+ var r4 = this.props, n3 = (r4.delayMethod, r4.delayTime, function(e4, t3) {
460
+ if (null == e4)
461
+ return {};
462
+ var r5, n4, o4 = function(e5, t4) {
463
+ if (null == e5)
464
+ return {};
465
+ var r6, n5, o5 = {}, i4 = Object.keys(e5);
466
+ for (n5 = 0; n5 < i4.length; n5++)
467
+ r6 = i4[n5], t4.indexOf(r6) >= 0 || (o5[r6] = e5[r6]);
468
+ return o5;
469
+ }(e4, t3);
470
+ if (Object.getOwnPropertySymbols) {
471
+ var i3 = Object.getOwnPropertySymbols(e4);
472
+ for (n4 = 0; n4 < i3.length; n4++)
473
+ r5 = i3[n4], t3.indexOf(r5) >= 0 || Object.prototype.propertyIsEnumerable.call(e4, r5) && (o4[r5] = e4[r5]);
474
+ }
475
+ return o4;
476
+ }(r4, E)), o3 = this.useIntersectionObserver ? null : this.state.scrollPosition;
477
+ return t2().createElement(e3, _({ forwardRef: this.baseComponentRef, scrollPosition: o3 }, n3));
478
+ } }]) && I(n2.prototype, o2), a2;
479
+ }(t2().Component);
480
+ return r2.propTypes = { delayMethod: o.PropTypes.oneOf(["debounce", "throttle"]), delayTime: o.PropTypes.number, useIntersectionObserver: o.PropTypes.bool }, r2.defaultProps = { delayMethod: "throttle", delayTime: 300, useIntersectionObserver: true }, r2;
481
+ };
482
+ function M(e3) {
483
+ return (M = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
484
+ return typeof e4;
485
+ } : function(e4) {
486
+ return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
487
+ })(e3);
488
+ }
489
+ function B(e3, t3) {
490
+ for (var r2 = 0; r2 < t3.length; r2++) {
491
+ var n2 = t3[r2];
492
+ n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e3, n2.key, n2);
493
+ }
494
+ }
495
+ function V(e3, t3) {
496
+ return (V = Object.setPrototypeOf || function(e4, t4) {
497
+ return e4.__proto__ = t4, e4;
498
+ })(e3, t3);
499
+ }
500
+ function W(e3, t3) {
501
+ if (t3 && ("object" === M(t3) || "function" == typeof t3))
502
+ return t3;
503
+ if (void 0 !== t3)
504
+ throw new TypeError("Derived constructors may only return object or undefined");
505
+ return function(e4) {
506
+ if (void 0 === e4)
507
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
508
+ return e4;
509
+ }(e3);
510
+ }
511
+ function z(e3) {
512
+ return (z = Object.setPrototypeOf ? Object.getPrototypeOf : function(e4) {
513
+ return e4.__proto__ || Object.getPrototypeOf(e4);
514
+ })(e3);
515
+ }
516
+ var $ = function(e3) {
517
+ !function(e4, t3) {
518
+ if ("function" != typeof t3 && null !== t3)
519
+ throw new TypeError("Super expression must either be null or a function");
520
+ e4.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t3 && V(e4, t3);
521
+ }(s2, e3);
522
+ var r2, n2, o2, i2, c2 = (o2 = s2, i2 = function() {
523
+ if ("undefined" == typeof Reflect || !Reflect.construct)
524
+ return false;
525
+ if (Reflect.construct.sham)
526
+ return false;
527
+ if ("function" == typeof Proxy)
528
+ return true;
529
+ try {
530
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
531
+ })), true;
532
+ } catch (e4) {
533
+ return false;
534
+ }
535
+ }(), function() {
536
+ var e4, t3 = z(o2);
537
+ if (i2) {
538
+ var r3 = z(this).constructor;
539
+ e4 = Reflect.construct(t3, arguments, r3);
540
+ } else
541
+ e4 = t3.apply(this, arguments);
542
+ return W(this, e4);
543
+ });
544
+ function s2(e4) {
545
+ return function(e5, t3) {
546
+ if (!(e5 instanceof t3))
547
+ throw new TypeError("Cannot call a class as a function");
548
+ }(this, s2), c2.call(this, e4);
549
+ }
550
+ return r2 = s2, (n2 = [{ key: "render", value: function() {
551
+ return t2().createElement(m, this.props);
552
+ } }]) && B(r2.prototype, n2), s2;
553
+ }(t2().Component);
554
+ const U = C($);
555
+ function q(e3) {
556
+ return (q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
557
+ return typeof e4;
558
+ } : function(e4) {
559
+ return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
560
+ })(e3);
561
+ }
562
+ function F(e3, t3) {
563
+ for (var r2 = 0; r2 < t3.length; r2++) {
564
+ var n2 = t3[r2];
565
+ n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e3, n2.key, n2);
566
+ }
567
+ }
568
+ function H(e3, t3) {
569
+ return (H = Object.setPrototypeOf || function(e4, t4) {
570
+ return e4.__proto__ = t4, e4;
571
+ })(e3, t3);
572
+ }
573
+ function Y(e3, t3) {
574
+ if (t3 && ("object" === q(t3) || "function" == typeof t3))
575
+ return t3;
576
+ if (void 0 !== t3)
577
+ throw new TypeError("Derived constructors may only return object or undefined");
578
+ return X(e3);
579
+ }
580
+ function X(e3) {
581
+ if (void 0 === e3)
582
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
583
+ return e3;
584
+ }
585
+ function A(e3) {
586
+ return (A = Object.setPrototypeOf ? Object.getPrototypeOf : function(e4) {
587
+ return e4.__proto__ || Object.getPrototypeOf(e4);
588
+ })(e3);
589
+ }
590
+ var G = function(e3) {
591
+ !function(e4, t3) {
592
+ if ("function" != typeof t3 && null !== t3)
593
+ throw new TypeError("Super expression must either be null or a function");
594
+ e4.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t3 && H(e4, t3);
595
+ }(u2, e3);
596
+ var r2, n2, o2, i2, c2 = (o2 = u2, i2 = function() {
597
+ if ("undefined" == typeof Reflect || !Reflect.construct)
598
+ return false;
599
+ if (Reflect.construct.sham)
600
+ return false;
601
+ if ("function" == typeof Proxy)
602
+ return true;
603
+ try {
604
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
605
+ })), true;
606
+ } catch (e4) {
607
+ return false;
608
+ }
609
+ }(), function() {
610
+ var e4, t3 = A(o2);
611
+ if (i2) {
612
+ var r3 = A(this).constructor;
613
+ e4 = Reflect.construct(t3, arguments, r3);
614
+ } else
615
+ e4 = t3.apply(this, arguments);
616
+ return Y(this, e4);
617
+ });
618
+ function u2(e4) {
619
+ var t3;
620
+ !function(e5, t4) {
621
+ if (!(e5 instanceof t4))
622
+ throw new TypeError("Cannot call a class as a function");
623
+ }(this, u2), t3 = c2.call(this, e4);
624
+ var r3 = e4.afterLoad, n3 = e4.beforeLoad, o3 = e4.scrollPosition, i3 = e4.visibleByDefault;
625
+ return t3.state = { visible: i3 }, i3 && (n3(), r3()), t3.onVisible = t3.onVisible.bind(X(t3)), t3.isScrollTracked = Boolean(o3 && Number.isFinite(o3.x) && o3.x >= 0 && Number.isFinite(o3.y) && o3.y >= 0), t3;
626
+ }
627
+ return r2 = u2, (n2 = [{ key: "componentDidUpdate", value: function(e4, t3) {
628
+ t3.visible !== this.state.visible && this.props.afterLoad();
629
+ } }, { key: "onVisible", value: function() {
630
+ this.props.beforeLoad(), this.setState({ visible: true });
631
+ } }, { key: "render", value: function() {
632
+ if (this.state.visible)
633
+ return this.props.children;
634
+ var e4 = this.props, r3 = e4.className, n3 = e4.delayMethod, o3 = e4.delayTime, i3 = e4.height, c3 = e4.placeholder, u3 = e4.scrollPosition, l2 = e4.style, a2 = e4.threshold, f2 = e4.useIntersectionObserver, p2 = e4.width;
635
+ return this.isScrollTracked || f2 && s() ? t2().createElement(m, { className: r3, height: i3, onVisible: this.onVisible, placeholder: c3, scrollPosition: u3, style: l2, threshold: a2, useIntersectionObserver: f2, width: p2 }) : t2().createElement(U, { className: r3, delayMethod: n3, delayTime: o3, height: i3, onVisible: this.onVisible, placeholder: c3, style: l2, threshold: a2, width: p2 });
636
+ } }]) && F(r2.prototype, n2), u2;
637
+ }(t2().Component);
638
+ G.propTypes = { afterLoad: o.PropTypes.func, beforeLoad: o.PropTypes.func, useIntersectionObserver: o.PropTypes.bool, visibleByDefault: o.PropTypes.bool }, G.defaultProps = { afterLoad: function() {
639
+ return {};
640
+ }, beforeLoad: function() {
641
+ return {};
642
+ }, useIntersectionObserver: true, visibleByDefault: false };
643
+ const J = G;
644
+ function K(e3) {
645
+ return (K = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
646
+ return typeof e4;
647
+ } : function(e4) {
648
+ return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
649
+ })(e3);
650
+ }
651
+ var Q = ["afterLoad", "beforeLoad", "delayMethod", "delayTime", "effect", "placeholder", "placeholderSrc", "scrollPosition", "threshold", "useIntersectionObserver", "visibleByDefault", "wrapperClassName", "wrapperProps"];
652
+ function Z(e3, t3) {
653
+ var r2 = Object.keys(e3);
654
+ if (Object.getOwnPropertySymbols) {
655
+ var n2 = Object.getOwnPropertySymbols(e3);
656
+ t3 && (n2 = n2.filter(function(t4) {
657
+ return Object.getOwnPropertyDescriptor(e3, t4).enumerable;
658
+ })), r2.push.apply(r2, n2);
659
+ }
660
+ return r2;
661
+ }
662
+ function ee(e3) {
663
+ for (var t3 = 1; t3 < arguments.length; t3++) {
664
+ var r2 = null != arguments[t3] ? arguments[t3] : {};
665
+ t3 % 2 ? Z(Object(r2), true).forEach(function(t4) {
666
+ te(e3, t4, r2[t4]);
667
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(r2)) : Z(Object(r2)).forEach(function(t4) {
668
+ Object.defineProperty(e3, t4, Object.getOwnPropertyDescriptor(r2, t4));
669
+ });
670
+ }
671
+ return e3;
672
+ }
673
+ function te(e3, t3, r2) {
674
+ return t3 in e3 ? Object.defineProperty(e3, t3, { value: r2, enumerable: true, configurable: true, writable: true }) : e3[t3] = r2, e3;
675
+ }
676
+ function re() {
677
+ return (re = Object.assign || function(e3) {
678
+ for (var t3 = 1; t3 < arguments.length; t3++) {
679
+ var r2 = arguments[t3];
680
+ for (var n2 in r2)
681
+ Object.prototype.hasOwnProperty.call(r2, n2) && (e3[n2] = r2[n2]);
682
+ }
683
+ return e3;
684
+ }).apply(this, arguments);
685
+ }
686
+ function ne(e3, t3) {
687
+ for (var r2 = 0; r2 < t3.length; r2++) {
688
+ var n2 = t3[r2];
689
+ n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e3, n2.key, n2);
690
+ }
691
+ }
692
+ function oe(e3, t3) {
693
+ return (oe = Object.setPrototypeOf || function(e4, t4) {
694
+ return e4.__proto__ = t4, e4;
695
+ })(e3, t3);
696
+ }
697
+ function ie(e3, t3) {
698
+ if (t3 && ("object" === K(t3) || "function" == typeof t3))
699
+ return t3;
700
+ if (void 0 !== t3)
701
+ throw new TypeError("Derived constructors may only return object or undefined");
702
+ return function(e4) {
703
+ if (void 0 === e4)
704
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
705
+ return e4;
706
+ }(e3);
707
+ }
708
+ function ce(e3) {
709
+ return (ce = Object.setPrototypeOf ? Object.getPrototypeOf : function(e4) {
710
+ return e4.__proto__ || Object.getPrototypeOf(e4);
711
+ })(e3);
712
+ }
713
+ var se = function(e3) {
714
+ !function(e4, t3) {
715
+ if ("function" != typeof t3 && null !== t3)
716
+ throw new TypeError("Super expression must either be null or a function");
717
+ e4.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t3 && oe(e4, t3);
718
+ }(s2, e3);
719
+ var r2, n2, o2, i2, c2 = (o2 = s2, i2 = function() {
720
+ if ("undefined" == typeof Reflect || !Reflect.construct)
721
+ return false;
722
+ if (Reflect.construct.sham)
723
+ return false;
724
+ if ("function" == typeof Proxy)
725
+ return true;
726
+ try {
727
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
728
+ })), true;
729
+ } catch (e4) {
730
+ return false;
731
+ }
732
+ }(), function() {
733
+ var e4, t3 = ce(o2);
734
+ if (i2) {
735
+ var r3 = ce(this).constructor;
736
+ e4 = Reflect.construct(t3, arguments, r3);
737
+ } else
738
+ e4 = t3.apply(this, arguments);
739
+ return ie(this, e4);
740
+ });
741
+ function s2(e4) {
742
+ var t3;
743
+ return function(e5, t4) {
744
+ if (!(e5 instanceof t4))
745
+ throw new TypeError("Cannot call a class as a function");
746
+ }(this, s2), (t3 = c2.call(this, e4)).state = { loaded: false }, t3;
747
+ }
748
+ return r2 = s2, (n2 = [{ key: "onImageLoad", value: function() {
749
+ var e4 = this;
750
+ return this.state.loaded ? null : function() {
751
+ e4.props.afterLoad(), e4.setState({ loaded: true });
752
+ };
753
+ } }, { key: "getImg", value: function() {
754
+ var e4 = this.props, r3 = (e4.afterLoad, e4.beforeLoad, e4.delayMethod, e4.delayTime, e4.effect, e4.placeholder, e4.placeholderSrc, e4.scrollPosition, e4.threshold, e4.useIntersectionObserver, e4.visibleByDefault, e4.wrapperClassName, e4.wrapperProps, function(e5, t3) {
755
+ if (null == e5)
756
+ return {};
757
+ var r4, n3, o3 = function(e6, t4) {
758
+ if (null == e6)
759
+ return {};
760
+ var r5, n4, o4 = {}, i4 = Object.keys(e6);
761
+ for (n4 = 0; n4 < i4.length; n4++)
762
+ r5 = i4[n4], t4.indexOf(r5) >= 0 || (o4[r5] = e6[r5]);
763
+ return o4;
764
+ }(e5, t3);
765
+ if (Object.getOwnPropertySymbols) {
766
+ var i3 = Object.getOwnPropertySymbols(e5);
767
+ for (n3 = 0; n3 < i3.length; n3++)
768
+ r4 = i3[n3], t3.indexOf(r4) >= 0 || Object.prototype.propertyIsEnumerable.call(e5, r4) && (o3[r4] = e5[r4]);
769
+ }
770
+ return o3;
771
+ }(e4, Q));
772
+ return t2().createElement("img", re({ onLoad: this.onImageLoad() }, r3));
773
+ } }, { key: "getLazyLoadImage", value: function() {
774
+ var e4 = this.props, r3 = e4.beforeLoad, n3 = e4.className, o3 = e4.delayMethod, i3 = e4.delayTime, c3 = e4.height, s3 = e4.placeholder, u2 = e4.scrollPosition, l2 = e4.style, a2 = e4.threshold, f2 = e4.useIntersectionObserver, p2 = e4.visibleByDefault, y2 = e4.width;
775
+ return t2().createElement(J, { beforeLoad: r3, className: n3, delayMethod: o3, delayTime: i3, height: c3, placeholder: s3, scrollPosition: u2, style: l2, threshold: a2, useIntersectionObserver: f2, visibleByDefault: p2, width: y2 }, this.getImg());
776
+ } }, { key: "getWrappedLazyLoadImage", value: function(e4) {
777
+ var r3 = this.props, n3 = r3.effect, o3 = r3.height, i3 = r3.placeholderSrc, c3 = r3.width, s3 = r3.wrapperClassName, u2 = r3.wrapperProps, l2 = this.state.loaded, a2 = l2 ? " lazy-load-image-loaded" : "", f2 = l2 || !i3 ? {} : { backgroundImage: "url(".concat(i3, ")"), backgroundSize: "100% 100%" };
778
+ return t2().createElement("span", re({ className: s3 + " lazy-load-image-background " + n3 + a2, style: ee(ee({}, f2), {}, { color: "transparent", display: "inline-block", height: o3, width: c3 }) }, u2), e4);
779
+ } }, { key: "render", value: function() {
780
+ var e4 = this.props, t3 = e4.effect, r3 = e4.placeholderSrc, n3 = e4.visibleByDefault, o3 = e4.wrapperClassName, i3 = e4.wrapperProps, c3 = this.getLazyLoadImage();
781
+ return (t3 || r3) && !n3 || o3 || i3 ? this.getWrappedLazyLoadImage(c3) : c3;
782
+ } }]) && ne(r2.prototype, n2), s2;
783
+ }(t2().Component);
784
+ se.propTypes = { afterLoad: o.PropTypes.func, beforeLoad: o.PropTypes.func, delayMethod: o.PropTypes.string, delayTime: o.PropTypes.number, effect: o.PropTypes.string, placeholderSrc: o.PropTypes.string, threshold: o.PropTypes.number, useIntersectionObserver: o.PropTypes.bool, visibleByDefault: o.PropTypes.bool, wrapperClassName: o.PropTypes.string, wrapperProps: o.PropTypes.object }, se.defaultProps = { afterLoad: function() {
785
+ return {};
786
+ }, beforeLoad: function() {
787
+ return {};
788
+ }, delayMethod: "throttle", delayTime: 300, effect: "", placeholderSrc: null, threshold: 100, useIntersectionObserver: true, visibleByDefault: false, wrapperClassName: "" };
789
+ const ue = se;
790
+ })(), build.exports = n;
791
+ })();
792
+ export { build as b };