@luizleon/sf.prefeiturasp.vuecomponents 0.0.28 → 0.0.29
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/lib.es.js +284 -285
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +10 -10
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/Layout.vue +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -23,8 +23,8 @@ const Fr = new Or(), To = () => Fr;
|
|
|
23
23
|
var So = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(So || {}), kt = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(kt || {});
|
|
24
24
|
const Lo = (t, e) => {
|
|
25
25
|
const n = t.__vccOpts || t;
|
|
26
|
-
for (const [o,
|
|
27
|
-
n[o] =
|
|
26
|
+
for (const [o, i] of e)
|
|
27
|
+
n[o] = i;
|
|
28
28
|
return n;
|
|
29
29
|
}, Br = {}, Mr = { class: "sf-loading-circle" }, Ur = /* @__PURE__ */ j("div", null, [
|
|
30
30
|
/* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
@@ -98,7 +98,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
98
98
|
function 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
|
-
return (o,
|
|
101
|
+
return (o, i) => (X(), Ae("div", {
|
|
102
102
|
style: An(e.style),
|
|
103
103
|
class: ke(n())
|
|
104
104
|
}, [
|
|
@@ -382,8 +382,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
382
382
|
const t = xe(
|
|
383
383
|
V().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')
|
|
384
384
|
).sort((n, o) => {
|
|
385
|
-
const
|
|
386
|
-
return
|
|
385
|
+
const i = parseInt(n.getAttribute("tabindex")), c = parseInt(o.getAttribute("tabindex"));
|
|
386
|
+
return i > c ? 1 : i < c ? -1 : 0;
|
|
387
387
|
}), e = xe(V().querySelectorAll(ts)).filter(
|
|
388
388
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
389
389
|
);
|
|
@@ -393,10 +393,10 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
393
393
|
}, re = (t, e) => {
|
|
394
394
|
if (t.textContent = "", e) {
|
|
395
395
|
const o = new DOMParser().parseFromString(e, "text/html");
|
|
396
|
-
xe(o.querySelector("head").childNodes).forEach((
|
|
397
|
-
t.appendChild(
|
|
398
|
-
}), xe(o.querySelector("body").childNodes).forEach((
|
|
399
|
-
t.appendChild(
|
|
396
|
+
xe(o.querySelector("head").childNodes).forEach((i) => {
|
|
397
|
+
t.appendChild(i);
|
|
398
|
+
}), xe(o.querySelector("body").childNodes).forEach((i) => {
|
|
399
|
+
t.appendChild(i);
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}, De = (t, e) => {
|
|
@@ -443,8 +443,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
443
443
|
}
|
|
444
444
|
}, No = (t, e, n) => {
|
|
445
445
|
!t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
|
|
446
|
-
Array.isArray(t) ? t.forEach((
|
|
447
|
-
n ?
|
|
446
|
+
Array.isArray(t) ? t.forEach((i) => {
|
|
447
|
+
n ? i.classList.add(o) : i.classList.remove(o);
|
|
448
448
|
}) : n ? t.classList.add(o) : t.classList.remove(o);
|
|
449
449
|
}));
|
|
450
450
|
}, H = (t, e) => {
|
|
@@ -463,8 +463,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
463
463
|
}, ie = (t) => {
|
|
464
464
|
t.style.display = "none";
|
|
465
465
|
}, no = (t, e, n, o) => {
|
|
466
|
-
const
|
|
467
|
-
|
|
466
|
+
const i = t.querySelector(e);
|
|
467
|
+
i && (i.style[n] = o);
|
|
468
468
|
}, Yt = (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) => {
|
|
@@ -531,9 +531,9 @@ 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`),
|
|
535
|
-
e.oninput = We, n.onchange = We, c.onchange = We,
|
|
536
|
-
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), A = t.querySelector(`.${l.checkbox} input`), L = $e(t, l.textarea);
|
|
535
|
+
e.oninput = We, n.onchange = We, c.onchange = We, A.onchange = We, L.oninput = We, o.oninput = () => {
|
|
536
|
+
We(), i.value = o.value;
|
|
537
537
|
}, o.onchange = () => {
|
|
538
538
|
We(), o.nextSibling.value = o.value;
|
|
539
539
|
};
|
|
@@ -585,8 +585,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
585
585
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ie(n) : te(n), Ee(n, e, "actions"), ws(n, o, e), re(o, e.loaderHtml), Ee(o, e, "loader");
|
|
586
586
|
};
|
|
587
587
|
function ws(t, e, n) {
|
|
588
|
-
const o = Le(),
|
|
589
|
-
rn(o, "confirm", n), rn(
|
|
588
|
+
const o = Le(), i = He(), c = Ke();
|
|
589
|
+
rn(o, "confirm", n), rn(i, "deny", n), rn(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)
|
|
@@ -617,11 +617,11 @@ const Cs = (t, e) => {
|
|
|
617
617
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
618
618
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
619
619
|
}, Es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Ts = (t, e) => {
|
|
620
|
-
const n = V(), o = U.innerParams.get(t),
|
|
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 =
|
|
624
|
-
}), e.input && (
|
|
622
|
+
const A = l[c], L = $e(n, A);
|
|
623
|
+
Is(c, e.inputAttributes), L.className = A, i && ie(L);
|
|
624
|
+
}), e.input && (i && Ss(e), Ps(e));
|
|
625
625
|
}, Ss = (t) => {
|
|
626
626
|
if (!ge[t.input])
|
|
627
627
|
return Ye(
|
|
@@ -651,8 +651,8 @@ const Cs = (t, e) => {
|
|
|
651
651
|
}, Pt = (t, e, n) => {
|
|
652
652
|
if (n.inputLabel) {
|
|
653
653
|
t.id = l.input;
|
|
654
|
-
const o = document.createElement("label"),
|
|
655
|
-
o.setAttribute("for", t.id), o.className =
|
|
654
|
+
const o = document.createElement("label"), i = l["input-label"];
|
|
655
|
+
o.setAttribute("for", t.id), o.className = i, H(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
|
|
656
656
|
}
|
|
657
657
|
}, jo = (t) => {
|
|
658
658
|
const e = l[t] ? l[t] : l.input;
|
|
@@ -685,11 +685,11 @@ ge.textarea = (t, e) => {
|
|
|
685
685
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
686
686
|
return setTimeout(() => {
|
|
687
687
|
if ("MutationObserver" in window) {
|
|
688
|
-
const o = parseInt(window.getComputedStyle(V()).width),
|
|
688
|
+
const o = parseInt(window.getComputedStyle(V()).width), i = () => {
|
|
689
689
|
const c = t.offsetWidth + n(t);
|
|
690
690
|
c > o ? V().style.width = `${c}px` : V().style.width = null;
|
|
691
691
|
};
|
|
692
|
-
new MutationObserver(
|
|
692
|
+
new MutationObserver(i).observe(t, {
|
|
693
693
|
attributes: !0,
|
|
694
694
|
attributeFilter: ["style"]
|
|
695
695
|
});
|
|
@@ -769,11 +769,11 @@ const Rs = (t, e) => {
|
|
|
769
769
|
return ie(n);
|
|
770
770
|
te(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && be(
|
|
771
771
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
772
|
-
), e.progressSteps.forEach((o,
|
|
772
|
+
), e.progressSteps.forEach((o, i) => {
|
|
773
773
|
const c = Hs(o);
|
|
774
|
-
if (n.appendChild(c),
|
|
775
|
-
const
|
|
776
|
-
n.appendChild(
|
|
774
|
+
if (n.appendChild(c), i === e.currentProgressStep && H(c, l["active-progress-step"]), i !== e.progressSteps.length - 1) {
|
|
775
|
+
const A = js(e);
|
|
776
|
+
n.appendChild(A);
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
779
|
}, Vs = (t, e) => {
|
|
@@ -817,8 +817,8 @@ const Rs = (t, e) => {
|
|
|
817
817
|
const e = {};
|
|
818
818
|
return xe(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
819
819
|
Ge(n, ["name", "value"]);
|
|
820
|
-
const o = n.getAttribute("name"),
|
|
821
|
-
typeof at[o] == "boolean" &&
|
|
820
|
+
const o = n.getAttribute("name"), i = n.getAttribute("value");
|
|
821
|
+
typeof at[o] == "boolean" && i === "false" && (e[o] = !1), typeof at[o] == "object" && (e[o] = JSON.parse(i));
|
|
822
822
|
}), e;
|
|
823
823
|
}, Js = (t) => {
|
|
824
824
|
const e = {};
|
|
@@ -837,16 +837,16 @@ const Rs = (t, e) => {
|
|
|
837
837
|
const e = {}, n = t.querySelector("swal-input");
|
|
838
838
|
n && (Ge(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
|
|
839
839
|
const o = t.querySelectorAll("swal-input-option");
|
|
840
|
-
return o.length && (e.inputOptions = {}, xe(o).forEach((
|
|
841
|
-
Ge(
|
|
842
|
-
const c =
|
|
843
|
-
e.inputOptions[c] =
|
|
840
|
+
return o.length && (e.inputOptions = {}, xe(o).forEach((i) => {
|
|
841
|
+
Ge(i, ["value"]);
|
|
842
|
+
const c = i.getAttribute("value"), A = i.innerHTML;
|
|
843
|
+
e.inputOptions[c] = A;
|
|
844
844
|
})), e;
|
|
845
845
|
}, ei = (t, e) => {
|
|
846
846
|
const n = {};
|
|
847
847
|
for (const o in e) {
|
|
848
|
-
const
|
|
849
|
-
c && (Ge(c, []), n[
|
|
848
|
+
const i = e[o], c = t.querySelector(i);
|
|
849
|
+
c && (Ge(c, []), n[i.replace(/^swal-/, "")] = c.innerHTML.trim());
|
|
850
850
|
}
|
|
851
851
|
return n;
|
|
852
852
|
}, ti = (t) => {
|
|
@@ -945,10 +945,10 @@ const ii = () => {
|
|
|
945
945
|
}, qo = 10, mi = (t) => {
|
|
946
946
|
const e = se(), n = V();
|
|
947
947
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
948
|
-
const
|
|
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,
|
|
951
|
+
}, qo), In() && (bi(e, t.scrollbarPadding, i), Ks()), !Gt() && !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)
|
|
@@ -990,9 +990,9 @@ 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 = (
|
|
994
|
-
En(e.inputOptions) || Tn(e.inputOptions) ? (dt(Le()), Tt(e.inputOptions).then((
|
|
995
|
-
t.hideLoading(), o(
|
|
993
|
+
const n = V(), o = (i) => Ti[e.input](n, mn(i), e);
|
|
994
|
+
En(e.inputOptions) || Tn(e.inputOptions) ? (dt(Le()), Tt(e.inputOptions).then((i) => {
|
|
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}`);
|
|
997
997
|
}, Ei = (t, e) => {
|
|
998
998
|
const n = t.getInput();
|
|
@@ -1003,35 +1003,35 @@ const ii = () => {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}, Ti = {
|
|
1005
1005
|
select: (t, e, n) => {
|
|
1006
|
-
const o = $e(t, l.select),
|
|
1006
|
+
const o = $e(t, l.select), i = (c, A, L) => {
|
|
1007
1007
|
const u = document.createElement("option");
|
|
1008
|
-
u.value = L, re(u,
|
|
1008
|
+
u.value = L, re(u, A), u.selected = co(L, n.inputValue), c.appendChild(u);
|
|
1009
1009
|
};
|
|
1010
1010
|
e.forEach((c) => {
|
|
1011
|
-
const
|
|
1011
|
+
const A = c[0], L = c[1];
|
|
1012
1012
|
if (Array.isArray(L)) {
|
|
1013
1013
|
const u = document.createElement("optgroup");
|
|
1014
|
-
u.label =
|
|
1014
|
+
u.label = A, u.disabled = !1, o.appendChild(u), L.forEach((D) => i(u, D[1], D[0]));
|
|
1015
1015
|
} else
|
|
1016
|
-
|
|
1016
|
+
i(o, L, A);
|
|
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 A = c[0], L = c[1], u = document.createElement("input"), D = document.createElement("label");
|
|
1023
|
+
u.type = "radio", u.name = l.radio, u.value = A, co(A, 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
|
-
const
|
|
1028
|
-
|
|
1027
|
+
const i = o.querySelectorAll("input");
|
|
1028
|
+
i.length && i[0].focus();
|
|
1029
1029
|
}
|
|
1030
1030
|
}, mn = (t) => {
|
|
1031
1031
|
const e = [];
|
|
1032
1032
|
return typeof Map < "u" && t instanceof Map ? t.forEach((n, o) => {
|
|
1033
|
-
let
|
|
1034
|
-
typeof
|
|
1033
|
+
let i = n;
|
|
1034
|
+
typeof i == "object" && (i = mn(i)), e.push([o, i]);
|
|
1035
1035
|
}) : Object.keys(t).forEach((n) => {
|
|
1036
1036
|
let o = t[n];
|
|
1037
1037
|
typeof o == "object" && (o = mn(o)), e.push([n, o]);
|
|
@@ -1060,7 +1060,7 @@ const Et = {
|
|
|
1060
1060
|
capture: t.keydownListenerCapture
|
|
1061
1061
|
}), t.keydownHandlerAdded = !1);
|
|
1062
1062
|
}, Oi = (t, e, n, o) => {
|
|
1063
|
-
Yo(e), n.toast || (e.keydownHandler = (
|
|
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
|
}, gn = (t, e, n) => {
|
|
@@ -1079,21 +1079,21 @@ const Et = {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
}, Ui = (t, e) => {
|
|
1081
1081
|
const n = t.target, o = Ln();
|
|
1082
|
-
let
|
|
1082
|
+
let i = -1;
|
|
1083
1083
|
for (let c = 0; c < o.length; c++)
|
|
1084
1084
|
if (n === o[c]) {
|
|
1085
|
-
|
|
1085
|
+
i = c;
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
|
-
t.shiftKey ? gn(e,
|
|
1088
|
+
t.shiftKey ? gn(e, i, -1) : gn(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
|
-
const
|
|
1093
|
+
const i = Jo.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
1094
1094
|
let c = document.activeElement;
|
|
1095
|
-
for (let
|
|
1096
|
-
if (c = c[
|
|
1095
|
+
for (let A = 0; A < It().children.length; A++) {
|
|
1096
|
+
if (c = c[i], !c)
|
|
1097
1097
|
return;
|
|
1098
1098
|
if (_e(c) && c instanceof HTMLButtonElement)
|
|
1099
1099
|
break;
|
|
@@ -1148,15 +1148,15 @@ const Rt = (t) => {
|
|
|
1148
1148
|
},
|
|
1149
1149
|
t
|
|
1150
1150
|
), Wi = (t, e, n) => {
|
|
1151
|
-
const o = se(),
|
|
1152
|
-
typeof n.willClose == "function" && n.willClose(e),
|
|
1153
|
-
}, qi = (t, e, n, o,
|
|
1151
|
+
const o = se(), i = Ct && $o(e);
|
|
1152
|
+
typeof n.willClose == "function" && n.willClose(e), i ? qi(t, e, o, n.returnFocus, n.didClose) : Xo(t, o, n.returnFocus, n.didClose);
|
|
1153
|
+
}, qi = (t, e, n, o, i) => {
|
|
1154
1154
|
B.swalCloseEventFinishedCallback = Xo.bind(
|
|
1155
1155
|
null,
|
|
1156
1156
|
t,
|
|
1157
1157
|
n,
|
|
1158
1158
|
o,
|
|
1159
|
-
|
|
1159
|
+
i
|
|
1160
1160
|
), e.addEventListener(Ct, function(c) {
|
|
1161
1161
|
c.target === e && (B.swalCloseEventFinishedCallback(), delete B.swalCloseEventFinishedCallback);
|
|
1162
1162
|
});
|
|
@@ -1167,8 +1167,8 @@ const Rt = (t) => {
|
|
|
1167
1167
|
};
|
|
1168
1168
|
function Zo(t, e, n) {
|
|
1169
1169
|
const o = U.domCache.get(t);
|
|
1170
|
-
e.forEach((
|
|
1171
|
-
o[
|
|
1170
|
+
e.forEach((i) => {
|
|
1171
|
+
o[i].disabled = n;
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
function Qo(t, e) {
|
|
@@ -1176,8 +1176,8 @@ function Qo(t, e) {
|
|
|
1176
1176
|
return !1;
|
|
1177
1177
|
if (t.type === "radio") {
|
|
1178
1178
|
const o = t.parentNode.parentNode.querySelectorAll("input");
|
|
1179
|
-
for (let
|
|
1180
|
-
o[
|
|
1179
|
+
for (let i = 0; i < o.length; i++)
|
|
1180
|
+
o[i].disabled = e;
|
|
1181
1181
|
} else
|
|
1182
1182
|
t.disabled = e;
|
|
1183
1183
|
}
|
|
@@ -1214,8 +1214,8 @@ function ea(t) {
|
|
|
1214
1214
|
return be(
|
|
1215
1215
|
"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup."
|
|
1216
1216
|
);
|
|
1217
|
-
const o = ta(t),
|
|
1218
|
-
zo(this,
|
|
1217
|
+
const o = ta(t), i = Object.assign({}, n, o);
|
|
1218
|
+
zo(this, i), U.innerParams.set(this, i), Object.defineProperties(this, {
|
|
1219
1219
|
params: {
|
|
1220
1220
|
value: Object.assign({}, this.params, t),
|
|
1221
1221
|
writable: !1,
|
|
@@ -1296,9 +1296,9 @@ const oa = (t) => {
|
|
|
1296
1296
|
const n = U.innerParams.get(t || globalThis);
|
|
1297
1297
|
n.showLoaderOnDeny && dt(He()), n.preDeny ? (U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1298
1298
|
() => Tt(n.preDeny(e, n.validationMessage))
|
|
1299
|
-
).then((
|
|
1300
|
-
|
|
1301
|
-
}).catch((
|
|
1299
|
+
).then((i) => {
|
|
1300
|
+
i === !1 ? (t.hideLoading(), Rt(t)) : t.closePopup({ isDenied: !0, value: typeof i > "u" ? e : i });
|
|
1301
|
+
}).catch((i) => or(t || globalThis, i))) : t.closePopup({ isDenied: !0, value: e });
|
|
1302
1302
|
}, fo = (t, e) => {
|
|
1303
1303
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
1304
1304
|
}, or = (t, e) => {
|
|
@@ -1307,9 +1307,9 @@ const oa = (t) => {
|
|
|
1307
1307
|
const n = U.innerParams.get(t || globalThis);
|
|
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
|
-
).then((
|
|
1311
|
-
_e(qt()) ||
|
|
1312
|
-
}).catch((
|
|
1310
|
+
).then((i) => {
|
|
1311
|
+
_e(qt()) || i === !1 ? (t.hideLoading(), Rt(t)) : fo(t, typeof i > "u" ? e : i);
|
|
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));
|
|
1315
1315
|
}, la = (t, e, n) => {
|
|
@@ -1333,18 +1333,18 @@ const da = (t) => {
|
|
|
1333
1333
|
};
|
|
1334
1334
|
}, ha = (t, e, n) => {
|
|
1335
1335
|
e.container.onclick = (o) => {
|
|
1336
|
-
const
|
|
1336
|
+
const i = U.innerParams.get(t);
|
|
1337
1337
|
if (zt) {
|
|
1338
1338
|
zt = !1;
|
|
1339
1339
|
return;
|
|
1340
1340
|
}
|
|
1341
|
-
o.target === e.container && Wt(
|
|
1341
|
+
o.target === e.container && Wt(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 = {};
|
|
1345
1345
|
return typeof t[0] == "object" && !ho(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1346
|
-
const
|
|
1347
|
-
typeof
|
|
1346
|
+
const i = t[o];
|
|
1347
|
+
typeof i == "string" || ho(i) ? e[n] = i : i !== void 0 && Ye(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`);
|
|
1348
1348
|
}), e;
|
|
1349
1349
|
};
|
|
1350
1350
|
function ga(...t) {
|
|
@@ -1353,8 +1353,8 @@ function ga(...t) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
function ba(t) {
|
|
1355
1355
|
class e extends this {
|
|
1356
|
-
_main(o,
|
|
1357
|
-
return super._main(o, Object.assign({}, t,
|
|
1356
|
+
_main(o, i) {
|
|
1357
|
+
return super._main(o, Object.assign({}, t, i));
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
return e;
|
|
@@ -1452,8 +1452,8 @@ class pt {
|
|
|
1452
1452
|
Zr(Object.assign({}, n, e)), B.currentInstance && (B.currentInstance._destroy(), In() && Vo()), B.currentInstance = this;
|
|
1453
1453
|
const o = Ea(e, n);
|
|
1454
1454
|
ri(o), Object.freeze(o), B.timeout && (B.timeout.stop(), delete B.timeout), clearTimeout(B.restoreFocusTimeout);
|
|
1455
|
-
const
|
|
1456
|
-
return zo(this, o), U.innerParams.set(this, o), Ca(this,
|
|
1455
|
+
const i = Ta(this);
|
|
1456
|
+
return zo(this, o), U.innerParams.set(this, o), Ca(this, i, o);
|
|
1457
1457
|
}
|
|
1458
1458
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1459
1459
|
then(e) {
|
|
@@ -1463,11 +1463,11 @@ class pt {
|
|
|
1463
1463
|
return U.promise.get(this).finally(e);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
const Ca = (t, e, n) => new Promise((o,
|
|
1467
|
-
const c = (
|
|
1468
|
-
t.closePopup({ isDismissed: !0, dismiss:
|
|
1466
|
+
const Ca = (t, e, n) => new Promise((o, i) => {
|
|
1467
|
+
const c = (A) => {
|
|
1468
|
+
t.closePopup({ isDismissed: !0, dismiss: A });
|
|
1469
1469
|
};
|
|
1470
|
-
Et.swalPromiseResolve.set(t, o), Et.swalPromiseReject.set(t,
|
|
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;
|
|
1472
1472
|
});
|
|
1473
1473
|
}), Ea = (t, e) => {
|
|
@@ -1546,8 +1546,8 @@ wn || (wn = function(e, n) {
|
|
|
1546
1546
|
const Ut = Te(Array.prototype.forEach), go = Te(Array.prototype.pop), bt = Te(Array.prototype.push), $t = Te(String.prototype.toLowerCase), an = 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
|
-
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0),
|
|
1550
|
-
o[
|
|
1549
|
+
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
1550
|
+
o[i - 1] = arguments[i];
|
|
1551
1551
|
return yn(t, e, o);
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
@@ -1563,12 +1563,12 @@ function M(t, e) {
|
|
|
1563
1563
|
mo && mo(t, null);
|
|
1564
1564
|
let o = e.length;
|
|
1565
1565
|
for (; o--; ) {
|
|
1566
|
-
let
|
|
1567
|
-
if (typeof
|
|
1568
|
-
const c = n(
|
|
1569
|
-
c !==
|
|
1566
|
+
let i = e[o];
|
|
1567
|
+
if (typeof i == "string") {
|
|
1568
|
+
const c = n(i);
|
|
1569
|
+
c !== i && (Ra(e) || (e[o] = c), i = c);
|
|
1570
1570
|
}
|
|
1571
|
-
t[
|
|
1571
|
+
t[i] = !0;
|
|
1572
1572
|
}
|
|
1573
1573
|
return t;
|
|
1574
1574
|
}
|
|
@@ -1619,16 +1619,16 @@ const Ka = function() {
|
|
|
1619
1619
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
1620
1620
|
return null;
|
|
1621
1621
|
let o = null;
|
|
1622
|
-
const
|
|
1623
|
-
n && n.hasAttribute(
|
|
1622
|
+
const i = "data-tt-policy-suffix";
|
|
1623
|
+
n && n.hasAttribute(i) && (o = n.getAttribute(i));
|
|
1624
1624
|
const c = "dompurify" + (o ? "#" + o : "");
|
|
1625
1625
|
try {
|
|
1626
1626
|
return e.createPolicy(c, {
|
|
1627
|
-
createHTML(
|
|
1628
|
-
return
|
|
1627
|
+
createHTML(A) {
|
|
1628
|
+
return A;
|
|
1629
1629
|
},
|
|
1630
|
-
createScriptURL(
|
|
1631
|
-
return
|
|
1630
|
+
createScriptURL(A) {
|
|
1631
|
+
return A;
|
|
1632
1632
|
}
|
|
1633
1633
|
});
|
|
1634
1634
|
} catch {
|
|
@@ -1643,9 +1643,9 @@ function dr() {
|
|
|
1643
1643
|
let {
|
|
1644
1644
|
document: n
|
|
1645
1645
|
} = t;
|
|
1646
|
-
const o = n,
|
|
1646
|
+
const o = n, i = o.currentScript, {
|
|
1647
1647
|
DocumentFragment: c,
|
|
1648
|
-
HTMLTemplateElement:
|
|
1648
|
+
HTMLTemplateElement: A,
|
|
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 A == "function") {
|
|
1658
1658
|
const S = n.createElement("template");
|
|
1659
1659
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
1660
1660
|
}
|
|
@@ -1665,7 +1665,7 @@ function dr() {
|
|
|
1665
1665
|
createDocumentFragment: k,
|
|
1666
1666
|
getElementsByTagName: I
|
|
1667
1667
|
} = n, {
|
|
1668
|
-
importNode:
|
|
1668
|
+
importNode: _
|
|
1669
1669
|
} = o;
|
|
1670
1670
|
let w = {};
|
|
1671
1671
|
e.isSupported = typeof ir == "function" && typeof de == "function" && Z && Z.createHTMLDocument !== void 0;
|
|
@@ -1716,61 +1716,61 @@ function dr() {
|
|
|
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
|
-
const yr = n.createElement("form"), zn = function(
|
|
1720
|
-
return
|
|
1719
|
+
const yr = n.createElement("form"), zn = function(s) {
|
|
1720
|
+
return s instanceof RegExp || s instanceof Function;
|
|
1721
1721
|
}, tn = function() {
|
|
1722
|
-
let
|
|
1723
|
-
if (!(tt && tt ===
|
|
1724
|
-
if ((!
|
|
1725
|
-
br.indexOf(
|
|
1722
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1723
|
+
if (!(tt && tt === s)) {
|
|
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" ? an : $t, P = "ALLOWED_TAGS" in s ? M({}, s.ALLOWED_TAGS, Q) : fe, r = "ALLOWED_ATTR" in s ? M({}, s.ALLOWED_ATTR, Q) : a, en = "ALLOWED_NAMESPACES" in s ? M({}, s.ALLOWED_NAMESPACES, an) : gr, Zt = "ADD_URI_SAFE_ATTR" in s ? M(
|
|
1726
1726
|
ot(jn),
|
|
1727
1727
|
// eslint-disable-line indent
|
|
1728
|
-
|
|
1728
|
+
s.ADD_URI_SAFE_ATTR,
|
|
1729
1729
|
// eslint-disable-line indent
|
|
1730
1730
|
Q
|
|
1731
1731
|
// eslint-disable-line indent
|
|
1732
|
-
) : jn, $n = "ADD_DATA_URI_TAGS" in
|
|
1732
|
+
) : jn, $n = "ADD_DATA_URI_TAGS" in s ? M(
|
|
1733
1733
|
ot(Hn),
|
|
1734
1734
|
// eslint-disable-line indent
|
|
1735
|
-
|
|
1735
|
+
s.ADD_DATA_URI_TAGS,
|
|
1736
1736
|
// eslint-disable-line indent
|
|
1737
1737
|
Q
|
|
1738
1738
|
// eslint-disable-line indent
|
|
1739
|
-
) : Hn, Qe = "FORBID_CONTENTS" in
|
|
1740
|
-
if (typeof
|
|
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, Xt = 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, cn), M(r, dn), M(r, Nt)), Ze.svgFilters === !0 && (M(P, ln), M(r, dn), M(r, Nt)), Ze.mathMl === !0 && (M(P, un), 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(Zt, s.ADD_URI_SAFE_ATTR, Q), s.FORBID_CONTENTS && (Qe === Nn && (Qe = ot(Qe)), M(Qe, s.FORBID_CONTENTS, Q)), Xt && (P["#text"] = !0), R && M(P, ["html", "head", "body"]), P.table && (M(P, ["tbody"]), delete g.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
1740
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1741
1741
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1742
|
-
if (typeof
|
|
1742
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1743
1743
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1744
|
-
N =
|
|
1744
|
+
N = s.TRUSTED_TYPES_POLICY, ye = N.createHTML("");
|
|
1745
1745
|
} else
|
|
1746
|
-
N === void 0 && (N = Ga(z,
|
|
1747
|
-
ue && ue(
|
|
1746
|
+
N === void 0 && (N = Ga(z, i)), N !== null && typeof ye == "string" && (ye = N.createHTML(""));
|
|
1747
|
+
ue && ue(s), tt = s;
|
|
1748
1748
|
}
|
|
1749
1749
|
}, Vn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), wr = M({}, ["title", "style", "font", "a", "script"]), Bt = M({}, cn);
|
|
1750
1750
|
M(Bt, ln), M(Bt, Da);
|
|
1751
1751
|
const nn = M({}, un);
|
|
1752
1752
|
M(nn, Na);
|
|
1753
|
-
const kr = function(
|
|
1754
|
-
let v = de(
|
|
1753
|
+
const kr = function(s) {
|
|
1754
|
+
let v = de(s);
|
|
1755
1755
|
(!v || !v.tagName) && (v = {
|
|
1756
1756
|
namespaceURI: et,
|
|
1757
1757
|
tagName: "template"
|
|
1758
1758
|
});
|
|
1759
|
-
const T = $t(
|
|
1760
|
-
return en[
|
|
1761
|
-
}, ze = function(
|
|
1759
|
+
const T = $t(s.tagName), K = $t(v.tagName);
|
|
1760
|
+
return en[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] : !!nn[T] : s.namespaceURI === Be ? v.namespaceURI === Ft && !Wn[K] || v.namespaceURI === Ot && !Vn[K] ? !1 : !nn[T] && (wr[T] || !Bt[T]) : !!(je === "application/xhtml+xml" && en[s.namespaceURI]) : !1;
|
|
1761
|
+
}, ze = function(s) {
|
|
1762
1762
|
bt(e.removed, {
|
|
1763
|
-
element:
|
|
1763
|
+
element: s
|
|
1764
1764
|
});
|
|
1765
1765
|
try {
|
|
1766
|
-
|
|
1766
|
+
s.parentNode.removeChild(s);
|
|
1767
1767
|
} catch {
|
|
1768
|
-
|
|
1768
|
+
s.remove();
|
|
1769
1769
|
}
|
|
1770
|
-
}, on = function(
|
|
1770
|
+
}, on = function(s, v) {
|
|
1771
1771
|
try {
|
|
1772
1772
|
bt(e.removed, {
|
|
1773
|
-
attribute: v.getAttributeNode(
|
|
1773
|
+
attribute: v.getAttributeNode(s),
|
|
1774
1774
|
from: v
|
|
1775
1775
|
});
|
|
1776
1776
|
} catch {
|
|
@@ -1779,7 +1779,7 @@ function dr() {
|
|
|
1779
1779
|
from: v
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
|
-
if (v.removeAttribute(
|
|
1782
|
+
if (v.removeAttribute(s), s === "is" && !r[s])
|
|
1783
1783
|
if (le || ee)
|
|
1784
1784
|
try {
|
|
1785
1785
|
ze(v);
|
|
@@ -1787,19 +1787,19 @@ function dr() {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
else
|
|
1789
1789
|
try {
|
|
1790
|
-
v.setAttribute(
|
|
1790
|
+
v.setAttribute(s, "");
|
|
1791
1791
|
} catch {
|
|
1792
1792
|
}
|
|
1793
|
-
}, qn = function(
|
|
1793
|
+
}, qn = function(s) {
|
|
1794
1794
|
let v = null, T = null;
|
|
1795
1795
|
if (he)
|
|
1796
|
-
|
|
1796
|
+
s = "<remove></remove>" + s;
|
|
1797
1797
|
else {
|
|
1798
|
-
const oe = Fa(
|
|
1798
|
+
const oe = Fa(s, /^[\r\n\t ]+/);
|
|
1799
1799
|
T = oe && oe[0];
|
|
1800
1800
|
}
|
|
1801
|
-
je === "application/xhtml+xml" && et === Be && (
|
|
1802
|
-
const K = N ? N.createHTML(
|
|
1801
|
+
je === "application/xhtml+xml" && et === Be && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
1802
|
+
const K = N ? N.createHTML(s) : s;
|
|
1803
1803
|
if (et === Be)
|
|
1804
1804
|
try {
|
|
1805
1805
|
v = new ae().parseFromString(K, je);
|
|
@@ -1813,52 +1813,52 @@ function dr() {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
const ne = v.body || v.documentElement;
|
|
1816
|
-
return
|
|
1817
|
-
}, Kn = function(
|
|
1816
|
+
return s && T && ne.insertBefore(n.createTextNode(T), ne.childNodes[0] || null), et === Be ? I.call(v, R ? "html" : "body")[0] : R ? v.documentElement : ne;
|
|
1817
|
+
}, Kn = function(s) {
|
|
1818
1818
|
return f.call(
|
|
1819
|
-
|
|
1820
|
-
|
|
1819
|
+
s.ownerDocument || s,
|
|
1820
|
+
s,
|
|
1821
1821
|
// eslint-disable-next-line no-bitwise
|
|
1822
1822
|
D.SHOW_ELEMENT | D.SHOW_COMMENT | D.SHOW_TEXT,
|
|
1823
1823
|
null
|
|
1824
1824
|
);
|
|
1825
|
-
}, Ar = function(
|
|
1826
|
-
return
|
|
1827
|
-
}, Gn = function(
|
|
1828
|
-
return typeof L == "function" &&
|
|
1829
|
-
}, Me = function(
|
|
1830
|
-
w[
|
|
1825
|
+
}, Ar = function(s) {
|
|
1826
|
+
return s instanceof Y && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof W) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
1827
|
+
}, Gn = function(s) {
|
|
1828
|
+
return typeof L == "function" && s instanceof L;
|
|
1829
|
+
}, Me = function(s, v, T) {
|
|
1830
|
+
w[s] && Ut(w[s], (K) => {
|
|
1831
1831
|
K.call(e, v, T, tt);
|
|
1832
1832
|
});
|
|
1833
|
-
}, Yn = function(
|
|
1833
|
+
}, Yn = function(s) {
|
|
1834
1834
|
let v = null;
|
|
1835
|
-
if (Me("beforeSanitizeElements",
|
|
1836
|
-
return ze(
|
|
1837
|
-
const T = Q(
|
|
1838
|
-
if (Me("uponSanitizeElement",
|
|
1835
|
+
if (Me("beforeSanitizeElements", s, null), Ar(s))
|
|
1836
|
+
return ze(s), !0;
|
|
1837
|
+
const T = Q(s.nodeName);
|
|
1838
|
+
if (Me("uponSanitizeElement", s, {
|
|
1839
1839
|
tagName: T,
|
|
1840
1840
|
allowedTags: P
|
|
1841
|
-
}),
|
|
1842
|
-
return ze(
|
|
1841
|
+
}), s.hasChildNodes() && !Gn(s.firstElementChild) && we(/<[/\w]/g, s.innerHTML) && we(/<[/\w]/g, s.textContent))
|
|
1842
|
+
return ze(s), !0;
|
|
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
1846
|
if (Xt && !Qe[T]) {
|
|
1847
|
-
const K = de(
|
|
1847
|
+
const K = de(s) || s.parentNode, ne = Xe(s) || s.childNodes;
|
|
1848
1848
|
if (ne && K) {
|
|
1849
1849
|
const oe = ne.length;
|
|
1850
1850
|
for (let pe = oe - 1; pe >= 0; --pe)
|
|
1851
|
-
K.insertBefore(Je(ne[pe], !0), ve(
|
|
1851
|
+
K.insertBefore(Je(ne[pe], !0), ve(s));
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
return ze(
|
|
1854
|
+
return ze(s), !0;
|
|
1855
1855
|
}
|
|
1856
|
-
return
|
|
1856
|
+
return s instanceof u && !kr(s) || (T === "noscript" || T === "noembed" || T === "noframes") && we(/<\/no(script|embed|frames)/i, s.innerHTML) ? (ze(s), !0) : (C && s.nodeType === 3 && (v = s.textContent, Ut([y, O, p], (K) => {
|
|
1857
1857
|
v = vt(v, K, " ");
|
|
1858
|
-
}),
|
|
1859
|
-
element:
|
|
1860
|
-
}),
|
|
1861
|
-
}, Jn = function(
|
|
1858
|
+
}), s.textContent !== v && (bt(e.removed, {
|
|
1859
|
+
element: s.cloneNode()
|
|
1860
|
+
}), s.textContent = v)), Me("afterSanitizeElements", s, null), !1);
|
|
1861
|
+
}, Jn = function(s, v, T) {
|
|
1862
1862
|
if (Un && (v === "id" || v === "name") && (T in n || T in yr))
|
|
1863
1863
|
return !1;
|
|
1864
1864
|
if (!(m && !h[v] && we(F, v))) {
|
|
@@ -1868,14 +1868,14 @@ function dr() {
|
|
|
1868
1868
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1869
1869
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1870
1870
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1871
|
-
!(Xn(
|
|
1871
|
+
!(Xn(s) && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, s) || d.tagNameCheck instanceof Function && d.tagNameCheck(s)) && (d.attributeNameCheck instanceof RegExp && we(d.attributeNameCheck, v) || d.attributeNameCheck instanceof Function && d.attributeNameCheck(v)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1872
1872
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
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
1876
|
} else if (!Zt[v]) {
|
|
1877
1877
|
if (!we(ce, vt(T, G, ""))) {
|
|
1878
|
-
if (!((v === "src" || v === "xlink:href" || v === "href") &&
|
|
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, "")))) {
|
|
1880
1880
|
if (T)
|
|
1881
1881
|
return !1;
|
|
@@ -1886,13 +1886,13 @@ function dr() {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
1888
|
return !0;
|
|
1889
|
-
}, Xn = function(
|
|
1890
|
-
return
|
|
1891
|
-
}, Zn = function(
|
|
1892
|
-
Me("beforeSanitizeAttributes",
|
|
1889
|
+
}, Xn = function(s) {
|
|
1890
|
+
return s.indexOf("-") > 0;
|
|
1891
|
+
}, Zn = function(s) {
|
|
1892
|
+
Me("beforeSanitizeAttributes", s, null);
|
|
1893
1893
|
const {
|
|
1894
1894
|
attributes: v
|
|
1895
|
-
} =
|
|
1895
|
+
} = s;
|
|
1896
1896
|
if (!v)
|
|
1897
1897
|
return;
|
|
1898
1898
|
const T = {
|
|
@@ -1909,18 +1909,18 @@ 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",
|
|
1912
|
+
if (T.attrName = gt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Me("uponSanitizeAttribute", s, T), me = T.attrValue, T.forceKeepAttr || (on(oe, s), !T.keepAttr))
|
|
1913
1913
|
continue;
|
|
1914
1914
|
if (!E && we(/\/>/i, me)) {
|
|
1915
|
-
on(oe,
|
|
1915
|
+
on(oe, s);
|
|
1916
1916
|
continue;
|
|
1917
1917
|
}
|
|
1918
1918
|
C && Ut([y, O, p], (eo) => {
|
|
1919
1919
|
me = vt(me, eo, " ");
|
|
1920
1920
|
});
|
|
1921
|
-
const Qn = Q(
|
|
1921
|
+
const Qn = Q(s.nodeName);
|
|
1922
1922
|
if (Jn(Qn, gt, me)) {
|
|
1923
|
-
if (Dn && (gt === "id" || gt === "name") && (on(oe,
|
|
1923
|
+
if (Dn && (gt === "id" || gt === "name") && (on(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);
|
|
@@ -1932,21 +1932,21 @@ function dr() {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
try {
|
|
1935
|
-
pe ?
|
|
1935
|
+
pe ? s.setAttributeNS(pe, oe, me) : s.setAttribute(oe, me), go(e.removed);
|
|
1936
1936
|
} catch {
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
Me("afterSanitizeAttributes",
|
|
1941
|
-
}, _r = function S(
|
|
1940
|
+
Me("afterSanitizeAttributes", s, null);
|
|
1941
|
+
}, _r = function S(s) {
|
|
1942
1942
|
let v = null;
|
|
1943
|
-
const T = Kn(
|
|
1944
|
-
for (Me("beforeSanitizeShadowDOM",
|
|
1943
|
+
const T = Kn(s);
|
|
1944
|
+
for (Me("beforeSanitizeShadowDOM", s, null); v = T.nextNode(); )
|
|
1945
1945
|
Me("uponSanitizeShadowNode", v, null), !Yn(v) && (v.content instanceof c && S(v.content), Zn(v));
|
|
1946
|
-
Me("afterSanitizeShadowDOM",
|
|
1946
|
+
Me("afterSanitizeShadowDOM", s, null);
|
|
1947
1947
|
};
|
|
1948
1948
|
return e.sanitize = function(S) {
|
|
1949
|
-
let
|
|
1949
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, T = null, K = null, ne = null;
|
|
1950
1950
|
if (Qt = !S, Qt && (S = "<!-->"), typeof S != "string" && !Gn(S))
|
|
1951
1951
|
if (typeof S.toString == "function") {
|
|
1952
1952
|
if (S = S.toString(), typeof S != "string")
|
|
@@ -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 ($ || tn(
|
|
1958
|
+
if ($ || tn(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])
|
|
@@ -1982,7 +1982,7 @@ function dr() {
|
|
|
1982
1982
|
ne.appendChild(v.firstChild);
|
|
1983
1983
|
else
|
|
1984
1984
|
ne = v;
|
|
1985
|
-
return (r.shadowroot || r.shadowrootmode) && (ne =
|
|
1985
|
+
return (r.shadowroot || r.shadowrootmode) && (ne = _.call(o, ne, !0)), ne;
|
|
1986
1986
|
}
|
|
1987
1987
|
let pe = R ? v.outerHTML : v.innerHTML;
|
|
1988
1988
|
return R && P["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && we(ur, v.ownerDocument.doctype.name) && (pe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
@@ -1994,12 +1994,12 @@ function dr() {
|
|
|
1994
1994
|
tn(S), $ = !0;
|
|
1995
1995
|
}, e.clearConfig = function() {
|
|
1996
1996
|
tt = null, $ = !1;
|
|
1997
|
-
}, e.isValidAttribute = function(S,
|
|
1997
|
+
}, e.isValidAttribute = function(S, s, v) {
|
|
1998
1998
|
tt || tn({});
|
|
1999
|
-
const T = Q(S), K = Q(
|
|
1999
|
+
const T = Q(S), K = Q(s);
|
|
2000
2000
|
return Jn(T, K, v);
|
|
2001
|
-
}, e.addHook = function(S,
|
|
2002
|
-
typeof
|
|
2001
|
+
}, e.addHook = function(S, s) {
|
|
2002
|
+
typeof s == "function" && (w[S] = w[S] || [], bt(w[S], s));
|
|
2003
2003
|
}, e.removeHook = function(S) {
|
|
2004
2004
|
if (w[S])
|
|
2005
2005
|
return go(w[S]);
|
|
@@ -2035,14 +2035,14 @@ class Ya {
|
|
|
2035
2035
|
let o;
|
|
2036
2036
|
return Array.isArray(e.text) ? o = `<div style="max-height: 50vh; overflow: auto">
|
|
2037
2037
|
${e.text.join("<br />")}
|
|
2038
|
-
</div>` : o = e.text, new Promise((
|
|
2038
|
+
</div>` : o = e.text, new Promise((i) => {
|
|
2039
2039
|
lt.fire({
|
|
2040
2040
|
allowEscapeKey: !1,
|
|
2041
2041
|
allowOutsideClick: !1,
|
|
2042
2042
|
icon: n,
|
|
2043
2043
|
title: e.title,
|
|
2044
2044
|
html: Ao.sanitize(o)
|
|
2045
|
-
}).then(() =>
|
|
2045
|
+
}).then(() => i(!0));
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
@@ -2050,14 +2050,14 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2050
2050
|
__name: "HeaderAvatar",
|
|
2051
2051
|
emits: ["logout"],
|
|
2052
2052
|
setup(t, { emit: e }) {
|
|
2053
|
-
const n = Xa(), o = it(""),
|
|
2053
|
+
const n = Xa(), o = it(""), i = e;
|
|
2054
2054
|
async function c() {
|
|
2055
2055
|
await n.ConfirmAsync({
|
|
2056
2056
|
text: "Você deseja sair da conta?",
|
|
2057
2057
|
confirmLabel: "sair"
|
|
2058
|
-
}) &&
|
|
2058
|
+
}) && i("logout");
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function A() {
|
|
2061
2061
|
const u = sessionStorage.getItem("name");
|
|
2062
2062
|
let D = "?";
|
|
2063
2063
|
if (!u)
|
|
@@ -2070,7 +2070,7 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2070
2070
|
return Math.max(D, 0);
|
|
2071
2071
|
});
|
|
2072
2072
|
return xn(() => {
|
|
2073
|
-
o.value =
|
|
2073
|
+
o.value = A();
|
|
2074
2074
|
}), (u, D) => (X(), Ae("div", {
|
|
2075
2075
|
id: "sf-header-avatar",
|
|
2076
2076
|
"data-cor": L.value,
|
|
@@ -2131,27 +2131,26 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2131
2131
|
__name: "Layout",
|
|
2132
2132
|
emits: ["logout"],
|
|
2133
2133
|
setup(t, { emit: e }) {
|
|
2134
|
-
const n = To();
|
|
2135
|
-
return (
|
|
2134
|
+
const n = To(), o = e;
|
|
2135
|
+
return (i, c) => (X(), Ae("div", uc, [
|
|
2136
2136
|
j("header", null, [
|
|
2137
2137
|
j("div", {
|
|
2138
2138
|
class: ke([
|
|
2139
2139
|
"sf-layout-menu-toggler",
|
|
2140
2140
|
{ invert: qe(n).IsVisible }
|
|
2141
2141
|
]),
|
|
2142
|
-
onClick:
|
|
2142
|
+
onClick: c[0] || (c[0] = (A) => qe(n).Toggle())
|
|
2143
2143
|
}, [
|
|
2144
2144
|
dc,
|
|
2145
2145
|
wt(sc)
|
|
2146
2146
|
], 2),
|
|
2147
2147
|
j("div", fc, [
|
|
2148
|
-
Ue(
|
|
2148
|
+
Ue(i.$slots, "title")
|
|
2149
2149
|
]),
|
|
2150
|
-
Ue(
|
|
2150
|
+
Ue(i.$slots, "action"),
|
|
2151
2151
|
wt(lc),
|
|
2152
2152
|
wt(Qa, {
|
|
2153
|
-
onLogout:
|
|
2154
|
-
})
|
|
2153
|
+
onLogout: c[1] || (c[1] = (A) => o("logout"))
|
|
2155
2154
|
})
|
|
2156
2155
|
]),
|
|
2157
2156
|
j("nav", {
|
|
@@ -2162,11 +2161,11 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2162
2161
|
wt(Ht, {
|
|
2163
2162
|
icone: "close",
|
|
2164
2163
|
button: "",
|
|
2165
|
-
onClick:
|
|
2164
|
+
onClick: c[2] || (c[2] = (A) => qe(n).Close())
|
|
2166
2165
|
})
|
|
2167
2166
|
]),
|
|
2168
2167
|
j("div", mc, [
|
|
2169
|
-
Ue(
|
|
2168
|
+
Ue(i.$slots, "menu")
|
|
2170
2169
|
])
|
|
2171
2170
|
], 2),
|
|
2172
2171
|
j("main", {
|
|
@@ -2174,7 +2173,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2174
2173
|
}, [
|
|
2175
2174
|
gc,
|
|
2176
2175
|
j("section", bc, [
|
|
2177
|
-
Ue(
|
|
2176
|
+
Ue(i.$slots, "content")
|
|
2178
2177
|
])
|
|
2179
2178
|
], 2)
|
|
2180
2179
|
]));
|
|
@@ -2189,14 +2188,14 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2189
2188
|
},
|
|
2190
2189
|
setup(t) {
|
|
2191
2190
|
const e = t, n = To();
|
|
2192
|
-
function o(
|
|
2193
|
-
|
|
2194
|
-
const L =
|
|
2191
|
+
function o(i, c) {
|
|
2192
|
+
i.preventDefault();
|
|
2193
|
+
const L = i.target.closest(".sf-layout-nav-content");
|
|
2195
2194
|
c(), L && L.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2196
2195
|
}
|
|
2197
|
-
return (
|
|
2198
|
-
const
|
|
2199
|
-
return X(), ut(
|
|
2196
|
+
return (i, c) => {
|
|
2197
|
+
const A = Co("router-link");
|
|
2198
|
+
return X(), ut(A, {
|
|
2200
2199
|
to: e.href,
|
|
2201
2200
|
custom: ""
|
|
2202
2201
|
}, {
|
|
@@ -2224,7 +2223,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2224
2223
|
setup(t) {
|
|
2225
2224
|
const e = it(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
2226
2225
|
let o = null;
|
|
2227
|
-
function
|
|
2226
|
+
function i() {
|
|
2228
2227
|
o == null || o.scrollTo(0, 0);
|
|
2229
2228
|
}
|
|
2230
2229
|
return xn(() => {
|
|
@@ -2232,10 +2231,10 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2232
2231
|
o = ((c = document.getElementById(n)) == null ? void 0 : c.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
2233
2232
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
2234
2233
|
});
|
|
2235
|
-
}), (c,
|
|
2234
|
+
}), (c, A) => (X(), Ae("button", {
|
|
2236
2235
|
id: n,
|
|
2237
2236
|
class: ke(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
2238
|
-
onClick:
|
|
2237
|
+
onClick: i
|
|
2239
2238
|
}, null, 2));
|
|
2240
2239
|
}
|
|
2241
2240
|
}), Zc = /* @__PURE__ */ Ne({
|
|
@@ -2255,31 +2254,31 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2255
2254
|
function o() {
|
|
2256
2255
|
return new st("sf-content-body").AddClass("sf-content-no-padding", e.disableBodyPadding).Build();
|
|
2257
2256
|
}
|
|
2258
|
-
function
|
|
2257
|
+
function i() {
|
|
2259
2258
|
return new st("sf-content-header").AddClass("sf-content-no-padding", e.disableHeaderPadding).Build();
|
|
2260
2259
|
}
|
|
2261
2260
|
function c() {
|
|
2262
2261
|
return new st("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
2263
2262
|
}
|
|
2264
|
-
return (
|
|
2263
|
+
return (A, L) => (X(), Ae("div", {
|
|
2265
2264
|
class: ke(n()),
|
|
2266
2265
|
style: An(e.style)
|
|
2267
2266
|
}, [
|
|
2268
2267
|
j("div", {
|
|
2269
|
-
class: ke(
|
|
2268
|
+
class: ke(i())
|
|
2270
2269
|
}, [
|
|
2271
|
-
Ue(
|
|
2270
|
+
Ue(A.$slots, "header")
|
|
2272
2271
|
], 2),
|
|
2273
2272
|
j("div", {
|
|
2274
2273
|
class: ke(o())
|
|
2275
2274
|
}, [
|
|
2276
|
-
Ue(
|
|
2275
|
+
Ue(A.$slots, "default"),
|
|
2277
2276
|
wt(wc)
|
|
2278
2277
|
], 2),
|
|
2279
2278
|
j("div", {
|
|
2280
2279
|
class: ke(c())
|
|
2281
2280
|
}, [
|
|
2282
|
-
Ue(
|
|
2281
|
+
Ue(A.$slots, "footer")
|
|
2283
2282
|
], 2)
|
|
2284
2283
|
], 6));
|
|
2285
2284
|
}
|
|
@@ -2321,14 +2320,14 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2321
2320
|
setup(t) {
|
|
2322
2321
|
const e = t, n = it(null), o = new ResizeObserver((u) => {
|
|
2323
2322
|
L();
|
|
2324
|
-
}),
|
|
2325
|
-
function
|
|
2323
|
+
}), i = it(!1), c = it(!1);
|
|
2324
|
+
function A(u = !1) {
|
|
2326
2325
|
const D = n.value.clientWidth;
|
|
2327
2326
|
n.value.scrollLeft += u ? -D : D;
|
|
2328
2327
|
}
|
|
2329
2328
|
function L() {
|
|
2330
2329
|
const u = n.value.scrollWidth - n.value.clientWidth;
|
|
2331
|
-
|
|
2330
|
+
i.value = n.value.scrollLeft > 10, c.value = n.value.scrollLeft < u - 10;
|
|
2332
2331
|
}
|
|
2333
2332
|
return xn(() => {
|
|
2334
2333
|
n.value.addEventListener("scroll", L), o.observe(n.value);
|
|
@@ -2345,8 +2344,8 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2345
2344
|
const W = Co("RouterLink");
|
|
2346
2345
|
return X(), Ae("div", kc, [
|
|
2347
2346
|
j("div", {
|
|
2348
|
-
class: ke(["left-arrow", { active:
|
|
2349
|
-
onClick: D[0] || (D[0] = (Y) =>
|
|
2347
|
+
class: ke(["left-arrow", { active: i.value }]),
|
|
2348
|
+
onClick: D[0] || (D[0] = (Y) => A(!0))
|
|
2350
2349
|
}, _c, 2),
|
|
2351
2350
|
j("ul", {
|
|
2352
2351
|
ref_key: "trackerContainer",
|
|
@@ -2376,7 +2375,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2376
2375
|
], 512),
|
|
2377
2376
|
j("div", {
|
|
2378
2377
|
class: ke(["right-arrow", { active: c.value }]),
|
|
2379
|
-
onClick: D[1] || (D[1] = (Y) =>
|
|
2378
|
+
onClick: D[1] || (D[1] = (Y) => A())
|
|
2380
2379
|
}, Tc, 2)
|
|
2381
2380
|
]);
|
|
2382
2381
|
};
|
|
@@ -2405,7 +2404,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2405
2404
|
function n() {
|
|
2406
2405
|
return new st(`${e.class ?? ""} sf-button`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-button-small", e.size === "sm").AddClass("sf-button-medium", e.size === "md").AddClass("sf-button-large", e.size === "lg").AddClass("sf-button-filled", e.variant === "filled").AddClass("sf-button-text", e.variant === "text").AddClass("sf-button-outlined", e.variant === "outlined").AddClass("sf-button-with-icon", !!e.icon).AddClass("sf-ripple").Build();
|
|
2407
2406
|
}
|
|
2408
|
-
return (o,
|
|
2407
|
+
return (o, i) => (X(), Ae("button", {
|
|
2409
2408
|
id: e.id,
|
|
2410
2409
|
name: e.name,
|
|
2411
2410
|
class: ke(n()),
|
|
@@ -2449,8 +2448,8 @@ function Rc(t) {
|
|
|
2449
2448
|
} else
|
|
2450
2449
|
n = {};
|
|
2451
2450
|
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(o) {
|
|
2452
|
-
var
|
|
2453
|
-
Object.defineProperty(n, o,
|
|
2451
|
+
var i = Object.getOwnPropertyDescriptor(t, o);
|
|
2452
|
+
Object.defineProperty(n, o, i.get ? i : {
|
|
2454
2453
|
enumerable: !0,
|
|
2455
2454
|
get: function() {
|
|
2456
2455
|
return t[o];
|
|
@@ -2484,27 +2483,27 @@ function Mc(t, e, n) {
|
|
|
2484
2483
|
return (e + n) * 3 / 4 - n;
|
|
2485
2484
|
}
|
|
2486
2485
|
function Uc(t) {
|
|
2487
|
-
var e, n = fr(t), o = n[0],
|
|
2486
|
+
var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), A = 0, L = i > 0 ? o - 4 : o, u;
|
|
2488
2487
|
for (u = 0; u < L; u += 4)
|
|
2489
|
-
e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[
|
|
2490
|
-
return
|
|
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[A++] = e >> 16 & 255, c[A++] = e >> 8 & 255, c[A++] = e & 255;
|
|
2489
|
+
return i === 2 && (e = Ce[t.charCodeAt(u)] << 2 | Ce[t.charCodeAt(u + 1)] >> 4, c[A++] = e & 255), i === 1 && (e = Ce[t.charCodeAt(u)] << 10 | Ce[t.charCodeAt(u + 1)] << 4 | Ce[t.charCodeAt(u + 2)] >> 2, c[A++] = e >> 8 & 255, c[A++] = e & 255), c;
|
|
2491
2490
|
}
|
|
2492
2491
|
function Dc(t) {
|
|
2493
2492
|
return Re[t >> 18 & 63] + Re[t >> 12 & 63] + Re[t >> 6 & 63] + Re[t & 63];
|
|
2494
2493
|
}
|
|
2495
2494
|
function Nc(t, e, n) {
|
|
2496
|
-
for (var o,
|
|
2497
|
-
o = (t[c] << 16 & 16711680) + (t[c + 1] << 8 & 65280) + (t[c + 2] & 255),
|
|
2498
|
-
return
|
|
2495
|
+
for (var o, i = [], c = e; c < n; c += 3)
|
|
2496
|
+
o = (t[c] << 16 & 16711680) + (t[c + 1] << 8 & 65280) + (t[c + 2] & 255), i.push(Dc(o));
|
|
2497
|
+
return i.join("");
|
|
2499
2498
|
}
|
|
2500
2499
|
function $c(t) {
|
|
2501
|
-
for (var e, n = t.length, o = n % 3,
|
|
2502
|
-
|
|
2503
|
-
return o === 1 ? (e = t[n - 1],
|
|
2500
|
+
for (var e, n = t.length, o = n % 3, i = [], c = 16383, A = 0, L = n - o; A < L; A += c)
|
|
2501
|
+
i.push(Nc(t, A, A + c > L ? L : A + c));
|
|
2502
|
+
return o === 1 ? (e = t[n - 1], i.push(
|
|
2504
2503
|
Re[e >> 2] + Re[e << 4 & 63] + "=="
|
|
2505
|
-
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1],
|
|
2504
|
+
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
|
|
2506
2505
|
Re[e >> 10] + Re[e >> 4 & 63] + Re[e << 2 & 63] + "="
|
|
2507
|
-
)),
|
|
2506
|
+
)), i.join("");
|
|
2508
2507
|
}
|
|
2509
2508
|
var hr = { exports: {} };
|
|
2510
2509
|
const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2523,9 +2522,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2523
2522
|
(function() {
|
|
2524
2523
|
var e = "input is invalid type", n = typeof window == "object", o = n ? window : {};
|
|
2525
2524
|
o.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2526
|
-
var
|
|
2527
|
-
c ? o = Ic :
|
|
2528
|
-
var
|
|
2525
|
+
var i = !n && typeof self == "object", c = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2526
|
+
c ? o = Ic : i && (o = self);
|
|
2527
|
+
var A = !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 = [
|
|
2529
2528
|
1116352408,
|
|
2530
2529
|
1899447441,
|
|
2531
2530
|
3049323471,
|
|
@@ -2608,26 +2607,26 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2608
2607
|
return k.create().update(w);
|
|
2609
2608
|
};
|
|
2610
2609
|
for (var I = 0; I < ae.length; ++I) {
|
|
2611
|
-
var
|
|
2612
|
-
k[
|
|
2610
|
+
var _ = ae[I];
|
|
2611
|
+
k[_] = Fe(_, f);
|
|
2613
2612
|
}
|
|
2614
2613
|
return k;
|
|
2615
2614
|
}, ve = function(f, k) {
|
|
2616
|
-
var I = _o,
|
|
2617
|
-
|
|
2618
|
-
return new
|
|
2615
|
+
var I = _o, _ = _o.Buffer, w = k ? "sha224" : "sha256", y;
|
|
2616
|
+
_.from && !o.JS_SHA256_NO_BUFFER_FROM ? y = _.from : y = function(p) {
|
|
2617
|
+
return new _(p);
|
|
2619
2618
|
};
|
|
2620
2619
|
var O = function(p) {
|
|
2621
2620
|
if (typeof p == "string")
|
|
2622
2621
|
return I.createHash(w).update(p, "utf8").digest("hex");
|
|
2623
2622
|
if (p == null)
|
|
2624
2623
|
throw new Error(e);
|
|
2625
|
-
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor ===
|
|
2624
|
+
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor === _ ? I.createHash(w).update(y(p)).digest("hex") : f(p);
|
|
2626
2625
|
};
|
|
2627
2626
|
return O;
|
|
2628
2627
|
}, Xe = function(f, k) {
|
|
2629
|
-
return function(I,
|
|
2630
|
-
return new ye(I, k, !0).update(
|
|
2628
|
+
return function(I, _) {
|
|
2629
|
+
return new ye(I, k, !0).update(_)[f]();
|
|
2631
2630
|
};
|
|
2632
2631
|
}, de = function(f) {
|
|
2633
2632
|
var k = Xe("hex", f);
|
|
@@ -2637,8 +2636,8 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2637
2636
|
return k.create(w).update(y);
|
|
2638
2637
|
};
|
|
2639
2638
|
for (var I = 0; I < ae.length; ++I) {
|
|
2640
|
-
var
|
|
2641
|
-
k[
|
|
2639
|
+
var _ = ae[I];
|
|
2640
|
+
k[_] = Xe(_, f);
|
|
2642
2641
|
}
|
|
2643
2642
|
return k;
|
|
2644
2643
|
};
|
|
@@ -2660,13 +2659,13 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2660
2659
|
throw new Error(e);
|
|
2661
2660
|
k = !0;
|
|
2662
2661
|
}
|
|
2663
|
-
for (var
|
|
2662
|
+
for (var _, w = 0, y, O = f.length, p = this.blocks; w < O; ) {
|
|
2664
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), k)
|
|
2665
2664
|
for (y = this.start; w < O && y < 64; ++w)
|
|
2666
2665
|
p[y >> 2] |= f[w] << W[y++ & 3];
|
|
2667
2666
|
else
|
|
2668
2667
|
for (y = this.start; w < O && y < 64; ++w)
|
|
2669
|
-
|
|
2668
|
+
_ = f.charCodeAt(w), _ < 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(++w) & 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]);
|
|
2670
2669
|
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;
|
|
2671
2670
|
}
|
|
2672
2671
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
@@ -2678,19 +2677,19 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2678
2677
|
f[16] = this.block, f[k >> 2] |= D[k & 3], this.block = f[16], k >= 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();
|
|
2679
2678
|
}
|
|
2680
2679
|
}, N.prototype.hash = function() {
|
|
2681
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
2680
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = 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;
|
|
2682
2681
|
for (q = 16; q < 64; ++q)
|
|
2683
2682
|
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;
|
|
2684
2683
|
for (h = k & I, q = 0; q < 64; q += 4)
|
|
2685
|
-
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0,
|
|
2686
|
-
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + k << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 +
|
|
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 = (w >>> 6 | w << 26) ^ (w >>> 11 | w << 21) ^ (w >>> 25 | w << 7), a = f & k, ce = a ^ f & I ^ h, r = w & y ^ ~w & 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 ^ _ & k ^ a, r = p & w ^ ~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 & w, P = y + G + r + Y[q + 2] + F[q + 2], fe = J + ce, y = k + P << 0, k = P + fe << 0, J = (k >>> 2 | k << 30) ^ (k >>> 13 | k << 19) ^ (k >>> 22 | k << 10), G = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), h = k & I, ce = h ^ k & _ ^ g, r = y & O ^ ~y & p, P = w + G + r + Y[q + 3] + F[q + 3], fe = J + ce, w = f + P << 0, f = P + fe << 0, this.chromeBugWorkAround = !0;
|
|
2685
|
+
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + k << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + _ << 0, this.h4 = this.h4 + w << 0, this.h5 = this.h5 + y << 0, this.h6 = this.h6 + O << 0, this.h7 = this.h7 + p << 0;
|
|
2687
2686
|
}, N.prototype.hex = function() {
|
|
2688
2687
|
this.finalize();
|
|
2689
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
2688
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = 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[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[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[w >> 28 & 15] + u[w >> 24 & 15] + u[w >> 20 & 15] + u[w >> 16 & 15] + u[w >> 12 & 15] + u[w >> 8 & 15] + u[w >> 4 & 15] + u[w & 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];
|
|
2690
2689
|
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;
|
|
2691
2690
|
}, N.prototype.toString = N.prototype.hex, N.prototype.digest = function() {
|
|
2692
2691
|
this.finalize();
|
|
2693
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
2692
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = [
|
|
2694
2693
|
f >> 24 & 255,
|
|
2695
2694
|
f >> 16 & 255,
|
|
2696
2695
|
f >> 8 & 255,
|
|
@@ -2703,10 +2702,10 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2703
2702
|
I >> 16 & 255,
|
|
2704
2703
|
I >> 8 & 255,
|
|
2705
2704
|
I & 255,
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2705
|
+
_ >> 24 & 255,
|
|
2706
|
+
_ >> 16 & 255,
|
|
2707
|
+
_ >> 8 & 255,
|
|
2708
|
+
_ & 255,
|
|
2710
2709
|
w >> 24 & 255,
|
|
2711
2710
|
w >> 16 & 255,
|
|
2712
2711
|
w >> 8 & 255,
|
|
@@ -2727,11 +2726,11 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2727
2726
|
return k.setUint32(0, this.h0), k.setUint32(4, this.h1), k.setUint32(8, this.h2), k.setUint32(12, this.h3), k.setUint32(16, this.h4), k.setUint32(20, this.h5), k.setUint32(24, this.h6), this.is224 || k.setUint32(28, this.h7), f;
|
|
2728
2727
|
};
|
|
2729
2728
|
function ye(f, k, I) {
|
|
2730
|
-
var
|
|
2729
|
+
var _, w = typeof f;
|
|
2731
2730
|
if (w === "string") {
|
|
2732
2731
|
var y = [], O = f.length, p = 0, F;
|
|
2733
|
-
for (
|
|
2734
|
-
F = f.charCodeAt(
|
|
2732
|
+
for (_ = 0; _ < O; ++_)
|
|
2733
|
+
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);
|
|
2735
2734
|
f = y;
|
|
2736
2735
|
} else if (w === "object") {
|
|
2737
2736
|
if (f === null)
|
|
@@ -2744,9 +2743,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2744
2743
|
throw new Error(e);
|
|
2745
2744
|
f.length > 64 && (f = new N(k, !0).update(f).array());
|
|
2746
2745
|
var q = [], J = [];
|
|
2747
|
-
for (
|
|
2748
|
-
var G = f[
|
|
2749
|
-
q[
|
|
2746
|
+
for (_ = 0; _ < 64; ++_) {
|
|
2747
|
+
var G = f[_] || 0;
|
|
2748
|
+
q[_] = 92 ^ G, J[_] = 54 ^ G;
|
|
2750
2749
|
}
|
|
2751
2750
|
N.call(this, k, I), this.update(J), this.oKeyPad = q, this.inner = !0, this.sharedMemory = I;
|
|
2752
2751
|
}
|
|
@@ -2758,7 +2757,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2758
2757
|
}
|
|
2759
2758
|
};
|
|
2760
2759
|
var Z = Je();
|
|
2761
|
-
Z.sha256 = Z, Z.sha224 = Je(!0), Z.sha256.hmac = de(), Z.sha224.hmac = de(!0),
|
|
2760
|
+
Z.sha256 = Z, Z.sha224 = Je(!0), Z.sha256.hmac = de(), Z.sha224.hmac = de(!0), A ? t.exports = Z : (o.sha256 = Z.sha256, o.sha224 = Z.sha224);
|
|
2762
2761
|
})();
|
|
2763
2762
|
})(hr);
|
|
2764
2763
|
var zc = hr.exports;
|
|
@@ -2799,14 +2798,14 @@ function hn(t, e) {
|
|
|
2799
2798
|
const n = e.header === !0 ? 0 : 1, o = t.split(".")[n];
|
|
2800
2799
|
if (typeof o != "string")
|
|
2801
2800
|
throw new At(`Invalid token specified: missing part #${n + 1}`);
|
|
2802
|
-
let
|
|
2801
|
+
let i;
|
|
2803
2802
|
try {
|
|
2804
|
-
|
|
2803
|
+
i = qc(o);
|
|
2805
2804
|
} catch (c) {
|
|
2806
2805
|
throw new At(`Invalid token specified: invalid base64 for part #${n + 1} (${c.message})`);
|
|
2807
2806
|
}
|
|
2808
2807
|
try {
|
|
2809
|
-
return JSON.parse(
|
|
2808
|
+
return JSON.parse(i);
|
|
2810
2809
|
} catch (c) {
|
|
2811
2810
|
throw new At(`Invalid token specified: invalid json for part #${n + 1} (${c.message})`);
|
|
2812
2811
|
}
|
|
@@ -2816,17 +2815,17 @@ if (typeof Promise > "u")
|
|
|
2816
2815
|
function pr(t) {
|
|
2817
2816
|
if (!(this instanceof pr))
|
|
2818
2817
|
throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
|
|
2819
|
-
for (var e = this, n, o = [],
|
|
2818
|
+
for (var e = this, n, o = [], i, c = {
|
|
2820
2819
|
enable: !0,
|
|
2821
2820
|
callbackList: [],
|
|
2822
2821
|
interval: 5
|
|
2823
|
-
},
|
|
2824
|
-
(
|
|
2822
|
+
}, A = document.getElementsByTagName("script"), L = 0; L < A.length; L++)
|
|
2823
|
+
(A[L].src.indexOf("keycloak.js") !== -1 || A[L].src.indexOf("keycloak.min.js") !== -1) && A[L].src.indexOf("version=") !== -1 && (e.iframeVersion = A[L].src.substring(A[L].src.indexOf("version=") + 8).split("&")[0]);
|
|
2825
2824
|
var u = !0, D = fe(console.info), W = fe(console.warn);
|
|
2826
2825
|
e.init = function(r) {
|
|
2827
2826
|
if (e.didInitialize)
|
|
2828
2827
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
2829
|
-
e.didInitialize = !0, e.authenticated = !1,
|
|
2828
|
+
e.didInitialize = !0, e.authenticated = !1, i = P();
|
|
2830
2829
|
var a = ["default", "cordova", "cordova-native"];
|
|
2831
2830
|
if (r && a.indexOf(r.adapter) > -1 ? n = J(r.adapter) : r && typeof r.adapter == "object" ? n = r.adapter : window.Cordova || window.cordova ? n = J("cordova") : n = J(), r) {
|
|
2832
2831
|
if (typeof r.useNonce < "u" && (u = r.useNonce), typeof r.checkLoginIframe < "u" && (c.enable = r.checkLoginIframe), r.checkLoginIframeInterval && (c.interval = r.checkLoginIframeInterval), r.onLoad === "login-required" && (e.loginRequired = !0), r.responseMode)
|
|
@@ -2992,7 +2991,7 @@ function pr(t) {
|
|
|
2992
2991
|
var R = Fe(e.pkceMethod, C);
|
|
2993
2992
|
b += "&code_challenge=" + R, b += "&code_challenge_method=" + e.pkceMethod;
|
|
2994
2993
|
}
|
|
2995
|
-
return
|
|
2994
|
+
return i.add(h), b;
|
|
2996
2995
|
}, e.logout = function(r) {
|
|
2997
2996
|
return n.logout(r);
|
|
2998
2997
|
}, e.createLogoutUrl = function(r) {
|
|
@@ -3240,7 +3239,7 @@ function pr(t) {
|
|
|
3240
3239
|
function k(r) {
|
|
3241
3240
|
var a = I(r);
|
|
3242
3241
|
if (a) {
|
|
3243
|
-
var d =
|
|
3242
|
+
var d = i.get(a.state);
|
|
3244
3243
|
return d && (a.valid = !0, a.redirectUri = d.redirectUri, a.storedNonce = d.nonce, a.prompt = d.prompt, a.pkceCodeVerifier = d.pkceCodeVerifier), a;
|
|
3245
3244
|
}
|
|
3246
3245
|
}
|
|
@@ -3259,7 +3258,7 @@ function pr(t) {
|
|
|
3259
3258
|
}
|
|
3260
3259
|
a.push("error"), a.push("error_description"), a.push("error_uri");
|
|
3261
3260
|
var d = r.indexOf("?"), g = r.indexOf("#"), h, x;
|
|
3262
|
-
if (e.responseMode === "query" && d !== -1 ? (h = r.substring(0, d), x =
|
|
3261
|
+
if (e.responseMode === "query" && d !== -1 ? (h = r.substring(0, d), x = _(r.substring(d + 1, g !== -1 ? g : r.length), a), x.paramsString !== "" && (h += "?" + x.paramsString), g !== -1 && (h += r.substring(g))) : e.responseMode === "fragment" && g !== -1 && (h = r.substring(0, g), x = _(r.substring(g + 1), a), x.paramsString !== "" && (h += "#" + x.paramsString)), x && x.oauthParams) {
|
|
3263
3262
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
3264
3263
|
if ((x.oauthParams.code || x.oauthParams.error) && x.oauthParams.state)
|
|
3265
3264
|
return x.oauthParams.newUrl = h, x.oauthParams;
|
|
@@ -3267,7 +3266,7 @@ function pr(t) {
|
|
|
3267
3266
|
return x.oauthParams.newUrl = h, x.oauthParams;
|
|
3268
3267
|
}
|
|
3269
3268
|
}
|
|
3270
|
-
function
|
|
3269
|
+
function _(r, a) {
|
|
3271
3270
|
for (var d = r.split("&"), g = {
|
|
3272
3271
|
paramsString: "",
|
|
3273
3272
|
oauthParams: {}
|
|
@@ -3572,15 +3571,15 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3572
3571
|
}
|
|
3573
3572
|
}
|
|
3574
3573
|
function Kc(t) {
|
|
3575
|
-
const e = new pr(t), n = {}, o = (
|
|
3574
|
+
const e = new pr(t), n = {}, o = (A, L) => {
|
|
3576
3575
|
e.init({ onLoad: "login-required" }).then(async (u) => {
|
|
3577
|
-
u && await
|
|
3576
|
+
u && await i(), A();
|
|
3578
3577
|
}).catch((u) => {
|
|
3579
3578
|
L(u);
|
|
3580
3579
|
});
|
|
3581
|
-
},
|
|
3582
|
-
const
|
|
3583
|
-
n.email =
|
|
3580
|
+
}, i = async () => {
|
|
3581
|
+
const A = await e.loadUserInfo();
|
|
3582
|
+
n.email = A.email ?? "", n.emailVerified = A.email_verified === !0, n.firstName = A.given_name ?? "", n.lastName = A.family_name ?? "", n.name = A.name ?? "", n.sub = A.sub ?? "", n.username = A.preferred_username ?? "", n.roles = [...A.role ?? []], n.groups = [...A.group ?? []], n.IsInRole = (L) => n.roles.includes(L), sessionStorage.setItem("name", n.name);
|
|
3584
3583
|
};
|
|
3585
3584
|
return {
|
|
3586
3585
|
Instance: e,
|