PageSourceSearch

https://matexmotors.com/Content/assets/plugins/sweet-alert/sweetalert.min.js

js matexmotors.com collected 2026-10-02 00:53:19 UTC 22,394 bytes, 169 lines download raw bytes

1!function (e, t, n) {
2    "use strict"; !function o(e, t, n) {
3        function a(s, l)
4        {
5            if (!t[s]) {
6                if (!e[s]) {
7                    var i = "function" == typeof require && require; if (!l && i) return i(s, !0);
8                    if (r) return r(s, !0); var u = new Error("Cannot find module '" + s + "'"); throw u.code = "MODULE_NOT_FOUND", u
9                } var c = t[s] = { exports: {} }; e[s][0].call(c.exports, function (t)
10                { var n = e[s][1][t]; return a(n ? n : t) }, c, c.exports, o, e, t, n)
11            } return t[s].exports
12        }
13        for (var r = "function" == typeof require && require, s = 0; s < n.length; s++)
14            a(n[s]); return a
15    }({
16        1: [function (o, a, r) {
17            var s = function (e) { return e && e.__esModule ? e : { "default": e } };
18            Object.defineProperty(r, "__esModule", { value: !0 }); var l, i, u, c, d = o("./modules/handle-dom"),
19                f = o("./modules/utils"), p = o("./modules/handle-swal-dom"), m = o("./modules/handle-click"),
20                v = o("./modules/handle-key"), y = s(v), h = o("./modules/default-params"),
21                b = s(h),
22                g = o("./modules/set-params"), w = s(g); r["default"] = u = c = function ()
23            {
24                    function o(e) { var t = a; return t[e] === n ? b["default"][e] : t[e] } var a = arguments[0];
25                    if (d.addClass(t.body, "stop-scrolling"), p.resetInput(), a === n)
26                        return f.logStr("SweetAlert expects at least 1 attribute!"), !1;
27                    var r = f.extend({}, b["default"]); switch (typeof a) {
28                    case "string": r.title = a, r.text = arguments[1] || "", r.type = arguments[2] || ""; break; case "object": if (a.title === n)
29                        return f.logStr('Missing "title" argument!'), !1; r.title = a.title; for (var s in b["default"]) r[s] = o(s); r.confirmButtonText = r.showCancelButton ? "Confirm" : b["default"].confirmButtonText,
30                            r.confirmButtonText = o("confirmButtonText"), r.doneFunction = arguments[1] || null; break; default: return f.logStr('Unexpected type of argument! Expected "string" or "object", got ' + typeof a), !1
31                }w["default"](r), p.fixVerticalPosition(), p.openModal(arguments[1]); for (var u = p.getModal(), v = u.querySelectorAll("button"), h = ["onclick", "onmouseover", "onmouseout", "onmousedown", "onmouseup", "onfocus"],
32                        g = function (e) { return m.handleButton(e, r, u) }, C = 0; C < v.length; C++)for (var S = 0; S < h.length; S++){ var x = h[S]; v[C][x] = g } p.getOverlay().onclick = g, l = e.onkeydown; var k = function (e) { return y["default"](e, r, u) };
33                    e.onkeydown = k, e.onfocus = function () { setTimeout(function () { i !== n && (i.focus(), i = n) }, 0) }, c.enableButtons()
34            }, 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"); f.extend(b["default"], e) }, u.close = c.close = function () {
35                var o = p.getModal(); d.fadeOut(p.getOverlay(), 5),
36                    d.fadeOut(o, 5),
37                    d.removeClass(o, "showSweetAlert"),
38                    d.addClass(o, "hideSweetAlert"),
39                    d.removeClass(o, "visible");
40                var a = o.querySelector(".sa-icon.sa-success");
41                d.removeClass(a, "animate"),
42                    d.removeClass(a.querySelector(".sa-tip"), "animateSuccessTip"),
43                    d.removeClass(a.querySelector(".sa-long"), "animateSuccessLong");
44                var r = o.querySelector(".sa-icon.sa-error"); d.removeClass(r, "animateErrorIcon"),
45                    d.removeClass(r.querySelector(".sa-x-mark"), "animateXMark");
46                var s = o.querySelector(".sa-icon.sa-warning");
47                return d.removeClass(s, "pulseWarning"),
48                    d.removeClass(s.querySelector(".sa-body"), "pulseWarningIns"),
49                    d.removeClass(s.querySelector(".sa-dot"), "pulseWarningIns"),
50                    setTimeout(function () {
51                        var e = o.getAttribute("data-custom-class");
52                        d.removeClass(o, e)
53                    }, 300),
54                    d.removeClass(t.body, "stop-scrolling"), e.onkeydown = l, e.previousActiveElement && e.previousActiveElement.focus(), i = n, clearTimeout(o.timeout), !0
55            },
56                    u.showInputError = c.showInputError = function (e) {
57                        var t = p.getModal(), n = t.querySelector(".sa-input-error"); d.addClass(n, "show"); var o = t.querySelector(".sa-error-container"); d.addClass(o, "show"), o.querySelector("p").innerHTML = e, setTimeout(function () { u.enableButtons() }, 1),
58                            t.querySelector("input").focus()
59                    }, u.resetInputError = c.resetInputError = function (e) {
60                    if (e && 13 === e.keyCode) return !1;
61                    var t = p.getModal(), n = t.querySelector(".sa-input-error"); d.removeClass(n, "show");
62                        var o = t.querySelector(".sa-error-container"); d.removeClass(o, "show")
63                    },
64                    u.disableButtons = c.disableButtons = function () { var e = p.getModal(), t = e.querySelector("button.confirm"), n = e.querySelector("button.cancel"); t.disabled = !0, n.disabled = !0 }, u.enableButtons = c.enableButtons = function () {
65                        var e = p.getModal(), t = e.querySelector("button.confirm"),
66                        n = e.querySelector("button.cancel"); t.disabled = !1, n.disabled = !1
67                    }, "undefined" != typeof e ? e.sweetAlert = e.swal = u : f.logStr("SweetAlert is a frontend module!"), a.exports = r["default"]
68        }, { "./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 }],
69        2: [function (e, t, n) {
70            Object.defineProperty(n, "__esModule", { value: !0 });
71            var o = { title: "", text: "", type: null, allowOutsideClick: !1, showConfirmButton: !0, showCancelButton: !1, closeOnConfirm: !0, closeOnCancel: !0, confirmButtonText: "Exit", 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"]
72        }, {}],
73
74        3: [function (t, n, o) {
75            Object.defineProperty(o, "__esModule", { value: !0 }); var a = t("./utils"), r = (t("./handle-swal-dom"), t("./handle-dom")), s = function (t, n, o) {
76                function s(e) { m && n.confirmButtonColor && (p.style.backgroundColor = e) }
77                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 = r.hasClass(o, "visible"), h = n.doneFunction && "true" === o.getAttribute("data-has-done-function"); switch (m && n.confirmButtonColor && (u = n.confirmButtonColor, c = a.colorLuminance(u, -.04), d = a.colorLuminance(u, -.14)), f.type) {
78                    case "mouseover": s(c); break; case "mouseout": s(u); break; case "mousedown": s(d); break; case "mouseup": s(c); break; case "focus": var b = o.querySelector("button.confirm"),
79                        g = o.querySelector("button.cancel"); m ? g.style.boxShadow = "none" : b.style.boxShadow = "none"; break; case "click": var w = o === p, C = r.isDescendant(o, p); if (!w && !C && y && !n.allowOutsideClick) break; m && h && y ? l(o, n) : h && y || v ? i(o, n) : r.isDescendant(o, p) && "BUTTON" === p.tagName && sweetAlert.close()
80                }
81            },
82                l = function (e, t) { var n = !0; r.hasClass(e, "show-input") && (n = e.querySelector("input").value, n || (n = "")), t.doneFunction(n), t.closeOnConfirm && sweetAlert.close(), t.showLoaderOnConfirm && sweetAlert.disableButtons() }, i = function (e, t) { var n = String(t.doneFunction).replace(/\s/g, ""), o = "function(" === n.substring(0, 9) && ")" !== n.substring(9, 10); o && t.doneFunction(!1), t.closeOnCancel && sweetAlert.close() }; o["default"] = { handleButton: s, handleConfirm: l, handleCancel: i }, n.exports = o["default"]
83        }, { "./handle-dom": 4, "./handle-swal-dom": 6, "./utils": 9 }], 4: [function (n, o, a) {
84            Object.defineProperty(a, "__esModule", { value: !0 });
85            var r = function (e, t) { return new RegExp(" " + t + " ").test(" " + e.className + " ") },
86                s = function (e, t) { r(e, t) || (e.className += " " + t) },
87                l = function (e, t) {
88                    var n = " " + e.className.replace(/[\t\r\n]/g, " ") + " ";
89                    if (r(e, t)) {
90                        for (; n.indexOf(" " + t + " ") >= 0;)n = n.replace(" " + t + " ", " "); e.className = n.replace(/^\s+|\s+$/g, "")
91                    }
92                }, i = function (e) { var n = t.createElement("div"); return n.appendChild(t.createTextNode(e)), n.innerHTML },
93                u = function (e) { e.style.opacity = "", e.style.display = "block" },
94                c = function (e) { if (e && !e.length) return u(e); for (var t = 0; t < e.length; ++t)u(e[t]) },
95                d = function (e) { e.style.opacity = "", e.style.display = "none" }, f = function (e) { if (e && !e.length) return d(e); for (var t = 0; t < e.length; ++t)d(e[t]) },
96                p = function (e, t) { for (var n = t.parentNode; null !== n;){ if (n === e) return !0; n = n.parentNode } return !1 },
97                m = function (e) {
98                    e.style.left = "-9999px", e.style.display = "block"; var t,
99                        n = e.clientHeight; return t = "undefined" != typeof getComputedStyle ? parseInt(getComputedStyle(e).getPropertyValue("padding-top"), 10) : parseInt(e.currentStyle.padding), e.style.left = "",
100                        e.style.display = "none", "-" + parseInt((n + t) / 2) + "px"
101                }, v = function (e, t) {
102                    if (+e.style.opacity < 1) {
103                    t = t || 16, e.style.opacity = 0,
104                            e.style.display = "block"; var n = +new Date,
105                            o = function (e) {
106                                function t() { return e.apply(this, arguments) } return t.toString = function () { return e.toString() }, t
107                            }(function () { e.style.opacity = +e.style.opacity + (new Date - n) / 100, n = +new Date, +e.style.opacity < 1 && setTimeout(o, t) }); o()
108                    } e.style.display = "block"
109                }, y = function (e, t) { t = t || 16, e.style.opacity = 1; var n = +new Date, o = function (e) { function t() { return e.apply(this, arguments) } return t.toString = function () { return e.toString() }, t }(function () { e.style.opacity = +e.style.opacity - (new Date - n) / 100, n = +new Date, +e.style.opacity > 0 ? setTimeout(o, t) : e.style.display = "none" }); o() },
110                h = 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() },
111                b = function (t) {
112                    "function" == typeof t.stopPropagation ? (t.stopPropagation(),
113                        t.preventDefault()) : e.event && e.event.hasOwnProperty("cancelBubble") && (e.event.cancelBubble = !0)
114                }; a.hasClass = r, a.addClass = s, a.removeClass = l, a.escapeHtml = i, a._show = u, a.show = c, a._hide = d, a.hide = f,
115                    a.isDescendant = p, a.getTopMargin = m, a.fadeIn = v, a.fadeOut = y, a.fireClick = h, a.stopEventPropagation = b
116        }, {}], 5: [function (t, o, a) {
117            Object.defineProperty(a, "__esModule", { value: !0 }); var r = t("./handle-dom"), s = t("./handle-swal-dom"), l = function (t, o, a) {
118                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]");
119                if (-1 !== [9, 13, 32, 27].indexOf(i)) {
120                    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], r.stopEventPropagation(l), f.focu
120s(),
121                        o.confirmButtonColor && s.setFocusStyle(f, o.confirmButtonColor)) : 13 === i ? ("INPUT" === f.tagName && (f = u, u.focus()), f = -1 === p ? u : n) : 27 === i && o.allowEscapeKey === !0 ? (f = c, r.fireClick(f, l)) : f = n
122                }
123            }; a["default"] = l, o.exports = a["default"]
124        }, { "./handle-dom": 4, "./handle-swal-dom": 6 }], 6: [function (n, o, a) {
125            var r = function (e) { return e && e.__esModule ? e : { "default": e } }; Object.defineProperty(a, "__esModule", { value: !0 }); var s = n("./utils"), l = n("./handle-dom"), i = n("./default-params"), u = r(i), c = n("./injected-html"), d = r(c), f = ".sweet-alert",
126                p = ".sweet-overlay", m = function () { var e = t.createElement("div"); for (e.innerHTML = d["default"]; e.firstChild;)t.body.appendChild(e.firstChild) }, v = function (e) { function t() { return e.apply(this, arguments) } return t.toString = function () { return e.toString() }, t }(function () { var e = t.querySelector(f); return e || (m(), e = v()), e }), y = function () { var e = v(); return e ? e.querySelector("input") : void 0 },
127                h = function () { return t.querySelector(p) }, b = function (e, t) { var n = s.hexToRgb(t); e.style.boxShadow = "0 0 2px rgba(" + n + ", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)" }, g = function (n) { var o = v(); l.fadeIn(h(), 10), l.show(o), l.addClass(o, "showSweetAlert"), l.removeClass(o, "hideSweetAlert"), e.previousActiveElement = t.activeElement; var a = o.querySelector("button.confirm"); a.focus(), setTimeout(function () { l.addClass(o, "visible") }, 500); var r = o.getAttribute("data-timer"); if ("null" !== r && "" !== r) { var s = n; o.timeout = setTimeout(function () { var e = (s || null) && "true" === o.getAttribute("data-has-done-function"); e ? s(null) : sweetAlert.close() }, r) } },
128                w = function () { var e = v(), t = y(); l.removeClass(e, "show-input"), t.value = u["default"].inputValue, t.setAttribute("type", u["default"].inputType), t.setAttribute("placeholder", u["default"].inputPlaceholder), C() }, C = function (e) { if (e && 13 === e.keyCode) return !1; var t = v(), n = t.querySelector(".sa-input-error"); l.removeClass(n, "show"); var o = t.querySelector(".sa-error-container"); l.removeClass(o, "show") }, S = function () { var e = v(); e.style.marginTop = l.getTopMargin(v()) }; a.sweetAlertInitialize = m, a.getModal = v, a.getOverlay = h, a.getInput = y,
129                    a.setFocusStyle = b, a.openModal = g, a.resetInput = w, a.resetInputError = C, a.fixVerticalPosition = S
130        }, { "./default-params": 2, "./handle-dom": 4, "./injected-html": 7, "./utils": 9 }], 7: [function (e, t, n) {
131            Object.defineProperty(n, "__esModule", { value: !0 });
132            var o = '<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">
132\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 id="PopMessage">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" style="margin-top: 15px;">\n      <button class="cancel" tabIndex="2">Cancel</button>\n      <div class="sa-confirm-button-container">\n        <button class="confirm" tabIndex="1">Exit</button><div class="la-ball-fall">\n          <div></div>\n          <div></div>\n          <div></div>\n        </div>\n      </div>\n    </div></div>'; n["default"] = o,
133                t.exports = n["default"]
134        }, {}], 8: [function (e, t, o) {
135            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"], i = function (e) {
136                var t = 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 : s.escapeHtml(e.title).split("\n").join("<br>"), i.innerHTML = e.html ? e.text : s.escapeHtml(e.text || "").split("\n").join("<br>"), e.text && s.show(i), e.customClass) s.addClass(t, e.customClass), t.setAttribute("data-custom-class", e.customClass);
137                else { var d = t.getAttribute("data-custom-class"); s.removeClass(t, d), t.setAttribute("data-custom-class", "") }
138                if (s.hide(t.querySelectorAll(".sa-icon")), e.type && !a.isIE8()) {
139                    var f = function () {
140                        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 = ["success", "error", "warning", "info"], u = n; -1 !== i.indexOf(e.type) && (u = t.querySelector(".sa-icon.sa-" + e.type), s.show(u)); var c = r.getInput(); switch (e.type) {
141                            case "success": s.addClass(u, "animate"), s.addClass(u.querySelector(".sa-tip"), "animateSuccessTip"), s.addClass(u.querySelector(".sa-long"), "animateSuccessLong"); break; case "error": s.addClass(u, "animateErrorIcon"), s.addClass(u.querySelector(".sa-x-mark"), "animateXMark"); break; case "warning": s.addClass(u, "pulseWarning"), s.addClass(u.querySelector(".sa-body"), "pulseWarningIns"),
142                                s.addClass(u.querySelector(".sa-dot"), "pulseWarningIns"); break; case "input": case "prompt": c.setAttribute("type", e.inputType), c.value = e.inputValue, c.setAttribute("placeholder", e.inputPlaceholder), s.addClass(t, "show-input"), setTimeout(function () { c.focus(), c.addEventListener("keyup", swal.resetInputError) }, 400)
143                        }
144                    }(); if ("object" == typeof f) return f.v
145                }
146                if (e.imageUrl) {
147                    var p = t.querySelector(".sa-icon.sa-custom"); p.style.backgroundImage = "url(" + e.imageUrl + ")", s.show(p); var m = 80, v = 80; if (e.imageSize) { var y = e.imageSize.toString().split("x"), h = y[0], b = y[1]; h && b ? (m = h, v = b) : logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got " + e.imageSize) } p.setAttribute("style", p.getAttribute("style") + "width:" + m + "px; height:" + v + "px")
148                }
149                t.setAttribute("data-has-cancel-button",
150                    e.showCancelButton), e.showCancelButton ? u.style.display = "inline-block" : s.hide(u),
151                    t.setAttribute("data-has-confirm-button",
152                        e.showConfirmButton),
153                    e.showConfirmButton ? c.style.display = "inline-block" : s.hide(c),
154                    e.cancelButtonText && (u.innerHTML = s.escapeHtml(e.cancelButtonText)),
155                    e.confirmButtonText && (c.innerHTML = s.escapeHtml(e.confirmButtonText)),
156                    e.confirmButtonColor && (c.style.backgroundColor = e.confirmButtonColor, c.style.borderLeftColor = e.confirmLoadingButtonColor,
157                        c.style.borderRightColor = e.confirmLoadingButtonColor, r.setFocusStyle(c, e.confirmButtonColor)),
158                    t.setAttribute("data-allow-outside-click", e.allowOutsideClick);
159                var g = e.doneFunction ? !0 : !1; 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)
160            }; o["default"] = i, t.exports = o["default"]
161        }, { "./handle-dom": 4, "./handle-swal-dom": 6, "./utils": 9 }], 9: [function (t, n, o) {
162            Object.defineProperty(o, "__esModule", { value: !0 }); var a = function (e, t) { for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); return e }, r = 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 },
163                s = function () { return e.attachEvent && !e.addEventListener }, l = function (t) { e.console && e.console.log("SweetAlert: " + t) }, i = function (e, t) {
164            e = String(e).replace(/[^0-9a-f]/gi, ""),
165                e.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; 3 > o; o++)n = parseInt(e.substr(2 * o, 2), 16), n = Math.round(Math.min(Math.max(0, n + n * t), 255)).toString(16), a += ("
16500" + n).substr(n.length); return a
166            }; o.extend = a, o.hexToRgb = r, o.isIE8 = s, o.logStr = l, o.colorLuminance = i
167        }, {}]
168    }, {}, [1]), "function" == typeof define && define.amd ? define(function () { return sweetAlert }) : "undefined" != typeof module && module.exports && (module.exports = sweetAlert)
169}(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.