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.
Files changed (31) hide show
  1. package/dist/AlertPopup/index.js +77 -3
  2. package/dist/AllInvestigations/index.js +1 -1
  3. package/dist/AllInvestigationsTable-9CE_uDGv.cjs +80 -0
  4. package/dist/{AllInvestigationsTable-XjuW68nm.js → AllInvestigationsTable-HC9dOdiS.js} +28 -27
  5. package/dist/Attachments/index.js +1 -1
  6. package/dist/CustomDropdown/index.js +1 -1
  7. package/dist/DateTimePicker/DateAndTimePicker/index.js +17 -16
  8. package/dist/PatientAddEdit/index.js +5319 -0
  9. package/dist/PediatricsCalculator/index.js +1 -1
  10. package/dist/{PediatricsCalculatorTable-DGWlajqt.js → PediatricsCalculatorTable-CB1YOoVy.js} +26 -25
  11. package/dist/PediatricsCalculatorTable-CPXBdrqk.cjs +1 -0
  12. package/dist/ToggleButtons/index.js +1 -1
  13. package/dist/clsx-C11secjj.cjs +1 -0
  14. package/dist/clsx-OuTLNxxd.js +16 -0
  15. package/dist/dayjs.min-D8X6dnmr.cjs +1 -0
  16. package/dist/dayjs.min-SMxpcMQi.js +284 -0
  17. package/dist/hplx-feature-library.css +1 -1
  18. package/dist/{AlertPopup-CSD_rZzv.js → index-BFfWEART.js} +302 -376
  19. package/dist/index-BVfQUI8j.cjs +98 -0
  20. package/dist/index-CHAEpyb1.cjs +32 -0
  21. package/dist/index-Cl3h7bnz.js +7118 -0
  22. package/dist/index.js +4 -4
  23. package/dist/types/PatientAddEditTypes/index.js +1 -0
  24. package/package.json +2 -6
  25. package/dist/AlertPopup-DdrHGPKR.cjs +0 -32
  26. package/dist/AllInvestigationsTable-pe1ZJejz.cjs +0 -80
  27. package/dist/PediatricsCalculatorTable-DSVe0_z0.cjs +0 -1
  28. package/dist/dayjs.min-DQn5T5hy.js +0 -298
  29. package/dist/dayjs.min-DvmTfmHo.cjs +0 -1
  30. package/dist/index-4whwJbrk.js +0 -6867
  31. package/dist/index-C6KQLMQs.cjs +0 -92
@@ -1,9 +1,9 @@
1
- import { r as ye, a as Re, g as Te, j as H, b as ne, K as oe } from "./index-4whwJbrk.js";
2
- import be from "react";
3
- import xe from "react-dom";
4
- var G = { exports: {} }, k = {}, J = { exports: {} }, T = {}, Q = { exports: {} }, re;
5
- function ge() {
6
- return re || (re = 1, function(d, a) {
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 g(n) {
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), g(f)) return !1;
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 O(n, f) {
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 p(n) {
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) && O(n, !i);
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(p);
57
+ return f.filter(m);
58
58
  }
59
- d.exports = a.default;
60
- }(Q, Q.exports)), Q.exports;
59
+ p.exports = a.default;
60
+ }(J, J.exports)), J.exports;
61
61
  }
