@luizleon/sf.prefeiturasp.vuecomponents 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layout/Layout.d.ts +1 -0
- package/dist/lib.es.js +107 -105
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/Layout.d.ts +1 -0
- package/src/components/layout/Layout.vue +6 -0
package/dist/lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var xr = Object.defineProperty;
|
|
2
2
|
var Cr = (t, e, n) => e in t ? xr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var nt = (t, e, n) => (Cr(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { ref as it, openBlock as X, createElementBlock as Ae, createElementVNode as j, defineComponent as Ne, normalizeStyle as
|
|
4
|
+
import { ref as it, openBlock as X, createElementBlock as Ae, createElementVNode as j, defineComponent as Ne, normalizeStyle as _n, normalizeClass as ke, mergeProps as Er, createBlock as ut, Fragment as xo, createTextVNode as Tr, toDisplayString as Vt, createCommentVNode as xn, computed as Sr, onMounted as Wt, unref as qe, createStaticVNode as Lr, createVNode as wt, renderSlot as Ue, resolveComponent as Co, withCtx as Eo, onBeforeUnmount as Ir, renderList as Pr, nextTick as Rr } from "vue";
|
|
5
5
|
class Or {
|
|
6
6
|
constructor() {
|
|
7
7
|
nt(this, "_visible", it(!1));
|
|
@@ -99,7 +99,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
99
99
|
return new st(`${e.class} sf-icon`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-icon-button", e.button).AddClass("sf-icon-small", e.tamanho === kt.Pequeno).AddClass("sf-icon-medium", e.tamanho === kt.Medio).AddClass("sf-icon-large", e.tamanho === kt.Grande).AddClass("sf-ripple", e.button === !0).Build();
|
|
100
100
|
}
|
|
101
101
|
return (o, i) => (X(), Ae("div", {
|
|
102
|
-
style:
|
|
102
|
+
style: _n(e.style),
|
|
103
103
|
class: ke(n())
|
|
104
104
|
}, [
|
|
105
105
|
j("button", Er({
|
|
@@ -115,7 +115,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
115
115
|
e.dot ? (X(), Ae("span", {
|
|
116
116
|
key: 0,
|
|
117
117
|
"data-color": e.dotColor
|
|
118
|
-
}, null, 8, jr)) :
|
|
118
|
+
}, null, 8, jr)) : xn("", !0)
|
|
119
119
|
], 6));
|
|
120
120
|
}
|
|
121
121
|
}), Io = "SweetAlert2:", zr = (t) => {
|
|
@@ -133,7 +133,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
133
133
|
Vr(
|
|
134
134
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
135
135
|
);
|
|
136
|
-
},
|
|
136
|
+
}, qt = (t) => typeof t == "function" ? t() : t, En = (t) => t && typeof t.toPromise == "function", Tt = (t) => En(t) ? t.toPromise() : Promise.resolve(t), Tn = (t) => t && Promise.resolve(t) === t, at = {
|
|
137
137
|
title: "",
|
|
138
138
|
titleText: "",
|
|
139
139
|
text: "",
|
|
@@ -275,12 +275,12 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
275
275
|
"returnFocus",
|
|
276
276
|
"heightAuto",
|
|
277
277
|
"keydownListenerCapture"
|
|
278
|
-
], Po = (t) => Object.prototype.hasOwnProperty.call(at, t), Ro = (t) => qr.indexOf(t) !== -1,
|
|
278
|
+
], Po = (t) => Object.prototype.hasOwnProperty.call(at, t), Ro = (t) => qr.indexOf(t) !== -1, mn = (t) => Kr[t], Yr = (t) => {
|
|
279
279
|
Po(t) || be(`Unknown parameter "${t}"`);
|
|
280
280
|
}, Jr = (t) => {
|
|
281
281
|
Gr.includes(t) && be(`The parameter "${t}" is incompatible with toasts`);
|
|
282
282
|
}, Xr = (t) => {
|
|
283
|
-
|
|
283
|
+
mn(t) && Wr(t, mn(t));
|
|
284
284
|
}, Zr = (t) => {
|
|
285
285
|
!t.backdrop && t.allowOutsideClick && be('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
286
286
|
for (const e in t)
|
|
@@ -363,7 +363,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
363
363
|
]), _t = Oo(["success", "warning", "info", "question", "error"]), se = () => document.body.querySelector(`.${l.container}`), St = (t) => {
|
|
364
364
|
const e = se();
|
|
365
365
|
return e ? e.querySelector(t) : null;
|
|
366
|
-
}, Se = (t) => St(`.${t}`), V = () => Se(l.popup), Lt = () => Se(l.icon), Fo = () => Se(l.title), jt = () => Se(l["html-container"]), Bo = () => Se(l.image), Mo = () => Se(l["progress-steps"]),
|
|
366
|
+
}, Se = (t) => St(`.${t}`), V = () => Se(l.popup), Lt = () => Se(l.icon), Fo = () => Se(l.title), jt = () => Se(l["html-container"]), Bo = () => Se(l.image), Mo = () => Se(l["progress-steps"]), Kt = () => Se(l["validation-message"]), Le = () => St(`.${l.actions} .${l.confirm}`), He = () => St(`.${l.actions} .${l.deny}`), es = () => Se(l["input-label"]), ft = () => St(`.${l.loader}`), Ke = () => St(`.${l.actions} .${l.cancel}`), It = () => Se(l.actions), Uo = () => Se(l.footer), Gt = () => Se(l["timer-progress-bar"]), Sn = () => Se(l.close), ts = `
|
|
367
367
|
a[href],
|
|
368
368
|
area[href],
|
|
369
369
|
input:not([disabled]),
|
|
@@ -388,7 +388,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
388
388
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
389
389
|
);
|
|
390
390
|
return zr(t.concat(e)).filter((n) => _e(n));
|
|
391
|
-
}, In = () => De(document.body, l.shown) && !De(document.body, l["toast-shown"]) && !De(document.body, l["no-backdrop"]),
|
|
391
|
+
}, In = () => De(document.body, l.shown) && !De(document.body, l["toast-shown"]) && !De(document.body, l["no-backdrop"]), Yt = () => V() && De(V(), l.toast), ns = () => V().hasAttribute("data-loading"), ct = {
|
|
392
392
|
previousBodyPadding: null
|
|
393
393
|
}, re = (t, e) => {
|
|
394
394
|
if (t.textContent = "", e) {
|
|
@@ -465,18 +465,18 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
465
465
|
}, no = (t, e, n, o) => {
|
|
466
466
|
const i = t.querySelector(e);
|
|
467
467
|
i && (i.style[n] = o);
|
|
468
|
-
},
|
|
468
|
+
}, Jt = (t, e, n) => {
|
|
469
469
|
e ? te(t, n) : ie(t);
|
|
470
470
|
}, _e = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), rs = () => !_e(Le()) && !_e(He()) && !_e(Ke()), oo = (t) => t.scrollHeight > t.clientHeight, $o = (t) => {
|
|
471
471
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
472
472
|
return n > 0 || o > 0;
|
|
473
473
|
}, Rn = (t, e = !1) => {
|
|
474
|
-
const n =
|
|
474
|
+
const n = Gt();
|
|
475
475
|
_e(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
476
476
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
477
477
|
}, 10));
|
|
478
478
|
}, ss = () => {
|
|
479
|
-
const t =
|
|
479
|
+
const t = Gt(), e = parseInt(window.getComputedStyle(t).width);
|
|
480
480
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
481
481
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
482
482
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
@@ -586,15 +586,15 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
586
586
|
};
|
|
587
587
|
function ws(t, e, n) {
|
|
588
588
|
const o = Le(), i = He(), c = Ke();
|
|
589
|
-
|
|
589
|
+
sn(o, "confirm", n), sn(i, "deny", n), sn(c, "cancel", n), ks(o, i, c, n), n.reverseButtons && (n.toast ? (t.insertBefore(c, o), t.insertBefore(i, o)) : (t.insertBefore(c, e), t.insertBefore(i, e), t.insertBefore(o, e)));
|
|
590
590
|
}
|
|
591
591
|
function ks(t, e, n, o) {
|
|
592
592
|
if (!o.buttonsStyling)
|
|
593
593
|
return Oe([t, e, n], l.styled);
|
|
594
594
|
H([t, e, n], l.styled), o.confirmButtonColor && (t.style.backgroundColor = o.confirmButtonColor, H(t, l["default-outline"])), o.denyButtonColor && (e.style.backgroundColor = o.denyButtonColor, H(e, l["default-outline"])), o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor, H(n, l["default-outline"]));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
|
|
596
|
+
function sn(t, e, n) {
|
|
597
|
+
Jt(t, n[`show${Cn(e)}Button`], "inline-block"), re(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = l[e], Ee(t, n, `${e}Button`), H(t, n[`${e}ButtonClass`]);
|
|
598
598
|
}
|
|
599
599
|
function As(t, e) {
|
|
600
600
|
typeof e == "string" ? t.style.background = e : e || H([document.documentElement, document.body], l["no-backdrop"]);
|
|
@@ -701,10 +701,10 @@ const Rs = (t, e) => {
|
|
|
701
701
|
Ee(n, e, "htmlContainer"), e.html ? (On(e.html, n), te(n, "block")) : e.text ? (n.textContent = e.text, te(n, "block")) : ie(n), Ts(t, e);
|
|
702
702
|
}, Os = (t, e) => {
|
|
703
703
|
const n = Uo();
|
|
704
|
-
|
|
704
|
+
Jt(n, e.footer), e.footer && On(e.footer, n), Ee(n, e, "footer");
|
|
705
705
|
}, Fs = (t, e) => {
|
|
706
706
|
const n = Sn();
|
|
707
|
-
re(n, e.closeButtonHtml), Ee(n, e, "closeButton"),
|
|
707
|
+
re(n, e.closeButtonHtml), Ee(n, e, "closeButton"), Jt(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
708
708
|
}, Bs = (t, e) => {
|
|
709
709
|
const n = U.innerParams.get(t), o = Lt();
|
|
710
710
|
if (n && e.icon === n.icon) {
|
|
@@ -778,10 +778,10 @@ const Rs = (t, e) => {
|
|
|
778
778
|
});
|
|
779
779
|
}, Vs = (t, e) => {
|
|
780
780
|
const n = Fo();
|
|
781
|
-
|
|
781
|
+
Jt(n, e.title || e.titleText, "block"), e.title && On(e.title, n), e.titleText && (n.innerText = e.titleText), Ee(n, e, "title");
|
|
782
782
|
}, Ws = (t, e) => {
|
|
783
783
|
const n = se(), o = V();
|
|
784
|
-
e.toast ? (xt(n, "width", e.width), o.style.width = "100%", o.insertBefore(ft(), Lt())) : xt(o, "width", e.width), xt(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ie(
|
|
784
|
+
e.toast ? (xt(n, "width", e.width), o.style.width = "100%", o.insertBefore(ft(), Lt())) : xt(o, "width", e.width), xt(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ie(Kt()), qs(o, e);
|
|
785
785
|
}, qs = (t, e) => {
|
|
786
786
|
t.className = `${l.popup} ${_e(t) ? e.showClass.popup : ""}`, e.toast ? (H([document.documentElement, document.body], l["toast-shown"]), H(t, l.toast)) : H(t, l.modal), Ee(t, e, "popup"), typeof e.customClass == "string" && H(t, e.customClass), e.icon && H(t, l[`icon-${e.icon}`]);
|
|
787
787
|
}, zo = (t, e) => {
|
|
@@ -948,7 +948,7 @@ const ii = () => {
|
|
|
948
948
|
const i = window.getComputedStyle(document.body).overflowY;
|
|
949
949
|
vi(e, n, t), setTimeout(() => {
|
|
950
950
|
gi(e, n);
|
|
951
|
-
}, qo), In() && (bi(e, t.scrollbarPadding, i), Ks()), !
|
|
951
|
+
}, qo), In() && (bi(e, t.scrollbarPadding, i), Ks()), !Yt() && !B.previousActiveElement && (B.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), Oe(e, l["no-transition"]);
|
|
952
952
|
}, Ko = (t) => {
|
|
953
953
|
const e = V();
|
|
954
954
|
if (t.target !== e)
|
|
@@ -969,7 +969,7 @@ const ii = () => {
|
|
|
969
969
|
let e = V();
|
|
970
970
|
e || new lt(), e = V();
|
|
971
971
|
const n = ft();
|
|
972
|
-
|
|
972
|
+
Yt() ? ie(Lt()) : yi(e, t), te(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
973
973
|
}, yi = (t, e) => {
|
|
974
974
|
const n = It(), o = ft();
|
|
975
975
|
!e && _e(Le()) && (e = Le()), te(n), e && (ie(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), H([t, n], l.loading);
|
|
@@ -990,7 +990,7 @@ const ii = () => {
|
|
|
990
990
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
991
991
|
}
|
|
992
992
|
}, Ai = (t) => t.checked ? 1 : 0, _i = (t) => t.checked ? t.value : null, xi = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Ci = (t, e) => {
|
|
993
|
-
const n = V(), o = (i) => Ti[e.input](n,
|
|
993
|
+
const n = V(), o = (i) => Ti[e.input](n, gn(i), e);
|
|
994
994
|
En(e.inputOptions) || Tn(e.inputOptions) ? (dt(Le()), Tt(e.inputOptions).then((i) => {
|
|
995
995
|
t.hideLoading(), o(i);
|
|
996
996
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : Ye(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
@@ -1027,14 +1027,14 @@ const ii = () => {
|
|
|
1027
1027
|
const i = o.querySelectorAll("input");
|
|
1028
1028
|
i.length && i[0].focus();
|
|
1029
1029
|
}
|
|
1030
|
-
},
|
|
1030
|
+
}, gn = (t) => {
|
|
1031
1031
|
const e = [];
|
|
1032
1032
|
return typeof Map < "u" && t instanceof Map ? t.forEach((n, o) => {
|
|
1033
1033
|
let i = n;
|
|
1034
|
-
typeof i == "object" && (i =
|
|
1034
|
+
typeof i == "object" && (i = gn(i)), e.push([o, i]);
|
|
1035
1035
|
}) : Object.keys(t).forEach((n) => {
|
|
1036
1036
|
let o = t[n];
|
|
1037
|
-
typeof o == "object" && (o =
|
|
1037
|
+
typeof o == "object" && (o = gn(o)), e.push([n, o]);
|
|
1038
1038
|
}), e;
|
|
1039
1039
|
}, co = (t, e) => e && e.toString() === t.toString();
|
|
1040
1040
|
function lo() {
|
|
@@ -1042,7 +1042,7 @@ function lo() {
|
|
|
1042
1042
|
if (!t)
|
|
1043
1043
|
return;
|
|
1044
1044
|
const e = U.domCache.get(this);
|
|
1045
|
-
ie(e.loader),
|
|
1045
|
+
ie(e.loader), Yt() ? t.icon && te(Lt()) : Si(e), Oe([e.popup, e.actions], l.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
1046
1046
|
}
|
|
1047
1047
|
const Si = (t) => {
|
|
1048
1048
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -1063,7 +1063,7 @@ const Et = {
|
|
|
1063
1063
|
Yo(e), n.toast || (e.keydownHandler = (i) => Bi(t, i, o), e.keydownTarget = n.keydownListenerCapture ? window : V(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
1064
1064
|
capture: e.keydownListenerCapture
|
|
1065
1065
|
}), e.keydownHandlerAdded = !0);
|
|
1066
|
-
},
|
|
1066
|
+
}, bn = (t, e, n) => {
|
|
1067
1067
|
const o = Ln();
|
|
1068
1068
|
if (o.length)
|
|
1069
1069
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
@@ -1072,7 +1072,7 @@ const Et = {
|
|
|
1072
1072
|
const o = U.innerParams.get(t);
|
|
1073
1073
|
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Mi(t, e, o) : e.key === "Tab" ? Ui(e, o) : [...Jo, ...Fi].includes(e.key) ? Di(e.key) : e.key === "Escape" && Ni(e, o, n)));
|
|
1074
1074
|
}, Mi = (t, e, n) => {
|
|
1075
|
-
if (
|
|
1075
|
+
if (qt(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
1076
1076
|
if (["textarea", "file"].includes(n.input))
|
|
1077
1077
|
return;
|
|
1078
1078
|
Go(), e.preventDefault();
|
|
@@ -1085,7 +1085,7 @@ const Et = {
|
|
|
1085
1085
|
i = c;
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
|
-
t.shiftKey ?
|
|
1088
|
+
t.shiftKey ? bn(e, i, -1) : bn(e, i, 1), t.stopPropagation(), t.preventDefault();
|
|
1089
1089
|
}, Di = (t) => {
|
|
1090
1090
|
const e = Le(), n = He(), o = Ke();
|
|
1091
1091
|
if (![e, n, o].includes(document.activeElement))
|
|
@@ -1100,10 +1100,10 @@ const Et = {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
c instanceof HTMLButtonElement && c.focus();
|
|
1102
1102
|
}, Ni = (t, e, n) => {
|
|
1103
|
-
|
|
1103
|
+
qt(e.allowEscapeKey) && (t.preventDefault(), n(ht.esc));
|
|
1104
1104
|
};
|
|
1105
1105
|
function Xo(t, e, n, o) {
|
|
1106
|
-
|
|
1106
|
+
Yt() ? uo(t, o) : (cs(n).then(() => uo(t, o)), Yo(B)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), In() && (ai(), pi(), Vo()), $i();
|
|
1107
1107
|
}
|
|
1108
1108
|
function $i() {
|
|
1109
1109
|
Oe(
|
|
@@ -1244,8 +1244,8 @@ function na() {
|
|
|
1244
1244
|
const oa = (t) => {
|
|
1245
1245
|
er(t), delete t.params, delete B.keydownHandler, delete B.keydownTarget, delete B.currentInstance;
|
|
1246
1246
|
}, er = (t) => {
|
|
1247
|
-
t.isAwaitingPromise() ? (
|
|
1248
|
-
},
|
|
1247
|
+
t.isAwaitingPromise() ? (an(U, t), U.awaitingPromise.set(t, !0)) : (an(Et, t), an(U, t));
|
|
1248
|
+
}, an = (t, e) => {
|
|
1249
1249
|
for (const n in t)
|
|
1250
1250
|
t[n].delete(e);
|
|
1251
1251
|
}, tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1308,7 +1308,7 @@ const oa = (t) => {
|
|
|
1308
1308
|
n.showLoaderOnConfirm && dt(), n.preConfirm ? (t.resetValidationMessage(), U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1309
1309
|
() => Tt(n.preConfirm(e, n.validationMessage))
|
|
1310
1310
|
).then((i) => {
|
|
1311
|
-
_e(
|
|
1311
|
+
_e(Kt()) || i === !1 ? (t.hideLoading(), Rt(t)) : fo(t, typeof i > "u" ? e : i);
|
|
1312
1312
|
}).catch((i) => or(t || globalThis, i))) : fo(t, e);
|
|
1313
1313
|
}, ca = (t, e, n) => {
|
|
1314
1314
|
U.innerParams.get(t).toast ? la(t, e, n) : (da(e), fa(e), ha(t, e, n));
|
|
@@ -1338,7 +1338,7 @@ const da = (t) => {
|
|
|
1338
1338
|
zt = !1;
|
|
1339
1339
|
return;
|
|
1340
1340
|
}
|
|
1341
|
-
o.target === e.container &&
|
|
1341
|
+
o.target === e.container && qt(i.allowOutsideClick) && n(ht.backdrop);
|
|
1342
1342
|
};
|
|
1343
1343
|
}, pa = (t) => typeof t == "object" && t.jquery, ho = (t) => t instanceof Element || pa(t), ma = (t) => {
|
|
1344
1344
|
const e = {};
|
|
@@ -1377,16 +1377,16 @@ const va = () => B.timeout && B.timeout.getTimerLeft(), rr = () => {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}, ka = () => B.timeout && B.timeout.isRunning();
|
|
1379
1379
|
let po = !1;
|
|
1380
|
-
const
|
|
1380
|
+
const vn = {};
|
|
1381
1381
|
function Aa(t = "data-swal-template") {
|
|
1382
|
-
|
|
1382
|
+
vn[t] = this, po || (document.body.addEventListener("click", _a), po = !0);
|
|
1383
1383
|
}
|
|
1384
1384
|
const _a = (t) => {
|
|
1385
1385
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
1386
|
-
for (const n in
|
|
1386
|
+
for (const n in vn) {
|
|
1387
1387
|
const o = e.getAttribute(n);
|
|
1388
1388
|
if (o) {
|
|
1389
|
-
|
|
1389
|
+
vn[n].fire({ template: o });
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
@@ -1414,11 +1414,11 @@ const _a = (t) => {
|
|
|
1414
1414
|
getLoader: ft,
|
|
1415
1415
|
getPopup: V,
|
|
1416
1416
|
getTimerLeft: va,
|
|
1417
|
-
getTimerProgressBar:
|
|
1417
|
+
getTimerProgressBar: Gt,
|
|
1418
1418
|
getTitle: Fo,
|
|
1419
|
-
getValidationMessage:
|
|
1419
|
+
getValidationMessage: Kt,
|
|
1420
1420
|
increaseTimer: wa,
|
|
1421
|
-
isDeprecatedParameter:
|
|
1421
|
+
isDeprecatedParameter: mn,
|
|
1422
1422
|
isLoading: ns,
|
|
1423
1423
|
isTimerRunning: ka,
|
|
1424
1424
|
isUpdatableParameter: Ro,
|
|
@@ -1430,12 +1430,12 @@ const _a = (t) => {
|
|
|
1430
1430
|
stopTimer: rr,
|
|
1431
1431
|
toggleTimer: ya
|
|
1432
1432
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1433
|
-
let
|
|
1433
|
+
let yn;
|
|
1434
1434
|
class pt {
|
|
1435
1435
|
constructor(...e) {
|
|
1436
1436
|
if (typeof window > "u")
|
|
1437
1437
|
return;
|
|
1438
|
-
|
|
1438
|
+
yn = this;
|
|
1439
1439
|
const n = Object.freeze(this.constructor.argsToParams(e));
|
|
1440
1440
|
Object.defineProperties(this, {
|
|
1441
1441
|
params: {
|
|
@@ -1483,12 +1483,12 @@ const Ca = (t, e, n) => new Promise((o, i) => {
|
|
|
1483
1483
|
cancelButton: Ke(),
|
|
1484
1484
|
loader: ft(),
|
|
1485
1485
|
closeButton: Sn(),
|
|
1486
|
-
validationMessage:
|
|
1486
|
+
validationMessage: Kt(),
|
|
1487
1487
|
progressSteps: Mo()
|
|
1488
1488
|
};
|
|
1489
1489
|
return U.domCache.set(t, e), e;
|
|
1490
1490
|
}, Sa = (t, e, n) => {
|
|
1491
|
-
const o =
|
|
1491
|
+
const o = Gt();
|
|
1492
1492
|
ie(o), e.timer && (t.timeout = new si(() => {
|
|
1493
1493
|
n("timer"), delete t.timeout;
|
|
1494
1494
|
}, e.timer), e.timerProgressBar && (te(o), Ee(o, e, "timerProgressBar"), setTimeout(() => {
|
|
@@ -1496,9 +1496,9 @@ const Ca = (t, e, n) => new Promise((o, i) => {
|
|
|
1496
1496
|
})));
|
|
1497
1497
|
}, La = (t, e) => {
|
|
1498
1498
|
if (!e.toast) {
|
|
1499
|
-
if (!
|
|
1499
|
+
if (!qt(e.allowEnterKey))
|
|
1500
1500
|
return Pa();
|
|
1501
|
-
Ia(t, e) ||
|
|
1501
|
+
Ia(t, e) || bn(e, -1, 1);
|
|
1502
1502
|
}
|
|
1503
1503
|
}, Ia = (t, e) => e.focusDeny && _e(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && _e(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && _e(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, Pa = () => {
|
|
1504
1504
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
@@ -1507,8 +1507,8 @@ Object.assign(pt.prototype, tr);
|
|
|
1507
1507
|
Object.assign(pt, xa);
|
|
1508
1508
|
Object.keys(tr).forEach((t) => {
|
|
1509
1509
|
pt[t] = function(...e) {
|
|
1510
|
-
if (
|
|
1511
|
-
return
|
|
1510
|
+
if (yn)
|
|
1511
|
+
return yn[t](...e);
|
|
1512
1512
|
};
|
|
1513
1513
|
});
|
|
1514
1514
|
pt.DismissReason = ht;
|
|
@@ -1528,8 +1528,8 @@ let {
|
|
|
1528
1528
|
seal: Ie,
|
|
1529
1529
|
create: cr
|
|
1530
1530
|
} = Object, {
|
|
1531
|
-
apply:
|
|
1532
|
-
construct:
|
|
1531
|
+
apply: wn,
|
|
1532
|
+
construct: kn
|
|
1533
1533
|
} = typeof Reflect < "u" && Reflect;
|
|
1534
1534
|
ue || (ue = function(e) {
|
|
1535
1535
|
return e;
|
|
@@ -1537,25 +1537,25 @@ ue || (ue = function(e) {
|
|
|
1537
1537
|
Ie || (Ie = function(e) {
|
|
1538
1538
|
return e;
|
|
1539
1539
|
});
|
|
1540
|
-
|
|
1540
|
+
wn || (wn = function(e, n, o) {
|
|
1541
1541
|
return e.apply(n, o);
|
|
1542
1542
|
});
|
|
1543
|
-
|
|
1543
|
+
kn || (kn = function(e, n) {
|
|
1544
1544
|
return new e(...n);
|
|
1545
1545
|
});
|
|
1546
|
-
const Ut = Te(Array.prototype.forEach), go = Te(Array.prototype.pop), bt = Te(Array.prototype.push), $t = Te(String.prototype.toLowerCase),
|
|
1546
|
+
const Ut = Te(Array.prototype.forEach), go = Te(Array.prototype.pop), bt = Te(Array.prototype.push), $t = Te(String.prototype.toLowerCase), cn = Te(String.prototype.toString), Fa = Te(String.prototype.match), vt = Te(String.prototype.replace), Ba = Te(String.prototype.indexOf), Ma = Te(String.prototype.trim), we = Te(RegExp.prototype.test), yt = Ua(TypeError);
|
|
1547
1547
|
function Te(t) {
|
|
1548
1548
|
return function(e) {
|
|
1549
1549
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
1550
1550
|
o[i - 1] = arguments[i];
|
|
1551
|
-
return
|
|
1551
|
+
return wn(t, e, o);
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
1554
|
function Ua(t) {
|
|
1555
1555
|
return function() {
|
|
1556
1556
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
1557
1557
|
n[o] = arguments[o];
|
|
1558
|
-
return
|
|
1558
|
+
return kn(t, n);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
1561
|
function M(t, e) {
|
|
@@ -1594,7 +1594,7 @@ function Dt(t, e) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return n;
|
|
1596
1596
|
}
|
|
1597
|
-
const bo = ue(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
1597
|
+
const bo = ue(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ln = ue(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), un = ue(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Da = ue(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), dn = ue(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Na = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vo = ue(["#text"]), yo = ue(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), fn = ue(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), wo = ue(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Nt = ue(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $a = Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ha = Ie(/<%[\w\W]*|[\w\W]*%>/gm), ja = Ie(/\${[\w\W]*}/gm), za = Ie(/^data-[\-\w.\u00B7-\uFFFF]/), Va = Ie(/^aria-[\-\w]+$/), lr = Ie(
|
|
1598
1598
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1599
1599
|
// eslint-disable-line no-useless-escape
|
|
1600
1600
|
), Wa = Ie(/^(?:\w+script|data):/i), qa = Ie(
|
|
@@ -1681,9 +1681,9 @@ function dr() {
|
|
|
1681
1681
|
let {
|
|
1682
1682
|
IS_ALLOWED_URI: ce
|
|
1683
1683
|
} = ko, P = null;
|
|
1684
|
-
const fe = M({}, [...bo, ...
|
|
1684
|
+
const fe = M({}, [...bo, ...ln, ...un, ...dn, ...vo]);
|
|
1685
1685
|
let r = null;
|
|
1686
|
-
const a = M({}, [...yo, ...
|
|
1686
|
+
const a = M({}, [...yo, ...fn, ...wo, ...Nt]);
|
|
1687
1687
|
let d = Object.seal(cr(null, {
|
|
1688
1688
|
tagNameCheck: {
|
|
1689
1689
|
writable: !0,
|
|
@@ -1705,24 +1705,24 @@ function dr() {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
})), g = null, h = null, x = !0, m = !0, b = !1, E = !0, C = !1, R = !1, $ = !1, he = !1, le = !1, ee = !1, Pe = !1, Un = !0, Dn = !1;
|
|
1707
1707
|
const mr = "user-content-";
|
|
1708
|
-
let
|
|
1708
|
+
let Zt = !0, mt = !1, Ze = {}, Qe = null;
|
|
1709
1709
|
const Nn = M({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
1710
1710
|
let $n = null;
|
|
1711
1711
|
const Hn = M({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1712
|
-
let
|
|
1712
|
+
let Qt = null;
|
|
1713
1713
|
const jn = M({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ot = "http://www.w3.org/1998/Math/MathML", Ft = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
1714
|
-
let et = Be,
|
|
1715
|
-
const gr = M({}, [Ot, Ft, Be],
|
|
1714
|
+
let et = Be, en = !1, tn = null;
|
|
1715
|
+
const gr = M({}, [Ot, Ft, Be], cn);
|
|
1716
1716
|
let je = null;
|
|
1717
1717
|
const br = ["application/xhtml+xml", "text/html"], vr = "text/html";
|
|
1718
1718
|
let Q = null, tt = null;
|
|
1719
1719
|
const yr = n.createElement("form"), zn = function(s) {
|
|
1720
1720
|
return s instanceof RegExp || s instanceof Function;
|
|
1721
|
-
},
|
|
1721
|
+
}, nn = function() {
|
|
1722
1722
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1723
1723
|
if (!(tt && tt === s)) {
|
|
1724
1724
|
if ((!s || typeof s != "object") && (s = {}), s = ot(s), je = // eslint-disable-next-line unicorn/prefer-includes
|
|
1725
|
-
br.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? je = vr : je = s.PARSER_MEDIA_TYPE, Q = je === "application/xhtml+xml" ?
|
|
1725
|
+
br.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? je = vr : je = s.PARSER_MEDIA_TYPE, Q = je === "application/xhtml+xml" ? cn : $t, P = "ALLOWED_TAGS" in s ? M({}, s.ALLOWED_TAGS, Q) : fe, r = "ALLOWED_ATTR" in s ? M({}, s.ALLOWED_ATTR, Q) : a, tn = "ALLOWED_NAMESPACES" in s ? M({}, s.ALLOWED_NAMESPACES, cn) : gr, Qt = "ADD_URI_SAFE_ATTR" in s ? M(
|
|
1726
1726
|
ot(jn),
|
|
1727
1727
|
// eslint-disable-line indent
|
|
1728
1728
|
s.ADD_URI_SAFE_ATTR,
|
|
@@ -1736,7 +1736,7 @@ function dr() {
|
|
|
1736
1736
|
// eslint-disable-line indent
|
|
1737
1737
|
Q
|
|
1738
1738
|
// eslint-disable-line indent
|
|
1739
|
-
) : Hn, Qe = "FORBID_CONTENTS" in s ? M({}, s.FORBID_CONTENTS, Q) : Nn, g = "FORBID_TAGS" in s ? M({}, s.FORBID_TAGS, Q) : {}, h = "FORBID_ATTR" in s ? M({}, s.FORBID_ATTR, Q) : {}, Ze = "USE_PROFILES" in s ? s.USE_PROFILES : !1, x = s.ALLOW_ARIA_ATTR !== !1, m = s.ALLOW_DATA_ATTR !== !1, b = s.ALLOW_UNKNOWN_PROTOCOLS || !1, E = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, C = s.SAFE_FOR_TEMPLATES || !1, R = s.WHOLE_DOCUMENT || !1, le = s.RETURN_DOM || !1, ee = s.RETURN_DOM_FRAGMENT || !1, Pe = s.RETURN_TRUSTED_TYPE || !1, he = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, Dn = s.SANITIZE_NAMED_PROPS || !1,
|
|
1739
|
+
) : Hn, Qe = "FORBID_CONTENTS" in s ? M({}, s.FORBID_CONTENTS, Q) : Nn, g = "FORBID_TAGS" in s ? M({}, s.FORBID_TAGS, Q) : {}, h = "FORBID_ATTR" in s ? M({}, s.FORBID_ATTR, Q) : {}, Ze = "USE_PROFILES" in s ? s.USE_PROFILES : !1, x = s.ALLOW_ARIA_ATTR !== !1, m = s.ALLOW_DATA_ATTR !== !1, b = s.ALLOW_UNKNOWN_PROTOCOLS || !1, E = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, C = s.SAFE_FOR_TEMPLATES || !1, R = s.WHOLE_DOCUMENT || !1, le = s.RETURN_DOM || !1, ee = s.RETURN_DOM_FRAGMENT || !1, Pe = s.RETURN_TRUSTED_TYPE || !1, he = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, Dn = s.SANITIZE_NAMED_PROPS || !1, Zt = s.KEEP_CONTENT !== !1, mt = s.IN_PLACE || !1, ce = s.ALLOWED_URI_REGEXP || lr, et = s.NAMESPACE || Be, d = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (d.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (d.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (d.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), C && (m = !1), ee && (le = !0), Ze && (P = M({}, [...vo]), r = [], Ze.html === !0 && (M(P, bo), M(r, yo)), Ze.svg === !0 && (M(P, ln), M(r, fn), M(r, Nt)), Ze.svgFilters === !0 && (M(P, un), M(r, fn), M(r, Nt)), Ze.mathMl === !0 && (M(P, dn), M(r, wo), M(r, Nt))), s.ADD_TAGS && (P === fe && (P = ot(P)), M(P, s.ADD_TAGS, Q)), s.ADD_ATTR && (r === a && (r = ot(r)), M(r, s.ADD_ATTR, Q)), s.ADD_URI_SAFE_ATTR && M(Qt, s.ADD_URI_SAFE_ATTR, Q), s.FORBID_CONTENTS && (Qe === Nn && (Qe = ot(Qe)), M(Qe, s.FORBID_CONTENTS, Q)), Zt && (P["#text"] = !0), R && M(P, ["html", "head", "body"]), P.table && (M(P, ["tbody"]), delete g.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
1740
1740
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1741
1741
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1742
1742
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -1746,10 +1746,10 @@ function dr() {
|
|
|
1746
1746
|
N === void 0 && (N = Ga(z, i)), N !== null && typeof ye == "string" && (ye = N.createHTML(""));
|
|
1747
1747
|
ue && ue(s), tt = s;
|
|
1748
1748
|
}
|
|
1749
|
-
}, Vn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), wr = M({}, ["title", "style", "font", "a", "script"]), Bt = M({},
|
|
1750
|
-
M(Bt,
|
|
1751
|
-
const
|
|
1752
|
-
M(
|
|
1749
|
+
}, Vn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), wr = M({}, ["title", "style", "font", "a", "script"]), Bt = M({}, ln);
|
|
1750
|
+
M(Bt, un), M(Bt, Da);
|
|
1751
|
+
const on = M({}, dn);
|
|
1752
|
+
M(on, Na);
|
|
1753
1753
|
const kr = function(s) {
|
|
1754
1754
|
let v = de(s);
|
|
1755
1755
|
(!v || !v.tagName) && (v = {
|
|
@@ -1757,7 +1757,7 @@ function dr() {
|
|
|
1757
1757
|
tagName: "template"
|
|
1758
1758
|
});
|
|
1759
1759
|
const T = $t(s.tagName), K = $t(v.tagName);
|
|
1760
|
-
return
|
|
1760
|
+
return tn[s.namespaceURI] ? s.namespaceURI === Ft ? v.namespaceURI === Be ? T === "svg" : v.namespaceURI === Ot ? T === "svg" && (K === "annotation-xml" || Vn[K]) : !!Bt[T] : s.namespaceURI === Ot ? v.namespaceURI === Be ? T === "math" : v.namespaceURI === Ft ? T === "math" && Wn[K] : !!on[T] : s.namespaceURI === Be ? v.namespaceURI === Ft && !Wn[K] || v.namespaceURI === Ot && !Vn[K] ? !1 : !on[T] && (wr[T] || !Bt[T]) : !!(je === "application/xhtml+xml" && tn[s.namespaceURI]) : !1;
|
|
1761
1761
|
}, ze = function(s) {
|
|
1762
1762
|
bt(e.removed, {
|
|
1763
1763
|
element: s
|
|
@@ -1767,7 +1767,7 @@ function dr() {
|
|
|
1767
1767
|
} catch {
|
|
1768
1768
|
s.remove();
|
|
1769
1769
|
}
|
|
1770
|
-
},
|
|
1770
|
+
}, rn = function(s, v) {
|
|
1771
1771
|
try {
|
|
1772
1772
|
bt(e.removed, {
|
|
1773
1773
|
attribute: v.getAttributeNode(s),
|
|
@@ -1808,7 +1808,7 @@ function dr() {
|
|
|
1808
1808
|
if (!v || !v.documentElement) {
|
|
1809
1809
|
v = Z.createDocument(et, "template", null);
|
|
1810
1810
|
try {
|
|
1811
|
-
v.documentElement.innerHTML =
|
|
1811
|
+
v.documentElement.innerHTML = en ? ye : K;
|
|
1812
1812
|
} catch {
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
@@ -1843,7 +1843,7 @@ function dr() {
|
|
|
1843
1843
|
if (!P[T] || g[T]) {
|
|
1844
1844
|
if (!g[T] && Xn(T) && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, T) || d.tagNameCheck instanceof Function && d.tagNameCheck(T)))
|
|
1845
1845
|
return !1;
|
|
1846
|
-
if (
|
|
1846
|
+
if (Zt && !Qe[T]) {
|
|
1847
1847
|
const K = de(s) || s.parentNode, ne = Xe(s) || s.childNodes;
|
|
1848
1848
|
if (ne && K) {
|
|
1849
1849
|
const oe = ne.length;
|
|
@@ -1873,7 +1873,7 @@ function dr() {
|
|
|
1873
1873
|
v === "is" && d.allowCustomizedBuiltInElements && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, T) || d.tagNameCheck instanceof Function && d.tagNameCheck(T)))
|
|
1874
1874
|
)
|
|
1875
1875
|
return !1;
|
|
1876
|
-
} else if (!
|
|
1876
|
+
} else if (!Qt[v]) {
|
|
1877
1877
|
if (!we(ce, vt(T, G, ""))) {
|
|
1878
1878
|
if (!((v === "src" || v === "xlink:href" || v === "href") && s !== "script" && Ba(T, "data:") === 0 && $n[s])) {
|
|
1879
1879
|
if (!(b && !we(J, vt(T, G, "")))) {
|
|
@@ -1909,10 +1909,10 @@ function dr() {
|
|
|
1909
1909
|
value: Ve
|
|
1910
1910
|
} = ne, gt = Q(oe);
|
|
1911
1911
|
let me = oe === "value" ? Ve : Ma(Ve);
|
|
1912
|
-
if (T.attrName = gt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Me("uponSanitizeAttribute", s, T), me = T.attrValue, T.forceKeepAttr || (
|
|
1912
|
+
if (T.attrName = gt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Me("uponSanitizeAttribute", s, T), me = T.attrValue, T.forceKeepAttr || (rn(oe, s), !T.keepAttr))
|
|
1913
1913
|
continue;
|
|
1914
1914
|
if (!E && we(/\/>/i, me)) {
|
|
1915
|
-
|
|
1915
|
+
rn(oe, s);
|
|
1916
1916
|
continue;
|
|
1917
1917
|
}
|
|
1918
1918
|
C && Ut([y, O, p], (eo) => {
|
|
@@ -1920,7 +1920,7 @@ function dr() {
|
|
|
1920
1920
|
});
|
|
1921
1921
|
const Qn = Q(s.nodeName);
|
|
1922
1922
|
if (Jn(Qn, gt, me)) {
|
|
1923
|
-
if (Dn && (gt === "id" || gt === "name") && (
|
|
1923
|
+
if (Dn && (gt === "id" || gt === "name") && (rn(oe, s), me = mr + me), N && typeof z == "object" && typeof z.getAttributeType == "function" && !pe)
|
|
1924
1924
|
switch (z.getAttributeType(Qn, gt)) {
|
|
1925
1925
|
case "TrustedHTML": {
|
|
1926
1926
|
me = N.createHTML(me);
|
|
@@ -1947,7 +1947,7 @@ function dr() {
|
|
|
1947
1947
|
};
|
|
1948
1948
|
return e.sanitize = function(S) {
|
|
1949
1949
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, T = null, K = null, ne = null;
|
|
1950
|
-
if (
|
|
1950
|
+
if (en = !S, en && (S = "<!-->"), typeof S != "string" && !Gn(S))
|
|
1951
1951
|
if (typeof S.toString == "function") {
|
|
1952
1952
|
if (S = S.toString(), typeof S != "string")
|
|
1953
1953
|
throw yt("dirty is not a string, aborting");
|
|
@@ -1955,7 +1955,7 @@ function dr() {
|
|
|
1955
1955
|
throw yt("toString is not a function");
|
|
1956
1956
|
if (!e.isSupported)
|
|
1957
1957
|
return S;
|
|
1958
|
-
if ($ ||
|
|
1958
|
+
if ($ || nn(s), e.removed = [], typeof S == "string" && (mt = !1), mt) {
|
|
1959
1959
|
if (S.nodeName) {
|
|
1960
1960
|
const Ve = Q(S.nodeName);
|
|
1961
1961
|
if (!P[Ve] || g[Ve])
|
|
@@ -1991,11 +1991,11 @@ function dr() {
|
|
|
1991
1991
|
}), N && Pe ? N.createHTML(pe) : pe;
|
|
1992
1992
|
}, e.setConfig = function() {
|
|
1993
1993
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1994
|
-
|
|
1994
|
+
nn(S), $ = !0;
|
|
1995
1995
|
}, e.clearConfig = function() {
|
|
1996
1996
|
tt = null, $ = !1;
|
|
1997
1997
|
}, e.isValidAttribute = function(S, s, v) {
|
|
1998
|
-
tt ||
|
|
1998
|
+
tt || nn({});
|
|
1999
1999
|
const T = Q(S), K = Q(s);
|
|
2000
2000
|
return Jn(T, K, v);
|
|
2001
2001
|
}, e.addHook = function(S, s) {
|
|
@@ -2069,7 +2069,7 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2069
2069
|
const u = o.value[0], D = u === "?" ? 0 : (u.charCodeAt(0) - 64) % 19;
|
|
2070
2070
|
return Math.max(D, 0);
|
|
2071
2071
|
});
|
|
2072
|
-
return
|
|
2072
|
+
return Wt(() => {
|
|
2073
2073
|
o.value = A();
|
|
2074
2074
|
}), (u, D) => (X(), Ae("div", {
|
|
2075
2075
|
id: "sf-header-avatar",
|
|
@@ -2116,7 +2116,7 @@ class ic {
|
|
|
2116
2116
|
this.EnableLightMode();
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2119
|
+
const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), cc = [
|
|
2120
2120
|
ac
|
|
2121
2121
|
], lc = /* @__PURE__ */ Ne({
|
|
2122
2122
|
__name: "ThemeToggle",
|
|
@@ -2124,15 +2124,17 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2124
2124
|
return (e, n) => (X(), Ae("button", {
|
|
2125
2125
|
id: "sf-theme-toggle",
|
|
2126
2126
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2127
|
-
(...o) => qe(
|
|
2127
|
+
(...o) => qe(An).Toggle && qe(An).Toggle(...o))
|
|
2128
2128
|
}, cc));
|
|
2129
2129
|
}
|
|
2130
2130
|
}), uc = { id: "sf-layout" }, dc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), fc = { class: "title" }, hc = { class: "sf-layout-nav-header" }, pc = /* @__PURE__ */ j("span", null, "Menu", -1), mc = { class: "sf-layout-nav-content" }, gc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), bc = { id: "sf-layout-content" }, Jc = /* @__PURE__ */ Ne({
|
|
2131
2131
|
__name: "Layout",
|
|
2132
|
-
emits: ["logout"],
|
|
2132
|
+
emits: ["mounted", "logout"],
|
|
2133
2133
|
setup(t, { emit: e }) {
|
|
2134
2134
|
const n = To(), o = e;
|
|
2135
|
-
return (
|
|
2135
|
+
return Wt(() => {
|
|
2136
|
+
o("mounted");
|
|
2137
|
+
}), (i, c) => (X(), Ae("div", uc, [
|
|
2136
2138
|
j("header", null, [
|
|
2137
2139
|
j("div", {
|
|
2138
2140
|
class: ke([
|
|
@@ -2210,7 +2212,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2210
2212
|
key: 0,
|
|
2211
2213
|
icone: e.icon,
|
|
2212
2214
|
"button-props": { tabindex: -1 }
|
|
2213
|
-
}, null, 8, ["icone"])) :
|
|
2215
|
+
}, null, 8, ["icone"])) : xn("", !0),
|
|
2214
2216
|
j("span", yc, Vt(e.text), 1)
|
|
2215
2217
|
], 8, vc)
|
|
2216
2218
|
]),
|
|
@@ -2226,7 +2228,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2226
2228
|
function i() {
|
|
2227
2229
|
o == null || o.scrollTo(0, 0);
|
|
2228
2230
|
}
|
|
2229
|
-
return
|
|
2231
|
+
return Wt(() => {
|
|
2230
2232
|
var c;
|
|
2231
2233
|
o = ((c = document.getElementById(n)) == null ? void 0 : c.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
2232
2234
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
@@ -2262,7 +2264,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2262
2264
|
}
|
|
2263
2265
|
return (A, L) => (X(), Ae("div", {
|
|
2264
2266
|
class: ke(n()),
|
|
2265
|
-
style:
|
|
2267
|
+
style: _n(e.style)
|
|
2266
2268
|
}, [
|
|
2267
2269
|
j("div", {
|
|
2268
2270
|
class: ke(i())
|
|
@@ -2329,7 +2331,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2329
2331
|
const u = n.value.scrollWidth - n.value.clientWidth;
|
|
2330
2332
|
i.value = n.value.scrollLeft > 10, c.value = n.value.scrollLeft < u - 10;
|
|
2331
2333
|
}
|
|
2332
|
-
return
|
|
2334
|
+
return Wt(() => {
|
|
2333
2335
|
n.value.addEventListener("scroll", L), o.observe(n.value);
|
|
2334
2336
|
}), Ir(() => {
|
|
2335
2337
|
var u;
|
|
@@ -2408,7 +2410,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2408
2410
|
id: e.id,
|
|
2409
2411
|
name: e.name,
|
|
2410
2412
|
class: ke(n()),
|
|
2411
|
-
style:
|
|
2413
|
+
style: _n(e.style),
|
|
2412
2414
|
disabled: e.disabled || e.loading,
|
|
2413
2415
|
"data-color": e.color,
|
|
2414
2416
|
form: e.form,
|
|
@@ -2425,7 +2427,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2425
2427
|
loading: !0,
|
|
2426
2428
|
size: e.size,
|
|
2427
2429
|
"button-props": { tabindex: -1 }
|
|
2428
|
-
}, null, 8, ["size"])) :
|
|
2430
|
+
}, null, 8, ["size"])) : xn("", !0),
|
|
2429
2431
|
j("span", Lc, [
|
|
2430
2432
|
Ue(o.$slots, "default")
|
|
2431
2433
|
])
|
|
@@ -2457,13 +2459,13 @@ function Rc(t) {
|
|
|
2457
2459
|
});
|
|
2458
2460
|
}), n;
|
|
2459
2461
|
}
|
|
2460
|
-
var
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
var Re = [], Ce = [], Oc = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
2465
|
-
for (var rt = 0, Fc =
|
|
2466
|
-
Re[rt] =
|
|
2462
|
+
var Xt = {};
|
|
2463
|
+
Xt.byteLength = Bc;
|
|
2464
|
+
Xt.toByteArray = Uc;
|
|
2465
|
+
Xt.fromByteArray = $c;
|
|
2466
|
+
var Re = [], Ce = [], Oc = typeof Uint8Array < "u" ? Uint8Array : Array, hn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2467
|
+
for (var rt = 0, Fc = hn.length; rt < Fc; ++rt)
|
|
2468
|
+
Re[rt] = hn[rt], Ce[hn.charCodeAt(rt)] = rt;
|
|
2467
2469
|
Ce["-".charCodeAt(0)] = 62;
|
|
2468
2470
|
Ce["_".charCodeAt(0)] = 63;
|
|
2469
2471
|
function fr(t) {
|
|
@@ -2791,7 +2793,7 @@ function qc(t) {
|
|
|
2791
2793
|
return atob(e);
|
|
2792
2794
|
}
|
|
2793
2795
|
}
|
|
2794
|
-
function
|
|
2796
|
+
function pn(t, e) {
|
|
2795
2797
|
if (typeof t != "string")
|
|
2796
2798
|
throw new At("Invalid token specified: must be a string");
|
|
2797
2799
|
e || (e = {});
|
|
@@ -2955,7 +2957,7 @@ function pr(t) {
|
|
|
2955
2957
|
function Fe(r, a) {
|
|
2956
2958
|
switch (r) {
|
|
2957
2959
|
case "S256":
|
|
2958
|
-
var d = new Uint8Array(Vc.arrayBuffer(a)), g =
|
|
2960
|
+
var d = new Uint8Array(Vc.arrayBuffer(a)), g = Xt.fromByteArray(d).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
2959
2961
|
return g;
|
|
2960
2962
|
default:
|
|
2961
2963
|
throw "Invalid value for pkceMethod";
|
|
@@ -3222,8 +3224,8 @@ function pr(t) {
|
|
|
3222
3224
|
return r.status == 0 && r.responseText && r.responseURL.startsWith("file:");
|
|
3223
3225
|
}
|
|
3224
3226
|
function Z(r, a, d, g) {
|
|
3225
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), a ? (e.refreshToken = a, e.refreshTokenParsed =
|
|
3226
|
-
if (e.token = r, e.tokenParsed =
|
|
3227
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), a ? (e.refreshToken = a, e.refreshTokenParsed = pn(a)) : (delete e.refreshToken, delete e.refreshTokenParsed), d ? (e.idToken = d, e.idTokenParsed = pn(d)) : (delete e.idToken, delete e.idTokenParsed), r) {
|
|
3228
|
+
if (e.token = r, e.tokenParsed = pn(r), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, g && (e.timeSkew = Math.floor(g / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (D("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
3227
3229
|
var h = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3228
3230
|
D("[KEYCLOAK] Token expires in " + Math.round(h / 1e3) + " s"), h <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, h);
|
|
3229
3231
|
}
|
|
@@ -3643,7 +3645,7 @@ class nl {
|
|
|
3643
3645
|
}
|
|
3644
3646
|
t(), window.addEventListener("resize", t);
|
|
3645
3647
|
})();
|
|
3646
|
-
|
|
3648
|
+
An.SetInitialTheme();
|
|
3647
3649
|
export {
|
|
3648
3650
|
nl as AppResult,
|
|
3649
3651
|
So as Cor,
|