react-ecosistema-unp 1.7.26 → 1.8.0-pre.0
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/README.md +53 -1
- package/dist/lib/assets/animations/pets_v2/camaleon_ecosistema.json.d.ts +3 -0
- package/dist/lib/assets/animations/pets_v2/chiguiro_ecosistema.json.d.ts +3 -0
- package/dist/lib/assets/animations/pets_v2/loro_ecosistema.json.d.ts +3 -0
- package/dist/lib/assets/animations/pets_v2/oso_ecosistema.json.d.ts +3 -0
- package/dist/lib/assets/animations/pets_v2/paloma_ecosistema.json.d.ts +3 -0
- package/dist/lib/assets/animations/pets_v2/pato_ecosistema.json.d.ts +3 -0
- package/dist/lib/assets/animations/pets_v2/perro_ecosistema.json.d.ts +3 -0
- package/dist/lib/tables/tabla-registros/TablaRegistros.d.ts +1 -0
- package/dist/lib/tables/tabla-registros/tabla/Tabla.d.ts +2 -0
- package/dist/lib/ui/animacion/Animacion.d.ts +1 -1
- package/dist/lib/utils/Url.d.ts +2 -3
- package/dist/tables/tabla-registros/TablaRegistros.js +642 -631
- package/dist/tables/tabla-registros/tabla/Tabla.js +58 -51
- package/dist/ui/animacion/Animacion.js +182 -98
- package/dist/utils/Url.js +9 -10
- package/package.json +1 -1
- /package/dist/lib/assets/animations/{pets → pets_v2}/buho_ecosistema.json.d.ts +0 -0
- /package/dist/lib/assets/animations/{pets → pets_v2}/colibri_ecosistema.json.d.ts +0 -0
- /package/dist/lib/assets/animations/{pets → pets_v2}/condor_ecosistema.json.d.ts +0 -0
- /package/dist/lib/assets/animations/{pets → pets_v2}/gato_ecosistema.json.d.ts +0 -0
- /package/dist/lib/assets/animations/{pets → pets_v2}/jaguar_ecosistema.json.d.ts +0 -0
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { jsxs as M, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { L as
|
|
4
|
-
import { Tabla as
|
|
5
|
-
import { EcoModal as
|
|
6
|
-
import { EncabezadoTabla as
|
|
7
|
-
import { useNavigate as
|
|
1
|
+
import { jsxs as M, Fragment as tt, jsx as P } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z, useEffect as nt, useMemo as Ln, useRef as $n } from "react";
|
|
3
|
+
import { L as Se, i as Sn, n as In, a as Mn } from "../../isLoading-B9qN9mny.js";
|
|
4
|
+
import { Tabla as On } from "./tabla/Tabla.js";
|
|
5
|
+
import { EcoModal as Dn } from "./modal-v2/EcoModal.js";
|
|
6
|
+
import { EncabezadoTabla as Hn } from "./encabezado-tabla/EncabezadoTabla.js";
|
|
7
|
+
import { useNavigate as jn } from "react-router-dom";
|
|
8
8
|
import '../../assets/TablaRegistros.css';/*!
|
|
9
9
|
* sweetalert2 v11.16.1
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
12
|
-
function
|
|
12
|
+
function gt(e, t, n) {
|
|
13
13
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
14
14
|
throw new TypeError("Private element is not present on this object");
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function zn(e, t) {
|
|
17
17
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return e.get(
|
|
19
|
+
function ot(e, t) {
|
|
20
|
+
return e.get(gt(e, t));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function Fn(e, t, n) {
|
|
23
|
+
zn(e, t), t.set(e, n);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return e.set(
|
|
25
|
+
function qn(e, t, n) {
|
|
26
|
+
return e.set(gt(e, t), n), n;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Vn = 100, a = {}, Nn = () => {
|
|
29
29
|
a.previousActiveElement instanceof HTMLElement ? (a.previousActiveElement.focus(), a.previousActiveElement = null) : document.body && document.body.focus();
|
|
30
|
-
},
|
|
30
|
+
}, Rn = (e) => new Promise((t) => {
|
|
31
31
|
if (!e)
|
|
32
32
|
return t();
|
|
33
33
|
const n = window.scrollX, o = window.scrollY;
|
|
34
34
|
a.restoreFocusTimeout = setTimeout(() => {
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
}),
|
|
38
|
-
(e, t) => (e[t] =
|
|
35
|
+
Nn(), t();
|
|
36
|
+
}, Vn), window.scrollTo(n, o);
|
|
37
|
+
}), pt = "swal2-", Wn = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error", "draggable", "dragging"], i = Wn.reduce(
|
|
38
|
+
(e, t) => (e[t] = pt + t, e),
|
|
39
39
|
/** @type {SwalClasses} */
|
|
40
40
|
{}
|
|
41
|
-
),
|
|
42
|
-
(e, t) => (e[t] =
|
|
41
|
+
), Un = ["success", "warning", "info", "question", "error"], me = Un.reduce(
|
|
42
|
+
(e, t) => (e[t] = pt + t, e),
|
|
43
43
|
/** @type {SwalIcons} */
|
|
44
44
|
{}
|
|
45
|
-
),
|
|
46
|
-
console.warn(`${
|
|
47
|
-
},
|
|
48
|
-
console.error(`${
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
},
|
|
45
|
+
), bt = "SweetAlert2:", He = (e) => e.charAt(0).toUpperCase() + e.slice(1), v = (e) => {
|
|
46
|
+
console.warn(`${bt} ${typeof e == "object" ? e.join(" ") : e}`);
|
|
47
|
+
}, N = (e) => {
|
|
48
|
+
console.error(`${bt} ${e}`);
|
|
49
|
+
}, st = [], _n = (e) => {
|
|
50
|
+
st.includes(e) || (st.push(e), v(e));
|
|
51
|
+
}, yt = function(e) {
|
|
52
52
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
53
|
-
|
|
54
|
-
},
|
|
53
|
+
_n(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
|
|
54
|
+
}, Ce = (e) => typeof e == "function" ? e() : e, je = (e) => e && typeof e.toPromise == "function", ee = (e) => je(e) ? e.toPromise() : Promise.resolve(e), ze = (e) => e && Promise.resolve(e) === e, k = () => document.body.querySelector(`.${i.container}`), te = (e) => {
|
|
55
55
|
const t = k();
|
|
56
56
|
return t ? t.querySelector(e) : null;
|
|
57
|
-
}, A = (e) =>
|
|
57
|
+
}, A = (e) => te(`.${e}`), u = () => A(i.popup), X = () => A(i.icon), Yn = () => A(i["icon-content"]), vt = () => A(i.title), Fe = () => A(i["html-container"]), kt = () => A(i.image), qe = () => A(i["progress-steps"]), Ee = () => A(i["validation-message"]), S = () => (
|
|
58
58
|
/** @type {HTMLButtonElement} */
|
|
59
|
-
|
|
60
|
-
),
|
|
59
|
+
te(`.${i.actions} .${i.confirm}`)
|
|
60
|
+
), K = () => (
|
|
61
61
|
/** @type {HTMLButtonElement} */
|
|
62
|
-
|
|
63
|
-
),
|
|
62
|
+
te(`.${i.actions} .${i.cancel}`)
|
|
63
|
+
), R = () => (
|
|
64
64
|
/** @type {HTMLButtonElement} */
|
|
65
|
-
|
|
66
|
-
),
|
|
65
|
+
te(`.${i.actions} .${i.deny}`)
|
|
66
|
+
), Xn = () => A(i["input-label"]), Z = () => te(`.${i.loader}`), ne = () => A(i.actions), xt = () => A(i.footer), Ae = () => A(i["timer-progress-bar"]), Ve = () => A(i.close), Kn = `
|
|
67
67
|
a[href],
|
|
68
68
|
area[href],
|
|
69
69
|
input:not([disabled]),
|
|
@@ -78,19 +78,19 @@ const Dn = 100, a = {}, Hn = () => {
|
|
|
78
78
|
audio[controls],
|
|
79
79
|
video[controls],
|
|
80
80
|
summary
|
|
81
|
-
`,
|
|
81
|
+
`, Ne = () => {
|
|
82
82
|
const e = u();
|
|
83
83
|
if (!e)
|
|
84
84
|
return [];
|
|
85
85
|
const t = e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(t).sort((r, l) => {
|
|
86
86
|
const c = parseInt(r.getAttribute("tabindex") || "0"), w = parseInt(l.getAttribute("tabindex") || "0");
|
|
87
87
|
return c > w ? 1 : c < w ? -1 : 0;
|
|
88
|
-
}), o = e.querySelectorAll(
|
|
88
|
+
}), o = e.querySelectorAll(Kn), s = Array.from(o).filter((r) => r.getAttribute("tabindex") !== "-1");
|
|
89
89
|
return [...new Set(n.concat(s))].filter((r) => x(r));
|
|
90
|
-
},
|
|
90
|
+
}, Re = () => I(document.body, i.shown) && !I(document.body, i["toast-shown"]) && !I(document.body, i["no-backdrop"]), Be = () => {
|
|
91
91
|
const e = u();
|
|
92
92
|
return e ? I(e, i.toast) : !1;
|
|
93
|
-
},
|
|
93
|
+
}, Zn = () => {
|
|
94
94
|
const e = u();
|
|
95
95
|
return e ? e.hasAttribute("data-loading") : !1;
|
|
96
96
|
}, B = (e, t) => {
|
|
@@ -112,12 +112,12 @@ const Dn = 100, a = {}, Hn = () => {
|
|
|
112
112
|
if (!e.classList.contains(n[o]))
|
|
113
113
|
return !1;
|
|
114
114
|
return !0;
|
|
115
|
-
},
|
|
115
|
+
}, Jn = (e, t) => {
|
|
116
116
|
Array.from(e.classList).forEach((n) => {
|
|
117
|
-
!Object.values(i).includes(n) && !Object.values(
|
|
117
|
+
!Object.values(i).includes(n) && !Object.values(me).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
|
|
118
118
|
});
|
|
119
119
|
}, E = (e, t, n) => {
|
|
120
|
-
if (
|
|
120
|
+
if (Jn(e, t), !t.customClass)
|
|
121
121
|
return;
|
|
122
122
|
const o = t.customClass[
|
|
123
123
|
/** @type {keyof SweetAlertCustomClass} */
|
|
@@ -130,7 +130,7 @@ const Dn = 100, a = {}, Hn = () => {
|
|
|
130
130
|
}
|
|
131
131
|
d(e, o);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, Pe = (e, t) => {
|
|
134
134
|
if (!t)
|
|
135
135
|
return null;
|
|
136
136
|
switch (t) {
|
|
@@ -147,21 +147,21 @@ const Dn = 100, a = {}, Hn = () => {
|
|
|
147
147
|
default:
|
|
148
148
|
return e.querySelector(`.${i.popup} > .${i.input}`);
|
|
149
149
|
}
|
|
150
|
-
},
|
|
150
|
+
}, Ct = (e) => {
|
|
151
151
|
if (e.focus(), e.type !== "file") {
|
|
152
152
|
const t = e.value;
|
|
153
153
|
e.value = "", e.value = t;
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, Et = (e, t, n) => {
|
|
156
156
|
!e || !t || (typeof t == "string" && (t = t.split(/\s+/).filter(Boolean)), t.forEach((o) => {
|
|
157
157
|
Array.isArray(e) ? e.forEach((s) => {
|
|
158
158
|
n ? s.classList.add(o) : s.classList.remove(o);
|
|
159
159
|
}) : n ? e.classList.add(o) : e.classList.remove(o);
|
|
160
160
|
}));
|
|
161
161
|
}, d = (e, t) => {
|
|
162
|
-
|
|
162
|
+
Et(e, t, !0);
|
|
163
163
|
}, T = (e, t) => {
|
|
164
|
-
|
|
164
|
+
Et(e, t, !1);
|
|
165
165
|
}, O = (e, t) => {
|
|
166
166
|
const n = Array.from(e.children);
|
|
167
167
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -169,45 +169,45 @@ const Dn = 100, a = {}, Hn = () => {
|
|
|
169
169
|
if (s instanceof HTMLElement && I(s, t))
|
|
170
170
|
return s;
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, q = (e, t, n) => {
|
|
173
173
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? e.style.setProperty(t, typeof n == "number" ? `${n}px` : n) : e.style.removeProperty(t);
|
|
174
|
-
},
|
|
174
|
+
}, b = function(e) {
|
|
175
175
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "flex";
|
|
176
176
|
e && (e.style.display = t);
|
|
177
177
|
}, y = (e) => {
|
|
178
178
|
e && (e.style.display = "none");
|
|
179
|
-
},
|
|
179
|
+
}, We = function(e) {
|
|
180
180
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "block";
|
|
181
181
|
e && new MutationObserver(() => {
|
|
182
|
-
|
|
182
|
+
oe(e, e.innerHTML, t);
|
|
183
183
|
}).observe(e, {
|
|
184
184
|
childList: !0,
|
|
185
185
|
subtree: !0
|
|
186
186
|
});
|
|
187
|
-
},
|
|
187
|
+
}, it = (e, t, n, o) => {
|
|
188
188
|
const s = e.querySelector(t);
|
|
189
189
|
s && s.style.setProperty(n, o);
|
|
190
|
-
},
|
|
190
|
+
}, oe = function(e, t) {
|
|
191
191
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "flex";
|
|
192
|
-
t ?
|
|
193
|
-
}, x = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)),
|
|
192
|
+
t ? b(e, n) : y(e);
|
|
193
|
+
}, x = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Gn = () => !x(S()) && !x(R()) && !x(K()), rt = (e) => e.scrollHeight > e.clientHeight, At = (e) => {
|
|
194
194
|
const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), o = parseFloat(t.getPropertyValue("transition-duration") || "0");
|
|
195
195
|
return n > 0 || o > 0;
|
|
196
|
-
},
|
|
196
|
+
}, Ue = function(e) {
|
|
197
197
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
198
|
-
const n =
|
|
198
|
+
const n = Ae();
|
|
199
199
|
n && x(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
200
200
|
n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
|
|
201
201
|
}, 10));
|
|
202
|
-
},
|
|
203
|
-
const e =
|
|
202
|
+
}, Qn = () => {
|
|
203
|
+
const e = Ae();
|
|
204
204
|
if (!e)
|
|
205
205
|
return;
|
|
206
206
|
const t = parseInt(window.getComputedStyle(e).width);
|
|
207
207
|
e.style.removeProperty("transition"), e.style.width = "100%";
|
|
208
208
|
const n = parseInt(window.getComputedStyle(e).width), o = t / n * 100;
|
|
209
209
|
e.style.width = `${o}%`;
|
|
210
|
-
},
|
|
210
|
+
}, eo = () => typeof window > "u" || typeof document > "u", to = `
|
|
211
211
|
<div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
|
|
212
212
|
<button type="button" class="${i.close}"></button>
|
|
213
213
|
<ul class="${i["progress-steps"]}"></ul>
|
|
@@ -240,168 +240,168 @@ const Dn = 100, a = {}, Hn = () => {
|
|
|
240
240
|
<div class="${i["timer-progress-bar"]}"></div>
|
|
241
241
|
</div>
|
|
242
242
|
</div>
|
|
243
|
-
`.replace(/(^|\n)\s*/g, ""),
|
|
243
|
+
`.replace(/(^|\n)\s*/g, ""), no = () => {
|
|
244
244
|
const e = k();
|
|
245
245
|
return e ? (e.remove(), T([document.documentElement, document.body], [i["no-backdrop"], i["toast-shown"], i["has-column"]]), !0) : !1;
|
|
246
|
-
},
|
|
246
|
+
}, F = () => {
|
|
247
247
|
a.currentInstance.resetValidationMessage();
|
|
248
|
-
},
|
|
248
|
+
}, oo = () => {
|
|
249
249
|
const e = u(), t = O(e, i.input), n = O(e, i.file), o = e.querySelector(`.${i.range} input`), s = e.querySelector(`.${i.range} output`), r = O(e, i.select), l = e.querySelector(`.${i.checkbox} input`), c = O(e, i.textarea);
|
|
250
|
-
t.oninput =
|
|
251
|
-
|
|
250
|
+
t.oninput = F, n.onchange = F, r.onchange = F, l.onchange = F, c.oninput = F, o.oninput = () => {
|
|
251
|
+
F(), s.value = o.value;
|
|
252
252
|
}, o.onchange = () => {
|
|
253
|
-
|
|
253
|
+
F(), s.value = o.value;
|
|
254
254
|
};
|
|
255
|
-
},
|
|
255
|
+
}, so = (e) => typeof e == "string" ? document.querySelector(e) : e, io = (e) => {
|
|
256
256
|
const t = u();
|
|
257
257
|
t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
|
|
258
|
-
},
|
|
258
|
+
}, ro = (e) => {
|
|
259
259
|
window.getComputedStyle(e).direction === "rtl" && d(k(), i.rtl);
|
|
260
|
-
},
|
|
261
|
-
const t =
|
|
262
|
-
if (
|
|
263
|
-
|
|
260
|
+
}, ao = (e) => {
|
|
261
|
+
const t = no();
|
|
262
|
+
if (eo()) {
|
|
263
|
+
N("SweetAlert2 requires document to initialize");
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
266
|
const n = document.createElement("div");
|
|
267
|
-
n.className = i.container, t && d(n, i["no-transition"]), B(n,
|
|
268
|
-
const o =
|
|
269
|
-
o.appendChild(n),
|
|
270
|
-
},
|
|
271
|
-
e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ?
|
|
272
|
-
},
|
|
273
|
-
e.jquery ?
|
|
274
|
-
},
|
|
267
|
+
n.className = i.container, t && d(n, i["no-transition"]), B(n, to), n.dataset.swal2Theme = e.theme;
|
|
268
|
+
const o = so(e.target);
|
|
269
|
+
o.appendChild(n), io(e), ro(o), oo();
|
|
270
|
+
}, _e = (e, t) => {
|
|
271
|
+
e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? lo(e, t) : e && B(t, e);
|
|
272
|
+
}, lo = (e, t) => {
|
|
273
|
+
e.jquery ? co(t, e) : B(t, e.toString());
|
|
274
|
+
}, co = (e, t) => {
|
|
275
275
|
if (e.textContent = "", 0 in t)
|
|
276
276
|
for (let n = 0; n in t; n++)
|
|
277
277
|
e.appendChild(t[n].cloneNode(!0));
|
|
278
278
|
else
|
|
279
279
|
e.appendChild(t.cloneNode(!0));
|
|
280
|
-
},
|
|
281
|
-
const n =
|
|
282
|
-
!n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? y(n) :
|
|
280
|
+
}, uo = (e, t) => {
|
|
281
|
+
const n = ne(), o = Z();
|
|
282
|
+
!n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? y(n) : b(n), E(n, t, "actions"), wo(n, o, t), B(o, t.loaderHtml || ""), E(o, t, "loader"));
|
|
283
283
|
};
|
|
284
|
-
function
|
|
285
|
-
const o = S(), s =
|
|
286
|
-
!o || !s || !r || (
|
|
284
|
+
function wo(e, t, n) {
|
|
285
|
+
const o = S(), s = R(), r = K();
|
|
286
|
+
!o || !s || !r || (Ie(o, "confirm", n), Ie(s, "deny", n), Ie(r, "cancel", n), fo(o, s, r, n), n.reverseButtons && (n.toast ? (e.insertBefore(r, o), e.insertBefore(s, o)) : (e.insertBefore(r, t), e.insertBefore(s, t), e.insertBefore(o, t))));
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function fo(e, t, n, o) {
|
|
289
289
|
if (!o.buttonsStyling) {
|
|
290
290
|
T([e, t, n], i.styled);
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
d([e, t, n], i.styled), o.confirmButtonColor && (e.style.backgroundColor = o.confirmButtonColor, d(e, i["default-outline"])), o.denyButtonColor && (t.style.backgroundColor = o.denyButtonColor, d(t, i["default-outline"])), o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor, d(n, i["default-outline"]));
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Ie(e, t, n) {
|
|
296
296
|
const o = (
|
|
297
297
|
/** @type {'Confirm' | 'Deny' | 'Cancel'} */
|
|
298
|
-
|
|
298
|
+
He(t)
|
|
299
299
|
);
|
|
300
|
-
|
|
300
|
+
oe(e, n[`show${o}Button`], "inline-block"), B(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = i[t], E(e, n, `${t}Button`);
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
const n =
|
|
304
|
-
n && (B(n, t.closeButtonHtml || ""), E(n, t, "closeButton"),
|
|
305
|
-
},
|
|
302
|
+
const mo = (e, t) => {
|
|
303
|
+
const n = Ve();
|
|
304
|
+
n && (B(n, t.closeButtonHtml || ""), E(n, t, "closeButton"), oe(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
|
|
305
|
+
}, ho = (e, t) => {
|
|
306
306
|
const n = k();
|
|
307
|
-
n && (
|
|
307
|
+
n && (go(n, t.backdrop), po(n, t.position), bo(n, t.grow), E(n, t, "container"));
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function go(e, t) {
|
|
310
310
|
typeof t == "string" ? e.style.background = t : t || d([document.documentElement, document.body], i["no-backdrop"]);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function po(e, t) {
|
|
313
313
|
t && (t in i ? d(e, i[t]) : (v('The "position" parameter is not valid, defaulting to "center"'), d(e, i.center)));
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function bo(e, t) {
|
|
316
316
|
t && d(e, i[`grow-${t}`]);
|
|
317
317
|
}
|
|
318
318
|
var f = {
|
|
319
319
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
320
320
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
321
321
|
};
|
|
322
|
-
const
|
|
322
|
+
const yo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], vo = (e, t) => {
|
|
323
323
|
const n = u();
|
|
324
324
|
if (!n)
|
|
325
325
|
return;
|
|
326
326
|
const o = f.innerParams.get(e), s = !o || t.input !== o.input;
|
|
327
|
-
|
|
327
|
+
yo.forEach((r) => {
|
|
328
328
|
const l = O(n, i[r]);
|
|
329
|
-
l && (
|
|
330
|
-
}), t.input && (s &&
|
|
331
|
-
},
|
|
329
|
+
l && (Co(r, t.inputAttributes), l.className = i[r], s && y(l));
|
|
330
|
+
}), t.input && (s && ko(t), Eo(t));
|
|
331
|
+
}, ko = (e) => {
|
|
332
332
|
if (!e.input)
|
|
333
333
|
return;
|
|
334
|
-
if (!
|
|
335
|
-
|
|
334
|
+
if (!h[e.input]) {
|
|
335
|
+
N(`Unexpected type of input! Expected ${Object.keys(h).join(" | ")}, got "${e.input}"`);
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
const t =
|
|
338
|
+
const t = Bt(e.input);
|
|
339
339
|
if (!t)
|
|
340
340
|
return;
|
|
341
|
-
const n =
|
|
342
|
-
|
|
343
|
-
|
|
341
|
+
const n = h[e.input](t, e);
|
|
342
|
+
b(t), e.inputAutoFocus && setTimeout(() => {
|
|
343
|
+
Ct(n);
|
|
344
344
|
});
|
|
345
|
-
},
|
|
345
|
+
}, xo = (e) => {
|
|
346
346
|
for (let t = 0; t < e.attributes.length; t++) {
|
|
347
347
|
const n = e.attributes[t].name;
|
|
348
348
|
["id", "type", "value", "style"].includes(n) || e.removeAttribute(n);
|
|
349
349
|
}
|
|
350
|
-
},
|
|
350
|
+
}, Co = (e, t) => {
|
|
351
351
|
const n = u();
|
|
352
352
|
if (!n)
|
|
353
353
|
return;
|
|
354
|
-
const o =
|
|
354
|
+
const o = Pe(n, e);
|
|
355
355
|
if (o) {
|
|
356
|
-
|
|
356
|
+
xo(o);
|
|
357
357
|
for (const s in t)
|
|
358
358
|
o.setAttribute(s, t[s]);
|
|
359
359
|
}
|
|
360
|
-
},
|
|
360
|
+
}, Eo = (e) => {
|
|
361
361
|
if (!e.input)
|
|
362
362
|
return;
|
|
363
|
-
const t =
|
|
363
|
+
const t = Bt(e.input);
|
|
364
364
|
t && E(t, e, "input");
|
|
365
|
-
},
|
|
365
|
+
}, Ye = (e, t) => {
|
|
366
366
|
!e.placeholder && t.inputPlaceholder && (e.placeholder = t.inputPlaceholder);
|
|
367
|
-
},
|
|
367
|
+
}, se = (e, t, n) => {
|
|
368
368
|
if (n.inputLabel) {
|
|
369
369
|
const o = document.createElement("label"), s = i["input-label"];
|
|
370
370
|
o.setAttribute("for", e.id), o.className = s, typeof n.customClass == "object" && d(o, n.customClass.inputLabel), o.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", o);
|
|
371
371
|
}
|
|
372
|
-
},
|
|
372
|
+
}, Bt = (e) => {
|
|
373
373
|
const t = u();
|
|
374
374
|
if (t)
|
|
375
375
|
return O(t, i[
|
|
376
376
|
/** @type {SwalClass} */
|
|
377
377
|
e
|
|
378
378
|
] || i.input);
|
|
379
|
-
},
|
|
380
|
-
["string", "number"].includes(typeof t) ? e.value = `${t}` :
|
|
381
|
-
},
|
|
382
|
-
|
|
383
|
-
(e, t) => (
|
|
384
|
-
|
|
385
|
-
|
|
379
|
+
}, he = (e, t) => {
|
|
380
|
+
["string", "number"].includes(typeof t) ? e.value = `${t}` : ze(t) || v(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
|
|
381
|
+
}, h = {};
|
|
382
|
+
h.text = h.email = h.password = h.number = h.tel = h.url = h.search = h.date = h["datetime-local"] = h.time = h.week = h.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
|
|
383
|
+
(e, t) => (he(e, t.inputValue), se(e, e, t), Ye(e, t), e.type = t.input, e);
|
|
384
|
+
h.file = (e, t) => (se(e, e, t), Ye(e, t), e);
|
|
385
|
+
h.range = (e, t) => {
|
|
386
386
|
const n = e.querySelector("input"), o = e.querySelector("output");
|
|
387
|
-
return
|
|
387
|
+
return he(n, t.inputValue), n.type = t.input, he(o, t.inputValue), se(n, e, t), e;
|
|
388
388
|
};
|
|
389
|
-
|
|
389
|
+
h.select = (e, t) => {
|
|
390
390
|
if (e.textContent = "", t.inputPlaceholder) {
|
|
391
391
|
const n = document.createElement("option");
|
|
392
392
|
B(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return se(e, e, t), e;
|
|
395
395
|
};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
const n =
|
|
396
|
+
h.radio = (e) => (e.textContent = "", e);
|
|
397
|
+
h.checkbox = (e, t) => {
|
|
398
|
+
const n = Pe(u(), "checkbox");
|
|
399
399
|
n.value = "1", n.checked = !!t.inputValue;
|
|
400
400
|
const o = e.querySelector("span");
|
|
401
401
|
return B(o, t.inputPlaceholder || t.inputLabel), n;
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
h.textarea = (e, t) => {
|
|
404
|
+
he(e, t.inputValue), Ye(e, t), se(e, e, t);
|
|
405
405
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
406
406
|
return setTimeout(() => {
|
|
407
407
|
if ("MutationObserver" in window) {
|
|
@@ -409,7 +409,7 @@ m.textarea = (e, t) => {
|
|
|
409
409
|
if (!document.body.contains(e))
|
|
410
410
|
return;
|
|
411
411
|
const r = e.offsetWidth + n(e);
|
|
412
|
-
r > o ? u().style.width = `${r}px` :
|
|
412
|
+
r > o ? u().style.width = `${r}px` : q(u(), "width", t.width);
|
|
413
413
|
};
|
|
414
414
|
new MutationObserver(s).observe(e, {
|
|
415
415
|
attributes: !0,
|
|
@@ -418,104 +418,104 @@ m.textarea = (e, t) => {
|
|
|
418
418
|
}
|
|
419
419
|
}), e;
|
|
420
420
|
};
|
|
421
|
-
const
|
|
422
|
-
const n =
|
|
423
|
-
n && (
|
|
424
|
-
},
|
|
425
|
-
const n =
|
|
426
|
-
n && (
|
|
427
|
-
},
|
|
428
|
-
const n = f.innerParams.get(e), o =
|
|
421
|
+
const Ao = (e, t) => {
|
|
422
|
+
const n = Fe();
|
|
423
|
+
n && (We(n), E(n, t, "htmlContainer"), t.html ? (_e(t.html, n), b(n, "block")) : t.text ? (n.textContent = t.text, b(n, "block")) : y(n), vo(e, t));
|
|
424
|
+
}, Bo = (e, t) => {
|
|
425
|
+
const n = xt();
|
|
426
|
+
n && (We(n), oe(n, t.footer, "block"), t.footer && _e(t.footer, n), E(n, t, "footer"));
|
|
427
|
+
}, Po = (e, t) => {
|
|
428
|
+
const n = f.innerParams.get(e), o = X();
|
|
429
429
|
if (!o)
|
|
430
430
|
return;
|
|
431
431
|
if (n && t.icon === n.icon) {
|
|
432
|
-
|
|
432
|
+
lt(o, t), at(o, t);
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
if (!t.icon && !t.iconHtml) {
|
|
436
436
|
y(o);
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
|
-
if (t.icon && Object.keys(
|
|
440
|
-
|
|
439
|
+
if (t.icon && Object.keys(me).indexOf(t.icon) === -1) {
|
|
440
|
+
N(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), y(o);
|
|
441
441
|
return;
|
|
442
442
|
}
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
for (const [n, o] of Object.entries(
|
|
443
|
+
b(o), lt(o, t), at(o, t), d(o, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", Pt);
|
|
444
|
+
}, at = (e, t) => {
|
|
445
|
+
for (const [n, o] of Object.entries(me))
|
|
446
446
|
t.icon !== n && T(e, o);
|
|
447
|
-
d(e, t.icon &&
|
|
448
|
-
},
|
|
447
|
+
d(e, t.icon && me[t.icon]), $o(e, t), Pt(), E(e, t, "icon");
|
|
448
|
+
}, Pt = () => {
|
|
449
449
|
const e = u();
|
|
450
450
|
if (!e)
|
|
451
451
|
return;
|
|
452
452
|
const t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
453
453
|
for (let o = 0; o < n.length; o++)
|
|
454
454
|
n[o].style.backgroundColor = t;
|
|
455
|
-
},
|
|
455
|
+
}, To = `
|
|
456
456
|
<div class="swal2-success-circular-line-left"></div>
|
|
457
457
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
458
458
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
459
459
|
<div class="swal2-success-circular-line-right"></div>
|
|
460
|
-
`,
|
|
460
|
+
`, Lo = `
|
|
461
461
|
<span class="swal2-x-mark">
|
|
462
462
|
<span class="swal2-x-mark-line-left"></span>
|
|
463
463
|
<span class="swal2-x-mark-line-right"></span>
|
|
464
464
|
</span>
|
|
465
|
-
`,
|
|
465
|
+
`, lt = (e, t) => {
|
|
466
466
|
if (!t.icon && !t.iconHtml)
|
|
467
467
|
return;
|
|
468
468
|
let n = e.innerHTML, o = "";
|
|
469
|
-
t.iconHtml ? o =
|
|
469
|
+
t.iconHtml ? o = ct(t.iconHtml) : t.icon === "success" ? (o = To, n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? o = Lo : t.icon && (o = ct({
|
|
470
470
|
question: "?",
|
|
471
471
|
warning: "!",
|
|
472
472
|
info: "i"
|
|
473
473
|
}[t.icon])), n.trim() !== o.trim() && B(e, o);
|
|
474
|
-
},
|
|
474
|
+
}, $o = (e, t) => {
|
|
475
475
|
if (t.iconColor) {
|
|
476
476
|
e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
|
|
477
477
|
for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
|
|
478
|
-
|
|
479
|
-
|
|
478
|
+
it(e, n, "background-color", t.iconColor);
|
|
479
|
+
it(e, ".swal2-success-ring", "border-color", t.iconColor);
|
|
480
480
|
}
|
|
481
|
-
},
|
|
482
|
-
const n =
|
|
481
|
+
}, ct = (e) => `<div class="${i["icon-content"]}">${e}</div>`, So = (e, t) => {
|
|
482
|
+
const n = kt();
|
|
483
483
|
if (n) {
|
|
484
484
|
if (!t.imageUrl) {
|
|
485
485
|
y(n);
|
|
486
486
|
return;
|
|
487
487
|
}
|
|
488
|
-
|
|
488
|
+
b(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), q(n, "width", t.imageWidth), q(n, "height", t.imageHeight), n.className = i.image, E(n, t, "image");
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
let
|
|
492
|
-
const
|
|
493
|
-
e.addEventListener("mousedown",
|
|
494
|
-
},
|
|
495
|
-
e.removeEventListener("mousedown",
|
|
496
|
-
},
|
|
491
|
+
let Xe = !1, Tt = 0, Lt = 0, $t = 0, St = 0;
|
|
492
|
+
const Io = (e) => {
|
|
493
|
+
e.addEventListener("mousedown", ge), document.body.addEventListener("mousemove", pe), e.addEventListener("mouseup", be), e.addEventListener("touchstart", ge), document.body.addEventListener("touchmove", pe), e.addEventListener("touchend", be);
|
|
494
|
+
}, Mo = (e) => {
|
|
495
|
+
e.removeEventListener("mousedown", ge), document.body.removeEventListener("mousemove", pe), e.removeEventListener("mouseup", be), e.removeEventListener("touchstart", ge), document.body.removeEventListener("touchmove", pe), e.removeEventListener("touchend", be);
|
|
496
|
+
}, ge = (e) => {
|
|
497
497
|
const t = u();
|
|
498
|
-
if (e.target === t ||
|
|
498
|
+
if (e.target === t || X().contains(
|
|
499
499
|
/** @type {HTMLElement} */
|
|
500
500
|
e.target
|
|
501
501
|
)) {
|
|
502
|
-
|
|
503
|
-
const n =
|
|
504
|
-
|
|
502
|
+
Xe = !0;
|
|
503
|
+
const n = It(e);
|
|
504
|
+
Tt = n.clientX, Lt = n.clientY, $t = parseInt(t.style.insetInlineStart) || 0, St = parseInt(t.style.insetBlockStart) || 0, d(t, "swal2-dragging");
|
|
505
505
|
}
|
|
506
|
-
},
|
|
506
|
+
}, pe = (e) => {
|
|
507
507
|
const t = u();
|
|
508
|
-
if (
|
|
508
|
+
if (Xe) {
|
|
509
509
|
let {
|
|
510
510
|
clientX: n,
|
|
511
511
|
clientY: o
|
|
512
|
-
} =
|
|
513
|
-
t.style.insetInlineStart = `${
|
|
512
|
+
} = It(e);
|
|
513
|
+
t.style.insetInlineStart = `${$t + (n - Tt)}px`, t.style.insetBlockStart = `${St + (o - Lt)}px`;
|
|
514
514
|
}
|
|
515
|
-
},
|
|
515
|
+
}, be = () => {
|
|
516
516
|
const e = u();
|
|
517
|
-
|
|
518
|
-
},
|
|
517
|
+
Xe = !1, T(e, "swal2-dragging");
|
|
518
|
+
}, It = (e) => {
|
|
519
519
|
let t = 0, n = 0;
|
|
520
520
|
return e.type.startsWith("mouse") ? (t = /** @type {MouseEvent} */
|
|
521
521
|
e.clientX, n = /** @type {MouseEvent} */
|
|
@@ -525,22 +525,22 @@ const Bo = (e) => {
|
|
|
525
525
|
clientX: t,
|
|
526
526
|
clientY: n
|
|
527
527
|
};
|
|
528
|
-
},
|
|
528
|
+
}, Oo = (e, t) => {
|
|
529
529
|
const n = k(), o = u();
|
|
530
530
|
if (!(!n || !o)) {
|
|
531
531
|
if (t.toast) {
|
|
532
|
-
|
|
533
|
-
const s =
|
|
534
|
-
s && o.insertBefore(s,
|
|
532
|
+
q(n, "width", t.width), o.style.width = "100%";
|
|
533
|
+
const s = Z();
|
|
534
|
+
s && o.insertBefore(s, X());
|
|
535
535
|
} else
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
q(o, "width", t.width);
|
|
537
|
+
q(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), y(Ee()), Do(o, t), t.draggable && !t.toast ? (d(o, i.draggable), Io(o)) : (T(o, i.draggable), Mo(o));
|
|
538
538
|
}
|
|
539
|
-
},
|
|
539
|
+
}, Do = (e, t) => {
|
|
540
540
|
const n = t.showClass || {};
|
|
541
541
|
e.className = `${i.popup} ${x(e) ? n.popup : ""}`, t.toast ? (d([document.documentElement, document.body], i["toast-shown"]), d(e, i.toast)) : d(e, i.modal), E(e, t, "popup"), typeof t.customClass == "string" && d(e, t.customClass), t.icon && d(e, i[`icon-${t.icon}`]);
|
|
542
|
-
},
|
|
543
|
-
const n =
|
|
542
|
+
}, Ho = (e, t) => {
|
|
543
|
+
const n = qe();
|
|
544
544
|
if (!n)
|
|
545
545
|
return;
|
|
546
546
|
const {
|
|
@@ -551,85 +551,85 @@ const Bo = (e) => {
|
|
|
551
551
|
y(n);
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
|
|
555
|
-
const c =
|
|
554
|
+
b(n), n.textContent = "", s >= o.length && v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((r, l) => {
|
|
555
|
+
const c = jo(r);
|
|
556
556
|
if (n.appendChild(c), l === s && d(c, i["active-progress-step"]), l !== o.length - 1) {
|
|
557
|
-
const w =
|
|
557
|
+
const w = zo(t);
|
|
558
558
|
n.appendChild(w);
|
|
559
559
|
}
|
|
560
560
|
});
|
|
561
|
-
},
|
|
561
|
+
}, jo = (e) => {
|
|
562
562
|
const t = document.createElement("li");
|
|
563
563
|
return d(t, i["progress-step"]), B(t, e), t;
|
|
564
|
-
},
|
|
564
|
+
}, zo = (e) => {
|
|
565
565
|
const t = document.createElement("li");
|
|
566
|
-
return d(t, i["progress-step-line"]), e.progressStepsDistance &&
|
|
567
|
-
},
|
|
568
|
-
const n =
|
|
569
|
-
n && (
|
|
570
|
-
},
|
|
571
|
-
|
|
566
|
+
return d(t, i["progress-step-line"]), e.progressStepsDistance && q(t, "width", e.progressStepsDistance), t;
|
|
567
|
+
}, Fo = (e, t) => {
|
|
568
|
+
const n = vt();
|
|
569
|
+
n && (We(n), oe(n, t.title || t.titleText, "block"), t.title && _e(t.title, n), t.titleText && (n.innerText = t.titleText), E(n, t, "title"));
|
|
570
|
+
}, Mt = (e, t) => {
|
|
571
|
+
Oo(e, t), ho(e, t), Ho(e, t), Po(e, t), So(e, t), Fo(e, t), mo(e, t), Ao(e, t), uo(e, t), Bo(e, t);
|
|
572
572
|
const n = u();
|
|
573
573
|
typeof t.didRender == "function" && n && t.didRender(n), a.eventEmitter.emit("didRender", n);
|
|
574
|
-
},
|
|
574
|
+
}, qo = () => x(u()), Ot = () => {
|
|
575
575
|
var e;
|
|
576
576
|
return (e = S()) === null || e === void 0 ? void 0 : e.click();
|
|
577
|
-
},
|
|
577
|
+
}, Vo = () => {
|
|
578
578
|
var e;
|
|
579
|
-
return (e =
|
|
580
|
-
},
|
|
579
|
+
return (e = R()) === null || e === void 0 ? void 0 : e.click();
|
|
580
|
+
}, No = () => {
|
|
581
581
|
var e;
|
|
582
|
-
return (e =
|
|
583
|
-
},
|
|
582
|
+
return (e = K()) === null || e === void 0 ? void 0 : e.click();
|
|
583
|
+
}, J = Object.freeze({
|
|
584
584
|
cancel: "cancel",
|
|
585
585
|
backdrop: "backdrop",
|
|
586
586
|
close: "close",
|
|
587
587
|
esc: "esc",
|
|
588
588
|
timer: "timer"
|
|
589
|
-
}),
|
|
589
|
+
}), Dt = (e) => {
|
|
590
590
|
e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
|
|
591
591
|
capture: e.keydownListenerCapture
|
|
592
592
|
}), e.keydownHandlerAdded = !1);
|
|
593
|
-
},
|
|
594
|
-
|
|
593
|
+
}, Ro = (e, t, n) => {
|
|
594
|
+
Dt(e), t.toast || (e.keydownHandler = (o) => Uo(t, o, n), e.keydownTarget = t.keydownListenerCapture ? window : u(), e.keydownListenerCapture = t.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
595
595
|
capture: e.keydownListenerCapture
|
|
596
596
|
}), e.keydownHandlerAdded = !0);
|
|
597
|
-
},
|
|
597
|
+
}, Oe = (e, t) => {
|
|
598
598
|
var n;
|
|
599
|
-
const o =
|
|
599
|
+
const o = Ne();
|
|
600
600
|
if (o.length) {
|
|
601
601
|
e = e + t, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
604
604
|
(n = u()) === null || n === void 0 || n.focus();
|
|
605
|
-
},
|
|
606
|
-
e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ?
|
|
607
|
-
},
|
|
608
|
-
if (!
|
|
605
|
+
}, Ht = ["ArrowRight", "ArrowDown"], Wo = ["ArrowLeft", "ArrowUp"], Uo = (e, t, n) => {
|
|
606
|
+
e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? _o(t, e) : t.key === "Tab" ? Yo(t) : [...Ht, ...Wo].includes(t.key) ? Xo(t.key) : t.key === "Escape" && Ko(t, e, n)));
|
|
607
|
+
}, _o = (e, t) => {
|
|
608
|
+
if (!Ce(t.allowEnterKey))
|
|
609
609
|
return;
|
|
610
|
-
const n =
|
|
610
|
+
const n = Pe(u(), t.input);
|
|
611
611
|
if (e.target && n && e.target instanceof HTMLElement && e.target.outerHTML === n.outerHTML) {
|
|
612
612
|
if (["textarea", "file"].includes(t.input))
|
|
613
613
|
return;
|
|
614
|
-
|
|
614
|
+
Ot(), e.preventDefault();
|
|
615
615
|
}
|
|
616
|
-
},
|
|
617
|
-
const t = e.target, n =
|
|
616
|
+
}, Yo = (e) => {
|
|
617
|
+
const t = e.target, n = Ne();
|
|
618
618
|
let o = -1;
|
|
619
619
|
for (let s = 0; s < n.length; s++)
|
|
620
620
|
if (t === n[s]) {
|
|
621
621
|
o = s;
|
|
622
622
|
break;
|
|
623
623
|
}
|
|
624
|
-
e.shiftKey ?
|
|
625
|
-
},
|
|
626
|
-
const t =
|
|
624
|
+
e.shiftKey ? Oe(o, -1) : Oe(o, 1), e.stopPropagation(), e.preventDefault();
|
|
625
|
+
}, Xo = (e) => {
|
|
626
|
+
const t = ne(), n = S(), o = R(), s = K();
|
|
627
627
|
if (!t || !n || !o || !s)
|
|
628
628
|
return;
|
|
629
629
|
const r = [n, o, s];
|
|
630
630
|
if (document.activeElement instanceof HTMLElement && !r.includes(document.activeElement))
|
|
631
631
|
return;
|
|
632
|
-
const l =
|
|
632
|
+
const l = Ht.includes(e) ? "nextElementSibling" : "previousElementSibling";
|
|
633
633
|
let c = document.activeElement;
|
|
634
634
|
if (c) {
|
|
635
635
|
for (let w = 0; w < t.children.length; w++) {
|
|
@@ -640,72 +640,72 @@ const Bo = (e) => {
|
|
|
640
640
|
}
|
|
641
641
|
c instanceof HTMLButtonElement && c.focus();
|
|
642
642
|
}
|
|
643
|
-
},
|
|
644
|
-
|
|
643
|
+
}, Ko = (e, t, n) => {
|
|
644
|
+
Ce(t.allowEscapeKey) && (e.preventDefault(), n(J.esc));
|
|
645
645
|
};
|
|
646
|
-
var
|
|
646
|
+
var _ = {
|
|
647
647
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
648
648
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
649
649
|
};
|
|
650
|
-
const
|
|
650
|
+
const Zo = () => {
|
|
651
651
|
const e = k();
|
|
652
652
|
Array.from(document.body.children).forEach((n) => {
|
|
653
653
|
n.contains(e) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
|
|
654
654
|
});
|
|
655
|
-
},
|
|
655
|
+
}, jt = () => {
|
|
656
656
|
Array.from(document.body.children).forEach((t) => {
|
|
657
657
|
t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden") || ""), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden");
|
|
658
658
|
});
|
|
659
|
-
},
|
|
660
|
-
if (
|
|
659
|
+
}, zt = typeof window < "u" && !!window.GestureEvent, Jo = () => {
|
|
660
|
+
if (zt && !I(document.body, i.iosfix)) {
|
|
661
661
|
const e = document.body.scrollTop;
|
|
662
|
-
document.body.style.top = `${e * -1}px`, d(document.body, i.iosfix),
|
|
662
|
+
document.body.style.top = `${e * -1}px`, d(document.body, i.iosfix), Go();
|
|
663
663
|
}
|
|
664
|
-
},
|
|
664
|
+
}, Go = () => {
|
|
665
665
|
const e = k();
|
|
666
666
|
if (!e)
|
|
667
667
|
return;
|
|
668
668
|
let t;
|
|
669
669
|
e.ontouchstart = (n) => {
|
|
670
|
-
t =
|
|
670
|
+
t = Qo(n);
|
|
671
671
|
}, e.ontouchmove = (n) => {
|
|
672
672
|
t && (n.preventDefault(), n.stopPropagation());
|
|
673
673
|
};
|
|
674
|
-
},
|
|
675
|
-
const t = e.target, n = k(), o =
|
|
676
|
-
return !n || !o ||
|
|
674
|
+
}, Qo = (e) => {
|
|
675
|
+
const t = e.target, n = k(), o = Fe();
|
|
676
|
+
return !n || !o || es(e) || ts(e) ? !1 : t === n || !rt(n) && t instanceof HTMLElement && t.tagName !== "INPUT" && // #1603
|
|
677
677
|
t.tagName !== "TEXTAREA" && // #2266
|
|
678
|
-
!(
|
|
678
|
+
!(rt(o) && // #1944
|
|
679
679
|
o.contains(t));
|
|
680
|
-
},
|
|
680
|
+
}, es = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", ts = (e) => e.touches && e.touches.length > 1, ns = () => {
|
|
681
681
|
if (I(document.body, i.iosfix)) {
|
|
682
682
|
const e = parseInt(document.body.style.top, 10);
|
|
683
683
|
T(document.body, i.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
|
|
684
684
|
}
|
|
685
|
-
},
|
|
685
|
+
}, os = () => {
|
|
686
686
|
const e = document.createElement("div");
|
|
687
687
|
e.className = i["scrollbar-measure"], document.body.appendChild(e);
|
|
688
688
|
const t = e.getBoundingClientRect().width - e.clientWidth;
|
|
689
689
|
return document.body.removeChild(e), t;
|
|
690
690
|
};
|
|
691
|
-
let
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
},
|
|
695
|
-
|
|
691
|
+
let W = null;
|
|
692
|
+
const ss = (e) => {
|
|
693
|
+
W === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (W = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${W + os()}px`);
|
|
694
|
+
}, is = () => {
|
|
695
|
+
W !== null && (document.body.style.paddingRight = `${W}px`, W = null);
|
|
696
696
|
};
|
|
697
|
-
function
|
|
698
|
-
|
|
697
|
+
function Ft(e, t, n, o) {
|
|
698
|
+
Be() ? dt(e, o) : (Rn(n).then(() => dt(e, o)), Dt(a)), zt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Re() && (is(), ns(), jt()), rs();
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function rs() {
|
|
701
701
|
T([document.documentElement, document.body], [i.shown, i["height-auto"], i["no-backdrop"], i["toast-shown"]]);
|
|
702
702
|
}
|
|
703
703
|
function D(e) {
|
|
704
|
-
e =
|
|
705
|
-
const t =
|
|
706
|
-
this.isAwaitingPromise ? e.isDismissed || (
|
|
704
|
+
e = ls(e);
|
|
705
|
+
const t = _.swalPromiseResolve.get(this), n = as(this);
|
|
706
|
+
this.isAwaitingPromise ? e.isDismissed || (ie(this), t(e)) : n && t(e);
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const as = (e) => {
|
|
709
709
|
const t = u();
|
|
710
710
|
if (!t)
|
|
711
711
|
return !1;
|
|
@@ -714,15 +714,15 @@ const ts = (e) => {
|
|
|
714
714
|
return !1;
|
|
715
715
|
T(t, n.showClass.popup), d(t, n.hideClass.popup);
|
|
716
716
|
const o = k();
|
|
717
|
-
return T(o, n.showClass.backdrop), d(o, n.hideClass.backdrop),
|
|
717
|
+
return T(o, n.showClass.backdrop), d(o, n.hideClass.backdrop), cs(e, t, n), !0;
|
|
718
718
|
};
|
|
719
|
-
function
|
|
720
|
-
const t =
|
|
721
|
-
|
|
719
|
+
function qt(e) {
|
|
720
|
+
const t = _.swalPromiseReject.get(this);
|
|
721
|
+
ie(this), t && t(e);
|
|
722
722
|
}
|
|
723
|
-
const
|
|
723
|
+
const ie = (e) => {
|
|
724
724
|
e.isAwaitingPromise && (delete e.isAwaitingPromise, f.innerParams.get(e) || e._destroy());
|
|
725
|
-
},
|
|
725
|
+
}, ls = (e) => typeof e > "u" ? {
|
|
726
726
|
isConfirmed: !1,
|
|
727
727
|
isDenied: !1,
|
|
728
728
|
isDismissed: !0
|
|
@@ -730,12 +730,12 @@ const se = (e) => {
|
|
|
730
730
|
isConfirmed: !1,
|
|
731
731
|
isDenied: !1,
|
|
732
732
|
isDismissed: !1
|
|
733
|
-
}, e),
|
|
733
|
+
}, e), cs = (e, t, n) => {
|
|
734
734
|
var o;
|
|
735
|
-
const s = k(), r =
|
|
736
|
-
typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), r ?
|
|
737
|
-
},
|
|
738
|
-
a.swalCloseEventFinishedCallback =
|
|
735
|
+
const s = k(), r = At(t);
|
|
736
|
+
typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), r ? ds(e, t, s, n.returnFocus, n.didClose) : Ft(e, s, n.returnFocus, n.didClose);
|
|
737
|
+
}, ds = (e, t, n, o, s) => {
|
|
738
|
+
a.swalCloseEventFinishedCallback = Ft.bind(null, e, n, o, s);
|
|
739
739
|
const r = function(l) {
|
|
740
740
|
if (l.target === t) {
|
|
741
741
|
var c;
|
|
@@ -743,61 +743,61 @@ const se = (e) => {
|
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
t.addEventListener("animationend", r), t.addEventListener("transitionend", r);
|
|
746
|
-
},
|
|
746
|
+
}, dt = (e, t) => {
|
|
747
747
|
setTimeout(() => {
|
|
748
748
|
var n;
|
|
749
749
|
typeof t == "function" && t.bind(e.params)(), (n = a.eventEmitter) === null || n === void 0 || n.emit("didClose"), e._destroy && e._destroy();
|
|
750
750
|
});
|
|
751
|
-
},
|
|
751
|
+
}, Y = (e) => {
|
|
752
752
|
let t = u();
|
|
753
|
-
if (t || new
|
|
753
|
+
if (t || new Q(), t = u(), !t)
|
|
754
754
|
return;
|
|
755
|
-
const n =
|
|
756
|
-
|
|
757
|
-
},
|
|
758
|
-
const n =
|
|
759
|
-
!n || !o || (!t && x(S()) && (t = S()),
|
|
760
|
-
},
|
|
761
|
-
t.input === "select" || t.input === "radio" ?
|
|
762
|
-
},
|
|
755
|
+
const n = Z();
|
|
756
|
+
Be() ? y(X()) : us(t, e), b(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
|
|
757
|
+
}, us = (e, t) => {
|
|
758
|
+
const n = ne(), o = Z();
|
|
759
|
+
!n || !o || (!t && x(S()) && (t = S()), b(n), t && (y(t), o.setAttribute("data-button-to-replace", t.className), n.insertBefore(o, t)), d([e, n], i.loading));
|
|
760
|
+
}, ws = (e, t) => {
|
|
761
|
+
t.input === "select" || t.input === "radio" ? ps(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (je(t.inputValue) || ze(t.inputValue)) && (Y(S()), bs(e, t));
|
|
762
|
+
}, fs = (e, t) => {
|
|
763
763
|
const n = e.getInput();
|
|
764
764
|
if (!n)
|
|
765
765
|
return null;
|
|
766
766
|
switch (t.input) {
|
|
767
767
|
case "checkbox":
|
|
768
|
-
return
|
|
768
|
+
return ms(n);
|
|
769
769
|
case "radio":
|
|
770
|
-
return
|
|
770
|
+
return hs(n);
|
|
771
771
|
case "file":
|
|
772
|
-
return
|
|
772
|
+
return gs(n);
|
|
773
773
|
default:
|
|
774
774
|
return t.inputAutoTrim ? n.value.trim() : n.value;
|
|
775
775
|
}
|
|
776
|
-
},
|
|
776
|
+
}, ms = (e) => e.checked ? 1 : 0, hs = (e) => e.checked ? e.value : null, gs = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, ps = (e, t) => {
|
|
777
777
|
const n = u();
|
|
778
778
|
if (!n)
|
|
779
779
|
return;
|
|
780
780
|
const o = (s) => {
|
|
781
|
-
t.input === "select" ?
|
|
781
|
+
t.input === "select" ? ys(n, ye(s), t) : t.input === "radio" && vs(n, ye(s), t);
|
|
782
782
|
};
|
|
783
|
-
|
|
783
|
+
je(t.inputOptions) || ze(t.inputOptions) ? (Y(S()), ee(t.inputOptions).then((s) => {
|
|
784
784
|
e.hideLoading(), o(s);
|
|
785
|
-
})) : typeof t.inputOptions == "object" ? o(t.inputOptions) :
|
|
786
|
-
},
|
|
785
|
+
})) : typeof t.inputOptions == "object" ? o(t.inputOptions) : N(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
|
|
786
|
+
}, bs = (e, t) => {
|
|
787
787
|
const n = e.getInput();
|
|
788
|
-
n && (y(n),
|
|
789
|
-
n.value = t.input === "number" ? `${parseFloat(o) || 0}` : `${o}`,
|
|
788
|
+
n && (y(n), ee(t.inputValue).then((o) => {
|
|
789
|
+
n.value = t.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, b(n), n.focus(), e.hideLoading();
|
|
790
790
|
}).catch((o) => {
|
|
791
|
-
|
|
791
|
+
N(`Error in inputValue promise: ${o}`), n.value = "", b(n), n.focus(), e.hideLoading();
|
|
792
792
|
}));
|
|
793
793
|
};
|
|
794
|
-
function
|
|
794
|
+
function ys(e, t, n) {
|
|
795
795
|
const o = O(e, i.select);
|
|
796
796
|
if (!o)
|
|
797
797
|
return;
|
|
798
798
|
const s = (r, l, c) => {
|
|
799
799
|
const w = document.createElement("option");
|
|
800
|
-
w.value = c, B(w, l), w.selected =
|
|
800
|
+
w.value = c, B(w, l), w.selected = Vt(c, n.inputValue), r.appendChild(w);
|
|
801
801
|
};
|
|
802
802
|
t.forEach((r) => {
|
|
803
803
|
const l = r[0], c = r[1];
|
|
@@ -808,95 +808,95 @@ function fs(e, t, n) {
|
|
|
808
808
|
s(o, c, l);
|
|
809
809
|
}), o.focus();
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function vs(e, t, n) {
|
|
812
812
|
const o = O(e, i.radio);
|
|
813
813
|
if (!o)
|
|
814
814
|
return;
|
|
815
815
|
t.forEach((r) => {
|
|
816
816
|
const l = r[0], c = r[1], w = document.createElement("input"), C = document.createElement("label");
|
|
817
|
-
w.type = "radio", w.name = i.radio, w.value = l,
|
|
818
|
-
const
|
|
819
|
-
B(
|
|
817
|
+
w.type = "radio", w.name = i.radio, w.value = l, Vt(l, n.inputValue) && (w.checked = !0);
|
|
818
|
+
const G = document.createElement("span");
|
|
819
|
+
B(G, c), G.className = i.label, C.appendChild(w), C.appendChild(G), o.appendChild(C);
|
|
820
820
|
});
|
|
821
821
|
const s = o.querySelectorAll("input");
|
|
822
822
|
s.length && s[0].focus();
|
|
823
823
|
}
|
|
824
|
-
const
|
|
824
|
+
const ye = (e) => {
|
|
825
825
|
const t = [];
|
|
826
826
|
return e instanceof Map ? e.forEach((n, o) => {
|
|
827
827
|
let s = n;
|
|
828
|
-
typeof s == "object" && (s =
|
|
828
|
+
typeof s == "object" && (s = ye(s)), t.push([o, s]);
|
|
829
829
|
}) : Object.keys(e).forEach((n) => {
|
|
830
830
|
let o = e[n];
|
|
831
|
-
typeof o == "object" && (o =
|
|
831
|
+
typeof o == "object" && (o = ye(o)), t.push([n, o]);
|
|
832
832
|
}), t;
|
|
833
|
-
},
|
|
833
|
+
}, Vt = (e, t) => !!t && t.toString() === e.toString(), ks = (e) => {
|
|
834
834
|
const t = f.innerParams.get(e);
|
|
835
|
-
e.disableButtons(), t.input ?
|
|
836
|
-
},
|
|
835
|
+
e.disableButtons(), t.input ? Nt(e, "confirm") : Ze(e, !0);
|
|
836
|
+
}, xs = (e) => {
|
|
837
837
|
const t = f.innerParams.get(e);
|
|
838
|
-
e.disableButtons(), t.returnInputValueOnDeny ?
|
|
839
|
-
},
|
|
840
|
-
e.disableButtons(), t(
|
|
841
|
-
},
|
|
838
|
+
e.disableButtons(), t.returnInputValueOnDeny ? Nt(e, "deny") : Ke(e, !1);
|
|
839
|
+
}, Cs = (e, t) => {
|
|
840
|
+
e.disableButtons(), t(J.cancel);
|
|
841
|
+
}, Nt = (e, t) => {
|
|
842
842
|
const n = f.innerParams.get(e);
|
|
843
843
|
if (!n.input) {
|
|
844
|
-
|
|
844
|
+
N(`The "input" parameter is needed to be set when using returnInputValueOn${He(t)}`);
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
|
-
const o = e.getInput(), s =
|
|
848
|
-
n.inputValidator ?
|
|
849
|
-
},
|
|
847
|
+
const o = e.getInput(), s = fs(e, n);
|
|
848
|
+
n.inputValidator ? Es(e, s, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Ke(e, s) : Ze(e, s);
|
|
849
|
+
}, Es = (e, t, n) => {
|
|
850
850
|
const o = f.innerParams.get(e);
|
|
851
|
-
e.disableInput(), Promise.resolve().then(() =>
|
|
852
|
-
e.enableButtons(), e.enableInput(), r ? e.showValidationMessage(r) : n === "deny" ?
|
|
851
|
+
e.disableInput(), Promise.resolve().then(() => ee(o.inputValidator(t, o.validationMessage))).then((r) => {
|
|
852
|
+
e.enableButtons(), e.enableInput(), r ? e.showValidationMessage(r) : n === "deny" ? Ke(e, t) : Ze(e, t);
|
|
853
853
|
});
|
|
854
|
-
},
|
|
854
|
+
}, Ke = (e, t) => {
|
|
855
855
|
const n = f.innerParams.get(e || void 0);
|
|
856
|
-
n.showLoaderOnDeny &&
|
|
857
|
-
s === !1 ? (e.hideLoading(),
|
|
856
|
+
n.showLoaderOnDeny && Y(R()), n.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => ee(n.preDeny(t, n.validationMessage))).then((s) => {
|
|
857
|
+
s === !1 ? (e.hideLoading(), ie(e)) : e.close({
|
|
858
858
|
isDenied: !0,
|
|
859
859
|
value: typeof s > "u" ? t : s
|
|
860
860
|
});
|
|
861
|
-
}).catch((s) =>
|
|
861
|
+
}).catch((s) => Rt(e || void 0, s))) : e.close({
|
|
862
862
|
isDenied: !0,
|
|
863
863
|
value: t
|
|
864
864
|
});
|
|
865
|
-
},
|
|
865
|
+
}, ut = (e, t) => {
|
|
866
866
|
e.close({
|
|
867
867
|
isConfirmed: !0,
|
|
868
868
|
value: t
|
|
869
869
|
});
|
|
870
|
-
},
|
|
870
|
+
}, Rt = (e, t) => {
|
|
871
871
|
e.rejectPromise(t);
|
|
872
|
-
},
|
|
872
|
+
}, Ze = (e, t) => {
|
|
873
873
|
const n = f.innerParams.get(e || void 0);
|
|
874
|
-
n.showLoaderOnConfirm &&
|
|
875
|
-
x(
|
|
876
|
-
}).catch((s) =>
|
|
874
|
+
n.showLoaderOnConfirm && Y(), n.preConfirm ? (e.resetValidationMessage(), e.isAwaitingPromise = !0, Promise.resolve().then(() => ee(n.preConfirm(t, n.validationMessage))).then((s) => {
|
|
875
|
+
x(Ee()) || s === !1 ? (e.hideLoading(), ie(e)) : ut(e, typeof s > "u" ? t : s);
|
|
876
|
+
}).catch((s) => Rt(e || void 0, s))) : ut(e, t);
|
|
877
877
|
};
|
|
878
|
-
function
|
|
878
|
+
function ve() {
|
|
879
879
|
const e = f.innerParams.get(this);
|
|
880
880
|
if (!e)
|
|
881
881
|
return;
|
|
882
882
|
const t = f.domCache.get(this);
|
|
883
|
-
y(t.loader),
|
|
883
|
+
y(t.loader), Be() ? e.icon && b(X()) : As(t), T([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
|
|
884
884
|
}
|
|
885
|
-
const
|
|
885
|
+
const As = (e) => {
|
|
886
886
|
const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
|
|
887
|
-
t.length ?
|
|
887
|
+
t.length ? b(t[0], "inline-block") : Gn() && y(e.actions);
|
|
888
888
|
};
|
|
889
|
-
function
|
|
889
|
+
function Wt() {
|
|
890
890
|
const e = f.innerParams.get(this), t = f.domCache.get(this);
|
|
891
|
-
return t ?
|
|
891
|
+
return t ? Pe(t.popup, e.input) : null;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Ut(e, t, n) {
|
|
894
894
|
const o = f.domCache.get(e);
|
|
895
895
|
t.forEach((s) => {
|
|
896
896
|
o[s].disabled = n;
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function _t(e, t) {
|
|
900
900
|
const n = u();
|
|
901
901
|
if (!(!n || !e))
|
|
902
902
|
if (e.type === "radio") {
|
|
@@ -906,31 +906,31 @@ function Vt(e, t) {
|
|
|
906
906
|
} else
|
|
907
907
|
e.disabled = t;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
|
|
909
|
+
function Yt() {
|
|
910
|
+
Ut(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
|
|
912
|
+
function Xt() {
|
|
913
|
+
Ut(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
|
|
915
|
+
function Kt() {
|
|
916
|
+
_t(this.getInput(), !1);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
|
|
918
|
+
function Zt() {
|
|
919
|
+
_t(this.getInput(), !0);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Jt(e) {
|
|
922
922
|
const t = f.domCache.get(this), n = f.innerParams.get(this);
|
|
923
|
-
B(t.validationMessage, e), t.validationMessage.className = i["validation-message"], n.customClass && n.customClass.validationMessage && d(t.validationMessage, n.customClass.validationMessage),
|
|
923
|
+
B(t.validationMessage, e), t.validationMessage.className = i["validation-message"], n.customClass && n.customClass.validationMessage && d(t.validationMessage, n.customClass.validationMessage), b(t.validationMessage);
|
|
924
924
|
const o = this.getInput();
|
|
925
|
-
o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", i["validation-message"]),
|
|
925
|
+
o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", i["validation-message"]), Ct(o), d(o, i.inputerror));
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Gt() {
|
|
928
928
|
const e = f.domCache.get(this);
|
|
929
929
|
e.validationMessage && y(e.validationMessage);
|
|
930
930
|
const t = this.getInput();
|
|
931
931
|
t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), T(t, i.inputerror));
|
|
932
932
|
}
|
|
933
|
-
const
|
|
933
|
+
const U = {
|
|
934
934
|
title: "",
|
|
935
935
|
titleText: "",
|
|
936
936
|
text: "",
|
|
@@ -1022,28 +1022,28 @@ const R = {
|
|
|
1022
1022
|
didClose: void 0,
|
|
1023
1023
|
didDestroy: void 0,
|
|
1024
1024
|
scrollbarPadding: !0
|
|
1025
|
-
},
|
|
1025
|
+
}, Bs = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], Ps = {
|
|
1026
1026
|
allowEnterKey: void 0
|
|
1027
|
-
},
|
|
1028
|
-
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1031
|
-
},
|
|
1032
|
-
const t =
|
|
1033
|
-
t &&
|
|
1034
|
-
},
|
|
1027
|
+
}, Ts = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Qt = (e) => Object.prototype.hasOwnProperty.call(U, e), en = (e) => Bs.indexOf(e) !== -1, tn = (e) => Ps[e], Ls = (e) => {
|
|
1028
|
+
Qt(e) || v(`Unknown parameter "${e}"`);
|
|
1029
|
+
}, $s = (e) => {
|
|
1030
|
+
Ts.includes(e) && v(`The parameter "${e}" is incompatible with toasts`);
|
|
1031
|
+
}, Ss = (e) => {
|
|
1032
|
+
const t = tn(e);
|
|
1033
|
+
t && yt(e, t);
|
|
1034
|
+
}, nn = (e) => {
|
|
1035
1035
|
e.backdrop === !1 && e.allowOutsideClick && v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), e.theme && !["light", "dark", "auto"].includes(e.theme) && v(`Invalid theme "${e.theme}". Expected "light", "dark", or "auto"`);
|
|
1036
1036
|
for (const t in e)
|
|
1037
|
-
|
|
1037
|
+
Ls(t), e.toast && $s(t), Ss(t);
|
|
1038
1038
|
};
|
|
1039
|
-
function
|
|
1039
|
+
function on(e) {
|
|
1040
1040
|
const t = k(), n = u(), o = f.innerParams.get(this);
|
|
1041
1041
|
if (!n || I(n, o.hideClass.popup)) {
|
|
1042
1042
|
v("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
|
-
const s =
|
|
1046
|
-
|
|
1045
|
+
const s = Is(e), r = Object.assign({}, o, s);
|
|
1046
|
+
nn(r), t.dataset.swal2Theme = r.theme, Mt(this, r), f.innerParams.set(this, r), Object.defineProperties(this, {
|
|
1047
1047
|
params: {
|
|
1048
1048
|
value: Object.assign({}, this.params, e),
|
|
1049
1049
|
writable: !1,
|
|
@@ -1051,91 +1051,91 @@ function Gt(e) {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Is = (e) => {
|
|
1055
1055
|
const t = {};
|
|
1056
1056
|
return Object.keys(e).forEach((n) => {
|
|
1057
|
-
|
|
1057
|
+
en(n) ? t[n] = e[n] : v(`Invalid parameter to update: ${n}`);
|
|
1058
1058
|
}), t;
|
|
1059
1059
|
};
|
|
1060
|
-
function
|
|
1060
|
+
function sn() {
|
|
1061
1061
|
const e = f.domCache.get(this), t = f.innerParams.get(this);
|
|
1062
1062
|
if (!t) {
|
|
1063
|
-
|
|
1063
|
+
rn(this);
|
|
1064
1064
|
return;
|
|
1065
1065
|
}
|
|
1066
|
-
e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"),
|
|
1066
|
+
e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"), Ms(this);
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1070
|
-
},
|
|
1071
|
-
e.isAwaitingPromise ? (
|
|
1072
|
-
},
|
|
1068
|
+
const Ms = (e) => {
|
|
1069
|
+
rn(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
|
|
1070
|
+
}, rn = (e) => {
|
|
1071
|
+
e.isAwaitingPromise ? (Me(f, e), e.isAwaitingPromise = !0) : (Me(_, e), Me(f, e), delete e.isAwaitingPromise, delete e.disableButtons, delete e.enableButtons, delete e.getInput, delete e.disableInput, delete e.enableInput, delete e.hideLoading, delete e.disableLoading, delete e.showValidationMessage, delete e.resetValidationMessage, delete e.close, delete e.closePopup, delete e.closeModal, delete e.closeToast, delete e.rejectPromise, delete e.update, delete e._destroy);
|
|
1072
|
+
}, Me = (e, t) => {
|
|
1073
1073
|
for (const n in e)
|
|
1074
1074
|
e[n].delete(t);
|
|
1075
1075
|
};
|
|
1076
|
-
var
|
|
1076
|
+
var Os = /* @__PURE__ */ Object.freeze({
|
|
1077
1077
|
__proto__: null,
|
|
1078
|
-
_destroy:
|
|
1078
|
+
_destroy: sn,
|
|
1079
1079
|
close: D,
|
|
1080
1080
|
closeModal: D,
|
|
1081
1081
|
closePopup: D,
|
|
1082
1082
|
closeToast: D,
|
|
1083
|
-
disableButtons:
|
|
1084
|
-
disableInput:
|
|
1085
|
-
disableLoading:
|
|
1086
|
-
enableButtons:
|
|
1087
|
-
enableInput:
|
|
1088
|
-
getInput:
|
|
1089
|
-
handleAwaitingPromise:
|
|
1090
|
-
hideLoading:
|
|
1091
|
-
rejectPromise:
|
|
1092
|
-
resetValidationMessage:
|
|
1093
|
-
showValidationMessage:
|
|
1094
|
-
update:
|
|
1083
|
+
disableButtons: Xt,
|
|
1084
|
+
disableInput: Zt,
|
|
1085
|
+
disableLoading: ve,
|
|
1086
|
+
enableButtons: Yt,
|
|
1087
|
+
enableInput: Kt,
|
|
1088
|
+
getInput: Wt,
|
|
1089
|
+
handleAwaitingPromise: ie,
|
|
1090
|
+
hideLoading: ve,
|
|
1091
|
+
rejectPromise: qt,
|
|
1092
|
+
resetValidationMessage: Gt,
|
|
1093
|
+
showValidationMessage: Jt,
|
|
1094
|
+
update: on
|
|
1095
1095
|
});
|
|
1096
|
-
const
|
|
1097
|
-
e.toast ?
|
|
1098
|
-
},
|
|
1096
|
+
const Ds = (e, t, n) => {
|
|
1097
|
+
e.toast ? Hs(e, t, n) : (zs(t), Fs(t), qs(e, t, n));
|
|
1098
|
+
}, Hs = (e, t, n) => {
|
|
1099
1099
|
t.popup.onclick = () => {
|
|
1100
|
-
e && (
|
|
1100
|
+
e && (js(e) || e.timer || e.input) || n(J.close);
|
|
1101
1101
|
};
|
|
1102
|
-
},
|
|
1103
|
-
let
|
|
1104
|
-
const
|
|
1102
|
+
}, js = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
|
|
1103
|
+
let ke = !1;
|
|
1104
|
+
const zs = (e) => {
|
|
1105
1105
|
e.popup.onmousedown = () => {
|
|
1106
1106
|
e.container.onmouseup = function(t) {
|
|
1107
1107
|
e.container.onmouseup = () => {
|
|
1108
|
-
}, t.target === e.container && (
|
|
1108
|
+
}, t.target === e.container && (ke = !0);
|
|
1109
1109
|
};
|
|
1110
1110
|
};
|
|
1111
|
-
},
|
|
1111
|
+
}, Fs = (e) => {
|
|
1112
1112
|
e.container.onmousedown = (t) => {
|
|
1113
1113
|
t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(n) {
|
|
1114
1114
|
e.popup.onmouseup = () => {
|
|
1115
|
-
}, (n.target === e.popup || n.target instanceof HTMLElement && e.popup.contains(n.target)) && (
|
|
1115
|
+
}, (n.target === e.popup || n.target instanceof HTMLElement && e.popup.contains(n.target)) && (ke = !0);
|
|
1116
1116
|
};
|
|
1117
1117
|
};
|
|
1118
|
-
},
|
|
1118
|
+
}, qs = (e, t, n) => {
|
|
1119
1119
|
t.container.onclick = (o) => {
|
|
1120
|
-
if (
|
|
1121
|
-
|
|
1120
|
+
if (ke) {
|
|
1121
|
+
ke = !1;
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
|
-
o.target === t.container &&
|
|
1124
|
+
o.target === t.container && Ce(e.allowOutsideClick) && n(J.backdrop);
|
|
1125
1125
|
};
|
|
1126
|
-
},
|
|
1126
|
+
}, Vs = (e) => typeof e == "object" && e.jquery, wt = (e) => e instanceof Element || Vs(e), Ns = (e) => {
|
|
1127
1127
|
const t = {};
|
|
1128
|
-
return typeof e[0] == "object" && !
|
|
1128
|
+
return typeof e[0] == "object" && !wt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1129
1129
|
const s = e[o];
|
|
1130
|
-
typeof s == "string" ||
|
|
1130
|
+
typeof s == "string" || wt(s) ? t[n] = s : s !== void 0 && N(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`);
|
|
1131
1131
|
}), t;
|
|
1132
1132
|
};
|
|
1133
|
-
function
|
|
1133
|
+
function Rs() {
|
|
1134
1134
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1135
1135
|
t[n] = arguments[n];
|
|
1136
1136
|
return new this(...t);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Ws(e) {
|
|
1139
1139
|
class t extends this {
|
|
1140
1140
|
_main(o, s) {
|
|
1141
1141
|
return super._main(o, Object.assign({}, e, s));
|
|
@@ -1143,42 +1143,42 @@ function zs(e) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
return t;
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const Us = () => a.timeout && a.timeout.getTimerLeft(), an = () => {
|
|
1147
1147
|
if (a.timeout)
|
|
1148
|
-
return
|
|
1149
|
-
},
|
|
1148
|
+
return Qn(), a.timeout.stop();
|
|
1149
|
+
}, ln = () => {
|
|
1150
1150
|
if (a.timeout) {
|
|
1151
1151
|
const e = a.timeout.start();
|
|
1152
|
-
return
|
|
1152
|
+
return Ue(e), e;
|
|
1153
1153
|
}
|
|
1154
|
-
},
|
|
1154
|
+
}, _s = () => {
|
|
1155
1155
|
const e = a.timeout;
|
|
1156
|
-
return e && (e.running ?
|
|
1157
|
-
},
|
|
1156
|
+
return e && (e.running ? an() : ln());
|
|
1157
|
+
}, Ys = (e) => {
|
|
1158
1158
|
if (a.timeout) {
|
|
1159
1159
|
const t = a.timeout.increase(e);
|
|
1160
|
-
return
|
|
1160
|
+
return Ue(t, !0), t;
|
|
1161
1161
|
}
|
|
1162
|
-
},
|
|
1163
|
-
let
|
|
1164
|
-
const
|
|
1165
|
-
function
|
|
1162
|
+
}, Xs = () => !!(a.timeout && a.timeout.isRunning());
|
|
1163
|
+
let ft = !1;
|
|
1164
|
+
const De = {};
|
|
1165
|
+
function Ks() {
|
|
1166
1166
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
|
|
1167
|
-
|
|
1167
|
+
De[e] = this, ft || (document.body.addEventListener("click", Zs), ft = !0);
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1169
|
+
const Zs = (e) => {
|
|
1170
1170
|
for (let t = e.target; t && t !== document; t = t.parentNode)
|
|
1171
|
-
for (const n in
|
|
1171
|
+
for (const n in De) {
|
|
1172
1172
|
const o = t.getAttribute(n);
|
|
1173
1173
|
if (o) {
|
|
1174
|
-
|
|
1174
|
+
De[n].fire({
|
|
1175
1175
|
template: o
|
|
1176
1176
|
});
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
|
-
class
|
|
1181
|
+
class Js {
|
|
1182
1182
|
constructor() {
|
|
1183
1183
|
this.events = {};
|
|
1184
1184
|
}
|
|
@@ -1249,64 +1249,64 @@ class Us {
|
|
|
1249
1249
|
this.events = {};
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
a.eventEmitter = new
|
|
1253
|
-
const
|
|
1252
|
+
a.eventEmitter = new Js();
|
|
1253
|
+
const Gs = (e, t) => {
|
|
1254
1254
|
a.eventEmitter.on(e, t);
|
|
1255
|
-
},
|
|
1255
|
+
}, Qs = (e, t) => {
|
|
1256
1256
|
a.eventEmitter.once(e, t);
|
|
1257
|
-
},
|
|
1257
|
+
}, ei = (e, t) => {
|
|
1258
1258
|
if (!e) {
|
|
1259
1259
|
a.eventEmitter.reset();
|
|
1260
1260
|
return;
|
|
1261
1261
|
}
|
|
1262
1262
|
t ? a.eventEmitter.removeListener(e, t) : a.eventEmitter.removeAllListeners(e);
|
|
1263
1263
|
};
|
|
1264
|
-
var
|
|
1264
|
+
var ti = /* @__PURE__ */ Object.freeze({
|
|
1265
1265
|
__proto__: null,
|
|
1266
|
-
argsToParams:
|
|
1267
|
-
bindClickHandler:
|
|
1268
|
-
clickCancel:
|
|
1269
|
-
clickConfirm:
|
|
1270
|
-
clickDeny:
|
|
1271
|
-
enableLoading:
|
|
1272
|
-
fire:
|
|
1273
|
-
getActions:
|
|
1274
|
-
getCancelButton:
|
|
1275
|
-
getCloseButton:
|
|
1266
|
+
argsToParams: Ns,
|
|
1267
|
+
bindClickHandler: Ks,
|
|
1268
|
+
clickCancel: No,
|
|
1269
|
+
clickConfirm: Ot,
|
|
1270
|
+
clickDeny: Vo,
|
|
1271
|
+
enableLoading: Y,
|
|
1272
|
+
fire: Rs,
|
|
1273
|
+
getActions: ne,
|
|
1274
|
+
getCancelButton: K,
|
|
1275
|
+
getCloseButton: Ve,
|
|
1276
1276
|
getConfirmButton: S,
|
|
1277
1277
|
getContainer: k,
|
|
1278
|
-
getDenyButton:
|
|
1279
|
-
getFocusableElements:
|
|
1280
|
-
getFooter:
|
|
1281
|
-
getHtmlContainer:
|
|
1282
|
-
getIcon:
|
|
1283
|
-
getIconContent:
|
|
1284
|
-
getImage:
|
|
1285
|
-
getInputLabel:
|
|
1286
|
-
getLoader:
|
|
1278
|
+
getDenyButton: R,
|
|
1279
|
+
getFocusableElements: Ne,
|
|
1280
|
+
getFooter: xt,
|
|
1281
|
+
getHtmlContainer: Fe,
|
|
1282
|
+
getIcon: X,
|
|
1283
|
+
getIconContent: Yn,
|
|
1284
|
+
getImage: kt,
|
|
1285
|
+
getInputLabel: Xn,
|
|
1286
|
+
getLoader: Z,
|
|
1287
1287
|
getPopup: u,
|
|
1288
|
-
getProgressSteps:
|
|
1289
|
-
getTimerLeft:
|
|
1290
|
-
getTimerProgressBar:
|
|
1291
|
-
getTitle:
|
|
1292
|
-
getValidationMessage:
|
|
1293
|
-
increaseTimer:
|
|
1294
|
-
isDeprecatedParameter:
|
|
1295
|
-
isLoading:
|
|
1296
|
-
isTimerRunning:
|
|
1297
|
-
isUpdatableParameter:
|
|
1298
|
-
isValidParameter:
|
|
1299
|
-
isVisible:
|
|
1300
|
-
mixin:
|
|
1301
|
-
off:
|
|
1302
|
-
on:
|
|
1303
|
-
once:
|
|
1304
|
-
resumeTimer:
|
|
1305
|
-
showLoading:
|
|
1306
|
-
stopTimer:
|
|
1307
|
-
toggleTimer:
|
|
1288
|
+
getProgressSteps: qe,
|
|
1289
|
+
getTimerLeft: Us,
|
|
1290
|
+
getTimerProgressBar: Ae,
|
|
1291
|
+
getTitle: vt,
|
|
1292
|
+
getValidationMessage: Ee,
|
|
1293
|
+
increaseTimer: Ys,
|
|
1294
|
+
isDeprecatedParameter: tn,
|
|
1295
|
+
isLoading: Zn,
|
|
1296
|
+
isTimerRunning: Xs,
|
|
1297
|
+
isUpdatableParameter: en,
|
|
1298
|
+
isValidParameter: Qt,
|
|
1299
|
+
isVisible: qo,
|
|
1300
|
+
mixin: Ws,
|
|
1301
|
+
off: ei,
|
|
1302
|
+
on: Gs,
|
|
1303
|
+
once: Qs,
|
|
1304
|
+
resumeTimer: ln,
|
|
1305
|
+
showLoading: Y,
|
|
1306
|
+
stopTimer: an,
|
|
1307
|
+
toggleTimer: _s
|
|
1308
1308
|
});
|
|
1309
|
-
class
|
|
1309
|
+
class ni {
|
|
1310
1310
|
/**
|
|
1311
1311
|
* @param {Function} callback
|
|
1312
1312
|
* @param {number} delay
|
|
@@ -1347,7 +1347,7 @@ class Zs {
|
|
|
1347
1347
|
return this.running;
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
const
|
|
1350
|
+
const cn = ["swal-title", "swal-html", "swal-footer"], oi = (e) => {
|
|
1351
1351
|
const t = typeof e.template == "string" ? (
|
|
1352
1352
|
/** @type {HTMLTemplateElement} */
|
|
1353
1353
|
document.querySelector(e.template)
|
|
@@ -1355,18 +1355,18 @@ const on = ["swal-title", "swal-html", "swal-footer"], Js = (e) => {
|
|
|
1355
1355
|
if (!t)
|
|
1356
1356
|
return {};
|
|
1357
1357
|
const n = t.content;
|
|
1358
|
-
return
|
|
1359
|
-
},
|
|
1358
|
+
return ui(n), Object.assign(si(n), ii(n), ri(n), ai(n), li(n), ci(n), di(n, cn));
|
|
1359
|
+
}, si = (e) => {
|
|
1360
1360
|
const t = {};
|
|
1361
1361
|
return Array.from(e.querySelectorAll("swal-param")).forEach((o) => {
|
|
1362
|
-
|
|
1362
|
+
V(o, ["name", "value"]);
|
|
1363
1363
|
const s = (
|
|
1364
1364
|
/** @type {keyof SweetAlertOptions} */
|
|
1365
1365
|
o.getAttribute("name")
|
|
1366
1366
|
), r = o.getAttribute("value");
|
|
1367
|
-
!s || !r || (typeof
|
|
1367
|
+
!s || !r || (typeof U[s] == "boolean" ? t[s] = r !== "false" : typeof U[s] == "object" ? t[s] = JSON.parse(r) : t[s] = r);
|
|
1368
1368
|
}), t;
|
|
1369
|
-
},
|
|
1369
|
+
}, ii = (e) => {
|
|
1370
1370
|
const t = {};
|
|
1371
1371
|
return Array.from(e.querySelectorAll("swal-function-param")).forEach((o) => {
|
|
1372
1372
|
const s = (
|
|
@@ -1375,73 +1375,73 @@ const on = ["swal-title", "swal-html", "swal-footer"], Js = (e) => {
|
|
|
1375
1375
|
), r = o.getAttribute("value");
|
|
1376
1376
|
!s || !r || (t[s] = new Function(`return ${r}`)());
|
|
1377
1377
|
}), t;
|
|
1378
|
-
},
|
|
1378
|
+
}, ri = (e) => {
|
|
1379
1379
|
const t = {};
|
|
1380
1380
|
return Array.from(e.querySelectorAll("swal-button")).forEach((o) => {
|
|
1381
|
-
|
|
1381
|
+
V(o, ["type", "color", "aria-label"]);
|
|
1382
1382
|
const s = o.getAttribute("type");
|
|
1383
|
-
!s || !["confirm", "cancel", "deny"].includes(s) || (t[`${s}ButtonText`] = o.innerHTML, t[`show${
|
|
1383
|
+
!s || !["confirm", "cancel", "deny"].includes(s) || (t[`${s}ButtonText`] = o.innerHTML, t[`show${He(s)}Button`] = !0, o.hasAttribute("color") && (t[`${s}ButtonColor`] = o.getAttribute("color")), o.hasAttribute("aria-label") && (t[`${s}ButtonAriaLabel`] = o.getAttribute("aria-label")));
|
|
1384
1384
|
}), t;
|
|
1385
|
-
},
|
|
1385
|
+
}, ai = (e) => {
|
|
1386
1386
|
const t = {}, n = e.querySelector("swal-image");
|
|
1387
|
-
return n && (
|
|
1388
|
-
},
|
|
1387
|
+
return n && (V(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (t.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (t.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (t.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (t.imageAlt = n.getAttribute("alt") || void 0)), t;
|
|
1388
|
+
}, li = (e) => {
|
|
1389
1389
|
const t = {}, n = e.querySelector("swal-icon");
|
|
1390
|
-
return n && (
|
|
1391
|
-
},
|
|
1390
|
+
return n && (V(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
|
|
1391
|
+
}, ci = (e) => {
|
|
1392
1392
|
const t = {}, n = e.querySelector("swal-input");
|
|
1393
|
-
n && (
|
|
1393
|
+
n && (V(n, ["type", "label", "placeholder", "value"]), t.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (t.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (t.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (t.inputValue = n.getAttribute("value")));
|
|
1394
1394
|
const o = Array.from(e.querySelectorAll("swal-input-option"));
|
|
1395
1395
|
return o.length && (t.inputOptions = {}, o.forEach((s) => {
|
|
1396
|
-
|
|
1396
|
+
V(s, ["value"]);
|
|
1397
1397
|
const r = s.getAttribute("value");
|
|
1398
1398
|
if (!r)
|
|
1399
1399
|
return;
|
|
1400
1400
|
const l = s.innerHTML;
|
|
1401
1401
|
t.inputOptions[r] = l;
|
|
1402
1402
|
})), t;
|
|
1403
|
-
},
|
|
1403
|
+
}, di = (e, t) => {
|
|
1404
1404
|
const n = {};
|
|
1405
1405
|
for (const o in t) {
|
|
1406
1406
|
const s = t[o], r = e.querySelector(s);
|
|
1407
|
-
r && (
|
|
1407
|
+
r && (V(r, []), n[s.replace(/^swal-/, "")] = r.innerHTML.trim());
|
|
1408
1408
|
}
|
|
1409
1409
|
return n;
|
|
1410
|
-
},
|
|
1411
|
-
const t =
|
|
1410
|
+
}, ui = (e) => {
|
|
1411
|
+
const t = cn.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
|
|
1412
1412
|
Array.from(e.children).forEach((n) => {
|
|
1413
1413
|
const o = n.tagName.toLowerCase();
|
|
1414
1414
|
t.includes(o) || v(`Unrecognized element <${o}>`);
|
|
1415
1415
|
});
|
|
1416
|
-
},
|
|
1416
|
+
}, V = (e, t) => {
|
|
1417
1417
|
Array.from(e.attributes).forEach((n) => {
|
|
1418
1418
|
t.indexOf(n.name) === -1 && v([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
|
|
1419
1419
|
});
|
|
1420
|
-
},
|
|
1420
|
+
}, dn = 10, wi = (e) => {
|
|
1421
1421
|
const t = k(), n = u();
|
|
1422
1422
|
typeof e.willOpen == "function" && e.willOpen(n), a.eventEmitter.emit("willOpen", n);
|
|
1423
1423
|
const s = window.getComputedStyle(document.body).overflowY;
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
},
|
|
1424
|
+
hi(t, n, e), setTimeout(() => {
|
|
1425
|
+
fi(t, n);
|
|
1426
|
+
}, dn), Re() && (mi(t, e.scrollbarPadding, s), Zo()), !Be() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), T(t, i["no-transition"]);
|
|
1427
|
+
}, xe = (e) => {
|
|
1428
1428
|
const t = u();
|
|
1429
1429
|
if (e.target !== t)
|
|
1430
1430
|
return;
|
|
1431
1431
|
const n = k();
|
|
1432
|
-
t.removeEventListener("animationend",
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1435
|
-
},
|
|
1436
|
-
|
|
1432
|
+
t.removeEventListener("animationend", xe), t.removeEventListener("transitionend", xe), n.style.overflowY = "auto";
|
|
1433
|
+
}, fi = (e, t) => {
|
|
1434
|
+
At(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", xe), t.addEventListener("transitionend", xe)) : e.style.overflowY = "auto";
|
|
1435
|
+
}, mi = (e, t, n) => {
|
|
1436
|
+
Jo(), t && n !== "hidden" && ss(n), setTimeout(() => {
|
|
1437
1437
|
e.scrollTop = 0;
|
|
1438
1438
|
});
|
|
1439
|
-
},
|
|
1440
|
-
d(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"),
|
|
1439
|
+
}, hi = (e, t, n) => {
|
|
1440
|
+
d(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), b(t, "grid"), setTimeout(() => {
|
|
1441
1441
|
d(t, n.showClass.popup), t.style.removeProperty("opacity");
|
|
1442
|
-
},
|
|
1442
|
+
}, dn)) : b(t, "grid"), d([document.documentElement, document.body], i.shown), n.heightAuto && n.backdrop && !n.toast && d([document.documentElement, document.body], i["height-auto"]);
|
|
1443
1443
|
};
|
|
1444
|
-
var
|
|
1444
|
+
var mt = {
|
|
1445
1445
|
/**
|
|
1446
1446
|
* @param {string} string
|
|
1447
1447
|
* @param {string} [validationMessage]
|
|
@@ -1455,117 +1455,117 @@ var ct = {
|
|
|
1455
1455
|
*/
|
|
1456
1456
|
url: (e, t) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid URL")
|
|
1457
1457
|
};
|
|
1458
|
-
function
|
|
1459
|
-
e.inputValidator || (e.input === "email" && (e.inputValidator =
|
|
1458
|
+
function gi(e) {
|
|
1459
|
+
e.inputValidator || (e.input === "email" && (e.inputValidator = mt.email), e.input === "url" && (e.inputValidator = mt.url));
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function pi(e) {
|
|
1462
1462
|
(!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (v('Target parameter is not valid, defaulting to "body"'), e.target = "body");
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1464
|
+
function bi(e) {
|
|
1465
|
+
gi(e), e.showLoaderOnConfirm && !e.preConfirm && v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
1466
1466
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
1467
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
1468
|
-
`).join("<br />")),
|
|
1467
|
+
https://sweetalert2.github.io/#ajax-request`), pi(e), typeof e.title == "string" && (e.title = e.title.split(`
|
|
1468
|
+
`).join("<br />")), ao(e);
|
|
1469
1469
|
}
|
|
1470
1470
|
let $;
|
|
1471
|
-
var
|
|
1472
|
-
class
|
|
1471
|
+
var fe = /* @__PURE__ */ new WeakMap();
|
|
1472
|
+
class g {
|
|
1473
1473
|
/**
|
|
1474
1474
|
* @param {...any} args
|
|
1475
1475
|
* @this {SweetAlert}
|
|
1476
1476
|
*/
|
|
1477
1477
|
constructor() {
|
|
1478
|
-
if (
|
|
1478
|
+
if (Fn(this, fe, void 0), typeof window > "u")
|
|
1479
1479
|
return;
|
|
1480
1480
|
$ = this;
|
|
1481
1481
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
1482
1482
|
n[o] = arguments[o];
|
|
1483
1483
|
const s = Object.freeze(this.constructor.argsToParams(n));
|
|
1484
|
-
this.params = s, this.isAwaitingPromise = !1,
|
|
1484
|
+
this.params = s, this.isAwaitingPromise = !1, qn(fe, this, this._main($.params));
|
|
1485
1485
|
}
|
|
1486
1486
|
_main(t) {
|
|
1487
1487
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1488
|
-
if (
|
|
1489
|
-
const r =
|
|
1488
|
+
if (nn(Object.assign({}, n, t)), a.currentInstance) {
|
|
1489
|
+
const r = _.swalPromiseResolve.get(a.currentInstance), {
|
|
1490
1490
|
isAwaitingPromise: l
|
|
1491
1491
|
} = a.currentInstance;
|
|
1492
1492
|
a.currentInstance._destroy(), l || r({
|
|
1493
1493
|
isDismissed: !0
|
|
1494
|
-
}),
|
|
1494
|
+
}), Re() && jt();
|
|
1495
1495
|
}
|
|
1496
1496
|
a.currentInstance = $;
|
|
1497
|
-
const o =
|
|
1498
|
-
|
|
1499
|
-
const s =
|
|
1500
|
-
return
|
|
1497
|
+
const o = vi(t, n);
|
|
1498
|
+
bi(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
|
|
1499
|
+
const s = ki($);
|
|
1500
|
+
return Mt($, o), f.innerParams.set($, o), yi($, s, o);
|
|
1501
1501
|
}
|
|
1502
1502
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1503
1503
|
then(t) {
|
|
1504
|
-
return
|
|
1504
|
+
return ot(fe, this).then(t);
|
|
1505
1505
|
}
|
|
1506
1506
|
finally(t) {
|
|
1507
|
-
return
|
|
1507
|
+
return ot(fe, this).finally(t);
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
const
|
|
1510
|
+
const yi = (e, t, n) => new Promise((o, s) => {
|
|
1511
1511
|
const r = (l) => {
|
|
1512
1512
|
e.close({
|
|
1513
1513
|
isDismissed: !0,
|
|
1514
1514
|
dismiss: l
|
|
1515
1515
|
});
|
|
1516
1516
|
};
|
|
1517
|
-
|
|
1518
|
-
|
|
1517
|
+
_.swalPromiseResolve.set(e, o), _.swalPromiseReject.set(e, s), t.confirmButton.onclick = () => {
|
|
1518
|
+
ks(e);
|
|
1519
1519
|
}, t.denyButton.onclick = () => {
|
|
1520
|
-
|
|
1520
|
+
xs(e);
|
|
1521
1521
|
}, t.cancelButton.onclick = () => {
|
|
1522
|
-
|
|
1522
|
+
Cs(e, r);
|
|
1523
1523
|
}, t.closeButton.onclick = () => {
|
|
1524
|
-
r(
|
|
1525
|
-
},
|
|
1524
|
+
r(J.close);
|
|
1525
|
+
}, Ds(n, t, r), Ro(a, n, r), ws(e, n), wi(n), xi(a, n, r), Ci(t, n), setTimeout(() => {
|
|
1526
1526
|
t.container.scrollTop = 0;
|
|
1527
1527
|
});
|
|
1528
|
-
}),
|
|
1529
|
-
const n =
|
|
1530
|
-
return o.showClass = Object.assign({},
|
|
1528
|
+
}), vi = (e, t) => {
|
|
1529
|
+
const n = oi(e), o = Object.assign({}, U, t, n, e);
|
|
1530
|
+
return o.showClass = Object.assign({}, U.showClass, o.showClass), o.hideClass = Object.assign({}, U.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
|
|
1531
1531
|
backdrop: "swal2-noanimation"
|
|
1532
1532
|
}, o.hideClass = {}), o;
|
|
1533
|
-
},
|
|
1533
|
+
}, ki = (e) => {
|
|
1534
1534
|
const t = {
|
|
1535
1535
|
popup: u(),
|
|
1536
1536
|
container: k(),
|
|
1537
|
-
actions:
|
|
1537
|
+
actions: ne(),
|
|
1538
1538
|
confirmButton: S(),
|
|
1539
|
-
denyButton:
|
|
1540
|
-
cancelButton:
|
|
1541
|
-
loader:
|
|
1542
|
-
closeButton:
|
|
1543
|
-
validationMessage:
|
|
1544
|
-
progressSteps:
|
|
1539
|
+
denyButton: R(),
|
|
1540
|
+
cancelButton: K(),
|
|
1541
|
+
loader: Z(),
|
|
1542
|
+
closeButton: Ve(),
|
|
1543
|
+
validationMessage: Ee(),
|
|
1544
|
+
progressSteps: qe()
|
|
1545
1545
|
};
|
|
1546
1546
|
return f.domCache.set(e, t), t;
|
|
1547
|
-
},
|
|
1548
|
-
const o =
|
|
1549
|
-
y(o), t.timer && (e.timeout = new
|
|
1547
|
+
}, xi = (e, t, n) => {
|
|
1548
|
+
const o = Ae();
|
|
1549
|
+
y(o), t.timer && (e.timeout = new ni(() => {
|
|
1550
1550
|
n("timer"), delete e.timeout;
|
|
1551
|
-
}, t.timer), t.timerProgressBar && (
|
|
1552
|
-
e.timeout && e.timeout.running &&
|
|
1551
|
+
}, t.timer), t.timerProgressBar && (b(o), E(o, t, "timerProgressBar"), setTimeout(() => {
|
|
1552
|
+
e.timeout && e.timeout.running && Ue(t.timer);
|
|
1553
1553
|
})));
|
|
1554
|
-
},
|
|
1554
|
+
}, Ci = (e, t) => {
|
|
1555
1555
|
if (!t.toast) {
|
|
1556
|
-
if (!
|
|
1557
|
-
|
|
1556
|
+
if (!Ce(t.allowEnterKey)) {
|
|
1557
|
+
yt("allowEnterKey"), Bi();
|
|
1558
1558
|
return;
|
|
1559
1559
|
}
|
|
1560
|
-
|
|
1560
|
+
Ei(e) || Ai(e, t) || Oe(-1, 1);
|
|
1561
1561
|
}
|
|
1562
|
-
},
|
|
1562
|
+
}, Ei = (e) => {
|
|
1563
1563
|
const t = Array.from(e.popup.querySelectorAll("[autofocus]"));
|
|
1564
1564
|
for (const n of t)
|
|
1565
1565
|
if (n instanceof HTMLElement && x(n))
|
|
1566
1566
|
return n.focus(), !0;
|
|
1567
1567
|
return !1;
|
|
1568
|
-
},
|
|
1568
|
+
}, Ai = (e, t) => t.focusDeny && x(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && x(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && x(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Bi = () => {
|
|
1569
1569
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1570
1570
|
};
|
|
1571
1571
|
if (typeof window < "u" && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|by|xn--p1ai)$/)) {
|
|
@@ -1579,32 +1579,32 @@ if (typeof window < "u" && /^ru\b/.test(navigator.language) && location.host.mat
|
|
|
1579
1579
|
}, 2500);
|
|
1580
1580
|
}, 500) : localStorage.setItem("swal-initiation", `${e}`);
|
|
1581
1581
|
}
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
Object.assign(
|
|
1599
|
-
Object.keys(
|
|
1600
|
-
|
|
1582
|
+
g.prototype.disableButtons = Xt;
|
|
1583
|
+
g.prototype.enableButtons = Yt;
|
|
1584
|
+
g.prototype.getInput = Wt;
|
|
1585
|
+
g.prototype.disableInput = Zt;
|
|
1586
|
+
g.prototype.enableInput = Kt;
|
|
1587
|
+
g.prototype.hideLoading = ve;
|
|
1588
|
+
g.prototype.disableLoading = ve;
|
|
1589
|
+
g.prototype.showValidationMessage = Jt;
|
|
1590
|
+
g.prototype.resetValidationMessage = Gt;
|
|
1591
|
+
g.prototype.close = D;
|
|
1592
|
+
g.prototype.closePopup = D;
|
|
1593
|
+
g.prototype.closeModal = D;
|
|
1594
|
+
g.prototype.closeToast = D;
|
|
1595
|
+
g.prototype.rejectPromise = qt;
|
|
1596
|
+
g.prototype.update = on;
|
|
1597
|
+
g.prototype._destroy = sn;
|
|
1598
|
+
Object.assign(g, ti);
|
|
1599
|
+
Object.keys(Os).forEach((e) => {
|
|
1600
|
+
g[e] = function() {
|
|
1601
1601
|
return $ && $[e] ? $[e](...arguments) : null;
|
|
1602
1602
|
};
|
|
1603
1603
|
});
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
const
|
|
1607
|
-
|
|
1604
|
+
g.DismissReason = J;
|
|
1605
|
+
g.version = "11.16.1";
|
|
1606
|
+
const Q = g;
|
|
1607
|
+
Q.default = Q;
|
|
1608
1608
|
typeof document < "u" && function(e, t) {
|
|
1609
1609
|
var n = e.createElement("style");
|
|
1610
1610
|
if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t);
|
|
@@ -1614,7 +1614,7 @@ typeof document < "u" && function(e, t) {
|
|
|
1614
1614
|
n.innerText = t;
|
|
1615
1615
|
}
|
|
1616
1616
|
}(document, ':root{--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-input-background: transparent;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:var(--swal2-border-radius);background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:var(--swal2-input-background);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:var(--swal2-background);box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');
|
|
1617
|
-
const
|
|
1617
|
+
const Pi = () => (/* @__PURE__ */ new Date()).getFullYear(), ht = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), Di = ({
|
|
1618
1618
|
columns: e,
|
|
1619
1619
|
data: t,
|
|
1620
1620
|
renderModalContent: n,
|
|
@@ -1625,34 +1625,43 @@ const ki = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
|
|
|
1625
1625
|
subtitle: c,
|
|
1626
1626
|
dateColumnKey: w,
|
|
1627
1627
|
isShared: C = !1,
|
|
1628
|
-
isLoading:
|
|
1629
|
-
closeModalOut:
|
|
1630
|
-
enableColumnSearch:
|
|
1631
|
-
enableColumnSorter:
|
|
1632
|
-
disableClose:
|
|
1633
|
-
enableRowSelection:
|
|
1634
|
-
onSelectionChange:
|
|
1635
|
-
extendedSelection:
|
|
1636
|
-
cellSelectionColor:
|
|
1628
|
+
isLoading: G,
|
|
1629
|
+
closeModalOut: un = !0,
|
|
1630
|
+
enableColumnSearch: Te = !1,
|
|
1631
|
+
enableColumnSorter: wn = !1,
|
|
1632
|
+
disableClose: fn = !1,
|
|
1633
|
+
enableRowSelection: mn = !1,
|
|
1634
|
+
onSelectionChange: hn,
|
|
1635
|
+
extendedSelection: gn = !1,
|
|
1636
|
+
cellSelectionColor: pn,
|
|
1637
|
+
onLoadMore: bn
|
|
1637
1638
|
}) => {
|
|
1638
|
-
const [
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
}, [
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1644
|
-
},
|
|
1645
|
-
(
|
|
1646
|
-
),
|
|
1647
|
-
(
|
|
1639
|
+
const [H, yn] = z(""), [j, vn] = z({}), [re, Je] = z(null), [kn, ae] = z(!1), [le, ce] = z(23), [xn, de] = z(t.length > 23), [Cn, Ge] = z(!1), En = Pi(), Qe = jn();
|
|
1640
|
+
nt(() => {
|
|
1641
|
+
Ge(t.length < 1), ce(25), de(t.length > 25);
|
|
1642
|
+
}, [H, j, t.length]);
|
|
1643
|
+
const An = (p, m) => {
|
|
1644
|
+
vn((L) => ({ ...L, [p]: m }));
|
|
1645
|
+
}, Bn = t.filter(
|
|
1646
|
+
(p) => e.every((m) => Te && j[m.key] ? String(p[m.key]).toLowerCase().includes(j[m.key].toLowerCase()) : !0)
|
|
1647
|
+
), Le = Object.values(j).some((p) => p.trim() !== ""), $e = Le || H.trim() !== "", Pn = t.slice().sort(
|
|
1648
|
+
(p, m) => w ? new Date(m[w]).getTime() - new Date(p[w]).getTime() : 0
|
|
1648
1649
|
).filter(
|
|
1649
|
-
(
|
|
1650
|
-
(
|
|
1650
|
+
(p) => !Le && e.some(
|
|
1651
|
+
(m) => ht(String(p[m.key])).includes(ht(H))
|
|
1651
1652
|
)
|
|
1652
|
-
),
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1653
|
+
), ue = Ln(
|
|
1654
|
+
() => JSON.stringify({ searchTerm: H, columnSearch: j }),
|
|
1655
|
+
[H, j]
|
|
1656
|
+
), et = $n(ue);
|
|
1657
|
+
nt(() => {
|
|
1658
|
+
const p = et.current !== ue;
|
|
1659
|
+
$e ? (p && ce(25), de(!0)) : (ce((m) => Math.max(m, 25)), de(t.length > le)), Ge(t.length < 1), et.current = ue;
|
|
1660
|
+
}, [$e, ue, t.length, le]);
|
|
1661
|
+
const we = Le ? Bn : Pn, Tn = (p, m) => {
|
|
1662
|
+
if (p.redirectTo) {
|
|
1663
|
+
if (m.estadoRegistro === "por_gestionar" && C && o)
|
|
1664
|
+
Q.fire({
|
|
1656
1665
|
title: "<small>¿Tomar este registro?</small>",
|
|
1657
1666
|
text: "Tenga presente que, una vez lo haga, deberá darle trámite en los tiempos definidos en el procedimiento.",
|
|
1658
1667
|
icon: "info",
|
|
@@ -1662,15 +1671,15 @@ const ki = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
|
|
|
1662
1671
|
confirmButtonText: "Sí, tomar registro",
|
|
1663
1672
|
cancelButtonText: "No, cancelar"
|
|
1664
1673
|
}).then(async (L) => {
|
|
1665
|
-
L.isConfirmed && o(
|
|
1674
|
+
L.isConfirmed && o(m);
|
|
1666
1675
|
});
|
|
1667
|
-
else if (
|
|
1668
|
-
const L =
|
|
1669
|
-
typeof L == "string" ?
|
|
1676
|
+
else if (m.estadoRegistro === "en_gestion" || !C) {
|
|
1677
|
+
const L = p.redirectTo(m);
|
|
1678
|
+
typeof L == "string" ? Qe(L) : Qe(L.pathname, { state: L.state });
|
|
1670
1679
|
return;
|
|
1671
1680
|
}
|
|
1672
1681
|
}
|
|
1673
|
-
|
|
1682
|
+
p.hasModal ? m.estadoRegistro === "por_gestionar" && C && o ? Q.fire({
|
|
1674
1683
|
title: "<small>¿Tomar este registro?</small>",
|
|
1675
1684
|
text: "Tenga presente que, una vez lo haga, deberá darle trámite en los tiempos definidos en el procedimiento.",
|
|
1676
1685
|
icon: "info",
|
|
@@ -1680,78 +1689,80 @@ const ki = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
|
|
|
1680
1689
|
confirmButtonText: "Sí, tomar registro",
|
|
1681
1690
|
cancelButtonText: "No, cancelar"
|
|
1682
1691
|
}).then(async (L) => {
|
|
1683
|
-
L.isConfirmed && o(
|
|
1684
|
-
}) : (
|
|
1692
|
+
L.isConfirmed && o(m);
|
|
1693
|
+
}) : (m.estadoRegistro === "en_gestion" || !C) && (Je({ row: m, column: p }), ae(!0)) : p.hasModal && n && !C && (Je({ row: m, column: p }), ae(!0));
|
|
1685
1694
|
};
|
|
1686
|
-
return /* @__PURE__ */ M(
|
|
1695
|
+
return /* @__PURE__ */ M(tt, { children: [
|
|
1687
1696
|
/* @__PURE__ */ P(
|
|
1688
|
-
|
|
1697
|
+
Hn,
|
|
1689
1698
|
{
|
|
1690
1699
|
title: r,
|
|
1691
1700
|
subtitle: c,
|
|
1692
1701
|
data: t,
|
|
1693
|
-
setSearchTerm:
|
|
1702
|
+
setSearchTerm: yn,
|
|
1694
1703
|
extraInput: l,
|
|
1695
|
-
enableColumnSearch:
|
|
1704
|
+
enableColumnSearch: Te
|
|
1696
1705
|
}
|
|
1697
1706
|
),
|
|
1698
|
-
|
|
1699
|
-
/* @__PURE__ */ P("div", { style: { width: 500, height: 125 }, children: /* @__PURE__ */ P(
|
|
1707
|
+
G ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
|
|
1708
|
+
/* @__PURE__ */ P("div", { style: { width: 500, height: 125 }, children: /* @__PURE__ */ P(Se, { animationData: Sn, loop: !0 }) }),
|
|
1700
1709
|
/* @__PURE__ */ P("span", { className: "lottie", children: "Actualizando y cargando registros, por favor espere..." })
|
|
1701
|
-
] }) :
|
|
1702
|
-
/* @__PURE__ */ P("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ P(
|
|
1710
|
+
] }) : Cn ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
|
|
1711
|
+
/* @__PURE__ */ P("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ P(Se, { animationData: In, loop: !0 }) }),
|
|
1703
1712
|
/* @__PURE__ */ P("span", { className: "lottie", children: "No existen registros pendientes por tramitar" })
|
|
1704
|
-
] }) :
|
|
1705
|
-
/* @__PURE__ */ P("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ P(
|
|
1713
|
+
] }) : H && we.length === 0 ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
|
|
1714
|
+
/* @__PURE__ */ P("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ P(Se, { animationData: Mn, loop: !0 }) }),
|
|
1706
1715
|
/* @__PURE__ */ P("span", { className: "lottie", children: "No se encontró registro con el criterio de búsqueda definido" })
|
|
1707
|
-
] }) : /* @__PURE__ */ M(
|
|
1716
|
+
] }) : /* @__PURE__ */ M(tt, { children: [
|
|
1708
1717
|
/* @__PURE__ */ P(
|
|
1709
|
-
|
|
1718
|
+
On,
|
|
1710
1719
|
{
|
|
1711
1720
|
columns: e,
|
|
1712
|
-
displayedData:
|
|
1713
|
-
hasMoreData:
|
|
1714
|
-
setHasMoreData:
|
|
1715
|
-
setVisibleData:
|
|
1716
|
-
visibleData:
|
|
1717
|
-
searchTerm:
|
|
1718
|
-
handleCellClick:
|
|
1721
|
+
displayedData: we,
|
|
1722
|
+
hasMoreData: xn,
|
|
1723
|
+
setHasMoreData: de,
|
|
1724
|
+
setVisibleData: ce,
|
|
1725
|
+
visibleData: le,
|
|
1726
|
+
searchTerm: H,
|
|
1727
|
+
handleCellClick: Tn,
|
|
1719
1728
|
totalDias: s,
|
|
1720
1729
|
isShared: C,
|
|
1721
|
-
enableColumnSearch:
|
|
1722
|
-
columnSearch:
|
|
1723
|
-
handleColumnSearch:
|
|
1724
|
-
enableColumnSorter:
|
|
1725
|
-
enableRowSelection:
|
|
1726
|
-
onSelectionChange:
|
|
1727
|
-
extendedSelection:
|
|
1728
|
-
cellSelectionColor:
|
|
1730
|
+
enableColumnSearch: Te,
|
|
1731
|
+
columnSearch: j,
|
|
1732
|
+
handleColumnSearch: An,
|
|
1733
|
+
enableColumnSorter: wn,
|
|
1734
|
+
enableRowSelection: mn,
|
|
1735
|
+
onSelectionChange: hn,
|
|
1736
|
+
extendedSelection: gn,
|
|
1737
|
+
cellSelectionColor: pn,
|
|
1738
|
+
onLoadMore: bn,
|
|
1739
|
+
isFiltering: $e
|
|
1729
1740
|
}
|
|
1730
1741
|
),
|
|
1731
1742
|
/* @__PURE__ */ M("div", { className: "d-flex justify-content-between", children: [
|
|
1732
1743
|
/* @__PURE__ */ M("div", { className: "data-unp", children: [
|
|
1733
|
-
|
|
1744
|
+
En,
|
|
1734
1745
|
" • Unidad Nacional de Protección — UNP"
|
|
1735
1746
|
] }),
|
|
1736
1747
|
/* @__PURE__ */ M("div", { className: "data-count", children: [
|
|
1737
1748
|
"Mostrando ",
|
|
1738
|
-
Math.min(
|
|
1749
|
+
Math.min(le, we.length),
|
|
1739
1750
|
" de",
|
|
1740
1751
|
" ",
|
|
1741
|
-
|
|
1752
|
+
we.length,
|
|
1742
1753
|
" elementos"
|
|
1743
1754
|
] })
|
|
1744
1755
|
] })
|
|
1745
1756
|
] }),
|
|
1746
1757
|
re && n && /* @__PURE__ */ P(
|
|
1747
|
-
|
|
1758
|
+
Dn,
|
|
1748
1759
|
{
|
|
1749
|
-
show:
|
|
1760
|
+
show: kn,
|
|
1750
1761
|
onHide: () => ae(!1),
|
|
1751
1762
|
title: `${re.column.label}`,
|
|
1752
|
-
closeModalOut:
|
|
1763
|
+
closeModalOut: un,
|
|
1753
1764
|
modalType: "primary",
|
|
1754
|
-
disableClose:
|
|
1765
|
+
disableClose: fn,
|
|
1755
1766
|
children: n(
|
|
1756
1767
|
re.row,
|
|
1757
1768
|
re.column,
|
|
@@ -1762,5 +1773,5 @@ const ki = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
|
|
|
1762
1773
|
] });
|
|
1763
1774
|
};
|
|
1764
1775
|
export {
|
|
1765
|
-
|
|
1776
|
+
Di as TablaRegistros
|
|
1766
1777
|
};
|