hplx-feature-library 1.0.166 → 1.0.168
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/APIAction--DyoXs57.js +3752 -0
- package/dist/APIAction-B5XQnkiF.cjs +9 -0
- package/dist/AlertPopup/index.js +77 -3
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/AllInvestigationsTable-BDLPOHjr.cjs +79 -0
- package/dist/{AllInvestigationsTable-D2-HK9-M.js → AllInvestigationsTable-Cmxnw8_3.js} +29 -28
- package/dist/Attachments/components/document-canvas/document-pen-tool.d.ts +1 -1
- package/dist/Attachments/components/drag-drop-overlay.d.ts +1 -1
- package/dist/Attachments/components/edit-document-modal.d.ts +1 -1
- package/dist/Attachments/components/uploading-toast.d.ts +1 -1
- package/dist/Attachments/context/index.d.ts +2 -2
- package/dist/Attachments/hooks/useDropdownPosition.d.ts +1 -1
- package/dist/Attachments/index.js +1562 -1584
- package/dist/CameraCapture/index.d.ts +1 -1
- package/dist/CustomDropdown/index.js +1 -1
- package/dist/DateTimePicker/DateAndTimePicker/index.js +17 -16
- package/dist/PatientAddEdit/index.js +1662 -0
- package/dist/PatientPopup/action/APIAction.d.ts +65 -0
- package/dist/PatientPopup/app/PatientPopupContainer.d.ts +6 -0
- package/dist/PatientPopup/app/PatientPopupContext.d.ts +30 -0
- package/dist/PatientPopup/common/common.d.ts +14 -0
- package/dist/PatientPopup/components/Lab/HPLXLab.d.ts +8 -0
- package/dist/PatientPopup/components/Lab/LISLab.d.ts +8 -0
- package/dist/PatientPopup/components/Lab/LabTable.d.ts +5 -0
- package/dist/PatientPopup/components/Lab/index.d.ts +5 -0
- package/dist/PatientPopup/components/Loader/Loader.d.ts +2 -0
- package/dist/PatientPopup/components/Pagination.d.ts +9 -0
- package/dist/PatientPopup/components/Profile/Abha.d.ts +11 -0
- package/dist/PatientPopup/components/Profile/PatientDetailsModal.d.ts +1 -0
- package/dist/PatientPopup/components/Profile/Profile.d.ts +11 -0
- package/dist/PatientPopup/components/Profile/Sms.d.ts +2 -0
- package/dist/PatientPopup/components/Visits/Table.d.ts +11 -0
- package/dist/PatientPopup/components/Visits/index.d.ts +15 -0
- package/dist/PatientPopup/components/addBills/AddBillFooter.d.ts +2 -0
- package/dist/PatientPopup/components/addBills/AddBills.d.ts +5 -0
- package/dist/PatientPopup/components/addBills/AddBillsTable.d.ts +17 -0
- package/dist/PatientPopup/components/addBills/DropDown.d.ts +15 -0
- package/dist/PatientPopup/components/appointment/AllAppts.d.ts +8 -0
- package/dist/PatientPopup/components/appointment/Appointment.d.ts +2 -0
- package/dist/PatientPopup/components/appointment/AppointmentsTable.d.ts +10 -0
- package/dist/PatientPopup/components/bills/Bills.d.ts +6 -0
- package/dist/PatientPopup/components/bills/BillsTable.d.ts +11 -0
- package/dist/PatientPopup/components/deposit/DepositSection.d.ts +9 -0
- package/dist/PatientPopup/components/mainNavItem/MainNavItem.d.ts +13 -0
- package/dist/PatientPopup/components/patientPopupBody/PatientPopupBody.d.ts +8 -0
- package/dist/PatientPopup/components/patientPopupHeader/PatientPopupHeader.d.ts +10 -0
- package/dist/PatientPopup/components/patientPopupSummary/BillSummary.d.ts +19 -0
- package/dist/PatientPopup/components/patientPopupSummary/ConsultationDetails.d.ts +14 -0
- package/dist/PatientPopup/components/patientPopupSummary/DeleteItem.d.ts +11 -0
- package/dist/PatientPopup/components/patientPopupSummary/DepositRefundSummary.d.ts +8 -0
- package/dist/PatientPopup/components/patientPopupSummary/LabServiceDetails.d.ts +13 -0
- package/dist/PatientPopup/components/patientPopupSummary/OtherServiceDetails.d.ts +13 -0
- package/dist/PatientPopup/components/patientPopupSummary/PatientPopupSummary.d.ts +8 -0
- package/dist/PatientPopup/components/patientPopupSummary/PaymentCard.d.ts +25 -0
- package/dist/PatientPopup/components/patientPopupSummary/ServiceLevelBillSummary.d.ts +18 -0
- package/dist/PatientPopup/components/payments/DepositRefundTable.d.ts +14 -0
- package/dist/PatientPopup/components/payments/OtherServicesTable.d.ts +16 -0
- package/dist/PatientPopup/components/payments/PaymentEditModal.d.ts +15 -0
- package/dist/PatientPopup/components/payments/PaymentHeader.d.ts +7 -0
- package/dist/PatientPopup/components/payments/Payments.d.ts +5 -0
- package/dist/PatientPopup/components/payments/PaymentsTable.d.ts +14 -0
- package/dist/PatientPopup/constants/AppConstants.d.ts +123 -0
- package/dist/PatientPopup/index.d.ts +1 -0
- package/dist/PatientPopup/index.js +135376 -0
- package/dist/PatientPopup/types/hplxAPITypes.d.ts +37 -0
- package/dist/PatientPopup/utils/PrintFontLoader.d.ts +4 -0
- package/dist/PatientPopup/utils/helperFunctions.d.ts +3 -0
- package/dist/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +1 -1
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-CTA61g3h.cjs +1 -0
- package/dist/{PediatricsCalculatorTable-DGWlajqt.js → PediatricsCalculatorTable-QgonqxbR.js} +26 -25
- package/dist/ReusableModal-CIgDYOWZ.cjs +1 -0
- package/dist/ReusableModal-pSi21hnc.js +29 -0
- package/dist/ReusableTable/context/TableContextBase.d.ts +1 -1
- package/dist/Subscription/components/SubscriptionBadge.d.ts +2 -0
- package/dist/ToggleButtons/index.js +1 -1
- package/dist/TrendGraphs/context/index.d.ts +1 -1
- package/dist/changePasswordModal/APIAction/APIActions.d.ts +8 -0
- package/dist/changePasswordModal/component/ChangePasswordModal.d.ts +14 -0
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/common/APIAction/APIAction.d.ts +28 -0
- package/dist/common/components/BorderFullWidth.d.ts +2 -0
- package/dist/common/components/table/ExistingPatients.d.ts +17 -0
- package/dist/common/editRibbon/EditRibbon.d.ts +9 -0
- package/dist/common/utils/NetworkInstance.d.ts +4 -0
- package/dist/common/utils/common-utils.d.ts +36 -0
- package/dist/components/PatientAddEdit.d.ts +3 -0
- package/dist/components/customDropdown/CustomDropdown.d.ts +1 -1
- package/dist/constants/CommonConstant.d.ts +70 -0
- package/dist/dayjs.min-BbV4duaj.js +284 -0
- package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
- package/dist/fonts/AnekMalayalam-Bold.ttf +0 -0
- package/dist/fonts/AnekMalayalam-Regular.ttf +0 -0
- package/dist/fonts/Arial-Bold-Italic.ttf +0 -0
- package/dist/fonts/Arial-Bold.ttf +0 -0
- package/dist/fonts/Arial-Italic.ttf +0 -0
- package/dist/fonts/Arial.ttf +0 -0
- package/dist/fonts/IndianRupee.ttf +0 -0
- package/dist/fonts/MuktaMaheePunjabi-Bold.ttf +0 -0
- package/dist/fonts/MuktaMaheePunjabi-Regular.ttf +0 -0
- package/dist/fonts/Noto-Sans-Telugu-Bold.ttf +0 -0
- package/dist/fonts/Noto-Sans-Telugu-Regular.ttf +0 -0
- package/dist/fonts/NotoNastaliqUrdu-Bold.ttf +0 -0
- package/dist/fonts/NotoNastaliqUrdu-Regular.ttf +0 -0
- package/dist/fonts/NotoSansArabic-Bold.ttf +0 -0
- package/dist/fonts/NotoSansArabic.ttf +0 -0
- package/dist/fonts/NotoSansHindi-Bold.ttf +0 -0
- package/dist/fonts/NotoSansHindi.ttf +0 -0
- package/dist/fonts/NotoSansKannada-Bold.ttf +0 -0
- package/dist/fonts/NotoSansKannada.ttf +0 -0
- package/dist/fonts/NotoSansOriya-Bold.ttf +0 -0
- package/dist/fonts/NotoSansOriya.ttf +0 -0
- package/dist/fonts/NotoSansTamil-Bold.ttf +0 -0
- package/dist/fonts/NotoSansTamil.ttf +0 -0
- package/dist/fonts/NotoSerifGujarati-Bold.ttf +0 -0
- package/dist/fonts/NotoSerifGujarati-Regular.ttf +0 -0
- package/dist/fonts/Roboto-Regular.ttf +0 -0
- package/dist/fonts/Times-Bold-Italic.ttf +0 -0
- package/dist/fonts/Times-Bold.ttf +0 -0
- package/dist/fonts/Times-Italic.ttf +0 -0
- package/dist/fonts/Times.ttf +0 -0
- package/dist/fonts/TiroBangla-Bold.ttf +0 -0
- package/dist/fonts/TiroBangla-Regular.ttf +0 -0
- package/dist/fonts/Verdana-Bold-Italic.ttf +0 -0
- package/dist/fonts/Verdana-Bold.ttf +0 -0
- package/dist/fonts/Verdana-Italic.ttf +0 -0
- package/dist/fonts/Verdana.ttf +0 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index-DQlbIHh3.cjs +102 -0
- package/dist/index-DkA8S5IK.cjs +32 -0
- package/dist/index-sG1tIMJ6.js +7242 -0
- package/dist/index-vVtPa2-N.js +961 -0
- package/dist/index.js +4 -4
- package/dist/nineDots/NineDotsTypes.d.ts +22 -0
- package/dist/nineDots/NineDotsUtils.d.ts +3 -0
- package/dist/nineDots/nineDots.d.ts +3 -0
- package/dist/searchPatients/SearchPatients.d.ts +11 -0
- package/dist/types/APIEndPoints.d.ts +11 -0
- package/dist/types/ApiResponseTypes.d.ts +290 -0
- package/dist/types/CommonTypes.d.ts +255 -0
- package/dist/types/PatientAddEditTypes/index.js +1 -0
- package/dist/types/PatientAddEditTypes.d.ts +7 -0
- package/dist/types/PatientPopupTypes/index.js +1 -0
- package/dist/types/PatientPopupTypes.d.ts +836 -0
- package/dist/userProfile/APIAction/APIActions.d.ts +18 -0
- package/dist/userProfile/UserProfile.d.ts +18 -0
- package/dist/userProfile/UserProfileItem.d.ts +7 -0
- package/dist/warning-BozzKWdr.js +38 -0
- package/dist/warning-W0tkkrLJ.cjs +1 -0
- package/package.json +30 -3
- package/dist/AlertPopup-CSD_rZzv.js +0 -1069
- package/dist/AlertPopup-DdrHGPKR.cjs +0 -32
- package/dist/AllInvestigationsTable-DoqX89NX.cjs +0 -79
- 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,1069 +0,0 @@
|
|
|
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) {
|
|
7
|
-
Object.defineProperty(a, "__esModule", {
|
|
8
|
-
value: !0
|
|
9
|
-
}), a.default = s;
|
|
10
|
-
/*!
|
|
11
|
-
* Adapted from jQuery UI core
|
|
12
|
-
*
|
|
13
|
-
* http://jqueryui.com
|
|
14
|
-
*
|
|
15
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
|
16
|
-
* Released under the MIT license.
|
|
17
|
-
* http://jquery.org/license
|
|
18
|
-
*
|
|
19
|
-
* http://api.jqueryui.com/category/ui-core/
|
|
20
|
-
*/
|
|
21
|
-
var h = "none", l = "contents", u = /^(input|select|textarea|button|object|iframe)$/;
|
|
22
|
-
function c(n, f) {
|
|
23
|
-
return f.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
24
|
-
n.scrollWidth <= 0 && n.scrollHeight <= 0;
|
|
25
|
-
}
|
|
26
|
-
function g(n) {
|
|
27
|
-
var f = n.offsetWidth <= 0 && n.offsetHeight <= 0;
|
|
28
|
-
if (f && !n.innerHTML) return !0;
|
|
29
|
-
try {
|
|
30
|
-
var i = window.getComputedStyle(n), y = i.getPropertyValue("display");
|
|
31
|
-
return f ? y !== l && c(n, i) : y === h;
|
|
32
|
-
} catch {
|
|
33
|
-
return console.warn("Failed to inspect element style"), !1;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function e(n) {
|
|
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;
|
|
39
|
-
f = f.parentNode;
|
|
40
|
-
}
|
|
41
|
-
return !0;
|
|
42
|
-
}
|
|
43
|
-
function O(n, f) {
|
|
44
|
-
var i = n.nodeName.toLowerCase(), y = u.test(i) && !n.disabled || i === "a" && n.href || f;
|
|
45
|
-
return y && e(n);
|
|
46
|
-
}
|
|
47
|
-
function p(n) {
|
|
48
|
-
var f = n.getAttribute("tabindex");
|
|
49
|
-
f === null && (f = void 0);
|
|
50
|
-
var i = isNaN(f);
|
|
51
|
-
return (i || f >= 0) && O(n, !i);
|
|
52
|
-
}
|
|
53
|
-
function s(n) {
|
|
54
|
-
var f = [].slice.call(n.querySelectorAll("*"), 0).reduce(function(i, y) {
|
|
55
|
-
return i.concat(y.shadowRoot ? s(y.shadowRoot) : [y]);
|
|
56
|
-
}, []);
|
|
57
|
-
return f.filter(p);
|
|
58
|
-
}
|
|
59
|
-
d.exports = a.default;
|
|
60
|
-
}(Q, Q.exports)), Q.exports;
|
|
61
|
-
}
|
|
62
|
-
var ae;
|
|
63
|
-
function Ae() {
|
|
64
|
-
if (ae) return T;
|
|
65
|
-
ae = 1, Object.defineProperty(T, "__esModule", {
|
|
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);
|
|
69
|
-
function h(_) {
|
|
70
|
-
return _ && _.__esModule ? _ : { default: _ };
|
|
71
|
-
}
|
|
72
|
-
var l = [], u = null, c = !1;
|
|
73
|
-
function g() {
|
|
74
|
-
l = [];
|
|
75
|
-
}
|
|
76
|
-
function e() {
|
|
77
|
-
process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), l.forEach(function(_) {
|
|
78
|
-
var w = _ || {};
|
|
79
|
-
console.log(w.nodeName, w.className, w.id);
|
|
80
|
-
}), console.log("end focusManager ----------"));
|
|
81
|
-
}
|
|
82
|
-
function O() {
|
|
83
|
-
c = !0;
|
|
84
|
-
}
|
|
85
|
-
function p() {
|
|
86
|
-
if (c) {
|
|
87
|
-
if (c = !1, !u)
|
|
88
|
-
return;
|
|
89
|
-
setTimeout(function() {
|
|
90
|
-
if (!u.contains(document.activeElement)) {
|
|
91
|
-
var _ = (0, a.default)(u)[0] || u;
|
|
92
|
-
_.focus();
|
|
93
|
-
}
|
|
94
|
-
}, 0);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function s() {
|
|
98
|
-
l.push(document.activeElement);
|
|
99
|
-
}
|
|
100
|
-
function n() {
|
|
101
|
-
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, w = null;
|
|
102
|
-
try {
|
|
103
|
-
l.length !== 0 && (w = l.pop(), w.focus({ preventScroll: _ }));
|
|
104
|
-
return;
|
|
105
|
-
} catch {
|
|
106
|
-
console.warn(["You tried to return focus to", w, "but it is not in the DOM anymore"].join(" "));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function f() {
|
|
110
|
-
l.length > 0 && l.pop();
|
|
111
|
-
}
|
|
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));
|
|
114
|
-
}
|
|
115
|
-
function y() {
|
|
116
|
-
u = null, window.addEventListener ? (window.removeEventListener("blur", O), document.removeEventListener("focus", p)) : (window.detachEvent("onBlur", O), document.detachEvent("onFocus", p));
|
|
117
|
-
}
|
|
118
|
-
return T;
|
|
119
|
-
}
|
|
120
|
-
var X = { exports: {} }, le;
|
|
121
|
-
function De() {
|
|
122
|
-
return le || (le = 1, function(d, a) {
|
|
123
|
-
Object.defineProperty(a, "__esModule", {
|
|
124
|
-
value: !0
|
|
125
|
-
}), a.default = g;
|
|
126
|
-
var h = ge(), l = u(h);
|
|
127
|
-
function u(e) {
|
|
128
|
-
return e && e.__esModule ? e : { default: e };
|
|
129
|
-
}
|
|
130
|
-
function c() {
|
|
131
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
|
|
132
|
-
return e.activeElement.shadowRoot ? c(e.activeElement.shadowRoot) : e.activeElement;
|
|
133
|
-
}
|
|
134
|
-
function g(e, O) {
|
|
135
|
-
var p = (0, l.default)(e);
|
|
136
|
-
if (!p.length) {
|
|
137
|
-
O.preventDefault();
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
var s = void 0, n = O.shiftKey, f = p[0], i = p[p.length - 1], y = c();
|
|
141
|
-
if (e === y) {
|
|
142
|
-
if (!n) return;
|
|
143
|
-
s = i;
|
|
144
|
-
}
|
|
145
|
-
if (i === y && !n && (s = f), f === y && n && (s = i), s) {
|
|
146
|
-
O.preventDefault(), s.focus();
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
var _ = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), w = _ != null && _[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
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();
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
O.preventDefault(), s.focus();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
d.exports = a.default;
|
|
160
|
-
}(X, X.exports)), X.exports;
|
|
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() {
|
|
167
|
-
};
|
|
168
|
-
if (d) {
|
|
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++)
|
|
173
|
-
c[e - 1] = arguments[e];
|
|
174
|
-
var O = 0, p = "Warning: " + u.replace(/%s/g, function() {
|
|
175
|
-
return c[O++];
|
|
176
|
-
});
|
|
177
|
-
typeof console < "u" && console.error(p);
|
|
178
|
-
try {
|
|
179
|
-
throw new Error(p);
|
|
180
|
-
} catch {
|
|
181
|
-
}
|
|
182
|
-
};
|
|
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++)
|
|
187
|
-
c[e - 2] = arguments[e];
|
|
188
|
-
if (u === void 0)
|
|
189
|
-
throw new Error(
|
|
190
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
191
|
-
);
|
|
192
|
-
l || h.apply(null, [u].concat(c));
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
return Z = a, Z;
|
|
196
|
-
}
|
|
197
|
-
var D = {}, ee = { exports: {} };
|
|
198
|
-
/*!
|
|
199
|
-
Copyright (c) 2015 Jed Watson.
|
|
200
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
201
|
-
All rights reserved.
|
|
202
|
-
*/
|
|
203
|
-
var ie;
|
|
204
|
-
function Fe() {
|
|
205
|
-
return ie || (ie = 1, function(d) {
|
|
206
|
-
(function() {
|
|
207
|
-
var a = !!(typeof window < "u" && window.document && window.document.createElement), h = {
|
|
208
|
-
canUseDOM: a,
|
|
209
|
-
canUseWorkers: typeof Worker < "u",
|
|
210
|
-
canUseEventListeners: a && !!(window.addEventListener || window.attachEvent),
|
|
211
|
-
canUseViewport: a && !!window.screen
|
|
212
|
-
};
|
|
213
|
-
d.exports ? d.exports = h : window.ExecutionEnvironment = h;
|
|
214
|
-
})();
|
|
215
|
-
}(ee)), ee.exports;
|
|
216
|
-
}
|
|
217
|
-
var ue;
|
|
218
|
-
function te() {
|
|
219
|
-
if (ue) return D;
|
|
220
|
-
ue = 1, Object.defineProperty(D, "__esModule", {
|
|
221
|
-
value: !0
|
|
222
|
-
}), D.canUseDOM = D.SafeNodeList = D.SafeHTMLCollection = void 0;
|
|
223
|
-
var d = Fe(), a = h(d);
|
|
224
|
-
function h(c) {
|
|
225
|
-
return c && c.__esModule ? c : { default: c };
|
|
226
|
-
}
|
|
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;
|
|
229
|
-
}
|
|
230
|
-
var fe;
|
|
231
|
-
function Oe() {
|
|
232
|
-
if (fe) return x;
|
|
233
|
-
fe = 1, Object.defineProperty(x, "__esModule", {
|
|
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();
|
|
237
|
-
function l(i) {
|
|
238
|
-
return i && i.__esModule ? i : { default: i };
|
|
239
|
-
}
|
|
240
|
-
var u = null;
|
|
241
|
-
function c() {
|
|
242
|
-
u && (u.removeAttribute ? u.removeAttribute("aria-hidden") : u.length != null ? u.forEach(function(i) {
|
|
243
|
-
return i.removeAttribute("aria-hidden");
|
|
244
|
-
}) : document.querySelectorAll(u).forEach(function(i) {
|
|
245
|
-
return i.removeAttribute("aria-hidden");
|
|
246
|
-
})), u = null;
|
|
247
|
-
}
|
|
248
|
-
function g() {
|
|
249
|
-
if (process.env.NODE_ENV !== "production") {
|
|
250
|
-
var i = u || {};
|
|
251
|
-
console.log("ariaAppHider ----------"), console.log(i.nodeName, i.className, i.id), console.log("end ariaAppHider ----------");
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function e(i, y) {
|
|
255
|
-
if (!i || !i.length)
|
|
256
|
-
throw new Error("react-modal: No elements were found for selector " + y + ".");
|
|
257
|
-
}
|
|
258
|
-
function O(i) {
|
|
259
|
-
var y = i;
|
|
260
|
-
if (typeof y == "string" && h.canUseDOM) {
|
|
261
|
-
var _ = document.querySelectorAll(y);
|
|
262
|
-
e(_, y), y = _;
|
|
263
|
-
}
|
|
264
|
-
return u = y || u, u;
|
|
265
|
-
}
|
|
266
|
-
function p(i) {
|
|
267
|
-
var y = i || u;
|
|
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
|
-
}
|
|
270
|
-
function s(i) {
|
|
271
|
-
var y = !0, _ = !1, w = void 0;
|
|
272
|
-
try {
|
|
273
|
-
for (var R = p(i)[Symbol.iterator](), A; !(y = (A = R.next()).done); y = !0) {
|
|
274
|
-
var q = A.value;
|
|
275
|
-
q.setAttribute("aria-hidden", "true");
|
|
276
|
-
}
|
|
277
|
-
} catch (P) {
|
|
278
|
-
_ = !0, w = P;
|
|
279
|
-
} finally {
|
|
280
|
-
try {
|
|
281
|
-
!y && R.return && R.return();
|
|
282
|
-
} finally {
|
|
283
|
-
if (_)
|
|
284
|
-
throw w;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
function n(i) {
|
|
289
|
-
var y = !0, _ = !1, w = void 0;
|
|
290
|
-
try {
|
|
291
|
-
for (var R = p(i)[Symbol.iterator](), A; !(y = (A = R.next()).done); y = !0) {
|
|
292
|
-
var q = A.value;
|
|
293
|
-
q.removeAttribute("aria-hidden");
|
|
294
|
-
}
|
|
295
|
-
} catch (P) {
|
|
296
|
-
_ = !0, w = P;
|
|
297
|
-
} finally {
|
|
298
|
-
try {
|
|
299
|
-
!y && R.return && R.return();
|
|
300
|
-
} finally {
|
|
301
|
-
if (_)
|
|
302
|
-
throw w;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
function f() {
|
|
307
|
-
u = null;
|
|
308
|
-
}
|
|
309
|
-
return x;
|
|
310
|
-
}
|
|
311
|
-
var B = {}, ce;
|
|
312
|
-
function Le() {
|
|
313
|
-
if (ce) return B;
|
|
314
|
-
ce = 1, Object.defineProperty(B, "__esModule", {
|
|
315
|
-
value: !0
|
|
316
|
-
}), B.resetState = l, B.log = u;
|
|
317
|
-
var d = {}, a = {};
|
|
318
|
-
function h(p, s) {
|
|
319
|
-
p.classList.remove(s);
|
|
320
|
-
}
|
|
321
|
-
function l() {
|
|
322
|
-
var p = document.getElementsByTagName("html")[0];
|
|
323
|
-
for (var s in d)
|
|
324
|
-
h(p, d[s]);
|
|
325
|
-
var n = document.body;
|
|
326
|
-
for (var f in a)
|
|
327
|
-
h(n, a[f]);
|
|
328
|
-
d = {}, a = {};
|
|
329
|
-
}
|
|
330
|
-
function u() {
|
|
331
|
-
if (process.env.NODE_ENV !== "production") {
|
|
332
|
-
var p = document.getElementsByTagName("html")[0].className, s = `Show tracked classes:
|
|
333
|
-
|
|
334
|
-
`;
|
|
335
|
-
s += "<html /> (" + p + `):
|
|
336
|
-
`;
|
|
337
|
-
for (var n in d)
|
|
338
|
-
s += " " + n + " " + d[n] + `
|
|
339
|
-
`;
|
|
340
|
-
p = document.body.className, s += `
|
|
341
|
-
|
|
342
|
-
doc.body (` + p + `):
|
|
343
|
-
`;
|
|
344
|
-
for (var f in a)
|
|
345
|
-
s += " " + f + " " + a[f] + `
|
|
346
|
-
`;
|
|
347
|
-
s += `
|
|
348
|
-
`, console.log(s);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
var c = function(s, n) {
|
|
352
|
-
return s[n] || (s[n] = 0), s[n] += 1, n;
|
|
353
|
-
}, g = function(s, n) {
|
|
354
|
-
return s[n] && (s[n] -= 1), n;
|
|
355
|
-
}, e = function(s, n, f) {
|
|
356
|
-
f.forEach(function(i) {
|
|
357
|
-
c(n, i), s.add(i);
|
|
358
|
-
});
|
|
359
|
-
}, O = function(s, n, f) {
|
|
360
|
-
f.forEach(function(i) {
|
|
361
|
-
g(n, i), n[i] === 0 && s.remove(i);
|
|
362
|
-
});
|
|
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;
|
|
369
|
-
}
|
|
370
|
-
var V = {}, de;
|
|
371
|
-
function _e() {
|
|
372
|
-
if (de) return V;
|
|
373
|
-
de = 1, Object.defineProperty(V, "__esModule", {
|
|
374
|
-
value: !0
|
|
375
|
-
}), V.log = l, V.resetState = u;
|
|
376
|
-
function d(c, g) {
|
|
377
|
-
if (!(c instanceof g))
|
|
378
|
-
throw new TypeError("Cannot call a class as a function");
|
|
379
|
-
}
|
|
380
|
-
var a = function c() {
|
|
381
|
-
var g = this;
|
|
382
|
-
d(this, c), this.register = function(e) {
|
|
383
|
-
if (g.openInstances.indexOf(e) !== -1) {
|
|
384
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
g.openInstances.push(e), g.emit("register");
|
|
388
|
-
}, this.deregister = function(e) {
|
|
389
|
-
var O = g.openInstances.indexOf(e);
|
|
390
|
-
if (O === -1) {
|
|
391
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + e + " as it was never registered");
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
g.openInstances.splice(O, 1), g.emit("deregister");
|
|
395
|
-
}, this.subscribe = function(e) {
|
|
396
|
-
g.subscribers.push(e);
|
|
397
|
-
}, this.emit = function(e) {
|
|
398
|
-
g.subscribers.forEach(function(O) {
|
|
399
|
-
return O(
|
|
400
|
-
e,
|
|
401
|
-
// shallow copy to avoid accidental mutation
|
|
402
|
-
g.openInstances.slice()
|
|
403
|
-
);
|
|
404
|
-
});
|
|
405
|
-
}, this.openInstances = [], this.subscribers = [];
|
|
406
|
-
}, h = new a();
|
|
407
|
-
function l() {
|
|
408
|
-
console.log("portalOpenInstances ----------"), console.log(h.openInstances.length), h.openInstances.forEach(function(c) {
|
|
409
|
-
return console.log(c);
|
|
410
|
-
}), console.log("end portalOpenInstances ----------");
|
|
411
|
-
}
|
|
412
|
-
function u() {
|
|
413
|
-
h = new a();
|
|
414
|
-
}
|
|
415
|
-
return V.default = h, V;
|
|
416
|
-
}
|
|
417
|
-
var z = {}, pe;
|
|
418
|
-
function qe() {
|
|
419
|
-
if (pe) return z;
|
|
420
|
-
pe = 1, Object.defineProperty(z, "__esModule", {
|
|
421
|
-
value: !0
|
|
422
|
-
}), z.resetState = g, z.log = e;
|
|
423
|
-
var d = _e(), a = h(d);
|
|
424
|
-
function h(s) {
|
|
425
|
-
return s && s.__esModule ? s : { default: s };
|
|
426
|
-
}
|
|
427
|
-
var l = void 0, u = void 0, c = [];
|
|
428
|
-
function g() {
|
|
429
|
-
for (var s = [l, u], n = 0; n < s.length; n++) {
|
|
430
|
-
var f = s[n];
|
|
431
|
-
f && f.parentNode && f.parentNode.removeChild(f);
|
|
432
|
-
}
|
|
433
|
-
l = u = null, c = [];
|
|
434
|
-
}
|
|
435
|
-
function e() {
|
|
436
|
-
console.log("bodyTrap ----------"), console.log(c.length);
|
|
437
|
-
for (var s = [l, u], n = 0; n < s.length; n++) {
|
|
438
|
-
var f = s[n], i = f || {};
|
|
439
|
-
console.log(i.nodeName, i.className, i.id);
|
|
440
|
-
}
|
|
441
|
-
console.log("edn bodyTrap ----------");
|
|
442
|
-
}
|
|
443
|
-
function O() {
|
|
444
|
-
if (c.length === 0) {
|
|
445
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
c[c.length - 1].focusContent();
|
|
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));
|
|
452
|
-
}
|
|
453
|
-
return a.default.subscribe(p), z;
|
|
454
|
-
}
|
|
455
|
-
var ve;
|
|
456
|
-
function Ue() {
|
|
457
|
-
return ve || (ve = 1, function(d, a) {
|
|
458
|
-
Object.defineProperty(a, "__esModule", {
|
|
459
|
-
value: !0
|
|
460
|
-
});
|
|
461
|
-
var h = Object.assign || function(r) {
|
|
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]);
|
|
466
|
-
}
|
|
467
|
-
return r;
|
|
468
|
-
}, l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
469
|
-
return typeof r;
|
|
470
|
-
} : function(r) {
|
|
471
|
-
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
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);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
return function(o, C, t) {
|
|
480
|
-
return C && r(o.prototype, C), t && r(o, t), o;
|
|
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) {
|
|
485
|
-
if (r && r.__esModule)
|
|
486
|
-
return r;
|
|
487
|
-
var o = {};
|
|
488
|
-
if (r != null)
|
|
489
|
-
for (var C in r)
|
|
490
|
-
Object.prototype.hasOwnProperty.call(r, C) && (o[C] = r[C]);
|
|
491
|
-
return o.default = r, o;
|
|
492
|
-
}
|
|
493
|
-
function j(r) {
|
|
494
|
-
return r && r.__esModule ? r : { default: r };
|
|
495
|
-
}
|
|
496
|
-
function F(r, o) {
|
|
497
|
-
if (!(r instanceof o))
|
|
498
|
-
throw new TypeError("Cannot call a class as a function");
|
|
499
|
-
}
|
|
500
|
-
function K(r, o) {
|
|
501
|
-
if (!r)
|
|
502
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
503
|
-
return o && (typeof o == "object" || typeof o == "function") ? o : r;
|
|
504
|
-
}
|
|
505
|
-
function $(r, o) {
|
|
506
|
-
if (typeof o != "function" && o !== null)
|
|
507
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof o);
|
|
508
|
-
r.prototype = Object.create(o && o.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), o && (Object.setPrototypeOf ? Object.setPrototypeOf(r, o) : r.__proto__ = o);
|
|
509
|
-
}
|
|
510
|
-
var U = {
|
|
511
|
-
overlay: "ReactModal__Overlay",
|
|
512
|
-
content: "ReactModal__Content"
|
|
513
|
-
}, W = function(o) {
|
|
514
|
-
return o.code === "Tab" || o.keyCode === 9;
|
|
515
|
-
}, b = function(o) {
|
|
516
|
-
return o.code === "Escape" || o.keyCode === 27;
|
|
517
|
-
}, m = 0, E = function(r) {
|
|
518
|
-
$(o, r);
|
|
519
|
-
function o(C) {
|
|
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);
|
|
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);
|
|
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() {
|
|
531
|
-
t.openAnimationFrame = requestAnimationFrame(function() {
|
|
532
|
-
t.setState({ afterOpen: !0 }), t.props.isOpen && t.props.onAfterOpen && t.props.onAfterOpen({
|
|
533
|
-
overlayEl: t.overlay,
|
|
534
|
-
contentEl: t.content
|
|
535
|
-
});
|
|
536
|
-
});
|
|
537
|
-
}));
|
|
538
|
-
}, t.close = function() {
|
|
539
|
-
t.props.closeTimeoutMS > 0 ? t.closeWithTimeout() : t.closeWithoutTimeout();
|
|
540
|
-
}, t.focusContent = function() {
|
|
541
|
-
return t.content && !t.contentHasFocus() && t.content.focus({ preventScroll: !0 });
|
|
542
|
-
}, t.closeWithTimeout = function() {
|
|
543
|
-
var v = Date.now() + t.props.closeTimeoutMS;
|
|
544
|
-
t.setState({ beforeClose: !0, closesAt: v }, function() {
|
|
545
|
-
t.closeTimer = setTimeout(t.closeWithoutTimeout, t.state.closesAt - Date.now());
|
|
546
|
-
});
|
|
547
|
-
}, t.closeWithoutTimeout = function() {
|
|
548
|
-
t.setState({
|
|
549
|
-
beforeClose: !1,
|
|
550
|
-
isOpen: !1,
|
|
551
|
-
afterOpen: !1,
|
|
552
|
-
closesAt: null
|
|
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;
|
|
558
|
-
}, t.handleContentOnMouseUp = function() {
|
|
559
|
-
t.shouldClose = !1;
|
|
560
|
-
}, t.handleOverlayOnMouseDown = function(v) {
|
|
561
|
-
!t.props.shouldCloseOnOverlayClick && v.target == t.overlay && v.preventDefault();
|
|
562
|
-
}, t.handleContentOnClick = function() {
|
|
563
|
-
t.shouldClose = !1;
|
|
564
|
-
}, t.handleContentOnMouseDown = function() {
|
|
565
|
-
t.shouldClose = !1;
|
|
566
|
-
}, t.requestClose = function(v) {
|
|
567
|
-
return t.ownerHandlesClose() && t.props.onRequestClose(v);
|
|
568
|
-
}, t.ownerHandlesClose = function() {
|
|
569
|
-
return t.props.onRequestClose;
|
|
570
|
-
}, t.shouldBeClosed = function() {
|
|
571
|
-
return !t.state.isOpen && !t.state.beforeClose;
|
|
572
|
-
}, t.contentHasFocus = function() {
|
|
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;
|
|
584
|
-
}, {});
|
|
585
|
-
}, t.state = {
|
|
586
|
-
afterOpen: !1,
|
|
587
|
-
beforeClose: !1
|
|
588
|
-
}, t.shouldClose = null, t.moveFromContentToOverlay = null, t;
|
|
589
|
-
}
|
|
590
|
-
return u(o, [{
|
|
591
|
-
key: "componentDidMount",
|
|
592
|
-
value: function() {
|
|
593
|
-
this.props.isOpen && this.open();
|
|
594
|
-
}
|
|
595
|
-
}, {
|
|
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();
|
|
599
|
-
}
|
|
600
|
-
}, {
|
|
601
|
-
key: "componentWillUnmount",
|
|
602
|
-
value: function() {
|
|
603
|
-
this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame);
|
|
604
|
-
}
|
|
605
|
-
}, {
|
|
606
|
-
key: "beforeOpen",
|
|
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);
|
|
610
|
-
}
|
|
611
|
-
// Don't steal focus from inner elements
|
|
612
|
-
}, {
|
|
613
|
-
key: "render",
|
|
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;
|
|
616
|
-
if (this.shouldBeClosed())
|
|
617
|
-
return null;
|
|
618
|
-
var Se = {
|
|
619
|
-
ref: this.setOverlayRef,
|
|
620
|
-
className: this.buildClassName("overlay", S),
|
|
621
|
-
style: h({}, Y, this.props.style.overlay),
|
|
622
|
-
onClick: this.handleOverlayOnClick,
|
|
623
|
-
onMouseDown: this.handleOverlayOnMouseDown
|
|
624
|
-
}, Ne = h({
|
|
625
|
-
id: v,
|
|
626
|
-
ref: this.setContentRef,
|
|
627
|
-
style: h({}, I, this.props.style.content),
|
|
628
|
-
className: this.buildClassName("content", N),
|
|
629
|
-
tabIndex: "-1",
|
|
630
|
-
onKeyDown: this.handleKeyDown,
|
|
631
|
-
onMouseDown: this.handleContentOnMouseDown,
|
|
632
|
-
onMouseUp: this.handleContentOnMouseUp,
|
|
633
|
-
onClick: this.handleContentOnClick,
|
|
634
|
-
role: this.props.role,
|
|
635
|
-
"aria-label": this.props.contentLabel
|
|
636
|
-
}, this.attributesFromObject("aria", h({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
637
|
-
"data-testid": this.props.testId
|
|
638
|
-
}), Me = this.props.contentElement(Ne, L);
|
|
639
|
-
return this.props.overlayElement(Se, Me);
|
|
640
|
-
}
|
|
641
|
-
}]), o;
|
|
642
|
-
}(c.Component);
|
|
643
|
-
E.defaultProps = {
|
|
644
|
-
style: {
|
|
645
|
-
overlay: {},
|
|
646
|
-
content: {}
|
|
647
|
-
},
|
|
648
|
-
defaultStyles: {}
|
|
649
|
-
}, E.propTypes = {
|
|
650
|
-
isOpen: e.default.bool.isRequired,
|
|
651
|
-
defaultStyles: e.default.shape({
|
|
652
|
-
content: e.default.object,
|
|
653
|
-
overlay: e.default.object
|
|
654
|
-
}),
|
|
655
|
-
style: e.default.shape({
|
|
656
|
-
content: e.default.object,
|
|
657
|
-
overlay: e.default.object
|
|
658
|
-
}),
|
|
659
|
-
className: e.default.oneOfType([e.default.string, e.default.object]),
|
|
660
|
-
overlayClassName: e.default.oneOfType([e.default.string, e.default.object]),
|
|
661
|
-
parentSelector: e.default.func,
|
|
662
|
-
bodyOpenClassName: e.default.string,
|
|
663
|
-
htmlOpenClassName: e.default.string,
|
|
664
|
-
ariaHideApp: e.default.bool,
|
|
665
|
-
appElement: e.default.oneOfType([e.default.instanceOf(R.default), e.default.instanceOf(w.SafeHTMLCollection), e.default.instanceOf(w.SafeNodeList), e.default.arrayOf(e.default.instanceOf(R.default))]),
|
|
666
|
-
onAfterOpen: e.default.func,
|
|
667
|
-
onAfterClose: e.default.func,
|
|
668
|
-
onRequestClose: e.default.func,
|
|
669
|
-
closeTimeoutMS: e.default.number,
|
|
670
|
-
shouldFocusAfterRender: e.default.bool,
|
|
671
|
-
shouldCloseOnOverlayClick: e.default.bool,
|
|
672
|
-
shouldReturnFocusAfterClose: e.default.bool,
|
|
673
|
-
preventScroll: e.default.bool,
|
|
674
|
-
role: e.default.string,
|
|
675
|
-
contentLabel: e.default.string,
|
|
676
|
-
aria: e.default.object,
|
|
677
|
-
data: e.default.object,
|
|
678
|
-
children: e.default.node,
|
|
679
|
-
shouldCloseOnEsc: e.default.bool,
|
|
680
|
-
overlayRef: e.default.func,
|
|
681
|
-
contentRef: e.default.func,
|
|
682
|
-
id: e.default.string,
|
|
683
|
-
overlayElement: e.default.func,
|
|
684
|
-
contentElement: e.default.func,
|
|
685
|
-
testId: e.default.string
|
|
686
|
-
}, a.default = E, d.exports = a.default;
|
|
687
|
-
}(J, J.exports)), J.exports;
|
|
688
|
-
}
|
|
689
|
-
function Ce() {
|
|
690
|
-
var d = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
691
|
-
d != null && this.setState(d);
|
|
692
|
-
}
|
|
693
|
-
function Ee(d) {
|
|
694
|
-
function a(h) {
|
|
695
|
-
var l = this.constructor.getDerivedStateFromProps(d, h);
|
|
696
|
-
return l ?? null;
|
|
697
|
-
}
|
|
698
|
-
this.setState(a.bind(this));
|
|
699
|
-
}
|
|
700
|
-
function we(d, a) {
|
|
701
|
-
try {
|
|
702
|
-
var h = this.props, l = this.state;
|
|
703
|
-
this.props = d, this.state = a, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
|
704
|
-
h,
|
|
705
|
-
l
|
|
706
|
-
);
|
|
707
|
-
} finally {
|
|
708
|
-
this.props = h, this.state = l;
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
Ce.__suppressDeprecationWarning = !0;
|
|
712
|
-
Ee.__suppressDeprecationWarning = !0;
|
|
713
|
-
we.__suppressDeprecationWarning = !0;
|
|
714
|
-
function We(d) {
|
|
715
|
-
var a = d.prototype;
|
|
716
|
-
if (!a || !a.isReactComponent)
|
|
717
|
-
throw new Error("Can only polyfill class components");
|
|
718
|
-
if (typeof d.getDerivedStateFromProps != "function" && typeof a.getSnapshotBeforeUpdate != "function")
|
|
719
|
-
return d;
|
|
720
|
-
var h = null, l = null, u = null;
|
|
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()";
|
|
723
|
-
throw Error(
|
|
724
|
-
`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
725
|
-
|
|
726
|
-
` + c + " uses " + g + " but also contains the following legacy lifecycles:" + (h !== null ? `
|
|
727
|
-
` + h : "") + (l !== null ? `
|
|
728
|
-
` + l : "") + (u !== null ? `
|
|
729
|
-
` + u : "") + `
|
|
730
|
-
|
|
731
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
732
|
-
https://fb.me/react-async-component-lifecycle-hooks`
|
|
733
|
-
);
|
|
734
|
-
}
|
|
735
|
-
if (typeof d.getDerivedStateFromProps == "function" && (a.componentWillMount = Ce, a.componentWillReceiveProps = Ee), typeof a.getSnapshotBeforeUpdate == "function") {
|
|
736
|
-
if (typeof a.componentDidUpdate != "function")
|
|
737
|
-
throw new Error(
|
|
738
|
-
"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
|
|
739
|
-
);
|
|
740
|
-
a.componentWillUpdate = we;
|
|
741
|
-
var e = a.componentDidUpdate;
|
|
742
|
-
a.componentDidUpdate = function(p, s, n) {
|
|
743
|
-
var f = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : n;
|
|
744
|
-
e.call(this, p, s, f);
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
return d;
|
|
748
|
-
}
|
|
749
|
-
const He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
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", {
|
|
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]);
|
|
764
|
-
}
|
|
765
|
-
return b;
|
|
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);
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
return function(m, E, r) {
|
|
774
|
-
return E && b(m.prototype, E), r && b(m, r), m;
|
|
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;
|
|
777
|
-
function _(b) {
|
|
778
|
-
if (b && b.__esModule)
|
|
779
|
-
return b;
|
|
780
|
-
var m = {};
|
|
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;
|
|
785
|
-
}
|
|
786
|
-
function w(b) {
|
|
787
|
-
return b && b.__esModule ? b : { default: b };
|
|
788
|
-
}
|
|
789
|
-
function R(b, m) {
|
|
790
|
-
if (!(b instanceof m))
|
|
791
|
-
throw new TypeError("Cannot call a class as a function");
|
|
792
|
-
}
|
|
793
|
-
function A(b, m) {
|
|
794
|
-
if (!b)
|
|
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;
|
|
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);
|
|
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);
|
|
805
|
-
}, $ = function() {
|
|
806
|
-
return F ? c.default.createPortal : c.default.unstable_renderSubtreeIntoContainer;
|
|
807
|
-
};
|
|
808
|
-
function U(b) {
|
|
809
|
-
return b();
|
|
810
|
-
}
|
|
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() {
|
|
819
|
-
!F && c.default.unmountComponentAtNode(o.node);
|
|
820
|
-
var S = U(o.props.parentSelector);
|
|
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
|
-
}, o.portalRef = function(S) {
|
|
823
|
-
o.portal = S;
|
|
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);
|
|
828
|
-
}
|
|
829
|
-
return a(m, [{
|
|
830
|
-
key: "componentDidMount",
|
|
831
|
-
value: function() {
|
|
832
|
-
if (f.canUseDOM) {
|
|
833
|
-
F || (this.node = K("div")), this.node.className = this.props.portalClassName;
|
|
834
|
-
var r = U(this.props.parentSelector);
|
|
835
|
-
r.appendChild(this.node), !F && this.renderPortal(this.props);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
}, {
|
|
839
|
-
key: "getSnapshotBeforeUpdate",
|
|
840
|
-
value: function(r) {
|
|
841
|
-
var o = U(r.parentSelector), C = U(this.props.parentSelector);
|
|
842
|
-
return { prevParent: o, nextParent: C };
|
|
843
|
-
}
|
|
844
|
-
}, {
|
|
845
|
-
key: "componentDidUpdate",
|
|
846
|
-
value: function(r, o, C) {
|
|
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);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
}, {
|
|
855
|
-
key: "componentWillUnmount",
|
|
856
|
-
value: function() {
|
|
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();
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}, {
|
|
863
|
-
key: "render",
|
|
864
|
-
value: function() {
|
|
865
|
-
if (!f.canUseDOM || !F)
|
|
866
|
-
return null;
|
|
867
|
-
!this.node && F && (this.node = K("div"));
|
|
868
|
-
var r = $();
|
|
869
|
-
return r(l.default.createElement(p.default, d({
|
|
870
|
-
ref: this.portalRef,
|
|
871
|
-
defaultStyles: m.defaultStyles
|
|
872
|
-
}, this.props)), this.node);
|
|
873
|
-
}
|
|
874
|
-
}], [{
|
|
875
|
-
key: "setAppElement",
|
|
876
|
-
value: function(r) {
|
|
877
|
-
n.setElement(r);
|
|
878
|
-
}
|
|
879
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
880
|
-
/* eslint-enable react/no-unused-prop-types */
|
|
881
|
-
}]), m;
|
|
882
|
-
}(h.Component);
|
|
883
|
-
return W.propTypes = {
|
|
884
|
-
isOpen: e.default.bool.isRequired,
|
|
885
|
-
style: e.default.shape({
|
|
886
|
-
content: e.default.object,
|
|
887
|
-
overlay: e.default.object
|
|
888
|
-
}),
|
|
889
|
-
portalClassName: e.default.string,
|
|
890
|
-
bodyOpenClassName: e.default.string,
|
|
891
|
-
htmlOpenClassName: e.default.string,
|
|
892
|
-
className: e.default.oneOfType([e.default.string, e.default.shape({
|
|
893
|
-
base: e.default.string.isRequired,
|
|
894
|
-
afterOpen: e.default.string.isRequired,
|
|
895
|
-
beforeClose: e.default.string.isRequired
|
|
896
|
-
})]),
|
|
897
|
-
overlayClassName: e.default.oneOfType([e.default.string, e.default.shape({
|
|
898
|
-
base: e.default.string.isRequired,
|
|
899
|
-
afterOpen: e.default.string.isRequired,
|
|
900
|
-
beforeClose: e.default.string.isRequired
|
|
901
|
-
})]),
|
|
902
|
-
appElement: e.default.oneOfType([e.default.instanceOf(i.default), e.default.instanceOf(f.SafeHTMLCollection), e.default.instanceOf(f.SafeNodeList), e.default.arrayOf(e.default.instanceOf(i.default))]),
|
|
903
|
-
onAfterOpen: e.default.func,
|
|
904
|
-
onRequestClose: e.default.func,
|
|
905
|
-
closeTimeoutMS: e.default.number,
|
|
906
|
-
ariaHideApp: e.default.bool,
|
|
907
|
-
shouldFocusAfterRender: e.default.bool,
|
|
908
|
-
shouldCloseOnOverlayClick: e.default.bool,
|
|
909
|
-
shouldReturnFocusAfterClose: e.default.bool,
|
|
910
|
-
preventScroll: e.default.bool,
|
|
911
|
-
parentSelector: e.default.func,
|
|
912
|
-
aria: e.default.object,
|
|
913
|
-
data: e.default.object,
|
|
914
|
-
role: e.default.string,
|
|
915
|
-
contentLabel: e.default.string,
|
|
916
|
-
shouldCloseOnEsc: e.default.bool,
|
|
917
|
-
overlayRef: e.default.func,
|
|
918
|
-
contentRef: e.default.func,
|
|
919
|
-
id: e.default.string,
|
|
920
|
-
overlayElement: e.default.func,
|
|
921
|
-
contentElement: e.default.func
|
|
922
|
-
}, W.defaultProps = {
|
|
923
|
-
isOpen: !1,
|
|
924
|
-
portalClassName: P,
|
|
925
|
-
bodyOpenClassName: j,
|
|
926
|
-
role: "dialog",
|
|
927
|
-
ariaHideApp: !0,
|
|
928
|
-
closeTimeoutMS: 0,
|
|
929
|
-
shouldFocusAfterRender: !0,
|
|
930
|
-
shouldCloseOnEsc: !0,
|
|
931
|
-
shouldCloseOnOverlayClick: !0,
|
|
932
|
-
shouldReturnFocusAfterClose: !0,
|
|
933
|
-
preventScroll: !1,
|
|
934
|
-
parentSelector: function() {
|
|
935
|
-
return document.body;
|
|
936
|
-
},
|
|
937
|
-
overlayElement: function(m, E) {
|
|
938
|
-
return l.default.createElement(
|
|
939
|
-
"div",
|
|
940
|
-
m,
|
|
941
|
-
E
|
|
942
|
-
);
|
|
943
|
-
},
|
|
944
|
-
contentElement: function(m, E) {
|
|
945
|
-
return l.default.createElement(
|
|
946
|
-
"div",
|
|
947
|
-
m,
|
|
948
|
-
E
|
|
949
|
-
);
|
|
950
|
-
}
|
|
951
|
-
}, W.defaultStyles = {
|
|
952
|
-
overlay: {
|
|
953
|
-
position: "fixed",
|
|
954
|
-
top: 0,
|
|
955
|
-
left: 0,
|
|
956
|
-
right: 0,
|
|
957
|
-
bottom: 0,
|
|
958
|
-
backgroundColor: "rgba(255, 255, 255, 0.75)"
|
|
959
|
-
},
|
|
960
|
-
content: {
|
|
961
|
-
position: "absolute",
|
|
962
|
-
top: "40px",
|
|
963
|
-
left: "40px",
|
|
964
|
-
right: "40px",
|
|
965
|
-
bottom: "40px",
|
|
966
|
-
border: "1px solid #ccc",
|
|
967
|
-
background: "#fff",
|
|
968
|
-
overflow: "auto",
|
|
969
|
-
WebkitOverflowScrolling: "touch",
|
|
970
|
-
borderRadius: "4px",
|
|
971
|
-
outline: "none",
|
|
972
|
-
padding: "20px"
|
|
973
|
-
}
|
|
974
|
-
}, (0, y.polyfill)(W), process.env.NODE_ENV !== "production" && (W.setCreateHTMLElement = function(b) {
|
|
975
|
-
return K = b;
|
|
976
|
-
}), k.default = W, k;
|
|
977
|
-
}
|
|
978
|
-
var he;
|
|
979
|
-
function Be() {
|
|
980
|
-
return he || (he = 1, function(d, a) {
|
|
981
|
-
Object.defineProperty(a, "__esModule", {
|
|
982
|
-
value: !0
|
|
983
|
-
});
|
|
984
|
-
var h = Ie(), l = u(h);
|
|
985
|
-
function u(c) {
|
|
986
|
-
return c && c.__esModule ? c : { default: c };
|
|
987
|
-
}
|
|
988
|
-
a.default = l.default, d.exports = a.default;
|
|
989
|
-
}(G, G.exports)), G.exports;
|
|
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
|
-
};
|
|
1066
|
-
export {
|
|
1067
|
-
Ye as A,
|
|
1068
|
-
Ve as M
|
|
1069
|
-
};
|