hplx-feature-library 1.0.160 → 1.0.162
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/AlertPopup/index.js +77 -3
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/AllInvestigationsTable-9CE_uDGv.cjs +80 -0
- package/dist/{AllInvestigationsTable-XjuW68nm.js → AllInvestigationsTable-HC9dOdiS.js} +28 -27
- package/dist/Attachments/index.js +1 -1
- package/dist/CustomDropdown/index.js +1 -1
- package/dist/DateTimePicker/DateAndTimePicker/index.js +17 -16
- package/dist/PatientAddEdit/index.js +5319 -0
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-DGWlajqt.js → PediatricsCalculatorTable-CB1YOoVy.js} +26 -25
- package/dist/PediatricsCalculatorTable-CPXBdrqk.cjs +1 -0
- package/dist/ToggleButtons/index.js +1 -1
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/dayjs.min-D8X6dnmr.cjs +1 -0
- package/dist/dayjs.min-SMxpcMQi.js +284 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{AlertPopup-CSD_rZzv.js → index-BFfWEART.js} +302 -376
- package/dist/index-BVfQUI8j.cjs +98 -0
- package/dist/index-CHAEpyb1.cjs +32 -0
- package/dist/index-Cl3h7bnz.js +7118 -0
- package/dist/index.js +4 -4
- package/dist/types/PatientAddEditTypes/index.js +1 -0
- package/package.json +2 -6
- package/dist/AlertPopup-DdrHGPKR.cjs +0 -32
- package/dist/AllInvestigationsTable-pe1ZJejz.cjs +0 -80
- package/dist/PediatricsCalculatorTable-DSVe0_z0.cjs +0 -1
- package/dist/dayjs.min-DQn5T5hy.js +0 -298
- package/dist/dayjs.min-DvmTfmHo.cjs +0 -1
- package/dist/index-4whwJbrk.js +0 -6867
- package/dist/index-C6KQLMQs.cjs +0 -92
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
return
|
|
1
|
+
import { r as ve, a as Se, g as Me } from "./index-Cl3h7bnz.js";
|
|
2
|
+
import me from "react";
|
|
3
|
+
import Ne from "react-dom";
|
|
4
|
+
var Y = { exports: {} }, H = {}, G = { exports: {} }, T = {}, J = { exports: {} }, te;
|
|
5
|
+
function he() {
|
|
6
|
+
return te || (te = 1, function(p, a) {
|
|
7
7
|
Object.defineProperty(a, "__esModule", {
|
|
8
8
|
value: !0
|
|
9
9
|
}), a.default = s;
|
|
@@ -23,7 +23,7 @@ function ge() {
|
|
|
23
23
|
return f.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
24
24
|
n.scrollWidth <= 0 && n.scrollHeight <= 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function O(n) {
|
|
27
27
|
var f = n.offsetWidth <= 0 && n.offsetHeight <= 0;
|
|
28
28
|
if (f && !n.innerHTML) return !0;
|
|
29
29
|
try {
|
|
@@ -35,42 +35,42 @@ function ge() {
|
|
|
35
35
|
}
|
|
36
36
|
function e(n) {
|
|
37
37
|
for (var f = n, i = n.getRootNode && n.getRootNode(); f && f !== document.body; ) {
|
|
38
|
-
if (i && f === i && (f = i.host.parentNode),
|
|
38
|
+
if (i && f === i && (f = i.host.parentNode), O(f)) return !1;
|
|
39
39
|
f = f.parentNode;
|
|
40
40
|
}
|
|
41
41
|
return !0;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function g(n, f) {
|
|
44
44
|
var i = n.nodeName.toLowerCase(), y = u.test(i) && !n.disabled || i === "a" && n.href || f;
|
|
45
45
|
return y && e(n);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function m(n) {
|
|
48
48
|
var f = n.getAttribute("tabindex");
|
|
49
49
|
f === null && (f = void 0);
|
|
50
50
|
var i = isNaN(f);
|
|
51
|
-
return (i || f >= 0) &&
|
|
51
|
+
return (i || f >= 0) && g(n, !i);
|
|
52
52
|
}
|
|
53
53
|
function s(n) {
|
|
54
54
|
var f = [].slice.call(n.querySelectorAll("*"), 0).reduce(function(i, y) {
|
|
55
55
|
return i.concat(y.shadowRoot ? s(y.shadowRoot) : [y]);
|
|
56
56
|
}, []);
|
|
57
|
-
return f.filter(
|
|
57
|
+
return f.filter(m);
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
}(
|
|
59
|
+
p.exports = a.default;
|
|
60
|
+
}(J, J.exports)), J.exports;
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
65
|
-
|
|
62
|
+
var ne;
|
|
63
|
+
function Re() {
|
|
64
|
+
if (ne) return T;
|
|
65
|
+
ne = 1, Object.defineProperty(T, "__esModule", {
|
|
66
66
|
value: !0
|
|
67
|
-
}), T.resetState =
|
|
68
|
-
var
|
|
67
|
+
}), T.resetState = O, T.log = e, T.handleBlur = g, T.handleFocus = m, T.markForFocusLater = s, T.returnFocus = n, T.popWithoutFocus = f, T.setupScopedFocus = i, T.teardownScopedFocus = y;
|
|
68
|
+
var p = he(), a = h(p);
|
|
69
69
|
function h(_) {
|
|
70
70
|
return _ && _.__esModule ? _ : { default: _ };
|
|
71
71
|
}
|
|
72
72
|
var l = [], u = null, c = !1;
|
|
73
|
-
function
|
|
73
|
+
function O() {
|
|
74
74
|
l = [];
|
|
75
75
|
}
|
|
76
76
|
function e() {
|
|
@@ -79,10 +79,10 @@ function Ae() {
|
|
|
79
79
|
console.log(w.nodeName, w.className, w.id);
|
|
80
80
|
}), console.log("end focusManager ----------"));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function g() {
|
|
83
83
|
c = !0;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function m() {
|
|
86
86
|
if (c) {
|
|
87
87
|
if (c = !1, !u)
|
|
88
88
|
return;
|
|
@@ -110,20 +110,20 @@ function Ae() {
|
|
|
110
110
|
l.length > 0 && l.pop();
|
|
111
111
|
}
|
|
112
112
|
function i(_) {
|
|
113
|
-
u = _, window.addEventListener ? (window.addEventListener("blur",
|
|
113
|
+
u = _, window.addEventListener ? (window.addEventListener("blur", g, !1), document.addEventListener("focus", m, !0)) : (window.attachEvent("onBlur", g), document.attachEvent("onFocus", m));
|
|
114
114
|
}
|
|
115
115
|
function y() {
|
|
116
|
-
u = null, window.addEventListener ? (window.removeEventListener("blur",
|
|
116
|
+
u = null, window.addEventListener ? (window.removeEventListener("blur", g), document.removeEventListener("focus", m)) : (window.detachEvent("onBlur", g), document.detachEvent("onFocus", m));
|
|
117
117
|
}
|
|
118
118
|
return T;
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
return
|
|
120
|
+
var Q = { exports: {} }, oe;
|
|
121
|
+
function Te() {
|
|
122
|
+
return oe || (oe = 1, function(p, a) {
|
|
123
123
|
Object.defineProperty(a, "__esModule", {
|
|
124
124
|
value: !0
|
|
125
|
-
}), a.default =
|
|
126
|
-
var h =
|
|
125
|
+
}), a.default = O;
|
|
126
|
+
var h = he(), l = u(h);
|
|
127
127
|
function u(e) {
|
|
128
128
|
return e && e.__esModule ? e : { default: e };
|
|
129
129
|
}
|
|
@@ -131,59 +131,59 @@ function De() {
|
|
|
131
131
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
|
|
132
132
|
return e.activeElement.shadowRoot ? c(e.activeElement.shadowRoot) : e.activeElement;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
var
|
|
136
|
-
if (!
|
|
137
|
-
|
|
134
|
+
function O(e, g) {
|
|
135
|
+
var m = (0, l.default)(e);
|
|
136
|
+
if (!m.length) {
|
|
137
|
+
g.preventDefault();
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
var s = void 0, n =
|
|
140
|
+
var s = void 0, n = g.shiftKey, f = m[0], i = m[m.length - 1], y = c();
|
|
141
141
|
if (e === y) {
|
|
142
142
|
if (!n) return;
|
|
143
143
|
s = i;
|
|
144
144
|
}
|
|
145
145
|
if (i === y && !n && (s = f), f === y && n && (s = i), s) {
|
|
146
|
-
|
|
146
|
+
g.preventDefault(), s.focus();
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
var _ = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), w = _ != null && _[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
150
150
|
if (w) {
|
|
151
|
-
var R =
|
|
152
|
-
if (R > -1 && (R += n ? -1 : 1), s =
|
|
153
|
-
|
|
151
|
+
var R = m.indexOf(y);
|
|
152
|
+
if (R > -1 && (R += n ? -1 : 1), s = m[R], typeof s > "u") {
|
|
153
|
+
g.preventDefault(), s = n ? i : f, s.focus();
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
g.preventDefault(), s.focus();
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
}(
|
|
159
|
+
p.exports = a.default;
|
|
160
|
+
}(Q, Q.exports)), Q.exports;
|
|
161
161
|
}
|
|
162
|
-
var
|
|
163
|
-
function
|
|
164
|
-
if (
|
|
165
|
-
|
|
166
|
-
var
|
|
162
|
+
var D = {}, X, re;
|
|
163
|
+
function De() {
|
|
164
|
+
if (re) return X;
|
|
165
|
+
re = 1;
|
|
166
|
+
var p = process.env.NODE_ENV !== "production", a = function() {
|
|
167
167
|
};
|
|
168
|
-
if (
|
|
168
|
+
if (p) {
|
|
169
169
|
var h = function(u, c) {
|
|
170
|
-
var
|
|
171
|
-
c = new Array(
|
|
172
|
-
for (var e = 1; e <
|
|
170
|
+
var O = arguments.length;
|
|
171
|
+
c = new Array(O > 1 ? O - 1 : 0);
|
|
172
|
+
for (var e = 1; e < O; e++)
|
|
173
173
|
c[e - 1] = arguments[e];
|
|
174
|
-
var
|
|
175
|
-
return c[
|
|
174
|
+
var g = 0, m = "Warning: " + u.replace(/%s/g, function() {
|
|
175
|
+
return c[g++];
|
|
176
176
|
});
|
|
177
|
-
typeof console < "u" && console.error(
|
|
177
|
+
typeof console < "u" && console.error(m);
|
|
178
178
|
try {
|
|
179
|
-
throw new Error(
|
|
179
|
+
throw new Error(m);
|
|
180
180
|
} catch {
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
a = function(l, u, c) {
|
|
184
|
-
var
|
|
185
|
-
c = new Array(
|
|
186
|
-
for (var e = 2; e <
|
|
184
|
+
var O = arguments.length;
|
|
185
|
+
c = new Array(O > 2 ? O - 2 : 0);
|
|
186
|
+
for (var e = 2; e < O; e++)
|
|
187
187
|
c[e - 2] = arguments[e];
|
|
188
188
|
if (u === void 0)
|
|
189
189
|
throw new Error(
|
|
@@ -192,17 +192,17 @@ function Pe() {
|
|
|
192
192
|
l || h.apply(null, [u].concat(c));
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
return
|
|
195
|
+
return X = a, X;
|
|
196
196
|
}
|
|
197
|
-
var
|
|
197
|
+
var P = {}, Z = { exports: {} };
|
|
198
198
|
/*!
|
|
199
199
|
Copyright (c) 2015 Jed Watson.
|
|
200
200
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
201
201
|
All rights reserved.
|
|
202
202
|
*/
|
|
203
|
-
var
|
|
204
|
-
function
|
|
205
|
-
return
|
|
203
|
+
var ae;
|
|
204
|
+
function Ae() {
|
|
205
|
+
return ae || (ae = 1, function(p) {
|
|
206
206
|
(function() {
|
|
207
207
|
var a = !!(typeof window < "u" && window.document && window.document.createElement), h = {
|
|
208
208
|
canUseDOM: a,
|
|
@@ -210,30 +210,30 @@ function Fe() {
|
|
|
210
210
|
canUseEventListeners: a && !!(window.addEventListener || window.attachEvent),
|
|
211
211
|
canUseViewport: a && !!window.screen
|
|
212
212
|
};
|
|
213
|
-
|
|
213
|
+
p.exports ? p.exports = h : window.ExecutionEnvironment = h;
|
|
214
214
|
})();
|
|
215
|
-
}(
|
|
215
|
+
}(Z)), Z.exports;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
if (
|
|
220
|
-
|
|
217
|
+
var le;
|
|
218
|
+
function ee() {
|
|
219
|
+
if (le) return P;
|
|
220
|
+
le = 1, Object.defineProperty(P, "__esModule", {
|
|
221
221
|
value: !0
|
|
222
|
-
}),
|
|
223
|
-
var
|
|
222
|
+
}), P.canUseDOM = P.SafeNodeList = P.SafeHTMLCollection = void 0;
|
|
223
|
+
var p = Ae(), a = h(p);
|
|
224
224
|
function h(c) {
|
|
225
225
|
return c && c.__esModule ? c : { default: c };
|
|
226
226
|
}
|
|
227
227
|
var l = a.default, u = l.canUseDOM ? window.HTMLElement : {};
|
|
228
|
-
return
|
|
228
|
+
return P.SafeHTMLCollection = l.canUseDOM ? window.HTMLCollection : {}, P.SafeNodeList = l.canUseDOM ? window.NodeList : {}, P.canUseDOM = l.canUseDOM, P.default = u, P;
|
|
229
229
|
}
|
|
230
|
-
var
|
|
231
|
-
function
|
|
232
|
-
if (
|
|
233
|
-
|
|
230
|
+
var se;
|
|
231
|
+
function ye() {
|
|
232
|
+
if (se) return D;
|
|
233
|
+
se = 1, Object.defineProperty(D, "__esModule", {
|
|
234
234
|
value: !0
|
|
235
|
-
}),
|
|
236
|
-
var
|
|
235
|
+
}), D.resetState = c, D.log = O, D.assertNodeList = e, D.setElement = g, D.validateElement = m, D.hide = s, D.show = n, D.documentNotReadyOrSSRTesting = f;
|
|
236
|
+
var p = De(), a = l(p), h = ee();
|
|
237
237
|
function l(i) {
|
|
238
238
|
return i && i.__esModule ? i : { default: i };
|
|
239
239
|
}
|
|
@@ -245,7 +245,7 @@ function Oe() {
|
|
|
245
245
|
return i.removeAttribute("aria-hidden");
|
|
246
246
|
})), u = null;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function O() {
|
|
249
249
|
if (process.env.NODE_ENV !== "production") {
|
|
250
250
|
var i = u || {};
|
|
251
251
|
console.log("ariaAppHider ----------"), console.log(i.nodeName, i.className, i.id), console.log("end ariaAppHider ----------");
|
|
@@ -255,7 +255,7 @@ function Oe() {
|
|
|
255
255
|
if (!i || !i.length)
|
|
256
256
|
throw new Error("react-modal: No elements were found for selector " + y + ".");
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function g(i) {
|
|
259
259
|
var y = i;
|
|
260
260
|
if (typeof y == "string" && h.canUseDOM) {
|
|
261
261
|
var _ = document.querySelectorAll(y);
|
|
@@ -263,19 +263,19 @@ function Oe() {
|
|
|
263
263
|
}
|
|
264
264
|
return u = y || u, u;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function m(i) {
|
|
267
267
|
var y = i || u;
|
|
268
268
|
return y ? Array.isArray(y) || y instanceof HTMLCollection || y instanceof NodeList ? y : [y] : ((0, a.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
|
|
269
269
|
}
|
|
270
270
|
function s(i) {
|
|
271
271
|
var y = !0, _ = !1, w = void 0;
|
|
272
272
|
try {
|
|
273
|
-
for (var R =
|
|
273
|
+
for (var R = m(i)[Symbol.iterator](), A; !(y = (A = R.next()).done); y = !0) {
|
|
274
274
|
var q = A.value;
|
|
275
275
|
q.setAttribute("aria-hidden", "true");
|
|
276
276
|
}
|
|
277
|
-
} catch (
|
|
278
|
-
_ = !0, w =
|
|
277
|
+
} catch (L) {
|
|
278
|
+
_ = !0, w = L;
|
|
279
279
|
} finally {
|
|
280
280
|
try {
|
|
281
281
|
!y && R.return && R.return();
|
|
@@ -288,12 +288,12 @@ function Oe() {
|
|
|
288
288
|
function n(i) {
|
|
289
289
|
var y = !0, _ = !1, w = void 0;
|
|
290
290
|
try {
|
|
291
|
-
for (var R =
|
|
291
|
+
for (var R = m(i)[Symbol.iterator](), A; !(y = (A = R.next()).done); y = !0) {
|
|
292
292
|
var q = A.value;
|
|
293
293
|
q.removeAttribute("aria-hidden");
|
|
294
294
|
}
|
|
295
|
-
} catch (
|
|
296
|
-
_ = !0, w =
|
|
295
|
+
} catch (L) {
|
|
296
|
+
_ = !0, w = L;
|
|
297
297
|
} finally {
|
|
298
298
|
try {
|
|
299
299
|
!y && R.return && R.return();
|
|
@@ -306,40 +306,40 @@ function Oe() {
|
|
|
306
306
|
function f() {
|
|
307
307
|
u = null;
|
|
308
308
|
}
|
|
309
|
-
return
|
|
309
|
+
return D;
|
|
310
310
|
}
|
|
311
|
-
var
|
|
312
|
-
function
|
|
313
|
-
if (
|
|
314
|
-
|
|
311
|
+
var k = {}, ie;
|
|
312
|
+
function Pe() {
|
|
313
|
+
if (ie) return k;
|
|
314
|
+
ie = 1, Object.defineProperty(k, "__esModule", {
|
|
315
315
|
value: !0
|
|
316
|
-
}),
|
|
317
|
-
var
|
|
318
|
-
function h(
|
|
319
|
-
|
|
316
|
+
}), k.resetState = l, k.log = u;
|
|
317
|
+
var p = {}, a = {};
|
|
318
|
+
function h(m, s) {
|
|
319
|
+
m.classList.remove(s);
|
|
320
320
|
}
|
|
321
321
|
function l() {
|
|
322
|
-
var
|
|
323
|
-
for (var s in
|
|
324
|
-
h(
|
|
322
|
+
var m = document.getElementsByTagName("html")[0];
|
|
323
|
+
for (var s in p)
|
|
324
|
+
h(m, p[s]);
|
|
325
325
|
var n = document.body;
|
|
326
326
|
for (var f in a)
|
|
327
327
|
h(n, a[f]);
|
|
328
|
-
|
|
328
|
+
p = {}, a = {};
|
|
329
329
|
}
|
|
330
330
|
function u() {
|
|
331
331
|
if (process.env.NODE_ENV !== "production") {
|
|
332
|
-
var
|
|
332
|
+
var m = document.getElementsByTagName("html")[0].className, s = `Show tracked classes:
|
|
333
333
|
|
|
334
334
|
`;
|
|
335
|
-
s += "<html /> (" +
|
|
335
|
+
s += "<html /> (" + m + `):
|
|
336
336
|
`;
|
|
337
|
-
for (var n in
|
|
338
|
-
s += " " + n + " " +
|
|
337
|
+
for (var n in p)
|
|
338
|
+
s += " " + n + " " + p[n] + `
|
|
339
339
|
`;
|
|
340
|
-
|
|
340
|
+
m = document.body.className, s += `
|
|
341
341
|
|
|
342
|
-
doc.body (` +
|
|
342
|
+
doc.body (` + m + `):
|
|
343
343
|
`;
|
|
344
344
|
for (var f in a)
|
|
345
345
|
s += " " + f + " " + a[f] + `
|
|
@@ -350,56 +350,56 @@ doc.body (` + p + `):
|
|
|
350
350
|
}
|
|
351
351
|
var c = function(s, n) {
|
|
352
352
|
return s[n] || (s[n] = 0), s[n] += 1, n;
|
|
353
|
-
},
|
|
353
|
+
}, O = function(s, n) {
|
|
354
354
|
return s[n] && (s[n] -= 1), n;
|
|
355
355
|
}, e = function(s, n, f) {
|
|
356
356
|
f.forEach(function(i) {
|
|
357
357
|
c(n, i), s.add(i);
|
|
358
358
|
});
|
|
359
|
-
},
|
|
359
|
+
}, g = function(s, n, f) {
|
|
360
360
|
f.forEach(function(i) {
|
|
361
|
-
|
|
361
|
+
O(n, i), n[i] === 0 && s.remove(i);
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
|
-
return
|
|
365
|
-
return e(s.classList, s.nodeName.toLowerCase() == "html" ?
|
|
366
|
-
},
|
|
367
|
-
return
|
|
368
|
-
},
|
|
364
|
+
return k.add = function(s, n) {
|
|
365
|
+
return e(s.classList, s.nodeName.toLowerCase() == "html" ? p : a, n.split(" "));
|
|
366
|
+
}, k.remove = function(s, n) {
|
|
367
|
+
return g(s.classList, s.nodeName.toLowerCase() == "html" ? p : a, n.split(" "));
|
|
368
|
+
}, k;
|
|
369
369
|
}
|
|
370
|
-
var V = {},
|
|
371
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
|
|
370
|
+
var V = {}, ue;
|
|
371
|
+
function be() {
|
|
372
|
+
if (ue) return V;
|
|
373
|
+
ue = 1, Object.defineProperty(V, "__esModule", {
|
|
374
374
|
value: !0
|
|
375
375
|
}), V.log = l, V.resetState = u;
|
|
376
|
-
function
|
|
377
|
-
if (!(c instanceof
|
|
376
|
+
function p(c, O) {
|
|
377
|
+
if (!(c instanceof O))
|
|
378
378
|
throw new TypeError("Cannot call a class as a function");
|
|
379
379
|
}
|
|
380
380
|
var a = function c() {
|
|
381
|
-
var
|
|
382
|
-
|
|
383
|
-
if (
|
|
381
|
+
var O = this;
|
|
382
|
+
p(this, c), this.register = function(e) {
|
|
383
|
+
if (O.openInstances.indexOf(e) !== -1) {
|
|
384
384
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
|
-
|
|
387
|
+
O.openInstances.push(e), O.emit("register");
|
|
388
388
|
}, this.deregister = function(e) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var g = O.openInstances.indexOf(e);
|
|
390
|
+
if (g === -1) {
|
|
391
391
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + e + " as it was never registered");
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
394
|
-
|
|
394
|
+
O.openInstances.splice(g, 1), O.emit("deregister");
|
|
395
395
|
}, this.subscribe = function(e) {
|
|
396
|
-
|
|
396
|
+
O.subscribers.push(e);
|
|
397
397
|
}, this.emit = function(e) {
|
|
398
|
-
|
|
399
|
-
return
|
|
398
|
+
O.subscribers.forEach(function(g) {
|
|
399
|
+
return g(
|
|
400
400
|
e,
|
|
401
401
|
// shallow copy to avoid accidental mutation
|
|
402
|
-
|
|
402
|
+
O.openInstances.slice()
|
|
403
403
|
);
|
|
404
404
|
});
|
|
405
405
|
}, this.openInstances = [], this.subscribers = [];
|
|
@@ -414,18 +414,18 @@ function _e() {
|
|
|
414
414
|
}
|
|
415
415
|
return V.default = h, V;
|
|
416
416
|
}
|
|
417
|
-
var
|
|
418
|
-
function
|
|
419
|
-
if (
|
|
420
|
-
|
|
417
|
+
var j = {}, fe;
|
|
418
|
+
function Le() {
|
|
419
|
+
if (fe) return j;
|
|
420
|
+
fe = 1, Object.defineProperty(j, "__esModule", {
|
|
421
421
|
value: !0
|
|
422
|
-
}),
|
|
423
|
-
var
|
|
422
|
+
}), j.resetState = O, j.log = e;
|
|
423
|
+
var p = be(), a = h(p);
|
|
424
424
|
function h(s) {
|
|
425
425
|
return s && s.__esModule ? s : { default: s };
|
|
426
426
|
}
|
|
427
427
|
var l = void 0, u = void 0, c = [];
|
|
428
|
-
function
|
|
428
|
+
function O() {
|
|
429
429
|
for (var s = [l, u], n = 0; n < s.length; n++) {
|
|
430
430
|
var f = s[n];
|
|
431
431
|
f && f.parentNode && f.parentNode.removeChild(f);
|
|
@@ -440,29 +440,29 @@ function qe() {
|
|
|
440
440
|
}
|
|
441
441
|
console.log("edn bodyTrap ----------");
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function g() {
|
|
444
444
|
if (c.length === 0) {
|
|
445
445
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
c[c.length - 1].focusContent();
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
!l && !u && (l = document.createElement("div"), l.setAttribute("data-react-modal-body-trap", ""), l.style.position = "absolute", l.style.opacity = "0", l.setAttribute("tabindex", "0"), l.addEventListener("focus",
|
|
450
|
+
function m(s, n) {
|
|
451
|
+
!l && !u && (l = document.createElement("div"), l.setAttribute("data-react-modal-body-trap", ""), l.style.position = "absolute", l.style.opacity = "0", l.setAttribute("tabindex", "0"), l.addEventListener("focus", g), u = l.cloneNode(), u.addEventListener("focus", g)), c = n, c.length > 0 ? (document.body.firstChild !== l && document.body.insertBefore(l, document.body.firstChild), document.body.lastChild !== u && document.body.appendChild(u)) : (l.parentElement && l.parentElement.removeChild(l), u.parentElement && u.parentElement.removeChild(u));
|
|
452
452
|
}
|
|
453
|
-
return a.default.subscribe(
|
|
453
|
+
return a.default.subscribe(m), j;
|
|
454
454
|
}
|
|
455
|
-
var
|
|
456
|
-
function
|
|
457
|
-
return
|
|
455
|
+
var ce;
|
|
456
|
+
function Fe() {
|
|
457
|
+
return ce || (ce = 1, function(p, a) {
|
|
458
458
|
Object.defineProperty(a, "__esModule", {
|
|
459
459
|
value: !0
|
|
460
460
|
});
|
|
461
461
|
var h = Object.assign || function(r) {
|
|
462
462
|
for (var o = 1; o < arguments.length; o++) {
|
|
463
|
-
var
|
|
464
|
-
for (var t in
|
|
465
|
-
Object.prototype.hasOwnProperty.call(
|
|
463
|
+
var E = arguments[o];
|
|
464
|
+
for (var t in E)
|
|
465
|
+
Object.prototype.hasOwnProperty.call(E, t) && (r[t] = E[t]);
|
|
466
466
|
}
|
|
467
467
|
return r;
|
|
468
468
|
}, l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
@@ -470,27 +470,27 @@ function Ue() {
|
|
|
470
470
|
} : function(r) {
|
|
471
471
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
472
472
|
}, u = /* @__PURE__ */ function() {
|
|
473
|
-
function r(o,
|
|
474
|
-
for (var t = 0; t <
|
|
475
|
-
var
|
|
476
|
-
|
|
473
|
+
function r(o, E) {
|
|
474
|
+
for (var t = 0; t < E.length; t++) {
|
|
475
|
+
var d = E[t];
|
|
476
|
+
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(o, d.key, d);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
return function(o,
|
|
480
|
-
return
|
|
479
|
+
return function(o, E, t) {
|
|
480
|
+
return E && r(o.prototype, E), t && r(o, t), o;
|
|
481
481
|
};
|
|
482
|
-
}(), c =
|
|
483
|
-
|
|
484
|
-
function
|
|
482
|
+
}(), c = me, O = /* @__PURE__ */ ve(), e = B(O), g = Re(), m = L(g), s = Te(), n = B(s), f = ye(), i = L(f), y = Pe(), _ = L(y), w = ee(), R = B(w), A = be(), q = B(A);
|
|
483
|
+
Le();
|
|
484
|
+
function L(r) {
|
|
485
485
|
if (r && r.__esModule)
|
|
486
486
|
return r;
|
|
487
487
|
var o = {};
|
|
488
488
|
if (r != null)
|
|
489
|
-
for (var
|
|
490
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
489
|
+
for (var E in r)
|
|
490
|
+
Object.prototype.hasOwnProperty.call(r, E) && (o[E] = r[E]);
|
|
491
491
|
return o.default = r, o;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function B(r) {
|
|
494
494
|
return r && r.__esModule ? r : { default: r };
|
|
495
495
|
}
|
|
496
496
|
function F(r, o) {
|
|
@@ -514,20 +514,20 @@ function Ue() {
|
|
|
514
514
|
return o.code === "Tab" || o.keyCode === 9;
|
|
515
515
|
}, b = function(o) {
|
|
516
516
|
return o.code === "Escape" || o.keyCode === 27;
|
|
517
|
-
},
|
|
517
|
+
}, v = 0, C = function(r) {
|
|
518
518
|
$(o, r);
|
|
519
|
-
function o(
|
|
519
|
+
function o(E) {
|
|
520
520
|
F(this, o);
|
|
521
|
-
var t = K(this, (o.__proto__ || Object.getPrototypeOf(o)).call(this,
|
|
522
|
-
return t.setOverlayRef = function(
|
|
523
|
-
t.overlay =
|
|
524
|
-
}, t.setContentRef = function(
|
|
525
|
-
t.content =
|
|
521
|
+
var t = K(this, (o.__proto__ || Object.getPrototypeOf(o)).call(this, E));
|
|
522
|
+
return t.setOverlayRef = function(d) {
|
|
523
|
+
t.overlay = d, t.props.overlayRef && t.props.overlayRef(d);
|
|
524
|
+
}, t.setContentRef = function(d) {
|
|
525
|
+
t.content = d, t.props.contentRef && t.props.contentRef(d);
|
|
526
526
|
}, t.afterClose = function() {
|
|
527
|
-
var
|
|
528
|
-
|
|
527
|
+
var d = t.props, M = d.appElement, S = d.ariaHideApp, N = d.htmlOpenClassName, x = d.bodyOpenClassName, I = d.parentSelector, z = I && I().ownerDocument || document;
|
|
528
|
+
x && _.remove(z.body, x), N && _.remove(z.getElementsByTagName("html")[0], N), S && v > 0 && (v -= 1, v === 0 && i.show(M)), t.props.shouldFocusAfterRender && (t.props.shouldReturnFocusAfterClose ? (m.returnFocus(t.props.preventScroll), m.teardownScopedFocus()) : m.popWithoutFocus()), t.props.onAfterClose && t.props.onAfterClose(), q.default.deregister(t);
|
|
529
529
|
}, t.open = function() {
|
|
530
|
-
t.beforeOpen(), t.state.afterOpen && t.state.beforeClose ? (clearTimeout(t.closeTimer), t.setState({ beforeClose: !1 })) : (t.props.shouldFocusAfterRender && (
|
|
530
|
+
t.beforeOpen(), t.state.afterOpen && t.state.beforeClose ? (clearTimeout(t.closeTimer), t.setState({ beforeClose: !1 })) : (t.props.shouldFocusAfterRender && (m.setupScopedFocus(t.node), m.markForFocusLater()), t.setState({ isOpen: !0 }, function() {
|
|
531
531
|
t.openAnimationFrame = requestAnimationFrame(function() {
|
|
532
532
|
t.setState({ afterOpen: !0 }), t.props.isOpen && t.props.onAfterOpen && t.props.onAfterOpen({
|
|
533
533
|
overlayEl: t.overlay,
|
|
@@ -540,8 +540,8 @@ function Ue() {
|
|
|
540
540
|
}, t.focusContent = function() {
|
|
541
541
|
return t.content && !t.contentHasFocus() && t.content.focus({ preventScroll: !0 });
|
|
542
542
|
}, t.closeWithTimeout = function() {
|
|
543
|
-
var
|
|
544
|
-
t.setState({ beforeClose: !0, closesAt:
|
|
543
|
+
var d = Date.now() + t.props.closeTimeoutMS;
|
|
544
|
+
t.setState({ beforeClose: !0, closesAt: d }, function() {
|
|
545
545
|
t.closeTimer = setTimeout(t.closeWithoutTimeout, t.state.closesAt - Date.now());
|
|
546
546
|
});
|
|
547
547
|
}, t.closeWithoutTimeout = function() {
|
|
@@ -551,36 +551,36 @@ function Ue() {
|
|
|
551
551
|
afterOpen: !1,
|
|
552
552
|
closesAt: null
|
|
553
553
|
}, t.afterClose);
|
|
554
|
-
}, t.handleKeyDown = function(
|
|
555
|
-
W(
|
|
556
|
-
}, t.handleOverlayOnClick = function(
|
|
557
|
-
t.shouldClose === null && (t.shouldClose = !0), t.shouldClose && t.props.shouldCloseOnOverlayClick && (t.ownerHandlesClose() ? t.requestClose(
|
|
554
|
+
}, t.handleKeyDown = function(d) {
|
|
555
|
+
W(d) && (0, n.default)(t.content, d), t.props.shouldCloseOnEsc && b(d) && (d.stopPropagation(), t.requestClose(d));
|
|
556
|
+
}, t.handleOverlayOnClick = function(d) {
|
|
557
|
+
t.shouldClose === null && (t.shouldClose = !0), t.shouldClose && t.props.shouldCloseOnOverlayClick && (t.ownerHandlesClose() ? t.requestClose(d) : t.focusContent()), t.shouldClose = null;
|
|
558
558
|
}, t.handleContentOnMouseUp = function() {
|
|
559
559
|
t.shouldClose = !1;
|
|
560
|
-
}, t.handleOverlayOnMouseDown = function(
|
|
561
|
-
!t.props.shouldCloseOnOverlayClick &&
|
|
560
|
+
}, t.handleOverlayOnMouseDown = function(d) {
|
|
561
|
+
!t.props.shouldCloseOnOverlayClick && d.target == t.overlay && d.preventDefault();
|
|
562
562
|
}, t.handleContentOnClick = function() {
|
|
563
563
|
t.shouldClose = !1;
|
|
564
564
|
}, t.handleContentOnMouseDown = function() {
|
|
565
565
|
t.shouldClose = !1;
|
|
566
|
-
}, t.requestClose = function(
|
|
567
|
-
return t.ownerHandlesClose() && t.props.onRequestClose(
|
|
566
|
+
}, t.requestClose = function(d) {
|
|
567
|
+
return t.ownerHandlesClose() && t.props.onRequestClose(d);
|
|
568
568
|
}, t.ownerHandlesClose = function() {
|
|
569
569
|
return t.props.onRequestClose;
|
|
570
570
|
}, t.shouldBeClosed = function() {
|
|
571
571
|
return !t.state.isOpen && !t.state.beforeClose;
|
|
572
572
|
}, t.contentHasFocus = function() {
|
|
573
573
|
return document.activeElement === t.content || t.content.contains(document.activeElement);
|
|
574
|
-
}, t.buildClassName = function(
|
|
575
|
-
var S = (typeof
|
|
576
|
-
base: U[
|
|
577
|
-
afterOpen: U[
|
|
578
|
-
beforeClose: U[
|
|
579
|
-
},
|
|
580
|
-
return t.state.afterOpen && (
|
|
581
|
-
}, t.attributesFromObject = function(
|
|
582
|
-
return Object.keys(
|
|
583
|
-
return S[
|
|
574
|
+
}, t.buildClassName = function(d, M) {
|
|
575
|
+
var S = (typeof M > "u" ? "undefined" : l(M)) === "object" ? M : {
|
|
576
|
+
base: U[d],
|
|
577
|
+
afterOpen: U[d] + "--after-open",
|
|
578
|
+
beforeClose: U[d] + "--before-close"
|
|
579
|
+
}, N = S.base;
|
|
580
|
+
return t.state.afterOpen && (N = N + " " + S.afterOpen), t.state.beforeClose && (N = N + " " + S.beforeClose), typeof M == "string" && M ? N + " " + M : N;
|
|
581
|
+
}, t.attributesFromObject = function(d, M) {
|
|
582
|
+
return Object.keys(M).reduce(function(S, N) {
|
|
583
|
+
return S[d + "-" + N] = M[N], S;
|
|
584
584
|
}, {});
|
|
585
585
|
}, t.state = {
|
|
586
586
|
afterOpen: !1,
|
|
@@ -594,8 +594,8 @@ function Ue() {
|
|
|
594
594
|
}
|
|
595
595
|
}, {
|
|
596
596
|
key: "componentDidUpdate",
|
|
597
|
-
value: function(t,
|
|
598
|
-
process.env.NODE_ENV !== "production" && (t.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), t.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !t.isOpen ? this.open() : !this.props.isOpen && t.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
597
|
+
value: function(t, d) {
|
|
598
|
+
process.env.NODE_ENV !== "production" && (t.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), t.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !t.isOpen ? this.open() : !this.props.isOpen && t.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !d.isOpen && this.focusContent();
|
|
599
599
|
}
|
|
600
600
|
}, {
|
|
601
601
|
key: "componentWillUnmount",
|
|
@@ -605,27 +605,27 @@ function Ue() {
|
|
|
605
605
|
}, {
|
|
606
606
|
key: "beforeOpen",
|
|
607
607
|
value: function() {
|
|
608
|
-
var t = this.props,
|
|
609
|
-
|
|
608
|
+
var t = this.props, d = t.appElement, M = t.ariaHideApp, S = t.htmlOpenClassName, N = t.bodyOpenClassName, x = t.parentSelector, I = x && x().ownerDocument || document;
|
|
609
|
+
N && _.add(I.body, N), S && _.add(I.getElementsByTagName("html")[0], S), M && (v += 1, i.hide(d)), q.default.register(this);
|
|
610
610
|
}
|
|
611
611
|
// Don't steal focus from inner elements
|
|
612
612
|
}, {
|
|
613
613
|
key: "render",
|
|
614
614
|
value: function() {
|
|
615
|
-
var t = this.props,
|
|
615
|
+
var t = this.props, d = t.id, M = t.className, S = t.overlayClassName, N = t.defaultStyles, x = t.children, I = M ? {} : N.content, z = S ? {} : N.overlay;
|
|
616
616
|
if (this.shouldBeClosed())
|
|
617
617
|
return null;
|
|
618
|
-
var
|
|
618
|
+
var Ee = {
|
|
619
619
|
ref: this.setOverlayRef,
|
|
620
620
|
className: this.buildClassName("overlay", S),
|
|
621
|
-
style: h({},
|
|
621
|
+
style: h({}, z, this.props.style.overlay),
|
|
622
622
|
onClick: this.handleOverlayOnClick,
|
|
623
623
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
624
|
-
},
|
|
625
|
-
id:
|
|
624
|
+
}, Ce = h({
|
|
625
|
+
id: d,
|
|
626
626
|
ref: this.setContentRef,
|
|
627
627
|
style: h({}, I, this.props.style.content),
|
|
628
|
-
className: this.buildClassName("content",
|
|
628
|
+
className: this.buildClassName("content", M),
|
|
629
629
|
tabIndex: "-1",
|
|
630
630
|
onKeyDown: this.handleKeyDown,
|
|
631
631
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -635,18 +635,18 @@ function Ue() {
|
|
|
635
635
|
"aria-label": this.props.contentLabel
|
|
636
636
|
}, this.attributesFromObject("aria", h({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
637
637
|
"data-testid": this.props.testId
|
|
638
|
-
}),
|
|
639
|
-
return this.props.overlayElement(
|
|
638
|
+
}), we = this.props.contentElement(Ce, x);
|
|
639
|
+
return this.props.overlayElement(Ee, we);
|
|
640
640
|
}
|
|
641
641
|
}]), o;
|
|
642
642
|
}(c.Component);
|
|
643
|
-
|
|
643
|
+
C.defaultProps = {
|
|
644
644
|
style: {
|
|
645
645
|
overlay: {},
|
|
646
646
|
content: {}
|
|
647
647
|
},
|
|
648
648
|
defaultStyles: {}
|
|
649
|
-
},
|
|
649
|
+
}, C.propTypes = {
|
|
650
650
|
isOpen: e.default.bool.isRequired,
|
|
651
651
|
defaultStyles: e.default.shape({
|
|
652
652
|
content: e.default.object,
|
|
@@ -683,24 +683,24 @@ function Ue() {
|
|
|
683
683
|
overlayElement: e.default.func,
|
|
684
684
|
contentElement: e.default.func,
|
|
685
685
|
testId: e.default.string
|
|
686
|
-
}, a.default =
|
|
687
|
-
}(
|
|
686
|
+
}, a.default = C, p.exports = a.default;
|
|
687
|
+
}(G, G.exports)), G.exports;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
var
|
|
691
|
-
|
|
689
|
+
function Oe() {
|
|
690
|
+
var p = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
691
|
+
p != null && this.setState(p);
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function ge(p) {
|
|
694
694
|
function a(h) {
|
|
695
|
-
var l = this.constructor.getDerivedStateFromProps(
|
|
695
|
+
var l = this.constructor.getDerivedStateFromProps(p, h);
|
|
696
696
|
return l ?? null;
|
|
697
697
|
}
|
|
698
698
|
this.setState(a.bind(this));
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function _e(p, a) {
|
|
701
701
|
try {
|
|
702
702
|
var h = this.props, l = this.state;
|
|
703
|
-
this.props =
|
|
703
|
+
this.props = p, this.state = a, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
|
704
704
|
h,
|
|
705
705
|
l
|
|
706
706
|
);
|
|
@@ -708,22 +708,22 @@ function we(d, a) {
|
|
|
708
708
|
this.props = h, this.state = l;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
function
|
|
715
|
-
var a =
|
|
711
|
+
Oe.__suppressDeprecationWarning = !0;
|
|
712
|
+
ge.__suppressDeprecationWarning = !0;
|
|
713
|
+
_e.__suppressDeprecationWarning = !0;
|
|
714
|
+
function xe(p) {
|
|
715
|
+
var a = p.prototype;
|
|
716
716
|
if (!a || !a.isReactComponent)
|
|
717
717
|
throw new Error("Can only polyfill class components");
|
|
718
|
-
if (typeof
|
|
719
|
-
return
|
|
718
|
+
if (typeof p.getDerivedStateFromProps != "function" && typeof a.getSnapshotBeforeUpdate != "function")
|
|
719
|
+
return p;
|
|
720
720
|
var h = null, l = null, u = null;
|
|
721
721
|
if (typeof a.componentWillMount == "function" ? h = "componentWillMount" : typeof a.UNSAFE_componentWillMount == "function" && (h = "UNSAFE_componentWillMount"), typeof a.componentWillReceiveProps == "function" ? l = "componentWillReceiveProps" : typeof a.UNSAFE_componentWillReceiveProps == "function" && (l = "UNSAFE_componentWillReceiveProps"), typeof a.componentWillUpdate == "function" ? u = "componentWillUpdate" : typeof a.UNSAFE_componentWillUpdate == "function" && (u = "UNSAFE_componentWillUpdate"), h !== null || l !== null || u !== null) {
|
|
722
|
-
var c =
|
|
722
|
+
var c = p.displayName || p.name, O = typeof p.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
723
723
|
throw Error(
|
|
724
724
|
`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
725
725
|
|
|
726
|
-
` + c + " uses " +
|
|
726
|
+
` + c + " uses " + O + " but also contains the following legacy lifecycles:" + (h !== null ? `
|
|
727
727
|
` + h : "") + (l !== null ? `
|
|
728
728
|
` + l : "") + (u !== null ? `
|
|
729
729
|
` + u : "") + `
|
|
@@ -732,76 +732,76 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
732
732
|
https://fb.me/react-async-component-lifecycle-hooks`
|
|
733
733
|
);
|
|
734
734
|
}
|
|
735
|
-
if (typeof
|
|
735
|
+
if (typeof p.getDerivedStateFromProps == "function" && (a.componentWillMount = Oe, a.componentWillReceiveProps = ge), typeof a.getSnapshotBeforeUpdate == "function") {
|
|
736
736
|
if (typeof a.componentDidUpdate != "function")
|
|
737
737
|
throw new Error(
|
|
738
738
|
"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
|
|
739
739
|
);
|
|
740
|
-
a.componentWillUpdate =
|
|
740
|
+
a.componentWillUpdate = _e;
|
|
741
741
|
var e = a.componentDidUpdate;
|
|
742
|
-
a.componentDidUpdate = function(
|
|
742
|
+
a.componentDidUpdate = function(m, s, n) {
|
|
743
743
|
var f = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : n;
|
|
744
|
-
e.call(this,
|
|
744
|
+
e.call(this, m, s, f);
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
return
|
|
747
|
+
return p;
|
|
748
748
|
}
|
|
749
|
-
const
|
|
749
|
+
const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
750
750
|
__proto__: null,
|
|
751
|
-
polyfill:
|
|
752
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
753
|
-
var
|
|
754
|
-
function
|
|
755
|
-
if (
|
|
756
|
-
|
|
751
|
+
polyfill: xe
|
|
752
|
+
}, Symbol.toStringTag, { value: "Module" })), Ue = /* @__PURE__ */ Se(qe);
|
|
753
|
+
var de;
|
|
754
|
+
function We() {
|
|
755
|
+
if (de) return H;
|
|
756
|
+
de = 1, Object.defineProperty(H, "__esModule", {
|
|
757
757
|
value: !0
|
|
758
|
-
}),
|
|
759
|
-
var
|
|
760
|
-
for (var
|
|
761
|
-
var
|
|
762
|
-
for (var r in
|
|
763
|
-
Object.prototype.hasOwnProperty.call(
|
|
758
|
+
}), H.bodyOpenClassName = H.portalClassName = void 0;
|
|
759
|
+
var p = Object.assign || function(b) {
|
|
760
|
+
for (var v = 1; v < arguments.length; v++) {
|
|
761
|
+
var C = arguments[v];
|
|
762
|
+
for (var r in C)
|
|
763
|
+
Object.prototype.hasOwnProperty.call(C, r) && (b[r] = C[r]);
|
|
764
764
|
}
|
|
765
765
|
return b;
|
|
766
766
|
}, a = /* @__PURE__ */ function() {
|
|
767
|
-
function b(
|
|
768
|
-
for (var r = 0; r <
|
|
769
|
-
var o =
|
|
770
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(
|
|
767
|
+
function b(v, C) {
|
|
768
|
+
for (var r = 0; r < C.length; r++) {
|
|
769
|
+
var o = C[r];
|
|
770
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(v, o.key, o);
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
return function(
|
|
774
|
-
return
|
|
773
|
+
return function(v, C, r) {
|
|
774
|
+
return C && b(v.prototype, C), r && b(v, r), v;
|
|
775
775
|
};
|
|
776
|
-
}(), h =
|
|
776
|
+
}(), h = me, l = w(h), u = Ne, c = w(u), O = /* @__PURE__ */ ve(), e = w(O), g = Fe(), m = w(g), s = ye(), n = _(s), f = ee(), i = w(f), y = Ue;
|
|
777
777
|
function _(b) {
|
|
778
778
|
if (b && b.__esModule)
|
|
779
779
|
return b;
|
|
780
|
-
var
|
|
780
|
+
var v = {};
|
|
781
781
|
if (b != null)
|
|
782
|
-
for (var
|
|
783
|
-
Object.prototype.hasOwnProperty.call(b,
|
|
784
|
-
return
|
|
782
|
+
for (var C in b)
|
|
783
|
+
Object.prototype.hasOwnProperty.call(b, C) && (v[C] = b[C]);
|
|
784
|
+
return v.default = b, v;
|
|
785
785
|
}
|
|
786
786
|
function w(b) {
|
|
787
787
|
return b && b.__esModule ? b : { default: b };
|
|
788
788
|
}
|
|
789
|
-
function R(b,
|
|
790
|
-
if (!(b instanceof
|
|
789
|
+
function R(b, v) {
|
|
790
|
+
if (!(b instanceof v))
|
|
791
791
|
throw new TypeError("Cannot call a class as a function");
|
|
792
792
|
}
|
|
793
|
-
function A(b,
|
|
793
|
+
function A(b, v) {
|
|
794
794
|
if (!b)
|
|
795
795
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
796
|
-
return
|
|
796
|
+
return v && (typeof v == "object" || typeof v == "function") ? v : b;
|
|
797
797
|
}
|
|
798
|
-
function q(b,
|
|
799
|
-
if (typeof
|
|
800
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
801
|
-
b.prototype = Object.create(
|
|
798
|
+
function q(b, v) {
|
|
799
|
+
if (typeof v != "function" && v !== null)
|
|
800
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof v);
|
|
801
|
+
b.prototype = Object.create(v && v.prototype, { constructor: { value: b, enumerable: !1, writable: !0, configurable: !0 } }), v && (Object.setPrototypeOf ? Object.setPrototypeOf(b, v) : b.__proto__ = v);
|
|
802
802
|
}
|
|
803
|
-
var
|
|
804
|
-
return document.createElement(
|
|
803
|
+
var L = H.portalClassName = "ReactModalPortal", B = H.bodyOpenClassName = "ReactModal__Body--open", F = f.canUseDOM && c.default.createPortal !== void 0, K = function(v) {
|
|
804
|
+
return document.createElement(v);
|
|
805
805
|
}, $ = function() {
|
|
806
806
|
return F ? c.default.createPortal : c.default.unstable_renderSubtreeIntoContainer;
|
|
807
807
|
};
|
|
@@ -809,24 +809,24 @@ function Ie() {
|
|
|
809
809
|
return b();
|
|
810
810
|
}
|
|
811
811
|
var W = function(b) {
|
|
812
|
-
q(
|
|
813
|
-
function
|
|
814
|
-
var
|
|
815
|
-
R(this,
|
|
816
|
-
for (var t = arguments.length,
|
|
817
|
-
|
|
818
|
-
return
|
|
812
|
+
q(v, b);
|
|
813
|
+
function v() {
|
|
814
|
+
var C, r, o, E;
|
|
815
|
+
R(this, v);
|
|
816
|
+
for (var t = arguments.length, d = Array(t), M = 0; M < t; M++)
|
|
817
|
+
d[M] = arguments[M];
|
|
818
|
+
return E = (r = (o = A(this, (C = v.__proto__ || Object.getPrototypeOf(v)).call.apply(C, [this].concat(d))), o), o.removePortal = function() {
|
|
819
819
|
!F && c.default.unmountComponentAtNode(o.node);
|
|
820
820
|
var S = U(o.props.parentSelector);
|
|
821
821
|
S && S.contains(o.node) ? S.removeChild(o.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
|
|
822
822
|
}, o.portalRef = function(S) {
|
|
823
823
|
o.portal = S;
|
|
824
824
|
}, o.renderPortal = function(S) {
|
|
825
|
-
var
|
|
826
|
-
o.portalRef(
|
|
827
|
-
}, r), A(o,
|
|
825
|
+
var N = $(), x = N(o, l.default.createElement(m.default, p({ defaultStyles: v.defaultStyles }, S)), o.node);
|
|
826
|
+
o.portalRef(x);
|
|
827
|
+
}, r), A(o, E);
|
|
828
828
|
}
|
|
829
|
-
return a(
|
|
829
|
+
return a(v, [{
|
|
830
830
|
key: "componentDidMount",
|
|
831
831
|
value: function() {
|
|
832
832
|
if (f.canUseDOM) {
|
|
@@ -838,25 +838,25 @@ function Ie() {
|
|
|
838
838
|
}, {
|
|
839
839
|
key: "getSnapshotBeforeUpdate",
|
|
840
840
|
value: function(r) {
|
|
841
|
-
var o = U(r.parentSelector),
|
|
842
|
-
return { prevParent: o, nextParent:
|
|
841
|
+
var o = U(r.parentSelector), E = U(this.props.parentSelector);
|
|
842
|
+
return { prevParent: o, nextParent: E };
|
|
843
843
|
}
|
|
844
844
|
}, {
|
|
845
845
|
key: "componentDidUpdate",
|
|
846
|
-
value: function(r, o,
|
|
846
|
+
value: function(r, o, E) {
|
|
847
847
|
if (f.canUseDOM) {
|
|
848
|
-
var t = this.props,
|
|
849
|
-
r.portalClassName !==
|
|
850
|
-
var S =
|
|
851
|
-
|
|
848
|
+
var t = this.props, d = t.isOpen, M = t.portalClassName;
|
|
849
|
+
r.portalClassName !== M && (this.node.className = M);
|
|
850
|
+
var S = E.prevParent, N = E.nextParent;
|
|
851
|
+
N !== S && (S.removeChild(this.node), N.appendChild(this.node)), !(!r.isOpen && !d) && !F && this.renderPortal(this.props);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
}, {
|
|
855
855
|
key: "componentWillUnmount",
|
|
856
856
|
value: function() {
|
|
857
857
|
if (!(!f.canUseDOM || !this.node || !this.portal)) {
|
|
858
|
-
var r = this.portal.state, o = Date.now(),
|
|
859
|
-
|
|
858
|
+
var r = this.portal.state, o = Date.now(), E = r.isOpen && this.props.closeTimeoutMS && (r.closesAt || o + this.props.closeTimeoutMS);
|
|
859
|
+
E ? (r.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, E - o)) : this.removePortal();
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
}, {
|
|
@@ -866,9 +866,9 @@ function Ie() {
|
|
|
866
866
|
return null;
|
|
867
867
|
!this.node && F && (this.node = K("div"));
|
|
868
868
|
var r = $();
|
|
869
|
-
return r(l.default.createElement(
|
|
869
|
+
return r(l.default.createElement(m.default, p({
|
|
870
870
|
ref: this.portalRef,
|
|
871
|
-
defaultStyles:
|
|
871
|
+
defaultStyles: v.defaultStyles
|
|
872
872
|
}, this.props)), this.node);
|
|
873
873
|
}
|
|
874
874
|
}], [{
|
|
@@ -878,7 +878,7 @@ function Ie() {
|
|
|
878
878
|
}
|
|
879
879
|
/* eslint-disable react/no-unused-prop-types */
|
|
880
880
|
/* eslint-enable react/no-unused-prop-types */
|
|
881
|
-
}]),
|
|
881
|
+
}]), v;
|
|
882
882
|
}(h.Component);
|
|
883
883
|
return W.propTypes = {
|
|
884
884
|
isOpen: e.default.bool.isRequired,
|
|
@@ -921,8 +921,8 @@ function Ie() {
|
|
|
921
921
|
contentElement: e.default.func
|
|
922
922
|
}, W.defaultProps = {
|
|
923
923
|
isOpen: !1,
|
|
924
|
-
portalClassName:
|
|
925
|
-
bodyOpenClassName:
|
|
924
|
+
portalClassName: L,
|
|
925
|
+
bodyOpenClassName: B,
|
|
926
926
|
role: "dialog",
|
|
927
927
|
ariaHideApp: !0,
|
|
928
928
|
closeTimeoutMS: 0,
|
|
@@ -934,18 +934,18 @@ function Ie() {
|
|
|
934
934
|
parentSelector: function() {
|
|
935
935
|
return document.body;
|
|
936
936
|
},
|
|
937
|
-
overlayElement: function(
|
|
937
|
+
overlayElement: function(v, C) {
|
|
938
938
|
return l.default.createElement(
|
|
939
939
|
"div",
|
|
940
|
-
|
|
941
|
-
|
|
940
|
+
v,
|
|
941
|
+
C
|
|
942
942
|
);
|
|
943
943
|
},
|
|
944
|
-
contentElement: function(
|
|
944
|
+
contentElement: function(v, C) {
|
|
945
945
|
return l.default.createElement(
|
|
946
946
|
"div",
|
|
947
|
-
|
|
948
|
-
|
|
947
|
+
v,
|
|
948
|
+
C
|
|
949
949
|
);
|
|
950
950
|
}
|
|
951
951
|
}, W.defaultStyles = {
|
|
@@ -973,97 +973,23 @@ function Ie() {
|
|
|
973
973
|
}
|
|
974
974
|
}, (0, y.polyfill)(W), process.env.NODE_ENV !== "production" && (W.setCreateHTMLElement = function(b) {
|
|
975
975
|
return K = b;
|
|
976
|
-
}),
|
|
976
|
+
}), H.default = W, H;
|
|
977
977
|
}
|
|
978
|
-
var
|
|
979
|
-
function
|
|
980
|
-
return
|
|
978
|
+
var pe;
|
|
979
|
+
function He() {
|
|
980
|
+
return pe || (pe = 1, function(p, a) {
|
|
981
981
|
Object.defineProperty(a, "__esModule", {
|
|
982
982
|
value: !0
|
|
983
983
|
});
|
|
984
|
-
var h =
|
|
984
|
+
var h = We(), l = u(h);
|
|
985
985
|
function u(c) {
|
|
986
986
|
return c && c.__esModule ? c : { default: c };
|
|
987
987
|
}
|
|
988
|
-
a.default = l.default,
|
|
989
|
-
}(
|
|
988
|
+
a.default = l.default, p.exports = a.default;
|
|
989
|
+
}(Y, Y.exports)), Y.exports;
|
|
990
990
|
}
|
|
991
|
-
var
|
|
992
|
-
const
|
|
993
|
-
const {
|
|
994
|
-
openState: a,
|
|
995
|
-
closePopupCallback: h,
|
|
996
|
-
headingIconFile: l,
|
|
997
|
-
headingText: u,
|
|
998
|
-
subHeadingText: c,
|
|
999
|
-
positiveButtonText: g,
|
|
1000
|
-
negativeButtonText: e,
|
|
1001
|
-
classNamePositiveBtn: O,
|
|
1002
|
-
classNameNegativeBtn: p,
|
|
1003
|
-
positiveActionCallback: s,
|
|
1004
|
-
negativeActionCallback: n
|
|
1005
|
-
} = d;
|
|
1006
|
-
return /* @__PURE__ */ H.jsxs(
|
|
1007
|
-
Ve,
|
|
1008
|
-
{
|
|
1009
|
-
isOpen: a,
|
|
1010
|
-
onRequestClose: h,
|
|
1011
|
-
shouldCloseOnOverlayClick: !1,
|
|
1012
|
-
style: {
|
|
1013
|
-
overlay: {
|
|
1014
|
-
backgroundColor: "rgba(52, 64, 84, 0.5)",
|
|
1015
|
-
position: "fixed",
|
|
1016
|
-
alignContent: "center",
|
|
1017
|
-
justifyContent: "center",
|
|
1018
|
-
zIndex: 1030,
|
|
1019
|
-
display: a ? "block" : "none"
|
|
1020
|
-
},
|
|
1021
|
-
content: {
|
|
1022
|
-
zIndex: 1030,
|
|
1023
|
-
padding: "24px",
|
|
1024
|
-
maxWidth: "750px",
|
|
1025
|
-
maxHeight: "600px",
|
|
1026
|
-
width: "400px",
|
|
1027
|
-
height: "fit-content",
|
|
1028
|
-
margin: "auto",
|
|
1029
|
-
borderRadius: "12px",
|
|
1030
|
-
overflow: "unset",
|
|
1031
|
-
display: a ? "block" : "none"
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
children: [
|
|
1035
|
-
l == "warning" && /* @__PURE__ */ H.jsx("div", { className: "hfl-hx_warning hfl-mb-4 hfl-flex hfl-h-12 hfl-w-12 hfl-items-center hfl-justify-center hfl-rounded-full hfl-border-8 hfl-border-Warning-50 hfl-bg-Warning-100 hfl-text-Warning-600", children: /* @__PURE__ */ H.jsx("i", { className: "hx_warning hfl-text-5" }) }),
|
|
1036
|
-
/* @__PURE__ */ H.jsx(ne, { variant: "Medium", type: "Text xl", className: "hfl-mt-5 hfl-text-Gray-900", children: u }),
|
|
1037
|
-
c && /* @__PURE__ */ H.jsx(ne, { variant: "Regular", type: "Text sm", className: "hfl-mt-1 hfl-text-Gray-500 ", children: c }),
|
|
1038
|
-
/* @__PURE__ */ H.jsxs("div", { className: "hfl-mt-4 hfl-flex hfl-items-center hfl-justify-center hfl-gap-4", children: [
|
|
1039
|
-
e && /* @__PURE__ */ H.jsx(
|
|
1040
|
-
oe,
|
|
1041
|
-
{
|
|
1042
|
-
size: "md",
|
|
1043
|
-
textField: e,
|
|
1044
|
-
hierarchy: "Primary",
|
|
1045
|
-
className: p || "",
|
|
1046
|
-
onClick: n,
|
|
1047
|
-
"data-qa": "negative-action"
|
|
1048
|
-
}
|
|
1049
|
-
),
|
|
1050
|
-
g && /* @__PURE__ */ H.jsx(
|
|
1051
|
-
oe,
|
|
1052
|
-
{
|
|
1053
|
-
size: "md",
|
|
1054
|
-
textField: g,
|
|
1055
|
-
hierarchy: "Secondary",
|
|
1056
|
-
className: O || "",
|
|
1057
|
-
onClick: s,
|
|
1058
|
-
"data-qa": "positive-action"
|
|
1059
|
-
}
|
|
1060
|
-
)
|
|
1061
|
-
] })
|
|
1062
|
-
]
|
|
1063
|
-
}
|
|
1064
|
-
);
|
|
1065
|
-
};
|
|
991
|
+
var Ie = He();
|
|
992
|
+
const Ke = /* @__PURE__ */ Me(Ie);
|
|
1066
993
|
export {
|
|
1067
|
-
|
|
1068
|
-
Ve as M
|
|
994
|
+
Ke as M
|
|
1069
995
|
};
|