PageSourceSearch

https://panel.exhadi.org/public/assets/cdns/jquery_loading.js

js exhadi.org collected 2026-10-08 23:06:24 UTC 13,168 bytes, 219 lines download raw bytes

vendor: 13,168 bytes, lines 1-219
1! function(t, e) {
2    if ("object" == typeof exports && "object" == typeof module) module.exports = e(require("jquery"));
3    else if ("function" == typeof define && define.amd) define(["jquery"], e);
4    else { var n = "object" == typeof exports ? e(require("jquery")) : e(t.jQuery); for (var i in n)("object" == typeof exports ? exports : t)[i] = n[i] }
5}(window, function(t) {
6    return function(t) {
7        var e = {};
8
9        function n(i) { if (e[i]) return e[i].exports; var o = e[i] = { i: i, l: !1, exports: {} }; return t[i].call(o.exports, o, o.exports, n), o.l = !0, o.exports }
10        return n.m = t, n.c = e, n.d = function(t, e, i) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i }) }, n.r = function(t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function(t, e) {
11            if (1 & e && (t = n(t)), 8 & e) return t;
12            if (4 & e && "object" == typeof t && t && t.__esModule) return t;
13            var i = Object.create(null);
14            if (n.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t)
15                for (var o in t) n.d(i, o, function(e) { return t[e] }.bind(null, o));
16            return i
17        }, n.n = function(t) { var e = t && t.__esModule ? function() { return t.default } : function() { return t }; return n.d(e, "a", e), e }, n.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = 1)
18    }([function(e, n) { e.exports = t }, function(t, e, n) {
19        "use strict";
20        n.r(e);
21        var i = n(0),
22            o = n.n(i);
23        n(2);
24        const r = function(t, e) { this.element = t, this.settings = o.a.extend({}, r.defaults, e), this.settings.fullPage = this.element.is("body"), this.init(), this.settings.start && this.start() };
25        r.defaults = { overlay: void 0, zIndex: void 0, message: "Loading...", theme: "light", shownClass: "loading-shown", hiddenClass: "loading-hidden", stoppable: !1, start: !0, onStart: function(t) { t.overlay.fadeIn(150) }, onStop: function(t) { t.overlay.fadeOut(150) }, onClick: function() {} }, r.setDefaults = function(t) { r.defaults = o.a.extend({}, r.defaults, t) }, o.a.extend(r.prototype, {
26            init: function() { this.isActive = !1, this.overlay = this.settings.overlay || this.createOverlay(), this.resize(), this.attachMethodsToExternalEvents(), this.attachOptionsHandlers() },
27            createOverlay: function() {
28                var t = o()('<div class="loading-overlay loading-theme-' + this.settings.theme + '"><div class="loading-overlay-content">' + this.settings.message + "</div></div>").addClass(this.settings.hiddenClass).hide().appendTo("body"),
29                    e = this.element.attr("id");
30                return e && t.attr("id", e + "_loading-overlay"), t
31            },
32            attachMethodsToExternalEvents: function() {
33                var t = this;
34                t.element.on("loading.start", function() { t.overlay.removeClass(t.settings.hiddenClass).addClass(t.settings.shownClass) }), t.element.on("loading.stop", function() { t.overlay.removeClass(t.settings.shownClass).addClass(t.settings.hiddenClass) }), t.settings.stoppable && t.overlay.on("click", function() { t.stop() }), t.overlay.on("click", function() { t.element.trigger("loading.click", t) }), o()(window).on("resize", function() { t.resize() }), o()(function() { t.resize() })
35            },
36            attachOptionsHandlers: function() {
37                var t = this;
38                t.element.on("loading.start", function(e, n) { t.settings.onStart(n) }), t.element.on("loading.stop", function(e, n) { t.settings.onStop(n) }), t.element.on("loading.click", function(e, n) { t.settings.onClick(n) })
39            },
40            calcZIndex: function() { return void 0 !== this.settings.zIndex ? this.settings.zIndex : (parseInt(this.element.css("z-index")) || 0) + 1 + this.settings.fullPage },
41            resize: function() {
42                var t = this.element,
43                    e = t.outerWidth(),
44                    n = t.outerHeight();
45                this.settings.fullPage && (n = "100%", e = "100%"), this.overlay.css({ position: this.settings.fullPage ? "fixed" : "absolute", zIndex: this.calcZIndex(), top: t.offset().top, left: t.offset().left, width: e, height: n })
46            },
47            start: function() { this.isActive = !0, this.resize(), this.element.trigger("loading.start", this) },
48            stop: function() { this.isActive = !1, this.element.trigger("loading.stop", this) },
49            active: function() { return this.isActive },
50            toggle: function() { this.active() ? this.stop() : this.start() },
51            destroy: function() { this.overlay.remove() }
52        });
53        var s = "jquery-loading";
54        o.a.fn.loading = function(t) {
55            return this.each(function() {
56                var e = o.a.data(this, s);
57                e ? void 0 === t ? e.start() : "string" == typeof t ? e[t].apply(e) : (e.destroy(), o.a.data(this, s, new r(o()(this), t))) : void 0 !== t && "object" != typeof t && "start" !== t && "toggle" !== t || o.a.data(this, s, new r(o()(this), t))
58            })
59        }, o.a.fn.Loading = function(t) { var e = o()(this).data(s); return e && void 0 === t || o()(this).data(s, e = new r(o()(this), t)), e }, o.a.expr[":"].loading = function(t) { var e = o.a.data(t, s); return !!e && e.active() }, o.a.Loading = r
60    }, function(t, e, n) {
61        var i = n(3);
62        "string" == typeof i && (i = [
63            [t.i, i, ""]
64        ]);
65        var o = { insert: "head", singleton: !1 };
66        n(5)(i, o);
67        i.locals && (t.exports = i.locals)
68    }, function(t, e, n) {
69        (t.exports = n(4)(!1)).push([t.i, "/* Default jquery-loading styles */\r\n\r\n.loading-overlay {\r\n  display: table;\r\n  opacity: 0.7;\r\n}\r\n\r\n.loading-overlay-content {\r\n  text-transform: uppercase;\r\n  font-size: 1.15em;\r\n  font-weight: bold;\r\n  text-align: center;\r\n  display: table-cell;\r\n  vertical-align: middle;\r\n}\r\n\r\n.loading-overlay.loading-theme-light {\r\n  background-color: #fff;\r\n  color: #000;\r\n}\r\n\r\n.loading-overlay.loading-theme-dark {\r\n  background-color: #000;\r\n  color: #fff;\r\n}\r\n", ""])
70    }, function(t, e, n) {
71        "use strict";
72        t.exports = function(t) {
73            var e = [];
74            return e.toString = function() {
75                return this.map(function(e) {
76                    var n = function(t, e) {
77                        var n = t[1] || "",
78                            i = t[3];
79                        if (!i) return n;
80                        if (e && "function" == typeof btoa) {
81                            var o = (s = i, a = btoa(unescape(encodeURIComponent(JSON.stringify(s)))), l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a), "/*# ".concat(l, " */")),
82                                r = i.sources.map(function(t) { return "/*# sourceURL=".concat(i.sourceRoot).concat(t, " */") });
83                            return [n].concat(r).concat([o]).join("\n")
84                        }
85                        var s, a, l;
86                        return [n].join("\n")
87                    }(e, t);
88                    return e[2] ? "@media ".concat(e[2], "{").concat(n, "}") : n
89                }).join("")
90            }, e.i = function(t, n) {
91                "string" == typeof t && (t = [
92                    [null, t, ""]
93                ]);
94                for (var i = {}, o = 0; o < this.length; o++) {
95                    var r = this[o][0];
96                    null != r && (i[r] = !0)
97                }
98                for (var s = 0; s < t.length; s++) {
99                    var a = t[s];
100                    null != a[0] && i[a[0]] || (n && !a[2] ? a[2] = n : n && (a[2] = "(".concat(a[2], ") and (").concat(n, ")")), e.push(a))
101                }
102            }, e
103        }
104    }, function(t, e, n) {
105        "use strict";
106        var i, o = {},
107            r = function() { return void 0 === i && (i = Boolean(window && document && document.all && !window.atob)), i },
108            s = function() {
109                var t = {};
110                return function(e) {
111                    if (void 0 === t[e]) {
112                        var n = document.querySelector(e);
113                        if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement) try { n = n.contentDocument.head } catch (t) { n = null }
114                        t[e] = n
115                    }
116                    return t[e]
117                }
118            }();
119
120        function a(t, e) {
121            for (var n = [], i = {}, o = 0; o < t.length; o++) {
122                var r = t[o],
123                    s = e.base ? r[0] + e.base : r[0],
124                    a = { css: r[1], media: r[2], sourceMap: r[3] };
125                i[s] ? i[s].parts.push(a) : n.push(i[s] = { id: s, parts: [a] })
126            }
127            return n
128        }
129
130        function l(t, e) {
131            for (var n = 0; n < t.length; n++) {
132                var i = t[n],
133                    r = o[i.id],
134                    s = 0;
135                if (r) { for (r.refs++; s < r.parts.length; s++) r.parts[s](i.parts[s]); for (; s < i.parts.length; s++) r.parts.push(v(i.parts[s], e)) } else {
136                    for (var a = []; s < i.parts.length; s++) a.push(v(i.parts[s], e));
137                    o[i.id] = { id: i.id, refs: 1, parts: a }
138                }
139            }
140        }
141
142        function c(t) {
143            var e = document.createElement("style");
144            if (void 0 === t.attributes.nonce) {
145                var i = n.nc;
146                i && (t.attributes.nonce = i)
147            }
148            if (Object.keys(t.attributes).forEach(function(n) { e.setAttribute(n, t.attributes[n]) }), "function" == typeof t.insert) t.insert(e);
149            else {
150                var o = s(t.insert || "head");
151                if (!o) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
152                o.appendChild(e)
153            }
154            return e
155        }
156        var u, d = (u = [], function(t, e) { return u[t] = e, u.filter(Boolean).join("\n") });
157
158        function f(t, e, n, i) {
159            var o = n ? "" : i.css;
160            if (t.styleSheet) t.styleSheet.cssText = d(e, o);
161            else {
162                var r = document.createTextNode(o),
163                    s = t.childNodes;
164                s[e] && t.removeChild(s[e]), s.length ? t.insertBefore(r, s[e]) : t.appendChild(r)
165            }
166        }
167        var h = null,
168            p = 0;
169
170        function v(t, e) {
171            var n, i, o;
172            if (e.singleton) {
173                var r = p++;
174                n = h || (h = c(e)), i = f.bind(null, n, r, !1), o = f.bind(null, n, r, !0)
175            } else n = c(e), i = function(t, e, n) {
176                var i = n.css,
177                    o = n.media,
178                    r = n.sourceMap;
179                if (o && t.setAttribute("media", o), r && btoa && (i += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r)))), " */")), t.styleSheet) t.styleSheet.cssText = i;
180                else {
181                    for (; t.firstChild;) t.removeChild(t.firstChild);
182                    t.appendChild(document.createTextNode(i))
183                }
184            }.bind(null, n, e), o = function() {
185                ! function(t) {
186                    if (null === t.parentNode) return !1;
187                    t.parentNode.removeChild(t)
188                }(n)
189            };
190            return i(t),
191                function(e) {
192                    if (e) {
193                        if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap) return;
194                        i(t = e)
195                    } else o()
196                }
197        }
198        t.exports = function(t, e) {
199            (e = e || {}).attributes = "object" == typeof e.attributes ? e.attributes : {}, e.singleton || "boolean" == typeof e.singleton || (e.singleton = r());
200            var n = a(t, e);
201            return l(n, e),
202                function(t) {
203                    for (var i = [], r = 0; r < n.length; r++) {
204                        var s = n[r],
205                            c = o[s.id];
206                        c && (c.refs--, i.push(c))
207                    }
208                    t && l(a(t, e), e);
209                    for (var u = 0; u < i.length; u++) {
210                        var d = i[u];
211                        if (0 === d.refs) {
212                            for (var f = 0; f < d.parts.length; f++) d.parts[f]();
213                            delete o[d.id]
214                        }
215                    }
216                }
217        }
218    }])
219});

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.