function extend(t, o) {
return Object.keys(o).forEach(function (i) {
t[i] = o[i];
}), t;
}
!function (i, e) {
"use strict";
i.Package.name = "DashLite", i.Package.version = "2.3", i.Toast = function (i, t, o) {
var e = "info" === (t = t || "info") ? "ni ni-info-fill" : "success" === t ? "ni ni-check-circle-fill" : "error" === t ? "ni ni-cross-circle-fill" : "warning" === t ? "ni ni-alert-fill" : "",
n = {
position: "bottom-right",
ui: "",
icon: "auto",
clear: !1
},
o = o ? extend(n, o) : n;
o.position = o.position ? "toast-" + o.position : "toast-bottom-right", o.icon = "auto" === o.icon ? e : o.icon || "", o.ui = o.ui ? " " + o.ui : "", n = "" !== o.icon ? '' : "", "" !== (i = "" !== i ? n + '
' + i + "
" : "") && (!0 === o.clear && toastr.clear(), e = {
closeButton: !0,
debug: !1,
newestOnTop: !1,
progressBar: !1,
positionClass: o.position + o.ui,
closeHtml: 'Close',
preventDuplicates: !0,
showDuration: "1500",
hideDuration: "1500",
timeOut: "2000",
toastClass: "toastr",
extendedTimeOut: "3000"
}, toastr.options = extend(e, o), toastr[t](i));
}, i.Lightbox = function (i, t, o) {
e(i).exists() && e(i).each(function () {
var i = {},
i = "video" == t || "iframe" == t ? {
type: "iframe",
removalDelay: 160,
preloader: !0,
fixedContentPos: !1,
callbacks: {
beforeOpen: function () {
this.st.image.markup = this.st.image.markup.replace("mfp-figure", "mfp-figure mfp-with-anim"), this.st.mainClass = this.st.el.attr("data-effect");
}
}
} : "content" == t ? {
type: "inline",
preloader: !0,
removalDelay: 400,
mainClass: "mfp-fade content-popup"
} : {
type: "image",
mainClass: "mfp-fade image-popup"
},
i = o ? extend(i, o) : i;
e(this).magnificPopup(i);
});
};
}(NioApp, jQuery), alert2close = function (i, t, o, e) {
Swal.fire({
icon: i,
title: t,
html: o,
timer: e,
timerProgressBar: !0,
showConfirmButton: !1,
onBeforeOpen: () => {
Swal.showLoading();
},
onClose: () => {
clearInterval(void 0);
}
}).then(i => {
i.dismiss === Swal.DismissReason.timer && console.log("I was closed by the timer");
});
}, tomsg = function (i, t, o) {
var e = "info" === (t = t || "info") ? "ni ni-info-fill" : "success" === t ? "ni ni-check-circle-fill" : "error" === t ? "ni ni-cross-circle-fill" : "warning" === t ? "ni ni-alert-fill" : "",
n = {
position: "bottom-right",
ui: "",
icon: "auto",
clear: !1
},
o = o ? extend(n, o) : n;
o.position = o.position ? "toast-" + o.position : "toast-bottom-right", o.icon = "auto" === o.icon ? e : o.icon || "", o.ui = o.ui ? " " + o.ui : "", n = "" !== o.icon ? '' : "", "" !== (i = "" !== i ? n + '' + i + "
" : "") && (!0 === o.clear && toastr.clear(), e = {
closeButton: !0,
debug: !1,
newestOnTop: !1,
progressBar: !1,
positionClass: o.position + o.ui,
closeHtml: 'Close',
preventDuplicates: !0,
showDuration: "1500",
hideDuration: "1500",
timeOut: "2000",
toastClass: "toastr",
extendedTimeOut: "3000"
}, toastr.options = extend(e, o), toastr[t](i));
};