diff --git a/data/navs.json b/data/navs.json index c7ed8f8..bdaed15 100644 --- a/data/navs.json +++ b/data/navs.json @@ -426,8 +426,8 @@ "href": "pages/tripartite/okNprogress.html" }, { - "title": "okSweetalert2", - "href": "pages/tripartite/okSweetalert2.html" + "title": "okSweetAlert2", + "href": "pages/tripartite/okSweetAlert2.html" }, { "title": "Animate.css", diff --git a/lib/layui/lay/okmodules/okSweetAlert2.js b/lib/layui/lay/okmodules/okSweetAlert2.js new file mode 100644 index 0000000..03252e5 --- /dev/null +++ b/lib/layui/lay/okmodules/okSweetAlert2.js @@ -0,0 +1,1207 @@ +!function (t, e) { + // "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.Sweetalert2 = e() + // 加入layui模块规范 + layui.define(["jquery"], function (exports) { + exports("okSweetAlert2", e(layui.jquery)); + }); +}(this, function () { + "use strict"; + + function r(t) { + return (r = "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 o(t, e) { + if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") + } + + function i(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 a(t, e, n) { + return e && i(t.prototype, e), n && i(t, n), t + } + + 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 u(t) { + return (u = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { + return t.__proto__ || Object.getPrototypeOf(t) + })(t) + } + + function c(t, e) { + return (c = Object.setPrototypeOf || function (t, e) { + return t.__proto__ = e, t + })(t, e) + } + + function l(t, e, n) { + return (l = 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 && c(i, n.prototype), i + }).apply(null, arguments) + } + + function d(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 p(t, e, n) { + return (p = "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 = u(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) + } + + function f(e) { + return Object.keys(e).map(function (t) { + return e[t] + }) + } + + function m(t) { + return Array.prototype.slice.call(t) + } + + function g(t) { + console.error("".concat(e, " ").concat(t)) + } + + function h(t, e) { + !function (t) { + -1 === n.indexOf(t) && (n.push(t), w(t)) + }('"'.concat(t, '" is deprecated and will be removed in the next major release. Please use "').concat(e, '" instead.')) + } + + function v(t) { + return t && Promise.resolve(t) === t + } + + function t(t) { + var e = {}; + for (var n in t) e[t[n]] = "swal2-" + t[n]; + return e + } + + function b(t, e) { + return t.classList.contains(e) + } + + function y(t, e, n) { + if (function (e) { + m(e.classList).forEach(function (t) { + -1 === f(x).indexOf(t) && -1 === f(S).indexOf(t) && e.classList.remove(t) + }) + }(t), e && e[n]) { + if ("string" != typeof e[n] && !e[n].forEach) return w("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(r(e[n]), '"')); + rt(t, e[n]) + } + } + + var e = "SweetAlert2:", w = function (t) { + console.warn("".concat(e, " ").concat(t)) + }, n = [], C = function (t) { + return "function" == typeof t ? t() : t + }, k = Object.freeze({cancel: "cancel", backdrop: "backdrop", close: "close", esc: "esc", timer: "timer"}), + x = t(["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"]), + S = t(["success", "warning", "info", "question", "error"]), P = {previousBodyPadding: null}; + + function B(t, e) { + if (!e) return null; + switch (e) { + case"select": + case"textarea": + case"file": + return st(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 st(t, x.input) + } + } + + function A(t) { + if (t.focus(), "file" !== t.type) { + var e = t.value; + t.value = "", t.value = e + } + } + + function E(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) + })) + } + + function T(t, e, n) { + n || 0 === parseInt(n) ? t.style[e] = "number" == typeof n ? n + "px" : n : t.style.removeProperty(e) + } + + function L(t, e) { + var n = 1 < arguments.length && void 0 !== e ? e : "flex"; + t.style.opacity = "", t.style.display = n + } + + function O(t) { + t.style.opacity = "", t.style.display = "none" + } + + function M(t, e, n) { + e ? L(t, n) : O(t) + } + + function V(t) { + return !(!t || !(t.offsetWidth || t.offsetHeight || t.getClientRects().length)) + } + + function j(t) { + var e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), + o = parseFloat(e.getPropertyValue("transition-duration") || "0"); + return 0 < n || 0 < o + } + + function H() { + return document.body.querySelector("." + x.container) + } + + function I(t) { + var e = H(); + return e ? e.querySelector(t) : null + } + + function q(t) { + return I("." + t) + } + + function R() { + return q(x.popup) + } + + function D() { + var t = R(); + return m(t.querySelectorAll("." + x.icon)) + } + + function N() { + var t = D().filter(function (t) { + return V(t) + }); + return t.length ? t[0] : null + } + + function U() { + return q(x.title) + } + + function F() { + return q(x.content) + } + + function _() { + return q(x.image) + } + + function z() { + return q(x["progress-steps"]) + } + + function W() { + return q(x["validation-message"]) + } + + function K() { + return I("." + x.actions + " ." + x.confirm) + } + + function Y() { + return I("." + x.actions + " ." + x.cancel) + } + + function Z() { + return q(x.actions) + } + + function Q() { + return q(x.header) + } + + function $() { + return q(x.footer) + } + + function J() { + return q(x.close) + } + + function X() { + var t = m(R().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 = m(R().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).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 V(t) + }) + } + + function G() { + return !ut() && !document.body.classList.contains(x["no-backdrop"]) + } + + function tt() { + return "undefined" == typeof window || "undefined" == typeof document + } + + function et(t) { + Fe.isVisible() && it !== t.target.value && Fe.resetValidationMessage(), it = t.target.value + } + + function nt(t, e) { + t instanceof HTMLElement ? e.appendChild(t) : "object" === r(t) ? dt(e, t) : t && (e.innerHTML = t) + } + + function ot(t, e) { + var n = Z(), o = K(), i = Y(); + e.showConfirmButton || e.showCancelButton || O(n), y(n, e.customClass, "actions"), ft(o, "confirm", e), ft(i, "cancel", e), e.buttonsStyling ? function (t, e, n) { + rt([t, e], x.styled), n.confirmButtonColor && (t.style.backgroundColor = n.confirmButtonColor); + n.cancelButtonColor && (e.style.backgroundColor = n.cancelButtonColor); + var o = window.getComputedStyle(t).getPropertyValue("background-color"); + t.style.borderLeftColor = o, t.style.borderRightColor = o + }(o, i, e) : (at([o, i], x.styled), o.style.backgroundColor = o.style.borderLeftColor = o.style.borderRightColor = "", i.style.backgroundColor = i.style.borderLeftColor = i.style.borderRightColor = ""), e.reverseButtons && o.parentNode.insertBefore(i, o) + } + + var it, rt = function (t, e) { + E(t, e, !0) + }, at = function (t, e) { + E(t, e, !1) + }, st = function (t, e) { + for (var n = 0; n < t.childNodes.length; n++) if (b(t.childNodes[n], e)) return t.childNodes[n] + }, ut = function () { + return document.body.classList.contains(x["toast-shown"]) + }, + ct = '\n
\n
\n \n
\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n \n

\n \n
\n
\n
\n \n \n
\n \n \n
\n \n
\n \n \n
\n
\n
\n \n \n
\n
\n
\n
\n').replace(/(^|\n)\s*/g, ""), + lt = function (t) { + if (function () { + var t = H(); + t && (t.parentNode.removeChild(t), at([document.documentElement, document.body], [x["no-backdrop"], x["toast-shown"], x["has-column"]])) + }(), tt()) g("SweetAlert2 requires document to initialize"); else { + var e = document.createElement("div"); + e.className = x.container, e.innerHTML = ct; + var n = function (t) { + return "string" == typeof t ? document.querySelector(t) : t + }(t.target); + n.appendChild(e), function (t) { + var e = R(); + e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true") + }(t), function (t) { + "rtl" === window.getComputedStyle(t).direction && rt(H(), x.rtl) + }(n), function () { + var t = F(), e = st(t, x.input), n = st(t, x.file), + o = t.querySelector(".".concat(x.range, " input")), + i = t.querySelector(".".concat(x.range, " output")), r = st(t, x.select), + a = t.querySelector(".".concat(x.checkbox, " input")), s = st(t, x.textarea); + e.oninput = et, n.onchange = et, r.onchange = et, a.onchange = et, s.oninput = et, o.oninput = function (t) { + et(t), i.value = o.value + }, o.onchange = function (t) { + et(t), o.nextSibling.value = o.value + } + }() + } + }, dt = 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)) + }, pt = function () { + if (tt()) return !1; + var t = document.createElement("div"), e = { + WebkitAnimation: "webkitAnimationEnd", + OAnimation: "oAnimationEnd oanimationend", + animation: "animationend" + }; + for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n) && void 0 !== t.style[n]) return e[n]; + return !1 + }(); + + function ft(t, e, n) { + M(t, n["showC" + e.substring(1) + "Button"], "inline-block"), t.innerHTML = n[e + "ButtonText"], t.setAttribute("aria-label", n[e + "ButtonAriaLabel"]), t.className = x[e], y(t, n.customClass, e + "Button"), rt(t, n[e + "ButtonClass"]) + } + + function mt(t, e) { + var n = H(); + n && (function (t, e) { + "string" == typeof e ? t.style.background = e : e || rt([document.documentElement, document.body], x["no-backdrop"]) + }(n, e.backdrop), !e.backdrop && e.allowOutsideClick && w('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), function (t, e) { + e in x ? rt(t, x[e]) : (w('The "position" parameter is not valid, defaulting to "center"'), rt(t, x.center)) + }(n, e.position), function (t, e) { + if (e && "string" == typeof e) { + var n = "grow-" + e; + n in x && rt(t, x[n]) + } + }(n, e.grow), y(n, e.customClass, "container"), e.customContainerClass && rt(n, e.customContainerClass)) + } + + function gt(t, e) { + t.placeholder && !e.inputPlaceholder || (t.placeholder = e.inputPlaceholder) + } + + var ht = {promise: new WeakMap, innerParams: new WeakMap, domCache: new WeakMap}, + vt = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], bt = function (t) { + if (!kt[t.input]) return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input, '"')); + var e = Ct(t.input), n = kt[t.input](e, t); + L(n), setTimeout(function () { + A(n) + }) + }, yt = function (t, e) { + var n = B(F(), t); + if (n) for (var o in function (t) { + for (var e = 0; e < t.attributes.length; e++) { + var n = t.attributes[e].name; + -1 === ["type", "value", "style"].indexOf(n) && t.removeAttribute(n) + } + }(n), e) "range" === t && "placeholder" === o || n.setAttribute(o, e[o]) + }, wt = function (t) { + var e = Ct(t.input); + t.inputClass && rt(e, t.inputClass), t.customClass && rt(e, t.customClass.input) + }, Ct = function (t) { + var e = x[t] ? x[t] : x.input; + return st(F(), e) + }, kt = {}; + kt.text = kt.email = kt.password = kt.number = kt.tel = kt.url = function (t, e) { + return "string" == typeof e.inputValue || "number" == typeof e.inputValue ? t.value = e.inputValue : v(e.inputValue) || w('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(r(e.inputValue), '"')), gt(t, e), t.type = e.input, t + }, kt.file = function (t, e) { + return gt(t, e), t + }, kt.range = function (t, e) { + var n = t.querySelector("input"), o = t.querySelector("output"); + return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue, t + }, kt.select = function (t, e) { + if (t.innerHTML = "", e.inputPlaceholder) { + var n = document.createElement("option"); + n.innerHTML = e.inputPlaceholder, n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n) + } + return t + }, kt.radio = function (t) { + return t.innerHTML = "", t + }, kt.checkbox = function (t, e) { + var n = B(F(), "checkbox"); + return n.value = 1, n.id = x.checkbox, n.checked = Boolean(e.inputValue), t.querySelector("span").innerHTML = e.inputPlaceholder, t + }, kt.textarea = function (e, t) { + if (e.value = t.inputValue, gt(e, t), "MutationObserver" in window) { + var n = parseInt(window.getComputedStyle(R()).width), + o = parseInt(window.getComputedStyle(R()).paddingLeft) + parseInt(window.getComputedStyle(R()).paddingRight); + new MutationObserver(function () { + var t = e.offsetWidth + o; + R().style.width = n < t ? t + "px" : null + }).observe(e, {attributes: !0, attributeFilter: ["style"]}) + } + return e + }; + + function xt(t, e) { + var n = F().querySelector("#" + x.content); + e.html ? (nt(e.html, n), L(n, "block")) : e.text ? (n.textContent = e.text, L(n, "block")) : O(n), function (t, o) { + var i = F(), e = ht.innerParams.get(t), r = !e || o.input !== e.input; + vt.forEach(function (t) { + var e = x[t], n = st(i, e); + yt(t, o.inputAttributes), n.className = e, r && O(n) + }), o.input && (r && bt(o), wt(o)) + }(t, e), y(F(), e.customClass, "content") + } + + function St(t, i) { + var r = z(); + if (!i.progressSteps || 0 === i.progressSteps.length) return O(r); + L(r), r.innerHTML = ""; + var a = parseInt(null === i.currentProgressStep ? Fe.getQueueStep() : i.currentProgressStep); + a >= i.progressSteps.length && w("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 = function (t) { + var e = document.createElement("li"); + return rt(e, x["progress-step"]), e.innerHTML = t, e + }(t); + if (r.appendChild(n), e === a && rt(n, x["active-progress-step"]), e !== i.progressSteps.length - 1) { + var o = function (t) { + var e = document.createElement("li"); + return rt(e, x["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e + }(t); + r.appendChild(o) + } + }) + } + + function Pt(t, e) { + var n = Q(); + y(n, e.customClass, "header"), St(0, e), function (t, e) { + var n = ht.innerParams.get(t); + if (n && e.type === n.type && N()) y(N(), e.customClass, "icon"); else if (Et(), e.type) if (Tt(), -1 !== Object.keys(S).indexOf(e.type)) { + var o = I(".".concat(x.icon, ".").concat(S[e.type])); + L(o), y(o, e.customClass, "icon"), E(o, "swal2-animate-".concat(e.type, "-icon"), e.animation) + } else g('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type, '"')) + }(t, e), function (t, e) { + var n = _(); + if (!e.imageUrl) return O(n); + L(n), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), T(n, "width", e.imageWidth), T(n, "height", e.imageHeight), n.className = x.image, y(n, e.customClass, "image"), e.imageClass && rt(n, e.imageClass) + }(0, e), function (t, e) { + var n = U(); + M(n, e.title || e.titleText), e.title && nt(e.title, n), e.titleText && (n.innerText = e.titleText), y(n, e.customClass, "title") + }(0, e), function (t, e) { + var n = J(); + n.innerHTML = e.closeButtonHtml, y(n, e.customClass, "closeButton"), M(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel) + }(0, e) + } + + function Bt(t, e) { + !function (t, e) { + var n = R(); + T(n, "width", e.width), T(n, "padding", e.padding), e.background && (n.style.background = e.background), n.className = x.popup, e.toast ? (rt([document.documentElement, document.body], x["toast-shown"]), rt(n, x.toast)) : rt(n, x.modal), y(n, e.customClass, "popup"), "string" == typeof e.customClass && rt(n, e.customClass), E(n, x.noanimation, !e.animation) + }(0, e), mt(0, e), Pt(t, e), xt(t, e), ot(0, e), function (t, e) { + var n = $(); + M(n, e.footer), e.footer && nt(e.footer, n), y(n, e.customClass, "footer") + }(0, e), "function" == typeof e.onRender && e.onRender(R()) + } + + function At() { + return K() && K().click() + } + + var Et = function () { + for (var t = D(), e = 0; e < t.length; e++) O(t[e]) + }, Tt = function () { + for (var t = R(), 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 + }; + + function Lt() { + var t = R(); + t || Fe.fire(""), t = R(); + var e = Z(), n = K(), o = Y(); + L(e), L(n), rt([t, e], x.loading), n.disabled = !0, o.disabled = !0, t.setAttribute("data-loading", !0), t.setAttribute("aria-busy", !0), t.focus() + } + + function Ot() { + return new Promise(function (t) { + var e = window.scrollX, n = window.scrollY; + Ht.restoreFocusTimeout = setTimeout(function () { + Ht.previousActiveElement && Ht.previousActiveElement.focus ? (Ht.previousActiveElement.focus(), Ht.previousActiveElement = null) : document.body && document.body.focus(), t() + }, 100), void 0 !== e && void 0 !== n && window.scrollTo(e, n) + }) + } + + function Mt(t) { + return Object.prototype.hasOwnProperty.call(It, t) + } + + function Vt(t) { + return Rt[t] + } + + var jt = [], Ht = {}, It = { + 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, + closeButtonHtml: "×", + 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, + onOpen: null, + onRender: null, + onClose: null, + onAfterClose: null, + scrollbarPadding: !0 + }, + qt = ["title", "titleText", "text", "html", "type", "customClass", "showConfirmButton", "showCancelButton", "confirmButtonText", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonClass", "cancelButtonText", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonClass", "buttonsStyling", "reverseButtons", "imageUrl", "imageWidth", "imageHeigth", "imageAlt", "imageClass", "progressSteps", "currentProgressStep"], + Rt = { + customContainerClass: "customClass", + confirmButtonClass: "customClass", + cancelButtonClass: "customClass", + imageClass: "customClass", + inputClass: "customClass" + }, + Dt = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusCancel", "heightAuto", "keydownListenerCapture"], + Nt = Object.freeze({ + isValidParameter: Mt, + isUpdatableParameter: function (t) { + return -1 !== qt.indexOf(t) + }, + isDeprecatedParameter: Vt, + argsToParams: function (n) { + var o = {}; + switch (r(n[0])) { + case"object": + s(o, n[0]); + break; + default: + ["title", "html", "type"].forEach(function (t, e) { + switch (r(n[e])) { + case"string": + o[t] = n[e]; + break; + case"undefined": + break; + default: + g("Unexpected type of ".concat(t, '! Expected "string", got ').concat(r(n[e]))) + } + }) + } + return o + }, + isVisible: function () { + return V(R()) + }, + clickConfirm: At, + clickCancel: function () { + return Y() && Y().click() + }, + getContainer: H, + getPopup: R, + getTitle: U, + getContent: F, + getImage: _, + getIcon: N, + getIcons: D, + getCloseButton: J, + getActions: Z, + getConfirmButton: K, + getCancelButton: Y, + getHeader: Q, + getFooter: $, + getFocusableElements: X, + getValidationMessage: W, + isLoading: function () { + return R().hasAttribute("data-loading") + }, + fire: function () { + for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; + return l(this, e) + }, + mixin: function (n) { + return function (t) { + function e() { + return o(this, e), d(this, u(e).apply(this, arguments)) + } + + 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 && c(t, e) + }(e, t), a(e, [{ + key: "_main", value: function (t) { + return p(u(e.prototype), "_main", this).call(this, s({}, n, t)) + } + }]), e + }(this) + }, + queue: function (t) { + var r = this; + jt = t; + + function a(t, e) { + jt = [], document.body.removeAttribute("data-swal2-queue-step"), t(e) + } + + var s = []; + return new Promise(function (i) { + !function e(n, o) { + n < jt.length ? (document.body.setAttribute("data-swal2-queue-step", n), r.fire(jt[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 < jt.length ? jt.splice(e, 0, t) : jt.push(t) + }, + deleteQueueStep: function (t) { + void 0 !== jt[t] && jt.splice(t, 1) + }, + showLoading: Lt, + enableLoading: Lt, + getTimerLeft: function () { + return Ht.timeout && Ht.timeout.getTimerLeft() + }, + stopTimer: function () { + return Ht.timeout && Ht.timeout.stop() + }, + resumeTimer: function () { + return Ht.timeout && Ht.timeout.start() + }, + toggleTimer: function () { + var t = Ht.timeout; + return t && (t.running ? t.stop() : t.start()) + }, + increaseTimer: function (t) { + return Ht.timeout && Ht.timeout.increase(t) + }, + isTimerRunning: function () { + return Ht.timeout && Ht.timeout.isRunning() + } + }); + + function Ut() { + var t = ht.innerParams.get(this), e = ht.domCache.get(this); + t.showConfirmButton || (O(e.confirmButton), t.showCancelButton || O(e.actions)), at([e.popup, e.actions], x.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.cancelButton.disabled = !1 + } + + function Ft() { + null === P.previousBodyPadding && document.body.scrollHeight > window.innerHeight && (P.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = P.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") + } + + function _t() { + return !!window.MSInputMethodContext && !!document.documentMode + } + + function zt() { + var t = H(), e = R(); + t.style.removeProperty("align-items"), e.offsetTop < 0 && (t.style.alignItems = "flex-start") + } + + var Wt = function () { + var e, n = H(); + n.ontouchstart = function (t) { + e = t.target === n || !function (t) { + return !!(t.scrollHeight > t.clientHeight) + }(n) && "INPUT" !== t.target.tagName + }, n.ontouchmove = function (t) { + e && (t.preventDefault(), t.stopPropagation()) + } + }, Kt = {swalPromiseResolve: new WeakMap}; + + function Yt(t, e, n, o) { + n ? Jt(t, o) : (Ot().then(function () { + return Jt(t, o) + }), Ht.keydownTarget.removeEventListener("keydown", Ht.keydownHandler, {capture: Ht.keydownListenerCapture}), Ht.keydownHandlerAdded = !1), e.parentNode && e.parentNode.removeChild(e), G() && (null !== P.previousBodyPadding && (document.body.style.paddingRight = P.previousBodyPadding + "px", P.previousBodyPadding = null), function () { + if (b(document.body, x.iosfix)) { + var t = parseInt(document.body.style.top, 10); + at(document.body, x.iosfix), document.body.style.top = "", document.body.scrollTop = -1 * t + } + }(), "undefined" != typeof window && _t() && window.removeEventListener("resize", zt), m(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") + })), at([document.documentElement, document.body], [x.shown, x["height-auto"], x["no-backdrop"], x["toast-shown"], x["toast-column"]]) + } + + function Zt(t) { + var e = R(); + if (e && !b(e, x.hide)) { + var n = ht.innerParams.get(this); + if (n) { + var o = Kt.swalPromiseResolve.get(this); + at(e, x.show), rt(e, x.hide), function (t, e, n) { + var o = H(), i = pt && j(e), r = n.onClose, a = n.onAfterClose; + if (r !== null && typeof r === "function") { + r(e) + } + if (i) { + $t(t, e, o, a) + } else { + Yt(t, o, ut(), a) + } + }(this, e, n), o(t || {}) + } + } + } + + function Qt(t) { + for (var e in t) t[e] = new WeakMap + } + + var $t = function (t, e, n, o) { + Ht.swalCloseEventFinishedCallback = Yt.bind(null, t, n, ut(), o), e.addEventListener(pt, function (t) { + t.target === e && (Ht.swalCloseEventFinishedCallback(), delete Ht.swalCloseEventFinishedCallback) + }) + }, Jt = function (t, e) { + setTimeout(function () { + null !== e && "function" == typeof e && e(), R() || function (t) { + delete t.params, delete Ht.keydownHandler, delete Ht.keydownTarget, Qt(ht), Qt(Kt) + }(t) + }) + }; + + function Xt(t, e, n) { + var o = ht.domCache.get(t); + e.forEach(function (t) { + o[t].disabled = n + }) + } + + function Gt(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 te = function () { + function n(t, e) { + o(this, n), this.callback = t, this.remaining = e, this.running = !1, this.start() + } + + return a(n, [{ + key: "start", value: function () { + return this.running || (this.running = !0, this.started = new Date, this.id = setTimeout(this.callback, this.remaining)), this.remaining + } + }, { + key: "stop", value: function () { + return this.running && (this.running = !1, clearTimeout(this.id), this.remaining -= new Date - this.started), this.remaining + } + }, { + key: "increase", value: function (t) { + var e = this.running; + return e && this.stop(), this.remaining += t, e && this.start(), this.remaining + } + }, { + key: "getTimerLeft", value: function () { + return this.running && (this.stop(), this.start()), this.remaining + } + }, { + key: "isRunning", value: function () { + return this.running + } + }]), n + }(), ee = { + 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") + } + }; + + function ne(t) { + !function (e) { + e.inputValidator || Object.keys(ee).forEach(function (t) { + e.input === t && (e.inputValidator = ee[t]) + }) + }(t), t.showLoaderOnConfirm && !t.preConfirm && w("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"), t.animation = C(t.animation), function (t) { + t.target && ("string" != typeof t.target || document.querySelector(t.target)) && ("string" == typeof t.target || t.target.appendChild) || (w('Target parameter is not valid, defaulting to "body"'), t.target = "body") + }(t), "string" == typeof t.title && (t.title = t.title.split("\n").join("
")), lt(t) + } + + function oe(t, e) { + t.removeEventListener(pt, oe), e.style.overflowY = "auto" + } + + function ie(t) { + var e = H(), n = R(); + "function" == typeof t.onBeforeOpen && t.onBeforeOpen(n), me(e, n, t), pe(e, n), G() && fe(e, t.scrollbarPadding), ut() || Ht.previousActiveElement || (Ht.previousActiveElement = document.activeElement), "function" == typeof t.onOpen && setTimeout(function () { + return t.onOpen(n) + }) + } + + function re(t, e) { + "select" === e.input || "radio" === e.input ? be(t, e) : -1 !== ["text", "email", "number", "tel", "textarea"].indexOf(e.input) && v(e.inputValue) && ye(t, e) + } + + function ae(t, e) { + t.disableButtons(), e.input ? ke(t, e) : xe(t, e, !0) + } + + function se(t, e) { + t.disableButtons(), e(k.cancel) + } + + function ue(t, e) { + t.closePopup({value: e}) + } + + function ce(e, t, n, o) { + t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {capture: t.keydownListenerCapture}), t.keydownHandlerAdded = !1), n.toast || (t.keydownHandler = function (t) { + return Be(e, t, n, o) + }, t.keydownTarget = n.keydownListenerCapture ? window : R(), t.keydownListenerCapture = n.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {capture: t.keydownListenerCapture}), t.keydownHandlerAdded = !0) + } + + function le(t, e, n) { + for (var o = X(), i = 0; i < o.length; i++) return (e += n) === o.length ? e = 0 : -1 === e && (e = o.length - 1), o[e].focus(); + R().focus() + } + + function de(t, e, n) { + e.toast ? Oe(t, e, n) : (Ve(t), je(t), He(t, e, n)) + } + + var pe = function (t, e) { + pt && j(e) ? (t.style.overflowY = "hidden", e.addEventListener(pt, oe.bind(null, e, t))) : t.style.overflowY = "auto" + }, fe = function (t, e) { + !function () { + if ((/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || "MacIntel" === navigator.platform && 1 < navigator.maxTouchPoints) && !b(document.body, x.iosfix)) { + var t = document.body.scrollTop; + document.body.style.top = -1 * t + "px", rt(document.body, x.iosfix), Wt() + } + }(), "undefined" != typeof window && _t() && (zt(), window.addEventListener("resize", zt)), m(document.body.children).forEach(function (t) { + t === H() || function (t, e) { + if ("function" == typeof t.contains) return t.contains(e) + }(t, H()) || (t.hasAttribute("aria-hidden") && t.setAttribute("data-previous-aria-hidden", t.getAttribute("aria-hidden")), t.setAttribute("aria-hidden", "true")) + }), e && Ft(), setTimeout(function () { + t.scrollTop = 0 + }) + }, me = function (t, e, n) { + n.animation && (rt(e, x.show), rt(t, x.fade)), L(e), rt([document.documentElement, document.body, t], x.shown), n.heightAuto && n.backdrop && !n.toast && rt([document.documentElement, document.body], x["height-auto"]) + }, ge = function (t) { + return t.checked ? 1 : 0 + }, he = function (t) { + return t.checked ? t.value : null + }, ve = function (t) { + return t.files.length ? null !== t.getAttribute("multiple") ? t.files : t.files[0] : null + }, be = function (e, n) { + function o(t) { + return we[n.input](i, Ce(t), n) + } + + var i = F(); + v(n.inputOptions) ? (Lt(), n.inputOptions.then(function (t) { + e.hideLoading(), o(t) + })) : "object" === r(n.inputOptions) ? o(n.inputOptions) : g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(r(n.inputOptions))) + }, ye = function (e, n) { + var o = e.getInput(); + O(o), n.inputValue.then(function (t) { + o.value = "number" === n.input ? parseFloat(t) || 0 : t + "", L(o), o.focus(), e.hideLoading() + }).catch(function (t) { + g("Error in inputValue promise: " + t), o.value = "", L(o), o.focus(), e.hideLoading() + }) + }, we = { + select: function (t, e, i) { + var r = st(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 = st(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() + } + }, Ce = function (e) { + var n = []; + return "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 + }, ke = function (e, n) { + var o = function (t, e) { + var n = t.getInput(); + if (!n) return null; + switch (e.input) { + case"checkbox": + return ge(n); + case"radio": + return he(n); + case"file": + return ve(n); + default: + return e.inputAutoTrim ? n.value.trim() : n.value + } + }(e, n); + n.inputValidator ? (e.disableInput(), Promise.resolve().then(function () { + return n.inputValidator(o, n.validationMessage) + }).then(function (t) { + e.enableButtons(), e.enableInput(), t ? e.showValidationMessage(t) : xe(e, n, o) + })) : e.getInput().checkValidity() ? xe(e, n, o) : (e.enableButtons(), e.showValidationMessage(n.validationMessage)) + }, xe = function (e, t, n) { + (t.showLoaderOnConfirm && Lt(), t.preConfirm) ? (e.resetValidationMessage(), Promise.resolve().then(function () { + return t.preConfirm(n, t.validationMessage) + }).then(function (t) { + V(W()) || !1 === t ? e.hideLoading() : ue(e, void 0 === t ? n : t) + })) : ue(e, n) + }, Se = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Left", "Right", "Up", "Down"], Pe = ["Escape", "Esc"], + Be = function (t, e, n, o) { + n.stopKeydownPropagation && e.stopPropagation(), "Enter" === e.key ? Ae(t, e, n) : "Tab" === e.key ? Ee(e, n) : -1 !== Se.indexOf(e.key) ? Te() : -1 !== Pe.indexOf(e.key) && Le(e, n, o) + }, Ae = function (t, e, n) { + if (!e.isComposing && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) { + if (-1 !== ["textarea", "file"].indexOf(n.input)) return; + At(), e.preventDefault() + } + }, Ee = function (t, e) { + for (var n = t.target, o = X(), i = -1, r = 0; r < o.length; r++) if (n === o[r]) { + i = r; + break + } + t.shiftKey ? le(0, i, -1) : le(0, i, 1), t.stopPropagation(), t.preventDefault() + }, Te = function () { + var t = K(), e = Y(); + document.activeElement === t && V(e) ? e.focus() : document.activeElement === e && V(t) && t.focus() + }, Le = function (t, e, n) { + C(e.allowEscapeKey) && (t.preventDefault(), n(k.esc)) + }, Oe = function (t, e, n) { + t.popup.onclick = function () { + e.showConfirmButton || e.showCancelButton || e.showCloseButton || e.input || n(k.close) + } + }, Me = !1, Ve = function (e) { + e.popup.onmousedown = function () { + e.container.onmouseup = function (t) { + e.container.onmouseup = void 0, t.target === e.container && (Me = !0) + } + } + }, je = function (e) { + e.container.onmousedown = function () { + e.popup.onmouseup = function (t) { + e.popup.onmouseup = void 0, t.target !== e.popup && !e.popup.contains(t.target) || (Me = !0) + } + } + }, He = function (e, n, o) { + e.container.onclick = function (t) { + Me ? Me = !1 : t.target === e.container && C(n.allowOutsideClick) && o(k.backdrop) + } + }; + var Ie = function (t, e, n) { + e.timer && (t.timeout = new te(function () { + n("timer"), delete t.timeout + }, e.timer)) + }, qe = function (t, e) { + if (!e.toast) return C(e.allowEnterKey) ? e.focusCancel && V(t.cancelButton) ? t.cancelButton.focus() : e.focusConfirm && V(t.confirmButton) ? t.confirmButton.focus() : void le(0, -1, 1) : Re() + }, Re = function () { + document.activeElement && "function" == typeof document.activeElement.blur && document.activeElement.blur() + }; + var De, Ne = Object.freeze({ + hideLoading: Ut, disableLoading: Ut, getInput: function (t) { + var e = ht.innerParams.get(t || this), n = ht.domCache.get(t || this); + return n ? B(n.content, e.input) : null + }, close: Zt, closePopup: Zt, closeModal: Zt, closeToast: Zt, enableButtons: function () { + Xt(this, ["confirmButton", "cancelButton"], !1) + }, disableButtons: function () { + Xt(this, ["confirmButton", "cancelButton"], !0) + }, enableConfirmButton: function () { + h("Swal.enableConfirmButton()", "Swal.getConfirmButton().removeAttribute('disabled')"), Xt(this, ["confirmButton"], !1) + }, disableConfirmButton: function () { + h("Swal.disableConfirmButton()", "Swal.getConfirmButton().setAttribute('disabled', '')"), Xt(this, ["confirmButton"], !0) + }, enableInput: function () { + return Gt(this.getInput(), !1) + }, disableInput: function () { + return Gt(this.getInput(), !0) + }, showValidationMessage: function (t) { + var e = ht.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")), L(e.validationMessage); + var o = this.getInput(); + o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedBy", x["validation-message"]), A(o), rt(o, x.inputerror)) + }, resetValidationMessage: function () { + var t = ht.domCache.get(this); + t.validationMessage && O(t.validationMessage); + var e = this.getInput(); + e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedBy"), at(e, x.inputerror)) + }, getProgressSteps: function () { + return h("Swal.getProgressSteps()", "const swalInstance = Swal.fire({progressSteps: ['1', '2', '3']}); const progressSteps = swalInstance.params.progressSteps"), ht.innerParams.get(this).progressSteps + }, setProgressSteps: function (t) { + h("Swal.setProgressSteps()", "Swal.update()"); + var e = s({}, ht.innerParams.get(this), {progressSteps: t}); + St(0, e), ht.innerParams.set(this, e) + }, showProgressSteps: function () { + var t = ht.domCache.get(this); + L(t.progressSteps) + }, hideProgressSteps: function () { + var t = ht.domCache.get(this); + O(t.progressSteps) + }, _main: function (t) { + !function (t) { + for (var e in t) Mt(i = e) || w('Unknown parameter "'.concat(i, '"')), t.toast && (o = e, -1 !== Dt.indexOf(o) && w('The parameter "'.concat(o, '" is incompatible with toasts'))), Vt(n = void 0) && h(n, Vt(n)); + var n, o, i + }(t), R() && Ht.swalCloseEventFinishedCallback && (Ht.swalCloseEventFinishedCallback(), delete Ht.swalCloseEventFinishedCallback), Ht.deferDisposalTimer && (clearTimeout(Ht.deferDisposalTimer), delete Ht.deferDisposalTimer); + var e = s({}, It, t); + ne(e), Object.freeze(e), Ht.timeout && (Ht.timeout.stop(), delete Ht.timeout), clearTimeout(Ht.restoreFocusTimeout); + var n = function (t) { + var e = { + popup: R(), + container: H(), + content: F(), + actions: Z(), + confirmButton: K(), + cancelButton: Y(), + closeButton: J(), + validationMessage: W(), + progressSteps: z() + }; + return ht.domCache.set(t, e), e + }(this); + return Bt(this, e), ht.innerParams.set(this, e), function (n, o, i) { + return new Promise(function (t) { + var e = function t(e) { + n.closePopup({dismiss: e}) + }; + Kt.swalPromiseResolve.set(n, t); + Ie(Ht, i, e); + o.confirmButton.onclick = function () { + return ae(n, i) + }; + o.cancelButton.onclick = function () { + return se(n, e) + }; + o.closeButton.onclick = function () { + return e(k.close) + }; + de(o, i, e); + ce(n, Ht, i, e); + if (i.toast && (i.input || i.footer || i.showCloseButton)) { + rt(document.body, x["toast-column"]) + } else { + at(document.body, x["toast-column"]) + } + re(n, i); + ie(i); + qe(o, i); + o.container.scrollTop = 0 + }) + }(this, n, e) + }, update: function (e) { + var t = R(); + if (!t || b(t, x.hide)) return w("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."); + var n = {}; + Object.keys(e).forEach(function (t) { + Fe.isUpdatableParameter(t) ? n[t] = e[t] : w('Invalid parameter to update: "'.concat(t, '". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js')) + }); + var o = s({}, ht.innerParams.get(this), n); + Bt(this, o), ht.innerParams.set(this, o), Object.defineProperties(this, { + params: { + value: s({}, this.params, e), + writable: !1, + enumerable: !0 + } + }) + } + }); + + function Ue() { + if ("undefined" != typeof window) { + "undefined" == typeof Promise && g("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)"), De = 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); + ht.promise.set(this, i) + } + } + + Ue.prototype.then = function (t) { + return ht.promise.get(this).then(t) + }, Ue.prototype.finally = function (t) { + return ht.promise.get(this).finally(t) + }, s(Ue.prototype, Ne), s(Ue, Nt), Object.keys(Ne).forEach(function (e) { + Ue[e] = function () { + var t; + if (De) return (t = De)[e].apply(t, arguments) + } + }), Ue.DismissReason = k, Ue.version = "8.18.7"; + var Fe = Ue; + return Fe.default = Fe +}), void 0 !== this && this.Sweetalert2 && (this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.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\";.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:static;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{flex-basis:auto!important;width:auto;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:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);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;transform-origin:0 1.5em;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:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.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:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-title{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-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.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-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.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-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.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-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;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-close:hover{transform:none;background:0 0;color:#f27474}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.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);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-webkit-input-placeholder,.swal2-input::-webkit-input-placeholder,.swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:inherit}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:inherit;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.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-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}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;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;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;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;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);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;transform:rotate(-45deg);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;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;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;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}@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)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-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:-.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-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 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}}@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}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{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%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}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%;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%;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;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;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left: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}@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:static!important}}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%;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;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left: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;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%;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}"); diff --git a/lib/layui/lay/okmodules/okSweetalert2.js b/lib/layui/lay/okmodules/okSweetalert2.js deleted file mode 100644 index c9fcfd4..0000000 --- a/lib/layui/lay/okmodules/okSweetalert2.js +++ /dev/null @@ -1,1138 +0,0 @@ -!function (t, e) { - // "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.swal = e() : t.swal = e() - // 加入layui模块规范 - layui.define(["jquery"], function (exports) { - exports("okSweetalert2", e(layui.jquery)); - }); -}(this, function () { - return function (t) { - function e(o) { - if (n[o]) return n[o].exports; - var r = n[o] = {i: o, l: !1, exports: {}}; - return t[o].call(r.exports, r, r.exports, e), r.l = !0, r.exports - } - - var n = {}; - return e.m = t, e.c = n, e.d = function (t, n, o) { - e.o(t, n) || Object.defineProperty(t, n, {configurable: !1, enumerable: !0, get: o}) - }, e.n = function (t) { - var n = t && t.__esModule ? function () { - return t.default - } : function () { - return t - }; - return e.d(n, "a", n), n - }, e.o = function (t, e) { - return Object.prototype.hasOwnProperty.call(t, e) - }, e.p = "", e(e.s = 8) - }([function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = "swal-button"; - e.CLASS_NAMES = { - MODAL: "swal-modal", - OVERLAY: "swal-overlay", - SHOW_MODAL: "swal-overlay--show-modal", - MODAL_TITLE: "swal-title", - MODAL_TEXT: "swal-text", - ICON: "swal-icon", - ICON_CUSTOM: "swal-icon--custom", - CONTENT: "swal-content", - FOOTER: "swal-footer", - BUTTON_CONTAINER: "swal-button-container", - BUTTON: o, - CONFIRM_BUTTON: o + "--confirm", - CANCEL_BUTTON: o + "--cancel", - DANGER_BUTTON: o + "--danger", - BUTTON_LOADING: o + "--loading", - BUTTON_LOADER: o + "__loader" - }, e.default = e.CLASS_NAMES - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}), e.getNode = function (t) { - var e = "." + t; - return document.querySelector(e) - }, e.stringToNode = function (t) { - var e = document.createElement("div"); - return e.innerHTML = t.trim(), e.firstChild - }, e.insertAfter = function (t, e) { - var n = e.nextSibling; - e.parentNode.insertBefore(t, n) - }, e.removeNode = function (t) { - t.parentElement.removeChild(t) - }, e.throwErr = function (t) { - throw t = t.replace(/ +(?= )/g, ""), "SweetAlert: " + (t = t.trim()) - }, e.isPlainObject = function (t) { - if ("[object Object]" !== Object.prototype.toString.call(t)) return !1; - var e = Object.getPrototypeOf(t); - return null === e || e === Object.prototype - }, e.ordinalSuffixOf = function (t) { - var e = t % 10, n = t % 100; - return 1 === e && 11 !== n ? t + "st" : 2 === e && 12 !== n ? t + "nd" : 3 === e && 13 !== n ? t + "rd" : t + "th" - } - }, function (t, e, n) { - "use strict"; - - function o(t) { - for (var n in t) e.hasOwnProperty(n) || (e[n] = t[n]) - } - - Object.defineProperty(e, "__esModule", {value: !0}), o(n(25)); - var r = n(26); - e.overlayMarkup = r.default, o(n(27)), o(n(28)), o(n(29)); - var i = n(0), a = i.default.MODAL_TITLE, s = i.default.MODAL_TEXT, c = i.default.ICON, l = i.default.FOOTER; - e.iconMarkup = '\n
', e.titleMarkup = '\n
\n', e.textMarkup = '\n
', e.footerMarkup = '\n
\n' - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1); - e.CONFIRM_KEY = "confirm", e.CANCEL_KEY = "cancel"; - var r = {visible: !0, text: null, value: null, className: "", closeModal: !0}, - i = Object.assign({}, r, {visible: !1, text: "Cancel", value: null}), - a = Object.assign({}, r, {text: "OK", value: !0}); - e.defaultButtonList = {cancel: i, confirm: a}; - var s = function (t) { - switch (t) { - case e.CONFIRM_KEY: - return a; - case e.CANCEL_KEY: - return i; - default: - var n = t.charAt(0).toUpperCase() + t.slice(1); - return Object.assign({}, r, {text: n, value: t}) - } - }, c = function (t, e) { - var n = s(t); - return !0 === e ? Object.assign({}, n, {visible: !0}) : "string" == typeof e ? Object.assign({}, n, { - visible: !0, - text: e - }) : o.isPlainObject(e) ? Object.assign({visible: !0}, n, e) : Object.assign({}, n, {visible: !1}) - }, l = function (t) { - for (var e = {}, n = 0, o = Object.keys(t); n < o.length; n++) { - var r = o[n], a = t[r], s = c(r, a); - e[r] = s - } - return e.cancel || (e.cancel = i), e - }, u = function (t) { - var n = {}; - switch (t.length) { - case 1: - n[e.CANCEL_KEY] = Object.assign({}, i, {visible: !1}); - break; - case 2: - n[e.CANCEL_KEY] = c(e.CANCEL_KEY, t[0]), n[e.CONFIRM_KEY] = c(e.CONFIRM_KEY, t[1]); - break; - default: - o.throwErr("Invalid number of 'buttons' in array (" + t.length + ").\n If you want more than 2 buttons, you need to use an object!") - } - return n - }; - e.getButtonListOpts = function (t) { - var n = e.defaultButtonList; - return "string" == typeof t ? n[e.CONFIRM_KEY] = c(e.CONFIRM_KEY, t) : Array.isArray(t) ? n = u(t) : o.isPlainObject(t) ? n = l(t) : !0 === t ? n = u([!0, !0]) : !1 === t ? n = u([!1, !1]) : void 0 === t && (n = e.defaultButtonList), n - } - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = n(2), i = n(0), a = i.default.MODAL, s = i.default.OVERLAY, c = n(30), l = n(31), u = n(32), - f = n(33); - e.injectElIntoModal = function (t) { - var e = o.getNode(a), n = o.stringToNode(t); - return e.appendChild(n), n - }; - var d = function (t) { - t.className = a, t.textContent = "" - }, p = function (t, e) { - d(t); - var n = e.className; - n && t.classList.add(n) - }; - e.initModalContent = function (t) { - var e = o.getNode(a); - p(e, t), c.default(t.icon), l.initTitle(t.title), l.initText(t.text), f.default(t.content), u.default(t.buttons, t.dangerMode) - }; - var m = function () { - var t = o.getNode(s), e = o.stringToNode(r.modalMarkup); - t.appendChild(e) - }; - e.default = m - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(3), r = {isOpen: !1, promise: null, actions: {}, timer: null}, i = Object.assign({}, r); - e.resetState = function () { - i = Object.assign({}, r) - }, e.setActionValue = function (t) { - if ("string" == typeof t) return a(o.CONFIRM_KEY, t); - for (var e in t) a(e, t[e]) - }; - var a = function (t, e) { - i.actions[t] || (i.actions[t] = {}), Object.assign(i.actions[t], {value: e}) - }; - e.setActionOptionsFor = function (t, e) { - var n = (void 0 === e ? {} : e).closeModal, o = void 0 === n || n; - Object.assign(i.actions[t], {closeModal: o}) - }, e.default = i - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = n(3), i = n(0), a = i.default.OVERLAY, s = i.default.SHOW_MODAL, c = i.default.BUTTON, - l = i.default.BUTTON_LOADING, u = n(5); - e.openModal = function () { - o.getNode(a).classList.add(s), u.default.isOpen = !0 - }; - var f = function () { - o.getNode(a).classList.remove(s), u.default.isOpen = !1 - }; - e.onAction = function (t) { - void 0 === t && (t = r.CANCEL_KEY); - var e = u.default.actions[t], n = e.value; - if (!1 === e.closeModal) { - var i = c + "--" + t; - o.getNode(i).classList.add(l) - } else f(); - u.default.promise.resolve(n) - }, e.getState = function () { - var t = Object.assign({}, u.default); - return delete t.promise, delete t.timer, t - }, e.stopLoading = function () { - for (var t = document.querySelectorAll("." + c), e = 0; e < t.length; e++) { - t[e].classList.remove(l) - } - } - }, function (t, e) { - var n; - n = function () { - return this - }(); - try { - n = n || Function("return this")() || (0, eval)("this") - } catch (t) { - "object" == typeof window && (n = window) - } - t.exports = n - }, function (t, e, n) { - (function (e) { - t.exports = e.sweetAlert = n(9) - }).call(e, n(7)) - }, function (t, e, n) { - (function (e) { - t.exports = e.swal = n(10) - }).call(e, n(7)) - }, function (t, e, n) { - "undefined" != typeof window && n(11), n(16); - var o = n(23).default; - t.exports = o - }, function (t, e, n) { - var o = n(12); - "string" == typeof o && (o = [[t.i, o, ""]]); - var r = {insertAt: "top"}; - r.transform = void 0; - n(14)(o, r); - o.locals && (t.exports = o.locals) - }, function (t, e, n) { - e = t.exports = n(13)(void 0), e.push([t.i, '.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}', ""]) - }, function (t, e) { - function n(t, e) { - var n = t[1] || "", r = t[3]; - if (!r) return n; - if (e && "function" == typeof btoa) { - var i = o(r); - return [n].concat(r.sources.map(function (t) { - return "/*# sourceURL=" + r.sourceRoot + t + " */" - })).concat([i]).join("\n") - } - return [n].join("\n") - } - - function o(t) { - return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(t)))) + " */" - } - - t.exports = function (t) { - var e = []; - return e.toString = function () { - return this.map(function (e) { - var o = n(e, t); - return e[2] ? "@media " + e[2] + "{" + o + "}" : o - }).join("") - }, e.i = function (t, n) { - "string" == typeof t && (t = [[null, t, ""]]); - for (var o = {}, r = 0; r < this.length; r++) { - var i = this[r][0]; - "number" == typeof i && (o[i] = !0) - } - for (r = 0; r < t.length; r++) { - var a = t[r]; - "number" == typeof a[0] && o[a[0]] || (n && !a[2] ? a[2] = n : n && (a[2] = "(" + a[2] + ") and (" + n + ")"), e.push(a)) - } - }, e - } - }, function (t, e, n) { - function o(t, e) { - for (var n = 0; n < t.length; n++) { - var o = t[n], r = m[o.id]; - if (r) { - r.refs++; - for (var i = 0; i < r.parts.length; i++) r.parts[i](o.parts[i]); - for (; i < o.parts.length; i++) r.parts.push(u(o.parts[i], e)) - } else { - for (var a = [], i = 0; i < o.parts.length; i++) a.push(u(o.parts[i], e)); - m[o.id] = {id: o.id, refs: 1, parts: a} - } - } - } - - function r(t, e) { - for (var n = [], o = {}, r = 0; r < t.length; r++) { - var i = t[r], a = e.base ? i[0] + e.base : i[0], s = i[1], c = i[2], l = i[3], - u = {css: s, media: c, sourceMap: l}; - o[a] ? o[a].parts.push(u) : n.push(o[a] = {id: a, parts: [u]}) - } - return n - } - - function i(t, e) { - var n = v(t.insertInto); - if (!n) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."); - var o = w[w.length - 1]; - if ("top" === t.insertAt) o ? o.nextSibling ? n.insertBefore(e, o.nextSibling) : n.appendChild(e) : n.insertBefore(e, n.firstChild), w.push(e); else { - if ("bottom" !== t.insertAt) throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'."); - n.appendChild(e) - } - } - - function a(t) { - if (null === t.parentNode) return !1; - t.parentNode.removeChild(t); - var e = w.indexOf(t); - e >= 0 && w.splice(e, 1) - } - - function s(t) { - var e = document.createElement("style"); - return t.attrs.type = "text/css", l(e, t.attrs), i(t, e), e - } - - function c(t) { - var e = document.createElement("link"); - return t.attrs.type = "text/css", t.attrs.rel = "stylesheet", l(e, t.attrs), i(t, e), e - } - - function l(t, e) { - Object.keys(e).forEach(function (n) { - t.setAttribute(n, e[n]) - }) - } - - function u(t, e) { - var n, o, r, i; - if (e.transform && t.css) { - if (!(i = e.transform(t.css))) return function () { - }; - t.css = i - } - if (e.singleton) { - var l = h++; - n = g || (g = s(e)), o = f.bind(null, n, l, !1), r = f.bind(null, n, l, !0) - } else t.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (n = c(e), o = p.bind(null, n, e), r = function () { - a(n), n.href && URL.revokeObjectURL(n.href) - }) : (n = s(e), o = d.bind(null, n), r = function () { - a(n) - }); - return o(t), function (e) { - if (e) { - if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap) return; - o(t = e) - } else r() - } - } - - function f(t, e, n, o) { - var r = n ? "" : o.css; - if (t.styleSheet) t.styleSheet.cssText = x(e, r); else { - var i = document.createTextNode(r), a = t.childNodes; - a[e] && t.removeChild(a[e]), a.length ? t.insertBefore(i, a[e]) : t.appendChild(i) - } - } - - function d(t, e) { - var n = e.css, o = e.media; - if (o && t.setAttribute("media", o), t.styleSheet) t.styleSheet.cssText = n; else { - for (; t.firstChild;) t.removeChild(t.firstChild); - t.appendChild(document.createTextNode(n)) - } - } - - function p(t, e, n) { - var o = n.css, r = n.sourceMap, i = void 0 === e.convertToAbsoluteUrls && r; - (e.convertToAbsoluteUrls || i) && (o = y(o)), r && (o += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(r)))) + " */"); - var a = new Blob([o], {type: "text/css"}), s = t.href; - t.href = URL.createObjectURL(a), s && URL.revokeObjectURL(s) - } - - var m = {}, b = function (t) { - var e; - return function () { - return void 0 === e && (e = t.apply(this, arguments)), e - } - }(function () { - return window && document && document.all && !window.atob - }), v = function (t) { - var e = {}; - return function (n) { - return void 0 === e[n] && (e[n] = t.call(this, n)), e[n] - } - }(function (t) { - return document.querySelector(t) - }), g = null, h = 0, w = [], y = n(15); - t.exports = function (t, e) { - if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment"); - e = e || {}, e.attrs = "object" == typeof e.attrs ? e.attrs : {}, e.singleton || (e.singleton = b()), e.insertInto || (e.insertInto = "head"), e.insertAt || (e.insertAt = "bottom"); - var n = r(t, e); - return o(n, e), function (t) { - for (var i = [], a = 0; a < n.length; a++) { - var s = n[a], c = m[s.id]; - c.refs--, i.push(c) - } - if (t) { - o(r(t, e), e) - } - for (var a = 0; a < i.length; a++) { - var c = i[a]; - if (0 === c.refs) { - for (var l = 0; l < c.parts.length; l++) c.parts[l](); - delete m[c.id] - } - } - } - }; - var x = function () { - var t = []; - return function (e, n) { - return t[e] = n, t.filter(Boolean).join("\n") - } - }() - }, function (t, e) { - t.exports = function (t) { - var e = "undefined" != typeof window && window.location; - if (!e) throw new Error("fixUrls requires window.location"); - if (!t || "string" != typeof t) return t; - var n = e.protocol + "//" + e.host, o = n + e.pathname.replace(/\/[^\/]*$/, "/"); - return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function (t, e) { - var r = e.trim().replace(/^"(.*)"$/, function (t, e) { - return e - }).replace(/^'(.*)'$/, function (t, e) { - return e - }); - if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)) return t; - var i; - return i = 0 === r.indexOf("//") ? r : 0 === r.indexOf("/") ? n + r : o + r.replace(/^\.\//, ""), "url(" + JSON.stringify(i) + ")" - }) - } - }, function (t, e, n) { - var o = n(17); - "undefined" == typeof window || window.Promise || (window.Promise = o), n(21), String.prototype.includes || (String.prototype.includes = function (t, e) { - "use strict"; - return "number" != typeof e && (e = 0), !(e + t.length > this.length) && -1 !== this.indexOf(t, e) - }), Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { - value: function (t, e) { - if (null == this) throw new TypeError('"this" is null or not defined'); - var n = Object(this), o = n.length >>> 0; - if (0 === o) return !1; - for (var r = 0 | e, i = Math.max(r >= 0 ? r : o - Math.abs(r), 0); i < o;) { - if (function (t, e) { - return t === e || "number" == typeof t && "number" == typeof e && isNaN(t) && isNaN(e) - }(n[i], t)) return !0; - i++ - } - return !1 - } - }), "undefined" != typeof window && function (t) { - t.forEach(function (t) { - t.hasOwnProperty("remove") || Object.defineProperty(t, "remove", { - configurable: !0, - enumerable: !0, - writable: !0, - value: function () { - this.parentNode.removeChild(this) - } - }) - }) - }([Element.prototype, CharacterData.prototype, DocumentType.prototype]) - }, function (t, e, n) { - (function (e) { - !function (n) { - function o() { - } - - function r(t, e) { - return function () { - t.apply(e, arguments) - } - } - - function i(t) { - if ("object" != typeof this) throw new TypeError("Promises must be constructed via new"); - if ("function" != typeof t) throw new TypeError("not a function"); - this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], f(t, this) - } - - function a(t, e) { - for (; 3 === t._state;) t = t._value; - if (0 === t._state) return void t._deferreds.push(e); - t._handled = !0, i._immediateFn(function () { - var n = 1 === t._state ? e.onFulfilled : e.onRejected; - if (null === n) return void (1 === t._state ? s : c)(e.promise, t._value); - var o; - try { - o = n(t._value) - } catch (t) { - return void c(e.promise, t) - } - s(e.promise, o) - }) - } - - function s(t, e) { - try { - if (e === t) throw new TypeError("A promise cannot be resolved with itself."); - if (e && ("object" == typeof e || "function" == typeof e)) { - var n = e.then; - if (e instanceof i) return t._state = 3, t._value = e, void l(t); - if ("function" == typeof n) return void f(r(n, e), t) - } - t._state = 1, t._value = e, l(t) - } catch (e) { - c(t, e) - } - } - - function c(t, e) { - t._state = 2, t._value = e, l(t) - } - - function l(t) { - 2 === t._state && 0 === t._deferreds.length && i._immediateFn(function () { - t._handled || i._unhandledRejectionFn(t._value) - }); - for (var e = 0, n = t._deferreds.length; e < n; e++) a(t, t._deferreds[e]); - t._deferreds = null - } - - function u(t, e, n) { - this.onFulfilled = "function" == typeof t ? t : null, this.onRejected = "function" == typeof e ? e : null, this.promise = n - } - - function f(t, e) { - var n = !1; - try { - t(function (t) { - n || (n = !0, s(e, t)) - }, function (t) { - n || (n = !0, c(e, t)) - }) - } catch (t) { - if (n) return; - n = !0, c(e, t) - } - } - - var d = setTimeout; - i.prototype.catch = function (t) { - return this.then(null, t) - }, i.prototype.then = function (t, e) { - var n = new this.constructor(o); - return a(this, new u(t, e, n)), n - }, i.all = function (t) { - var e = Array.prototype.slice.call(t); - return new i(function (t, n) { - function o(i, a) { - try { - if (a && ("object" == typeof a || "function" == typeof a)) { - var s = a.then; - if ("function" == typeof s) return void s.call(a, function (t) { - o(i, t) - }, n) - } - e[i] = a, 0 == --r && t(e) - } catch (t) { - n(t) - } - } - - if (0 === e.length) return t([]); - for (var r = e.length, i = 0; i < e.length; i++) o(i, e[i]) - }) - }, i.resolve = function (t) { - return t && "object" == typeof t && t.constructor === i ? t : new i(function (e) { - e(t) - }) - }, i.reject = function (t) { - return new i(function (e, n) { - n(t) - }) - }, i.race = function (t) { - return new i(function (e, n) { - for (var o = 0, r = t.length; o < r; o++) t[o].then(e, n) - }) - }, i._immediateFn = "function" == typeof e && function (t) { - e(t) - } || function (t) { - d(t, 0) - }, i._unhandledRejectionFn = function (t) { - "undefined" != typeof console && console && console.warn("Possible Unhandled Promise Rejection:", t) - }, i._setImmediateFn = function (t) { - i._immediateFn = t - }, i._setUnhandledRejectionFn = function (t) { - i._unhandledRejectionFn = t - }, void 0 !== t && t.exports ? t.exports = i : n.Promise || (n.Promise = i) - }(this) - }).call(e, n(18).setImmediate) - }, function (t, e, n) { - function o(t, e) { - this._id = t, this._clearFn = e - } - - var r = Function.prototype.apply; - e.setTimeout = function () { - return new o(r.call(setTimeout, window, arguments), clearTimeout) - }, e.setInterval = function () { - return new o(r.call(setInterval, window, arguments), clearInterval) - }, e.clearTimeout = e.clearInterval = function (t) { - t && t.close() - }, o.prototype.unref = o.prototype.ref = function () { - }, o.prototype.close = function () { - this._clearFn.call(window, this._id) - }, e.enroll = function (t, e) { - clearTimeout(t._idleTimeoutId), t._idleTimeout = e - }, e.unenroll = function (t) { - clearTimeout(t._idleTimeoutId), t._idleTimeout = -1 - }, e._unrefActive = e.active = function (t) { - clearTimeout(t._idleTimeoutId); - var e = t._idleTimeout; - e >= 0 && (t._idleTimeoutId = setTimeout(function () { - t._onTimeout && t._onTimeout() - }, e)) - }, n(19), e.setImmediate = setImmediate, e.clearImmediate = clearImmediate - }, function (t, e, n) { - (function (t, e) { - !function (t, n) { - "use strict"; - - function o(t) { - "function" != typeof t && (t = new Function("" + t)); - for (var e = new Array(arguments.length - 1), n = 0; n < e.length; n++) e[n] = arguments[n + 1]; - var o = {callback: t, args: e}; - return l[c] = o, s(c), c++ - } - - function r(t) { - delete l[t] - } - - function i(t) { - var e = t.callback, o = t.args; - switch (o.length) { - case 0: - e(); - break; - case 1: - e(o[0]); - break; - case 2: - e(o[0], o[1]); - break; - case 3: - e(o[0], o[1], o[2]); - break; - default: - e.apply(n, o) - } - } - - function a(t) { - if (u) setTimeout(a, 0, t); else { - var e = l[t]; - if (e) { - u = !0; - try { - i(e) - } finally { - r(t), u = !1 - } - } - } - } - - if (!t.setImmediate) { - var s, c = 1, l = {}, u = !1, f = t.document, d = Object.getPrototypeOf && Object.getPrototypeOf(t); - d = d && d.setTimeout ? d : t, "[object process]" === {}.toString.call(t.process) ? function () { - s = function (t) { - e.nextTick(function () { - a(t) - }) - } - }() : function () { - if (t.postMessage && !t.importScripts) { - var e = !0, n = t.onmessage; - return t.onmessage = function () { - e = !1 - }, t.postMessage("", "*"), t.onmessage = n, e - } - }() ? function () { - var e = "setImmediate$" + Math.random() + "$", n = function (n) { - n.source === t && "string" == typeof n.data && 0 === n.data.indexOf(e) && a(+n.data.slice(e.length)) - }; - t.addEventListener ? t.addEventListener("message", n, !1) : t.attachEvent("onmessage", n), s = function (n) { - t.postMessage(e + n, "*") - } - }() : t.MessageChannel ? function () { - var t = new MessageChannel; - t.port1.onmessage = function (t) { - a(t.data) - }, s = function (e) { - t.port2.postMessage(e) - } - }() : f && "onreadystatechange" in f.createElement("script") ? function () { - var t = f.documentElement; - s = function (e) { - var n = f.createElement("script"); - n.onreadystatechange = function () { - a(e), n.onreadystatechange = null, t.removeChild(n), n = null - }, t.appendChild(n) - } - }() : function () { - s = function (t) { - setTimeout(a, 0, t) - } - }(), d.setImmediate = o, d.clearImmediate = r - } - }("undefined" == typeof self ? void 0 === t ? this : t : self) - }).call(e, n(7), n(20)) - }, function (t, e) { - function n() { - throw new Error("setTimeout has not been defined") - } - - function o() { - throw new Error("clearTimeout has not been defined") - } - - function r(t) { - if (u === setTimeout) return setTimeout(t, 0); - if ((u === n || !u) && setTimeout) return u = setTimeout, setTimeout(t, 0); - try { - return u(t, 0) - } catch (e) { - try { - return u.call(null, t, 0) - } catch (e) { - return u.call(this, t, 0) - } - } - } - - function i(t) { - if (f === clearTimeout) return clearTimeout(t); - if ((f === o || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t); - try { - return f(t) - } catch (e) { - try { - return f.call(null, t) - } catch (e) { - return f.call(this, t) - } - } - } - - function a() { - b && p && (b = !1, p.length ? m = p.concat(m) : v = -1, m.length && s()) - } - - function s() { - if (!b) { - var t = r(a); - b = !0; - for (var e = m.length; e;) { - for (p = m, m = []; ++v < e;) p && p[v].run(); - v = -1, e = m.length - } - p = null, b = !1, i(t) - } - } - - function c(t, e) { - this.fun = t, this.array = e - } - - function l() { - } - - var u, f, d = t.exports = {}; - !function () { - try { - u = "function" == typeof setTimeout ? setTimeout : n - } catch (t) { - u = n - } - try { - f = "function" == typeof clearTimeout ? clearTimeout : o - } catch (t) { - f = o - } - }(); - var p, m = [], b = !1, v = -1; - d.nextTick = function (t) { - var e = new Array(arguments.length - 1); - if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; - m.push(new c(t, e)), 1 !== m.length || b || r(s) - }, c.prototype.run = function () { - this.fun.apply(null, this.array) - }, d.title = "browser", d.browser = !0, d.env = {}, d.argv = [], d.version = "", d.versions = {}, d.on = l, d.addListener = l, d.once = l, d.off = l, d.removeListener = l, d.removeAllListeners = l, d.emit = l, d.prependListener = l, d.prependOnceListener = l, d.listeners = function (t) { - return [] - }, d.binding = function (t) { - throw new Error("process.binding is not supported") - }, d.cwd = function () { - return "/" - }, d.chdir = function (t) { - throw new Error("process.chdir is not supported") - }, d.umask = function () { - return 0 - } - }, function (t, e, n) { - "use strict"; - n(22).polyfill() - }, function (t, e, n) { - "use strict"; - - function o(t, e) { - if (void 0 === t || null === t) throw new TypeError("Cannot convert first argument to object"); - for (var n = Object(t), o = 1; o < arguments.length; o++) { - var r = arguments[o]; - if (void 0 !== r && null !== r) for (var i = Object.keys(Object(r)), a = 0, s = i.length; a < s; a++) { - var c = i[a], l = Object.getOwnPropertyDescriptor(r, c); - void 0 !== l && l.enumerable && (n[c] = r[c]) - } - } - return n - } - - function r() { - Object.assign || Object.defineProperty(Object, "assign", { - enumerable: !1, - configurable: !0, - writable: !0, - value: o - }) - } - - t.exports = {assign: o, polyfill: r} - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(24), r = n(6), i = n(5), a = n(36), s = function () { - for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - if ("undefined" != typeof window) { - var n = a.getOpts.apply(void 0, t); - return new Promise(function (t, e) { - i.default.promise = {resolve: t, reject: e}, o.default(n), setTimeout(function () { - r.openModal() - }) - }) - } - }; - s.close = r.onAction, s.getState = r.getState, s.setActionValue = i.setActionValue, s.stopLoading = r.stopLoading, s.setDefaults = a.setDefaults, e.default = s - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = n(0), i = r.default.MODAL, a = n(4), s = n(34), c = n(35), l = n(1); - e.init = function (t) { - o.getNode(i) || (document.body || l.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"), s.default(), a.default()), a.initModalContent(t), c.default(t) - }, e.default = e.init - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(0), r = o.default.MODAL; - e.modalMarkup = '\n ', e.default = e.modalMarkup - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(0), r = o.default.OVERLAY, i = '
\n
'; - e.default = i - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(0), r = o.default.ICON; - e.errorIconMarkup = function () { - var t = r + "--error", e = t + "__line"; - return '\n
\n \n \n
\n ' - }, e.warningIconMarkup = function () { - var t = r + "--warning"; - return '\n \n \n \n ' - }, e.successIconMarkup = function () { - var t = r + "--success"; - return '\n \n \n\n
\n
\n ' - } - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(0), r = o.default.CONTENT; - e.contentMarkup = '\n
\n\n
\n' - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(0), r = o.default.BUTTON_CONTAINER, i = o.default.BUTTON, a = o.default.BUTTON_LOADER; - e.buttonMarkup = '\n
\n\n \n\n
\n
\n
\n
\n
\n\n
\n' - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(4), r = n(2), i = n(0), a = i.default.ICON, s = i.default.ICON_CUSTOM, - c = ["error", "warning", "success", "info"], - l = {error: r.errorIconMarkup(), warning: r.warningIconMarkup(), success: r.successIconMarkup()}, - u = function (t, e) { - var n = a + "--" + t; - e.classList.add(n); - var o = l[t]; - o && (e.innerHTML = o) - }, f = function (t, e) { - e.classList.add(s); - var n = document.createElement("img"); - n.src = t, e.appendChild(n) - }, d = function (t) { - if (t) { - var e = o.injectElIntoModal(r.iconMarkup); - c.includes(t) ? u(t, e) : f(t, e) - } - }; - e.default = d - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(2), r = n(4), i = function (t) { - navigator.userAgent.includes("AppleWebKit") && (t.style.display = "none", t.offsetHeight, t.style.display = "") - }; - e.initTitle = function (t) { - if (t) { - var e = r.injectElIntoModal(o.titleMarkup); - e.textContent = t, i(e) - } - }, e.initText = function (t) { - if (t) { - var e = document.createDocumentFragment(); - t.split("\n").forEach(function (t, n, o) { - e.appendChild(document.createTextNode(t)), n < o.length - 1 && e.appendChild(document.createElement("br")) - }); - var n = r.injectElIntoModal(o.textMarkup); - n.appendChild(e), i(n) - } - } - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = n(4), i = n(0), a = i.default.BUTTON, s = i.default.DANGER_BUTTON, c = n(3), l = n(2), - u = n(6), f = n(5), d = function (t, e, n) { - var r = e.text, i = e.value, d = e.className, p = e.closeModal, m = o.stringToNode(l.buttonMarkup), - b = m.querySelector("." + a), v = a + "--" + t; - if (b.classList.add(v), d) { - (Array.isArray(d) ? d : d.split(" ")).filter(function (t) { - return t.length > 0 - }).forEach(function (t) { - b.classList.add(t) - }) - } - n && t === c.CONFIRM_KEY && b.classList.add(s), b.textContent = r; - var g = {}; - return g[t] = i, f.setActionValue(g), f.setActionOptionsFor(t, {closeModal: p}), b.addEventListener("click", function () { - return u.onAction(t) - }), m - }, p = function (t, e) { - var n = r.injectElIntoModal(l.footerMarkup); - for (var o in t) { - var i = t[o], a = d(o, i, e); - i.visible && n.appendChild(a) - } - 0 === n.children.length && n.remove() - }; - e.default = p - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(3), r = n(4), i = n(2), a = n(5), s = n(6), c = n(0), l = c.default.CONTENT, u = function (t) { - t.addEventListener("input", function (t) { - var e = t.target, n = e.value; - a.setActionValue(n) - }), t.addEventListener("keyup", function (t) { - if ("Enter" === t.key) return s.onAction(o.CONFIRM_KEY) - }), setTimeout(function () { - t.focus(), a.setActionValue("") - }, 0) - }, f = function (t, e, n) { - var o = document.createElement(e), r = l + "__" + e; - o.classList.add(r); - for (var i in n) { - var a = n[i]; - o[i] = a - } - "input" === e && u(o), t.appendChild(o) - }, d = function (t) { - if (t) { - var e = r.injectElIntoModal(i.contentMarkup), n = t.element, o = t.attributes; - "string" == typeof n ? f(e, n, o) : e.appendChild(n) - } - }; - e.default = d - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = n(2), i = function () { - var t = o.stringToNode(r.overlayMarkup); - document.body.appendChild(t) - }; - e.default = i - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(5), r = n(6), i = n(1), a = n(3), s = n(0), c = s.default.MODAL, l = s.default.BUTTON, - u = s.default.OVERLAY, f = function (t) { - t.preventDefault(), v() - }, d = function (t) { - t.preventDefault(), g() - }, p = function (t) { - if (o.default.isOpen) switch (t.key) { - case"Escape": - return r.onAction(a.CANCEL_KEY) - } - }, m = function (t) { - if (o.default.isOpen) switch (t.key) { - case"Tab": - return f(t) - } - }, b = function (t) { - if (o.default.isOpen) return "Tab" === t.key && t.shiftKey ? d(t) : void 0 - }, v = function () { - var t = i.getNode(l); - t && (t.tabIndex = 0, t.focus()) - }, g = function () { - var t = i.getNode(c), e = t.querySelectorAll("." + l), n = e.length - 1, o = e[n]; - o && o.focus() - }, h = function (t) { - t[t.length - 1].addEventListener("keydown", m) - }, w = function (t) { - t[0].addEventListener("keydown", b) - }, y = function () { - var t = i.getNode(c), e = t.querySelectorAll("." + l); - e.length && (h(e), w(e)) - }, x = function (t) { - if (i.getNode(u) === t.target) return r.onAction(a.CANCEL_KEY) - }, _ = function (t) { - var e = i.getNode(u); - e.removeEventListener("click", x), t && e.addEventListener("click", x) - }, k = function (t) { - o.default.timer && clearTimeout(o.default.timer), t && (o.default.timer = window.setTimeout(function () { - return r.onAction(a.CANCEL_KEY) - }, t)) - }, O = function (t) { - t.closeOnEsc ? document.addEventListener("keyup", p) : document.removeEventListener("keyup", p), t.dangerMode ? v() : g(), y(), _(t.closeOnClickOutside), k(t.timer) - }; - e.default = O - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = n(3), i = n(37), a = n(38), s = { - title: null, - text: null, - icon: null, - buttons: r.defaultButtonList, - content: null, - className: null, - closeOnClickOutside: !0, - closeOnEsc: !0, - dangerMode: !1, - timer: null - }, c = Object.assign({}, s); - e.setDefaults = function (t) { - c = Object.assign({}, s, t) - }; - var l = function (t) { - var e = t && t.button, n = t && t.buttons; - return void 0 !== e && void 0 !== n && o.throwErr("Cannot set both 'button' and 'buttons' options!"), void 0 !== e ? {confirm: e} : n - }, u = function (t) { - return o.ordinalSuffixOf(t + 1) - }, f = function (t, e) { - o.throwErr(u(e) + " argument ('" + t + "') is invalid") - }, d = function (t, e) { - var n = t + 1, r = e[n]; - o.isPlainObject(r) || void 0 === r || o.throwErr("Expected " + u(n) + " argument ('" + r + "') to be a plain object") - }, p = function (t, e) { - var n = t + 1, r = e[n]; - void 0 !== r && o.throwErr("Unexpected " + u(n) + " argument (" + r + ")") - }, m = function (t, e, n, r) { - var i = typeof e, a = "string" === i, s = e instanceof Element; - if (a) { - if (0 === n) return {text: e}; - if (1 === n) return {text: e, title: r[0]}; - if (2 === n) return d(n, r), {icon: e}; - f(e, n) - } else { - if (s && 0 === n) return d(n, r), {content: e}; - if (o.isPlainObject(e)) return p(n, r), e; - f(e, n) - } - }; - e.getOpts = function () { - for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var n = {}; - t.forEach(function (e, o) { - var r = m(0, e, o, t); - Object.assign(n, r) - }); - var o = l(n); - n.buttons = r.getButtonListOpts(o), delete n.button, n.content = i.getContentOpts(n.content); - var u = Object.assign({}, s, c, n); - return Object.keys(u).forEach(function (t) { - a.DEPRECATED_OPTS[t] && a.logDeprecation(t) - }), u - } - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}); - var o = n(1), r = {element: "input", attributes: {placeholder: ""}}; - e.getContentOpts = function (t) { - var e = {}; - return o.isPlainObject(t) ? Object.assign(e, t) : t instanceof Element ? {element: t} : "input" === t ? r : null - } - }, function (t, e, n) { - "use strict"; - Object.defineProperty(e, "__esModule", {value: !0}), e.logDeprecation = function (t) { - var n = e.DEPRECATED_OPTS[t], o = n.onlyRename, r = n.replacement, i = n.subOption, a = n.link, - s = o ? "renamed" : "deprecated", c = 'SweetAlert warning: "' + t + '" option has been ' + s + "."; - if (r) { - c += " Please use" + (i ? ' "' + i + '" in ' : " ") + '"' + r + '" instead.' - } - var l = "https://sweetalert.js.org"; - c += a ? " More details: " + l + a : " More details: " + l + "/guides/#upgrading-from-1x", console.warn(c) - }, e.DEPRECATED_OPTS = { - type: {replacement: "icon", link: "/docs/#icon"}, - imageUrl: {replacement: "icon", link: "/docs/#icon"}, - customClass: {replacement: "className", onlyRename: !0, link: "/docs/#classname"}, - imageSize: {}, - showCancelButton: {replacement: "buttons", link: "/docs/#buttons"}, - showConfirmButton: {replacement: "button", link: "/docs/#button"}, - confirmButtonText: {replacement: "button", link: "/docs/#button"}, - confirmButtonColor: {}, - cancelButtonText: {replacement: "buttons", link: "/docs/#buttons"}, - closeOnConfirm: {replacement: "button", subOption: "closeModal", link: "/docs/#button"}, - closeOnCancel: {replacement: "buttons", subOption: "closeModal", link: "/docs/#buttons"}, - showLoaderOnConfirm: {replacement: "buttons"}, - animation: {}, - inputType: {replacement: "content", link: "/docs/#content"}, - inputValue: {replacement: "content", link: "/docs/#content"}, - inputPlaceholder: {replacement: "content", link: "/docs/#content"}, - html: {replacement: "content", link: "/docs/#content"}, - allowEscapeKey: {replacement: "closeOnEsc", onlyRename: !0, link: "/docs/#closeonesc"}, - allowClickOutside: {replacement: "closeOnClickOutside", onlyRename: !0, link: "/docs/#closeonclickoutside"} - } - }]) -}); diff --git a/lib/layui/layui.js b/lib/layui/layui.js index cf7c982..a346e47 100644 --- a/lib/layui/layui.js +++ b/lib/layui/layui.js @@ -41,7 +41,7 @@ if (!Object.assign) { "okToastr": "okmodules/okToastr", "okBarcode": "okmodules/okBarcode", "okNprogress": "okmodules/okNprogress", - "okSweetalert2": "okmodules/okSweetalert2", + "okSweetAlert2": "okmodules/okSweetAlert2", }; var modulePath = Object.assign({ layer: "modules/layer", diff --git a/pages/tripartite/okSweetAlert2.html b/pages/tripartite/okSweetAlert2.html new file mode 100644 index 0000000..3268312 --- /dev/null +++ b/pages/tripartite/okSweetAlert2.html @@ -0,0 +1,148 @@ + + + + + okSweetalert2 + + + + +
+
+

SweetAlert2 - 一个强大的纯Js模态消息对话框插件

+
+
+layui.use(["okSweetAlert2"], function () {
+    let okSweetAlert2 = layui.okSweetAlert2;
+    
+ okSweetAlert2.fire("欢迎使用ok-admin"); +
+ okSweetAlert2.fire( + "关于ok-admin的问题", + "你觉得ok-admin好用吗?", + "question" + ); +
+ okSweetAlert2.fire({ + type: "error", + title: "糟糕", + text: "服务器好像开小差了!", + footer: "为什么会有这个问题?" + }); +
+ okSweetAlert2.fire({ + type: "info", + title: "HTML example", + html: "You can use bold text, " + + "links " + + "and other HTML tags", + showCloseButton: true, + showCancelButton: true, + focusConfirm: false, + confirmButtonText: " Great!", + confirmButtonAriaLabel: "Thumbs up, great!", + cancelButtonText: "", + cancelButtonAriaLabel: "Thumbs down" + }); +
+ okSweetAlert2.fire({ + type: "warning", + title: "你确定要这样操作吗?", + text: "此操作您将无法还原!", + showCancelButton: true, + confirmButtonColor: "#3085d6", + cancelButtonColor: "#d33", + confirmButtonText: "确定", + cancelButtonText: "取消" + }).then((result) => { + if (result.value) { + okSweetAlert2.fire( + "删除成功", + "您已经将该记录删除成功!", + "success" + ) + } + }); +}); +
+ + + + + +
+ + + + + diff --git a/pages/tripartite/okSweetalert2.html b/pages/tripartite/okSweetalert2.html deleted file mode 100644 index 33814a3..0000000 --- a/pages/tripartite/okSweetalert2.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - okNprogress - - - - -
-
- - - - -