62
- var ae;
63
- function Ae() {
64
- if (ae) return T;
65
- ae = 1, Object.defineProperty(T, "__esModule", {
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 = g, T.log = e, T.handleBlur = O, T.handleFocus = p, T.markForFocusLater = s, T.returnFocus = n, T.popWithoutFocus = f, T.setupScopedFocus = i, T.teardownScopedFocus = y;
68
- var d = ge(), a = h(d);
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 g() {
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 O() {
82
+ function g() {
83
83
  c = !0;
84
84
  }
85
- function p() {
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", O, !1), document.addEventListener("focus", p, !0)) : (window.attachEvent("onBlur", O), document.attachEvent("onFocus", p));
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", O), document.removeEventListener("focus", p)) : (window.detachEvent("onBlur", O), document.detachEvent("onFocus", p));
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 X = { exports: {} }, le;
121
- function De() {
122
- return le || (le = 1, function(d, a) {
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 = g;
126
- var h = ge(), l = u(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 g(e, O) {
135
- var p = (0, l.default)(e);
136
- if (!p.length) {
137
- O.preventDefault();
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 = O.shiftKey, f = p[0], i = p[p.length - 1], y = c();
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
- O.preventDefault(), s.focus();
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 = p.indexOf(y);
152
- if (R > -1 && (R += n ? -1 : 1), s = p[R], typeof s > "u") {
153
- O.preventDefault(), s = n ? i : f, s.focus();
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
- O.preventDefault(), s.focus();
156
+ g.preventDefault(), s.focus();
157
157
  }
158
158
  }
159
- d.exports = a.default;
160
- }(X, X.exports)), X.exports;
159
+ p.exports = a.default;
160
+ }(Q, Q.exports)), Q.exports;
161
161
  }
162
- var x = {}, Z, se;
163
- function Pe() {
164
- if (se) return Z;
165
- se = 1;
166
- var d = process.env.NODE_ENV !== "production", a = function() {
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 (d) {
168
+ if (p) {
169
169
  var h = function(u, c) {
170
- var g = arguments.length;
171
- c = new Array(g > 1 ? g - 1 : 0);
172
- for (var e = 1; e < g; 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 O = 0, p = "Warning: " + u.replace(/%s/g, function() {
175
- return c[O++];
174
+ var g = 0, m = "Warning: " + u.replace(/%s/g, function() {
175
+ return c[g++];
176
176
  });
177
- typeof console < "u" && console.error(p);
177
+ typeof console < "u" && console.error(m);
178
178
  try {
179
- throw new Error(p);
179
+ throw new Error(m);
180
180
  } catch {
181
181
  }
182
182
  };
183
183
  a = function(l, u, c) {
184
- var g = arguments.length;
185
- c = new Array(g > 2 ? g - 2 : 0);
186
- for (var e = 2; e < g; 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 Z = a, Z;
195
+ return X = a, X;
196
196
  }
197
- var D = {}, ee = { exports: {} };
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 ie;
204
- function Fe() {
205
- return ie || (ie = 1, function(d) {
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
- d.exports ? d.exports = h : window.ExecutionEnvironment = h;
213
+ p.exports ? p.exports = h : window.ExecutionEnvironment = h;
214
214
  })();
215
- }(ee)), ee.exports;
215
+ }(Z)), Z.exports;
216
216
  }
217
- var ue;
218
- function te() {
219
- if (ue) return D;
220
- ue = 1, Object.defineProperty(D, "__esModule", {
217
+ var le;
218
+ function ee() {
219
+ if (le) return P;
220
+ le = 1, Object.defineProperty(P, "__esModule", {
221
221
  value: !0
222
- }), D.canUseDOM = D.SafeNodeList = D.SafeHTMLCollection = void 0;
223
- var d = Fe(), a = h(d);
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 D.SafeHTMLCollection = l.canUseDOM ? window.HTMLCollection : {}, D.SafeNodeList = l.canUseDOM ? window.NodeList : {}, D.canUseDOM = l.canUseDOM, D.default = u, D;
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 fe;
231
- function Oe() {
232
- if (fe) return x;
233
- fe = 1, Object.defineProperty(x, "__esModule", {
230
+ var se;
231
+ function ye() {
232
+ if (se) return D;
233
+ se = 1, Object.defineProperty(D, "__esModule", {
234
234
  value: !0
235
- }), x.resetState = c, x.log = g, x.assertNodeList = e, x.setElement = O, x.validateElement = p, x.hide = s, x.show = n, x.documentNotReadyOrSSRTesting = f;
236
- var d = Pe(), a = l(d), h = te();
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 g() {
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 O(i) {
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 p(i) {
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 = p(i)[Symbol.iterator](), A; !(y = (A = R.next()).done); y = !0) {
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 (P) {
278
- _ = !0, w = P;
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 = p(i)[Symbol.iterator](), A; !(y = (A = R.next()).done); y = !0) {
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 (P) {
296
- _ = !0, w = P;
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 x;
309
+ return D;
310
310
  }
311
- var B = {}, ce;
312
- function Le() {
313
- if (ce) return B;
314
- ce = 1, Object.defineProperty(B, "__esModule", {
311
+ var k = {}, ie;
312
+ function Pe() {
313
+ if (ie) return k;
314
+ ie = 1, Object.defineProperty(k, "__esModule", {
315
315
  value: !0
316
- }), B.resetState = l, B.log = u;
317
- var d = {}, a = {};
318
- function h(p, s) {
319
- p.classList.remove(s);
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 p = document.getElementsByTagName("html")[0];
323
- for (var s in d)
324
- h(p, d[s]);
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
- d = {}, a = {};
328
+ p = {}, a = {};
329
329
  }
330
330
  function u() {
331
331
  if (process.env.NODE_ENV !== "production") {
332
- var p = document.getElementsByTagName("html")[0].className, s = `Show tracked classes:
332
+ var m = document.getElementsByTagName("html")[0].className, s = `Show tracked classes:
333
333
 
334
334
  `;
335
- s += "<html /> (" + p + `):
335
+ s += "<html /> (" + m + `):
336
336
  `;
337
- for (var n in d)
338
- s += " " + n + " " + d[n] + `
337
+ for (var n in p)
338
+ s += " " + n + " " + p[n] + `
339
339
  `;
340
- p = document.body.className, s += `
340
+ m = document.body.className, s += `
341
341
 
342
- doc.body (` + p + `):
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
- }, g = function(s, n) {
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
- }, O = function(s, n, f) {
359
+ }, g = function(s, n, f) {
360
360
  f.forEach(function(i) {
361
- g(n, i), n[i] === 0 && s.remove(i);
361
+ O(n, i), n[i] === 0 && s.remove(i);
362
362
  });
363
363
  };
364
- return B.add = function(s, n) {
365
- return e(s.classList, s.nodeName.toLowerCase() == "html" ? d : a, n.split(" "));
366
- }, B.remove = function(s, n) {
367
- return O(s.classList, s.nodeName.toLowerCase() == "html" ? d : a, n.split(" "));
368
- }, B;
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 = {}, de;
371
- function _e() {
372
- if (de) return V;
373
- de = 1, Object.defineProperty(V, "__esModule", {
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 d(c, g) {
377
- if (!(c instanceof g))
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 g = this;
382
- d(this, c), this.register = function(e) {
383
- if (g.openInstances.indexOf(e) !== -1) {
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
- g.openInstances.push(e), g.emit("register");
387
+ O.openInstances.push(e), O.emit("register");
388
388
  }, this.deregister = function(e) {
389
- var O = g.openInstances.indexOf(e);
390
- if (O === -1) {
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
- g.openInstances.splice(O, 1), g.emit("deregister");
394
+ O.openInstances.splice(g, 1), O.emit("deregister");
395
395
  }, this.subscribe = function(e) {
396
- g.subscribers.push(e);
396
+ O.subscribers.push(e);
397
397
  }, this.emit = function(e) {
398
- g.subscribers.forEach(function(O) {
399
- return O(
398
+ O.subscribers.forEach(function(g) {
399
+ return g(
400
400
  e,
401
401
  // shallow copy to avoid accidental mutation
402
- g.openInstances.slice()
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 z = {}, pe;
418
- function qe() {
419
- if (pe) return z;
420
- pe = 1, Object.defineProperty(z, "__esModule", {
417
+ var j = {}, fe;
418
+ function Le() {
419
+ if (fe) return j;
420
+ fe = 1, Object.defineProperty(j, "__esModule", {
421
421
  value: !0
422
- }), z.resetState = g, z.log = e;
423
- var d = _e(), a = h(d);
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 g() {
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 O() {
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 p(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", O), u = l.cloneNode(), u.addEventListener("focus", O)), 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));
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(p), z;
453
+ return a.default.subscribe(m), j;
454
454
  }
455
- var ve;
456
- function Ue() {
457
- return ve || (ve = 1, function(d, a) {
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 C = arguments[o];
464
- for (var t in C)
465
- Object.prototype.hasOwnProperty.call(C, t) && (r[t] = C[t]);
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, C) {
474
- for (var t = 0; t < C.length; t++) {
475
- var v = C[t];
476
- v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(o, v.key, v);
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, C, t) {
480
- return C && r(o.prototype, C), t && r(o, t), o;
479
+ return function(o, E, t) {
480
+ return E && r(o.prototype, E), t && r(o, t), o;
481
481
  };
482
- }(), c = be, g = /* @__PURE__ */ ye(), e = j(g), O = Ae(), p = P(O), s = De(), n = j(s), f = Oe(), i = P(f), y = Le(), _ = P(y), w = te(), R = j(w), A = _e(), q = j(A);
483
- qe();
484
- function P(r) {
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 C in r)
490
- Object.prototype.hasOwnProperty.call(r, C) && (o[C] = r[C]);
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 j(r) {
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
- }, m = 0, E = function(r) {
517
+ }, v = 0, C = function(r) {
518
518
  $(o, r);
519
- function o(C) {
519
+ function o(E) {
520
520
  F(this, o);
521
- var t = K(this, (o.__proto__ || Object.getPrototypeOf(o)).call(this, C));
522
- return t.setOverlayRef = function(v) {
523
- t.overlay = v, t.props.overlayRef && t.props.overlayRef(v);
524
- }, t.setContentRef = function(v) {
525
- t.content = v, t.props.contentRef && t.props.contentRef(v);
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 v = t.props, N = v.appElement, S = v.ariaHideApp, M = v.htmlOpenClassName, L = v.bodyOpenClassName, I = v.parentSelector, Y = I && I().ownerDocument || document;
528
- L && _.remove(Y.body, L), M && _.remove(Y.getElementsByTagName("html")[0], M), S && m > 0 && (m -= 1, m === 0 && i.show(N)), t.props.shouldFocusAfterRender && (t.props.shouldReturnFocusAfterClose ? (p.returnFocus(t.props.preventScroll), p.teardownScopedFocus()) : p.popWithoutFocus()), t.props.onAfterClose && t.props.onAfterClose(), q.default.deregister(t);
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 && (p.setupScopedFocus(t.node), p.markForFocusLater()), t.setState({ isOpen: !0 }, function() {
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 v = Date.now() + t.props.closeTimeoutMS;
544
- t.setState({ beforeClose: !0, closesAt: v }, function() {
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(v) {
555
- W(v) && (0, n.default)(t.content, v), t.props.shouldCloseOnEsc && b(v) && (v.stopPropagation(), t.requestClose(v));
556
- }, t.handleOverlayOnClick = function(v) {
557
- t.shouldClose === null && (t.shouldClose = !0), t.shouldClose && t.props.shouldCloseOnOverlayClick && (t.ownerHandlesClose() ? t.requestClose(v) : t.focusContent()), t.shouldClose = null;
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(v) {
561
- !t.props.shouldCloseOnOverlayClick && v.target == t.overlay && v.preventDefault();
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(v) {
567
- return t.ownerHandlesClose() && t.props.onRequestClose(v);
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(v, N) {
575
- var S = (typeof N > "u" ? "undefined" : l(N)) === "object" ? N : {
576
- base: U[v],
577
- afterOpen: U[v] + "--after-open",
578
- beforeClose: U[v] + "--before-close"
579
- }, M = S.base;
580
- return t.state.afterOpen && (M = M + " " + S.afterOpen), t.state.beforeClose && (M = M + " " + S.beforeClose), typeof N == "string" && N ? M + " " + N : M;
581
- }, t.attributesFromObject = function(v, N) {
582
- return Object.keys(N).reduce(function(S, M) {
583
- return S[v + "-" + M] = N[M], 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, v) {
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 && !v.isOpen && this.focusContent();
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, v = t.appElement, N = t.ariaHideApp, S = t.htmlOpenClassName, M = t.bodyOpenClassName, L = t.parentSelector, I = L && L().ownerDocument || document;
609
- M && _.add(I.body, M), S && _.add(I.getElementsByTagName("html")[0], S), N && (m += 1, i.hide(v)), q.default.register(this);
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, v = t.id, N = t.className, S = t.overlayClassName, M = t.defaultStyles, L = t.children, I = N ? {} : M.content, Y = S ? {} : M.overlay;
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 Se = {
618
+ var Ee = {
619
619
  ref: this.setOverlayRef,
620
620
  className: this.buildClassName("overlay", S),
621
- style: h({}, Y, this.props.style.overlay),
621
+ style: h({}, z, this.props.style.overlay),
622
622
  onClick: this.handleOverlayOnClick,
623
623
  onMouseDown: this.handleOverlayOnMouseDown
624
- }, Ne = h({
625
- id: v,
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", N),
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
- }), Me = this.props.contentElement(Ne, L);
639
- return this.props.overlayElement(Se, Me);
638
+ }), we = this.props.contentElement(Ce, x);
639
+ return this.props.overlayElement(Ee, we);
640
640
  }
641
641
  }]), o;
642
642
  }(c.Component);
643
- E.defaultProps = {
643
+ C.defaultProps = {
644
644
  style: {
645
645
  overlay: {},
646
646
  content: {}
647
647
  },
648
648
  defaultStyles: {}
649
- }, E.propTypes = {
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 = E, d.exports = a.default;
687
- }(J, J.exports)), J.exports;
686
+ }, a.default = C, p.exports = a.default;
687
+ }(G, G.exports)), G.exports;
688
688
  }
689
- function Ce() {
690
- var d = this.constructor.getDerivedStateFromProps(this.props, this.state);
691
- d != null && this.setState(d);
689
+ function Oe() {
690
+ var p = this.constructor.getDerivedStateFromProps(this.props, this.state);
691
+ p != null && this.setState(p);
692
692
  }
693
- function Ee(d) {
693
+ function ge(p) {
694
694
  function a(h) {
695
- var l = this.constructor.getDerivedStateFromProps(d, h);
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 we(d, a) {
700
+ function _e(p, a) {
701
701
  try {
702
702
  var h = this.props, l = this.state;
703
- this.props = d, this.state = a, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
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
- Ce.__suppressDeprecationWarning = !0;
712
- Ee.__suppressDeprecationWarning = !0;
713
- we.__suppressDeprecationWarning = !0;
714
- function We(d) {
715
- var a = d.prototype;
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 d.getDerivedStateFromProps != "function" && typeof a.getSnapshotBeforeUpdate != "function")
719
- return d;
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 = d.displayName || d.name, g = typeof d.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
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 " + g + " but also contains the following legacy lifecycles:" + (h !== null ? `
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 d.getDerivedStateFromProps == "function" && (a.componentWillMount = Ce, a.componentWillReceiveProps = Ee), typeof a.getSnapshotBeforeUpdate == "function") {
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 = we;
740
+ a.componentWillUpdate = _e;
741
741
  var e = a.componentDidUpdate;
742
- a.componentDidUpdate = function(p, s, n) {
742
+ a.componentDidUpdate = function(m, s, n) {
743
743
  var f = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : n;
744
- e.call(this, p, s, f);
744
+ e.call(this, m, s, f);
745
745
  };
746
746
  }
747
- return d;
747
+ return p;
748
748
  }
749
- const He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
749
+ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
750
750
  __proto__: null,
751
- polyfill: We
752
- }, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Re(He);
753
- var me;
754
- function Ie() {
755
- if (me) return k;
756
- me = 1, Object.defineProperty(k, "__esModule", {
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
- }), k.bodyOpenClassName = k.portalClassName = void 0;
759
- var d = Object.assign || function(b) {
760
- for (var m = 1; m < arguments.length; m++) {
761
- var E = arguments[m];
762
- for (var r in E)
763
- Object.prototype.hasOwnProperty.call(E, r) && (b[r] = E[r]);
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(m, E) {
768
- for (var r = 0; r < E.length; r++) {
769
- var o = E[r];
770
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(m, o.key, o);
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(m, E, r) {
774
- return E && b(m.prototype, E), r && b(m, r), m;
773
+ return function(v, C, r) {
774
+ return C && b(v.prototype, C), r && b(v, r), v;
775
775
  };
776
- }(), h = be, l = w(h), u = xe, c = w(u), g = /* @__PURE__ */ ye(), e = w(g), O = Ue(), p = w(O), s = Oe(), n = _(s), f = te(), i = w(f), y = ke;
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 m = {};
780
+ var v = {};
781
781
  if (b != null)
782
- for (var E in b)
783
- Object.prototype.hasOwnProperty.call(b, E) && (m[E] = b[E]);
784
- return m.default = b, m;
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, m) {
790
- if (!(b instanceof m))
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, m) {
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 m && (typeof m == "object" || typeof m == "function") ? m : b;
796
+ return v && (typeof v == "object" || typeof v == "function") ? v : b;
797
797
  }
798
- function q(b, m) {
799
- if (typeof m != "function" && m !== null)
800
- throw new TypeError("Super expression must either be null or a function, not " + typeof m);
801
- b.prototype = Object.create(m && m.prototype, { constructor: { value: b, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(b, m) : b.__proto__ = m);
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 P = k.portalClassName = "ReactModalPortal", j = k.bodyOpenClassName = "ReactModal__Body--open", F = f.canUseDOM && c.default.createPortal !== void 0, K = function(m) {
804
- return document.createElement(m);
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(m, b);
813
- function m() {
814
- var E, r, o, C;
815
- R(this, m);
816
- for (var t = arguments.length, v = Array(t), N = 0; N < t; N++)
817
- v[N] = arguments[N];
818
- return C = (r = (o = A(this, (E = m.__proto__ || Object.getPrototypeOf(m)).call.apply(E, [this].concat(v))), o), o.removePortal = function() {
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 M = $(), L = M(o, l.default.createElement(p.default, d({ defaultStyles: m.defaultStyles }, S)), o.node);
826
- o.portalRef(L);
827
- }, r), A(o, C);
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(m, [{
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), C = U(this.props.parentSelector);
842
- return { prevParent: o, nextParent: C };
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, C) {
846
+ value: function(r, o, E) {
847
847
  if (f.canUseDOM) {
848
- var t = this.props, v = t.isOpen, N = t.portalClassName;
849
- r.portalClassName !== N && (this.node.className = N);
850
- var S = C.prevParent, M = C.nextParent;
851
- M !== S && (S.removeChild(this.node), M.appendChild(this.node)), !(!r.isOpen && !v) && !F && this.renderPortal(this.props);
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(), C = r.isOpen && this.props.closeTimeoutMS && (r.closesAt || o + this.props.closeTimeoutMS);
859
- C ? (r.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, C - o)) : this.removePortal();
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(p.default, d({
869
+ return r(l.default.createElement(m.default, p({
870
870
  ref: this.portalRef,
871
- defaultStyles: m.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
- }]), m;
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: P,
925
- bodyOpenClassName: j,
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(m, E) {
937
+ overlayElement: function(v, C) {
938
938
  return l.default.createElement(
939
939
  "div",
940
- m,
941
- E
940
+ v,
941
+ C
942
942
  );
943
943
  },
944
- contentElement: function(m, E) {
944
+ contentElement: function(v, C) {
945
945
  return l.default.createElement(
946
946
  "div",
947
- m,
948
- E
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
- }), k.default = W, k;
976
+ }), H.default = W, H;
977
977
  }
978
- var he;
979
- function Be() {
980
- return he || (he = 1, function(d, a) {
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 = Ie(), l = u(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, d.exports = a.default;
989
- }(G, G.exports)), G.exports;
988
+ a.default = l.default, p.exports = a.default;
989
+ }(Y, Y.exports)), Y.exports;
990
990
  }
991
- var je = Be();
992
- const Ve = /* @__PURE__ */ Te(je), Ye = (d) => {
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
- Ye as A,
1068
- Ve as M
994
+ Ke as M
1069
995
  };