@luizleon/sf.prefeiturasp.vuecomponents 0.0.29 → 0.0.31
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 +258 -255
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +8 -8
- 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 +11 -1
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}%`;
|
|
@@ -531,8 +531,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
531
531
|
}, We = () => {
|
|
532
532
|
B.currentInstance.resetValidationMessage();
|
|
533
533
|
}, ds = () => {
|
|
534
|
-
const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select),
|
|
535
|
-
e.oninput = We, n.onchange = We, c.onchange = We,
|
|
534
|
+
const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select), w = t.querySelector(`.${l.checkbox} input`), L = $e(t, l.textarea);
|
|
535
|
+
e.oninput = We, n.onchange = We, c.onchange = We, w.onchange = We, L.oninput = We, o.oninput = () => {
|
|
536
536
|
We(), i.value = o.value;
|
|
537
537
|
}, o.onchange = () => {
|
|
538
538
|
We(), o.nextSibling.value = o.value;
|
|
@@ -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"]);
|
|
@@ -619,8 +619,8 @@ const Cs = (t, e) => {
|
|
|
619
619
|
}, Es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Ts = (t, e) => {
|
|
620
620
|
const n = V(), o = U.innerParams.get(t), i = !o || e.input !== o.input;
|
|
621
621
|
Es.forEach((c) => {
|
|
622
|
-
const
|
|
623
|
-
Is(c, e.inputAttributes), L.className =
|
|
622
|
+
const w = l[c], L = $e(n, w);
|
|
623
|
+
Is(c, e.inputAttributes), L.className = w, i && ie(L);
|
|
624
624
|
}), e.input && (i && Ss(e), Ps(e));
|
|
625
625
|
}, Ss = (t) => {
|
|
626
626
|
if (!ge[t.input])
|
|
@@ -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) {
|
|
@@ -772,16 +772,16 @@ const Rs = (t, e) => {
|
|
|
772
772
|
), e.progressSteps.forEach((o, i) => {
|
|
773
773
|
const c = Hs(o);
|
|
774
774
|
if (n.appendChild(c), i === e.currentProgressStep && H(c, l["active-progress-step"]), i !== e.progressSteps.length - 1) {
|
|
775
|
-
const
|
|
776
|
-
n.appendChild(
|
|
775
|
+
const w = js(e);
|
|
776
|
+
n.appendChild(w);
|
|
777
777
|
}
|
|
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) => {
|
|
@@ -839,8 +839,8 @@ const Rs = (t, e) => {
|
|
|
839
839
|
const o = t.querySelectorAll("swal-input-option");
|
|
840
840
|
return o.length && (e.inputOptions = {}, xe(o).forEach((i) => {
|
|
841
841
|
Ge(i, ["value"]);
|
|
842
|
-
const c = i.getAttribute("value"),
|
|
843
|
-
e.inputOptions[c] =
|
|
842
|
+
const c = i.getAttribute("value"), w = i.innerHTML;
|
|
843
|
+
e.inputOptions[c] = w;
|
|
844
844
|
})), e;
|
|
845
845
|
}, ei = (t, e) => {
|
|
846
846
|
const n = {};
|
|
@@ -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}`);
|
|
@@ -1003,38 +1003,38 @@ const ii = () => {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}, Ti = {
|
|
1005
1005
|
select: (t, e, n) => {
|
|
1006
|
-
const o = $e(t, l.select), i = (c,
|
|
1006
|
+
const o = $e(t, l.select), i = (c, w, L) => {
|
|
1007
1007
|
const u = document.createElement("option");
|
|
1008
|
-
u.value = L, re(u,
|
|
1008
|
+
u.value = L, re(u, w), u.selected = co(L, n.inputValue), c.appendChild(u);
|
|
1009
1009
|
};
|
|
1010
1010
|
e.forEach((c) => {
|
|
1011
|
-
const
|
|
1011
|
+
const w = c[0], L = c[1];
|
|
1012
1012
|
if (Array.isArray(L)) {
|
|
1013
1013
|
const u = document.createElement("optgroup");
|
|
1014
|
-
u.label =
|
|
1014
|
+
u.label = w, u.disabled = !1, o.appendChild(u), L.forEach((D) => i(u, D[1], D[0]));
|
|
1015
1015
|
} else
|
|
1016
|
-
i(o, L,
|
|
1016
|
+
i(o, L, w);
|
|
1017
1017
|
}), o.focus();
|
|
1018
1018
|
},
|
|
1019
1019
|
radio: (t, e, n) => {
|
|
1020
1020
|
const o = $e(t, l.radio);
|
|
1021
1021
|
e.forEach((c) => {
|
|
1022
|
-
const
|
|
1023
|
-
u.type = "radio", u.name = l.radio, u.value =
|
|
1022
|
+
const w = c[0], L = c[1], u = document.createElement("input"), D = document.createElement("label");
|
|
1023
|
+
u.type = "radio", u.name = l.radio, u.value = w, co(w, n.inputValue) && (u.checked = !0);
|
|
1024
1024
|
const W = document.createElement("span");
|
|
1025
1025
|
re(W, L), W.className = l.label, D.appendChild(u), D.appendChild(W), o.appendChild(D);
|
|
1026
1026
|
});
|
|
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,14 +1085,14 @@ 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))
|
|
1092
1092
|
return;
|
|
1093
1093
|
const i = Jo.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
1094
1094
|
let c = document.activeElement;
|
|
1095
|
-
for (let
|
|
1095
|
+
for (let w = 0; w < It().children.length; w++) {
|
|
1096
1096
|
if (c = c[i], !c)
|
|
1097
1097
|
return;
|
|
1098
1098
|
if (_e(c) && c instanceof HTMLButtonElement)
|
|
@@ -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: {
|
|
@@ -1464,8 +1464,8 @@ class pt {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
const Ca = (t, e, n) => new Promise((o, i) => {
|
|
1467
|
-
const c = (
|
|
1468
|
-
t.closePopup({ isDismissed: !0, dismiss:
|
|
1467
|
+
const c = (w) => {
|
|
1468
|
+
t.closePopup({ isDismissed: !0, dismiss: w });
|
|
1469
1469
|
};
|
|
1470
1470
|
Et.swalPromiseResolve.set(t, o), Et.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => ra(t), e.denyButton.onclick = () => sa(t), e.cancelButton.onclick = () => ia(t, c), e.closeButton.onclick = () => c(ht.close), ca(t, e, c), Oi(t, B, n, c), wi(t, n), mi(n), Sa(B, n, c), La(e, n), setTimeout(() => {
|
|
1471
1471
|
e.container.scrollTop = 0;
|
|
@@ -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(
|
|
@@ -1624,11 +1624,11 @@ const Ka = function() {
|
|
|
1624
1624
|
const c = "dompurify" + (o ? "#" + o : "");
|
|
1625
1625
|
try {
|
|
1626
1626
|
return e.createPolicy(c, {
|
|
1627
|
-
createHTML(
|
|
1628
|
-
return
|
|
1627
|
+
createHTML(w) {
|
|
1628
|
+
return w;
|
|
1629
1629
|
},
|
|
1630
|
-
createScriptURL(
|
|
1631
|
-
return
|
|
1630
|
+
createScriptURL(w) {
|
|
1631
|
+
return w;
|
|
1632
1632
|
}
|
|
1633
1633
|
});
|
|
1634
1634
|
} catch {
|
|
@@ -1645,7 +1645,7 @@ function dr() {
|
|
|
1645
1645
|
} = t;
|
|
1646
1646
|
const o = n, i = o.currentScript, {
|
|
1647
1647
|
DocumentFragment: c,
|
|
1648
|
-
HTMLTemplateElement:
|
|
1648
|
+
HTMLTemplateElement: w,
|
|
1649
1649
|
Node: L,
|
|
1650
1650
|
Element: u,
|
|
1651
1651
|
NodeFilter: D,
|
|
@@ -1654,7 +1654,7 @@ function dr() {
|
|
|
1654
1654
|
DOMParser: ae,
|
|
1655
1655
|
trustedTypes: z
|
|
1656
1656
|
} = t, Fe = u.prototype, Je = Dt(Fe, "cloneNode"), ve = Dt(Fe, "nextSibling"), Xe = Dt(Fe, "childNodes"), de = Dt(Fe, "parentNode");
|
|
1657
|
-
if (typeof
|
|
1657
|
+
if (typeof w == "function") {
|
|
1658
1658
|
const S = n.createElement("template");
|
|
1659
1659
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
1660
1660
|
}
|
|
@@ -1662,12 +1662,12 @@ function dr() {
|
|
|
1662
1662
|
const {
|
|
1663
1663
|
implementation: Z,
|
|
1664
1664
|
createNodeIterator: f,
|
|
1665
|
-
createDocumentFragment:
|
|
1665
|
+
createDocumentFragment: A,
|
|
1666
1666
|
getElementsByTagName: I
|
|
1667
1667
|
} = n, {
|
|
1668
1668
|
importNode: _
|
|
1669
1669
|
} = o;
|
|
1670
|
-
let
|
|
1670
|
+
let k = {};
|
|
1671
1671
|
e.isSupported = typeof ir == "function" && typeof de == "function" && Z && Z.createHTMLDocument !== void 0;
|
|
1672
1672
|
const {
|
|
1673
1673
|
MUSTACHE_EXPR: y,
|
|
@@ -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
|
}
|
|
@@ -1827,7 +1827,7 @@ function dr() {
|
|
|
1827
1827
|
}, Gn = function(s) {
|
|
1828
1828
|
return typeof L == "function" && s instanceof L;
|
|
1829
1829
|
}, Me = function(s, v, T) {
|
|
1830
|
-
|
|
1830
|
+
k[s] && Ut(k[s], (K) => {
|
|
1831
1831
|
K.call(e, v, T, tt);
|
|
1832
1832
|
});
|
|
1833
1833
|
}, Yn = function(s) {
|
|
@@ -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])
|
|
@@ -1978,7 +1978,7 @@ function dr() {
|
|
|
1978
1978
|
return S;
|
|
1979
1979
|
if (le) {
|
|
1980
1980
|
if (ee)
|
|
1981
|
-
for (ne =
|
|
1981
|
+
for (ne = A.call(v.ownerDocument); v.firstChild; )
|
|
1982
1982
|
ne.appendChild(v.firstChild);
|
|
1983
1983
|
else
|
|
1984
1984
|
ne = v;
|
|
@@ -1991,22 +1991,22 @@ 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) {
|
|
2002
|
-
typeof s == "function" && (
|
|
2002
|
+
typeof s == "function" && (k[S] = k[S] || [], bt(k[S], s));
|
|
2003
2003
|
}, e.removeHook = function(S) {
|
|
2004
|
-
if (
|
|
2005
|
-
return go(
|
|
2004
|
+
if (k[S])
|
|
2005
|
+
return go(k[S]);
|
|
2006
2006
|
}, e.removeHooks = function(S) {
|
|
2007
|
-
|
|
2007
|
+
k[S] && (k[S] = []);
|
|
2008
2008
|
}, e.removeAllHooks = function() {
|
|
2009
|
-
|
|
2009
|
+
k = {};
|
|
2010
2010
|
}, e;
|
|
2011
2011
|
}
|
|
2012
2012
|
var Ao = dr();
|
|
@@ -2057,7 +2057,7 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2057
2057
|
confirmLabel: "sair"
|
|
2058
2058
|
}) && i("logout");
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function w() {
|
|
2061
2061
|
const u = sessionStorage.getItem("name");
|
|
2062
2062
|
let D = "?";
|
|
2063
2063
|
if (!u)
|
|
@@ -2069,8 +2069,8 @@ 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
|
|
2073
|
-
o.value =
|
|
2072
|
+
return Wt(() => {
|
|
2073
|
+
o.value = w();
|
|
2074
2074
|
}), (u, D) => (X(), Ae("div", {
|
|
2075
2075
|
id: "sf-header-avatar",
|
|
2076
2076
|
"data-cor": L.value,
|
|
@@ -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,34 +2124,37 @@ 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
|
-
|
|
2135
|
+
function i() {
|
|
2136
|
+
o("logout");
|
|
2137
|
+
}
|
|
2138
|
+
return Wt(() => {
|
|
2139
|
+
o("mounted");
|
|
2140
|
+
}), (c, w) => (X(), Ae("div", uc, [
|
|
2136
2141
|
j("header", null, [
|
|
2137
2142
|
j("div", {
|
|
2138
2143
|
class: ke([
|
|
2139
2144
|
"sf-layout-menu-toggler",
|
|
2140
2145
|
{ invert: qe(n).IsVisible }
|
|
2141
2146
|
]),
|
|
2142
|
-
onClick:
|
|
2147
|
+
onClick: w[0] || (w[0] = (L) => qe(n).Toggle())
|
|
2143
2148
|
}, [
|
|
2144
2149
|
dc,
|
|
2145
2150
|
wt(sc)
|
|
2146
2151
|
], 2),
|
|
2147
2152
|
j("div", fc, [
|
|
2148
|
-
Ue(
|
|
2153
|
+
Ue(c.$slots, "title")
|
|
2149
2154
|
]),
|
|
2150
|
-
Ue(
|
|
2155
|
+
Ue(c.$slots, "action"),
|
|
2151
2156
|
wt(lc),
|
|
2152
|
-
wt(Qa, {
|
|
2153
|
-
onLogout: c[1] || (c[1] = (A) => o("logout"))
|
|
2154
|
-
})
|
|
2157
|
+
wt(Qa, { onLogout: i })
|
|
2155
2158
|
]),
|
|
2156
2159
|
j("nav", {
|
|
2157
2160
|
class: ke({ visible: qe(n).IsVisible })
|
|
@@ -2161,11 +2164,11 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2161
2164
|
wt(Ht, {
|
|
2162
2165
|
icone: "close",
|
|
2163
2166
|
button: "",
|
|
2164
|
-
onClick:
|
|
2167
|
+
onClick: w[1] || (w[1] = (L) => qe(n).Close())
|
|
2165
2168
|
})
|
|
2166
2169
|
]),
|
|
2167
2170
|
j("div", mc, [
|
|
2168
|
-
Ue(
|
|
2171
|
+
Ue(c.$slots, "menu")
|
|
2169
2172
|
])
|
|
2170
2173
|
], 2),
|
|
2171
2174
|
j("main", {
|
|
@@ -2173,7 +2176,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2173
2176
|
}, [
|
|
2174
2177
|
gc,
|
|
2175
2178
|
j("section", bc, [
|
|
2176
|
-
Ue(
|
|
2179
|
+
Ue(c.$slots, "content")
|
|
2177
2180
|
])
|
|
2178
2181
|
], 2)
|
|
2179
2182
|
]));
|
|
@@ -2194,8 +2197,8 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2194
2197
|
c(), L && L.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2195
2198
|
}
|
|
2196
2199
|
return (i, c) => {
|
|
2197
|
-
const
|
|
2198
|
-
return X(), ut(
|
|
2200
|
+
const w = Co("router-link");
|
|
2201
|
+
return X(), ut(w, {
|
|
2199
2202
|
to: e.href,
|
|
2200
2203
|
custom: ""
|
|
2201
2204
|
}, {
|
|
@@ -2210,7 +2213,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2210
2213
|
key: 0,
|
|
2211
2214
|
icone: e.icon,
|
|
2212
2215
|
"button-props": { tabindex: -1 }
|
|
2213
|
-
}, null, 8, ["icone"])) :
|
|
2216
|
+
}, null, 8, ["icone"])) : xn("", !0),
|
|
2214
2217
|
j("span", yc, Vt(e.text), 1)
|
|
2215
2218
|
], 8, vc)
|
|
2216
2219
|
]),
|
|
@@ -2226,12 +2229,12 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2226
2229
|
function i() {
|
|
2227
2230
|
o == null || o.scrollTo(0, 0);
|
|
2228
2231
|
}
|
|
2229
|
-
return
|
|
2232
|
+
return Wt(() => {
|
|
2230
2233
|
var c;
|
|
2231
2234
|
o = ((c = document.getElementById(n)) == null ? void 0 : c.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
2232
2235
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
2233
2236
|
});
|
|
2234
|
-
}), (c,
|
|
2237
|
+
}), (c, w) => (X(), Ae("button", {
|
|
2235
2238
|
id: n,
|
|
2236
2239
|
class: ke(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
2237
2240
|
onClick: i
|
|
@@ -2260,25 +2263,25 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2260
2263
|
function c() {
|
|
2261
2264
|
return new st("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
2262
2265
|
}
|
|
2263
|
-
return (
|
|
2266
|
+
return (w, L) => (X(), Ae("div", {
|
|
2264
2267
|
class: ke(n()),
|
|
2265
|
-
style:
|
|
2268
|
+
style: _n(e.style)
|
|
2266
2269
|
}, [
|
|
2267
2270
|
j("div", {
|
|
2268
2271
|
class: ke(i())
|
|
2269
2272
|
}, [
|
|
2270
|
-
Ue(
|
|
2273
|
+
Ue(w.$slots, "header")
|
|
2271
2274
|
], 2),
|
|
2272
2275
|
j("div", {
|
|
2273
2276
|
class: ke(o())
|
|
2274
2277
|
}, [
|
|
2275
|
-
Ue(
|
|
2278
|
+
Ue(w.$slots, "default"),
|
|
2276
2279
|
wt(wc)
|
|
2277
2280
|
], 2),
|
|
2278
2281
|
j("div", {
|
|
2279
2282
|
class: ke(c())
|
|
2280
2283
|
}, [
|
|
2281
|
-
Ue(
|
|
2284
|
+
Ue(w.$slots, "footer")
|
|
2282
2285
|
], 2)
|
|
2283
2286
|
], 6));
|
|
2284
2287
|
}
|
|
@@ -2321,7 +2324,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2321
2324
|
const e = t, n = it(null), o = new ResizeObserver((u) => {
|
|
2322
2325
|
L();
|
|
2323
2326
|
}), i = it(!1), c = it(!1);
|
|
2324
|
-
function
|
|
2327
|
+
function w(u = !1) {
|
|
2325
2328
|
const D = n.value.clientWidth;
|
|
2326
2329
|
n.value.scrollLeft += u ? -D : D;
|
|
2327
2330
|
}
|
|
@@ -2329,7 +2332,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2329
2332
|
const u = n.value.scrollWidth - n.value.clientWidth;
|
|
2330
2333
|
i.value = n.value.scrollLeft > 10, c.value = n.value.scrollLeft < u - 10;
|
|
2331
2334
|
}
|
|
2332
|
-
return
|
|
2335
|
+
return Wt(() => {
|
|
2333
2336
|
n.value.addEventListener("scroll", L), o.observe(n.value);
|
|
2334
2337
|
}), Ir(() => {
|
|
2335
2338
|
var u;
|
|
@@ -2345,7 +2348,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2345
2348
|
return X(), Ae("div", kc, [
|
|
2346
2349
|
j("div", {
|
|
2347
2350
|
class: ke(["left-arrow", { active: i.value }]),
|
|
2348
|
-
onClick: D[0] || (D[0] = (Y) =>
|
|
2351
|
+
onClick: D[0] || (D[0] = (Y) => w(!0))
|
|
2349
2352
|
}, _c, 2),
|
|
2350
2353
|
j("ul", {
|
|
2351
2354
|
ref_key: "trackerContainer",
|
|
@@ -2375,7 +2378,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2375
2378
|
], 512),
|
|
2376
2379
|
j("div", {
|
|
2377
2380
|
class: ke(["right-arrow", { active: c.value }]),
|
|
2378
|
-
onClick: D[1] || (D[1] = (Y) =>
|
|
2381
|
+
onClick: D[1] || (D[1] = (Y) => w())
|
|
2379
2382
|
}, Tc, 2)
|
|
2380
2383
|
]);
|
|
2381
2384
|
};
|
|
@@ -2408,7 +2411,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2408
2411
|
id: e.id,
|
|
2409
2412
|
name: e.name,
|
|
2410
2413
|
class: ke(n()),
|
|
2411
|
-
style:
|
|
2414
|
+
style: _n(e.style),
|
|
2412
2415
|
disabled: e.disabled || e.loading,
|
|
2413
2416
|
"data-color": e.color,
|
|
2414
2417
|
form: e.form,
|
|
@@ -2425,7 +2428,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2425
2428
|
loading: !0,
|
|
2426
2429
|
size: e.size,
|
|
2427
2430
|
"button-props": { tabindex: -1 }
|
|
2428
|
-
}, null, 8, ["size"])) :
|
|
2431
|
+
}, null, 8, ["size"])) : xn("", !0),
|
|
2429
2432
|
j("span", Lc, [
|
|
2430
2433
|
Ue(o.$slots, "default")
|
|
2431
2434
|
])
|
|
@@ -2457,13 +2460,13 @@ function Rc(t) {
|
|
|
2457
2460
|
});
|
|
2458
2461
|
}), n;
|
|
2459
2462
|
}
|
|
2460
|
-
var
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
var Re = [], Ce = [], Oc = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
2465
|
-
for (var rt = 0, Fc =
|
|
2466
|
-
Re[rt] =
|
|
2463
|
+
var Xt = {};
|
|
2464
|
+
Xt.byteLength = Bc;
|
|
2465
|
+
Xt.toByteArray = Uc;
|
|
2466
|
+
Xt.fromByteArray = $c;
|
|
2467
|
+
var Re = [], Ce = [], Oc = typeof Uint8Array < "u" ? Uint8Array : Array, hn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2468
|
+
for (var rt = 0, Fc = hn.length; rt < Fc; ++rt)
|
|
2469
|
+
Re[rt] = hn[rt], Ce[hn.charCodeAt(rt)] = rt;
|
|
2467
2470
|
Ce["-".charCodeAt(0)] = 62;
|
|
2468
2471
|
Ce["_".charCodeAt(0)] = 63;
|
|
2469
2472
|
function fr(t) {
|
|
@@ -2483,10 +2486,10 @@ function Mc(t, e, n) {
|
|
|
2483
2486
|
return (e + n) * 3 / 4 - n;
|
|
2484
2487
|
}
|
|
2485
2488
|
function Uc(t) {
|
|
2486
|
-
var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)),
|
|
2489
|
+
var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), w = 0, L = i > 0 ? o - 4 : o, u;
|
|
2487
2490
|
for (u = 0; u < L; u += 4)
|
|
2488
|
-
e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[
|
|
2489
|
-
return i === 2 && (e = Ce[t.charCodeAt(u)] << 2 | Ce[t.charCodeAt(u + 1)] >> 4, c[
|
|
2491
|
+
e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[w++] = e >> 16 & 255, c[w++] = e >> 8 & 255, c[w++] = e & 255;
|
|
2492
|
+
return i === 2 && (e = Ce[t.charCodeAt(u)] << 2 | Ce[t.charCodeAt(u + 1)] >> 4, c[w++] = e & 255), i === 1 && (e = Ce[t.charCodeAt(u)] << 10 | Ce[t.charCodeAt(u + 1)] << 4 | Ce[t.charCodeAt(u + 2)] >> 2, c[w++] = e >> 8 & 255, c[w++] = e & 255), c;
|
|
2490
2493
|
}
|
|
2491
2494
|
function Dc(t) {
|
|
2492
2495
|
return Re[t >> 18 & 63] + Re[t >> 12 & 63] + Re[t >> 6 & 63] + Re[t & 63];
|
|
@@ -2497,8 +2500,8 @@ function Nc(t, e, n) {
|
|
|
2497
2500
|
return i.join("");
|
|
2498
2501
|
}
|
|
2499
2502
|
function $c(t) {
|
|
2500
|
-
for (var e, n = t.length, o = n % 3, i = [], c = 16383,
|
|
2501
|
-
i.push(Nc(t,
|
|
2503
|
+
for (var e, n = t.length, o = n % 3, i = [], c = 16383, w = 0, L = n - o; w < L; w += c)
|
|
2504
|
+
i.push(Nc(t, w, w + c > L ? L : w + c));
|
|
2502
2505
|
return o === 1 ? (e = t[n - 1], i.push(
|
|
2503
2506
|
Re[e >> 2] + Re[e << 4 & 63] + "=="
|
|
2504
2507
|
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
|
|
@@ -2524,7 +2527,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2524
2527
|
o.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2525
2528
|
var i = !n && typeof self == "object", c = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2526
2529
|
c ? o = Ic : i && (o = self);
|
|
2527
|
-
var
|
|
2530
|
+
var w = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, L = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", u = "0123456789abcdef".split(""), D = [-2147483648, 8388608, 32768, 128], W = [24, 16, 8, 0], Y = [
|
|
2528
2531
|
1116352408,
|
|
2529
2532
|
1899447441,
|
|
2530
2533
|
3049323471,
|
|
@@ -2595,58 +2598,58 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2595
2598
|
}), L && (o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(f) {
|
|
2596
2599
|
return typeof f == "object" && f.buffer && f.buffer.constructor === ArrayBuffer;
|
|
2597
2600
|
});
|
|
2598
|
-
var Fe = function(f,
|
|
2601
|
+
var Fe = function(f, A) {
|
|
2599
2602
|
return function(I) {
|
|
2600
|
-
return new N(
|
|
2603
|
+
return new N(A, !0).update(I)[f]();
|
|
2601
2604
|
};
|
|
2602
2605
|
}, Je = function(f) {
|
|
2603
|
-
var
|
|
2604
|
-
c && (
|
|
2606
|
+
var A = Fe("hex", f);
|
|
2607
|
+
c && (A = ve(A, f)), A.create = function() {
|
|
2605
2608
|
return new N(f);
|
|
2606
|
-
},
|
|
2607
|
-
return
|
|
2609
|
+
}, A.update = function(k) {
|
|
2610
|
+
return A.create().update(k);
|
|
2608
2611
|
};
|
|
2609
2612
|
for (var I = 0; I < ae.length; ++I) {
|
|
2610
2613
|
var _ = ae[I];
|
|
2611
|
-
|
|
2614
|
+
A[_] = Fe(_, f);
|
|
2612
2615
|
}
|
|
2613
|
-
return
|
|
2614
|
-
}, ve = function(f,
|
|
2615
|
-
var I = _o, _ = _o.Buffer,
|
|
2616
|
+
return A;
|
|
2617
|
+
}, ve = function(f, A) {
|
|
2618
|
+
var I = _o, _ = _o.Buffer, k = A ? "sha224" : "sha256", y;
|
|
2616
2619
|
_.from && !o.JS_SHA256_NO_BUFFER_FROM ? y = _.from : y = function(p) {
|
|
2617
2620
|
return new _(p);
|
|
2618
2621
|
};
|
|
2619
2622
|
var O = function(p) {
|
|
2620
2623
|
if (typeof p == "string")
|
|
2621
|
-
return I.createHash(
|
|
2624
|
+
return I.createHash(k).update(p, "utf8").digest("hex");
|
|
2622
2625
|
if (p == null)
|
|
2623
2626
|
throw new Error(e);
|
|
2624
|
-
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor === _ ? I.createHash(
|
|
2627
|
+
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor === _ ? I.createHash(k).update(y(p)).digest("hex") : f(p);
|
|
2625
2628
|
};
|
|
2626
2629
|
return O;
|
|
2627
|
-
}, Xe = function(f,
|
|
2630
|
+
}, Xe = function(f, A) {
|
|
2628
2631
|
return function(I, _) {
|
|
2629
|
-
return new ye(I,
|
|
2632
|
+
return new ye(I, A, !0).update(_)[f]();
|
|
2630
2633
|
};
|
|
2631
2634
|
}, de = function(f) {
|
|
2632
|
-
var
|
|
2633
|
-
|
|
2634
|
-
return new ye(
|
|
2635
|
-
},
|
|
2636
|
-
return
|
|
2635
|
+
var A = Xe("hex", f);
|
|
2636
|
+
A.create = function(k) {
|
|
2637
|
+
return new ye(k, f);
|
|
2638
|
+
}, A.update = function(k, y) {
|
|
2639
|
+
return A.create(k).update(y);
|
|
2637
2640
|
};
|
|
2638
2641
|
for (var I = 0; I < ae.length; ++I) {
|
|
2639
2642
|
var _ = ae[I];
|
|
2640
|
-
|
|
2643
|
+
A[_] = Xe(_, f);
|
|
2641
2644
|
}
|
|
2642
|
-
return
|
|
2645
|
+
return A;
|
|
2643
2646
|
};
|
|
2644
|
-
function N(f,
|
|
2645
|
-
|
|
2647
|
+
function N(f, A) {
|
|
2648
|
+
A ? (z[0] = z[16] = z[1] = z[2] = z[3] = z[4] = z[5] = z[6] = z[7] = z[8] = z[9] = z[10] = z[11] = z[12] = z[13] = z[14] = z[15] = 0, this.blocks = z) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], f ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = f;
|
|
2646
2649
|
}
|
|
2647
2650
|
N.prototype.update = function(f) {
|
|
2648
2651
|
if (!this.finalized) {
|
|
2649
|
-
var
|
|
2652
|
+
var A, I = typeof f;
|
|
2650
2653
|
if (I !== "string") {
|
|
2651
2654
|
if (I === "object") {
|
|
2652
2655
|
if (f === null)
|
|
@@ -2657,15 +2660,15 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2657
2660
|
throw new Error(e);
|
|
2658
2661
|
} else
|
|
2659
2662
|
throw new Error(e);
|
|
2660
|
-
|
|
2663
|
+
A = !0;
|
|
2661
2664
|
}
|
|
2662
|
-
for (var _,
|
|
2663
|
-
if (this.hashed && (this.hashed = !1, p[0] = this.block, p[16] = p[1] = p[2] = p[3] = p[4] = p[5] = p[6] = p[7] = p[8] = p[9] = p[10] = p[11] = p[12] = p[13] = p[14] = p[15] = 0),
|
|
2664
|
-
for (y = this.start;
|
|
2665
|
-
p[y >> 2] |= f[
|
|
2665
|
+
for (var _, k = 0, y, O = f.length, p = this.blocks; k < O; ) {
|
|
2666
|
+
if (this.hashed && (this.hashed = !1, p[0] = this.block, p[16] = p[1] = p[2] = p[3] = p[4] = p[5] = p[6] = p[7] = p[8] = p[9] = p[10] = p[11] = p[12] = p[13] = p[14] = p[15] = 0), A)
|
|
2667
|
+
for (y = this.start; k < O && y < 64; ++k)
|
|
2668
|
+
p[y >> 2] |= f[k] << W[y++ & 3];
|
|
2666
2669
|
else
|
|
2667
|
-
for (y = this.start;
|
|
2668
|
-
_ = f.charCodeAt(
|
|
2670
|
+
for (y = this.start; k < O && y < 64; ++k)
|
|
2671
|
+
_ = f.charCodeAt(k), _ < 128 ? p[y >> 2] |= _ << W[y++ & 3] : _ < 2048 ? (p[y >> 2] |= (192 | _ >> 6) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]) : _ < 55296 || _ >= 57344 ? (p[y >> 2] |= (224 | _ >> 12) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 6 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]) : (_ = 65536 + ((_ & 1023) << 10 | f.charCodeAt(++k) & 1023), p[y >> 2] |= (240 | _ >> 18) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 12 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 6 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]);
|
|
2669
2672
|
this.lastByteIndex = y, this.bytes += y - this.start, y >= 64 ? (this.block = p[16], this.start = y - 64, this.hash(), this.hashed = !0) : this.start = y;
|
|
2670
2673
|
}
|
|
2671
2674
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
@@ -2673,31 +2676,31 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2673
2676
|
}, N.prototype.finalize = function() {
|
|
2674
2677
|
if (!this.finalized) {
|
|
2675
2678
|
this.finalized = !0;
|
|
2676
|
-
var f = this.blocks,
|
|
2677
|
-
f[16] = this.block, f[
|
|
2679
|
+
var f = this.blocks, A = this.lastByteIndex;
|
|
2680
|
+
f[16] = this.block, f[A >> 2] |= D[A & 3], this.block = f[16], A >= 56 && (this.hashed || this.hash(), f[0] = this.block, f[16] = f[1] = f[2] = f[3] = f[4] = f[5] = f[6] = f[7] = f[8] = f[9] = f[10] = f[11] = f[12] = f[13] = f[14] = f[15] = 0), f[14] = this.hBytes << 3 | this.bytes >>> 29, f[15] = this.bytes << 3, this.hash();
|
|
2678
2681
|
}
|
|
2679
2682
|
}, N.prototype.hash = function() {
|
|
2680
|
-
var f = this.h0,
|
|
2683
|
+
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7, F = this.blocks, q, J, G, ce, P, fe, r, a, d, g, h;
|
|
2681
2684
|
for (q = 16; q < 64; ++q)
|
|
2682
2685
|
P = F[q - 15], J = (P >>> 7 | P << 25) ^ (P >>> 18 | P << 14) ^ P >>> 3, P = F[q - 2], G = (P >>> 17 | P << 15) ^ (P >>> 19 | P << 13) ^ P >>> 10, F[q] = F[q - 16] + J + F[q - 7] + G << 0;
|
|
2683
|
-
for (h =
|
|
2684
|
-
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0, _ = P + 24177077 << 0) : (a = 704751109, P = F[0] - 210244248, p = P - 1521486534 << 0, _ = P + 143694565 << 0), this.first = !1) : (J = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), G = (
|
|
2685
|
-
this.h0 = this.h0 + f << 0, this.h1 = this.h1 +
|
|
2686
|
+
for (h = A & I, q = 0; q < 64; q += 4)
|
|
2687
|
+
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0, _ = P + 24177077 << 0) : (a = 704751109, P = F[0] - 210244248, p = P - 1521486534 << 0, _ = P + 143694565 << 0), this.first = !1) : (J = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), G = (k >>> 6 | k << 26) ^ (k >>> 11 | k << 21) ^ (k >>> 25 | k << 7), a = f & A, ce = a ^ f & I ^ h, r = k & y ^ ~k & O, P = p + G + r + Y[q] + F[q], fe = J + ce, p = _ + P << 0, _ = P + fe << 0), J = (_ >>> 2 | _ << 30) ^ (_ >>> 13 | _ << 19) ^ (_ >>> 22 | _ << 10), G = (p >>> 6 | p << 26) ^ (p >>> 11 | p << 21) ^ (p >>> 25 | p << 7), d = _ & f, ce = d ^ _ & A ^ a, r = p & k ^ ~p & y, P = O + G + r + Y[q + 1] + F[q + 1], fe = J + ce, O = I + P << 0, I = P + fe << 0, J = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), G = (O >>> 6 | O << 26) ^ (O >>> 11 | O << 21) ^ (O >>> 25 | O << 7), g = I & _, ce = g ^ I & f ^ d, r = O & p ^ ~O & k, P = y + G + r + Y[q + 2] + F[q + 2], fe = J + ce, y = A + P << 0, A = P + fe << 0, J = (A >>> 2 | A << 30) ^ (A >>> 13 | A << 19) ^ (A >>> 22 | A << 10), G = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), h = A & I, ce = h ^ A & _ ^ g, r = y & O ^ ~y & p, P = k + G + r + Y[q + 3] + F[q + 3], fe = J + ce, k = f + P << 0, f = P + fe << 0, this.chromeBugWorkAround = !0;
|
|
2688
|
+
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + A << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + _ << 0, this.h4 = this.h4 + k << 0, this.h5 = this.h5 + y << 0, this.h6 = this.h6 + O << 0, this.h7 = this.h7 + p << 0;
|
|
2686
2689
|
}, N.prototype.hex = function() {
|
|
2687
2690
|
this.finalize();
|
|
2688
|
-
var f = this.h0,
|
|
2691
|
+
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7, F = u[f >> 28 & 15] + u[f >> 24 & 15] + u[f >> 20 & 15] + u[f >> 16 & 15] + u[f >> 12 & 15] + u[f >> 8 & 15] + u[f >> 4 & 15] + u[f & 15] + u[A >> 28 & 15] + u[A >> 24 & 15] + u[A >> 20 & 15] + u[A >> 16 & 15] + u[A >> 12 & 15] + u[A >> 8 & 15] + u[A >> 4 & 15] + u[A & 15] + u[I >> 28 & 15] + u[I >> 24 & 15] + u[I >> 20 & 15] + u[I >> 16 & 15] + u[I >> 12 & 15] + u[I >> 8 & 15] + u[I >> 4 & 15] + u[I & 15] + u[_ >> 28 & 15] + u[_ >> 24 & 15] + u[_ >> 20 & 15] + u[_ >> 16 & 15] + u[_ >> 12 & 15] + u[_ >> 8 & 15] + u[_ >> 4 & 15] + u[_ & 15] + u[k >> 28 & 15] + u[k >> 24 & 15] + u[k >> 20 & 15] + u[k >> 16 & 15] + u[k >> 12 & 15] + u[k >> 8 & 15] + u[k >> 4 & 15] + u[k & 15] + u[y >> 28 & 15] + u[y >> 24 & 15] + u[y >> 20 & 15] + u[y >> 16 & 15] + u[y >> 12 & 15] + u[y >> 8 & 15] + u[y >> 4 & 15] + u[y & 15] + u[O >> 28 & 15] + u[O >> 24 & 15] + u[O >> 20 & 15] + u[O >> 16 & 15] + u[O >> 12 & 15] + u[O >> 8 & 15] + u[O >> 4 & 15] + u[O & 15];
|
|
2689
2692
|
return this.is224 || (F += u[p >> 28 & 15] + u[p >> 24 & 15] + u[p >> 20 & 15] + u[p >> 16 & 15] + u[p >> 12 & 15] + u[p >> 8 & 15] + u[p >> 4 & 15] + u[p & 15]), F;
|
|
2690
2693
|
}, N.prototype.toString = N.prototype.hex, N.prototype.digest = function() {
|
|
2691
2694
|
this.finalize();
|
|
2692
|
-
var f = this.h0,
|
|
2695
|
+
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7, F = [
|
|
2693
2696
|
f >> 24 & 255,
|
|
2694
2697
|
f >> 16 & 255,
|
|
2695
2698
|
f >> 8 & 255,
|
|
2696
2699
|
f & 255,
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2700
|
+
A >> 24 & 255,
|
|
2701
|
+
A >> 16 & 255,
|
|
2702
|
+
A >> 8 & 255,
|
|
2703
|
+
A & 255,
|
|
2701
2704
|
I >> 24 & 255,
|
|
2702
2705
|
I >> 16 & 255,
|
|
2703
2706
|
I >> 8 & 255,
|
|
@@ -2706,10 +2709,10 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2706
2709
|
_ >> 16 & 255,
|
|
2707
2710
|
_ >> 8 & 255,
|
|
2708
2711
|
_ & 255,
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2712
|
+
k >> 24 & 255,
|
|
2713
|
+
k >> 16 & 255,
|
|
2714
|
+
k >> 8 & 255,
|
|
2715
|
+
k & 255,
|
|
2713
2716
|
y >> 24 & 255,
|
|
2714
2717
|
y >> 16 & 255,
|
|
2715
2718
|
y >> 8 & 255,
|
|
@@ -2722,17 +2725,17 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2722
2725
|
return this.is224 || F.push(p >> 24 & 255, p >> 16 & 255, p >> 8 & 255, p & 255), F;
|
|
2723
2726
|
}, N.prototype.array = N.prototype.digest, N.prototype.arrayBuffer = function() {
|
|
2724
2727
|
this.finalize();
|
|
2725
|
-
var f = new ArrayBuffer(this.is224 ? 28 : 32),
|
|
2726
|
-
return
|
|
2728
|
+
var f = new ArrayBuffer(this.is224 ? 28 : 32), A = new DataView(f);
|
|
2729
|
+
return A.setUint32(0, this.h0), A.setUint32(4, this.h1), A.setUint32(8, this.h2), A.setUint32(12, this.h3), A.setUint32(16, this.h4), A.setUint32(20, this.h5), A.setUint32(24, this.h6), this.is224 || A.setUint32(28, this.h7), f;
|
|
2727
2730
|
};
|
|
2728
|
-
function ye(f,
|
|
2729
|
-
var _,
|
|
2730
|
-
if (
|
|
2731
|
+
function ye(f, A, I) {
|
|
2732
|
+
var _, k = typeof f;
|
|
2733
|
+
if (k === "string") {
|
|
2731
2734
|
var y = [], O = f.length, p = 0, F;
|
|
2732
2735
|
for (_ = 0; _ < O; ++_)
|
|
2733
2736
|
F = f.charCodeAt(_), F < 128 ? y[p++] = F : F < 2048 ? (y[p++] = 192 | F >> 6, y[p++] = 128 | F & 63) : F < 55296 || F >= 57344 ? (y[p++] = 224 | F >> 12, y[p++] = 128 | F >> 6 & 63, y[p++] = 128 | F & 63) : (F = 65536 + ((F & 1023) << 10 | f.charCodeAt(++_) & 1023), y[p++] = 240 | F >> 18, y[p++] = 128 | F >> 12 & 63, y[p++] = 128 | F >> 6 & 63, y[p++] = 128 | F & 63);
|
|
2734
2737
|
f = y;
|
|
2735
|
-
} else if (
|
|
2738
|
+
} else if (k === "object") {
|
|
2736
2739
|
if (f === null)
|
|
2737
2740
|
throw new Error(e);
|
|
2738
2741
|
if (L && f.constructor === ArrayBuffer)
|
|
@@ -2741,13 +2744,13 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2741
2744
|
throw new Error(e);
|
|
2742
2745
|
} else
|
|
2743
2746
|
throw new Error(e);
|
|
2744
|
-
f.length > 64 && (f = new N(
|
|
2747
|
+
f.length > 64 && (f = new N(A, !0).update(f).array());
|
|
2745
2748
|
var q = [], J = [];
|
|
2746
2749
|
for (_ = 0; _ < 64; ++_) {
|
|
2747
2750
|
var G = f[_] || 0;
|
|
2748
2751
|
q[_] = 92 ^ G, J[_] = 54 ^ G;
|
|
2749
2752
|
}
|
|
2750
|
-
N.call(this,
|
|
2753
|
+
N.call(this, A, I), this.update(J), this.oKeyPad = q, this.inner = !0, this.sharedMemory = I;
|
|
2751
2754
|
}
|
|
2752
2755
|
ye.prototype = new N(), ye.prototype.finalize = function() {
|
|
2753
2756
|
if (N.prototype.finalize.call(this), this.inner) {
|
|
@@ -2757,7 +2760,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2757
2760
|
}
|
|
2758
2761
|
};
|
|
2759
2762
|
var Z = Je();
|
|
2760
|
-
Z.sha256 = Z, Z.sha224 = Je(!0), Z.sha256.hmac = de(), Z.sha224.hmac = de(!0),
|
|
2763
|
+
Z.sha256 = Z, Z.sha224 = Je(!0), Z.sha256.hmac = de(), Z.sha224.hmac = de(!0), w ? t.exports = Z : (o.sha256 = Z.sha256, o.sha224 = Z.sha224);
|
|
2761
2764
|
})();
|
|
2762
2765
|
})(hr);
|
|
2763
2766
|
var zc = hr.exports;
|
|
@@ -2791,7 +2794,7 @@ function qc(t) {
|
|
|
2791
2794
|
return atob(e);
|
|
2792
2795
|
}
|
|
2793
2796
|
}
|
|
2794
|
-
function
|
|
2797
|
+
function pn(t, e) {
|
|
2795
2798
|
if (typeof t != "string")
|
|
2796
2799
|
throw new At("Invalid token specified: must be a string");
|
|
2797
2800
|
e || (e = {});
|
|
@@ -2819,8 +2822,8 @@ function pr(t) {
|
|
|
2819
2822
|
enable: !0,
|
|
2820
2823
|
callbackList: [],
|
|
2821
2824
|
interval: 5
|
|
2822
|
-
},
|
|
2823
|
-
(
|
|
2825
|
+
}, w = document.getElementsByTagName("script"), L = 0; L < w.length; L++)
|
|
2826
|
+
(w[L].src.indexOf("keycloak.js") !== -1 || w[L].src.indexOf("keycloak.min.js") !== -1) && w[L].src.indexOf("version=") !== -1 && (e.iframeVersion = w[L].src.substring(w[L].src.indexOf("version=") + 8).split("&")[0]);
|
|
2824
2827
|
var u = !0, D = fe(console.info), W = fe(console.warn);
|
|
2825
2828
|
e.init = function(r) {
|
|
2826
2829
|
if (e.didInitialize)
|
|
@@ -2857,7 +2860,7 @@ function pr(t) {
|
|
|
2857
2860
|
typeof r.enableLogging == "boolean" ? e.enableLogging = r.enableLogging : e.enableLogging = !1, typeof r.scope == "string" && (e.scope = r.scope), typeof r.acrValues == "string" && (e.acrValues = r.acrValues), typeof r.messageReceiveTimeout == "number" && r.messageReceiveTimeout > 0 ? e.messageReceiveTimeout = r.messageReceiveTimeout : e.messageReceiveTimeout = 1e4;
|
|
2858
2861
|
}
|
|
2859
2862
|
e.responseMode || (e.responseMode = "fragment"), e.responseType || (e.responseType = "code", e.flow = "standard");
|
|
2860
|
-
var d =
|
|
2863
|
+
var d = k(), g = k();
|
|
2861
2864
|
g.promise.then(function() {
|
|
2862
2865
|
e.onReady && e.onReady(e.authenticated), d.setSuccess(e.authenticated);
|
|
2863
2866
|
}).catch(function(E) {
|
|
@@ -2876,7 +2879,7 @@ function pr(t) {
|
|
|
2876
2879
|
$.setAttribute("src", he), $.setAttribute("sandbox", "allow-scripts allow-same-origin"), $.setAttribute("title", "keycloak-silent-check-sso"), $.style.display = "none", document.body.appendChild($);
|
|
2877
2880
|
var le = function(ee) {
|
|
2878
2881
|
if (!(ee.origin !== window.location.origin || $.contentWindow !== ee.source)) {
|
|
2879
|
-
var Pe =
|
|
2882
|
+
var Pe = A(ee.data);
|
|
2880
2883
|
de(Pe, g), document.body.removeChild($), window.removeEventListener("message", le);
|
|
2881
2884
|
}
|
|
2882
2885
|
};
|
|
@@ -2900,7 +2903,7 @@ function pr(t) {
|
|
|
2900
2903
|
}
|
|
2901
2904
|
}
|
|
2902
2905
|
function m() {
|
|
2903
|
-
var E =
|
|
2906
|
+
var E = A(window.location.href);
|
|
2904
2907
|
if (E && window.history.replaceState(window.history.state, null, E.newUrl), E && E.valid)
|
|
2905
2908
|
return O().then(function() {
|
|
2906
2909
|
de(E, g);
|
|
@@ -2920,7 +2923,7 @@ function pr(t) {
|
|
|
2920
2923
|
})) : r.onLoad ? x() : g.setSuccess() : g.setSuccess();
|
|
2921
2924
|
}
|
|
2922
2925
|
function b() {
|
|
2923
|
-
var E =
|
|
2926
|
+
var E = k(), C = function() {
|
|
2924
2927
|
(document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener("readystatechange", C), E.setSuccess());
|
|
2925
2928
|
};
|
|
2926
2929
|
return document.addEventListener("readystatechange", C), C(), E.promise;
|
|
@@ -2955,7 +2958,7 @@ function pr(t) {
|
|
|
2955
2958
|
function Fe(r, a) {
|
|
2956
2959
|
switch (r) {
|
|
2957
2960
|
case "S256":
|
|
2958
|
-
var d = new Uint8Array(Vc.arrayBuffer(a)), g =
|
|
2961
|
+
var d = new Uint8Array(Vc.arrayBuffer(a)), g = Xt.fromByteArray(d).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
2959
2962
|
return g;
|
|
2960
2963
|
default:
|
|
2961
2964
|
throw "Invalid value for pkceMethod";
|
|
@@ -3017,14 +3020,14 @@ function pr(t) {
|
|
|
3017
3020
|
}, e.loadUserProfile = function() {
|
|
3018
3021
|
var r = ve() + "/account", a = new XMLHttpRequest();
|
|
3019
3022
|
a.open("GET", r, !0), a.setRequestHeader("Accept", "application/json"), a.setRequestHeader("Authorization", "bearer " + e.token);
|
|
3020
|
-
var d =
|
|
3023
|
+
var d = k();
|
|
3021
3024
|
return a.onreadystatechange = function() {
|
|
3022
3025
|
a.readyState == 4 && (a.status == 200 ? (e.profile = JSON.parse(a.responseText), d.setSuccess(e.profile)) : d.setError());
|
|
3023
3026
|
}, a.send(), d.promise;
|
|
3024
3027
|
}, e.loadUserInfo = function() {
|
|
3025
3028
|
var r = e.endpoints.userinfo(), a = new XMLHttpRequest();
|
|
3026
3029
|
a.open("GET", r, !0), a.setRequestHeader("Accept", "application/json"), a.setRequestHeader("Authorization", "bearer " + e.token);
|
|
3027
|
-
var d =
|
|
3030
|
+
var d = k();
|
|
3028
3031
|
return a.onreadystatechange = function() {
|
|
3029
3032
|
a.readyState == 4 && (a.status == 200 ? (e.userInfo = JSON.parse(a.responseText), d.setSuccess(e.userInfo)) : d.setError());
|
|
3030
3033
|
}, a.send(), d.promise;
|
|
@@ -3041,7 +3044,7 @@ function pr(t) {
|
|
|
3041
3044
|
}
|
|
3042
3045
|
return a < 0;
|
|
3043
3046
|
}, e.updateToken = function(r) {
|
|
3044
|
-
var a =
|
|
3047
|
+
var a = k();
|
|
3045
3048
|
if (!e.refreshToken)
|
|
3046
3049
|
return a.setError(), a.promise;
|
|
3047
3050
|
r = r || 5;
|
|
@@ -3119,7 +3122,7 @@ function pr(t) {
|
|
|
3119
3122
|
}
|
|
3120
3123
|
}
|
|
3121
3124
|
function N(r) {
|
|
3122
|
-
var a =
|
|
3125
|
+
var a = k(), d;
|
|
3123
3126
|
t ? typeof t == "string" && (d = t) : d = location.origin + "/keycloak.json";
|
|
3124
3127
|
function g(C) {
|
|
3125
3128
|
C ? e.endpoints = {
|
|
@@ -3222,8 +3225,8 @@ function pr(t) {
|
|
|
3222
3225
|
return r.status == 0 && r.responseText && r.responseURL.startsWith("file:");
|
|
3223
3226
|
}
|
|
3224
3227
|
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 =
|
|
3228
|
+
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) {
|
|
3229
|
+
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
3230
|
var h = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3228
3231
|
D("[KEYCLOAK] Token expires in " + Math.round(h / 1e3) + " s"), h <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, h);
|
|
3229
3232
|
}
|
|
@@ -3236,7 +3239,7 @@ function pr(t) {
|
|
|
3236
3239
|
var d = a.join("");
|
|
3237
3240
|
return d;
|
|
3238
3241
|
}
|
|
3239
|
-
function
|
|
3242
|
+
function A(r) {
|
|
3240
3243
|
var a = I(r);
|
|
3241
3244
|
if (a) {
|
|
3242
3245
|
var d = i.get(a.state);
|
|
@@ -3276,7 +3279,7 @@ function pr(t) {
|
|
|
3276
3279
|
}
|
|
3277
3280
|
return g;
|
|
3278
3281
|
}
|
|
3279
|
-
function
|
|
3282
|
+
function k() {
|
|
3280
3283
|
var r = {
|
|
3281
3284
|
setSuccess: function(a) {
|
|
3282
3285
|
r.resolve(a);
|
|
@@ -3300,7 +3303,7 @@ function pr(t) {
|
|
|
3300
3303
|
});
|
|
3301
3304
|
}
|
|
3302
3305
|
function O() {
|
|
3303
|
-
var r =
|
|
3306
|
+
var r = k();
|
|
3304
3307
|
if (!c.enable || c.iframe)
|
|
3305
3308
|
return r.setSuccess(), r.promise;
|
|
3306
3309
|
var a = document.createElement("iframe");
|
|
@@ -3329,7 +3332,7 @@ function pr(t) {
|
|
|
3329
3332
|
}, c.interval * 1e3);
|
|
3330
3333
|
}
|
|
3331
3334
|
function F() {
|
|
3332
|
-
var r =
|
|
3335
|
+
var r = k();
|
|
3333
3336
|
if (c.iframe && c.iframeOrigin) {
|
|
3334
3337
|
var a = e.clientId + " " + (e.sessionId ? e.sessionId : "");
|
|
3335
3338
|
c.callbackList.push(r);
|
|
@@ -3340,7 +3343,7 @@ function pr(t) {
|
|
|
3340
3343
|
return r.promise;
|
|
3341
3344
|
}
|
|
3342
3345
|
function q() {
|
|
3343
|
-
var r =
|
|
3346
|
+
var r = k();
|
|
3344
3347
|
if (c.enable || e.silentCheckSsoRedirectUri) {
|
|
3345
3348
|
var a = document.createElement("iframe");
|
|
3346
3349
|
a.setAttribute("src", e.endpoints.thirdPartyCookiesIframe()), a.setAttribute("sandbox", "allow-scripts allow-same-origin"), a.setAttribute("title", "keycloak-3p-check-iframe"), a.style.display = "none", document.body.appendChild(a);
|
|
@@ -3363,13 +3366,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3363
3366
|
if (!r || r == "default")
|
|
3364
3367
|
return {
|
|
3365
3368
|
login: function(m) {
|
|
3366
|
-
return window.location.assign(e.createLoginUrl(m)),
|
|
3369
|
+
return window.location.assign(e.createLoginUrl(m)), k().promise;
|
|
3367
3370
|
},
|
|
3368
3371
|
logout: function(m) {
|
|
3369
|
-
return window.location.replace(e.createLogoutUrl(m)),
|
|
3372
|
+
return window.location.replace(e.createLogoutUrl(m)), k().promise;
|
|
3370
3373
|
},
|
|
3371
3374
|
register: function(m) {
|
|
3372
|
-
return window.location.assign(e.createRegisterUrl(m)),
|
|
3375
|
+
return window.location.assign(e.createRegisterUrl(m)), k().promise;
|
|
3373
3376
|
},
|
|
3374
3377
|
accountManagement: function() {
|
|
3375
3378
|
var m = e.createAccountUrl();
|
|
@@ -3377,7 +3380,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3377
3380
|
window.location.href = m;
|
|
3378
3381
|
else
|
|
3379
3382
|
throw "Not supported by the OIDC server";
|
|
3380
|
-
return
|
|
3383
|
+
return k().promise;
|
|
3381
3384
|
},
|
|
3382
3385
|
redirectUri: function(m, b) {
|
|
3383
3386
|
return m && m.redirectUri ? m.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
@@ -3403,18 +3406,18 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3403
3406
|
};
|
|
3404
3407
|
return {
|
|
3405
3408
|
login: function(m) {
|
|
3406
|
-
var b =
|
|
3409
|
+
var b = k(), E = h(m), C = e.createLoginUrl(m), R = a(C, "_blank", E), $ = !1, he = !1, le = function() {
|
|
3407
3410
|
he = !0, R.close();
|
|
3408
3411
|
};
|
|
3409
3412
|
return R.addEventListener("loadstart", function(ee) {
|
|
3410
3413
|
if (ee.url.indexOf(x()) == 0) {
|
|
3411
|
-
var Pe =
|
|
3414
|
+
var Pe = A(ee.url);
|
|
3412
3415
|
de(Pe, b), le(), $ = !0;
|
|
3413
3416
|
}
|
|
3414
3417
|
}), R.addEventListener("loaderror", function(ee) {
|
|
3415
3418
|
if (!$)
|
|
3416
3419
|
if (ee.url.indexOf(x()) == 0) {
|
|
3417
|
-
var Pe =
|
|
3420
|
+
var Pe = A(ee.url);
|
|
3418
3421
|
de(Pe, b), le(), $ = !0;
|
|
3419
3422
|
} else
|
|
3420
3423
|
b.setError(), le();
|
|
@@ -3425,7 +3428,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3425
3428
|
}), b.promise;
|
|
3426
3429
|
},
|
|
3427
3430
|
logout: function(m) {
|
|
3428
|
-
var b =
|
|
3431
|
+
var b = k(), E = e.createLogoutUrl(m), C = a(E, "_blank", "location=no,hidden=yes,clearcache=yes"), R;
|
|
3429
3432
|
return C.addEventListener("loadstart", function($) {
|
|
3430
3433
|
$.url.indexOf(x()) == 0 && C.close();
|
|
3431
3434
|
}), C.addEventListener("loaderror", function($) {
|
|
@@ -3435,11 +3438,11 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3435
3438
|
}), b.promise;
|
|
3436
3439
|
},
|
|
3437
3440
|
register: function(m) {
|
|
3438
|
-
var b =
|
|
3441
|
+
var b = k(), E = e.createRegisterUrl(), C = h(m), R = a(E, "_blank", C);
|
|
3439
3442
|
return R.addEventListener("loadstart", function($) {
|
|
3440
3443
|
if ($.url.indexOf(x()) == 0) {
|
|
3441
3444
|
R.close();
|
|
3442
|
-
var he =
|
|
3445
|
+
var he = A($.url);
|
|
3443
3446
|
de(he, b);
|
|
3444
3447
|
}
|
|
3445
3448
|
}), b.promise;
|
|
@@ -3462,24 +3465,24 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3462
3465
|
if (r == "cordova-native")
|
|
3463
3466
|
return c.enable = !1, {
|
|
3464
3467
|
login: function(m) {
|
|
3465
|
-
var b =
|
|
3468
|
+
var b = k(), E = e.createLoginUrl(m);
|
|
3466
3469
|
return universalLinks.subscribe("keycloak", function(C) {
|
|
3467
3470
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
3468
|
-
var R =
|
|
3471
|
+
var R = A(C.url);
|
|
3469
3472
|
de(R, b);
|
|
3470
3473
|
}), window.cordova.plugins.browsertab.openUrl(E), b.promise;
|
|
3471
3474
|
},
|
|
3472
3475
|
logout: function(m) {
|
|
3473
|
-
var b =
|
|
3476
|
+
var b = k(), E = e.createLogoutUrl(m);
|
|
3474
3477
|
return universalLinks.subscribe("keycloak", function(C) {
|
|
3475
3478
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(), b.setSuccess();
|
|
3476
3479
|
}), window.cordova.plugins.browsertab.openUrl(E), b.promise;
|
|
3477
3480
|
},
|
|
3478
3481
|
register: function(m) {
|
|
3479
|
-
var b =
|
|
3482
|
+
var b = k(), E = e.createRegisterUrl(m);
|
|
3480
3483
|
return universalLinks.subscribe("keycloak", function(C) {
|
|
3481
3484
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
3482
|
-
var R =
|
|
3485
|
+
var R = A(C.url);
|
|
3483
3486
|
de(R, b);
|
|
3484
3487
|
}), window.cordova.plugins.browsertab.openUrl(E), b.promise;
|
|
3485
3488
|
},
|
|
@@ -3571,15 +3574,15 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3571
3574
|
}
|
|
3572
3575
|
}
|
|
3573
3576
|
function Kc(t) {
|
|
3574
|
-
const e = new pr(t), n = {}, o = (
|
|
3577
|
+
const e = new pr(t), n = {}, o = (w, L) => {
|
|
3575
3578
|
e.init({ onLoad: "login-required" }).then(async (u) => {
|
|
3576
|
-
u && await i(),
|
|
3579
|
+
u && await i(), w();
|
|
3577
3580
|
}).catch((u) => {
|
|
3578
3581
|
L(u);
|
|
3579
3582
|
});
|
|
3580
3583
|
}, i = async () => {
|
|
3581
|
-
const
|
|
3582
|
-
n.email =
|
|
3584
|
+
const w = await e.loadUserInfo();
|
|
3585
|
+
n.email = w.email ?? "", n.emailVerified = w.email_verified === !0, n.firstName = w.given_name ?? "", n.lastName = w.family_name ?? "", n.name = w.name ?? "", n.sub = w.sub ?? "", n.username = w.preferred_username ?? "", n.roles = [...w.role ?? []], n.groups = [...w.group ?? []], n.IsInRole = (L) => n.roles.includes(L), sessionStorage.setItem("name", n.name);
|
|
3583
3586
|
};
|
|
3584
3587
|
return {
|
|
3585
3588
|
Instance: e,
|
|
@@ -3643,7 +3646,7 @@ class nl {
|
|
|
3643
3646
|
}
|
|
3644
3647
|
t(), window.addEventListener("resize", t);
|
|
3645
3648
|
})();
|
|
3646
|
-
|
|
3649
|
+
An.SetInitialTheme();
|
|
3647
3650
|
export {
|
|
3648
3651
|
nl as AppResult,
|
|
3649
3652
|
So as Cor,
|