@sofiakb/elf-js 0.0.1-dev.4 → 0.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elf-js.es.js +288 -281
- package/dist/elf-js.umd.js +8 -8
- package/dist/main.d.ts +1 -0
- package/dist/utils/device.utils.d.ts +3 -0
- package/dist/utils/device.utils.spec.d.ts +1 -0
- package/package.json +1 -1
package/dist/elf-js.es.js
CHANGED
|
@@ -13,9 +13,9 @@ var Bn = Object.prototype, Sn = Bn.toString;
|
|
|
13
13
|
function jn(e) {
|
|
14
14
|
return Sn.call(e);
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var In = "[object Null]", Ln = "[object Undefined]", Ze = se ? se.toStringTag : void 0;
|
|
17
17
|
function Z(e) {
|
|
18
|
-
return e == null ? e === void 0 ?
|
|
18
|
+
return e == null ? e === void 0 ? Ln : In : Ze && Ze in Object(e) ? $n(e) : jn(e);
|
|
19
19
|
}
|
|
20
20
|
function Oe(e) {
|
|
21
21
|
return e != null && typeof e == "object";
|
|
@@ -25,12 +25,12 @@ function xt(e) {
|
|
|
25
25
|
var t = typeof e;
|
|
26
26
|
return e != null && (t == "object" || t == "function");
|
|
27
27
|
}
|
|
28
|
-
var Mn = "[object AsyncFunction]",
|
|
28
|
+
var Mn = "[object AsyncFunction]", Dn = "[object Function]", Hn = "[object GeneratorFunction]", Fn = "[object Proxy]";
|
|
29
29
|
function Ct(e) {
|
|
30
30
|
if (!xt(e))
|
|
31
31
|
return !1;
|
|
32
32
|
var t = Z(e);
|
|
33
|
-
return t ==
|
|
33
|
+
return t == Dn || t == Hn || t == Mn || t == Fn;
|
|
34
34
|
}
|
|
35
35
|
var xe = j["__core-js_shared__"], Ge = function() {
|
|
36
36
|
var e = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || "");
|
|
@@ -40,7 +40,7 @@ function zn(e) {
|
|
|
40
40
|
return !!Ge && Ge in e;
|
|
41
41
|
}
|
|
42
42
|
var Vn = Function.prototype, qn = Vn.toString;
|
|
43
|
-
function
|
|
43
|
+
function D(e) {
|
|
44
44
|
if (e != null) {
|
|
45
45
|
try {
|
|
46
46
|
return qn.call(e);
|
|
@@ -60,7 +60,7 @@ function Xn(e) {
|
|
|
60
60
|
if (!xt(e) || zn(e))
|
|
61
61
|
return !1;
|
|
62
62
|
var t = Ct(e) ? Kn : Nn;
|
|
63
|
-
return t.test(
|
|
63
|
+
return t.test(D(e));
|
|
64
64
|
}
|
|
65
65
|
function Zn(e, t) {
|
|
66
66
|
return e == null ? void 0 : e[t];
|
|
@@ -93,10 +93,10 @@ var Et = Object.prototype, to = Et.hasOwnProperty, no = Et.propertyIsEnumerable,
|
|
|
93
93
|
function ro() {
|
|
94
94
|
return !1;
|
|
95
95
|
}
|
|
96
|
-
var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Pt && typeof module == "object" && module && !module.nodeType && module, so = Qe && Qe.exports === Pt, et = so ? j.Buffer : void 0, io = et ? et.isBuffer : void 0, ao = io || ro, lo = "[object Arguments]", co = "[object Array]", uo = "[object Boolean]", wo = "[object Date]", fo = "[object Error]", mo = "[object Function]", go = "[object Map]", ho = "[object Number]", po = "[object Object]", bo = "[object RegExp]", yo = "[object Set]", vo = "[object String]", ko = "[object WeakMap]", xo = "[object ArrayBuffer]", Co = "[object DataView]", Ao = "[object Float32Array]", To = "[object Float64Array]", Eo = "[object Int8Array]", Po = "[object Int16Array]", $o = "[object Int32Array]", Bo = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]",
|
|
97
|
-
f[Ao] = f[To] = f[Eo] = f[Po] = f[$o] = f[Bo] = f[So] = f[jo] = f[
|
|
96
|
+
var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Pt && typeof module == "object" && module && !module.nodeType && module, so = Qe && Qe.exports === Pt, et = so ? j.Buffer : void 0, io = et ? et.isBuffer : void 0, ao = io || ro, lo = "[object Arguments]", co = "[object Array]", uo = "[object Boolean]", wo = "[object Date]", fo = "[object Error]", mo = "[object Function]", go = "[object Map]", ho = "[object Number]", po = "[object Object]", bo = "[object RegExp]", yo = "[object Set]", vo = "[object String]", ko = "[object WeakMap]", xo = "[object ArrayBuffer]", Co = "[object DataView]", Ao = "[object Float32Array]", To = "[object Float64Array]", Eo = "[object Int8Array]", Po = "[object Int16Array]", $o = "[object Int32Array]", Bo = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Io = "[object Uint32Array]", f = {};
|
|
97
|
+
f[Ao] = f[To] = f[Eo] = f[Po] = f[$o] = f[Bo] = f[So] = f[jo] = f[Io] = !0;
|
|
98
98
|
f[lo] = f[co] = f[xo] = f[uo] = f[Co] = f[wo] = f[fo] = f[mo] = f[go] = f[ho] = f[po] = f[bo] = f[yo] = f[vo] = f[ko] = !1;
|
|
99
|
-
function
|
|
99
|
+
function Lo(e) {
|
|
100
100
|
return Oe(e) && At(e.length) && !!f[Z(e)];
|
|
101
101
|
}
|
|
102
102
|
function Oo(e) {
|
|
@@ -110,13 +110,13 @@ var $t = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
110
110
|
return e || Ce && Ce.binding && Ce.binding("util");
|
|
111
111
|
} catch {
|
|
112
112
|
}
|
|
113
|
-
}(), nt = tt && tt.isTypedArray,
|
|
114
|
-
function
|
|
113
|
+
}(), nt = tt && tt.isTypedArray, Do = nt ? Oo(nt) : Lo;
|
|
114
|
+
function Ho(e, t) {
|
|
115
115
|
return function(n) {
|
|
116
116
|
return e(t(n));
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
var Fo =
|
|
119
|
+
var Fo = Ho(Object.keys, Object), zo = Object.prototype, Vo = zo.hasOwnProperty;
|
|
120
120
|
function qo(e) {
|
|
121
121
|
if (!Tt(e))
|
|
122
122
|
return Fo(e);
|
|
@@ -125,9 +125,9 @@ function qo(e) {
|
|
|
125
125
|
Vo.call(e, n) && n != "constructor" && t.push(n);
|
|
126
126
|
return t;
|
|
127
127
|
}
|
|
128
|
-
var $e = G(j, "Map"), Be = G(j, "DataView"), Se = G(j, "Promise"), je = G(j, "Set"), ot = "[object Map]", Ro = "[object Object]", rt = "[object Promise]", st = "[object Set]", it = "[object WeakMap]", at = "[object DataView]", No =
|
|
129
|
-
(Be &&
|
|
130
|
-
var t = Z(e), n = t == Ro ? e.constructor : void 0, o = n ?
|
|
128
|
+
var $e = G(j, "Map"), Be = G(j, "DataView"), Se = G(j, "Promise"), je = G(j, "Set"), ot = "[object Map]", Ro = "[object Object]", rt = "[object Promise]", st = "[object Set]", it = "[object WeakMap]", at = "[object DataView]", No = D(Be), Wo = D($e), Uo = D(Se), _o = D(je), Yo = D(Pe), L = Z;
|
|
129
|
+
(Be && L(new Be(new ArrayBuffer(1))) != at || $e && L(new $e()) != ot || Se && L(Se.resolve()) != rt || je && L(new je()) != st || Pe && L(new Pe()) != it) && (L = function(e) {
|
|
130
|
+
var t = Z(e), n = t == Ro ? e.constructor : void 0, o = n ? D(n) : "";
|
|
131
131
|
if (o)
|
|
132
132
|
switch (o) {
|
|
133
133
|
case No:
|
|
@@ -147,9 +147,9 @@ var Ko = "[object Map]", Xo = "[object Set]", Zo = Object.prototype, Go = Zo.has
|
|
|
147
147
|
function Jo(e) {
|
|
148
148
|
if (e == null)
|
|
149
149
|
return !0;
|
|
150
|
-
if (Jn(e) && (On(e) || typeof e == "string" || typeof e.splice == "function" || ao(e) ||
|
|
150
|
+
if (Jn(e) && (On(e) || typeof e == "string" || typeof e.splice == "function" || ao(e) || Do(e) || oo(e)))
|
|
151
151
|
return !e.length;
|
|
152
|
-
var t =
|
|
152
|
+
var t = L(e);
|
|
153
153
|
if (t == Ko || t == Xo)
|
|
154
154
|
return !e.size;
|
|
155
155
|
if (Tt(e))
|
|
@@ -162,25 +162,29 @@ function Jo(e) {
|
|
|
162
162
|
function Qo(e) {
|
|
163
163
|
return e == null;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const Ni = (e) => {
|
|
166
166
|
if (Jo(e == null ? void 0 : e.toString()))
|
|
167
167
|
return null;
|
|
168
168
|
const t = (e == null ? void 0 : e.toString()) ?? "", o = /calc\(([^)]+)\)/.exec(t);
|
|
169
169
|
return Qo(o == null ? void 0 : o[1]) ? t.includes("%") || isNaN(Number(t)) ? isNaN(parseInt(t)) ? null : t : parseInt(t) + "px" : t;
|
|
170
|
-
},
|
|
170
|
+
}, Wi = (e) => btoa(encodeURI(`${e.name ?? e ?? "name"}-${e.id ?? -1}`)), Ui = (e, t = !0) => typeof e < "u" && (t ? e !== null : !0), Bt = (e, t) => {
|
|
171
171
|
if (e = e.replace(/^#/, ""), !/^([0-9A-Fa-f]{6})$/.test(e))
|
|
172
172
|
throw new Error("Invalid hex color code");
|
|
173
173
|
const n = parseInt(e, 16), o = n >> 16 & 255, r = n >> 8 & 255, i = n & 255;
|
|
174
174
|
if (isNaN(o) || isNaN(r) || isNaN(i))
|
|
175
175
|
throw new Error("Invalid hex color code");
|
|
176
176
|
return { r: o, g: r, b: i, a: t > 1 ? t / 100 : t };
|
|
177
|
-
},
|
|
177
|
+
}, _i = (e, t) => {
|
|
178
178
|
const { r: n, g: o, b: r, a: i } = Bt(e, t);
|
|
179
179
|
return `rgba(${n}, ${o}, ${r}, ${i})`;
|
|
180
|
-
},
|
|
180
|
+
}, Yi = (e) => {
|
|
181
181
|
const { r: t, g: n, b: o } = Bt(e, 1);
|
|
182
182
|
return { r: t, g: n, b: o };
|
|
183
|
-
}
|
|
183
|
+
}, Ki = () => {
|
|
184
|
+
var l;
|
|
185
|
+
const e = ((l = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : l.platform) ?? (navigator == null ? void 0 : navigator.platform), t = navigator.userAgent ?? "", o = ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(e), r = t.includes("Mac") && "ontouchend" in document, i = t.includes("Safari") && !t.includes("Chrome") && !t.includes("Firefox");
|
|
186
|
+
return o || r && i;
|
|
187
|
+
}, er = (e = 768) => window.innerWidth < e, Xi = () => /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent) && er();
|
|
184
188
|
/*!
|
|
185
189
|
* sweetalert2 v11.19.1
|
|
186
190
|
* Released under the MIT License.
|
|
@@ -189,48 +193,48 @@ function St(e, t, n) {
|
|
|
189
193
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
190
194
|
throw new TypeError("Private element is not present on this object");
|
|
191
195
|
}
|
|
192
|
-
function
|
|
196
|
+
function tr(e, t) {
|
|
193
197
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
194
198
|
}
|
|
195
199
|
function lt(e, t) {
|
|
196
200
|
return e.get(St(e, t));
|
|
197
201
|
}
|
|
198
|
-
function tr(e, t, n) {
|
|
199
|
-
er(e, t), t.set(e, n);
|
|
200
|
-
}
|
|
201
202
|
function nr(e, t, n) {
|
|
203
|
+
tr(e, t), t.set(e, n);
|
|
204
|
+
}
|
|
205
|
+
function or(e, t, n) {
|
|
202
206
|
return e.set(St(e, t), n), n;
|
|
203
207
|
}
|
|
204
|
-
const
|
|
208
|
+
const rr = 100, a = {}, sr = () => {
|
|
205
209
|
a.previousActiveElement instanceof HTMLElement ? (a.previousActiveElement.focus(), a.previousActiveElement = null) : document.body && document.body.focus();
|
|
206
|
-
},
|
|
210
|
+
}, ir = (e) => new Promise((t) => {
|
|
207
211
|
if (!e)
|
|
208
212
|
return t();
|
|
209
213
|
const n = window.scrollX, o = window.scrollY;
|
|
210
214
|
a.restoreFocusTimeout = setTimeout(() => {
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
}), jt = "swal2-",
|
|
215
|
+
sr(), t();
|
|
216
|
+
}, rr), window.scrollTo(n, o);
|
|
217
|
+
}), jt = "swal2-", ar = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "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"], s = ar.reduce(
|
|
214
218
|
(e, t) => (e[t] = jt + t, e),
|
|
215
219
|
/** @type {SwalClasses} */
|
|
216
220
|
{}
|
|
217
|
-
),
|
|
221
|
+
), lr = ["success", "warning", "info", "question", "error"], ie = lr.reduce(
|
|
218
222
|
(e, t) => (e[t] = jt + t, e),
|
|
219
223
|
/** @type {SwalIcons} */
|
|
220
224
|
{}
|
|
221
|
-
),
|
|
222
|
-
console.warn(`${
|
|
223
|
-
},
|
|
224
|
-
console.error(`${
|
|
225
|
-
}, ct = [],
|
|
225
|
+
), It = "SweetAlert2:", Me = (e) => e.charAt(0).toUpperCase() + e.slice(1), y = (e) => {
|
|
226
|
+
console.warn(`${It} ${typeof e == "object" ? e.join(" ") : e}`);
|
|
227
|
+
}, H = (e) => {
|
|
228
|
+
console.error(`${It} ${e}`);
|
|
229
|
+
}, ct = [], cr = (e) => {
|
|
226
230
|
ct.includes(e) || (ct.push(e), y(e));
|
|
227
|
-
},
|
|
231
|
+
}, Lt = function(e) {
|
|
228
232
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
229
|
-
|
|
230
|
-
}, he = (e) => typeof e == "function" ? e() : e,
|
|
233
|
+
cr(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
|
|
234
|
+
}, he = (e) => typeof e == "function" ? e() : e, De = (e) => e && typeof e.toPromise == "function", J = (e) => De(e) ? e.toPromise() : Promise.resolve(e), He = (e) => e && Promise.resolve(e) === e, v = () => document.body.querySelector(`.${s.container}`), Q = (e) => {
|
|
231
235
|
const t = v();
|
|
232
236
|
return t ? t.querySelector(e) : null;
|
|
233
|
-
}, C = (e) => Q(`.${e}`), d = () => C(s.popup), W = () => C(s.icon),
|
|
237
|
+
}, C = (e) => Q(`.${e}`), d = () => C(s.popup), W = () => C(s.icon), dr = () => C(s["icon-content"]), Ot = () => C(s.title), Fe = () => C(s["html-container"]), Mt = () => C(s.image), ze = () => C(s["progress-steps"]), pe = () => C(s["validation-message"]), P = () => (
|
|
234
238
|
/** @type {HTMLButtonElement} */
|
|
235
239
|
Q(`.${s.actions} .${s.confirm}`)
|
|
236
240
|
), U = () => (
|
|
@@ -239,7 +243,7 @@ const or = 100, a = {}, rr = () => {
|
|
|
239
243
|
), F = () => (
|
|
240
244
|
/** @type {HTMLButtonElement} */
|
|
241
245
|
Q(`.${s.actions} .${s.deny}`)
|
|
242
|
-
),
|
|
246
|
+
), ur = () => C(s["input-label"]), _ = () => Q(`.${s.loader}`), ee = () => C(s.actions), Dt = () => C(s.footer), be = () => C(s["timer-progress-bar"]), Ve = () => C(s.close), wr = `
|
|
243
247
|
a[href],
|
|
244
248
|
area[href],
|
|
245
249
|
input:not([disabled]),
|
|
@@ -261,12 +265,12 @@ const or = 100, a = {}, rr = () => {
|
|
|
261
265
|
const t = e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(t).sort((i, l) => {
|
|
262
266
|
const c = parseInt(i.getAttribute("tabindex") || "0"), m = parseInt(l.getAttribute("tabindex") || "0");
|
|
263
267
|
return c > m ? 1 : c < m ? -1 : 0;
|
|
264
|
-
}), o = e.querySelectorAll(
|
|
268
|
+
}), o = e.querySelectorAll(wr), r = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
|
|
265
269
|
return [...new Set(n.concat(r))].filter((i) => k(i));
|
|
266
270
|
}, Re = () => $(document.body, s.shown) && !$(document.body, s["toast-shown"]) && !$(document.body, s["no-backdrop"]), ye = () => {
|
|
267
271
|
const e = d();
|
|
268
272
|
return e ? $(e, s.toast) : !1;
|
|
269
|
-
},
|
|
273
|
+
}, fr = () => {
|
|
270
274
|
const e = d();
|
|
271
275
|
return e ? e.hasAttribute("data-loading") : !1;
|
|
272
276
|
}, A = (e, t) => {
|
|
@@ -288,12 +292,12 @@ const or = 100, a = {}, rr = () => {
|
|
|
288
292
|
if (!e.classList.contains(n[o]))
|
|
289
293
|
return !1;
|
|
290
294
|
return !0;
|
|
291
|
-
},
|
|
295
|
+
}, mr = (e, t) => {
|
|
292
296
|
Array.from(e.classList).forEach((n) => {
|
|
293
297
|
!Object.values(s).includes(n) && !Object.values(ie).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
|
|
294
298
|
});
|
|
295
299
|
}, x = (e, t, n) => {
|
|
296
|
-
if (
|
|
300
|
+
if (mr(e, t), !t.customClass)
|
|
297
301
|
return;
|
|
298
302
|
const o = t.customClass[
|
|
299
303
|
/** @type {keyof SweetAlertCustomClass} */
|
|
@@ -323,7 +327,7 @@ const or = 100, a = {}, rr = () => {
|
|
|
323
327
|
default:
|
|
324
328
|
return e.querySelector(`.${s.popup} > .${s.input}`);
|
|
325
329
|
}
|
|
326
|
-
},
|
|
330
|
+
}, Ht = (e) => {
|
|
327
331
|
if (e.focus(), e.type !== "file") {
|
|
328
332
|
const t = e.value;
|
|
329
333
|
e.value = "", e.value = t;
|
|
@@ -366,7 +370,7 @@ const or = 100, a = {}, rr = () => {
|
|
|
366
370
|
}, te = function(e, t) {
|
|
367
371
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "flex";
|
|
368
372
|
t ? p(e, n) : b(e);
|
|
369
|
-
}, k = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)),
|
|
373
|
+
}, k = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), gr = () => !k(P()) && !k(F()) && !k(U()), ut = (e) => e.scrollHeight > e.clientHeight, zt = (e) => {
|
|
370
374
|
const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), o = parseFloat(t.getPropertyValue("transition-duration") || "0");
|
|
371
375
|
return n > 0 || o > 0;
|
|
372
376
|
}, We = function(e) {
|
|
@@ -375,7 +379,7 @@ const or = 100, a = {}, rr = () => {
|
|
|
375
379
|
n && k(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
376
380
|
n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
|
|
377
381
|
}, 10));
|
|
378
|
-
},
|
|
382
|
+
}, hr = () => {
|
|
379
383
|
const e = be();
|
|
380
384
|
if (!e)
|
|
381
385
|
return;
|
|
@@ -383,7 +387,7 @@ const or = 100, a = {}, rr = () => {
|
|
|
383
387
|
e.style.removeProperty("transition"), e.style.width = "100%";
|
|
384
388
|
const n = parseInt(window.getComputedStyle(e).width), o = t / n * 100;
|
|
385
389
|
e.style.width = `${o}%`;
|
|
386
|
-
},
|
|
390
|
+
}, pr = () => typeof window > "u" || typeof document > "u", br = `
|
|
387
391
|
<div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
|
|
388
392
|
<button type="button" class="${s.close}"></button>
|
|
389
393
|
<ul class="${s["progress-steps"]}"></ul>
|
|
@@ -416,52 +420,52 @@ const or = 100, a = {}, rr = () => {
|
|
|
416
420
|
<div class="${s["timer-progress-bar"]}"></div>
|
|
417
421
|
</div>
|
|
418
422
|
</div>
|
|
419
|
-
`.replace(/(^|\n)\s*/g, ""),
|
|
423
|
+
`.replace(/(^|\n)\s*/g, ""), yr = () => {
|
|
420
424
|
const e = v();
|
|
421
425
|
return e ? (e.remove(), T([document.documentElement, document.body], [s["no-backdrop"], s["toast-shown"], s["has-column"]]), !0) : !1;
|
|
422
|
-
},
|
|
426
|
+
}, I = () => {
|
|
423
427
|
a.currentInstance.resetValidationMessage();
|
|
424
|
-
},
|
|
428
|
+
}, vr = () => {
|
|
425
429
|
const e = d(), t = B(e, s.input), n = B(e, s.file), o = e.querySelector(`.${s.range} input`), r = e.querySelector(`.${s.range} output`), i = B(e, s.select), l = e.querySelector(`.${s.checkbox} input`), c = B(e, s.textarea);
|
|
426
|
-
t.oninput =
|
|
427
|
-
|
|
430
|
+
t.oninput = I, n.onchange = I, i.onchange = I, l.onchange = I, c.oninput = I, o.oninput = () => {
|
|
431
|
+
I(), r.value = o.value;
|
|
428
432
|
}, o.onchange = () => {
|
|
429
|
-
|
|
433
|
+
I(), r.value = o.value;
|
|
430
434
|
};
|
|
431
|
-
},
|
|
435
|
+
}, kr = (e) => typeof e == "string" ? document.querySelector(e) : e, xr = (e) => {
|
|
432
436
|
const t = d();
|
|
433
437
|
t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
|
|
434
|
-
}, xr = (e) => {
|
|
435
|
-
window.getComputedStyle(e).direction === "rtl" && u(v(), s.rtl);
|
|
436
438
|
}, Cr = (e) => {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
439
|
+
window.getComputedStyle(e).direction === "rtl" && u(v(), s.rtl);
|
|
440
|
+
}, Ar = (e) => {
|
|
441
|
+
const t = yr();
|
|
442
|
+
if (pr()) {
|
|
443
|
+
H("SweetAlert2 requires document to initialize");
|
|
440
444
|
return;
|
|
441
445
|
}
|
|
442
446
|
const n = document.createElement("div");
|
|
443
|
-
n.className = s.container, t && u(n, s["no-transition"]), A(n,
|
|
444
|
-
const o =
|
|
445
|
-
o.appendChild(n),
|
|
447
|
+
n.className = s.container, t && u(n, s["no-transition"]), A(n, br), n.dataset.swal2Theme = e.theme;
|
|
448
|
+
const o = kr(e.target);
|
|
449
|
+
o.appendChild(n), xr(e), Cr(o), vr();
|
|
446
450
|
}, Ue = (e, t) => {
|
|
447
|
-
e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ?
|
|
448
|
-
}, Ar = (e, t) => {
|
|
449
|
-
e.jquery ? Tr(t, e) : A(t, e.toString());
|
|
451
|
+
e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Tr(e, t) : e && A(t, e);
|
|
450
452
|
}, Tr = (e, t) => {
|
|
453
|
+
e.jquery ? Er(t, e) : A(t, e.toString());
|
|
454
|
+
}, Er = (e, t) => {
|
|
451
455
|
if (e.textContent = "", 0 in t)
|
|
452
456
|
for (let n = 0; n in t; n++)
|
|
453
457
|
e.appendChild(t[n].cloneNode(!0));
|
|
454
458
|
else
|
|
455
459
|
e.appendChild(t.cloneNode(!0));
|
|
456
|
-
},
|
|
460
|
+
}, Pr = (e, t) => {
|
|
457
461
|
const n = ee(), o = _();
|
|
458
|
-
!n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? b(n) : p(n), x(n, t, "actions"),
|
|
462
|
+
!n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? b(n) : p(n), x(n, t, "actions"), $r(n, o, t), A(o, t.loaderHtml || ""), x(o, t, "loader"));
|
|
459
463
|
};
|
|
460
|
-
function
|
|
464
|
+
function $r(e, t, n) {
|
|
461
465
|
const o = P(), r = F(), i = U();
|
|
462
|
-
!o || !r || !i || (Te(o, "confirm", n), Te(r, "deny", n), Te(i, "cancel", n),
|
|
466
|
+
!o || !r || !i || (Te(o, "confirm", n), Te(r, "deny", n), Te(i, "cancel", n), Br(o, r, i, n), n.reverseButtons && (n.toast ? (e.insertBefore(i, o), e.insertBefore(r, o)) : (e.insertBefore(i, t), e.insertBefore(r, t), e.insertBefore(o, t))));
|
|
463
467
|
}
|
|
464
|
-
function
|
|
468
|
+
function Br(e, t, n, o) {
|
|
465
469
|
if (!o.buttonsStyling) {
|
|
466
470
|
T([e, t, n], s.styled);
|
|
467
471
|
return;
|
|
@@ -479,40 +483,40 @@ function Te(e, t, n) {
|
|
|
479
483
|
);
|
|
480
484
|
te(e, n[`show${o}Button`], "inline-block"), A(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = s[t], x(e, n, `${t}Button`);
|
|
481
485
|
}
|
|
482
|
-
const
|
|
486
|
+
const Sr = (e, t) => {
|
|
483
487
|
const n = Ve();
|
|
484
488
|
n && (A(n, t.closeButtonHtml || ""), x(n, t, "closeButton"), te(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
|
|
485
|
-
},
|
|
489
|
+
}, jr = (e, t) => {
|
|
486
490
|
const n = v();
|
|
487
|
-
n && (
|
|
491
|
+
n && (Ir(n, t.backdrop), Lr(n, t.position), Or(n, t.grow), x(n, t, "container"));
|
|
488
492
|
};
|
|
489
|
-
function
|
|
493
|
+
function Ir(e, t) {
|
|
490
494
|
typeof t == "string" ? e.style.background = t : t || u([document.documentElement, document.body], s["no-backdrop"]);
|
|
491
495
|
}
|
|
492
496
|
function Lr(e, t) {
|
|
493
497
|
t && (t in s ? u(e, s[t]) : (y('The "position" parameter is not valid, defaulting to "center"'), u(e, s.center)));
|
|
494
498
|
}
|
|
495
|
-
function
|
|
499
|
+
function Or(e, t) {
|
|
496
500
|
t && u(e, s[`grow-${t}`]);
|
|
497
501
|
}
|
|
498
502
|
var w = {
|
|
499
503
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
500
504
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
501
505
|
};
|
|
502
|
-
const
|
|
506
|
+
const Mr = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Dr = (e, t) => {
|
|
503
507
|
const n = d();
|
|
504
508
|
if (!n)
|
|
505
509
|
return;
|
|
506
510
|
const o = w.innerParams.get(e), r = !o || t.input !== o.input;
|
|
507
|
-
|
|
511
|
+
Mr.forEach((i) => {
|
|
508
512
|
const l = B(n, s[i]);
|
|
509
|
-
l && (
|
|
510
|
-
}), t.input && (r && Hr(t),
|
|
513
|
+
l && (zr(i, t.inputAttributes), l.className = s[i], r && b(l));
|
|
514
|
+
}), t.input && (r && Hr(t), Vr(t));
|
|
511
515
|
}, Hr = (e) => {
|
|
512
516
|
if (!e.input)
|
|
513
517
|
return;
|
|
514
518
|
if (!g[e.input]) {
|
|
515
|
-
|
|
519
|
+
H(`Unexpected type of input! Expected ${Object.keys(g).join(" | ")}, got "${e.input}"`);
|
|
516
520
|
return;
|
|
517
521
|
}
|
|
518
522
|
const t = Vt(e.input);
|
|
@@ -520,24 +524,24 @@ const Or = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
|
|
|
520
524
|
return;
|
|
521
525
|
const n = g[e.input](t, e);
|
|
522
526
|
p(t), e.inputAutoFocus && setTimeout(() => {
|
|
523
|
-
|
|
527
|
+
Ht(n);
|
|
524
528
|
});
|
|
525
|
-
},
|
|
529
|
+
}, Fr = (e) => {
|
|
526
530
|
for (let t = 0; t < e.attributes.length; t++) {
|
|
527
531
|
const n = e.attributes[t].name;
|
|
528
532
|
["id", "type", "value", "style"].includes(n) || e.removeAttribute(n);
|
|
529
533
|
}
|
|
530
|
-
},
|
|
534
|
+
}, zr = (e, t) => {
|
|
531
535
|
const n = d();
|
|
532
536
|
if (!n)
|
|
533
537
|
return;
|
|
534
538
|
const o = ve(n, e);
|
|
535
539
|
if (o) {
|
|
536
|
-
|
|
540
|
+
Fr(o);
|
|
537
541
|
for (const r in t)
|
|
538
542
|
o.setAttribute(r, t[r]);
|
|
539
543
|
}
|
|
540
|
-
},
|
|
544
|
+
}, Vr = (e) => {
|
|
541
545
|
if (!e.input)
|
|
542
546
|
return;
|
|
543
547
|
const t = Vt(e.input);
|
|
@@ -557,7 +561,7 @@ const Or = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
|
|
|
557
561
|
e
|
|
558
562
|
] || s.input);
|
|
559
563
|
}, ae = (e, t) => {
|
|
560
|
-
["string", "number"].includes(typeof t) ? e.value = `${t}` :
|
|
564
|
+
["string", "number"].includes(typeof t) ? e.value = `${t}` : He(t) || y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
|
|
561
565
|
}, g = {};
|
|
562
566
|
g.text = g.email = g.password = g.number = g.tel = g.url = g.search = g.date = g["datetime-local"] = g.time = g.week = g.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
|
|
563
567
|
(e, t) => (ae(e, t.inputValue), ne(e, e, t), _e(e, t), e.type = t.input, e);
|
|
@@ -598,13 +602,13 @@ g.textarea = (e, t) => {
|
|
|
598
602
|
}
|
|
599
603
|
}), e;
|
|
600
604
|
};
|
|
601
|
-
const
|
|
605
|
+
const qr = (e, t) => {
|
|
602
606
|
const n = Fe();
|
|
603
|
-
n && (Ne(n), x(n, t, "htmlContainer"), t.html ? (Ue(t.html, n), p(n, "block")) : t.text ? (n.textContent = t.text, p(n, "block")) : b(n),
|
|
604
|
-
}, qr = (e, t) => {
|
|
605
|
-
const n = Ht();
|
|
606
|
-
n && (Ne(n), te(n, t.footer, "block"), t.footer && Ue(t.footer, n), x(n, t, "footer"));
|
|
607
|
+
n && (Ne(n), x(n, t, "htmlContainer"), t.html ? (Ue(t.html, n), p(n, "block")) : t.text ? (n.textContent = t.text, p(n, "block")) : b(n), Dr(e, t));
|
|
607
608
|
}, Rr = (e, t) => {
|
|
609
|
+
const n = Dt();
|
|
610
|
+
n && (Ne(n), te(n, t.footer, "block"), t.footer && Ue(t.footer, n), x(n, t, "footer"));
|
|
611
|
+
}, Nr = (e, t) => {
|
|
608
612
|
const n = w.innerParams.get(e), o = W();
|
|
609
613
|
if (!o)
|
|
610
614
|
return;
|
|
@@ -617,14 +621,14 @@ const Vr = (e, t) => {
|
|
|
617
621
|
return;
|
|
618
622
|
}
|
|
619
623
|
if (t.icon && Object.keys(ie).indexOf(t.icon) === -1) {
|
|
620
|
-
|
|
624
|
+
H(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), b(o);
|
|
621
625
|
return;
|
|
622
626
|
}
|
|
623
627
|
p(o), ft(o, t), wt(o, t), u(o, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", qt);
|
|
624
628
|
}, wt = (e, t) => {
|
|
625
629
|
for (const [n, o] of Object.entries(ie))
|
|
626
630
|
t.icon !== n && T(e, o);
|
|
627
|
-
u(e, t.icon && ie[t.icon]),
|
|
631
|
+
u(e, t.icon && ie[t.icon]), _r(e, t), qt(), x(e, t, "icon");
|
|
628
632
|
}, qt = () => {
|
|
629
633
|
const e = d();
|
|
630
634
|
if (!e)
|
|
@@ -632,12 +636,12 @@ const Vr = (e, t) => {
|
|
|
632
636
|
const t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
633
637
|
for (let o = 0; o < n.length; o++)
|
|
634
638
|
n[o].style.backgroundColor = t;
|
|
635
|
-
},
|
|
639
|
+
}, Wr = `
|
|
636
640
|
<div class="swal2-success-circular-line-left"></div>
|
|
637
641
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
638
642
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
639
643
|
<div class="swal2-success-circular-line-right"></div>
|
|
640
|
-
`,
|
|
644
|
+
`, Ur = `
|
|
641
645
|
<span class="swal2-x-mark">
|
|
642
646
|
<span class="swal2-x-mark-line-left"></span>
|
|
643
647
|
<span class="swal2-x-mark-line-right"></span>
|
|
@@ -646,19 +650,19 @@ const Vr = (e, t) => {
|
|
|
646
650
|
if (!t.icon && !t.iconHtml)
|
|
647
651
|
return;
|
|
648
652
|
let n = e.innerHTML, o = "";
|
|
649
|
-
t.iconHtml ? o = mt(t.iconHtml) : t.icon === "success" ? (o =
|
|
653
|
+
t.iconHtml ? o = mt(t.iconHtml) : t.icon === "success" ? (o = Wr, n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? o = Ur : t.icon && (o = mt({
|
|
650
654
|
question: "?",
|
|
651
655
|
warning: "!",
|
|
652
656
|
info: "i"
|
|
653
657
|
}[t.icon])), n.trim() !== o.trim() && A(e, o);
|
|
654
|
-
},
|
|
658
|
+
}, _r = (e, t) => {
|
|
655
659
|
if (t.iconColor) {
|
|
656
660
|
e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
|
|
657
661
|
for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
|
|
658
662
|
dt(e, n, "background-color", t.iconColor);
|
|
659
663
|
dt(e, ".swal2-success-ring", "border-color", t.iconColor);
|
|
660
664
|
}
|
|
661
|
-
}, mt = (e) => `<div class="${s["icon-content"]}">${e}</div>`,
|
|
665
|
+
}, mt = (e) => `<div class="${s["icon-content"]}">${e}</div>`, Yr = (e, t) => {
|
|
662
666
|
const n = Mt();
|
|
663
667
|
if (n) {
|
|
664
668
|
if (!t.imageUrl) {
|
|
@@ -669,9 +673,9 @@ const Vr = (e, t) => {
|
|
|
669
673
|
}
|
|
670
674
|
};
|
|
671
675
|
let Ye = !1, Rt = 0, Nt = 0, Wt = 0, Ut = 0;
|
|
672
|
-
const
|
|
676
|
+
const Kr = (e) => {
|
|
673
677
|
e.addEventListener("mousedown", le), document.body.addEventListener("mousemove", ce), e.addEventListener("mouseup", de), e.addEventListener("touchstart", le), document.body.addEventListener("touchmove", ce), e.addEventListener("touchend", de);
|
|
674
|
-
},
|
|
678
|
+
}, Xr = (e) => {
|
|
675
679
|
e.removeEventListener("mousedown", le), document.body.removeEventListener("mousemove", ce), e.removeEventListener("mouseup", de), e.removeEventListener("touchstart", le), document.body.removeEventListener("touchmove", ce), e.removeEventListener("touchend", de);
|
|
676
680
|
}, le = (e) => {
|
|
677
681
|
const t = d();
|
|
@@ -705,7 +709,7 @@ const Yr = (e) => {
|
|
|
705
709
|
clientX: t,
|
|
706
710
|
clientY: n
|
|
707
711
|
};
|
|
708
|
-
},
|
|
712
|
+
}, Zr = (e, t) => {
|
|
709
713
|
const n = v(), o = d();
|
|
710
714
|
if (!(!n || !o)) {
|
|
711
715
|
if (t.toast) {
|
|
@@ -714,12 +718,12 @@ const Yr = (e) => {
|
|
|
714
718
|
r && o.insertBefore(r, W());
|
|
715
719
|
} else
|
|
716
720
|
O(o, "width", t.width);
|
|
717
|
-
O(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), b(pe()),
|
|
721
|
+
O(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), b(pe()), Gr(o, t), t.draggable && !t.toast ? (u(o, s.draggable), Kr(o)) : (T(o, s.draggable), Xr(o));
|
|
718
722
|
}
|
|
719
|
-
},
|
|
723
|
+
}, Gr = (e, t) => {
|
|
720
724
|
const n = t.showClass || {};
|
|
721
725
|
e.className = `${s.popup} ${k(e) ? n.popup : ""}`, t.toast ? (u([document.documentElement, document.body], s["toast-shown"]), u(e, s.toast)) : u(e, s.modal), x(e, t, "popup"), typeof t.customClass == "string" && u(e, t.customClass), t.icon && u(e, s[`icon-${t.icon}`]);
|
|
722
|
-
},
|
|
726
|
+
}, Jr = (e, t) => {
|
|
723
727
|
const n = ze();
|
|
724
728
|
if (!n)
|
|
725
729
|
return;
|
|
@@ -732,32 +736,32 @@ const Yr = (e) => {
|
|
|
732
736
|
return;
|
|
733
737
|
}
|
|
734
738
|
p(n), n.textContent = "", r >= o.length && y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((i, l) => {
|
|
735
|
-
const c =
|
|
739
|
+
const c = Qr(i);
|
|
736
740
|
if (n.appendChild(c), l === r && u(c, s["active-progress-step"]), l !== o.length - 1) {
|
|
737
|
-
const m =
|
|
741
|
+
const m = es(t);
|
|
738
742
|
n.appendChild(m);
|
|
739
743
|
}
|
|
740
744
|
});
|
|
741
|
-
},
|
|
745
|
+
}, Qr = (e) => {
|
|
742
746
|
const t = document.createElement("li");
|
|
743
747
|
return u(t, s["progress-step"]), A(t, e), t;
|
|
744
|
-
},
|
|
748
|
+
}, es = (e) => {
|
|
745
749
|
const t = document.createElement("li");
|
|
746
750
|
return u(t, s["progress-step-line"]), e.progressStepsDistance && O(t, "width", e.progressStepsDistance), t;
|
|
747
|
-
},
|
|
751
|
+
}, ts = (e, t) => {
|
|
748
752
|
const n = Ot();
|
|
749
753
|
n && (Ne(n), te(n, t.title || t.titleText, "block"), t.title && Ue(t.title, n), t.titleText && (n.innerText = t.titleText), x(n, t, "title"));
|
|
750
754
|
}, Yt = (e, t) => {
|
|
751
|
-
|
|
755
|
+
Zr(e, t), jr(e, t), Jr(e, t), Nr(e, t), Yr(e, t), ts(e, t), Sr(e, t), qr(e, t), Pr(e, t), Rr(e, t);
|
|
752
756
|
const n = d();
|
|
753
757
|
typeof t.didRender == "function" && n && t.didRender(n), a.eventEmitter.emit("didRender", n);
|
|
754
|
-
},
|
|
758
|
+
}, ns = () => k(d()), Kt = () => {
|
|
755
759
|
var e;
|
|
756
760
|
return (e = P()) === null || e === void 0 ? void 0 : e.click();
|
|
757
|
-
},
|
|
761
|
+
}, os = () => {
|
|
758
762
|
var e;
|
|
759
763
|
return (e = F()) === null || e === void 0 ? void 0 : e.click();
|
|
760
|
-
},
|
|
764
|
+
}, rs = () => {
|
|
761
765
|
var e;
|
|
762
766
|
return (e = U()) === null || e === void 0 ? void 0 : e.click();
|
|
763
767
|
}, Y = Object.freeze({
|
|
@@ -770,11 +774,11 @@ const Yr = (e) => {
|
|
|
770
774
|
e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
|
|
771
775
|
capture: e.keydownListenerCapture
|
|
772
776
|
}), e.keydownHandlerAdded = !1);
|
|
773
|
-
},
|
|
774
|
-
Xt(e), t.toast || (e.keydownHandler = (o) =>
|
|
777
|
+
}, ss = (e, t, n) => {
|
|
778
|
+
Xt(e), t.toast || (e.keydownHandler = (o) => as(t, o, n), e.keydownTarget = t.keydownListenerCapture ? window : d(), e.keydownListenerCapture = t.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
775
779
|
capture: e.keydownListenerCapture
|
|
776
780
|
}), e.keydownHandlerAdded = !0);
|
|
777
|
-
},
|
|
781
|
+
}, Ie = (e, t) => {
|
|
778
782
|
var n;
|
|
779
783
|
const o = qe();
|
|
780
784
|
if (o.length) {
|
|
@@ -782,9 +786,9 @@ const Yr = (e) => {
|
|
|
782
786
|
return;
|
|
783
787
|
}
|
|
784
788
|
(n = d()) === null || n === void 0 || n.focus();
|
|
785
|
-
}, Zt = ["ArrowRight", "ArrowDown"],
|
|
786
|
-
e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ?
|
|
787
|
-
},
|
|
789
|
+
}, Zt = ["ArrowRight", "ArrowDown"], is = ["ArrowLeft", "ArrowUp"], as = (e, t, n) => {
|
|
790
|
+
e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? ls(t, e) : t.key === "Tab" ? cs(t) : [...Zt, ...is].includes(t.key) ? ds(t.key) : t.key === "Escape" && us(t, e, n)));
|
|
791
|
+
}, ls = (e, t) => {
|
|
788
792
|
if (!he(t.allowEnterKey))
|
|
789
793
|
return;
|
|
790
794
|
const n = ve(d(), t.input);
|
|
@@ -793,7 +797,7 @@ const Yr = (e) => {
|
|
|
793
797
|
return;
|
|
794
798
|
Kt(), e.preventDefault();
|
|
795
799
|
}
|
|
796
|
-
},
|
|
800
|
+
}, cs = (e) => {
|
|
797
801
|
const t = e.target, n = qe();
|
|
798
802
|
let o = -1;
|
|
799
803
|
for (let r = 0; r < n.length; r++)
|
|
@@ -801,8 +805,8 @@ const Yr = (e) => {
|
|
|
801
805
|
o = r;
|
|
802
806
|
break;
|
|
803
807
|
}
|
|
804
|
-
e.shiftKey ?
|
|
805
|
-
},
|
|
808
|
+
e.shiftKey ? Ie(o, -1) : Ie(o, 1), e.stopPropagation(), e.preventDefault();
|
|
809
|
+
}, ds = (e) => {
|
|
806
810
|
const t = ee(), n = P(), o = F(), r = U();
|
|
807
811
|
if (!t || !n || !o || !r)
|
|
808
812
|
return;
|
|
@@ -820,14 +824,14 @@ const Yr = (e) => {
|
|
|
820
824
|
}
|
|
821
825
|
c instanceof HTMLButtonElement && c.focus();
|
|
822
826
|
}
|
|
823
|
-
},
|
|
827
|
+
}, us = (e, t, n) => {
|
|
824
828
|
he(t.allowEscapeKey) && (e.preventDefault(), n(Y.esc));
|
|
825
829
|
};
|
|
826
830
|
var R = {
|
|
827
831
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
828
832
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
829
833
|
};
|
|
830
|
-
const
|
|
834
|
+
const ws = () => {
|
|
831
835
|
const e = v();
|
|
832
836
|
Array.from(document.body.children).forEach((n) => {
|
|
833
837
|
n.contains(e) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
|
|
@@ -836,56 +840,56 @@ const us = () => {
|
|
|
836
840
|
Array.from(document.body.children).forEach((t) => {
|
|
837
841
|
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");
|
|
838
842
|
});
|
|
839
|
-
}, Jt = typeof window < "u" && !!window.GestureEvent,
|
|
843
|
+
}, Jt = typeof window < "u" && !!window.GestureEvent, fs = () => {
|
|
840
844
|
if (Jt && !$(document.body, s.iosfix)) {
|
|
841
845
|
const e = document.body.scrollTop;
|
|
842
|
-
document.body.style.top = `${e * -1}px`, u(document.body, s.iosfix),
|
|
846
|
+
document.body.style.top = `${e * -1}px`, u(document.body, s.iosfix), ms();
|
|
843
847
|
}
|
|
844
|
-
},
|
|
848
|
+
}, ms = () => {
|
|
845
849
|
const e = v();
|
|
846
850
|
if (!e)
|
|
847
851
|
return;
|
|
848
852
|
let t;
|
|
849
853
|
e.ontouchstart = (n) => {
|
|
850
|
-
t =
|
|
854
|
+
t = gs(n);
|
|
851
855
|
}, e.ontouchmove = (n) => {
|
|
852
856
|
t && (n.preventDefault(), n.stopPropagation());
|
|
853
857
|
};
|
|
854
|
-
},
|
|
858
|
+
}, gs = (e) => {
|
|
855
859
|
const t = e.target, n = v(), o = Fe();
|
|
856
|
-
return !n || !o ||
|
|
860
|
+
return !n || !o || hs(e) || ps(e) ? !1 : t === n || !ut(n) && t instanceof HTMLElement && t.tagName !== "INPUT" && // #1603
|
|
857
861
|
t.tagName !== "TEXTAREA" && // #2266
|
|
858
862
|
!(ut(o) && // #1944
|
|
859
863
|
o.contains(t));
|
|
860
|
-
},
|
|
864
|
+
}, hs = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", ps = (e) => e.touches && e.touches.length > 1, bs = () => {
|
|
861
865
|
if ($(document.body, s.iosfix)) {
|
|
862
866
|
const e = parseInt(document.body.style.top, 10);
|
|
863
867
|
T(document.body, s.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
|
|
864
868
|
}
|
|
865
|
-
},
|
|
869
|
+
}, ys = () => {
|
|
866
870
|
const e = document.createElement("div");
|
|
867
871
|
e.className = s["scrollbar-measure"], document.body.appendChild(e);
|
|
868
872
|
const t = e.getBoundingClientRect().width - e.clientWidth;
|
|
869
873
|
return document.body.removeChild(e), t;
|
|
870
874
|
};
|
|
871
875
|
let V = null;
|
|
872
|
-
const
|
|
873
|
-
V === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (V = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${V +
|
|
874
|
-
},
|
|
876
|
+
const vs = (e) => {
|
|
877
|
+
V === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (V = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${V + ys()}px`);
|
|
878
|
+
}, ks = () => {
|
|
875
879
|
V !== null && (document.body.style.paddingRight = `${V}px`, V = null);
|
|
876
880
|
};
|
|
877
881
|
function Qt(e, t, n, o) {
|
|
878
|
-
ye() ? gt(e, o) : (
|
|
882
|
+
ye() ? gt(e, o) : (ir(n).then(() => gt(e, o)), Xt(a)), Jt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Re() && (ks(), bs(), Gt()), xs();
|
|
879
883
|
}
|
|
880
|
-
function
|
|
884
|
+
function xs() {
|
|
881
885
|
T([document.documentElement, document.body], [s.shown, s["height-auto"], s["no-backdrop"], s["toast-shown"]]);
|
|
882
886
|
}
|
|
883
887
|
function S(e) {
|
|
884
|
-
e =
|
|
885
|
-
const t = R.swalPromiseResolve.get(this), n =
|
|
888
|
+
e = As(e);
|
|
889
|
+
const t = R.swalPromiseResolve.get(this), n = Cs(this);
|
|
886
890
|
this.isAwaitingPromise ? e.isDismissed || (oe(this), t(e)) : n && t(e);
|
|
887
891
|
}
|
|
888
|
-
const
|
|
892
|
+
const Cs = (e) => {
|
|
889
893
|
const t = d();
|
|
890
894
|
if (!t)
|
|
891
895
|
return !1;
|
|
@@ -894,7 +898,7 @@ const xs = (e) => {
|
|
|
894
898
|
return !1;
|
|
895
899
|
T(t, n.showClass.popup), u(t, n.hideClass.popup);
|
|
896
900
|
const o = v();
|
|
897
|
-
return T(o, n.showClass.backdrop), u(o, n.hideClass.backdrop),
|
|
901
|
+
return T(o, n.showClass.backdrop), u(o, n.hideClass.backdrop), Ts(e, t, n), !0;
|
|
898
902
|
};
|
|
899
903
|
function en(e) {
|
|
900
904
|
const t = R.swalPromiseReject.get(this);
|
|
@@ -902,7 +906,7 @@ function en(e) {
|
|
|
902
906
|
}
|
|
903
907
|
const oe = (e) => {
|
|
904
908
|
e.isAwaitingPromise && (delete e.isAwaitingPromise, w.innerParams.get(e) || e._destroy());
|
|
905
|
-
},
|
|
909
|
+
}, As = (e) => typeof e > "u" ? {
|
|
906
910
|
isConfirmed: !1,
|
|
907
911
|
isDenied: !1,
|
|
908
912
|
isDismissed: !0
|
|
@@ -910,11 +914,11 @@ const oe = (e) => {
|
|
|
910
914
|
isConfirmed: !1,
|
|
911
915
|
isDenied: !1,
|
|
912
916
|
isDismissed: !1
|
|
913
|
-
}, e),
|
|
917
|
+
}, e), Ts = (e, t, n) => {
|
|
914
918
|
var o;
|
|
915
919
|
const r = v(), i = zt(t);
|
|
916
|
-
typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), i ?
|
|
917
|
-
},
|
|
920
|
+
typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), i ? Es(e, t, r, n.returnFocus, n.didClose) : Qt(e, r, n.returnFocus, n.didClose);
|
|
921
|
+
}, Es = (e, t, n, o, r) => {
|
|
918
922
|
a.swalCloseEventFinishedCallback = Qt.bind(null, e, n, o, r);
|
|
919
923
|
const i = function(l) {
|
|
920
924
|
if (l.target === t) {
|
|
@@ -933,45 +937,45 @@ const oe = (e) => {
|
|
|
933
937
|
if (t || new ge(), t = d(), !t)
|
|
934
938
|
return;
|
|
935
939
|
const n = _();
|
|
936
|
-
ye() ? b(W()) :
|
|
937
|
-
},
|
|
940
|
+
ye() ? b(W()) : Ps(t, e), p(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
|
|
941
|
+
}, Ps = (e, t) => {
|
|
938
942
|
const n = ee(), o = _();
|
|
939
943
|
!n || !o || (!t && k(P()) && (t = P()), p(n), t && (b(t), o.setAttribute("data-button-to-replace", t.className), n.insertBefore(o, t)), u([e, n], s.loading));
|
|
940
|
-
}, Ps = (e, t) => {
|
|
941
|
-
t.input === "select" || t.input === "radio" ? Ls(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (He(t.inputValue) || De(t.inputValue)) && (N(P()), Is(e, t));
|
|
942
944
|
}, $s = (e, t) => {
|
|
945
|
+
t.input === "select" || t.input === "radio" ? Ls(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (De(t.inputValue) || He(t.inputValue)) && (N(P()), Os(e, t));
|
|
946
|
+
}, Bs = (e, t) => {
|
|
943
947
|
const n = e.getInput();
|
|
944
948
|
if (!n)
|
|
945
949
|
return null;
|
|
946
950
|
switch (t.input) {
|
|
947
951
|
case "checkbox":
|
|
948
|
-
return Bs(n);
|
|
949
|
-
case "radio":
|
|
950
952
|
return Ss(n);
|
|
951
|
-
case "
|
|
953
|
+
case "radio":
|
|
952
954
|
return js(n);
|
|
955
|
+
case "file":
|
|
956
|
+
return Is(n);
|
|
953
957
|
default:
|
|
954
958
|
return t.inputAutoTrim ? n.value.trim() : n.value;
|
|
955
959
|
}
|
|
956
|
-
},
|
|
960
|
+
}, Ss = (e) => e.checked ? 1 : 0, js = (e) => e.checked ? e.value : null, Is = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, Ls = (e, t) => {
|
|
957
961
|
const n = d();
|
|
958
962
|
if (!n)
|
|
959
963
|
return;
|
|
960
964
|
const o = (r) => {
|
|
961
|
-
t.input === "select" ?
|
|
965
|
+
t.input === "select" ? Ms(n, ue(r), t) : t.input === "radio" && Ds(n, ue(r), t);
|
|
962
966
|
};
|
|
963
|
-
|
|
967
|
+
De(t.inputOptions) || He(t.inputOptions) ? (N(P()), J(t.inputOptions).then((r) => {
|
|
964
968
|
e.hideLoading(), o(r);
|
|
965
|
-
})) : typeof t.inputOptions == "object" ? o(t.inputOptions) :
|
|
966
|
-
},
|
|
969
|
+
})) : typeof t.inputOptions == "object" ? o(t.inputOptions) : H(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
|
|
970
|
+
}, Os = (e, t) => {
|
|
967
971
|
const n = e.getInput();
|
|
968
972
|
n && (b(n), J(t.inputValue).then((o) => {
|
|
969
973
|
n.value = t.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, p(n), n.focus(), e.hideLoading();
|
|
970
974
|
}).catch((o) => {
|
|
971
|
-
|
|
975
|
+
H(`Error in inputValue promise: ${o}`), n.value = "", p(n), n.focus(), e.hideLoading();
|
|
972
976
|
}));
|
|
973
977
|
};
|
|
974
|
-
function
|
|
978
|
+
function Ms(e, t, n) {
|
|
975
979
|
const o = B(e, s.select);
|
|
976
980
|
if (!o)
|
|
977
981
|
return;
|
|
@@ -988,7 +992,7 @@ function Os(e, t, n) {
|
|
|
988
992
|
r(o, c, l);
|
|
989
993
|
}), o.focus();
|
|
990
994
|
}
|
|
991
|
-
function
|
|
995
|
+
function Ds(e, t, n) {
|
|
992
996
|
const o = B(e, s.radio);
|
|
993
997
|
if (!o)
|
|
994
998
|
return;
|
|
@@ -1013,20 +1017,20 @@ const ue = (e) => {
|
|
|
1013
1017
|
}, tn = (e, t) => !!t && t.toString() === e.toString(), Hs = (e) => {
|
|
1014
1018
|
const t = w.innerParams.get(e);
|
|
1015
1019
|
e.disableButtons(), t.input ? nn(e, "confirm") : Xe(e, !0);
|
|
1016
|
-
},
|
|
1020
|
+
}, Fs = (e) => {
|
|
1017
1021
|
const t = w.innerParams.get(e);
|
|
1018
1022
|
e.disableButtons(), t.returnInputValueOnDeny ? nn(e, "deny") : Ke(e, !1);
|
|
1019
|
-
},
|
|
1023
|
+
}, zs = (e, t) => {
|
|
1020
1024
|
e.disableButtons(), t(Y.cancel);
|
|
1021
1025
|
}, nn = (e, t) => {
|
|
1022
1026
|
const n = w.innerParams.get(e);
|
|
1023
1027
|
if (!n.input) {
|
|
1024
|
-
|
|
1028
|
+
H(`The "input" parameter is needed to be set when using returnInputValueOn${Me(t)}`);
|
|
1025
1029
|
return;
|
|
1026
1030
|
}
|
|
1027
|
-
const o = e.getInput(), r =
|
|
1028
|
-
n.inputValidator ?
|
|
1029
|
-
},
|
|
1031
|
+
const o = e.getInput(), r = Bs(e, n);
|
|
1032
|
+
n.inputValidator ? Vs(e, r, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Ke(e, r) : Xe(e, r);
|
|
1033
|
+
}, Vs = (e, t, n) => {
|
|
1030
1034
|
const o = w.innerParams.get(e);
|
|
1031
1035
|
e.disableInput(), Promise.resolve().then(() => J(o.inputValidator(t, o.validationMessage))).then((i) => {
|
|
1032
1036
|
e.enableButtons(), e.enableInput(), i ? e.showValidationMessage(i) : n === "deny" ? Ke(e, t) : Xe(e, t);
|
|
@@ -1060,11 +1064,11 @@ function we() {
|
|
|
1060
1064
|
if (!e)
|
|
1061
1065
|
return;
|
|
1062
1066
|
const t = w.domCache.get(this);
|
|
1063
|
-
b(t.loader), ye() ? e.icon && p(W()) :
|
|
1067
|
+
b(t.loader), ye() ? e.icon && p(W()) : qs(t), T([t.popup, t.actions], s.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
|
|
1064
1068
|
}
|
|
1065
|
-
const
|
|
1069
|
+
const qs = (e) => {
|
|
1066
1070
|
const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
|
|
1067
|
-
t.length ? p(t[0], "inline-block") :
|
|
1071
|
+
t.length ? p(t[0], "inline-block") : gr() && b(e.actions);
|
|
1068
1072
|
};
|
|
1069
1073
|
function rn() {
|
|
1070
1074
|
const e = w.innerParams.get(this), t = w.domCache.get(this);
|
|
@@ -1102,7 +1106,7 @@ function wn(e) {
|
|
|
1102
1106
|
const t = w.domCache.get(this), n = w.innerParams.get(this);
|
|
1103
1107
|
A(t.validationMessage, e), t.validationMessage.className = s["validation-message"], n.customClass && n.customClass.validationMessage && u(t.validationMessage, n.customClass.validationMessage), p(t.validationMessage);
|
|
1104
1108
|
const o = this.getInput();
|
|
1105
|
-
o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", s["validation-message"]),
|
|
1109
|
+
o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", s["validation-message"]), Ht(o), u(o, s.inputerror));
|
|
1106
1110
|
}
|
|
1107
1111
|
function fn() {
|
|
1108
1112
|
const e = w.domCache.get(this);
|
|
@@ -1202,19 +1206,19 @@ const q = {
|
|
|
1202
1206
|
didClose: void 0,
|
|
1203
1207
|
didDestroy: void 0,
|
|
1204
1208
|
scrollbarPadding: !0
|
|
1205
|
-
},
|
|
1209
|
+
}, Rs = ["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"], Ns = {
|
|
1206
1210
|
allowEnterKey: void 0
|
|
1207
|
-
},
|
|
1211
|
+
}, Ws = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], mn = (e) => Object.prototype.hasOwnProperty.call(q, e), gn = (e) => Rs.indexOf(e) !== -1, hn = (e) => Ns[e], Us = (e) => {
|
|
1208
1212
|
mn(e) || y(`Unknown parameter "${e}"`);
|
|
1209
|
-
}, Us = (e) => {
|
|
1210
|
-
Ns.includes(e) && y(`The parameter "${e}" is incompatible with toasts`);
|
|
1211
1213
|
}, _s = (e) => {
|
|
1214
|
+
Ws.includes(e) && y(`The parameter "${e}" is incompatible with toasts`);
|
|
1215
|
+
}, Ys = (e) => {
|
|
1212
1216
|
const t = hn(e);
|
|
1213
|
-
t &&
|
|
1217
|
+
t && Lt(e, t);
|
|
1214
1218
|
}, pn = (e) => {
|
|
1215
1219
|
e.backdrop === !1 && e.allowOutsideClick && y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), e.theme && !["light", "dark", "auto", "borderless", "embed-iframe"].includes(e.theme) && y(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);
|
|
1216
1220
|
for (const t in e)
|
|
1217
|
-
|
|
1221
|
+
Us(t), e.toast && _s(t), Ys(t);
|
|
1218
1222
|
};
|
|
1219
1223
|
function bn(e) {
|
|
1220
1224
|
const t = v(), n = d(), o = w.innerParams.get(this);
|
|
@@ -1222,7 +1226,7 @@ function bn(e) {
|
|
|
1222
1226
|
y("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.");
|
|
1223
1227
|
return;
|
|
1224
1228
|
}
|
|
1225
|
-
const r =
|
|
1229
|
+
const r = Ks(e), i = Object.assign({}, o, r);
|
|
1226
1230
|
pn(i), t.dataset.swal2Theme = i.theme, Yt(this, i), w.innerParams.set(this, i), Object.defineProperties(this, {
|
|
1227
1231
|
params: {
|
|
1228
1232
|
value: Object.assign({}, this.params, e),
|
|
@@ -1231,7 +1235,7 @@ function bn(e) {
|
|
|
1231
1235
|
}
|
|
1232
1236
|
});
|
|
1233
1237
|
}
|
|
1234
|
-
const
|
|
1238
|
+
const Ks = (e) => {
|
|
1235
1239
|
const t = {};
|
|
1236
1240
|
return Object.keys(e).forEach((n) => {
|
|
1237
1241
|
gn(n) ? t[n] = e[n] : y(`Invalid parameter to update: ${n}`);
|
|
@@ -1243,9 +1247,9 @@ function yn() {
|
|
|
1243
1247
|
vn(this);
|
|
1244
1248
|
return;
|
|
1245
1249
|
}
|
|
1246
|
-
e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"),
|
|
1250
|
+
e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"), Xs(this);
|
|
1247
1251
|
}
|
|
1248
|
-
const
|
|
1252
|
+
const Xs = (e) => {
|
|
1249
1253
|
vn(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
|
|
1250
1254
|
}, vn = (e) => {
|
|
1251
1255
|
e.isAwaitingPromise ? (Ee(w, e), e.isAwaitingPromise = !0) : (Ee(R, e), Ee(w, 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);
|
|
@@ -1253,7 +1257,7 @@ const Ks = (e) => {
|
|
|
1253
1257
|
for (const n in e)
|
|
1254
1258
|
e[n].delete(t);
|
|
1255
1259
|
};
|
|
1256
|
-
var
|
|
1260
|
+
var Zs = /* @__PURE__ */ Object.freeze({
|
|
1257
1261
|
__proto__: null,
|
|
1258
1262
|
_destroy: yn,
|
|
1259
1263
|
close: S,
|
|
@@ -1273,29 +1277,29 @@ var Xs = /* @__PURE__ */ Object.freeze({
|
|
|
1273
1277
|
showValidationMessage: wn,
|
|
1274
1278
|
update: bn
|
|
1275
1279
|
});
|
|
1276
|
-
const
|
|
1277
|
-
e.toast ?
|
|
1278
|
-
},
|
|
1280
|
+
const Gs = (e, t, n) => {
|
|
1281
|
+
e.toast ? Js(e, t, n) : (ei(t), ti(t), ni(e, t, n));
|
|
1282
|
+
}, Js = (e, t, n) => {
|
|
1279
1283
|
t.popup.onclick = () => {
|
|
1280
|
-
e && (
|
|
1284
|
+
e && (Qs(e) || e.timer || e.input) || n(Y.close);
|
|
1281
1285
|
};
|
|
1282
|
-
},
|
|
1286
|
+
}, Qs = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
|
|
1283
1287
|
let fe = !1;
|
|
1284
|
-
const
|
|
1288
|
+
const ei = (e) => {
|
|
1285
1289
|
e.popup.onmousedown = () => {
|
|
1286
1290
|
e.container.onmouseup = function(t) {
|
|
1287
1291
|
e.container.onmouseup = () => {
|
|
1288
1292
|
}, t.target === e.container && (fe = !0);
|
|
1289
1293
|
};
|
|
1290
1294
|
};
|
|
1291
|
-
},
|
|
1295
|
+
}, ti = (e) => {
|
|
1292
1296
|
e.container.onmousedown = (t) => {
|
|
1293
1297
|
t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(n) {
|
|
1294
1298
|
e.popup.onmouseup = () => {
|
|
1295
1299
|
}, (n.target === e.popup || n.target instanceof HTMLElement && e.popup.contains(n.target)) && (fe = !0);
|
|
1296
1300
|
};
|
|
1297
1301
|
};
|
|
1298
|
-
},
|
|
1302
|
+
}, ni = (e, t, n) => {
|
|
1299
1303
|
t.container.onclick = (o) => {
|
|
1300
1304
|
if (fe) {
|
|
1301
1305
|
fe = !1;
|
|
@@ -1303,19 +1307,19 @@ const Qs = (e) => {
|
|
|
1303
1307
|
}
|
|
1304
1308
|
o.target === t.container && he(e.allowOutsideClick) && n(Y.backdrop);
|
|
1305
1309
|
};
|
|
1306
|
-
},
|
|
1310
|
+
}, oi = (e) => typeof e == "object" && e.jquery, pt = (e) => e instanceof Element || oi(e), ri = (e) => {
|
|
1307
1311
|
const t = {};
|
|
1308
1312
|
return typeof e[0] == "object" && !pt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1309
1313
|
const r = e[o];
|
|
1310
|
-
typeof r == "string" || pt(r) ? t[n] = r : r !== void 0 &&
|
|
1314
|
+
typeof r == "string" || pt(r) ? t[n] = r : r !== void 0 && H(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
|
|
1311
1315
|
}), t;
|
|
1312
1316
|
};
|
|
1313
|
-
function
|
|
1317
|
+
function si() {
|
|
1314
1318
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1315
1319
|
t[n] = arguments[n];
|
|
1316
1320
|
return new this(...t);
|
|
1317
1321
|
}
|
|
1318
|
-
function
|
|
1322
|
+
function ii(e) {
|
|
1319
1323
|
class t extends this {
|
|
1320
1324
|
_main(o, r) {
|
|
1321
1325
|
return super._main(o, Object.assign({}, e, r));
|
|
@@ -1323,42 +1327,42 @@ function si(e) {
|
|
|
1323
1327
|
}
|
|
1324
1328
|
return t;
|
|
1325
1329
|
}
|
|
1326
|
-
const
|
|
1330
|
+
const ai = () => a.timeout && a.timeout.getTimerLeft(), kn = () => {
|
|
1327
1331
|
if (a.timeout)
|
|
1328
|
-
return
|
|
1332
|
+
return hr(), a.timeout.stop();
|
|
1329
1333
|
}, xn = () => {
|
|
1330
1334
|
if (a.timeout) {
|
|
1331
1335
|
const e = a.timeout.start();
|
|
1332
1336
|
return We(e), e;
|
|
1333
1337
|
}
|
|
1334
|
-
},
|
|
1338
|
+
}, li = () => {
|
|
1335
1339
|
const e = a.timeout;
|
|
1336
1340
|
return e && (e.running ? kn() : xn());
|
|
1337
|
-
},
|
|
1341
|
+
}, ci = (e) => {
|
|
1338
1342
|
if (a.timeout) {
|
|
1339
1343
|
const t = a.timeout.increase(e);
|
|
1340
1344
|
return We(t, !0), t;
|
|
1341
1345
|
}
|
|
1342
|
-
},
|
|
1346
|
+
}, di = () => !!(a.timeout && a.timeout.isRunning());
|
|
1343
1347
|
let bt = !1;
|
|
1344
|
-
const
|
|
1345
|
-
function
|
|
1348
|
+
const Le = {};
|
|
1349
|
+
function ui() {
|
|
1346
1350
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
|
|
1347
|
-
|
|
1351
|
+
Le[e] = this, bt || (document.body.addEventListener("click", wi), bt = !0);
|
|
1348
1352
|
}
|
|
1349
|
-
const
|
|
1353
|
+
const wi = (e) => {
|
|
1350
1354
|
for (let t = e.target; t && t !== document; t = t.parentNode)
|
|
1351
|
-
for (const n in
|
|
1355
|
+
for (const n in Le) {
|
|
1352
1356
|
const o = t.getAttribute(n);
|
|
1353
1357
|
if (o) {
|
|
1354
|
-
|
|
1358
|
+
Le[n].fire({
|
|
1355
1359
|
template: o
|
|
1356
1360
|
});
|
|
1357
1361
|
return;
|
|
1358
1362
|
}
|
|
1359
1363
|
}
|
|
1360
1364
|
};
|
|
1361
|
-
class
|
|
1365
|
+
class fi {
|
|
1362
1366
|
constructor() {
|
|
1363
1367
|
this.events = {};
|
|
1364
1368
|
}
|
|
@@ -1429,27 +1433,27 @@ class wi {
|
|
|
1429
1433
|
this.events = {};
|
|
1430
1434
|
}
|
|
1431
1435
|
}
|
|
1432
|
-
a.eventEmitter = new
|
|
1433
|
-
const
|
|
1436
|
+
a.eventEmitter = new fi();
|
|
1437
|
+
const mi = (e, t) => {
|
|
1434
1438
|
a.eventEmitter.on(e, t);
|
|
1435
|
-
}, mi = (e, t) => {
|
|
1436
|
-
a.eventEmitter.once(e, t);
|
|
1437
1439
|
}, gi = (e, t) => {
|
|
1440
|
+
a.eventEmitter.once(e, t);
|
|
1441
|
+
}, hi = (e, t) => {
|
|
1438
1442
|
if (!e) {
|
|
1439
1443
|
a.eventEmitter.reset();
|
|
1440
1444
|
return;
|
|
1441
1445
|
}
|
|
1442
1446
|
t ? a.eventEmitter.removeListener(e, t) : a.eventEmitter.removeAllListeners(e);
|
|
1443
1447
|
};
|
|
1444
|
-
var
|
|
1448
|
+
var pi = /* @__PURE__ */ Object.freeze({
|
|
1445
1449
|
__proto__: null,
|
|
1446
|
-
argsToParams:
|
|
1447
|
-
bindClickHandler:
|
|
1448
|
-
clickCancel:
|
|
1450
|
+
argsToParams: ri,
|
|
1451
|
+
bindClickHandler: ui,
|
|
1452
|
+
clickCancel: rs,
|
|
1449
1453
|
clickConfirm: Kt,
|
|
1450
|
-
clickDeny:
|
|
1454
|
+
clickDeny: os,
|
|
1451
1455
|
enableLoading: N,
|
|
1452
|
-
fire:
|
|
1456
|
+
fire: si,
|
|
1453
1457
|
getActions: ee,
|
|
1454
1458
|
getCancelButton: U,
|
|
1455
1459
|
getCloseButton: Ve,
|
|
@@ -1457,36 +1461,36 @@ var hi = /* @__PURE__ */ Object.freeze({
|
|
|
1457
1461
|
getContainer: v,
|
|
1458
1462
|
getDenyButton: F,
|
|
1459
1463
|
getFocusableElements: qe,
|
|
1460
|
-
getFooter:
|
|
1464
|
+
getFooter: Dt,
|
|
1461
1465
|
getHtmlContainer: Fe,
|
|
1462
1466
|
getIcon: W,
|
|
1463
|
-
getIconContent:
|
|
1467
|
+
getIconContent: dr,
|
|
1464
1468
|
getImage: Mt,
|
|
1465
|
-
getInputLabel:
|
|
1469
|
+
getInputLabel: ur,
|
|
1466
1470
|
getLoader: _,
|
|
1467
1471
|
getPopup: d,
|
|
1468
1472
|
getProgressSteps: ze,
|
|
1469
|
-
getTimerLeft:
|
|
1473
|
+
getTimerLeft: ai,
|
|
1470
1474
|
getTimerProgressBar: be,
|
|
1471
1475
|
getTitle: Ot,
|
|
1472
1476
|
getValidationMessage: pe,
|
|
1473
|
-
increaseTimer:
|
|
1477
|
+
increaseTimer: ci,
|
|
1474
1478
|
isDeprecatedParameter: hn,
|
|
1475
|
-
isLoading:
|
|
1476
|
-
isTimerRunning:
|
|
1479
|
+
isLoading: fr,
|
|
1480
|
+
isTimerRunning: di,
|
|
1477
1481
|
isUpdatableParameter: gn,
|
|
1478
1482
|
isValidParameter: mn,
|
|
1479
|
-
isVisible:
|
|
1480
|
-
mixin:
|
|
1481
|
-
off:
|
|
1482
|
-
on:
|
|
1483
|
-
once:
|
|
1483
|
+
isVisible: ns,
|
|
1484
|
+
mixin: ii,
|
|
1485
|
+
off: hi,
|
|
1486
|
+
on: mi,
|
|
1487
|
+
once: gi,
|
|
1484
1488
|
resumeTimer: xn,
|
|
1485
1489
|
showLoading: N,
|
|
1486
1490
|
stopTimer: kn,
|
|
1487
|
-
toggleTimer:
|
|
1491
|
+
toggleTimer: li
|
|
1488
1492
|
});
|
|
1489
|
-
class
|
|
1493
|
+
class bi {
|
|
1490
1494
|
/**
|
|
1491
1495
|
* @param {Function} callback
|
|
1492
1496
|
* @param {number} delay
|
|
@@ -1527,7 +1531,7 @@ class pi {
|
|
|
1527
1531
|
return this.running;
|
|
1528
1532
|
}
|
|
1529
1533
|
}
|
|
1530
|
-
const Cn = ["swal-title", "swal-html", "swal-footer"],
|
|
1534
|
+
const Cn = ["swal-title", "swal-html", "swal-footer"], yi = (e) => {
|
|
1531
1535
|
const t = typeof e.template == "string" ? (
|
|
1532
1536
|
/** @type {HTMLTemplateElement} */
|
|
1533
1537
|
document.querySelector(e.template)
|
|
@@ -1535,8 +1539,8 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], bi = (e) => {
|
|
|
1535
1539
|
if (!t)
|
|
1536
1540
|
return {};
|
|
1537
1541
|
const n = t.content;
|
|
1538
|
-
return
|
|
1539
|
-
},
|
|
1542
|
+
return Pi(n), Object.assign(vi(n), ki(n), xi(n), Ci(n), Ai(n), Ti(n), Ei(n, Cn));
|
|
1543
|
+
}, vi = (e) => {
|
|
1540
1544
|
const t = {};
|
|
1541
1545
|
return Array.from(e.querySelectorAll("swal-param")).forEach((o) => {
|
|
1542
1546
|
M(o, ["name", "value"]);
|
|
@@ -1546,7 +1550,7 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], bi = (e) => {
|
|
|
1546
1550
|
), i = o.getAttribute("value");
|
|
1547
1551
|
!r || !i || (typeof q[r] == "boolean" ? t[r] = i !== "false" : typeof q[r] == "object" ? t[r] = JSON.parse(i) : t[r] = i);
|
|
1548
1552
|
}), t;
|
|
1549
|
-
},
|
|
1553
|
+
}, ki = (e) => {
|
|
1550
1554
|
const t = {};
|
|
1551
1555
|
return Array.from(e.querySelectorAll("swal-function-param")).forEach((o) => {
|
|
1552
1556
|
const r = (
|
|
@@ -1555,20 +1559,20 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], bi = (e) => {
|
|
|
1555
1559
|
), i = o.getAttribute("value");
|
|
1556
1560
|
!r || !i || (t[r] = new Function(`return ${i}`)());
|
|
1557
1561
|
}), t;
|
|
1558
|
-
},
|
|
1562
|
+
}, xi = (e) => {
|
|
1559
1563
|
const t = {};
|
|
1560
1564
|
return Array.from(e.querySelectorAll("swal-button")).forEach((o) => {
|
|
1561
1565
|
M(o, ["type", "color", "aria-label"]);
|
|
1562
1566
|
const r = o.getAttribute("type");
|
|
1563
1567
|
!r || !["confirm", "cancel", "deny"].includes(r) || (t[`${r}ButtonText`] = o.innerHTML, t[`show${Me(r)}Button`] = !0, o.hasAttribute("color") && (t[`${r}ButtonColor`] = o.getAttribute("color")), o.hasAttribute("aria-label") && (t[`${r}ButtonAriaLabel`] = o.getAttribute("aria-label")));
|
|
1564
1568
|
}), t;
|
|
1565
|
-
},
|
|
1569
|
+
}, Ci = (e) => {
|
|
1566
1570
|
const t = {}, n = e.querySelector("swal-image");
|
|
1567
1571
|
return n && (M(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;
|
|
1568
|
-
},
|
|
1572
|
+
}, Ai = (e) => {
|
|
1569
1573
|
const t = {}, n = e.querySelector("swal-icon");
|
|
1570
1574
|
return n && (M(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
|
|
1571
|
-
},
|
|
1575
|
+
}, Ti = (e) => {
|
|
1572
1576
|
const t = {}, n = e.querySelector("swal-input");
|
|
1573
1577
|
n && (M(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")));
|
|
1574
1578
|
const o = Array.from(e.querySelectorAll("swal-input-option"));
|
|
@@ -1580,14 +1584,14 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], bi = (e) => {
|
|
|
1580
1584
|
const l = r.innerHTML;
|
|
1581
1585
|
t.inputOptions[i] = l;
|
|
1582
1586
|
})), t;
|
|
1583
|
-
},
|
|
1587
|
+
}, Ei = (e, t) => {
|
|
1584
1588
|
const n = {};
|
|
1585
1589
|
for (const o in t) {
|
|
1586
1590
|
const r = t[o], i = e.querySelector(r);
|
|
1587
1591
|
i && (M(i, []), n[r.replace(/^swal-/, "")] = i.innerHTML.trim());
|
|
1588
1592
|
}
|
|
1589
1593
|
return n;
|
|
1590
|
-
},
|
|
1594
|
+
}, Pi = (e) => {
|
|
1591
1595
|
const t = Cn.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
|
|
1592
1596
|
Array.from(e.children).forEach((n) => {
|
|
1593
1597
|
const o = n.tagName.toLowerCase();
|
|
@@ -1597,26 +1601,26 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], bi = (e) => {
|
|
|
1597
1601
|
Array.from(e.attributes).forEach((n) => {
|
|
1598
1602
|
t.indexOf(n.name) === -1 && y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
|
|
1599
1603
|
});
|
|
1600
|
-
}, An = 10,
|
|
1604
|
+
}, An = 10, $i = (e) => {
|
|
1601
1605
|
const t = v(), n = d();
|
|
1602
1606
|
typeof e.willOpen == "function" && e.willOpen(n), a.eventEmitter.emit("willOpen", n);
|
|
1603
1607
|
const r = window.getComputedStyle(document.body).overflowY;
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
}, An), Re() && (
|
|
1608
|
+
ji(t, n, e), setTimeout(() => {
|
|
1609
|
+
Bi(t, n);
|
|
1610
|
+
}, An), Re() && (Si(t, e.scrollbarPadding, r), ws()), !ye() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), T(t, s["no-transition"]);
|
|
1607
1611
|
}, me = (e) => {
|
|
1608
1612
|
const t = d();
|
|
1609
1613
|
if (e.target !== t)
|
|
1610
1614
|
return;
|
|
1611
1615
|
const n = v();
|
|
1612
1616
|
t.removeEventListener("animationend", me), t.removeEventListener("transitionend", me), n.style.overflowY = "auto";
|
|
1613
|
-
},
|
|
1617
|
+
}, Bi = (e, t) => {
|
|
1614
1618
|
zt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", me), t.addEventListener("transitionend", me)) : e.style.overflowY = "auto";
|
|
1615
|
-
},
|
|
1616
|
-
|
|
1619
|
+
}, Si = (e, t, n) => {
|
|
1620
|
+
fs(), t && n !== "hidden" && vs(n), setTimeout(() => {
|
|
1617
1621
|
e.scrollTop = 0;
|
|
1618
1622
|
});
|
|
1619
|
-
},
|
|
1623
|
+
}, ji = (e, t, n) => {
|
|
1620
1624
|
u(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), p(t, "grid"), setTimeout(() => {
|
|
1621
1625
|
u(t, n.showClass.popup), t.style.removeProperty("opacity");
|
|
1622
1626
|
}, An)) : p(t, "grid"), u([document.documentElement, document.body], s.shown), n.heightAuto && n.backdrop && !n.toast && u([document.documentElement, document.body], s["height-auto"]);
|
|
@@ -1635,17 +1639,17 @@ var yt = {
|
|
|
1635
1639
|
*/
|
|
1636
1640
|
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")
|
|
1637
1641
|
};
|
|
1638
|
-
function
|
|
1642
|
+
function Ii(e) {
|
|
1639
1643
|
e.inputValidator || (e.input === "email" && (e.inputValidator = yt.email), e.input === "url" && (e.inputValidator = yt.url));
|
|
1640
1644
|
}
|
|
1641
1645
|
function Li(e) {
|
|
1642
1646
|
(!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (y('Target parameter is not valid, defaulting to "body"'), e.target = "body");
|
|
1643
1647
|
}
|
|
1644
|
-
function
|
|
1645
|
-
|
|
1648
|
+
function Oi(e) {
|
|
1649
|
+
Ii(e), e.showLoaderOnConfirm && !e.preConfirm && y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
1646
1650
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
1647
1651
|
https://sweetalert2.github.io/#ajax-request`), Li(e), typeof e.title == "string" && (e.title = e.title.split(`
|
|
1648
|
-
`).join("<br />")),
|
|
1652
|
+
`).join("<br />")), Ar(e);
|
|
1649
1653
|
}
|
|
1650
1654
|
let E;
|
|
1651
1655
|
var re = /* @__PURE__ */ new WeakMap();
|
|
@@ -1655,13 +1659,13 @@ class h {
|
|
|
1655
1659
|
* @this {SweetAlert}
|
|
1656
1660
|
*/
|
|
1657
1661
|
constructor() {
|
|
1658
|
-
if (
|
|
1662
|
+
if (nr(this, re, void 0), typeof window > "u")
|
|
1659
1663
|
return;
|
|
1660
1664
|
E = this;
|
|
1661
1665
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
1662
1666
|
n[o] = arguments[o];
|
|
1663
1667
|
const r = Object.freeze(this.constructor.argsToParams(n));
|
|
1664
|
-
this.params = r, this.isAwaitingPromise = !1,
|
|
1668
|
+
this.params = r, this.isAwaitingPromise = !1, or(re, this, this._main(E.params));
|
|
1665
1669
|
}
|
|
1666
1670
|
_main(t) {
|
|
1667
1671
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -1674,10 +1678,10 @@ class h {
|
|
|
1674
1678
|
}), Re() && Gt();
|
|
1675
1679
|
}
|
|
1676
1680
|
a.currentInstance = E;
|
|
1677
|
-
const o =
|
|
1678
|
-
|
|
1681
|
+
const o = Di(t, n);
|
|
1682
|
+
Oi(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
|
|
1679
1683
|
const r = Hi(E);
|
|
1680
|
-
return Yt(E, o), w.innerParams.set(E, o),
|
|
1684
|
+
return Yt(E, o), w.innerParams.set(E, o), Mi(E, r, o);
|
|
1681
1685
|
}
|
|
1682
1686
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1683
1687
|
then(t) {
|
|
@@ -1687,7 +1691,7 @@ class h {
|
|
|
1687
1691
|
return lt(re, this).finally(t);
|
|
1688
1692
|
}
|
|
1689
1693
|
}
|
|
1690
|
-
const
|
|
1694
|
+
const Mi = (e, t, n) => new Promise((o, r) => {
|
|
1691
1695
|
const i = (l) => {
|
|
1692
1696
|
e.close({
|
|
1693
1697
|
isDismissed: !0,
|
|
@@ -1697,16 +1701,16 @@ const Oi = (e, t, n) => new Promise((o, r) => {
|
|
|
1697
1701
|
R.swalPromiseResolve.set(e, o), R.swalPromiseReject.set(e, r), t.confirmButton.onclick = () => {
|
|
1698
1702
|
Hs(e);
|
|
1699
1703
|
}, t.denyButton.onclick = () => {
|
|
1700
|
-
|
|
1704
|
+
Fs(e);
|
|
1701
1705
|
}, t.cancelButton.onclick = () => {
|
|
1702
|
-
|
|
1706
|
+
zs(e, i);
|
|
1703
1707
|
}, t.closeButton.onclick = () => {
|
|
1704
1708
|
i(Y.close);
|
|
1705
|
-
},
|
|
1709
|
+
}, Gs(n, t, i), ss(a, n, i), $s(e, n), $i(n), Fi(a, n, i), zi(t, n), setTimeout(() => {
|
|
1706
1710
|
t.container.scrollTop = 0;
|
|
1707
1711
|
});
|
|
1708
|
-
}),
|
|
1709
|
-
const n =
|
|
1712
|
+
}), Di = (e, t) => {
|
|
1713
|
+
const n = yi(e), o = Object.assign({}, q, t, n, e);
|
|
1710
1714
|
return o.showClass = Object.assign({}, q.showClass, o.showClass), o.hideClass = Object.assign({}, q.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
|
|
1711
1715
|
backdrop: "swal2-noanimation"
|
|
1712
1716
|
}, o.hideClass = {}), o;
|
|
@@ -1724,28 +1728,28 @@ const Oi = (e, t, n) => new Promise((o, r) => {
|
|
|
1724
1728
|
progressSteps: ze()
|
|
1725
1729
|
};
|
|
1726
1730
|
return w.domCache.set(e, t), t;
|
|
1727
|
-
},
|
|
1731
|
+
}, Fi = (e, t, n) => {
|
|
1728
1732
|
const o = be();
|
|
1729
|
-
b(o), t.timer && (e.timeout = new
|
|
1733
|
+
b(o), t.timer && (e.timeout = new bi(() => {
|
|
1730
1734
|
n("timer"), delete e.timeout;
|
|
1731
1735
|
}, t.timer), t.timerProgressBar && (p(o), x(o, t, "timerProgressBar"), setTimeout(() => {
|
|
1732
1736
|
e.timeout && e.timeout.running && We(t.timer);
|
|
1733
1737
|
})));
|
|
1734
|
-
},
|
|
1738
|
+
}, zi = (e, t) => {
|
|
1735
1739
|
if (!t.toast) {
|
|
1736
1740
|
if (!he(t.allowEnterKey)) {
|
|
1737
|
-
|
|
1741
|
+
Lt("allowEnterKey"), Ri();
|
|
1738
1742
|
return;
|
|
1739
1743
|
}
|
|
1740
|
-
|
|
1744
|
+
Vi(e) || qi(e, t) || Ie(-1, 1);
|
|
1741
1745
|
}
|
|
1742
|
-
},
|
|
1746
|
+
}, Vi = (e) => {
|
|
1743
1747
|
const t = Array.from(e.popup.querySelectorAll("[autofocus]"));
|
|
1744
1748
|
for (const n of t)
|
|
1745
1749
|
if (n instanceof HTMLElement && k(n))
|
|
1746
1750
|
return n.focus(), !0;
|
|
1747
1751
|
return !1;
|
|
1748
|
-
},
|
|
1752
|
+
}, qi = (e, t) => t.focusDeny && k(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && k(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && k(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, Ri = () => {
|
|
1749
1753
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1750
1754
|
};
|
|
1751
1755
|
if (typeof window < "u" && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|by|xn--p1ai)$/)) {
|
|
@@ -1775,8 +1779,8 @@ h.prototype.closeToast = S;
|
|
|
1775
1779
|
h.prototype.rejectPromise = en;
|
|
1776
1780
|
h.prototype.update = bn;
|
|
1777
1781
|
h.prototype._destroy = yn;
|
|
1778
|
-
Object.assign(h,
|
|
1779
|
-
Object.keys(
|
|
1782
|
+
Object.assign(h, pi);
|
|
1783
|
+
Object.keys(Zs).forEach((e) => {
|
|
1780
1784
|
h[e] = function() {
|
|
1781
1785
|
return E && E[e] ? E[e](...arguments) : null;
|
|
1782
1786
|
};
|
|
@@ -1794,7 +1798,7 @@ typeof document < "u" && function(e, t) {
|
|
|
1794
1798
|
n.innerText = t;
|
|
1795
1799
|
}
|
|
1796
1800
|
}(document, ':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--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-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[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:var(--swal2-title-padding);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:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);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:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}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:var(--swal2-html-container-padding);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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.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}}');
|
|
1797
|
-
const
|
|
1801
|
+
const Zi = () => ({
|
|
1798
1802
|
confirm: async (t, n) => {
|
|
1799
1803
|
var r, i;
|
|
1800
1804
|
(await ge.fire({
|
|
@@ -1820,11 +1824,14 @@ const Yi = () => ({
|
|
|
1820
1824
|
}
|
|
1821
1825
|
});
|
|
1822
1826
|
export {
|
|
1823
|
-
|
|
1824
|
-
|
|
1827
|
+
Ui as defined,
|
|
1828
|
+
Yi as hexToRgb,
|
|
1825
1829
|
Bt as hexToRgba,
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
+
_i as hexToRgbaStyle,
|
|
1831
|
+
Ki as isIOS,
|
|
1832
|
+
Xi as isMobileDevice,
|
|
1833
|
+
er as isSmallScreen,
|
|
1834
|
+
Wi as key,
|
|
1835
|
+
Ni as numberToCssStyle,
|
|
1836
|
+
Zi as useConfirm
|
|
1830
1837
|
};
|