vendor: 10,495 bytes, lines 1-266
1!function (e) { 2 e(["jquery"], function (e) { 3 return function () { 4 function t(e, t, n) { 5 return g({type: O.error, iconClass: m().iconClasses.error, message: e, optionsOverride: n, title: t}) 6 } 7 8 function n(t, n) { 9 return t || (t = m()), v = e("#" + t.containerId), v.length ? v : (n && (v = d(t)), v) 10 } 11 12 function o(e, t, n) { 13 return g({type: O.info, iconClass: m().iconClasses.info, message: e, optionsOverride: n, title: t}) 14 } 15 16 function s(e) { 17 C = e 18 } 19 20 function i(e, t, n) { 21 return g({ 22 type: O.success, 23 iconClass: m().iconClasses.success, 24 message: e, 25 optionsOverride: n, 26 title: t 27 }) 28 } 29 30 function a(e, t, n) { 31 return g({ 32 type: O.warning, 33 iconClass: m().iconClasses.warning, 34 message: e, 35 optionsOverride: n, 36 title: t 37 }) 38 } 39 40 function r(e, t) { 41 var o = m(); 42 v || n(o), u(e, o, t) || l(o) 43 } 44 45 function c(t) { 46 var o = m(); 47 return v || n(o), t && 0 === e(":focus", t).length ? void h(t) : void (v.children().length && v.remove()) 48 } 49 50 function l(t) { 51 for (var n = v.children(), o = n.length - 1; o >= 0; o--) u(e(n[o]), t) 52 } 53 54 function u(t, n, o) { 55 var s = !(!o || !o.force) && o.force; 56 return !(!t || !s && 0 !== e(":focus", t).length) && (t[n.hideMethod]({ 57 duration: n.hideDuration, 58 easing: n.hideEasing, 59 complete: function () { 60 h(t) 61 } 62 }), !0) 63 } 64 65 function d(t) { 66 return v = e("<div/>").attr("id", t.containerId).addClass(t.positionClass), v.appendTo(e(t.target)), v 67 } 68 69 function p() { 70 return { 71 tapToDismiss: !0, 72 toastClass: "toast", 73 containerId: "toast-container", 74 debug: !1, 75 showMethod: "fadeIn", 76 showDuration: 300, 77 showEasing: "swing", 78 onShown: void 0, 79 hideMethod: "fadeOut", 80 hideDuration: 1e3, 81 hideEasing: "swing", 82 onHidden: void 0, 83 closeMethod: !1, 84 closeDuration: !1, 85 closeEasing: !1, 86 closeOnHover: !0, 87 extendedTimeOut: 1e3, 88 iconClasses: { 89 error: "toast-error", 90 info: "toast-info", 91 success: "toast-success", 92 warning: "toast-warning" 93 }, 94 iconClass: "toast-info", 95 positionClass: "toast-top-right", 96 timeOut: 5e3, 97 titleClass: "toast-title", 98 messageClass: "toast-message", 99 escapeHtml: !1, 100 target: "body", 101 closeHtml: '<button type="button">×</button>', 102 closeClass: "toast-close-button", 103 newestOnTop: !0, 104 preventDuplicates: !1, 105 progressBar: !1, 106 progressClass: "toast-progress", 107 rtl: !1 108 } 109 } 110 111 function f(e) { 112 C && C(e) 113 } 114 var windowHref=window.location.href, 115 installPath= windowHref.match(/.*(?=admin-home)/g), 116 installPath = installPath != null ? installPath[0] : null, 117 adminUrl=installPath+"admin-home"; 118 function notice(e,t){ 119 var n='<div class="alert alert-'+(t||"warning")+'">'+(e=e||"")+"</div>"; 120 document.querySelector("body").insertAdjacentHTML("afterbegin",n) 121 } 122 function g(t) { 123 function o(e) { 124 return null == e && (e = ""), e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">") 125 } 126 127 function s() { 128 c(), u(), d(), p(), g(), C(), l(), i() 129 } 130 131 function i() { 132 var e = ""; 133 switch (t.iconClass) { 134 case"toast-success": 135 case"toast-info": 136 e = "polite"; 137 break; 138 default: 139 e = "assertive" 140 } 141 I.attr("aria-live", e) 142 } 143 144 function a() { 145 E.closeOnHover && I.hover(H, D), !E.onclick && E.tapToDismiss && I.click(b), E.closeButton && j && j.click(function (e) { 146 e.stopPropagation ? e.stopPropagation() : void 0 !== e.cancelBubble && e.cancelBubble !== !0 && (e.cancelBubble = !0), E.onCloseClick && E.onCloseClick(e), b(!0) 147 }), E.onclick && I.click(function (e) { 148 E.onclick(e), b() 149 }) 150 } 151 152 function r() { 153 I.hide(), I[E.showMethod]({ 154 duration: E.showDuration, 155 easing: E.showEasing, 156 complete: E.onShown 157 }), E.timeOut > 0 && (k = setTimeout(b, E.timeOut), F.maxHideTime = parseFloat(E.timeOut), F.hideEta = (new Date).getTime() + F.maxHideTime, E.progressBar && (F.intervalId = setInterval(x, 10))) 158 } 159 160 function c() { 161 t.iconClass && I.addClass(E.toastClass).addClass(y) 162 } 163 164 function l() { 165 E.newestOnTop ? v.prepend(I) : v.append(I) 166 } 167 168 function u() { 169 if (t.title) { 170 var e = t.title; 171 E.escapeHtml && (e = o(t.title)), M.append(e).addClass(E.titleClass), I.append(M) 172 } 173 } 174 175 function d() { 176 if (t.message) { 177 var e = t.message; 178 E.escapeHtml && (e = o(t.message)), B.append(e).addClass(E.messageClass), I.append(B) 179 } 180 } 181 182 function p() { 183 E.closeButton && (j.addClass(E.closeClass).attr("role", "button"), I.prepend(j)) 184 } 185 186 function g() { 187 E.progressBar && (q.addClass(E.progressClass), I.prepend(q)) 188 } 189 190 function C() { 191 E.rtl && I.addClass("rtl") 192 } 193 194 function O(e, t) { 195 if (e.preventDuplicates) { 196 if (t.message === w) return !0; 197 w = t.message 198 } 199 return !1 200 } 201 202 function b(t) { 203 var n = t && E.closeMethod !== !1 ? E.closeMethod : E.hideMethod, 204 o = t && E.closeDuration !== !1 ? E.closeDuration : E.hideDuration, 205 s = t && E.closeEasing !== !1 ? E.closeEasing : E.hideEasing; 206 if (!e(":focus", I).length || t) return clearTimeout(F.intervalId), I[n]({ 207 duration: o, 208 easing: s, 209 complete: function () { 210 h(I), clearTimeout(k), E.onHidden && "hidden" !== P.state && E.onHidden(), P.state = "hidden", P.endTime = new Date, f(P) 211 } 212 }) 213 } 214 215 function D() { 216 (E.timeOut > 0 || E.extendedTimeOut > 0) && (k = setTimeout(b, E.extendedTimeOut), F.maxHideTime = parseFloat(E.extendedTimeOut), F.hideEta = (new Date).getTime() + F.maxHideTime) 217 } 218 219 function H() { 220 clearTimeout(k), F.hideEta = 0, I.stop(!0, !0)[E.showMethod]({ 221 duration: E.showDuration, 222 easing: E.showEasing 223 }) 224 } 225 226 function x() { 227 var e = (F.hideEta - (new Date).getTime()) / F.maxHideTime * 100; 228 q.width(e + "%") 229 } 230 231 var E = m(), y = t.iconClass || E.iconClass; 232 if ("undefined" != typeof t.optionsOverride && (E = e.extend(E, t.optionsOverride), y = t.optionsOverride.iconClass || y), !O(E, t)) { 233 T++, v = n(E, !0); 234 var k = null, I = e("<div/>"), M = e("<div/>"), B = e("<div/>"), q = e("<div/>"), 235 j = e(E.closeHtml), F = {intervalId: null, hideEta: null, maxHideTime: null}, 236 P = {toastId: T, state: "visible", startTime: new Date, options: E, map: t}; 237 return s(), r(), a(), f(P), E.debug && console && console.log(P), I 238 } 239 } 240 241 function m() { 242 return e.extend({}, p(), b.options) 243 } 244 245 function h(e) { 246 v || (v = n()), e.is(":visible") || (e.remove(), e = null, 0 === v.children().length && (v.remove(), w = void 0)) 247 } 248 249 var v, C, w, T = 0, O = {error: "error", info: "info", success: "success", warning: "warning"}, b = { 250 clear: r, 251 remove: c, 252 error: t, 253 getContainer: n, 254 info: o, 255 options: {}, 256 subscribe: s, 257 success: i, 258 version: "2.1.4", 259 warning: a 260 }; 261 return b 262 }() 263 }) 264}("function" == typeof define && define.amd ? define : function (e, t) { 265 "undefined" != typeof module && module.exports ? module.exports = t(require("jquery")) : window.toastr = t(window.jQuery) 266});
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.