PageSourceSearch

https://chuckbaldwinlive.com/DesktopModules/Mandeeps/Libraries/Com…/1.1.3/js/sweetalert.min.js?cdv=236

js chuckbaldwinlive.com collected 2026-10-03 23:27:46 UTC 18,991 bytes, 1 lines download raw bytes

1!function (e, t, n) { "use strict"; !function e(t, n, o) { function a(s, l) { if (!n[s]) { if (!t[s]) { var i = "function" == typeof require && require; if (!l && i) return i(s, !0); if (r) return r(s, !0); var u = new Error("Cannot find module '" + s + "'"); throw u.code = "MODULE_NOT_FOUND", u } var c = n[s] = { exports: {} }; t[s][0].call(c.exports, function (e) { var n = t[s][1][e]; return a(n || e) }, c, c.exports, e, t, n, o) } return n[s].exports } for (var r = "function" == typeof require && require, s = 0; s < o.length; s++) a(o[s]); return a }({ 1: [function (o, a, r) { function s(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(r, "__esModule", { value: !0 }); var l, i, u, c, d = o("./modules/handle-dom"), f = o("./modules/utils"), p = o("./modules/handle-swal-dom"), m = o("./modules/handle-click"), v = s(o("./modules/handle-key")), y = s(o("./modules/default-params")), b = s(o("./modules/set-params")); r.default = u = c = function () { function o(e) { var t = a; return t[e] === n ? y.default[e] : t[e] } var a = arguments[0]; if ((0, d.addClass)(t.body, "stop-scrolling"), (0, p.resetInput)(), a === n) return (0, f.logStr)("SweetAlert expects at least 1 attribute!"), !1; var r = (0, f.extend)({}, y.default); switch (typeof a) { case "string": r.title = a, r.text = arguments[1] || "", r.type = arguments[2] || ""; break; case "object": if (a.title === n) return (0, f.logStr)('Missing "title" argument!'), !1; r.title = a.title; for (var s in y.default) r[s] = o(s); r.confirmButtonText = r.showCancelButton ? "Confirm" : y.default.confirmButtonText, r.confirmButtonText = o("confirmButtonText"), r.doneFunction = arguments[1] || null; break; default: return (0, f.logStr)('Unexpected type of argument! Expected "string" or "object", got ' + typeof a), !1 } (0, b.default)(r), (0, p.fixVerticalPosition)(), (0, p.openModal)(arguments[1]); for (var u = (0, p.getModal)(), h = u.querySelectorAll("button"), g = ["onclick", "onmouseover", "onmouseout", "onmousedown", "onmouseup", "onfocus"], w = function (e) { return (0, m.handleButton)(e, r, u) }, C = 0; C < h.length; C++) for (var S = 0; S < g.length; S++) { var x = g[S]; h[C][x] = w } (0, p.getOverlay)().onclick = w, l = e.onkeydown; e.onkeydown = function (e) { return (0, v.default)(e, r, u) }, e.onfocus = function () { setTimeout(function () { i !== n && (i.focus(), i = n) }, 0) }, c.enableButtons() }, u.setDefaults = c.setDefaults = function (e) { if (!e) throw new Error("userParams is required"); if ("object" != typeof e) throw new Error("userParams has to be a object"); (0, f.extend)(y.default, e) }, u.close = c.close = function () { var o = (0, p.getModal)(); (0, d.fadeOut)((0, p.getOverlay)(), 5), (0, d.fadeOut)(o, 5), (0, d.removeClass)(o, "showSweetAlert"), (0, d.addClass)(o, "hideSweetAlert"), (0, d.removeClass)(o, "visible"); var a = o.querySelector(".sa-icon.sa-success"); (0, d.removeClass)(a, "animate"), (0, d.removeClass)(a.querySelector(".sa-tip"), "animateSuccessTip"), (0, d.removeClass)(a.querySelector(".sa-long"), "animateSuccessLong"); var r = o.querySelector(".sa-icon.sa-error"); (0, d.removeClass)(r, "animateErrorIcon"), (0, d.removeClass)(r.querySelector(".sa-x-mark"), "animateXMark"); var s = o.querySelector(".sa-icon.sa-warning"); return (0, d.removeClass)(s, "pulseWarning"), (0, d.removeClass)(s.querySelector(".sa-body"), "pulseWarningIns"), (0, d.removeClass)(s.querySelector(".sa-dot"), "pulseWarningIns"), setTimeout(function () { var e = o.getAttribute("data-custom-class"); (0, d.removeClass)(o, e) }, 300), (0, d.removeClass)(t.body, "stop-scrolling"), e.onkeydown = l, e.previousActiveElement && e.previousActiveElement.focus(), i = n, clearTimeout(o.timeout), !0 }, u.showInputError = c.showInputError = function (e) { var t = (0, p.getModal)(), n = t.querySelector(".sa-input-error"); (0, d.addClass)(n, "show"); var o = t.querySelector(".sa-error-container"); (0, d.addClass)(o, "show"), o.querySelector("p").innerHTML = e, setTimeout(function () { u.enableButtons() }, 1), t.querySelector("input").focus() }, u.resetInputError = c.resetInputError = function (e) { if (e && 13 === e.keyCode) return !1; var t = (0, p.getModal)(), n = t.querySelector(".sa-input-error"); (0, d.removeClass)(n, "show"); var o = t.querySelector(".sa-error-container"); (0, d.removeClass)(o, "show") }, u.disableButtons = c.disableButtons = function (e) { var t = (0, p.getModal)(), n = t.querySelector("button.confirm"), o = t.querySelector("button.cancel"); n.disabled = !0, o.disabled = !0 }, u.enableButtons = c.enableButtons = function (e) { var t = (0, p.getModal)(), n = t.querySelector("button.confirm"), o = t.querySelector("button.cancel"); n.disabled = !1, o.disabled = !1 }, void 0 !== e ? e.sweetAlert = e.swal = u : (0, f.logStr)("SweetAlert is a frontend module!"), a.exports = r.default }, { "./modules/default-params": 2, "./modules/handle-click": 3, "./modules/handle-dom": 4, "./modules/handle-key": 5, "./modules/handle-swal-dom": 6, "./modules/set-params": 8, "./modules/utils": 9 }], 2: [function (e, t, n) { Object.defineProperty(n, "__esModule", { value: !0 }); var o = { title: "", text: "", type: null, allowOutsideClick: !1, showConfirmButton: !0, showCancelButton: !1, closeOnConfirm: !0, closeOnCancel: !0, confirmButtonText: "OK", confirmButtonColor: "#8CD4F5", cancelButtonText: "Cancel", imageUrl: null, imageSize: null, timer: null, customClass: "", html: !1, animation: !0, allowEscapeKey: !0, inputType: "text", inputPlaceholder: "", inputValue: "", showLoaderOnConfirm: !1 }; n.default = o, t.exports = n.default }, {}], 3: [function (t, n, o) { Object.defineProperty(o, "__esModule", { value: !0 }); var a = t("./utils"), r = (t("./handle-swal-dom"), t("./handle-dom")), s = function (e, t) { var n = !0; (0, r.hasClass)(e, "show-input") && ((n = e.querySelector("input").value) || (n = "")), t.doneFunction(n), t.closeOnConfirm && sweetAlert.close(), t.showLoaderOnConfirm && sweetAlert.disableButtons() }, l = function (e, t) { var n = String(t.doneFunction).replace(/\s/g, ""); "function(" === n.substring(0, 9) && ")" !== n.substring(9, 10) && t.doneFunction(!1), t.closeOnCancel && sweetAlert.close() }; o.default = { handleButton: function (t, n, o) { function i(e) { m && n.confirmButtonColor && (p.style.backgroundColor = e) } var u, c, d, f = t || e.event, p = f.target || f.srcElement, m = -1 !== p.className.indexOf("confirm"), v = -1 !== p.className.indexOf("sweet-overlay"), y = (0, r.hasClass)(o, "visible"), b = n.doneFunction && "true" === o.getAttribute("data-has-done-function"); switch (m && n.confirmButtonColor && (u = n.confirmButtonColor, c = (0, a.colorLuminance)(u, -.04), d = (0, a.colorLuminance)(u, -.14)), f.type) { case "mouseover": i(c); break; case "mouseout": i(u); break; case "mousedown": i(d); break; case "mouseup": i(c); break; case "focus": var h = o.querySelector("button.confirm"), g = o.querySelector("button.cancel"); m ? g.style.boxShadow = "none" : h.style.boxShadow = "none"; break; case "click": var w = o === p, C = (0, r.isDescendant)(o, p); if (!w && !C && y && !n.allowOutsideClick) break; m && b && y ? s(o, n) : b && y || v ? l(o, n) : (0, r.isDescendant)(o, p) && "BUTTON" === p.tagName && sweetAlert.close() } }, handleConfirm: s, handleCancel: l }, n.exports = o.default }, { "./handle-dom": 4, "./handle-swal-dom": 6, "./utils": 9 }], 4: [function (n, o, a) { Object.defineProperty(a, "__esModule", { value: !0 }); var r = function (e, t) { return new RegExp(" " + t + " ").test(" " + e.className + " ") }, s = function (e) { e.style.opacity = "", e.style.display = "block" }, l = function (e) { e.style.opacity = "", e.style.display = "none" }; a.hasClass = r, a.addClass = function (e, t) { r(e, t) || (e.className += " " + t) }, a.removeClass = function (e, t) { var n = " " + e.className.replace(/[\t\r\n]/g, " ") + " "; if (r(e, t)) { for (; n.indexOf(" " + t + " ") >= 0;) n = n.replace(" " + t + " ", " "); e.className = n.replace(/^\s+|\s+$/g, "") } }, a.escapeHtml = function (e) { var n = t.createElement("div"); return n.appendChild(t.createTextNode(e)), n.innerHTML }, a._show = s, a.show = function (e) { if (e && !e.length) return s(e); for (var t = 0; t < e.length; ++t) s(e[t]) }, a._hide = l, a.hide = function (e) { if (e && !e.length) return l(e); for (var t = 0; t < e.length; ++t) l(e[t]) }, a.isDescendant = function (e, t) { for (var n = t.parentNode; null !== n;) { if (n === e) return !0; n = n.parentNode } return !1 }, a.getTopMargin = function (e) { e.style.left = "-9999px", e.style.display = "block"; var t, n = e.clientHeight; return t = "undefined" != typeof getComputedStyle ? parseInt(getComputedStyle(e).getPropertyValue("padding-top"), 10) : parseInt(e.currentStyle.padding), e.style.left = "", e.style.display = "none", "-" + parseInt((n + t) / 2) + "px" }, a.fadeIn = function (e, t) { if (+e.style.opacity < 1) { t = t || 16, e.style.opacity = 0, e.style.display = "block"; var n = +new Date; !function o() { e.style.opacity = +e.style.opacity + (new Date - n) / 100, n = +new Date, +e.style.opacity < 1 && setTimeout(o, t) }() } e.style.display = "block" }, a.fadeOut = function (e, t) { t = t || 16, e.style.opacity = 1; var n = +new Date; !function o() { e.style.opacity = +e.style.opacity - (new Date - n) / 100, n = +new Date, +e.style.opacity > 0 ? setTimeout(o, t) : e.style.display = "none" }() }, a.fireClick = function (n) { if ("function" == typeof MouseEvent) { var o = new MouseEvent("click", { view: e, bubbles: !1, cancelable: !0 }); n.dispatchEvent(o) } else if (t.createEvent) { var a = t.createEvent("MouseEvents"); a.initEvent("click", !1, !1), n.dispatchEvent(a) } else t.createEventObject ? n.fireEvent("onclick") : "function" == typeof n.onclick && n.onclick() }, a.stopEventPropagation = function (t) { "function" == typeof t.stopPropagation ? (t.stopPropagation(), t.preventDefault()) : e.event && e.event.hasOwnProperty("cancelBubble") && (e.event.cancelBubble = !0) } }, {}], 5: [function (t, o, a) { Object.defineProperty(a, "__esModule", { value: !0 }); var r = t("./handle-dom"), s = t("./handle-swal-dom"); a.default = function (t, o, a) { var l = t || e.event, i = l.keyCode || l.which, u = a.querySelector("button.confirm"), c = a.querySelector("button.cancel"), d = a.querySelectorAll("button[tabindex]"); if (-1 !== [9, 13, 32, 27].indexOf(i)) { for (var f = l.target || l.srcElement, p = -1, m = 0; m < d.length; m++) if (f === d[m]) { p = m; break } 9 === i ? (f = -1 === p ? u : p === d.length - 1 ? d[0] : d[p + 1], (0, r.stopEventPropagation)(l), f.focu
1s(), o.confirmButtonColor && (0, s.setFocusStyle)(f, o.confirmButtonColor)) : 13 === i ? ("INPUT" === f.tagName && (f = u, u.focus()), f = -1 === p ? u : n) : 27 === i && !0 === o.allowEscapeKey ? (f = c, (0, r.fireClick)(f, l)) : f = n } }, o.exports = a.default }, { "./handle-dom": 4, "./handle-swal-dom": 6 }], 6: [function (n, o, a) { function r(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(a, "__esModule", { value: !0 }); var s = n("./utils"), l = n("./handle-dom"), i = r(n("./default-params")), u = r(n("./injected-html")), c = function () { var e = t.createElement("div"); for (e.innerHTML = u.default; e.firstChild;) t.body.appendChild(e.firstChild) }, d = function e() { var n = t.querySelector(".sweet-alert"); return n || (c(), n = e()), n }, f = function () { var e = d(); if (e) return e.querySelector("input") }, p = function () { return t.querySelector(".sweet-overlay") }, m = function (e) { if (e && 13 === e.keyCode) return !1; var t = d(), n = t.querySelector(".sa-input-error"); (0, l.removeClass)(n, "show"); var o = t.querySelector(".sa-error-container"); (0, l.removeClass)(o, "show") }; a.sweetAlertInitialize = c, a.getModal = d, a.getOverlay = p, a.getInput = f, a.setFocusStyle = function (e, t) { var n = (0, s.hexToRgb)(t); e.style.boxShadow = "0 0 2px rgba(" + n + ", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)" }, a.openModal = function (n) { var o = d(); (0, l.fadeIn)(p(), 10), (0, l.show)(o), (0, l.addClass)(o, "showSweetAlert"), (0, l.removeClass)(o, "hideSweetAlert"), e.previousActiveElement = t.activeElement, o.querySelector("button.confirm").focus(), setTimeout(function () { (0, l.addClass)(o, "visible") }, 500); var a = o.getAttribute("data-timer"); if ("null" !== a && "" !== a) { var r = n; o.timeout = setTimeout(function () { (r || null) && "true" === o.getAttribute("data-has-done-function") ? r(null) : sweetAlert.close() }, a) } }, a.resetInput = function () { var e = d(), t = f(); (0, l.removeClass)(e, "show-input"), t.value = i.default.inputValue, t.setAttribute("type", i.default.inputType), t.setAttribute("placeholder", i.default.inputPlaceholder), m() }, a.resetInputError = m, a.fixVerticalPosition = function () { d().style.marginTop = (0, l.getTopMargin)(d()) } }, { "./default-params": 2, "./handle-dom": 4, "./injected-html": 7, "./utils": 9 }], 7: [function (e, t, n) { Object.defineProperty(n, "__esModule", { value: !0 }); n.default = '<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">
1\n      <span class="sa-x-mark">\n        <span class="sa-line sa-left"></span>\n        <span class="sa-line sa-right"></span>\n      </span>\n    </div><div class="sa-icon sa-warning">\n      <span class="sa-body"></span>\n      <span class="sa-dot"></span>\n    </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n      <span class="sa-line sa-tip"></span>\n      <span class="sa-line sa-long"></span>\n\n      <div class="sa-placeholder"></div>\n      <div class="sa-fix"></div>\n    </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n    <p>Text</p>\n    <fieldset>\n      <input type="text" tabIndex="3" />\n      <div class="sa-input-error"></div>\n    </fieldset><div class="sa-error-container">\n      <div class="icon">!</div>\n      <p>Not valid!</p>\n    </div><div class="sa-button-container">\n     <div class="sa-confirm-button-container">\n        <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n          <div></div>\n          <div></div>\n          <div></div>\n        </div>\n      </div>\n  <button class="cancel" tabIndex="2">Cancel</button>\n   </div></div>', t.exports = n.default }, {}], 8: [function (e, t, o) { Object.defineProperty(o, "__esModule", { value: !0 }); var a = e("./utils"), r = e("./handle-swal-dom"), s = e("./handle-dom"), l = ["error", "warning", "info", "success", "input", "prompt"]; o.default = function (e) { var t = (0, r.getModal)(), o = t.querySelector("h2"), i = t.querySelector("p"), u = t.querySelector("button.cancel"), c = t.querySelector("button.confirm"); if (o.innerHTML = e.html ? e.title : (0, s.escapeHtml)(e.title).split("\n").join("<br>"), i.innerHTML = e.html ? e.text : (0, s.escapeHtml)(e.text || "").split("\n").join("<br>"), e.text && (0, s.show)(i), e.customClass) (0, s.addClass)(t, e.customClass), t.setAttribute("data-custom-class", e.customClass); else { var d = t.getAttribute("data-custom-class"); (0, s.removeClass)(t, d), t.setAttribute("data-custom-class", "") } if ((0, s.hide)(t.querySelectorAll(".sa-icon")), e.type && !(0, a.isIE8)()) { var f = function () { for (var o = !1, a = 0; a < l.length; a++) if (e.type === l[a]) { o = !0; break } if (!o) return logStr("Unknown alert type: " + e.type), { v: !1 }; var i = n; -1 !== ["success", "error", "warning", "info"].indexOf(e.type) && (i = t.querySelector(".sa-icon.sa-" + e.type), (0, s.show)(i)); var u = (0, r.getInput)(); switch (e.type) { case "success": (0, s.addClass)(i, "animate"), (0, s.addClass)(i.querySelector(".sa-tip"), "animateSuccessTip"), (0, s.addClass)(i.querySelector(".sa-long"), "animateSuccessLong"); break; case "error": (0, s.addClass)(i, "animateErrorIcon"), (0, s.addClass)(i.querySelector(".sa-x-mark"), "animateXMark"); break; case "warning": (0, s.addClass)(i, "pulseWarning"), (0, s.addClass)(i.querySelector(".sa-body"), "pulseWarningIns"), (0, s.addClass)(i.querySelector(".sa-dot"), "pulseWarningIns"); break; case "input": case "prompt": u.setAttribute("type", e.inputType), u.value = e.inputValue, u.setAttribute("placeholder", e.inputPlaceholder), (0, s.addClass)(t, "show-input"), setTimeout(function () { u.focus(), u.addEventListener("keyup", swal.resetInputError) }, 400) } }(); if ("object" == typeof f) return f.v } if (e.imageUrl) { var p = t.querySelector(".sa-icon.sa-custom"); p.style.backgroundImage = "url(" + e.imageUrl + ")", (0, s.show)(p); var m = 80, v = 80; if (e.imageSize) { var y = e.imageSize.toString().split("x"), b = y[0], h = y[1]; b && h ? (m = b, v = h) : logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got " + e.imageSize) } p.setAttribute("style", p.getAttribute("style") + "width:" + m + "px; height:" + v + "px") } t.setAttribute("data-has-cancel-button", e.showCancelButton), e.showCancelButton ? u.style.display = "inline-block" : (0, s.hide)(u), t.setAttribute("data-has-confirm-button", e.showConfirmButton), e.showConfirmButton ? c.style.display = "inline-block" : (0, s.hide)(c), e.cancelButtonText && (u.innerHTML = (0, s.escapeHtml)(e.cancelButtonText)), e.confirmButtonText && (c.innerHTML = (0, s.escapeHtml)(e.confirmButtonText)), e.confirmButtonColor && (c.style.backgroundColor = e.confirmButtonColor, c.style.borderLeftColor = e.confirmLoadingButtonColor, c.style.borderRightColor = e.confirmLoadingButtonColor, (0, r.setFocusStyle)(c, e.confirmButtonColor)), t.setAttribute("data-allow-outside-click", e.allowOutsideClick); var g = !!e.doneFunction; t.setAttribute("data-has-done-function", g), e.animation ? "string" == typeof e.animation ? t.setAttribute("data-animation", e.animation) : t.setAttribute("data-animation", "pop") : t.setAttribute("data-animation", "none"), t.setAttribute("data-timer", e.timer) }, t.exports = o.default }, { "./handle-dom": 4, "./handle-swal-dom": 6, "./utils": 9 }], 9: [function (t, n, o) { Object.defineProperty(o, "__esModule", { value: !0 }); o.extend = function (e, t) { for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); return e }, o.hexToRgb = function (e) { var t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e); return t ? parseInt(t[1], 16) + ", " + parseInt(t[2], 16) + ", " + parseInt(t[3], 16) : null }, o.isIE8 = function () { return e.attachEvent && !e.addEventListener }, o.logStr = function (t) { void 0 !== e && e.console && e.console.log("SweetAlert: " + t) }, o.colorLuminance = function (e, t) { (e = String(e).replace(/[^0-9a-f]/gi, "")).length < 6 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]), t = t || 0; var n, o, a = "#"; for (o = 0; o < 3;
1 o++) n = parseInt(e.substr(2 * o, 2), 16), a += ("00" + (n = Math.round(Math.min(Math.max(0, n + n * t), 255)).toString(16))).substr(n.length); return a } }, {}] }, {}, [1]), "function" == typeof define && define.amd ? define(function () { return sweetAlert }) : "undefined" != typeof module && module.exports && (module.exports = sweetAlert) }(window, document);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.