You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1922 lines
88 KiB
1922 lines
88 KiB
!(function (t, e) { |
|
"object" == typeof exports && "undefined" != typeof module |
|
? (module.exports = e()) |
|
: "function" == typeof define && define.amd |
|
? define(e) |
|
: (t.Sweetalert2 = e()); |
|
})(this, function () { |
|
"use strict"; |
|
function w(t) { |
|
return (w = |
|
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator |
|
? function (t) { |
|
return typeof t; |
|
} |
|
: function (t) { |
|
return t && |
|
"function" == typeof Symbol && |
|
t.constructor === Symbol && |
|
t !== Symbol.prototype |
|
? "symbol" |
|
: typeof t; |
|
})(t); |
|
} |
|
function a(t, e) { |
|
if (!(t instanceof e)) |
|
throw new TypeError("Cannot call a class as a function"); |
|
} |
|
function r(t, e) { |
|
for (var n = 0; n < e.length; n++) { |
|
var o = e[n]; |
|
(o.enumerable = o.enumerable || !1), |
|
(o.configurable = !0), |
|
"value" in o && (o.writable = !0), |
|
Object.defineProperty(t, o.key, o); |
|
} |
|
} |
|
function s() { |
|
return (s = |
|
Object.assign || |
|
function (t) { |
|
for (var e = 1; e < arguments.length; e++) { |
|
var n = arguments[e]; |
|
for (var o in n) |
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]); |
|
} |
|
return t; |
|
}).apply(this, arguments); |
|
} |
|
function c(t) { |
|
return (c = Object.setPrototypeOf |
|
? Object.getPrototypeOf |
|
: function (t) { |
|
return t.__proto__ || Object.getPrototypeOf(t); |
|
})(t); |
|
} |
|
function u(t, e) { |
|
return (u = |
|
Object.setPrototypeOf || |
|
function (t, e) { |
|
return (t.__proto__ = e), t; |
|
})(t, e); |
|
} |
|
function o(t, e, n) { |
|
return (o = (function () { |
|
if ("undefined" == typeof Reflect || !Reflect.construct) return !1; |
|
if (Reflect.construct.sham) return !1; |
|
if ("function" == typeof Proxy) return !0; |
|
try { |
|
return ( |
|
Date.prototype.toString.call( |
|
Reflect.construct(Date, [], function () {}) |
|
), |
|
!0 |
|
); |
|
} catch (t) { |
|
return !1; |
|
} |
|
})() |
|
? Reflect.construct |
|
: function (t, e, n) { |
|
var o = [null]; |
|
o.push.apply(o, e); |
|
var i = new (Function.bind.apply(t, o))(); |
|
return n && u(i, n.prototype), i; |
|
}).apply(null, arguments); |
|
} |
|
function l(t, e) { |
|
return !e || ("object" != typeof e && "function" != typeof e) |
|
? (function (t) { |
|
if (void 0 === t) |
|
throw new ReferenceError( |
|
"this hasn't been initialised - super() hasn't been called" |
|
); |
|
return t; |
|
})(t) |
|
: e; |
|
} |
|
function d(t, e, n) { |
|
return (d = |
|
"undefined" != typeof Reflect && Reflect.get |
|
? Reflect.get |
|
: function (t, e, n) { |
|
var o = (function (t, e) { |
|
for ( |
|
; |
|
!Object.prototype.hasOwnProperty.call(t, e) && |
|
null !== (t = c(t)); |
|
|
|
); |
|
return t; |
|
})(t, e); |
|
if (o) { |
|
var i = Object.getOwnPropertyDescriptor(o, e); |
|
return i.get ? i.get.call(n) : i.value; |
|
} |
|
})(t, e, n || t); |
|
} |
|
var e = "SweetAlert2:", |
|
i = function (e) { |
|
return Object.keys(e).map(function (t) { |
|
return e[t]; |
|
}); |
|
}, |
|
p = function (t) { |
|
return Array.prototype.slice.call(t); |
|
}, |
|
C = function (t) { |
|
console.warn("".concat(e, " ").concat(t)); |
|
}, |
|
k = function (t) { |
|
console.error("".concat(e, " ").concat(t)); |
|
}, |
|
f = [], |
|
n = function (t, e) { |
|
var n; |
|
(n = '"' |
|
.concat( |
|
t, |
|
'" is deprecated and will be removed in the next major release. Please use "' |
|
) |
|
.concat(e, '" instead.')), |
|
-1 === f.indexOf(n) && (f.push(n), C(n)); |
|
}, |
|
h = function (t) { |
|
return "function" == typeof t ? t() : t; |
|
}, |
|
B = function (t) { |
|
return t && Promise.resolve(t) === t; |
|
}, |
|
t = Object.freeze({ |
|
cancel: "cancel", |
|
backdrop: "backdrop", |
|
close: "close", |
|
esc: "esc", |
|
timer: "timer", |
|
}), |
|
m = function (t) { |
|
var e = {}; |
|
for (var n in t) e[t[n]] = "swal2-" + t[n]; |
|
return e; |
|
}, |
|
x = m([ |
|
"container", |
|
"shown", |
|
"height-auto", |
|
"iosfix", |
|
"popup", |
|
"modal", |
|
"no-backdrop", |
|
"toast", |
|
"toast-shown", |
|
"toast-column", |
|
"fade", |
|
"show", |
|
"hide", |
|
"noanimation", |
|
"close", |
|
"title", |
|
"header", |
|
"content", |
|
"actions", |
|
"confirm", |
|
"cancel", |
|
"footer", |
|
"icon", |
|
"image", |
|
"input", |
|
"file", |
|
"range", |
|
"select", |
|
"radio", |
|
"checkbox", |
|
"label", |
|
"textarea", |
|
"inputerror", |
|
"validation-message", |
|
"progress-steps", |
|
"active-progress-step", |
|
"progress-step", |
|
"progress-step-line", |
|
"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", |
|
]), |
|
g = m(["success", "warning", "info", "question", "error"]), |
|
v = { previousBodyPadding: null }, |
|
b = function (t, e) { |
|
return t.classList.contains(e); |
|
}, |
|
y = function (e, t, n) { |
|
p(e.classList).forEach(function (t) { |
|
-1 === i(x).indexOf(t) && |
|
-1 === i(g).indexOf(t) && |
|
e.classList.remove(t); |
|
}), |
|
t && t[n] && E(e, t[n]); |
|
}; |
|
function S(t, e) { |
|
if (!e) return null; |
|
switch (e) { |
|
case "select": |
|
case "textarea": |
|
case "file": |
|
return T(t, x[e]); |
|
case "checkbox": |
|
return t.querySelector(".".concat(x.checkbox, " input")); |
|
case "radio": |
|
return ( |
|
t.querySelector(".".concat(x.radio, " input:checked")) || |
|
t.querySelector(".".concat(x.radio, " input:first-child")) |
|
); |
|
case "range": |
|
return t.querySelector(".".concat(x.range, " input")); |
|
default: |
|
return T(t, x.input); |
|
} |
|
} |
|
var A, |
|
P = function (t) { |
|
if ((t.focus(), "file" !== t.type)) { |
|
var e = t.value; |
|
(t.value = ""), (t.value = e); |
|
} |
|
}, |
|
L = function (t, e, n) { |
|
t && |
|
e && |
|
("string" == typeof e && (e = e.split(/\s+/).filter(Boolean)), |
|
e.forEach(function (e) { |
|
t.forEach |
|
? t.forEach(function (t) { |
|
n ? t.classList.add(e) : t.classList.remove(e); |
|
}) |
|
: n |
|
? t.classList.add(e) |
|
: t.classList.remove(e); |
|
})); |
|
}, |
|
E = function (t, e) { |
|
L(t, e, !0); |
|
}, |
|
O = function (t, e) { |
|
L(t, e, !1); |
|
}, |
|
T = function (t, e) { |
|
for (var n = 0; n < t.childNodes.length; n++) |
|
if (b(t.childNodes[n], e)) return t.childNodes[n]; |
|
}, |
|
M = function (t, e, n) { |
|
n || 0 === parseInt(n) |
|
? (t.style[e] = "number" == typeof n ? n + "px" : n) |
|
: t.style.removeProperty(e); |
|
}, |
|
V = function (t) { |
|
var e = |
|
1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "flex"; |
|
(t.style.opacity = ""), (t.style.display = e); |
|
}, |
|
q = function (t) { |
|
(t.style.opacity = ""), (t.style.display = "none"); |
|
}, |
|
j = function (t, e, n) { |
|
e ? V(t, n) : q(t); |
|
}, |
|
H = function (t) { |
|
return !( |
|
!t || !(t.offsetWidth || t.offsetHeight || t.getClientRects().length) |
|
); |
|
}, |
|
I = function () { |
|
return document.body.querySelector("." + x.container); |
|
}, |
|
R = function (t) { |
|
var e = I(); |
|
return e ? e.querySelector(t) : null; |
|
}, |
|
N = function (t) { |
|
return R("." + t); |
|
}, |
|
D = function () { |
|
return N(x.popup); |
|
}, |
|
U = function () { |
|
var t = D(); |
|
return p(t.querySelectorAll("." + x.icon)); |
|
}, |
|
_ = function () { |
|
return N(x.title); |
|
}, |
|
z = function () { |
|
return N(x.content); |
|
}, |
|
W = function () { |
|
return N(x.image); |
|
}, |
|
K = function () { |
|
return N(x["progress-steps"]); |
|
}, |
|
F = function () { |
|
return N(x["validation-message"]); |
|
}, |
|
Z = function () { |
|
return R("." + x.actions + " ." + x.confirm); |
|
}, |
|
Q = function () { |
|
return R("." + x.actions + " ." + x.cancel); |
|
}, |
|
Y = function () { |
|
return N(x.actions); |
|
}, |
|
$ = function () { |
|
return N(x.header); |
|
}, |
|
J = function () { |
|
return N(x.footer); |
|
}, |
|
X = function () { |
|
return N(x.close); |
|
}, |
|
G = function () { |
|
var t = p( |
|
D().querySelectorAll( |
|
'[tabindex]:not([tabindex="-1"]):not([tabindex="0"])' |
|
) |
|
).sort(function (t, e) { |
|
return ( |
|
(t = parseInt(t.getAttribute("tabindex"))), |
|
(e = parseInt(e.getAttribute("tabindex"))) < t ? 1 : t < e ? -1 : 0 |
|
); |
|
}), |
|
e = p( |
|
D().querySelectorAll( |
|
'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]' |
|
) |
|
).filter(function (t) { |
|
return "-1" !== t.getAttribute("tabindex"); |
|
}); |
|
return (function (t) { |
|
for (var e = [], n = 0; n < t.length; n++) |
|
-1 === e.indexOf(t[n]) && e.push(t[n]); |
|
return e; |
|
})(t.concat(e)).filter(function (t) { |
|
return H(t); |
|
}); |
|
}, |
|
tt = function () { |
|
return !et() && !document.body.classList.contains(x["no-backdrop"]); |
|
}, |
|
et = function () { |
|
return document.body.classList.contains(x["toast-shown"]); |
|
}, |
|
nt = function () { |
|
return "undefined" == typeof window || "undefined" == typeof document; |
|
}, |
|
ot = '\n <div aria-labelledby="' |
|
.concat(x.title, '" aria-describedby="') |
|
.concat(x.content, '" class="') |
|
.concat(x.popup, '" tabindex="-1">\n <div class="') |
|
.concat(x.header, '">\n <ul class="') |
|
.concat(x["progress-steps"], '"></ul>\n <div class="') |
|
.concat(x.icon, " ") |
|
.concat( |
|
g.error, |
|
'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="' |
|
) |
|
.concat(x.icon, " ") |
|
.concat(g.question, '"></div>\n <div class="') |
|
.concat(x.icon, " ") |
|
.concat(g.warning, '"></div>\n <div class="') |
|
.concat(x.icon, " ") |
|
.concat(g.info, '"></div>\n <div class="') |
|
.concat(x.icon, " ") |
|
.concat( |
|
g.success, |
|
'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="' |
|
) |
|
.concat(x.image, '" />\n <h2 class="') |
|
.concat(x.title, '" id="') |
|
.concat(x.title, '"></h2>\n <button type="button" class="') |
|
.concat(x.close, '">×</button>\n </div>\n <div class="') |
|
.concat(x.content, '">\n <div id="') |
|
.concat(x.content, '"></div>\n <input class="') |
|
.concat(x.input, '" />\n <input type="file" class="') |
|
.concat(x.file, '" />\n <div class="') |
|
.concat( |
|
x.range, |
|
'">\n <input type="range" />\n <output></output>\n </div>\n <select class="' |
|
) |
|
.concat(x.select, '"></select>\n <div class="') |
|
.concat(x.radio, '"></div>\n <label for="') |
|
.concat(x.checkbox, '" class="') |
|
.concat( |
|
x.checkbox, |
|
'">\n <input type="checkbox" />\n <span class="' |
|
) |
|
.concat(x.label, '"></span>\n </label>\n <textarea class="') |
|
.concat(x.textarea, '"></textarea>\n <div class="') |
|
.concat(x["validation-message"], '" id="') |
|
.concat(x["validation-message"], '"></div>\n </div>\n <div class="') |
|
.concat(x.actions, '">\n <button type="button" class="') |
|
.concat(x.confirm, '">OK</button>\n <button type="button" class="') |
|
.concat(x.cancel, '">Cancel</button>\n </div>\n <div class="') |
|
.concat(x.footer, '">\n </div>\n </div>\n') |
|
.replace(/(^|\n)\s*/g, ""), |
|
it = function (t) { |
|
Ut.isVisible() && A !== t.target.value && Ut.resetValidationMessage(), |
|
(A = t.target.value); |
|
}, |
|
rt = function (t) { |
|
var e; |
|
if ( |
|
((e = I()) && |
|
(e.parentNode.removeChild(e), |
|
O( |
|
[document.documentElement, document.body], |
|
[x["no-backdrop"], x["toast-shown"], x["has-column"]] |
|
)), |
|
nt()) |
|
) |
|
k("SweetAlert2 requires document to initialize"); |
|
else { |
|
var n = document.createElement("div"); |
|
(n.className = x.container), (n.innerHTML = ot); |
|
var o, |
|
i, |
|
r, |
|
a, |
|
s, |
|
c, |
|
u, |
|
l, |
|
d, |
|
p, |
|
f, |
|
m, |
|
g = "string" == typeof (o = t.target) ? document.querySelector(o) : o; |
|
g.appendChild(n), |
|
(i = t), |
|
(r = D()).setAttribute("role", i.toast ? "alert" : "dialog"), |
|
r.setAttribute("aria-live", i.toast ? "polite" : "assertive"), |
|
i.toast || r.setAttribute("aria-modal", "true"), |
|
(a = g), |
|
"rtl" === window.getComputedStyle(a).direction && E(I(), x.rtl), |
|
(s = z()), |
|
(c = T(s, x.input)), |
|
(u = T(s, x.file)), |
|
(l = s.querySelector(".".concat(x.range, " input"))), |
|
(d = s.querySelector(".".concat(x.range, " output"))), |
|
(p = T(s, x.select)), |
|
(f = s.querySelector(".".concat(x.checkbox, " input"))), |
|
(m = T(s, x.textarea)), |
|
(c.oninput = it), |
|
(u.onchange = it), |
|
(p.onchange = it), |
|
(f.onchange = it), |
|
(m.oninput = it), |
|
(l.oninput = function (t) { |
|
it(t), (d.value = l.value); |
|
}), |
|
(l.onchange = function (t) { |
|
it(t), (l.nextSibling.value = l.value); |
|
}); |
|
} |
|
}, |
|
at = function (t, e) { |
|
t instanceof HTMLElement |
|
? e.appendChild(t) |
|
: "object" === w(t) |
|
? st(e, t) |
|
: t && (e.innerHTML = t); |
|
}, |
|
st = function (t, e) { |
|
if (((t.innerHTML = ""), 0 in e)) |
|
for (var n = 0; n in e; n++) t.appendChild(e[n].cloneNode(!0)); |
|
else t.appendChild(e.cloneNode(!0)); |
|
}, |
|
ct = (function () { |
|
if (nt()) return !1; |
|
var t = document.createElement("div"), |
|
e = { |
|
WebkitAnimation: "webkitAnimationEnd", |
|
OAnimation: "oAnimationEnd oanimationend", |
|
animation: "animationend", |
|
}; |
|
for (var n in e) |
|
if (e.hasOwnProperty(n) && void 0 !== t.style[n]) return e[n]; |
|
return !1; |
|
})(), |
|
ut = function (t) { |
|
var e = z().querySelector("#" + x.content); |
|
t.html |
|
? (at(t.html, e), V(e, "block")) |
|
: t.text |
|
? ((e.textContent = t.text), V(e, "block")) |
|
: q(e), |
|
(function (e) { |
|
for ( |
|
var t, |
|
n = z(), |
|
o = [ |
|
"input", |
|
"file", |
|
"range", |
|
"select", |
|
"radio", |
|
"checkbox", |
|
"textarea", |
|
], |
|
i = function (t) { |
|
(t.placeholder && !e.inputPlaceholder) || |
|
(t.placeholder = e.inputPlaceholder); |
|
}, |
|
r = 0; |
|
r < o.length; |
|
r++ |
|
) { |
|
var a = x[o[r]], |
|
s = T(n, a); |
|
if ((t = S(n, o[r]))) { |
|
for (var c in t.attributes) |
|
if (t.attributes.hasOwnProperty(c)) { |
|
var u = t.attributes[c].name; |
|
"type" !== u && "value" !== u && t.removeAttribute(u); |
|
} |
|
for (var l in e.inputAttributes) |
|
("range" === o[r] && "placeholder" === l) || |
|
t.setAttribute(l, e.inputAttributes[l]); |
|
} |
|
(s.className = a), |
|
e.inputClass && E(s, e.inputClass), |
|
e.customClass && E(s, e.customClass.input), |
|
q(s); |
|
} |
|
switch (e.input) { |
|
case "text": |
|
case "email": |
|
case "password": |
|
case "number": |
|
case "tel": |
|
case "url": |
|
(t = T(n, x.input)), |
|
"string" == typeof e.inputValue || |
|
"number" == typeof e.inputValue |
|
? (t.value = e.inputValue) |
|
: B(e.inputValue) || |
|
C( |
|
'Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat( |
|
w(e.inputValue), |
|
'"' |
|
) |
|
), |
|
i(t), |
|
(t.type = e.input), |
|
V(t); |
|
break; |
|
case "file": |
|
i((t = T(n, x.file))), (t.type = e.input), V(t); |
|
break; |
|
case "range": |
|
var d = T(n, x.range), |
|
p = d.querySelector("input"), |
|
f = d.querySelector("output"); |
|
(p.value = e.inputValue), |
|
(p.type = e.input), |
|
(f.value = e.inputValue), |
|
V(d); |
|
break; |
|
case "select": |
|
var m = T(n, x.select); |
|
if (((m.innerHTML = ""), e.inputPlaceholder)) { |
|
var g = document.createElement("option"); |
|
(g.innerHTML = e.inputPlaceholder), |
|
(g.value = ""), |
|
(g.disabled = !0), |
|
(g.selected = !0), |
|
m.appendChild(g); |
|
} |
|
V(m); |
|
break; |
|
case "radio": |
|
var h = T(n, x.radio); |
|
(h.innerHTML = ""), V(h); |
|
break; |
|
case "checkbox": |
|
var v = T(n, x.checkbox), |
|
b = S(n, "checkbox"); |
|
(b.type = "checkbox"), |
|
(b.value = 1), |
|
(b.id = x.checkbox), |
|
(b.checked = Boolean(e.inputValue)), |
|
(v.querySelector("span").innerHTML = e.inputPlaceholder), |
|
V(v); |
|
break; |
|
case "textarea": |
|
var y = T(n, x.textarea); |
|
(y.value = e.inputValue), i(y), V(y); |
|
break; |
|
case null: |
|
break; |
|
default: |
|
k( |
|
'Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat( |
|
e.input, |
|
'"' |
|
) |
|
); |
|
} |
|
})(t), |
|
y(z(), t.customClass, "content"); |
|
}, |
|
lt = function () { |
|
for (var t = U(), e = 0; e < t.length; e++) q(t[e]); |
|
}, |
|
dt = function () { |
|
for ( |
|
var t = D(), |
|
e = window.getComputedStyle(t).getPropertyValue("background-color"), |
|
n = t.querySelectorAll( |
|
"[class^=swal2-success-circular-line], .swal2-success-fix" |
|
), |
|
o = 0; |
|
o < n.length; |
|
o++ |
|
) |
|
n[o].style.backgroundColor = e; |
|
}, |
|
pt = function (i) { |
|
var r = K(), |
|
a = parseInt( |
|
null === i.currentProgressStep |
|
? Ut.getQueueStep() |
|
: i.currentProgressStep, |
|
10 |
|
); |
|
i.progressSteps && i.progressSteps.length |
|
? (V(r), |
|
(r.innerHTML = ""), |
|
a >= i.progressSteps.length && |
|
C( |
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)" |
|
), |
|
i.progressSteps.forEach(function (t, e) { |
|
var n = document.createElement("li"); |
|
if ( |
|
(E(n, x["progress-step"]), |
|
(n.innerHTML = t), |
|
e === a && E(n, x["active-progress-step"]), |
|
r.appendChild(n), |
|
e !== i.progressSteps.length - 1) |
|
) { |
|
var o = document.createElement("li"); |
|
E(o, x["progress-step-line"]), |
|
i.progressStepsDistance && |
|
(o.style.width = i.progressStepsDistance), |
|
r.appendChild(o); |
|
} |
|
})) |
|
: q(r); |
|
}, |
|
ft = function (t) { |
|
var e, |
|
n, |
|
o, |
|
i, |
|
r = $(); |
|
y(r, t.customClass, "header"), |
|
pt(t), |
|
(function (t) { |
|
if ((lt(), t.type)) |
|
if ((dt(), -1 !== Object.keys(g).indexOf(t.type))) { |
|
var e = D().querySelector( |
|
".".concat(x.icon, ".").concat(g[t.type]) |
|
); |
|
V(e), |
|
y(e, t.customClass, "icon"), |
|
t.animation && E(e, "swal2-animate-".concat(t.type, "-icon")); |
|
} else |
|
k( |
|
'Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat( |
|
t.type, |
|
'"' |
|
) |
|
); |
|
})(t), |
|
(function (t) { |
|
var e = W(); |
|
if (!t.imageUrl) return q(e); |
|
V(e), |
|
e.setAttribute("src", t.imageUrl), |
|
e.setAttribute("alt", t.imageAlt), |
|
M(e, "width", t.imageWidth), |
|
M(e, "height", t.imageHeight), |
|
(e.className = x.image), |
|
y(e, t.customClass, "image"), |
|
t.imageClass && E(e, t.imageClass); |
|
})(t), |
|
(e = t), |
|
(n = _()), |
|
j(n, e.title || e.titleText), |
|
e.title && at(e.title, n), |
|
e.titleText && (n.innerText = e.titleText), |
|
y(n, e.customClass, "title"), |
|
(o = t), |
|
(i = X()), |
|
y(i, o.customClass, "closeButton"), |
|
j(i, o.showCloseButton), |
|
i.setAttribute("aria-label", o.closeButtonAriaLabel); |
|
}, |
|
mt = function (t) { |
|
var e, n, o, i; |
|
(e = t), |
|
(n = D()), |
|
M(n, "width", e.width), |
|
M(n, "padding", e.padding), |
|
e.background && (n.style.background = e.background), |
|
(n.className = x.popup), |
|
e.toast |
|
? (E([document.documentElement, document.body], x["toast-shown"]), |
|
E(n, x.toast)) |
|
: E(n, x.modal), |
|
y(n, e.customClass, "popup"), |
|
"string" == typeof e.customClass && E(n, e.customClass), |
|
e.animation ? O(n, x.noanimation) : E(n, x.noanimation), |
|
(function (t) { |
|
var e = I(); |
|
if (e) { |
|
if ( |
|
("string" == typeof t.backdrop |
|
? (e.style.background = t.backdrop) |
|
: t.backdrop || |
|
E( |
|
[document.documentElement, document.body], |
|
x["no-backdrop"] |
|
), |
|
!t.backdrop && |
|
t.allowOutsideClick && |
|
C( |
|
'"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`' |
|
), |
|
t.position in x |
|
? E(e, x[t.position]) |
|
: (C( |
|
'The "position" parameter is not valid, defaulting to "center"' |
|
), |
|
E(e, x.center)), |
|
t.grow && "string" == typeof t.grow) |
|
) { |
|
var n = "grow-" + t.grow; |
|
n in x && E(e, x[n]); |
|
} |
|
y(e, t.customClass, "container"), |
|
t.customContainerClass && E(e, t.customContainerClass); |
|
} |
|
})(t), |
|
ft(t), |
|
ut(t), |
|
(function (t) { |
|
var e = Y(), |
|
n = Z(), |
|
o = Q(); |
|
if ( |
|
(t.showConfirmButton || t.showCancelButton ? V(e) : q(e), |
|
y(e, t.customClass, "actions"), |
|
j(n, t.showConfirmButton, "inline-block"), |
|
j(o, t.showCancelButton, "inline-block"), |
|
(n.innerHTML = t.confirmButtonText), |
|
(o.innerHTML = t.cancelButtonText), |
|
n.setAttribute("aria-label", t.confirmButtonAriaLabel), |
|
o.setAttribute("aria-label", t.cancelButtonAriaLabel), |
|
(n.className = x.confirm), |
|
E(n, t.confirmButtonClass), |
|
t.customClass && E(n, t.customClass.confirmButton), |
|
(o.className = x.cancel), |
|
E(o, t.cancelButtonClass), |
|
t.customClass && E(o, t.customClass.cancelButton), |
|
t.buttonsStyling) |
|
) { |
|
E([n, o], x.styled), |
|
t.confirmButtonColor && |
|
(n.style.backgroundColor = t.confirmButtonColor), |
|
t.cancelButtonColor && |
|
(o.style.backgroundColor = t.cancelButtonColor); |
|
var i = window |
|
.getComputedStyle(n) |
|
.getPropertyValue("background-color"); |
|
(n.style.borderLeftColor = i), (n.style.borderRightColor = i); |
|
} else |
|
O([n, o], x.styled), |
|
(n.style.backgroundColor = |
|
n.style.borderLeftColor = |
|
n.style.borderRightColor = |
|
""), |
|
(o.style.backgroundColor = |
|
o.style.borderLeftColor = |
|
o.style.borderRightColor = |
|
""); |
|
})(t), |
|
(o = t), |
|
(i = J()), |
|
j(i, o.footer), |
|
o.footer && at(o.footer, i), |
|
y(i, o.customClass, "footer"); |
|
}; |
|
var gt = [], |
|
ht = function () { |
|
var t = D(); |
|
t || Ut.fire(""), (t = D()); |
|
var e = Y(), |
|
n = Z(), |
|
o = Q(); |
|
V(e), |
|
V(n), |
|
E([t, e], x.loading), |
|
(n.disabled = !0), |
|
(o.disabled = !0), |
|
t.setAttribute("data-loading", !0), |
|
t.setAttribute("aria-busy", !0), |
|
t.focus(); |
|
}, |
|
vt = {}, |
|
bt = { |
|
title: "", |
|
titleText: "", |
|
text: "", |
|
html: "", |
|
footer: "", |
|
type: null, |
|
toast: !1, |
|
customClass: "", |
|
customContainerClass: "", |
|
target: "body", |
|
backdrop: !0, |
|
animation: !0, |
|
heightAuto: !0, |
|
allowOutsideClick: !0, |
|
allowEscapeKey: !0, |
|
allowEnterKey: !0, |
|
stopKeydownPropagation: !0, |
|
keydownListenerCapture: !1, |
|
showConfirmButton: !0, |
|
showCancelButton: !1, |
|
preConfirm: null, |
|
confirmButtonText: "OK", |
|
confirmButtonAriaLabel: "", |
|
confirmButtonColor: null, |
|
confirmButtonClass: "", |
|
cancelButtonText: "Cancel", |
|
cancelButtonAriaLabel: "", |
|
cancelButtonColor: null, |
|
cancelButtonClass: "", |
|
buttonsStyling: !0, |
|
reverseButtons: !1, |
|
focusConfirm: !0, |
|
focusCancel: !1, |
|
showCloseButton: !1, |
|
closeButtonAriaLabel: "Close this dialog", |
|
showLoaderOnConfirm: !1, |
|
imageUrl: null, |
|
imageWidth: null, |
|
imageHeight: null, |
|
imageAlt: "", |
|
imageClass: "", |
|
timer: null, |
|
width: null, |
|
padding: null, |
|
background: null, |
|
input: null, |
|
inputPlaceholder: "", |
|
inputValue: "", |
|
inputOptions: {}, |
|
inputAutoTrim: !0, |
|
inputClass: "", |
|
inputAttributes: {}, |
|
inputValidator: null, |
|
validationMessage: null, |
|
grow: !1, |
|
position: "center", |
|
progressSteps: [], |
|
currentProgressStep: null, |
|
progressStepsDistance: null, |
|
onBeforeOpen: null, |
|
onAfterClose: null, |
|
onOpen: null, |
|
onClose: null, |
|
scrollbarPadding: !0, |
|
}, |
|
yt = { |
|
customContainerClass: "customClass", |
|
confirmButtonClass: "customClass", |
|
cancelButtonClass: "customClass", |
|
imageClass: "customClass", |
|
inputClass: "customClass", |
|
}, |
|
wt = [ |
|
"allowOutsideClick", |
|
"allowEnterKey", |
|
"backdrop", |
|
"focusConfirm", |
|
"focusCancel", |
|
"heightAuto", |
|
"keydownListenerCapture", |
|
], |
|
Ct = function (t) { |
|
return bt.hasOwnProperty(t); |
|
}, |
|
kt = function (t) { |
|
return yt[t]; |
|
}, |
|
Bt = Object.freeze({ |
|
isValidParameter: Ct, |
|
isUpdatableParameter: function (t) { |
|
return ( |
|
-1 !== |
|
[ |
|
"customClass", |
|
"title", |
|
"titleText", |
|
"text", |
|
"html", |
|
"type", |
|
"showConfirmButton", |
|
"showCancelButton", |
|
"confirmButtonText", |
|
"confirmButtonAriaLabel", |
|
"confirmButtonColor", |
|
"confirmButtonClass", |
|
"cancelButtonText", |
|
"cancelButtonAriaLabel", |
|
"cancelButtonColor", |
|
"cancelButtonClass", |
|
"buttonsStyling", |
|
"reverseButtons", |
|
"imageUrl", |
|
"imageWidth", |
|
"imageHeigth", |
|
"imageAlt", |
|
"imageClass", |
|
"progressSteps", |
|
"currentProgressStep", |
|
].indexOf(t) |
|
); |
|
}, |
|
isDeprecatedParameter: kt, |
|
argsToParams: function (n) { |
|
var o = {}; |
|
switch (w(n[0])) { |
|
case "object": |
|
s(o, n[0]); |
|
break; |
|
default: |
|
["title", "html", "type"].forEach(function (t, e) { |
|
switch (w(n[e])) { |
|
case "string": |
|
o[t] = n[e]; |
|
break; |
|
case "undefined": |
|
break; |
|
default: |
|
k( |
|
"Unexpected type of " |
|
.concat(t, '! Expected "string", got ') |
|
.concat(w(n[e])) |
|
); |
|
} |
|
}); |
|
} |
|
return o; |
|
}, |
|
isVisible: function () { |
|
return H(D()); |
|
}, |
|
clickConfirm: function () { |
|
return Z() && Z().click(); |
|
}, |
|
clickCancel: function () { |
|
return Q() && Q().click(); |
|
}, |
|
getContainer: I, |
|
getPopup: D, |
|
getTitle: _, |
|
getContent: z, |
|
getImage: W, |
|
getIcon: function () { |
|
var t = U().filter(function (t) { |
|
return H(t); |
|
}); |
|
return t.length ? t[0] : null; |
|
}, |
|
getIcons: U, |
|
getCloseButton: X, |
|
getActions: Y, |
|
getConfirmButton: Z, |
|
getCancelButton: Q, |
|
getHeader: $, |
|
getFooter: J, |
|
getFocusableElements: G, |
|
getValidationMessage: F, |
|
isLoading: function () { |
|
return D().hasAttribute("data-loading"); |
|
}, |
|
fire: function () { |
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) |
|
e[n] = arguments[n]; |
|
return o(this, e); |
|
}, |
|
mixin: function (i) { |
|
return (function (t) { |
|
function e() { |
|
return a(this, e), l(this, c(e).apply(this, arguments)); |
|
} |
|
var n, o; |
|
return ( |
|
(function (t, e) { |
|
if ("function" != typeof e && null !== e) |
|
throw new TypeError( |
|
"Super expression must either be null or a function" |
|
); |
|
(t.prototype = Object.create(e && e.prototype, { |
|
constructor: { value: t, writable: !0, configurable: !0 }, |
|
})), |
|
e && u(t, e); |
|
})(e, t), |
|
r((n = e).prototype, [ |
|
{ |
|
key: "_main", |
|
value: function (t) { |
|
return d(c(e.prototype), "_main", this).call( |
|
this, |
|
s({}, i, t) |
|
); |
|
}, |
|
}, |
|
]), |
|
o && r(n, o), |
|
e |
|
); |
|
})(this); |
|
}, |
|
queue: function (t) { |
|
var r = this; |
|
gt = t; |
|
var a = function (t, e) { |
|
(gt = []), |
|
document.body.removeAttribute("data-swal2-queue-step"), |
|
t(e); |
|
}, |
|
s = []; |
|
return new Promise(function (i) { |
|
!(function e(n, o) { |
|
n < gt.length |
|
? (document.body.setAttribute("data-swal2-queue-step", n), |
|
r.fire(gt[n]).then(function (t) { |
|
void 0 !== t.value |
|
? (s.push(t.value), e(n + 1, o)) |
|
: a(i, { dismiss: t.dismiss }); |
|
})) |
|
: a(i, { value: s }); |
|
})(0); |
|
}); |
|
}, |
|
getQueueStep: function () { |
|
return document.body.getAttribute("data-swal2-queue-step"); |
|
}, |
|
insertQueueStep: function (t, e) { |
|
return e && e < gt.length ? gt.splice(e, 0, t) : gt.push(t); |
|
}, |
|
deleteQueueStep: function (t) { |
|
void 0 !== gt[t] && gt.splice(t, 1); |
|
}, |
|
showLoading: ht, |
|
enableLoading: ht, |
|
getTimerLeft: function () { |
|
return vt.timeout && vt.timeout.getTimerLeft(); |
|
}, |
|
stopTimer: function () { |
|
return vt.timeout && vt.timeout.stop(); |
|
}, |
|
resumeTimer: function () { |
|
return vt.timeout && vt.timeout.start(); |
|
}, |
|
toggleTimer: function () { |
|
var t = vt.timeout; |
|
return t && (t.running ? t.stop() : t.start()); |
|
}, |
|
increaseTimer: function (t) { |
|
return vt.timeout && vt.timeout.increase(t); |
|
}, |
|
isTimerRunning: function () { |
|
return vt.timeout && vt.timeout.isRunning(); |
|
}, |
|
}), |
|
xt = { |
|
promise: new WeakMap(), |
|
innerParams: new WeakMap(), |
|
domCache: new WeakMap(), |
|
}; |
|
function St() { |
|
var t = xt.innerParams.get(this), |
|
e = xt.domCache.get(this); |
|
t.showConfirmButton || |
|
(q(e.confirmButton), t.showCancelButton || q(e.actions)), |
|
O([e.popup, e.actions], x.loading), |
|
e.popup.removeAttribute("aria-busy"), |
|
e.popup.removeAttribute("data-loading"), |
|
(e.confirmButton.disabled = !1), |
|
(e.cancelButton.disabled = !1); |
|
} |
|
var At = function () { |
|
null === v.previousBodyPadding && |
|
document.body.scrollHeight > window.innerHeight && |
|
((v.previousBodyPadding = parseInt( |
|
window |
|
.getComputedStyle(document.body) |
|
.getPropertyValue("padding-right") |
|
)), |
|
(document.body.style.paddingRight = |
|
v.previousBodyPadding + |
|
(function () { |
|
if ("ontouchstart" in window || navigator.msMaxTouchPoints) |
|
return 0; |
|
var t = document.createElement("div"); |
|
(t.style.width = "50px"), |
|
(t.style.height = "50px"), |
|
(t.style.overflow = "scroll"), |
|
document.body.appendChild(t); |
|
var e = t.offsetWidth - t.clientWidth; |
|
return document.body.removeChild(t), e; |
|
})() + |
|
"px")); |
|
}, |
|
Pt = function () { |
|
return !!window.MSInputMethodContext && !!document.documentMode; |
|
}, |
|
Lt = function () { |
|
var t = I(), |
|
e = D(); |
|
t.style.removeProperty("align-items"), |
|
e.offsetTop < 0 && (t.style.alignItems = "flex-start"); |
|
}, |
|
Et = { swalPromiseResolve: new WeakMap() }; |
|
function Ot(t) { |
|
var e = I(), |
|
n = D(), |
|
o = xt.innerParams.get(this), |
|
i = Et.swalPromiseResolve.get(this), |
|
r = o.onClose, |
|
a = o.onAfterClose; |
|
if (n) { |
|
null !== r && "function" == typeof r && r(n), O(n, x.show), E(n, x.hide); |
|
var s = function () { |
|
et() |
|
? Tt(a) |
|
: (new Promise(function (t) { |
|
var e = window.scrollX, |
|
n = window.scrollY; |
|
(vt.restoreFocusTimeout = setTimeout(function () { |
|
vt.previousActiveElement && vt.previousActiveElement.focus |
|
? (vt.previousActiveElement.focus(), |
|
(vt.previousActiveElement = null)) |
|
: document.body && document.body.focus(), |
|
t(); |
|
}, 100)), |
|
void 0 !== e && void 0 !== n && window.scrollTo(e, n); |
|
}).then(function () { |
|
return Tt(a); |
|
}), |
|
vt.keydownTarget.removeEventListener("keydown", vt.keydownHandler, { |
|
capture: vt.keydownListenerCapture, |
|
}), |
|
(vt.keydownHandlerAdded = !1)), |
|
e.parentNode && e.parentNode.removeChild(e), |
|
O( |
|
[document.documentElement, document.body], |
|
[ |
|
x.shown, |
|
x["height-auto"], |
|
x["no-backdrop"], |
|
x["toast-shown"], |
|
x["toast-column"], |
|
] |
|
), |
|
tt() && |
|
(null !== v.previousBodyPadding && |
|
((document.body.style.paddingRight = |
|
v.previousBodyPadding + "px"), |
|
(v.previousBodyPadding = null)), |
|
(function () { |
|
if (b(document.body, x.iosfix)) { |
|
var t = parseInt(document.body.style.top, 10); |
|
O(document.body, x.iosfix), |
|
(document.body.style.top = ""), |
|
(document.body.scrollTop = -1 * t); |
|
} |
|
})(), |
|
"undefined" != typeof window && |
|
Pt() && |
|
window.removeEventListener("resize", Lt), |
|
p(document.body.children).forEach(function (t) { |
|
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"); |
|
})); |
|
}; |
|
ct && !b(n, x.noanimation) |
|
? n.addEventListener(ct, function t() { |
|
n.removeEventListener(ct, t), b(n, x.hide) && s(); |
|
}) |
|
: s(), |
|
i(t || {}); |
|
} |
|
} |
|
var Tt = function (t) { |
|
null !== t && |
|
"function" == typeof t && |
|
setTimeout(function () { |
|
t(); |
|
}); |
|
}; |
|
function Mt(t, e, n) { |
|
var o = xt.domCache.get(t); |
|
e.forEach(function (t) { |
|
o[t].disabled = n; |
|
}); |
|
} |
|
function Vt(t, e) { |
|
if (!t) return !1; |
|
if ("radio" === t.type) |
|
for ( |
|
var n = t.parentNode.parentNode.querySelectorAll("input"), o = 0; |
|
o < n.length; |
|
o++ |
|
) |
|
n[o].disabled = e; |
|
else t.disabled = e; |
|
} |
|
var qt = function t(e, n) { |
|
a(this, t); |
|
var o, |
|
i, |
|
r = n; |
|
(this.running = !1), |
|
(this.start = function () { |
|
return ( |
|
this.running || |
|
((this.running = !0), (i = new Date()), (o = setTimeout(e, r))), |
|
r |
|
); |
|
}), |
|
(this.stop = function () { |
|
return ( |
|
this.running && |
|
((this.running = !1), clearTimeout(o), (r -= new Date() - i)), |
|
r |
|
); |
|
}), |
|
(this.increase = function (t) { |
|
var e = this.running; |
|
return e && this.stop(), (r += t), e && this.start(), r; |
|
}), |
|
(this.getTimerLeft = function () { |
|
return this.running && (this.stop(), this.start()), r; |
|
}), |
|
(this.isRunning = function () { |
|
return this.running; |
|
}), |
|
this.start(); |
|
}, |
|
jt = { |
|
email: function (t, e) { |
|
return /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t) |
|
? Promise.resolve() |
|
: Promise.resolve(e || "Invalid email address"); |
|
}, |
|
url: function (t, e) { |
|
return /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test( |
|
t |
|
) |
|
? Promise.resolve() |
|
: Promise.resolve(e || "Invalid URL"); |
|
}, |
|
}; |
|
var Ht = function (t) { |
|
var e = I(), |
|
n = D(); |
|
null !== t.onBeforeOpen && |
|
"function" == typeof t.onBeforeOpen && |
|
t.onBeforeOpen(n), |
|
t.animation ? (E(n, x.show), E(e, x.fade), O(n, x.hide)) : O(n, x.fade), |
|
V(n), |
|
(e.style.overflowY = "hidden"), |
|
ct && !b(n, x.noanimation) |
|
? n.addEventListener(ct, function t() { |
|
n.removeEventListener(ct, t), (e.style.overflowY = "auto"); |
|
}) |
|
: (e.style.overflowY = "auto"), |
|
E([document.documentElement, document.body, e], x.shown), |
|
t.heightAuto && |
|
t.backdrop && |
|
!t.toast && |
|
E([document.documentElement, document.body], x["height-auto"]), |
|
tt() && |
|
(t.scrollbarPadding && At(), |
|
(function () { |
|
if ( |
|
/iPad|iPhone|iPod/.test(navigator.userAgent) && |
|
!window.MSStream && |
|
!b(document.body, x.iosfix) |
|
) { |
|
var t = document.body.scrollTop; |
|
(document.body.style.top = -1 * t + "px"), |
|
E(document.body, x.iosfix); |
|
} |
|
})(), |
|
"undefined" != typeof window && |
|
Pt() && |
|
(Lt(), window.addEventListener("resize", Lt)), |
|
p(document.body.children).forEach(function (t) { |
|
t === I() || |
|
(function (t, e) { |
|
if ("function" == typeof t.contains) return t.contains(e); |
|
})(t, I()) || |
|
(t.hasAttribute("aria-hidden") && |
|
t.setAttribute( |
|
"data-previous-aria-hidden", |
|
t.getAttribute("aria-hidden") |
|
), |
|
t.setAttribute("aria-hidden", "true")); |
|
}), |
|
setTimeout(function () { |
|
e.scrollTop = 0; |
|
})), |
|
et() || |
|
vt.previousActiveElement || |
|
(vt.previousActiveElement = document.activeElement), |
|
null !== t.onOpen && |
|
"function" == typeof t.onOpen && |
|
setTimeout(function () { |
|
t.onOpen(n); |
|
}); |
|
}, |
|
It = { |
|
select: function (t, e, i) { |
|
var r = T(t, x.select); |
|
e.forEach(function (t) { |
|
var e = t[0], |
|
n = t[1], |
|
o = document.createElement("option"); |
|
(o.value = e), |
|
(o.innerHTML = n), |
|
i.inputValue.toString() === e.toString() && (o.selected = !0), |
|
r.appendChild(o); |
|
}), |
|
r.focus(); |
|
}, |
|
radio: function (t, e, a) { |
|
var s = T(t, x.radio); |
|
e.forEach(function (t) { |
|
var e = t[0], |
|
n = t[1], |
|
o = document.createElement("input"), |
|
i = document.createElement("label"); |
|
(o.type = "radio"), |
|
(o.name = x.radio), |
|
(o.value = e), |
|
a.inputValue.toString() === e.toString() && (o.checked = !0); |
|
var r = document.createElement("span"); |
|
(r.innerHTML = n), |
|
(r.className = x.label), |
|
i.appendChild(o), |
|
i.appendChild(r), |
|
s.appendChild(i); |
|
}); |
|
var n = s.querySelectorAll("input"); |
|
n.length && n[0].focus(); |
|
}, |
|
}; |
|
var Rt, |
|
Nt = Object.freeze({ |
|
hideLoading: St, |
|
disableLoading: St, |
|
getInput: function (t) { |
|
var e = xt.innerParams.get(t || this); |
|
return S(xt.domCache.get(t || this).content, e.input); |
|
}, |
|
close: Ot, |
|
closePopup: Ot, |
|
closeModal: Ot, |
|
closeToast: Ot, |
|
enableButtons: function () { |
|
Mt(this, ["confirmButton", "cancelButton"], !1); |
|
}, |
|
disableButtons: function () { |
|
Mt(this, ["confirmButton", "cancelButton"], !0); |
|
}, |
|
enableConfirmButton: function () { |
|
n( |
|
"Swal.disableConfirmButton()", |
|
"Swal.getConfirmButton().removeAttribute('disabled')" |
|
), |
|
Mt(this, ["confirmButton"], !1); |
|
}, |
|
disableConfirmButton: function () { |
|
n( |
|
"Swal.enableConfirmButton()", |
|
"Swal.getConfirmButton().setAttribute('disabled', '')" |
|
), |
|
Mt(this, ["confirmButton"], !0); |
|
}, |
|
enableInput: function () { |
|
return Vt(this.getInput(), !1); |
|
}, |
|
disableInput: function () { |
|
return Vt(this.getInput(), !0); |
|
}, |
|
showValidationMessage: function (t) { |
|
var e = xt.domCache.get(this); |
|
e.validationMessage.innerHTML = t; |
|
var n = window.getComputedStyle(e.popup); |
|
(e.validationMessage.style.marginLeft = "-".concat( |
|
n.getPropertyValue("padding-left") |
|
)), |
|
(e.validationMessage.style.marginRight = "-".concat( |
|
n.getPropertyValue("padding-right") |
|
)), |
|
V(e.validationMessage); |
|
var o = this.getInput(); |
|
o && |
|
(o.setAttribute("aria-invalid", !0), |
|
o.setAttribute("aria-describedBy", x["validation-message"]), |
|
P(o), |
|
E(o, x.inputerror)); |
|
}, |
|
resetValidationMessage: function () { |
|
var t = xt.domCache.get(this); |
|
t.validationMessage && q(t.validationMessage); |
|
var e = this.getInput(); |
|
e && |
|
(e.removeAttribute("aria-invalid"), |
|
e.removeAttribute("aria-describedBy"), |
|
O(e, x.inputerror)); |
|
}, |
|
getProgressSteps: function () { |
|
return ( |
|
n( |
|
"Swal.getProgressSteps()", |
|
"const swalInstance = Swal.fire({progressSteps: ['1', '2', '3']}); const progressSteps = swalInstance.params.progressSteps" |
|
), |
|
xt.innerParams.get(this).progressSteps |
|
); |
|
}, |
|
setProgressSteps: function (t) { |
|
n("Swal.setProgressSteps()", "Swal.update()"); |
|
var e = s({}, xt.innerParams.get(this), { progressSteps: t }); |
|
xt.innerParams.set(this, e), pt(e); |
|
}, |
|
showProgressSteps: function () { |
|
var t = xt.domCache.get(this); |
|
V(t.progressSteps); |
|
}, |
|
hideProgressSteps: function () { |
|
var t = xt.domCache.get(this); |
|
q(t.progressSteps); |
|
}, |
|
_main: function (t) { |
|
var p = this; |
|
!(function (t) { |
|
for (var e in t) |
|
Ct(e) || C('Unknown parameter "'.concat(e, '"')), |
|
t.toast && |
|
-1 !== wt.indexOf(e) && |
|
C('The parameter "'.concat(e, '" is incompatible with toasts')), |
|
kt(e) && n(e, kt(e)); |
|
})(t); |
|
var f = s({}, bt, t); |
|
!(function (e) { |
|
e.inputValidator || |
|
Object.keys(jt).forEach(function (t) { |
|
e.input === t && (e.inputValidator = jt[t]); |
|
}), |
|
e.showLoaderOnConfirm && |
|
!e.preConfirm && |
|
C( |
|
"showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request" |
|
), |
|
(e.animation = h(e.animation)), |
|
(!e.target || |
|
("string" == typeof e.target && |
|
!document.querySelector(e.target)) || |
|
("string" != typeof e.target && !e.target.appendChild)) && |
|
(C('Target parameter is not valid, defaulting to "body"'), |
|
(e.target = "body")), |
|
"string" == typeof e.title && |
|
(e.title = e.title.split("\n").join("<br />")); |
|
var t = D(), |
|
n = |
|
"string" == typeof e.target |
|
? document.querySelector(e.target) |
|
: e.target; |
|
(!t || (t && n && t.parentNode !== n.parentNode)) && rt(e); |
|
})(f), |
|
Object.freeze(f), |
|
xt.innerParams.set(this, f), |
|
vt.timeout && (vt.timeout.stop(), delete vt.timeout), |
|
clearTimeout(vt.restoreFocusTimeout); |
|
var m = { |
|
popup: D(), |
|
container: I(), |
|
content: z(), |
|
actions: Y(), |
|
confirmButton: Z(), |
|
cancelButton: Q(), |
|
closeButton: X(), |
|
validationMessage: F(), |
|
progressSteps: K(), |
|
}; |
|
xt.domCache.set(this, m), mt(f); |
|
var g = this.constructor; |
|
return new Promise(function (t) { |
|
var n = function (t) { |
|
p.closePopup({ value: t }); |
|
}, |
|
s = function (t) { |
|
p.closePopup({ dismiss: t }); |
|
}; |
|
Et.swalPromiseResolve.set(p, t), |
|
f.timer && |
|
(vt.timeout = new qt(function () { |
|
s("timer"), delete vt.timeout; |
|
}, f.timer)), |
|
f.input && |
|
setTimeout(function () { |
|
var t = p.getInput(); |
|
t && P(t); |
|
}, 0); |
|
for ( |
|
var c = function (e) { |
|
f.showLoaderOnConfirm && g.showLoading(), |
|
f.preConfirm |
|
? (p.resetValidationMessage(), |
|
Promise.resolve() |
|
.then(function () { |
|
return f.preConfirm(e, f.validationMessage); |
|
}) |
|
.then(function (t) { |
|
H(m.validationMessage) || !1 === t |
|
? p.hideLoading() |
|
: n(void 0 === t ? e : t); |
|
})) |
|
: n(e); |
|
}, |
|
e = function (t) { |
|
var e = t.target, |
|
n = m.confirmButton, |
|
o = m.cancelButton, |
|
i = n && (n === e || n.contains(e)), |
|
r = o && (o === e || o.contains(e)); |
|
switch (t.type) { |
|
case "click": |
|
if (i) |
|
if ((p.disableButtons(), f.input)) { |
|
var a = (function () { |
|
var t = p.getInput(); |
|
if (!t) return null; |
|
switch (f.input) { |
|
case "checkbox": |
|
return t.checked ? 1 : 0; |
|
case "radio": |
|
return t.checked ? t.value : null; |
|
case "file": |
|
return t.files.length ? t.files[0] : null; |
|
default: |
|
return f.inputAutoTrim ? t.value.trim() : t.value; |
|
} |
|
})(); |
|
f.inputValidator |
|
? (p.disableInput(), |
|
Promise.resolve() |
|
.then(function () { |
|
return f.inputValidator(a, f.validationMessage); |
|
}) |
|
.then(function (t) { |
|
p.enableButtons(), |
|
p.enableInput(), |
|
t ? p.showValidationMessage(t) : c(a); |
|
})) |
|
: p.getInput().checkValidity() |
|
? c(a) |
|
: (p.enableButtons(), |
|
p.showValidationMessage(f.validationMessage)); |
|
} else c(!0); |
|
else r && (p.disableButtons(), s(g.DismissReason.cancel)); |
|
} |
|
}, |
|
o = m.popup.querySelectorAll("button"), |
|
i = 0; |
|
i < o.length; |
|
i++ |
|
) |
|
(o[i].onclick = e), |
|
(o[i].onmouseover = e), |
|
(o[i].onmouseout = e), |
|
(o[i].onmousedown = e); |
|
if ( |
|
((m.closeButton.onclick = function () { |
|
s(g.DismissReason.close); |
|
}), |
|
f.toast) |
|
) |
|
m.popup.onclick = function () { |
|
f.showConfirmButton || |
|
f.showCancelButton || |
|
f.showCloseButton || |
|
f.input || |
|
s(g.DismissReason.close); |
|
}; |
|
else { |
|
var r = !1; |
|
(m.popup.onmousedown = function () { |
|
m.container.onmouseup = function (t) { |
|
(m.container.onmouseup = void 0), |
|
t.target === m.container && (r = !0); |
|
}; |
|
}), |
|
(m.container.onmousedown = function () { |
|
m.popup.onmouseup = function (t) { |
|
(m.popup.onmouseup = void 0), |
|
(t.target === m.popup || m.popup.contains(t.target)) && |
|
(r = !0); |
|
}; |
|
}), |
|
(m.container.onclick = function (t) { |
|
r |
|
? (r = !1) |
|
: t.target === m.container && |
|
h(f.allowOutsideClick) && |
|
s(g.DismissReason.backdrop); |
|
}); |
|
} |
|
f.reverseButtons |
|
? m.confirmButton.parentNode.insertBefore( |
|
m.cancelButton, |
|
m.confirmButton |
|
) |
|
: m.confirmButton.parentNode.insertBefore( |
|
m.confirmButton, |
|
m.cancelButton |
|
); |
|
var a = function (t, e) { |
|
for (var n = G(f.focusCancel), o = 0; o < n.length; o++) |
|
return ( |
|
(t += e) === n.length |
|
? (t = 0) |
|
: -1 === t && (t = n.length - 1), |
|
n[t].focus() |
|
); |
|
m.popup.focus(); |
|
}; |
|
if ( |
|
(vt.keydownHandlerAdded && |
|
(vt.keydownTarget.removeEventListener( |
|
"keydown", |
|
vt.keydownHandler, |
|
{ capture: vt.keydownListenerCapture } |
|
), |
|
(vt.keydownHandlerAdded = !1)), |
|
f.toast || |
|
((vt.keydownHandler = function (t) { |
|
return (function (t, e) { |
|
if ( |
|
(e.stopKeydownPropagation && t.stopPropagation(), |
|
"Enter" !== t.key || t.isComposing) |
|
) |
|
if ("Tab" === t.key) { |
|
for ( |
|
var n = t.target, o = G(e.focusCancel), i = -1, r = 0; |
|
r < o.length; |
|
r++ |
|
) |
|
if (n === o[r]) { |
|
i = r; |
|
break; |
|
} |
|
t.shiftKey ? a(i, -1) : a(i, 1), |
|
t.stopPropagation(), |
|
t.preventDefault(); |
|
} else |
|
-1 !== |
|
[ |
|
"ArrowLeft", |
|
"ArrowRight", |
|
"ArrowUp", |
|
"ArrowDown", |
|
"Left", |
|
"Right", |
|
"Up", |
|
"Down", |
|
].indexOf(t.key) |
|
? document.activeElement === m.confirmButton && |
|
H(m.cancelButton) |
|
? m.cancelButton.focus() |
|
: document.activeElement === m.cancelButton && |
|
H(m.confirmButton) && |
|
m.confirmButton.focus() |
|
: ("Escape" !== t.key && "Esc" !== t.key) || |
|
!0 !== h(e.allowEscapeKey) || |
|
(t.preventDefault(), s(g.DismissReason.esc)); |
|
else if ( |
|
t.target && |
|
p.getInput() && |
|
t.target.outerHTML === p.getInput().outerHTML |
|
) { |
|
if (-1 !== ["textarea", "file"].indexOf(e.input)) return; |
|
g.clickConfirm(), t.preventDefault(); |
|
} |
|
})(t, f); |
|
}), |
|
(vt.keydownTarget = f.keydownListenerCapture ? window : m.popup), |
|
(vt.keydownListenerCapture = f.keydownListenerCapture), |
|
vt.keydownTarget.addEventListener("keydown", vt.keydownHandler, { |
|
capture: vt.keydownListenerCapture, |
|
}), |
|
(vt.keydownHandlerAdded = !0)), |
|
p.enableButtons(), |
|
p.hideLoading(), |
|
p.resetValidationMessage(), |
|
f.toast && (f.input || f.footer || f.showCloseButton) |
|
? E(document.body, x["toast-column"]) |
|
: O(document.body, x["toast-column"]), |
|
"select" === f.input || "radio" === f.input) |
|
) { |
|
var u = z(), |
|
l = function (t) { |
|
return It[f.input]( |
|
u, |
|
((e = t), |
|
(n = []), |
|
"undefined" != typeof Map && e instanceof Map |
|
? e.forEach(function (t, e) { |
|
n.push([e, t]); |
|
}) |
|
: Object.keys(e).forEach(function (t) { |
|
n.push([t, e[t]]); |
|
}), |
|
n), |
|
f |
|
); |
|
var e, n; |
|
}; |
|
B(f.inputOptions) |
|
? (g.showLoading(), |
|
f.inputOptions.then(function (t) { |
|
p.hideLoading(), l(t); |
|
})) |
|
: "object" === w(f.inputOptions) |
|
? l(f.inputOptions) |
|
: k( |
|
"Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat( |
|
w(f.inputOptions) |
|
) |
|
); |
|
} else if ( |
|
-1 !== |
|
["text", "email", "number", "tel", "textarea"].indexOf(f.input) && |
|
B(f.inputValue) |
|
) { |
|
var d = g.getInput(); |
|
g.showLoading(), |
|
q(d), |
|
f.inputValue |
|
.then(function (t) { |
|
(d.value = |
|
"number" === f.input ? parseFloat(t) || 0 : t + ""), |
|
V(d), |
|
d.focus(), |
|
p.hideLoading(); |
|
}) |
|
.catch(function (t) { |
|
k("Error in inputValue promise: " + t), |
|
(d.value = ""), |
|
V(d), |
|
d.focus(), |
|
p.hideLoading(); |
|
}); |
|
} |
|
Ht(f), |
|
f.toast || |
|
(h(f.allowEnterKey) |
|
? f.focusCancel && H(m.cancelButton) |
|
? m.cancelButton.focus() |
|
: f.focusConfirm && H(m.confirmButton) |
|
? m.confirmButton.focus() |
|
: a(-1, 1) |
|
: document.activeElement && |
|
"function" == typeof document.activeElement.blur && |
|
document.activeElement.blur()), |
|
(m.container.scrollTop = 0); |
|
}); |
|
}, |
|
update: function (e) { |
|
var n = {}; |
|
Object.keys(e).forEach(function (t) { |
|
Ut.isUpdatableParameter(t) |
|
? (n[t] = e[t]) |
|
: C( |
|
'Invalid parameter to update: "'.concat( |
|
t, |
|
'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js' |
|
) |
|
); |
|
}); |
|
var t = s({}, xt.innerParams.get(this), n); |
|
mt(t), |
|
xt.innerParams.set(this, t), |
|
Object.defineProperties(this, { |
|
params: { |
|
value: s({}, this.params, e), |
|
writable: !1, |
|
enumerable: !0, |
|
}, |
|
}); |
|
}, |
|
}); |
|
function Dt() { |
|
if ("undefined" != typeof window) { |
|
"undefined" == typeof Promise && |
|
k( |
|
"This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)" |
|
), |
|
(Rt = this); |
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) |
|
e[n] = arguments[n]; |
|
var o = Object.freeze(this.constructor.argsToParams(e)); |
|
Object.defineProperties(this, { |
|
params: { value: o, writable: !1, enumerable: !0, configurable: !0 }, |
|
}); |
|
var i = this._main(this.params); |
|
xt.promise.set(this, i); |
|
} |
|
} |
|
(Dt.prototype.then = function (t) { |
|
return xt.promise.get(this).then(t); |
|
}), |
|
(Dt.prototype.finally = function (t) { |
|
return xt.promise.get(this).finally(t); |
|
}), |
|
s(Dt.prototype, Nt), |
|
s(Dt, Bt), |
|
Object.keys(Nt).forEach(function (e) { |
|
Dt[e] = function () { |
|
var t; |
|
if (Rt) return (t = Rt)[e].apply(t, arguments); |
|
}; |
|
}), |
|
(Dt.DismissReason = t), |
|
(Dt.version = "8.8.0"); |
|
var Ut = Dt; |
|
return (Ut.default = Ut); |
|
}), |
|
"undefined" != typeof window && |
|
window.Sweetalert2 && |
|
(window.swal = |
|
window.sweetAlert = |
|
window.Swal = |
|
window.SweetAlert = |
|
window.Sweetalert2); |
|
"undefined" != typeof document && |
|
(function (e, t) { |
|
var n = e.createElement("style"); |
|
if ((e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet)) |
|
n.styleSheet.disabled || (n.styleSheet.cssText = t); |
|
else |
|
try { |
|
n.innerHTML = t; |
|
} catch (e) { |
|
n.innerText = t; |
|
} |
|
})( |
|
document, |
|
"@charset \"UTF-8\";@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-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:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@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:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-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-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}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon::before{display:flex;align-items:center;font-size:2em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon::before{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-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}}@keyframes animate-toast-success-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}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;background-color:transparent;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;margin:1.25em auto 0}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:'';display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-popup .swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;outline:initial;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{z-index:1;justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);font-size:1.125em}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range{margin:1em auto;background:inherit}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{background:inherit;font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center;background:inherit}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-popup .swal2-validation-message::before{content:'!';display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;zoom:normal;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;zoom:normal;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon::before{display:flex;align-items:center;height:92%;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.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}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning::before{content:'!'}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info::before{content:'i'}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question::before{content:'?'}.swal2-icon.swal2-question.swal2-arabic-question-mark::before{content:'؟'}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:initial!important}}" |
|
);
|
|
|