@luizleon/sf.prefeiturasp.vuecomponents 5.0.28 → 5.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sf.prefeiturasp.vuecomponents.css +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +954 -853
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +18 -18
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/components/help-button/HelpButton.vue.d.ts +2 -2
- package/dist/types/composables/useSimpleToast.d.ts +26 -0
- package/dist/types/composables/useSimpleToast.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/primevue/preset.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fs = Object.defineProperty;
|
|
2
2
|
var Vs = (t, e, n) => e in t ? Fs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as De, onBeforeUnmount as
|
|
3
|
+
var oe = (t, e, n) => Vs(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { defineComponent as De, onBeforeUnmount as Ii, createElementBlock as U, openBlock as O, unref as se, renderSlot as pe, createElementVNode as M, computed as ce, createBlock as fe, resolveDynamicComponent as vt, normalizeClass as ee, withCtx as mt, createCommentVNode as ae, normalizeStyle as jt, Fragment as Xe, mergeProps as W, toDisplayString as $e, ref as ne, onMounted as xt, resolveComponent as Sn, renderList as Bo, useSlots as Uo, watch as dn, Teleport as Ks, withModifiers as Io, createVNode as Ae, Transition as Ho, normalizeProps as jn, guardReactiveProps as Fn, readonly as zs, getCurrentInstance as jo, nextTick as Ti, resolveDirective as Ws, withDirectives as To, vShow as Ai, getCurrentScope as Gs, onScopeDispose as qs, toValue as Ei, inject as Ys, onBeforeMount as Xs, createTextVNode as Ar, watchEffect as Zs } from "vue";
|
|
5
5
|
import { useRouter as Js } from "vue-router";
|
|
6
6
|
class fn {
|
|
7
7
|
/**
|
|
@@ -9,7 +9,7 @@ class fn {
|
|
|
9
9
|
* @param value The initial value of the CSS class string.
|
|
10
10
|
*/
|
|
11
11
|
constructor(e) {
|
|
12
|
-
|
|
12
|
+
oe(this, "retorno");
|
|
13
13
|
this.retorno = e ?? "";
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
@@ -58,10 +58,10 @@ const Qs = /* @__PURE__ */ De({
|
|
|
58
58
|
const e = t;
|
|
59
59
|
class n {
|
|
60
60
|
constructor() {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
oe(this, "target", null);
|
|
62
|
+
oe(this, "wrapper", null);
|
|
63
|
+
oe(this, "inner", null);
|
|
64
|
+
oe(this, "showTimeout", null);
|
|
65
65
|
}
|
|
66
66
|
Render() {
|
|
67
67
|
this.wrapper = document.createElement("div"), this.wrapper.classList.add("sf-tooltip-wrapper"), this.wrapper.style.zIndex = `${Fo() ?? 1}`, this.wrapper.addEventListener("mouseup", function() {
|
|
@@ -108,7 +108,7 @@ const Qs = /* @__PURE__ */ De({
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
const o = new n();
|
|
111
|
-
return
|
|
111
|
+
return Ii(() => {
|
|
112
112
|
o.Hide();
|
|
113
113
|
}), (r, i) => (O(), U("div", {
|
|
114
114
|
class: "sf-tooltip-anchor",
|
|
@@ -215,7 +215,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
215
215
|
_: 1
|
|
216
216
|
}, 8, ["text", "class"]));
|
|
217
217
|
}
|
|
218
|
-
}), ut = /* @__PURE__ */ _t(sa, [["__scopeId", "data-v-c242d02a"]]), aa = { class: "sf-tab-navigation" }, la = ["data-active"], ca = ["href", "onClick"],
|
|
218
|
+
}), ut = /* @__PURE__ */ _t(sa, [["__scopeId", "data-v-c242d02a"]]), aa = { class: "sf-tab-navigation" }, la = ["data-active"], ca = ["href", "onClick"], Lm = /* @__PURE__ */ De({
|
|
219
219
|
__name: "TabNavigation",
|
|
220
220
|
props: {
|
|
221
221
|
tabs: {}
|
|
@@ -232,9 +232,9 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
232
232
|
const l = n.value.scrollWidth - n.value.clientWidth;
|
|
233
233
|
r.value = n.value.scrollLeft > 10, i.value = n.value.scrollLeft < l - 10;
|
|
234
234
|
}
|
|
235
|
-
return
|
|
235
|
+
return xt(() => {
|
|
236
236
|
n.value.addEventListener("scroll", s), o.observe(n.value);
|
|
237
|
-
}),
|
|
237
|
+
}), Ii(() => {
|
|
238
238
|
var l;
|
|
239
239
|
try {
|
|
240
240
|
(l = n.value) == null || l.removeEventListener(
|
|
@@ -269,7 +269,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
269
269
|
ref_key: "trackerContainer",
|
|
270
270
|
ref: n
|
|
271
271
|
}, [
|
|
272
|
-
(O(!0), U(Xe, null,
|
|
272
|
+
(O(!0), U(Xe, null, Bo(e.tabs, (m) => (O(), fe(d, {
|
|
273
273
|
to: m.route,
|
|
274
274
|
custom: !0
|
|
275
275
|
}, {
|
|
@@ -321,7 +321,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
321
321
|
},
|
|
322
322
|
setup(t) {
|
|
323
323
|
const e = t, n = ne(!1);
|
|
324
|
-
return
|
|
324
|
+
return xt(async () => {
|
|
325
325
|
await new Promise(
|
|
326
326
|
(o) => setTimeout(o, e.delay ?? 300)
|
|
327
327
|
), n.value = !0;
|
|
@@ -410,7 +410,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
410
410
|
], 2)
|
|
411
411
|
], 14, fa)) : ae("", !0);
|
|
412
412
|
}
|
|
413
|
-
}),
|
|
413
|
+
}), Om = /* @__PURE__ */ _t(ma, [["__scopeId", "data-v-79a81e53"]]), pa = { class: "sf-drawer-title" }, ha = { class: "sf-drawer-action" }, ga = /* @__PURE__ */ De({
|
|
414
414
|
__name: "Drawer",
|
|
415
415
|
props: {
|
|
416
416
|
visible: { type: Boolean, default: !1 },
|
|
@@ -450,7 +450,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
450
450
|
function A() {
|
|
451
451
|
window.document.removeEventListener("keydown", m, !0), a.value = !1;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function P() {
|
|
454
454
|
return new fn("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("center", n.position === "center").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
|
|
455
455
|
}
|
|
456
456
|
return dn(
|
|
@@ -467,7 +467,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
467
467
|
a.value ? (O(), U("div", {
|
|
468
468
|
key: 0,
|
|
469
469
|
id: l,
|
|
470
|
-
class: ee(
|
|
470
|
+
class: ee(P()),
|
|
471
471
|
style: jt({ zIndex: s.value - 1 }),
|
|
472
472
|
onClick: Io(d, ["stop"])
|
|
473
473
|
}, [
|
|
@@ -523,7 +523,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
523
523
|
], 6)) : ae("", !0)
|
|
524
524
|
]));
|
|
525
525
|
}
|
|
526
|
-
}), va = ["data-icon"],
|
|
526
|
+
}), va = ["data-icon"], $m = /* @__PURE__ */ De({
|
|
527
527
|
__name: "Message",
|
|
528
528
|
props: {
|
|
529
529
|
color: { default: "info" },
|
|
@@ -626,7 +626,7 @@ function rn(t, e) {
|
|
|
626
626
|
return isNaN(n) ? n === "true" || n === "false" ? n === "true" : n : +n;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Er(t) {
|
|
630
630
|
if (t) {
|
|
631
631
|
let e = t.offsetHeight, n = getComputedStyle(t);
|
|
632
632
|
return e -= parseFloat(n.paddingTop) + parseFloat(n.paddingBottom) + parseFloat(n.borderTopWidth) + parseFloat(n.borderBottomWidth), e;
|
|
@@ -672,7 +672,7 @@ function Ta() {
|
|
|
672
672
|
function Aa(t, e = "", n) {
|
|
673
673
|
Jn(t) && n !== null && n !== void 0 && t.setAttribute(e, n);
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function xi() {
|
|
676
676
|
const t = /* @__PURE__ */ new Map();
|
|
677
677
|
return {
|
|
678
678
|
on(e, n) {
|
|
@@ -728,10 +728,10 @@ function Vo(t) {
|
|
|
728
728
|
function Q(t) {
|
|
729
729
|
return !It(t);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Nt(t, e, n) {
|
|
732
732
|
return Ao(t, e);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function xr(t, e) {
|
|
735
735
|
let n;
|
|
736
736
|
if (Q(t))
|
|
737
737
|
try {
|
|
@@ -763,7 +763,7 @@ function zo(t, e = !0) {
|
|
|
763
763
|
function Li(t) {
|
|
764
764
|
return Q(t) && !isNaN(t);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Ea(t = "") {
|
|
767
767
|
return Q(t) && t.length === 1 && !!t.match(/\S| /);
|
|
768
768
|
}
|
|
769
769
|
function dt(t, e) {
|
|
@@ -776,93 +776,93 @@ function dt(t, e) {
|
|
|
776
776
|
function ln(t) {
|
|
777
777
|
return t && t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":");
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function Pa(t) {
|
|
780
780
|
return Re(t, !1) ? t[0].toUpperCase() + t.slice(1) : t;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Oi(t) {
|
|
783
783
|
return Re(t) ? t.replace(/(_)/g, "-").replace(/[A-Z]/g, (e, n) => n === 0 ? e : "-" + e.toLowerCase()).toLowerCase() : t;
|
|
784
784
|
}
|
|
785
785
|
function Lr(t) {
|
|
786
786
|
return Re(t) ? t.replace(/[A-Z]/g, (e, n) => n === 0 ? e : "." + e.toLowerCase()).toLowerCase() : t;
|
|
787
787
|
}
|
|
788
788
|
var Dn = {};
|
|
789
|
-
function
|
|
789
|
+
function xa(t = "pui_id_") {
|
|
790
790
|
return Dn.hasOwnProperty(t) || (Dn[t] = 0), Dn[t]++, `${t}${Dn[t]}`;
|
|
791
791
|
}
|
|
792
792
|
function qn() {
|
|
793
793
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
|
|
794
|
-
return
|
|
794
|
+
return xa(t);
|
|
795
795
|
}
|
|
796
|
-
var
|
|
796
|
+
var La = Object.defineProperty, Oa = Object.defineProperties, $a = Object.getOwnPropertyDescriptors, Yn = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Or = (t, e, n) => e in t ? La(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Yt = (t, e) => {
|
|
797
797
|
for (var n in e || (e = {}))
|
|
798
|
-
|
|
798
|
+
$i.call(e, n) && Or(t, n, e[n]);
|
|
799
799
|
if (Yn)
|
|
800
800
|
for (var n of Yn(e))
|
|
801
|
-
|
|
801
|
+
Mi.call(e, n) && Or(t, n, e[n]);
|
|
802
802
|
return t;
|
|
803
803
|
}, mo = (t, e) => Oa(t, $a(e)), Xt = (t, e) => {
|
|
804
804
|
var n = {};
|
|
805
805
|
for (var o in t)
|
|
806
|
-
|
|
806
|
+
$i.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
|
|
807
807
|
if (t != null && Yn)
|
|
808
808
|
for (var o of Yn(t))
|
|
809
|
-
e.indexOf(o) < 0 &&
|
|
809
|
+
e.indexOf(o) < 0 && Mi.call(t, o) && (n[o] = t[o]);
|
|
810
810
|
return n;
|
|
811
|
-
}, Ma =
|
|
812
|
-
function
|
|
811
|
+
}, Ma = xi(), ct = Ma;
|
|
812
|
+
function $r(t, e) {
|
|
813
813
|
zo(t) ? t.push(...e || []) : bt(t) && Object.assign(t, e);
|
|
814
814
|
}
|
|
815
815
|
function Ra(t) {
|
|
816
816
|
return bt(t) && t.hasOwnProperty("value") && t.hasOwnProperty("type") ? t.value : t;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Mr(t, e = "") {
|
|
819
819
|
return ["opacity", "z-index", "line-height", "font-weight", "flex", "flex-grow", "flex-shrink", "order"].some((o) => e.endsWith(o)) ? t : `${t}`.trim().split(" ").map((i) => Li(i) ? `${i}px` : i).join(" ");
|
|
820
820
|
}
|
|
821
821
|
function Da(t) {
|
|
822
822
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Eo(t = "", e = "") {
|
|
825
825
|
return Da(`${Re(t, !1) && Re(e, !1) ? `${t}-` : t}${e}`);
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
return `--${
|
|
827
|
+
function Ri(t = "", e = "") {
|
|
828
|
+
return `--${Eo(t, e)}`;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Di(t, e = "", n = "", o = [], r) {
|
|
831
831
|
if (Re(t)) {
|
|
832
832
|
const i = /{([^}]*)}/g, a = t.trim();
|
|
833
833
|
if (dt(a, i)) {
|
|
834
834
|
const s = a.replaceAll(i, (d) => {
|
|
835
835
|
const g = d.replace(/{|}/g, "").split(".").filter((w) => !o.some((k) => dt(w, k)));
|
|
836
|
-
return `var(${
|
|
836
|
+
return `var(${Ri(n, Oi(g.join("-")))}${Q(r) ? `, ${r}` : ""})`;
|
|
837
837
|
}), l = /(\d+\s+[\+\-\*\/]\s+\d+)/g, u = /var\([^)]+\)/g;
|
|
838
838
|
return dt(s.replace(u, "0"), l) ? `calc(${s})` : s;
|
|
839
839
|
}
|
|
840
|
-
return
|
|
840
|
+
return Mr(a, e);
|
|
841
841
|
} else if (Li(t))
|
|
842
|
-
return
|
|
842
|
+
return Mr(t, e);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Na(t, e, n) {
|
|
845
845
|
Re(e, !1) && t.push(`${e}:${n};`);
|
|
846
846
|
}
|
|
847
847
|
function sn(t, e) {
|
|
848
848
|
return t ? `${t}{${e}}` : "";
|
|
849
849
|
}
|
|
850
|
-
var po = (...t) =>
|
|
850
|
+
var po = (...t) => Ba(re.getTheme(), ...t), Ba = (t = {}, e, n, o = "variable") => {
|
|
851
851
|
if (e) {
|
|
852
|
-
const { variable: r, options: i } =
|
|
853
|
-
return o === "value" || s === "strict" ?
|
|
852
|
+
const { variable: r, options: i } = re.defaults || {}, { prefix: a, transform: s } = (t == null ? void 0 : t.options) || i || {}, u = dt(e, /{([^}]*)}/g) ? e : `{${e}}`;
|
|
853
|
+
return o === "value" || s === "strict" ? re.getTokenValue(e) : Di(u, void 0, a, [r.excludedKeyRegex], n);
|
|
854
854
|
}
|
|
855
855
|
return "";
|
|
856
856
|
};
|
|
857
857
|
function Ua(t, e = {}) {
|
|
858
|
-
const n =
|
|
858
|
+
const n = re.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (u, d = "") => Object.entries(u).reduce(
|
|
859
859
|
(m, [g, w]) => {
|
|
860
|
-
const k = dt(g, i) ?
|
|
860
|
+
const k = dt(g, i) ? Eo(d) : Eo(d, Oi(g)), A = Ra(w);
|
|
861
861
|
if (bt(A)) {
|
|
862
|
-
const { variables:
|
|
863
|
-
|
|
862
|
+
const { variables: P, tokens: b } = a(A, k);
|
|
863
|
+
$r(m.tokens, b), $r(m.variables, P);
|
|
864
864
|
} else
|
|
865
|
-
m.tokens.push((o ? k.replace(`${o}-`, "") : k).replaceAll("-", ".")),
|
|
865
|
+
m.tokens.push((o ? k.replace(`${o}-`, "") : k).replaceAll("-", ".")), Na(m.variables, Ri(k), Di(A, k, o, [i]));
|
|
866
866
|
return m;
|
|
867
867
|
},
|
|
868
868
|
{ variables: [], tokens: [] }
|
|
@@ -923,7 +923,7 @@ var We = {
|
|
|
923
923
|
const { preset: u, options: d } = e;
|
|
924
924
|
let m, g, w, k;
|
|
925
925
|
if (Q(u)) {
|
|
926
|
-
const { primitive: A, semantic:
|
|
926
|
+
const { primitive: A, semantic: P } = u, b = P || {}, { colorScheme: S } = b, N = Xt(b, ["colorScheme"]), H = S || {}, { dark: Y } = H, ge = Xt(H, ["dark"]), le = Q(A) ? this._toVariables({ primitive: A }, d) : {}, Be = Q(N) ? this._toVariables({ semantic: N }, d) : {}, ue = Q(ge) ? this._toVariables({ light: ge }, d) : {}, X = Q(Y) ? this._toVariables({ dark: Y }, d) : {}, [D, J] = [(i = le.declarations) != null ? i : "", le.tokens], [ve, ye] = [(a = Be.declarations) != null ? a : "", Be.tokens || []], [Je, it] = [(s = ue.declarations) != null ? s : "", ue.tokens || []], [Qe, et] = [(l = X.declarations) != null ? l : "", X.tokens || []];
|
|
927
927
|
m = this.transformCSS(t, D, "light", "variable", d, o, r), g = J;
|
|
928
928
|
const St = this.transformCSS(t, `${ve}${Je}color-scheme:light`, "light", "variable", d, o, r), Fe = this.transformCSS(t, `${Qe}color-scheme:dark`, "dark", "variable", d, o, r);
|
|
929
929
|
w = `${St}${Fe}`, k = [.../* @__PURE__ */ new Set([...ye, ...it, ...et])];
|
|
@@ -941,7 +941,7 @@ var We = {
|
|
|
941
941
|
},
|
|
942
942
|
getPreset({ name: t = "", preset: e = {}, options: n, params: o, set: r, defaults: i, selector: a }) {
|
|
943
943
|
var s, l, u;
|
|
944
|
-
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Xt(m, ["colorScheme"]), k = g || {}, { dark: A } = k,
|
|
944
|
+
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Xt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, P = Xt(k, ["dark"]), b = Q(w) ? this._toVariables({ [d]: w }, n) : {}, S = Q(P) ? this._toVariables({ [d]: P }, n) : {}, N = Q(A) ? this._toVariables({ [d]: A }, n) : {}, [H, Y] = [(s = b.declarations) != null ? s : "", b.tokens || []], [ge, le] = [(l = S.declarations) != null ? l : "", S.tokens || []], [Be, ue] = [(u = N.declarations) != null ? u : "", N.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...le, ...ue])], D = this.transformCSS(d, `${H}${ge}`, "light", "variable", n, r, i, a), J = this.transformCSS(d, Be, "dark", "variable", n, r, i, a);
|
|
945
945
|
return {
|
|
946
946
|
css: `${D}${J}`,
|
|
947
947
|
tokens: X
|
|
@@ -1001,11 +1001,11 @@ var We = {
|
|
|
1001
1001
|
let g = a;
|
|
1002
1002
|
if (d.name = this.path, d.binding || (d.binding = {}), dt(a, m)) {
|
|
1003
1003
|
const k = a.trim().replaceAll(m, (b) => {
|
|
1004
|
-
var S,
|
|
1004
|
+
var S, N;
|
|
1005
1005
|
const H = b.replace(/{|}/g, "");
|
|
1006
|
-
return (
|
|
1007
|
-
}), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,
|
|
1008
|
-
g = dt(k.replace(
|
|
1006
|
+
return (N = (S = r[H]) == null ? void 0 : S.computed(u, d)) == null ? void 0 : N.value;
|
|
1007
|
+
}), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, P = /var\([^)]+\)/g;
|
|
1008
|
+
g = dt(k.replace(P, "0"), A) ? `calc(${k})` : k;
|
|
1009
1009
|
}
|
|
1010
1010
|
return It(d.binding) && delete d.binding, {
|
|
1011
1011
|
colorScheme: u,
|
|
@@ -1042,7 +1042,7 @@ var We = {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return "";
|
|
1044
1044
|
}
|
|
1045
|
-
},
|
|
1045
|
+
}, re = {
|
|
1046
1046
|
defaults: {
|
|
1047
1047
|
variable: {
|
|
1048
1048
|
prefix: "p",
|
|
@@ -1184,7 +1184,7 @@ function mn(t) {
|
|
|
1184
1184
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1185
1185
|
}, mn(t);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Rr(t, e) {
|
|
1188
1188
|
var n = Object.keys(t);
|
|
1189
1189
|
if (Object.getOwnPropertySymbols) {
|
|
1190
1190
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -1194,12 +1194,12 @@ function Mr(t, e) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
return n;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Dr(t) {
|
|
1198
1198
|
for (var e = 1; e < arguments.length; e++) {
|
|
1199
1199
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1200
|
-
e % 2 ?
|
|
1200
|
+
e % 2 ? Rr(Object(n), !0).forEach(function(o) {
|
|
1201
1201
|
Ha(t, o, n[o]);
|
|
1202
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1202
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Rr(Object(n)).forEach(function(o) {
|
|
1203
1203
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
@@ -1224,15 +1224,15 @@ function Fa(t, e) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
function Va(t) {
|
|
1226
1226
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1227
|
-
jo() ?
|
|
1227
|
+
jo() ? xt(t) : e ? t() : Ti(t);
|
|
1228
1228
|
}
|
|
1229
1229
|
var Ka = 0;
|
|
1230
1230
|
function za(t) {
|
|
1231
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ne(!1), o = ne(t), r = ne(null), i = Ta() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, u = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Ka) : g, k = e.id, A = k === void 0 ? void 0 : k,
|
|
1231
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ne(!1), o = ne(t), r = ne(null), i = Ta() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, u = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Ka) : g, k = e.id, A = k === void 0 ? void 0 : k, P = e.media, b = P === void 0 ? void 0 : P, S = e.nonce, N = S === void 0 ? void 0 : S, H = e.first, Y = H === void 0 ? !1 : H, ge = e.onMounted, le = ge === void 0 ? void 0 : ge, Be = e.onUpdated, ue = Be === void 0 ? void 0 : Be, X = e.onLoad, D = X === void 0 ? void 0 : X, J = e.props, ve = J === void 0 ? {} : J, ye = function() {
|
|
1232
1232
|
}, Je = function(et) {
|
|
1233
1233
|
var St = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1234
1234
|
if (s) {
|
|
1235
|
-
var Fe =
|
|
1235
|
+
var Fe = Dr(Dr({}, ve), St), c = Fe.name || w, p = Fe.id || A, y = Fe.nonce || N;
|
|
1236
1236
|
r.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(p) || s.createElement("style"), r.value.isConnected || (o.value = et || t, Gn(r.value, {
|
|
1237
1237
|
type: "text/css",
|
|
1238
1238
|
id: p,
|
|
@@ -1269,7 +1269,7 @@ function pn(t) {
|
|
|
1269
1269
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1270
1270
|
}, pn(t);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Nr(t, e) {
|
|
1273
1273
|
return Ya(t) || qa(t, e) || Ga(t, e) || Wa();
|
|
1274
1274
|
}
|
|
1275
1275
|
function Wa() {
|
|
@@ -1309,7 +1309,7 @@ function qa(t, e) {
|
|
|
1309
1309
|
function Ya(t) {
|
|
1310
1310
|
if (Array.isArray(t)) return t;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Ur(t, e) {
|
|
1313
1313
|
var n = Object.keys(t);
|
|
1314
1314
|
if (Object.getOwnPropertySymbols) {
|
|
1315
1315
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -1322,9 +1322,9 @@ function Nr(t, e) {
|
|
|
1322
1322
|
function ho(t) {
|
|
1323
1323
|
for (var e = 1; e < arguments.length; e++) {
|
|
1324
1324
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1325
|
-
e % 2 ?
|
|
1325
|
+
e % 2 ? Ur(Object(n), !0).forEach(function(o) {
|
|
1326
1326
|
Xa(t, o, n[o]);
|
|
1327
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1327
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ur(Object(n)).forEach(function(o) {
|
|
1328
1328
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
@@ -1493,7 +1493,7 @@ var Qa = function(e) {
|
|
|
1493
1493
|
padding-right: `.concat(n("scrollbar.width"), `;
|
|
1494
1494
|
}
|
|
1495
1495
|
`);
|
|
1496
|
-
}, tl = {}, nl = {},
|
|
1496
|
+
}, tl = {}, nl = {}, Ee = {
|
|
1497
1497
|
name: "base",
|
|
1498
1498
|
css: el,
|
|
1499
1499
|
theme: Qa,
|
|
@@ -1516,23 +1516,23 @@ var Qa = function(e) {
|
|
|
1516
1516
|
loadTheme: function() {
|
|
1517
1517
|
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1518
1518
|
return this.load(this.theme, n, function(o) {
|
|
1519
|
-
return
|
|
1519
|
+
return re.transformCSS(n.name || e.name, o);
|
|
1520
1520
|
});
|
|
1521
1521
|
},
|
|
1522
1522
|
getCommonTheme: function(e) {
|
|
1523
|
-
return
|
|
1523
|
+
return re.getCommon(this.name, e);
|
|
1524
1524
|
},
|
|
1525
1525
|
getComponentTheme: function(e) {
|
|
1526
|
-
return
|
|
1526
|
+
return re.getComponent(this.name, e);
|
|
1527
1527
|
},
|
|
1528
1528
|
getDirectiveTheme: function(e) {
|
|
1529
|
-
return
|
|
1529
|
+
return re.getDirective(this.name, e);
|
|
1530
1530
|
},
|
|
1531
1531
|
getPresetTheme: function(e, n, o) {
|
|
1532
|
-
return
|
|
1532
|
+
return re.getCustomPreset(this.name, e, n, o);
|
|
1533
1533
|
},
|
|
1534
1534
|
getLayerOrderThemeCSS: function() {
|
|
1535
|
-
return
|
|
1535
|
+
return re.getLayerOrderCSS(this.name);
|
|
1536
1536
|
},
|
|
1537
1537
|
getStyleSheet: function() {
|
|
1538
1538
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -1540,7 +1540,7 @@ var Qa = function(e) {
|
|
|
1540
1540
|
var o = Ue(this.css, {
|
|
1541
1541
|
dt: po
|
|
1542
1542
|
}), r = ln("".concat(o).concat(e)), i = Object.entries(n).reduce(function(a, s) {
|
|
1543
|
-
var l =
|
|
1543
|
+
var l = Nr(s, 2), u = l[0], d = l[1];
|
|
1544
1544
|
return a.push("".concat(u, '="').concat(d, '"')) && a;
|
|
1545
1545
|
}, []).join(" ");
|
|
1546
1546
|
return '<style type="text/css" data-primevue-style-id="'.concat(this.name, '" ').concat(i, ">").concat(r, "</style>");
|
|
@@ -1549,15 +1549,15 @@ var Qa = function(e) {
|
|
|
1549
1549
|
},
|
|
1550
1550
|
getCommonThemeStyleSheet: function(e) {
|
|
1551
1551
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1552
|
-
return
|
|
1552
|
+
return re.getCommonStyleSheet(this.name, e, n);
|
|
1553
1553
|
},
|
|
1554
1554
|
getThemeStyleSheet: function(e) {
|
|
1555
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = [
|
|
1555
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = [re.getStyleSheet(this.name, e, n)];
|
|
1556
1556
|
if (this.theme) {
|
|
1557
1557
|
var r = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = Ue(this.theme, {
|
|
1558
1558
|
dt: po
|
|
1559
|
-
}), a = ln(
|
|
1560
|
-
var d =
|
|
1559
|
+
}), a = ln(re.transformCSS(r, i)), s = Object.entries(n).reduce(function(l, u) {
|
|
1560
|
+
var d = Nr(u, 2), m = d[0], g = d[1];
|
|
1561
1561
|
return l.push("".concat(m, '="').concat(g, '"')) && l;
|
|
1562
1562
|
}, []).join(" ");
|
|
1563
1563
|
o.push('<style type="text/css" data-primevue-style-id="'.concat(r, '" ').concat(s, ">").concat(a, "</style>"));
|
|
@@ -1570,7 +1570,7 @@ var Qa = function(e) {
|
|
|
1570
1570
|
theme: void 0
|
|
1571
1571
|
}, e);
|
|
1572
1572
|
}
|
|
1573
|
-
},
|
|
1573
|
+
}, Hr = Ee.extend({
|
|
1574
1574
|
name: "common"
|
|
1575
1575
|
});
|
|
1576
1576
|
function hn(t) {
|
|
@@ -1582,26 +1582,26 @@ function hn(t) {
|
|
|
1582
1582
|
}, hn(t);
|
|
1583
1583
|
}
|
|
1584
1584
|
function ol(t) {
|
|
1585
|
-
return
|
|
1585
|
+
return Ui(t) || rl(t) || Bi(t) || Ni();
|
|
1586
1586
|
}
|
|
1587
1587
|
function rl(t) {
|
|
1588
1588
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return
|
|
1590
|
+
function Nn(t, e) {
|
|
1591
|
+
return Ui(t) || il(t, e) || Bi(t, e) || Ni();
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Ni() {
|
|
1594
1594
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1595
1595
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1596
1596
|
}
|
|
1597
1597
|
function Bi(t, e) {
|
|
1598
1598
|
if (t) {
|
|
1599
|
-
if (typeof t == "string") return
|
|
1599
|
+
if (typeof t == "string") return jr(t, e);
|
|
1600
1600
|
var n = {}.toString.call(t).slice(8, -1);
|
|
1601
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
1601
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? jr(t, e) : void 0;
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function jr(t, e) {
|
|
1605
1605
|
(e == null || e > t.length) && (e = t.length);
|
|
1606
1606
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
1607
1607
|
return o;
|
|
@@ -1627,10 +1627,10 @@ function il(t, e) {
|
|
|
1627
1627
|
return s;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function Ui(t) {
|
|
1631
1631
|
if (Array.isArray(t)) return t;
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function Fr(t, e) {
|
|
1634
1634
|
var n = Object.keys(t);
|
|
1635
1635
|
if (Object.getOwnPropertySymbols) {
|
|
1636
1636
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -1643,9 +1643,9 @@ function jr(t, e) {
|
|
|
1643
1643
|
function G(t) {
|
|
1644
1644
|
for (var e = 1; e < arguments.length; e++) {
|
|
1645
1645
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1646
|
-
e % 2 ?
|
|
1646
|
+
e % 2 ? Fr(Object(n), !0).forEach(function(o) {
|
|
1647
1647
|
Vn(t, o, n[o]);
|
|
1648
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1648
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Fr(Object(n)).forEach(function(o) {
|
|
1649
1649
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
1650
1650
|
});
|
|
1651
1651
|
}
|
|
@@ -1715,8 +1715,8 @@ var Qn = {
|
|
|
1715
1715
|
beforeCreate: function() {
|
|
1716
1716
|
var e, n, o, r, i, a, s, l, u, d, m, g = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, w = g ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, k = g ? (o = this.pt) === null || o === void 0 || (o = o.value) === null || o === void 0 ? void 0 : o[this.$.type.name] : this.pt;
|
|
1717
1717
|
(r = k || w) === null || r === void 0 || (r = r.hooks) === null || r === void 0 || (i = r.onBeforeCreate) === null || i === void 0 || i.call(r);
|
|
1718
|
-
var A = (a = this.$primevueConfig) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a._usept,
|
|
1719
|
-
(d = b ||
|
|
1718
|
+
var A = (a = this.$primevueConfig) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a._usept, P = A ? (s = this.$primevue) === null || s === void 0 || (s = s.config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s.originalValue : void 0, b = A ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
|
|
1719
|
+
(d = b || P) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (m = d.onBeforeCreate) === null || m === void 0 || m.call(d);
|
|
1720
1720
|
},
|
|
1721
1721
|
created: function() {
|
|
1722
1722
|
this._hook("onCreated");
|
|
@@ -1755,47 +1755,47 @@ var Qn = {
|
|
|
1755
1755
|
},
|
|
1756
1756
|
_loadStyles: function() {
|
|
1757
1757
|
var e = this, n = function() {
|
|
1758
|
-
gt.isStyleNameLoaded("base") || (
|
|
1758
|
+
gt.isStyleNameLoaded("base") || (Ee.loadCSS(e.$styleOptions), e._loadGlobalStyles(), gt.setLoadedStyleName("base")), e._loadThemeStyles();
|
|
1759
1759
|
};
|
|
1760
1760
|
n(), this._themeChangeListener(n);
|
|
1761
1761
|
},
|
|
1762
1762
|
_loadCoreStyles: function() {
|
|
1763
1763
|
var e, n;
|
|
1764
|
-
!gt.isStyleNameLoaded((e = this.$style) === null || e === void 0 ? void 0 : e.name) && (n = this.$style) !== null && n !== void 0 && n.name && (
|
|
1764
|
+
!gt.isStyleNameLoaded((e = this.$style) === null || e === void 0 ? void 0 : e.name) && (n = this.$style) !== null && n !== void 0 && n.name && (Hr.loadCSS(this.$styleOptions), this.$options.style && this.$style.loadCSS(this.$styleOptions), gt.setLoadedStyleName(this.$style.name));
|
|
1765
1765
|
},
|
|
1766
1766
|
_loadGlobalStyles: function() {
|
|
1767
1767
|
var e = this._useGlobalPT(this._getOptionValue, "global.css", this.$params);
|
|
1768
|
-
Q(e) &&
|
|
1768
|
+
Q(e) && Ee.load(e, G({
|
|
1769
1769
|
name: "global"
|
|
1770
1770
|
}, this.$styleOptions));
|
|
1771
1771
|
},
|
|
1772
1772
|
_loadThemeStyles: function() {
|
|
1773
1773
|
var e, n;
|
|
1774
1774
|
if (!this.isUnstyled) {
|
|
1775
|
-
if (!
|
|
1775
|
+
if (!re.isStyleNameLoaded("common")) {
|
|
1776
1776
|
var o, r, i = ((o = this.$style) === null || o === void 0 || (r = o.getCommonTheme) === null || r === void 0 ? void 0 : r.call(o)) || {}, a = i.primitive, s = i.semantic;
|
|
1777
|
-
|
|
1777
|
+
Ee.load(a == null ? void 0 : a.css, G({
|
|
1778
1778
|
name: "primitive-variables"
|
|
1779
|
-
}, this.$styleOptions)),
|
|
1779
|
+
}, this.$styleOptions)), Ee.load(s == null ? void 0 : s.css, G({
|
|
1780
1780
|
name: "semantic-variables"
|
|
1781
|
-
}, this.$styleOptions)),
|
|
1781
|
+
}, this.$styleOptions)), Ee.loadTheme(G({
|
|
1782
1782
|
name: "global-style"
|
|
1783
|
-
}, this.$styleOptions)),
|
|
1783
|
+
}, this.$styleOptions)), re.setLoadedStyleName("common");
|
|
1784
1784
|
}
|
|
1785
|
-
if (!
|
|
1785
|
+
if (!re.isStyleNameLoaded((e = this.$style) === null || e === void 0 ? void 0 : e.name) && (n = this.$style) !== null && n !== void 0 && n.name) {
|
|
1786
1786
|
var l, u, d, m, g = ((l = this.$style) === null || l === void 0 || (u = l.getComponentTheme) === null || u === void 0 ? void 0 : u.call(l)) || {}, w = g.css;
|
|
1787
1787
|
(d = this.$style) === null || d === void 0 || d.load(w, G({
|
|
1788
1788
|
name: "".concat(this.$style.name, "-variables")
|
|
1789
1789
|
}, this.$styleOptions)), (m = this.$style) === null || m === void 0 || m.loadTheme(G({
|
|
1790
1790
|
name: "".concat(this.$style.name, "-style")
|
|
1791
|
-
}, this.$styleOptions)),
|
|
1791
|
+
}, this.$styleOptions)), re.setLoadedStyleName(this.$style.name);
|
|
1792
1792
|
}
|
|
1793
|
-
if (!
|
|
1794
|
-
var k, A,
|
|
1795
|
-
|
|
1793
|
+
if (!re.isStyleNameLoaded("layer-order")) {
|
|
1794
|
+
var k, A, P = (k = this.$style) === null || k === void 0 || (A = k.getLayerOrderThemeCSS) === null || A === void 0 ? void 0 : A.call(k);
|
|
1795
|
+
Ee.load(P, G({
|
|
1796
1796
|
name: "layer-order",
|
|
1797
1797
|
first: !0
|
|
1798
|
-
}, this.$styleOptions)),
|
|
1798
|
+
}, this.$styleOptions)), re.setLoadedStyleName("layer-order");
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
1801
|
},
|
|
@@ -1899,7 +1899,7 @@ var Qn = {
|
|
|
1899
1899
|
sx: function() {
|
|
1900
1900
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1901
1901
|
if (n) {
|
|
1902
|
-
var r = this._getOptionValue(this.$style.inlineStyles, e, G(G({}, this.$params), o)), i = this._getOptionValue(
|
|
1902
|
+
var r = this._getOptionValue(this.$style.inlineStyles, e, G(G({}, this.$params), o)), i = this._getOptionValue(Hr.inlineStyles, e, G(G({}, this.$params), o));
|
|
1903
1903
|
return [i, r];
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
@@ -1969,10 +1969,10 @@ var Qn = {
|
|
|
1969
1969
|
},
|
|
1970
1970
|
$_attrsPT: function() {
|
|
1971
1971
|
return Object.entries(this.$attrs || {}).filter(function(e) {
|
|
1972
|
-
var n =
|
|
1972
|
+
var n = Nn(e, 1), o = n[0];
|
|
1973
1973
|
return o == null ? void 0 : o.startsWith("pt:");
|
|
1974
1974
|
}).reduce(function(e, n) {
|
|
1975
|
-
var o =
|
|
1975
|
+
var o = Nn(n, 2), r = o[0], i = o[1], a = r.split(":"), s = ol(a), l = s.slice(1);
|
|
1976
1976
|
return l == null || l.reduce(function(u, d, m, g) {
|
|
1977
1977
|
return !u[d] && (u[d] = m === g.length - 1 ? i : {}), u[d];
|
|
1978
1978
|
}, e), e;
|
|
@@ -1980,10 +1980,10 @@ var Qn = {
|
|
|
1980
1980
|
},
|
|
1981
1981
|
$_attrsWithoutPT: function() {
|
|
1982
1982
|
return Object.entries(this.$attrs || {}).filter(function(e) {
|
|
1983
|
-
var n =
|
|
1983
|
+
var n = Nn(e, 1), o = n[0];
|
|
1984
1984
|
return !(o != null && o.startsWith("pt:"));
|
|
1985
1985
|
}).reduce(function(e, n) {
|
|
1986
|
-
var o =
|
|
1986
|
+
var o = Nn(n, 2), r = o[0], i = o[1];
|
|
1987
1987
|
return e[r] = i, e;
|
|
1988
1988
|
}, {});
|
|
1989
1989
|
},
|
|
@@ -2023,7 +2023,7 @@ var Qn = {
|
|
|
2023
2023
|
transform: rotate(359deg);
|
|
2024
2024
|
}
|
|
2025
2025
|
}
|
|
2026
|
-
`, cl =
|
|
2026
|
+
`, cl = Ee.extend({
|
|
2027
2027
|
name: "baseicon",
|
|
2028
2028
|
css: ll
|
|
2029
2029
|
});
|
|
@@ -2035,7 +2035,7 @@ function gn(t) {
|
|
|
2035
2035
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2036
2036
|
}, gn(t);
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function Vr(t, e) {
|
|
2039
2039
|
var n = Object.keys(t);
|
|
2040
2040
|
if (Object.getOwnPropertySymbols) {
|
|
2041
2041
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -2045,12 +2045,12 @@ function Fr(t, e) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
return n;
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Kr(t) {
|
|
2049
2049
|
for (var e = 1; e < arguments.length; e++) {
|
|
2050
2050
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
2051
|
-
e % 2 ?
|
|
2051
|
+
e % 2 ? Vr(Object(n), !0).forEach(function(o) {
|
|
2052
2052
|
ul(t, o, n[o]);
|
|
2053
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
2053
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Vr(Object(n)).forEach(function(o) {
|
|
2054
2054
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
@@ -2073,7 +2073,7 @@ function fl(t, e) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
return (e === "string" ? String : Number)(t);
|
|
2075
2075
|
}
|
|
2076
|
-
var
|
|
2076
|
+
var Hi = {
|
|
2077
2077
|
name: "BaseIcon",
|
|
2078
2078
|
extends: Qn,
|
|
2079
2079
|
props: {
|
|
@@ -2096,7 +2096,7 @@ var Ui = {
|
|
|
2096
2096
|
methods: {
|
|
2097
2097
|
pti: function() {
|
|
2098
2098
|
var e = It(this.label);
|
|
2099
|
-
return
|
|
2099
|
+
return Kr(Kr({}, !this.isUnstyled && {
|
|
2100
2100
|
class: ["p-icon", {
|
|
2101
2101
|
"p-icon-spin": this.spin
|
|
2102
2102
|
}]
|
|
@@ -2109,7 +2109,7 @@ var Ui = {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
}, Wo = {
|
|
2111
2111
|
name: "ChevronDownIcon",
|
|
2112
|
-
extends:
|
|
2112
|
+
extends: Hi
|
|
2113
2113
|
}, ml = /* @__PURE__ */ M("path", {
|
|
2114
2114
|
d: "M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",
|
|
2115
2115
|
fill: "currentColor"
|
|
@@ -2126,7 +2126,7 @@ function hl(t, e, n, o, r, i) {
|
|
|
2126
2126
|
Wo.render = hl;
|
|
2127
2127
|
var Go = {
|
|
2128
2128
|
name: "ChevronRightIcon",
|
|
2129
|
-
extends:
|
|
2129
|
+
extends: Hi
|
|
2130
2130
|
}, gl = /* @__PURE__ */ M("path", {
|
|
2131
2131
|
d: "M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",
|
|
2132
2132
|
fill: "currentColor"
|
|
@@ -2318,11 +2318,11 @@ var bl = function(e) {
|
|
|
2318
2318
|
submenuIcon: "p-panelmenu-submenu-icon",
|
|
2319
2319
|
submenu: "p-panelmenu-submenu",
|
|
2320
2320
|
separator: "p-menuitem-separator"
|
|
2321
|
-
}, _l =
|
|
2321
|
+
}, _l = Ee.extend({
|
|
2322
2322
|
name: "panelmenu",
|
|
2323
2323
|
theme: bl,
|
|
2324
2324
|
classes: wl
|
|
2325
|
-
}),
|
|
2325
|
+
}), zr = xi();
|
|
2326
2326
|
function vn(t) {
|
|
2327
2327
|
"@babel/helpers - typeof";
|
|
2328
2328
|
return vn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -2331,7 +2331,7 @@ function vn(t) {
|
|
|
2331
2331
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2332
2332
|
}, vn(t);
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Wr(t, e) {
|
|
2335
2335
|
return Il(t) || Cl(t, e) || kl(t, e) || Sl();
|
|
2336
2336
|
}
|
|
2337
2337
|
function Sl() {
|
|
@@ -2340,12 +2340,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2340
2340
|
}
|
|
2341
2341
|
function kl(t, e) {
|
|
2342
2342
|
if (t) {
|
|
2343
|
-
if (typeof t == "string") return
|
|
2343
|
+
if (typeof t == "string") return Gr(t, e);
|
|
2344
2344
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2345
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2345
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Gr(t, e) : void 0;
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function Gr(t, e) {
|
|
2349
2349
|
(e == null || e > t.length) && (e = t.length);
|
|
2350
2350
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
2351
2351
|
return o;
|
|
@@ -2371,7 +2371,7 @@ function Cl(t, e) {
|
|
|
2371
2371
|
function Il(t) {
|
|
2372
2372
|
if (Array.isArray(t)) return t;
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function qr(t, e) {
|
|
2375
2375
|
var n = Object.keys(t);
|
|
2376
2376
|
if (Object.getOwnPropertySymbols) {
|
|
2377
2377
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -2384,15 +2384,15 @@ function Gr(t, e) {
|
|
|
2384
2384
|
function Z(t) {
|
|
2385
2385
|
for (var e = 1; e < arguments.length; e++) {
|
|
2386
2386
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
2387
|
-
e % 2 ?
|
|
2388
|
-
|
|
2389
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
2387
|
+
e % 2 ? qr(Object(n), !0).forEach(function(o) {
|
|
2388
|
+
Po(t, o, n[o]);
|
|
2389
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : qr(Object(n)).forEach(function(o) {
|
|
2390
2390
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
2391
2391
|
});
|
|
2392
2392
|
}
|
|
2393
2393
|
return t;
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Po(t, e, n) {
|
|
2396
2396
|
return (e = Tl(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
2397
2397
|
}
|
|
2398
2398
|
function Tl(t) {
|
|
@@ -2426,12 +2426,12 @@ var K = {
|
|
|
2426
2426
|
} : S;
|
|
2427
2427
|
}, u = ((e = o.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = o.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = u.mergeSections, m = d === void 0 ? !0 : d, g = u.mergeProps, w = g === void 0 ? !1 : g, k = s ? K._useDefaultPT(o, o.defaultPT(), l, i, a) : void 0, A = K._usePT(o, K._getPT(r, o.$name), l, i, Z(Z({}, a), {}, {
|
|
2428
2428
|
global: k || {}
|
|
2429
|
-
})),
|
|
2430
|
-
return m || !m && A ? w ? K._mergeProps(o, w, k, A,
|
|
2429
|
+
})), P = K._getPTDatasets(o, i);
|
|
2430
|
+
return m || !m && A ? w ? K._mergeProps(o, w, k, A, P) : Z(Z(Z({}, k), A), P) : Z(Z({}, A), P);
|
|
2431
2431
|
},
|
|
2432
2432
|
_getPTDatasets: function() {
|
|
2433
2433
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = "data-pc-";
|
|
2434
|
-
return Z(Z({}, n === "root" &&
|
|
2434
|
+
return Z(Z({}, n === "root" && Po({}, "".concat(o, "name"), Ye(e.$name))), {}, Po({}, "".concat(o, "section"), Ye(n)));
|
|
2435
2435
|
},
|
|
2436
2436
|
_getPT: function(e) {
|
|
2437
2437
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 ? arguments[2] : void 0, r = function(a) {
|
|
@@ -2445,8 +2445,8 @@ var K = {
|
|
|
2445
2445
|
} : r(e);
|
|
2446
2446
|
},
|
|
2447
2447
|
_usePT: function() {
|
|
2448
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, o = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0, a = function(
|
|
2449
|
-
return o(
|
|
2448
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, o = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0, a = function(P) {
|
|
2449
|
+
return o(P, r, i);
|
|
2450
2450
|
};
|
|
2451
2451
|
if (n != null && n.hasOwnProperty("_usept")) {
|
|
2452
2452
|
var s, l = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, u = l.mergeSections, d = u === void 0 ? !0 : u, m = l.mergeProps, g = m === void 0 ? !1 : m, w = a(n.originalValue), k = a(n.value);
|
|
@@ -2470,36 +2470,36 @@ var K = {
|
|
|
2470
2470
|
var e, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
2471
2471
|
if (!gt.isStyleNameLoaded((e = o.$style) === null || e === void 0 ? void 0 : e.name) && (n = o.$style) !== null && n !== void 0 && n.name) {
|
|
2472
2472
|
var i;
|
|
2473
|
-
|
|
2473
|
+
Ee.loadCSS(r), o.isUnstyled() && ((i = o.$style) === null || i === void 0 || i.loadCSS(r)), gt.setLoadedStyleName(o.$style.name);
|
|
2474
2474
|
}
|
|
2475
2475
|
},
|
|
2476
2476
|
_loadThemeStyles: function() {
|
|
2477
2477
|
var e, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
2478
2478
|
if (!(o != null && o.isUnstyled())) {
|
|
2479
|
-
if (!
|
|
2479
|
+
if (!re.isStyleNameLoaded("common")) {
|
|
2480
2480
|
var i, a, s = ((i = o.$style) === null || i === void 0 || (a = i.getCommonTheme) === null || a === void 0 ? void 0 : a.call(i)) || {}, l = s.primitive, u = s.semantic;
|
|
2481
|
-
|
|
2481
|
+
Ee.load(l == null ? void 0 : l.css, Z({
|
|
2482
2482
|
name: "primitive-variables"
|
|
2483
|
-
}, r)),
|
|
2483
|
+
}, r)), Ee.load(u == null ? void 0 : u.css, Z({
|
|
2484
2484
|
name: "semantic-variables"
|
|
2485
|
-
}, r)),
|
|
2485
|
+
}, r)), Ee.loadTheme(Z({
|
|
2486
2486
|
name: "global-style"
|
|
2487
|
-
}, r)),
|
|
2487
|
+
}, r)), re.setLoadedStyleName("common");
|
|
2488
2488
|
}
|
|
2489
|
-
if (!
|
|
2489
|
+
if (!re.isStyleNameLoaded((e = o.$style) === null || e === void 0 ? void 0 : e.name) && (n = o.$style) !== null && n !== void 0 && n.name) {
|
|
2490
2490
|
var d, m, g, w, k = ((d = o.$style) === null || d === void 0 || (m = d.getDirectiveTheme) === null || m === void 0 ? void 0 : m.call(d)) || {}, A = k.css;
|
|
2491
2491
|
(g = o.$style) === null || g === void 0 || g.load(A, Z({
|
|
2492
2492
|
name: "".concat(o.$style.name, "-variables")
|
|
2493
2493
|
}, r)), (w = o.$style) === null || w === void 0 || w.loadTheme(Z({
|
|
2494
2494
|
name: "".concat(o.$style.name, "-style")
|
|
2495
|
-
}, r)),
|
|
2495
|
+
}, r)), re.setLoadedStyleName(o.$style.name);
|
|
2496
2496
|
}
|
|
2497
|
-
if (!
|
|
2498
|
-
var
|
|
2499
|
-
|
|
2497
|
+
if (!re.isStyleNameLoaded("layer-order")) {
|
|
2498
|
+
var P, b, S = (P = o.$style) === null || P === void 0 || (b = P.getLayerOrderThemeCSS) === null || b === void 0 ? void 0 : b.call(P);
|
|
2499
|
+
Ee.load(S, Z({
|
|
2500
2500
|
name: "layer-order",
|
|
2501
2501
|
first: !0
|
|
2502
|
-
}, r)),
|
|
2502
|
+
}, r)), re.setLoadedStyleName("layer-order");
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
2505
|
},
|
|
@@ -2518,7 +2518,7 @@ var K = {
|
|
|
2518
2518
|
gt.clearLoadedStyleNames(), ct.on("theme:change", e);
|
|
2519
2519
|
},
|
|
2520
2520
|
_hook: function(e, n, o, r, i, a) {
|
|
2521
|
-
var s, l, u = "on".concat(
|
|
2521
|
+
var s, l, u = "on".concat(Pa(n)), d = K._getConfig(r, i), m = o == null ? void 0 : o.$instance, g = K._usePT(m, K._getPT(r == null || (s = r.value) === null || s === void 0 ? void 0 : s.pt, e), K._getOptionValue, "hooks.".concat(u)), w = K._useDefaultPT(m, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], K._getOptionValue, "hooks.".concat(u)), k = {
|
|
2522
2522
|
el: o,
|
|
2523
2523
|
binding: r,
|
|
2524
2524
|
vnode: i,
|
|
@@ -2535,7 +2535,7 @@ var K = {
|
|
|
2535
2535
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = function(a, s, l, u, d) {
|
|
2536
2536
|
var m, g, w;
|
|
2537
2537
|
s._$instances = s._$instances || {};
|
|
2538
|
-
var k = K._getConfig(l, u), A = s._$instances[e] || {},
|
|
2538
|
+
var k = K._getConfig(l, u), A = s._$instances[e] || {}, P = It(A) ? Z(Z({}, n), n == null ? void 0 : n.methods) : {};
|
|
2539
2539
|
s._$instances[e] = Z(Z({}, A), {}, {
|
|
2540
2540
|
/* new instance variables to pass in directive methods */
|
|
2541
2541
|
$name: e,
|
|
@@ -2559,13 +2559,13 @@ var K = {
|
|
|
2559
2559
|
/* computed instance variables */
|
|
2560
2560
|
defaultPT: function() {
|
|
2561
2561
|
return K._getPT(k == null ? void 0 : k.pt, void 0, function(S) {
|
|
2562
|
-
var
|
|
2563
|
-
return S == null || (
|
|
2562
|
+
var N;
|
|
2563
|
+
return S == null || (N = S.directives) === null || N === void 0 ? void 0 : N[e];
|
|
2564
2564
|
});
|
|
2565
2565
|
},
|
|
2566
2566
|
isUnstyled: function() {
|
|
2567
|
-
var S,
|
|
2568
|
-
return ((S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.unstyled) !== void 0 ? (
|
|
2567
|
+
var S, N;
|
|
2568
|
+
return ((S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.unstyled) !== void 0 ? (N = s.$instance) === null || N === void 0 || (N = N.$binding) === null || N === void 0 || (N = N.value) === null || N === void 0 ? void 0 : N.unstyled : k == null ? void 0 : k.unstyled;
|
|
2569
2569
|
},
|
|
2570
2570
|
theme: function() {
|
|
2571
2571
|
var S;
|
|
@@ -2577,33 +2577,33 @@ var K = {
|
|
|
2577
2577
|
},
|
|
2578
2578
|
/* instance's methods */
|
|
2579
2579
|
ptm: function() {
|
|
2580
|
-
var S,
|
|
2581
|
-
return K._getPTValue(s.$instance, (S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.pt,
|
|
2580
|
+
var S, N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2581
|
+
return K._getPTValue(s.$instance, (S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.pt, N, Z({}, H));
|
|
2582
2582
|
},
|
|
2583
2583
|
ptmo: function() {
|
|
2584
|
-
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
2585
|
-
return K._getPTValue(s.$instance, S,
|
|
2584
|
+
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", H = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2585
|
+
return K._getPTValue(s.$instance, S, N, H, !1);
|
|
2586
2586
|
},
|
|
2587
2587
|
cx: function() {
|
|
2588
|
-
var S,
|
|
2589
|
-
return (S = s.$instance) !== null && S !== void 0 && S.isUnstyled() ? void 0 : K._getOptionValue((
|
|
2588
|
+
var S, N, H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2589
|
+
return (S = s.$instance) !== null && S !== void 0 && S.isUnstyled() ? void 0 : K._getOptionValue((N = s.$instance) === null || N === void 0 || (N = N.$style) === null || N === void 0 ? void 0 : N.classes, H, Z({}, Y));
|
|
2590
2590
|
},
|
|
2591
2591
|
sx: function() {
|
|
2592
|
-
var S,
|
|
2593
|
-
return H ? K._getOptionValue((S = s.$instance) === null || S === void 0 || (S = S.$style) === null || S === void 0 ? void 0 : S.inlineStyles,
|
|
2592
|
+
var S, N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2593
|
+
return H ? K._getOptionValue((S = s.$instance) === null || S === void 0 || (S = S.$style) === null || S === void 0 ? void 0 : S.inlineStyles, N, Z({}, Y)) : void 0;
|
|
2594
2594
|
}
|
|
2595
|
-
},
|
|
2595
|
+
}, P), s.$instance = s._$instances[e], (m = (g = s.$instance)[a]) === null || m === void 0 || m.call(g, s, l, u, d), s["$".concat(e)] = s.$instance, K._hook(e, a, s, l, u, d), s.$pd || (s.$pd = {}), s.$pd[e] = Z(Z({}, (w = s.$pd) === null || w === void 0 ? void 0 : w[e]), {}, {
|
|
2596
2596
|
name: e,
|
|
2597
2597
|
instance: s.$instance
|
|
2598
2598
|
});
|
|
2599
2599
|
}, r = function(a) {
|
|
2600
2600
|
var s, l, u, d, m, g = (s = a.$instance) === null || s === void 0 ? void 0 : s.watch;
|
|
2601
|
-
g == null || (l = g.config) === null || l === void 0 || l.call(a.$instance, (u = a.$instance) === null || u === void 0 ? void 0 : u.$primevueConfig),
|
|
2602
|
-
var k, A = w.newValue,
|
|
2603
|
-
return g == null || (k = g.config) === null || k === void 0 ? void 0 : k.call(a.$instance, A,
|
|
2604
|
-
}), g == null || (d = g["config.ripple"]) === null || d === void 0 || d.call(a.$instance, (m = a.$instance) === null || m === void 0 || (m = m.$primevueConfig) === null || m === void 0 ? void 0 : m.ripple),
|
|
2605
|
-
var k, A = w.newValue,
|
|
2606
|
-
return g == null || (k = g["config.ripple"]) === null || k === void 0 ? void 0 : k.call(a.$instance, A,
|
|
2601
|
+
g == null || (l = g.config) === null || l === void 0 || l.call(a.$instance, (u = a.$instance) === null || u === void 0 ? void 0 : u.$primevueConfig), zr.on("config:change", function(w) {
|
|
2602
|
+
var k, A = w.newValue, P = w.oldValue;
|
|
2603
|
+
return g == null || (k = g.config) === null || k === void 0 ? void 0 : k.call(a.$instance, A, P);
|
|
2604
|
+
}), g == null || (d = g["config.ripple"]) === null || d === void 0 || d.call(a.$instance, (m = a.$instance) === null || m === void 0 || (m = m.$primevueConfig) === null || m === void 0 ? void 0 : m.ripple), zr.on("config:ripple:change", function(w) {
|
|
2605
|
+
var k, A = w.newValue, P = w.oldValue;
|
|
2606
|
+
return g == null || (k = g["config.ripple"]) === null || k === void 0 ? void 0 : k.call(a.$instance, A, P);
|
|
2607
2607
|
});
|
|
2608
2608
|
};
|
|
2609
2609
|
return {
|
|
@@ -2632,15 +2632,15 @@ var K = {
|
|
|
2632
2632
|
};
|
|
2633
2633
|
},
|
|
2634
2634
|
extend: function() {
|
|
2635
|
-
var e = K._getMeta.apply(K, arguments), n =
|
|
2635
|
+
var e = K._getMeta.apply(K, arguments), n = Wr(e, 2), o = n[0], r = n[1];
|
|
2636
2636
|
return Z({
|
|
2637
2637
|
extend: function() {
|
|
2638
|
-
var a = K._getMeta.apply(K, arguments), s =
|
|
2638
|
+
var a = K._getMeta.apply(K, arguments), s = Wr(a, 2), l = s[0], u = s[1];
|
|
2639
2639
|
return K.extend(l, Z(Z(Z({}, r), r == null ? void 0 : r.methods), u));
|
|
2640
2640
|
}
|
|
2641
2641
|
}, K._extend(o, r));
|
|
2642
2642
|
}
|
|
2643
|
-
},
|
|
2643
|
+
}, El = function(e) {
|
|
2644
2644
|
var n = e.dt;
|
|
2645
2645
|
return `
|
|
2646
2646
|
.p-ink {
|
|
@@ -2663,14 +2663,14 @@ var K = {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
`);
|
|
2666
|
-
},
|
|
2666
|
+
}, Pl = {
|
|
2667
2667
|
root: "p-ink"
|
|
2668
|
-
},
|
|
2668
|
+
}, xl = Ee.extend({
|
|
2669
2669
|
name: "ripple-directive",
|
|
2670
|
-
theme:
|
|
2671
|
-
classes:
|
|
2672
|
-
}),
|
|
2673
|
-
style:
|
|
2670
|
+
theme: El,
|
|
2671
|
+
classes: Pl
|
|
2672
|
+
}), Ll = K.extend({
|
|
2673
|
+
style: xl
|
|
2674
2674
|
});
|
|
2675
2675
|
function yn(t) {
|
|
2676
2676
|
"@babel/helpers - typeof";
|
|
@@ -2689,30 +2689,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2689
2689
|
}
|
|
2690
2690
|
function Ml(t, e) {
|
|
2691
2691
|
if (t) {
|
|
2692
|
-
if (typeof t == "string") return
|
|
2692
|
+
if (typeof t == "string") return xo(t, e);
|
|
2693
2693
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2694
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2694
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? xo(t, e) : void 0;
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
function Rl(t) {
|
|
2698
2698
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2699
2699
|
}
|
|
2700
2700
|
function Dl(t) {
|
|
2701
|
-
if (Array.isArray(t)) return
|
|
2701
|
+
if (Array.isArray(t)) return xo(t);
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function xo(t, e) {
|
|
2704
2704
|
(e == null || e > t.length) && (e = t.length);
|
|
2705
2705
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
2706
2706
|
return o;
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2709
|
-
return (e =
|
|
2708
|
+
function Yr(t, e, n) {
|
|
2709
|
+
return (e = Nl(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2712
|
-
var e =
|
|
2711
|
+
function Nl(t) {
|
|
2712
|
+
var e = Bl(t, "string");
|
|
2713
2713
|
return yn(e) == "symbol" ? e : e + "";
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function Bl(t, e) {
|
|
2716
2716
|
if (yn(t) != "object" || !t) return t;
|
|
2717
2717
|
var n = t[Symbol.toPrimitive];
|
|
2718
2718
|
if (n !== void 0) {
|
|
@@ -2722,7 +2722,7 @@ function Nl(t, e) {
|
|
|
2722
2722
|
}
|
|
2723
2723
|
return (e === "string" ? String : Number)(t);
|
|
2724
2724
|
}
|
|
2725
|
-
var Ul =
|
|
2725
|
+
var Ul = Ll.extend("ripple", {
|
|
2726
2726
|
watch: {
|
|
2727
2727
|
"config.ripple": function(e) {
|
|
2728
2728
|
e ? (this.createRipple(this.$host), this.bindEvents(this.$host), this.$host.setAttribute("data-pd-ripple", !0), this.$host.style.overflow = "hidden", this.$host.style.position = "relative") : (this.remove(this.$host), this.$host.removeAttribute("data-pd-ripple"));
|
|
@@ -2740,7 +2740,7 @@ var Ul = xl.extend("ripple", {
|
|
|
2740
2740
|
e.removeEventListener("mousedown", this.onMouseDown.bind(this));
|
|
2741
2741
|
},
|
|
2742
2742
|
createRipple: function(e) {
|
|
2743
|
-
var n = _a("span",
|
|
2743
|
+
var n = _a("span", Yr(Yr({
|
|
2744
2744
|
role: "presentation",
|
|
2745
2745
|
"aria-hidden": !0,
|
|
2746
2746
|
"data-p-ink": !0,
|
|
@@ -2757,11 +2757,11 @@ var Ul = xl.extend("ripple", {
|
|
|
2757
2757
|
onMouseDown: function(e) {
|
|
2758
2758
|
var n = this, o = e.currentTarget, r = this.getInk(o);
|
|
2759
2759
|
if (!(!r || getComputedStyle(r, null).display === "none")) {
|
|
2760
|
-
if (!this.isUnstyled() && fo(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "false"), !
|
|
2760
|
+
if (!this.isUnstyled() && fo(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "false"), !Er(r) && !Pr(r)) {
|
|
2761
2761
|
var i = Math.max(wa(o), Ca(o));
|
|
2762
2762
|
r.style.height = i + "px", r.style.width = i + "px";
|
|
2763
2763
|
}
|
|
2764
|
-
var a = ka(o), s = e.pageX - a.left + document.body.scrollTop - Pr(r) / 2, l = e.pageY - a.top + document.body.scrollLeft -
|
|
2764
|
+
var a = ka(o), s = e.pageX - a.left + document.body.scrollTop - Pr(r) / 2, l = e.pageY - a.top + document.body.scrollLeft - Er(r) / 2;
|
|
2765
2765
|
r.style.top = l + "px", r.style.left = s + "px", !this.isUnstyled() && ba(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
|
|
2766
2766
|
r && (!n.isUnstyled() && fo(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "false"));
|
|
2767
2767
|
}, 401);
|
|
@@ -2804,7 +2804,7 @@ var Ul = xl.extend("ripple", {
|
|
|
2804
2804
|
$parentInstance: this
|
|
2805
2805
|
};
|
|
2806
2806
|
}
|
|
2807
|
-
},
|
|
2807
|
+
}, ji = {
|
|
2808
2808
|
name: "PanelMenuSub",
|
|
2809
2809
|
hostName: "PanelMenu",
|
|
2810
2810
|
extends: Qn,
|
|
@@ -2942,7 +2942,7 @@ function zl(t, e, n, o, r, i) {
|
|
|
2942
2942
|
return O(), U("ul", {
|
|
2943
2943
|
class: ee(t.cx("submenu")),
|
|
2944
2944
|
tabindex: n.tabindex
|
|
2945
|
-
}, [(O(!0), U(Xe, null,
|
|
2945
|
+
}, [(O(!0), U(Xe, null, Bo(n.items, function(l, u) {
|
|
2946
2946
|
return O(), U(Xe, {
|
|
2947
2947
|
key: i.getItemKey(l)
|
|
2948
2948
|
}, [i.isItemVisible(l) && !i.getItemProp(l, "separator") ? (O(), U("li", W({
|
|
@@ -3033,7 +3033,7 @@ function zl(t, e, n, o, r, i) {
|
|
|
3033
3033
|
pt: t.pt,
|
|
3034
3034
|
unstyled: t.unstyled,
|
|
3035
3035
|
ref_for: !0
|
|
3036
|
-
}, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : ae("", !0)], 16), [[
|
|
3036
|
+
}, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : ae("", !0)], 16), [[Ai, i.isItemActive(l)]])];
|
|
3037
3037
|
}),
|
|
3038
3038
|
_: 2
|
|
3039
3039
|
}, 1040)], 16, Fl)) : ae("", !0), i.isItemVisible(l) && i.getItemProp(l, "separator") ? (O(), U("li", W({
|
|
@@ -3045,7 +3045,7 @@ function zl(t, e, n, o, r, i) {
|
|
|
3045
3045
|
}, t.ptm("separator")), null, 16)) : ae("", !0)], 64);
|
|
3046
3046
|
}), 128))], 10, jl);
|
|
3047
3047
|
}
|
|
3048
|
-
|
|
3048
|
+
ji.render = zl;
|
|
3049
3049
|
function Wl(t, e) {
|
|
3050
3050
|
return Xl(t) || Yl(t, e) || ql(t, e) || Gl();
|
|
3051
3051
|
}
|
|
@@ -3055,12 +3055,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3055
3055
|
}
|
|
3056
3056
|
function ql(t, e) {
|
|
3057
3057
|
if (t) {
|
|
3058
|
-
if (typeof t == "string") return
|
|
3058
|
+
if (typeof t == "string") return Xr(t, e);
|
|
3059
3059
|
var n = {}.toString.call(t).slice(8, -1);
|
|
3060
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3060
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Xr(t, e) : void 0;
|
|
3061
3061
|
}
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function Xr(t, e) {
|
|
3064
3064
|
(e == null || e > t.length) && (e = t.length);
|
|
3065
3065
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
3066
3066
|
return o;
|
|
@@ -3086,7 +3086,7 @@ function Yl(t, e) {
|
|
|
3086
3086
|
function Xl(t) {
|
|
3087
3087
|
if (Array.isArray(t)) return t;
|
|
3088
3088
|
}
|
|
3089
|
-
var
|
|
3089
|
+
var Fi = {
|
|
3090
3090
|
name: "PanelMenuList",
|
|
3091
3091
|
hostName: "PanelMenu",
|
|
3092
3092
|
extends: Qn,
|
|
@@ -3190,7 +3190,7 @@ var ji = {
|
|
|
3190
3190
|
case "ShiftRight":
|
|
3191
3191
|
break;
|
|
3192
3192
|
default:
|
|
3193
|
-
!n &&
|
|
3193
|
+
!n && Ea(e.key) && this.searchItems(e, e.key);
|
|
3194
3194
|
break;
|
|
3195
3195
|
}
|
|
3196
3196
|
},
|
|
@@ -3295,7 +3295,7 @@ var ji = {
|
|
|
3295
3295
|
},
|
|
3296
3296
|
findLastItem: function() {
|
|
3297
3297
|
var e = this;
|
|
3298
|
-
return
|
|
3298
|
+
return xr(this.visibleItems, function(n) {
|
|
3299
3299
|
return e.isValidItem(n);
|
|
3300
3300
|
});
|
|
3301
3301
|
},
|
|
@@ -3310,7 +3310,7 @@ var ji = {
|
|
|
3310
3310
|
findPrevItem: function(e) {
|
|
3311
3311
|
var n = this, o = this.visibleItems.findIndex(function(i) {
|
|
3312
3312
|
return i.key === e.key;
|
|
3313
|
-
}), r = o > 0 ?
|
|
3313
|
+
}), r = o > 0 ? xr(this.visibleItems.slice(0, o), function(i) {
|
|
3314
3314
|
return n.isValidItem(i);
|
|
3315
3315
|
}) : void 0;
|
|
3316
3316
|
return r || e;
|
|
@@ -3409,7 +3409,7 @@ var ji = {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
},
|
|
3411
3411
|
components: {
|
|
3412
|
-
PanelMenuSub:
|
|
3412
|
+
PanelMenuSub: ji
|
|
3413
3413
|
}
|
|
3414
3414
|
};
|
|
3415
3415
|
function Zl(t, e, n, o, r, i) {
|
|
@@ -3434,7 +3434,7 @@ function Zl(t, e, n, o, r, i) {
|
|
|
3434
3434
|
unstyled: t.unstyled
|
|
3435
3435
|
}, t.ptm("rootList")), null, 16, ["id", "class", "aria-activedescendant", "panelId", "focusedItemId", "items", "templates", "activeItemPath", "onFocus", "onBlur", "onKeydown", "onItemToggle", "onItemMousemove", "pt", "unstyled"]);
|
|
3436
3436
|
}
|
|
3437
|
-
|
|
3437
|
+
Fi.render = Zl;
|
|
3438
3438
|
function bn(t) {
|
|
3439
3439
|
"@babel/helpers - typeof";
|
|
3440
3440
|
return bn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -3443,7 +3443,7 @@ function bn(t) {
|
|
|
3443
3443
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3444
3444
|
}, bn(t);
|
|
3445
3445
|
}
|
|
3446
|
-
function
|
|
3446
|
+
function Zr(t, e) {
|
|
3447
3447
|
var n = Object.keys(t);
|
|
3448
3448
|
if (Object.getOwnPropertySymbols) {
|
|
3449
3449
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -3456,9 +3456,9 @@ function Xr(t, e) {
|
|
|
3456
3456
|
function Jl(t) {
|
|
3457
3457
|
for (var e = 1; e < arguments.length; e++) {
|
|
3458
3458
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
3459
|
-
e % 2 ?
|
|
3459
|
+
e % 2 ? Zr(Object(n), !0).forEach(function(o) {
|
|
3460
3460
|
Ql(t, o, n[o]);
|
|
3461
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
3461
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Zr(Object(n)).forEach(function(o) {
|
|
3462
3462
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
3463
3463
|
});
|
|
3464
3464
|
}
|
|
@@ -3481,7 +3481,7 @@ function tc(t, e) {
|
|
|
3481
3481
|
}
|
|
3482
3482
|
return (e === "string" ? String : Number)(t);
|
|
3483
3483
|
}
|
|
3484
|
-
var
|
|
3484
|
+
var Vi = {
|
|
3485
3485
|
name: "PanelMenu",
|
|
3486
3486
|
extends: Hl,
|
|
3487
3487
|
inheritAttrs: !1,
|
|
@@ -3520,8 +3520,8 @@ var Fi = {
|
|
|
3520
3520
|
},
|
|
3521
3521
|
isItemActive: function(e) {
|
|
3522
3522
|
return this.expandedKeys ? this.expandedKeys[this.getItemProp(e, "key")] : this.multiple ? this.activeItems.some(function(n) {
|
|
3523
|
-
return
|
|
3524
|
-
}) :
|
|
3523
|
+
return Nt(e, n);
|
|
3524
|
+
}) : Nt(e, this.activeItem);
|
|
3525
3525
|
},
|
|
3526
3526
|
isItemVisible: function(e) {
|
|
3527
3527
|
return this.getItemProp(e, "visible") !== !1;
|
|
@@ -3530,7 +3530,7 @@ var Fi = {
|
|
|
3530
3530
|
return this.getItemProp(e, "disabled");
|
|
3531
3531
|
},
|
|
3532
3532
|
isItemFocused: function(e) {
|
|
3533
|
-
return
|
|
3533
|
+
return Nt(e, this.activeItem);
|
|
3534
3534
|
},
|
|
3535
3535
|
getPanelId: function(e) {
|
|
3536
3536
|
return "".concat(this.id, "_").concat(e);
|
|
@@ -3621,10 +3621,10 @@ var Fi = {
|
|
|
3621
3621
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3622
3622
|
if (!this.isItemDisabled(n)) {
|
|
3623
3623
|
var r = this.isItemActive(n), i = r ? "panel-close" : "panel-open";
|
|
3624
|
-
this.activeItem = o ? n : this.activeItem &&
|
|
3625
|
-
return
|
|
3624
|
+
this.activeItem = o ? n : this.activeItem && Nt(n, this.activeItem) ? null : n, this.multiple && (this.activeItems.some(function(a) {
|
|
3625
|
+
return Nt(n, a);
|
|
3626
3626
|
}) ? this.activeItems = this.activeItems.filter(function(a) {
|
|
3627
|
-
return !
|
|
3627
|
+
return !Nt(n, a);
|
|
3628
3628
|
}) : this.activeItems.push(n)), this.changeExpandedKeys({
|
|
3629
3629
|
item: n,
|
|
3630
3630
|
expanded: !r
|
|
@@ -3656,7 +3656,7 @@ var Fi = {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
},
|
|
3658
3658
|
components: {
|
|
3659
|
-
PanelMenuList:
|
|
3659
|
+
PanelMenuList: Fi,
|
|
3660
3660
|
ChevronRightIcon: Go,
|
|
3661
3661
|
ChevronDownIcon: Wo
|
|
3662
3662
|
}
|
|
@@ -3666,7 +3666,7 @@ function sc(t, e, n, o, r, i) {
|
|
|
3666
3666
|
return O(), U("div", W({
|
|
3667
3667
|
id: r.id,
|
|
3668
3668
|
class: t.cx("root")
|
|
3669
|
-
}, t.ptmi("root")), [(O(!0), U(Xe, null,
|
|
3669
|
+
}, t.ptmi("root")), [(O(!0), U(Xe, null, Bo(t.model, function(s, l) {
|
|
3670
3670
|
return O(), U(Xe, {
|
|
3671
3671
|
key: i.getPanelKey(l)
|
|
3672
3672
|
}, [i.isItemVisible(s) ? (O(), U("div", W({
|
|
@@ -3755,13 +3755,13 @@ function sc(t, e, n, o, r, i) {
|
|
|
3755
3755
|
onHeaderFocus: i.updateFocusedHeader,
|
|
3756
3756
|
pt: t.pt,
|
|
3757
3757
|
unstyled: t.unstyled
|
|
3758
|
-
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "pt", "unstyled"])], 16)) : ae("", !0)], 16, ic), [[
|
|
3758
|
+
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "pt", "unstyled"])], 16)) : ae("", !0)], 16, ic), [[Ai, i.isItemActive(s)]])];
|
|
3759
3759
|
}),
|
|
3760
3760
|
_: 2
|
|
3761
3761
|
}, 1040)], 16)) : ae("", !0)], 64);
|
|
3762
3762
|
}), 128))], 16, nc);
|
|
3763
3763
|
}
|
|
3764
|
-
|
|
3764
|
+
Vi.render = sc;
|
|
3765
3765
|
const ac = { class: "panel-menu-wrapper select-none" }, lc = ["data-active", "onClick"], cc = {
|
|
3766
3766
|
key: 0,
|
|
3767
3767
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
@@ -3788,7 +3788,7 @@ const ac = { class: "panel-menu-wrapper select-none" }, lc = ["data-active", "on
|
|
|
3788
3788
|
return (i, a) => {
|
|
3789
3789
|
const s = Sn("router-link");
|
|
3790
3790
|
return O(), U("div", ac, [
|
|
3791
|
-
Ae(se(
|
|
3791
|
+
Ae(se(Vi), {
|
|
3792
3792
|
model: e.items,
|
|
3793
3793
|
unstyled: !0
|
|
3794
3794
|
}, {
|
|
@@ -3844,7 +3844,7 @@ const ac = { class: "panel-menu-wrapper select-none" }, lc = ["data-active", "on
|
|
|
3844
3844
|
]);
|
|
3845
3845
|
};
|
|
3846
3846
|
}
|
|
3847
|
-
}),
|
|
3847
|
+
}), Mm = /* @__PURE__ */ _t(vc, [["__scopeId", "data-v-cf31441a"]]), Rm = /* @__PURE__ */ De({
|
|
3848
3848
|
__name: "HelpButton",
|
|
3849
3849
|
props: {
|
|
3850
3850
|
title: {},
|
|
@@ -3868,7 +3868,7 @@ const ac = { class: "panel-menu-wrapper select-none" }, lc = ["data-active", "on
|
|
|
3868
3868
|
icon: e.icon ?? "help",
|
|
3869
3869
|
size: e.size ?? "sm",
|
|
3870
3870
|
filled: e.filled,
|
|
3871
|
-
color: e.color ?? "
|
|
3871
|
+
color: e.color ?? "text",
|
|
3872
3872
|
tooltip: e.tooltip ?? "Ajuda",
|
|
3873
3873
|
style: {
|
|
3874
3874
|
minWidth: "fit-content"
|
|
@@ -3904,7 +3904,7 @@ const ac = { class: "panel-menu-wrapper select-none" }, lc = ["data-active", "on
|
|
|
3904
3904
|
pe(n.$slots, "default", {}, void 0, !0)
|
|
3905
3905
|
], 2));
|
|
3906
3906
|
}
|
|
3907
|
-
}),
|
|
3907
|
+
}), Dm = /* @__PURE__ */ _t(yc, [["__scopeId", "data-v-32e5acfa"]]), Ki = Symbol();
|
|
3908
3908
|
class bc {
|
|
3909
3909
|
get storedTheme() {
|
|
3910
3910
|
return localStorage.getItem("color-scheme");
|
|
@@ -3934,22 +3934,22 @@ class bc {
|
|
|
3934
3934
|
localStorage.removeItem("color-scheme");
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
|
-
const Zt = new bc(),
|
|
3937
|
+
const Zt = new bc(), zi = "SweetAlert2:", wc = (t) => {
|
|
3938
3938
|
const e = [];
|
|
3939
3939
|
for (let n = 0; n < t.length; n++)
|
|
3940
3940
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
3941
3941
|
return e;
|
|
3942
|
-
}, qo = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t),
|
|
3943
|
-
console.warn(`${
|
|
3942
|
+
}, qo = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t), Ne = (t) => {
|
|
3943
|
+
console.warn(`${zi} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3944
3944
|
}, Lt = (t) => {
|
|
3945
|
-
console.error(`${
|
|
3946
|
-
},
|
|
3947
|
-
|
|
3945
|
+
console.error(`${zi} ${t}`);
|
|
3946
|
+
}, Jr = [], _c = (t) => {
|
|
3947
|
+
Jr.includes(t) || (Jr.push(t), Ne(t));
|
|
3948
3948
|
}, Sc = (t, e) => {
|
|
3949
3949
|
_c(
|
|
3950
3950
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
3951
3951
|
);
|
|
3952
|
-
}, eo = (t) => typeof t == "function" ? t() : t, Yo = (t) => t && typeof t.toPromise == "function", kn = (t) => Yo(t) ? t.toPromise() : Promise.resolve(t), Xo = (t) => t && Promise.resolve(t) === t,
|
|
3952
|
+
}, eo = (t) => typeof t == "function" ? t() : t, Yo = (t) => t && typeof t.toPromise == "function", kn = (t) => Yo(t) ? t.toPromise() : Promise.resolve(t), Xo = (t) => t && Promise.resolve(t) === t, Ut = {
|
|
3953
3953
|
title: "",
|
|
3954
3954
|
titleText: "",
|
|
3955
3955
|
text: "",
|
|
@@ -4091,22 +4091,22 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4091
4091
|
"returnFocus",
|
|
4092
4092
|
"heightAuto",
|
|
4093
4093
|
"keydownListenerCapture"
|
|
4094
|
-
],
|
|
4095
|
-
|
|
4094
|
+
], Wi = (t) => Object.prototype.hasOwnProperty.call(Ut, t), Gi = (t) => kc.indexOf(t) !== -1, Lo = (t) => Cc[t], Tc = (t) => {
|
|
4095
|
+
Wi(t) || Ne(`Unknown parameter "${t}"`);
|
|
4096
4096
|
}, Ac = (t) => {
|
|
4097
|
-
Ic.includes(t) &&
|
|
4098
|
-
}, Pc = (t) => {
|
|
4099
|
-
xo(t) && Sc(t, xo(t));
|
|
4097
|
+
Ic.includes(t) && Ne(`The parameter "${t}" is incompatible with toasts`);
|
|
4100
4098
|
}, Ec = (t) => {
|
|
4101
|
-
|
|
4099
|
+
Lo(t) && Sc(t, Lo(t));
|
|
4100
|
+
}, Pc = (t) => {
|
|
4101
|
+
!t.backdrop && t.allowOutsideClick && Ne('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4102
4102
|
for (const e in t)
|
|
4103
|
-
Tc(e), t.toast && Ac(e),
|
|
4104
|
-
},
|
|
4103
|
+
Tc(e), t.toast && Ac(e), Ec(e);
|
|
4104
|
+
}, xc = "swal2-", qi = (t) => {
|
|
4105
4105
|
const e = {};
|
|
4106
4106
|
for (const n in t)
|
|
4107
|
-
e[t[n]] =
|
|
4107
|
+
e[t[n]] = xc + t[n];
|
|
4108
4108
|
return e;
|
|
4109
|
-
}, h =
|
|
4109
|
+
}, h = qi([
|
|
4110
4110
|
"container",
|
|
4111
4111
|
"shown",
|
|
4112
4112
|
"height-auto",
|
|
@@ -4176,10 +4176,10 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4176
4176
|
"icon-info",
|
|
4177
4177
|
"icon-question",
|
|
4178
4178
|
"icon-error"
|
|
4179
|
-
]), cn =
|
|
4179
|
+
]), cn = qi(["success", "warning", "info", "question", "error"]), ke = () => document.body.querySelector(`.${h.container}`), Cn = (t) => {
|
|
4180
4180
|
const e = ke();
|
|
4181
4181
|
return e ? e.querySelector(t) : null;
|
|
4182
|
-
}, ze = (t) => Cn(`.${t}`), te = () => ze(h.popup), In = () => ze(h.icon),
|
|
4182
|
+
}, ze = (t) => Cn(`.${t}`), te = () => ze(h.popup), In = () => ze(h.icon), Yi = () => ze(h.title), Xn = () => ze(h["html-container"]), Xi = () => ze(h.image), Zi = () => ze(h["progress-steps"]), to = () => ze(h["validation-message"]), Ze = () => Cn(`.${h.actions} .${h.confirm}`), wt = () => Cn(`.${h.actions} .${h.deny}`), Lc = () => ze(h["input-label"]), Vt = () => Cn(`.${h.loader}`), At = () => Cn(`.${h.actions} .${h.cancel}`), Tn = () => ze(h.actions), Ji = () => ze(h.footer), no = () => ze(h["timer-progress-bar"]), Zo = () => ze(h.close), Oc = `
|
|
4183
4183
|
a[href],
|
|
4184
4184
|
area[href],
|
|
4185
4185
|
input:not([disabled]),
|
|
@@ -4204,7 +4204,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4204
4204
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
4205
4205
|
);
|
|
4206
4206
|
return wc(t.concat(e)).filter((n) => He(n));
|
|
4207
|
-
}, Qo = () => ft(document.body, h.shown) && !ft(document.body, h["toast-shown"]) && !ft(document.body, h["no-backdrop"]), oo = () => te() && ft(te(), h.toast), $c = () => te().hasAttribute("data-loading"),
|
|
4207
|
+
}, Qo = () => ft(document.body, h.shown) && !ft(document.body, h["toast-shown"]) && !ft(document.body, h["no-backdrop"]), oo = () => te() && ft(te(), h.toast), $c = () => te().hasAttribute("data-loading"), Ht = {
|
|
4208
4208
|
previousBodyPadding: null
|
|
4209
4209
|
}, Se = (t, e) => {
|
|
4210
4210
|
if (t.textContent = "", e) {
|
|
@@ -4230,7 +4230,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4230
4230
|
}, Ve = (t, e, n) => {
|
|
4231
4231
|
if (Mc(t, e), e.customClass && e.customClass[n]) {
|
|
4232
4232
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
4233
|
-
return
|
|
4233
|
+
return Ne(
|
|
4234
4234
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
4235
4235
|
);
|
|
4236
4236
|
q(t, e.customClass[n]);
|
|
@@ -4252,21 +4252,21 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4252
4252
|
default:
|
|
4253
4253
|
return t.querySelector(`.${h.popup} > .${h.input}`);
|
|
4254
4254
|
}
|
|
4255
|
-
},
|
|
4255
|
+
}, Qi = (t) => {
|
|
4256
4256
|
if (t.focus(), t.type !== "file") {
|
|
4257
4257
|
const e = t.value;
|
|
4258
4258
|
t.value = "", t.value = e;
|
|
4259
4259
|
}
|
|
4260
|
-
},
|
|
4260
|
+
}, es = (t, e, n) => {
|
|
4261
4261
|
!t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
|
|
4262
4262
|
Array.isArray(t) ? t.forEach((r) => {
|
|
4263
4263
|
n ? r.classList.add(o) : r.classList.remove(o);
|
|
4264
4264
|
}) : n ? t.classList.add(o) : t.classList.remove(o);
|
|
4265
4265
|
}));
|
|
4266
4266
|
}, q = (t, e) => {
|
|
4267
|
-
|
|
4267
|
+
es(t, e, !0);
|
|
4268
4268
|
}, rt = (t, e) => {
|
|
4269
|
-
|
|
4269
|
+
es(t, e, !1);
|
|
4270
4270
|
}, yt = (t, e) => {
|
|
4271
4271
|
const n = je(t.childNodes);
|
|
4272
4272
|
for (let o = 0; o < n.length; o++)
|
|
@@ -4278,12 +4278,12 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4278
4278
|
t.style.display = e;
|
|
4279
4279
|
}, Ce = (t) => {
|
|
4280
4280
|
t.style.display = "none";
|
|
4281
|
-
},
|
|
4281
|
+
}, Qr = (t, e, n, o) => {
|
|
4282
4282
|
const r = t.querySelector(e);
|
|
4283
4283
|
r && (r.style[n] = o);
|
|
4284
4284
|
}, ro = (t, e, n) => {
|
|
4285
4285
|
e ? he(t, n) : Ce(t);
|
|
4286
|
-
}, He = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Rc = () => !He(Ze()) && !He(wt()) && !He(
|
|
4286
|
+
}, He = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Rc = () => !He(Ze()) && !He(wt()) && !He(At()), ei = (t) => t.scrollHeight > t.clientHeight, ts = (t) => {
|
|
4287
4287
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
4288
4288
|
return n > 0 || o > 0;
|
|
4289
4289
|
}, tr = (t, e = !1) => {
|
|
@@ -4296,15 +4296,15 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4296
4296
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
4297
4297
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
4298
4298
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
4299
|
-
},
|
|
4299
|
+
}, ns = () => typeof window > "u" || typeof document > "u", Nc = 100, j = {}, Bc = () => {
|
|
4300
4300
|
j.previousActiveElement && j.previousActiveElement.focus ? (j.previousActiveElement.focus(), j.previousActiveElement = null) : document.body && document.body.focus();
|
|
4301
4301
|
}, Uc = (t) => new Promise((e) => {
|
|
4302
4302
|
if (!t)
|
|
4303
4303
|
return e();
|
|
4304
4304
|
const n = window.scrollX, o = window.scrollY;
|
|
4305
4305
|
j.restoreFocusTimeout = setTimeout(() => {
|
|
4306
|
-
|
|
4307
|
-
},
|
|
4306
|
+
Bc(), e();
|
|
4307
|
+
}, Nc), window.scrollTo(n, o);
|
|
4308
4308
|
}), Hc = `
|
|
4309
4309
|
<div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
|
|
4310
4310
|
<button type="button" class="${h.close}"></button>
|
|
@@ -4360,7 +4360,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4360
4360
|
window.getComputedStyle(t).direction === "rtl" && q(ke(), h.rtl);
|
|
4361
4361
|
}, Wc = (t) => {
|
|
4362
4362
|
const e = jc();
|
|
4363
|
-
if (
|
|
4363
|
+
if (ns()) {
|
|
4364
4364
|
Lt("SweetAlert2 requires document to initialize");
|
|
4365
4365
|
return;
|
|
4366
4366
|
}
|
|
@@ -4379,7 +4379,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4379
4379
|
else
|
|
4380
4380
|
t.appendChild(e.cloneNode(!0));
|
|
4381
4381
|
}, wn = (() => {
|
|
4382
|
-
if (
|
|
4382
|
+
if (ns())
|
|
4383
4383
|
return !1;
|
|
4384
4384
|
const t = document.createElement("div"), e = {
|
|
4385
4385
|
WebkitAnimation: "webkitAnimationEnd",
|
|
@@ -4401,7 +4401,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4401
4401
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? Ce(n) : he(n), Ve(n, e, "actions"), Zc(n, o, e), Se(o, e.loaderHtml), Ve(o, e, "loader");
|
|
4402
4402
|
};
|
|
4403
4403
|
function Zc(t, e, n) {
|
|
4404
|
-
const o = Ze(), r = wt(), i =
|
|
4404
|
+
const o = Ze(), r = wt(), i = At();
|
|
4405
4405
|
go(o, "confirm", n), go(r, "deny", n), go(i, "cancel", n), Jc(o, r, i, n), n.reverseButtons && (n.toast ? (t.insertBefore(i, o), t.insertBefore(r, o)) : (t.insertBefore(i, e), t.insertBefore(r, e), t.insertBefore(o, e)));
|
|
4406
4406
|
}
|
|
4407
4407
|
function Jc(t, e, n, o) {
|
|
@@ -4416,7 +4416,7 @@ function Qc(t, e) {
|
|
|
4416
4416
|
typeof e == "string" ? t.style.background = e : e || q([document.documentElement, document.body], h["no-backdrop"]);
|
|
4417
4417
|
}
|
|
4418
4418
|
function eu(t, e) {
|
|
4419
|
-
e in h ? q(t, h[e]) : (
|
|
4419
|
+
e in h ? q(t, h[e]) : (Ne('The "position" parameter is not valid, defaulting to "center"'), q(t, h.center));
|
|
4420
4420
|
}
|
|
4421
4421
|
function tu(t, e) {
|
|
4422
4422
|
if (e && typeof e == "string") {
|
|
@@ -4443,9 +4443,9 @@ const nu = (t, e) => {
|
|
|
4443
4443
|
return Lt(
|
|
4444
4444
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
4445
4445
|
);
|
|
4446
|
-
const e =
|
|
4446
|
+
const e = os(t.input), n = Me[t.input](e, t);
|
|
4447
4447
|
he(n), setTimeout(() => {
|
|
4448
|
-
|
|
4448
|
+
Qi(n);
|
|
4449
4449
|
});
|
|
4450
4450
|
}, su = (t) => {
|
|
4451
4451
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
@@ -4460,7 +4460,7 @@ const nu = (t, e) => {
|
|
|
4460
4460
|
n.setAttribute(o, e[o]);
|
|
4461
4461
|
}
|
|
4462
4462
|
}, lu = (t) => {
|
|
4463
|
-
const e =
|
|
4463
|
+
const e = os(t.input);
|
|
4464
4464
|
t.customClass && q(e, t.customClass.input);
|
|
4465
4465
|
}, or = (t, e) => {
|
|
4466
4466
|
(!t.placeholder || e.inputPlaceholder) && (t.placeholder = e.inputPlaceholder);
|
|
@@ -4470,11 +4470,11 @@ const nu = (t, e) => {
|
|
|
4470
4470
|
const o = document.createElement("label"), r = h["input-label"];
|
|
4471
4471
|
o.setAttribute("for", t.id), o.className = r, q(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
|
|
4472
4472
|
}
|
|
4473
|
-
},
|
|
4473
|
+
}, os = (t) => {
|
|
4474
4474
|
const e = h[t] ? h[t] : h.input;
|
|
4475
4475
|
return yt(te(), e);
|
|
4476
4476
|
}, Me = {};
|
|
4477
|
-
Me.text = Me.email = Me.password = Me.number = Me.tel = Me.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : Xo(e.inputValue) ||
|
|
4477
|
+
Me.text = Me.email = Me.password = Me.number = Me.tel = Me.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : Xo(e.inputValue) || Ne(
|
|
4478
4478
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
4479
4479
|
), An(t, t, e), or(t, e), t.type = e.input, t);
|
|
4480
4480
|
Me.file = (t, e) => (An(t, t, e), or(t, e), t);
|
|
@@ -4516,7 +4516,7 @@ const cu = (t, e) => {
|
|
|
4516
4516
|
const n = Xn();
|
|
4517
4517
|
Ve(n, e, "htmlContainer"), e.html ? (nr(e.html, n), he(n, "block")) : e.text ? (n.textContent = e.text, he(n, "block")) : Ce(n), ru(t, e);
|
|
4518
4518
|
}, uu = (t, e) => {
|
|
4519
|
-
const n =
|
|
4519
|
+
const n = Ji();
|
|
4520
4520
|
ro(n, e.footer), e.footer && nr(e.footer, n), Ve(n, e, "footer");
|
|
4521
4521
|
}, du = (t, e) => {
|
|
4522
4522
|
const n = Zo();
|
|
@@ -4524,15 +4524,15 @@ const cu = (t, e) => {
|
|
|
4524
4524
|
}, fu = (t, e) => {
|
|
4525
4525
|
const n = F.innerParams.get(t), o = In();
|
|
4526
4526
|
if (n && e.icon === n.icon) {
|
|
4527
|
-
|
|
4527
|
+
ni(o, e), ti(o, e);
|
|
4528
4528
|
return;
|
|
4529
4529
|
}
|
|
4530
4530
|
if (!e.icon && !e.iconHtml)
|
|
4531
4531
|
return Ce(o);
|
|
4532
4532
|
if (e.icon && Object.keys(cn).indexOf(e.icon) === -1)
|
|
4533
4533
|
return Lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Ce(o);
|
|
4534
|
-
he(o),
|
|
4535
|
-
},
|
|
4534
|
+
he(o), ni(o, e), ti(o, e), q(o, e.showClass.icon);
|
|
4535
|
+
}, ti = (t, e) => {
|
|
4536
4536
|
for (const n in cn)
|
|
4537
4537
|
e.icon !== n && rt(t, cn[n]);
|
|
4538
4538
|
q(t, cn[e.icon]), gu(t, e), mu(), Ve(t, e, "icon");
|
|
@@ -4550,8 +4550,8 @@ const cu = (t, e) => {
|
|
|
4550
4550
|
<span class="swal2-x-mark-line-left"></span>
|
|
4551
4551
|
<span class="swal2-x-mark-line-right"></span>
|
|
4552
4552
|
</span>
|
|
4553
|
-
`,
|
|
4554
|
-
t.textContent = "", e.iconHtml ? Se(t,
|
|
4553
|
+
`, ni = (t, e) => {
|
|
4554
|
+
t.textContent = "", e.iconHtml ? Se(t, oi(e.iconHtml)) : e.icon === "success" ? Se(t, pu) : e.icon === "error" ? Se(t, hu) : Se(t, oi({
|
|
4555
4555
|
question: "?",
|
|
4556
4556
|
warning: "!",
|
|
4557
4557
|
info: "i"
|
|
@@ -4565,11 +4565,11 @@ const cu = (t, e) => {
|
|
|
4565
4565
|
".swal2-x-mark-line-left",
|
|
4566
4566
|
".swal2-x-mark-line-right"
|
|
4567
4567
|
])
|
|
4568
|
-
|
|
4569
|
-
|
|
4568
|
+
Qr(t, n, "backgroundColor", e.iconColor);
|
|
4569
|
+
Qr(t, ".swal2-success-ring", "borderColor", e.iconColor);
|
|
4570
4570
|
}
|
|
4571
|
-
},
|
|
4572
|
-
const n =
|
|
4571
|
+
}, oi = (t) => `<div class="${h["icon-content"]}">${t}</div>`, vu = (t, e) => {
|
|
4572
|
+
const n = Xi();
|
|
4573
4573
|
if (!e.imageUrl)
|
|
4574
4574
|
return Ce(n);
|
|
4575
4575
|
he(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), un(n, "width", e.imageWidth), un(n, "height", e.imageHeight), n.className = h.image, Ve(n, e, "image");
|
|
@@ -4580,10 +4580,10 @@ const cu = (t, e) => {
|
|
|
4580
4580
|
const e = document.createElement("li");
|
|
4581
4581
|
return q(e, h["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e;
|
|
4582
4582
|
}, wu = (t, e) => {
|
|
4583
|
-
const n =
|
|
4583
|
+
const n = Zi();
|
|
4584
4584
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
4585
4585
|
return Ce(n);
|
|
4586
|
-
he(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length &&
|
|
4586
|
+
he(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Ne(
|
|
4587
4587
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
4588
4588
|
), e.progressSteps.forEach((o, r) => {
|
|
4589
4589
|
const i = yu(o);
|
|
@@ -4593,14 +4593,14 @@ const cu = (t, e) => {
|
|
|
4593
4593
|
}
|
|
4594
4594
|
});
|
|
4595
4595
|
}, _u = (t, e) => {
|
|
4596
|
-
const n =
|
|
4596
|
+
const n = Yi();
|
|
4597
4597
|
ro(n, e.title || e.titleText, "block"), e.title && nr(e.title, n), e.titleText && (n.innerText = e.titleText), Ve(n, e, "title");
|
|
4598
4598
|
}, Su = (t, e) => {
|
|
4599
4599
|
const n = ke(), o = te();
|
|
4600
4600
|
e.toast ? (un(n, "width", e.width), o.style.width = "100%", o.insertBefore(Vt(), In())) : un(o, "width", e.width), un(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), Ce(to()), ku(o, e);
|
|
4601
4601
|
}, ku = (t, e) => {
|
|
4602
4602
|
t.className = `${h.popup} ${He(t) ? e.showClass.popup : ""}`, e.toast ? (q([document.documentElement, document.body], h["toast-shown"]), q(t, h.toast)) : q(t, h.modal), Ve(t, e, "popup"), typeof e.customClass == "string" && q(t, e.customClass), e.icon && q(t, h[`icon-${e.icon}`]);
|
|
4603
|
-
},
|
|
4603
|
+
}, rs = (t, e) => {
|
|
4604
4604
|
Su(t, e), nu(t, e), wu(t, e), fu(t, e), vu(t, e), _u(t, e), du(t, e), cu(t, e), Xc(t, e), uu(t, e), typeof e.didRender == "function" && e.didRender(te());
|
|
4605
4605
|
}, Kt = Object.freeze({
|
|
4606
4606
|
cancel: "cancel",
|
|
@@ -4612,11 +4612,11 @@ const cu = (t, e) => {
|
|
|
4612
4612
|
je(document.body.children).forEach((e) => {
|
|
4613
4613
|
e === ke() || e.contains(ke()) || (e.hasAttribute("aria-hidden") && e.setAttribute("data-previous-aria-hidden", e.getAttribute("aria-hidden")), e.setAttribute("aria-hidden", "true"));
|
|
4614
4614
|
});
|
|
4615
|
-
},
|
|
4615
|
+
}, is = () => {
|
|
4616
4616
|
je(document.body.children).forEach((e) => {
|
|
4617
4617
|
e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden")), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
|
|
4618
4618
|
});
|
|
4619
|
-
},
|
|
4619
|
+
}, ss = ["swal-title", "swal-html", "swal-footer"], Iu = (t) => {
|
|
4620
4620
|
const e = typeof t.template == "string" ? document.querySelector(t.template) : t.template;
|
|
4621
4621
|
if (!e)
|
|
4622
4622
|
return {};
|
|
@@ -4624,49 +4624,49 @@ const cu = (t, e) => {
|
|
|
4624
4624
|
return Ou(n), Object.assign(
|
|
4625
4625
|
Tu(n),
|
|
4626
4626
|
Au(n),
|
|
4627
|
-
Pu(n),
|
|
4628
4627
|
Eu(n),
|
|
4629
|
-
|
|
4630
|
-
xu(n,
|
|
4628
|
+
Pu(n),
|
|
4629
|
+
xu(n),
|
|
4630
|
+
Lu(n, ss)
|
|
4631
4631
|
);
|
|
4632
4632
|
}, Tu = (t) => {
|
|
4633
4633
|
const e = {};
|
|
4634
4634
|
return je(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
4635
|
-
|
|
4635
|
+
Et(n, ["name", "value"]);
|
|
4636
4636
|
const o = n.getAttribute("name"), r = n.getAttribute("value");
|
|
4637
|
-
typeof
|
|
4637
|
+
typeof Ut[o] == "boolean" && r === "false" && (e[o] = !1), typeof Ut[o] == "object" && (e[o] = JSON.parse(r));
|
|
4638
4638
|
}), e;
|
|
4639
4639
|
}, Au = (t) => {
|
|
4640
4640
|
const e = {};
|
|
4641
4641
|
return je(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
4642
|
-
|
|
4642
|
+
Et(n, ["type", "color", "aria-label"]);
|
|
4643
4643
|
const o = n.getAttribute("type");
|
|
4644
4644
|
e[`${o}ButtonText`] = n.innerHTML, e[`show${qo(o)}Button`] = !0, n.hasAttribute("color") && (e[`${o}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
4645
4645
|
}), e;
|
|
4646
|
-
}, Pu = (t) => {
|
|
4647
|
-
const e = {}, n = t.querySelector("swal-image");
|
|
4648
|
-
return n && (At(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src")), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width")), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height")), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt"))), e;
|
|
4649
4646
|
}, Eu = (t) => {
|
|
4647
|
+
const e = {}, n = t.querySelector("swal-image");
|
|
4648
|
+
return n && (Et(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src")), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width")), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height")), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt"))), e;
|
|
4649
|
+
}, Pu = (t) => {
|
|
4650
4650
|
const e = {}, n = t.querySelector("swal-icon");
|
|
4651
|
-
return n && (
|
|
4652
|
-
},
|
|
4651
|
+
return n && (Et(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
|
|
4652
|
+
}, xu = (t) => {
|
|
4653
4653
|
const e = {}, n = t.querySelector("swal-input");
|
|
4654
|
-
n && (
|
|
4654
|
+
n && (Et(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")));
|
|
4655
4655
|
const o = t.querySelectorAll("swal-input-option");
|
|
4656
4656
|
return o.length && (e.inputOptions = {}, je(o).forEach((r) => {
|
|
4657
|
-
|
|
4657
|
+
Et(r, ["value"]);
|
|
4658
4658
|
const i = r.getAttribute("value"), a = r.innerHTML;
|
|
4659
4659
|
e.inputOptions[i] = a;
|
|
4660
4660
|
})), e;
|
|
4661
|
-
},
|
|
4661
|
+
}, Lu = (t, e) => {
|
|
4662
4662
|
const n = {};
|
|
4663
4663
|
for (const o in e) {
|
|
4664
4664
|
const r = e[o], i = t.querySelector(r);
|
|
4665
|
-
i && (
|
|
4665
|
+
i && (Et(i, []), n[r.replace(/^swal-/, "")] = i.innerHTML.trim());
|
|
4666
4666
|
}
|
|
4667
4667
|
return n;
|
|
4668
4668
|
}, Ou = (t) => {
|
|
4669
|
-
const e =
|
|
4669
|
+
const e = ss.concat([
|
|
4670
4670
|
"swal-param",
|
|
4671
4671
|
"swal-button",
|
|
4672
4672
|
"swal-image",
|
|
@@ -4676,29 +4676,29 @@ const cu = (t, e) => {
|
|
|
4676
4676
|
]);
|
|
4677
4677
|
je(t.children).forEach((n) => {
|
|
4678
4678
|
const o = n.tagName.toLowerCase();
|
|
4679
|
-
e.indexOf(o) === -1 &&
|
|
4679
|
+
e.indexOf(o) === -1 && Ne(`Unrecognized element <${o}>`);
|
|
4680
4680
|
});
|
|
4681
|
-
},
|
|
4681
|
+
}, Et = (t, e) => {
|
|
4682
4682
|
je(t.attributes).forEach((n) => {
|
|
4683
|
-
e.indexOf(n.name) === -1 &&
|
|
4683
|
+
e.indexOf(n.name) === -1 && Ne([
|
|
4684
4684
|
`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,
|
|
4685
4685
|
`${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`
|
|
4686
4686
|
]);
|
|
4687
4687
|
});
|
|
4688
|
-
},
|
|
4688
|
+
}, ri = {
|
|
4689
4689
|
email: (t, e) => /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid email address"),
|
|
4690
4690
|
url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
|
|
4691
4691
|
};
|
|
4692
4692
|
function $u(t) {
|
|
4693
|
-
t.inputValidator || Object.keys(
|
|
4694
|
-
t.input === e && (t.inputValidator =
|
|
4693
|
+
t.inputValidator || Object.keys(ri).forEach((e) => {
|
|
4694
|
+
t.input === e && (t.inputValidator = ri[e]);
|
|
4695
4695
|
});
|
|
4696
4696
|
}
|
|
4697
4697
|
function Mu(t) {
|
|
4698
|
-
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (
|
|
4698
|
+
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (Ne('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
4699
4699
|
}
|
|
4700
4700
|
function Ru(t) {
|
|
4701
|
-
$u(t), t.showLoaderOnConfirm && !t.preConfirm &&
|
|
4701
|
+
$u(t), t.showLoaderOnConfirm && !t.preConfirm && Ne(
|
|
4702
4702
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
4703
4703
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
4704
4704
|
https://sweetalert2.github.io/#ajax-request`
|
|
@@ -4726,10 +4726,10 @@ class Du {
|
|
|
4726
4726
|
return this.running;
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
4729
|
-
const
|
|
4730
|
-
|
|
4731
|
-
},
|
|
4732
|
-
|
|
4729
|
+
const Nu = () => {
|
|
4730
|
+
Ht.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (Ht.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Ht.previousBodyPadding + Yc()}px`);
|
|
4731
|
+
}, Bu = () => {
|
|
4732
|
+
Ht.previousBodyPadding !== null && (document.body.style.paddingRight = `${Ht.previousBodyPadding}px`, Ht.previousBodyPadding = null);
|
|
4733
4733
|
}, Uu = () => {
|
|
4734
4734
|
if (// @ts-ignore
|
|
4735
4735
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !ft(document.body, h.iosfix)) {
|
|
@@ -4749,38 +4749,38 @@ const Bu = () => {
|
|
|
4749
4749
|
};
|
|
4750
4750
|
}, Fu = (t) => {
|
|
4751
4751
|
const e = t.target, n = ke();
|
|
4752
|
-
return Vu(t) || Ku(t) ? !1 : e === n || !
|
|
4752
|
+
return Vu(t) || Ku(t) ? !1 : e === n || !ei(n) && e.tagName !== "INPUT" && // #1603
|
|
4753
4753
|
e.tagName !== "TEXTAREA" && // #2266
|
|
4754
|
-
!(
|
|
4754
|
+
!(ei(Xn()) && // #1944
|
|
4755
4755
|
Xn().contains(e));
|
|
4756
4756
|
}, Vu = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Ku = (t) => t.touches && t.touches.length > 1, zu = () => {
|
|
4757
4757
|
if (ft(document.body, h.iosfix)) {
|
|
4758
4758
|
const t = parseInt(document.body.style.top, 10);
|
|
4759
4759
|
rt(document.body, h.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
4760
4760
|
}
|
|
4761
|
-
},
|
|
4761
|
+
}, as = 10, Wu = (t) => {
|
|
4762
4762
|
const e = ke(), n = te();
|
|
4763
4763
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
4764
4764
|
const r = window.getComputedStyle(document.body).overflowY;
|
|
4765
4765
|
Yu(e, n, t), setTimeout(() => {
|
|
4766
4766
|
Gu(e, n);
|
|
4767
|
-
},
|
|
4768
|
-
},
|
|
4767
|
+
}, as), Qo() && (qu(e, t.scrollbarPadding, r), Cu()), !oo() && !j.previousActiveElement && (j.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), rt(e, h["no-transition"]);
|
|
4768
|
+
}, ls = (t) => {
|
|
4769
4769
|
const e = te();
|
|
4770
4770
|
if (t.target !== e)
|
|
4771
4771
|
return;
|
|
4772
4772
|
const n = ke();
|
|
4773
|
-
e.removeEventListener(wn,
|
|
4773
|
+
e.removeEventListener(wn, ls), n.style.overflowY = "auto";
|
|
4774
4774
|
}, Gu = (t, e) => {
|
|
4775
|
-
wn &&
|
|
4775
|
+
wn && ts(e) ? (t.style.overflowY = "hidden", e.addEventListener(wn, ls)) : t.style.overflowY = "auto";
|
|
4776
4776
|
}, qu = (t, e, n) => {
|
|
4777
|
-
Uu(), e && n !== "hidden" &&
|
|
4777
|
+
Uu(), e && n !== "hidden" && Nu(), setTimeout(() => {
|
|
4778
4778
|
t.scrollTop = 0;
|
|
4779
4779
|
});
|
|
4780
4780
|
}, Yu = (t, e, n) => {
|
|
4781
4781
|
q(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), he(e, "grid"), setTimeout(() => {
|
|
4782
4782
|
q(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
4783
|
-
},
|
|
4783
|
+
}, as), q([document.documentElement, document.body], h.shown), n.heightAuto && n.backdrop && !n.toast && q([document.documentElement, document.body], h["height-auto"]);
|
|
4784
4784
|
}, Ft = (t) => {
|
|
4785
4785
|
let e = te();
|
|
4786
4786
|
e || new Pt(), e = te();
|
|
@@ -4821,7 +4821,7 @@ const Bu = () => {
|
|
|
4821
4821
|
select: (t, e, n) => {
|
|
4822
4822
|
const o = yt(t, h.select), r = (i, a, s) => {
|
|
4823
4823
|
const l = document.createElement("option");
|
|
4824
|
-
l.value = s, Se(l, a), l.selected =
|
|
4824
|
+
l.value = s, Se(l, a), l.selected = ii(s, n.inputValue), i.appendChild(l);
|
|
4825
4825
|
};
|
|
4826
4826
|
e.forEach((i) => {
|
|
4827
4827
|
const a = i[0], s = i[1];
|
|
@@ -4836,7 +4836,7 @@ const Bu = () => {
|
|
|
4836
4836
|
const o = yt(t, h.radio);
|
|
4837
4837
|
e.forEach((i) => {
|
|
4838
4838
|
const a = i[0], s = i[1], l = document.createElement("input"), u = document.createElement("label");
|
|
4839
|
-
l.type = "radio", l.name = h.radio, l.value = a,
|
|
4839
|
+
l.type = "radio", l.name = h.radio, l.value = a, ii(a, n.inputValue) && (l.checked = !0);
|
|
4840
4840
|
const d = document.createElement("span");
|
|
4841
4841
|
Se(d, s), d.className = h.label, u.appendChild(l), u.appendChild(d), o.appendChild(u);
|
|
4842
4842
|
});
|
|
@@ -4852,8 +4852,8 @@ const Bu = () => {
|
|
|
4852
4852
|
let o = t[n];
|
|
4853
4853
|
typeof o == "object" && (o = Oo(o)), e.push([n, o]);
|
|
4854
4854
|
}), e;
|
|
4855
|
-
},
|
|
4856
|
-
function
|
|
4855
|
+
}, ii = (t, e) => e && e.toString() === t.toString();
|
|
4856
|
+
function si() {
|
|
4857
4857
|
const t = F.innerParams.get(this);
|
|
4858
4858
|
if (!t)
|
|
4859
4859
|
return;
|
|
@@ -4871,12 +4871,12 @@ function sd(t) {
|
|
|
4871
4871
|
const _n = {
|
|
4872
4872
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
4873
4873
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
4874
|
-
}, ad = () => He(te()),
|
|
4874
|
+
}, ad = () => He(te()), cs = () => Ze() && Ze().click(), ld = () => wt() && wt().click(), cd = () => At() && At().click(), us = (t) => {
|
|
4875
4875
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
4876
4876
|
capture: t.keydownListenerCapture
|
|
4877
4877
|
}), t.keydownHandlerAdded = !1);
|
|
4878
4878
|
}, ud = (t, e, n, o) => {
|
|
4879
|
-
|
|
4879
|
+
us(e), n.toast || (e.keydownHandler = (r) => fd(t, r, o), e.keydownTarget = n.keydownListenerCapture ? window : te(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
4880
4880
|
capture: e.keydownListenerCapture
|
|
4881
4881
|
}), e.keydownHandlerAdded = !0);
|
|
4882
4882
|
}, $o = (t, e, n) => {
|
|
@@ -4884,14 +4884,14 @@ const _n = {
|
|
|
4884
4884
|
if (o.length)
|
|
4885
4885
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
4886
4886
|
te().focus();
|
|
4887
|
-
},
|
|
4887
|
+
}, ds = ["ArrowRight", "ArrowDown"], dd = ["ArrowLeft", "ArrowUp"], fd = (t, e, n) => {
|
|
4888
4888
|
const o = F.innerParams.get(t);
|
|
4889
|
-
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? md(t, e, o) : e.key === "Tab" ? pd(e, o) : [...
|
|
4889
|
+
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? md(t, e, o) : e.key === "Tab" ? pd(e, o) : [...ds, ...dd].includes(e.key) ? hd(e.key) : e.key === "Escape" && gd(e, o, n)));
|
|
4890
4890
|
}, md = (t, e, n) => {
|
|
4891
4891
|
if (eo(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
4892
4892
|
if (["textarea", "file"].includes(n.input))
|
|
4893
4893
|
return;
|
|
4894
|
-
|
|
4894
|
+
cs(), e.preventDefault();
|
|
4895
4895
|
}
|
|
4896
4896
|
}, pd = (t, e) => {
|
|
4897
4897
|
const n = t.target, o = Jo();
|
|
@@ -4903,10 +4903,10 @@ const _n = {
|
|
|
4903
4903
|
}
|
|
4904
4904
|
t.shiftKey ? $o(e, r, -1) : $o(e, r, 1), t.stopPropagation(), t.preventDefault();
|
|
4905
4905
|
}, hd = (t) => {
|
|
4906
|
-
const e = Ze(), n = wt(), o =
|
|
4906
|
+
const e = Ze(), n = wt(), o = At();
|
|
4907
4907
|
if (![e, n, o].includes(document.activeElement))
|
|
4908
4908
|
return;
|
|
4909
|
-
const r =
|
|
4909
|
+
const r = ds.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
4910
4910
|
let i = document.activeElement;
|
|
4911
4911
|
for (let a = 0; a < Tn().children.length; a++) {
|
|
4912
4912
|
if (i = i[r], !i)
|
|
@@ -4918,8 +4918,8 @@ const _n = {
|
|
|
4918
4918
|
}, gd = (t, e, n) => {
|
|
4919
4919
|
eo(e.allowEscapeKey) && (t.preventDefault(), n(Kt.esc));
|
|
4920
4920
|
};
|
|
4921
|
-
function
|
|
4922
|
-
oo() ?
|
|
4921
|
+
function fs(t, e, n, o) {
|
|
4922
|
+
oo() ? ai(t, o) : (Uc(n).then(() => ai(t, o)), us(j)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), Qo() && (Bu(), zu(), is()), vd();
|
|
4923
4923
|
}
|
|
4924
4924
|
function vd() {
|
|
4925
4925
|
rt(
|
|
@@ -4927,10 +4927,10 @@ function vd() {
|
|
|
4927
4927
|
[h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]
|
|
4928
4928
|
);
|
|
4929
4929
|
}
|
|
4930
|
-
function
|
|
4930
|
+
function Bn(t) {
|
|
4931
4931
|
t = _d(t);
|
|
4932
4932
|
const e = _n.swalPromiseResolve.get(this), n = bd(this);
|
|
4933
|
-
this.isAwaitingPromise() ? t.isDismissed || (
|
|
4933
|
+
this.isAwaitingPromise() ? t.isDismissed || (En(this), e(t)) : n && e(t);
|
|
4934
4934
|
}
|
|
4935
4935
|
function yd() {
|
|
4936
4936
|
return !!F.awaitingPromise.get(this);
|
|
@@ -4948,9 +4948,9 @@ const bd = (t) => {
|
|
|
4948
4948
|
};
|
|
4949
4949
|
function wd(t) {
|
|
4950
4950
|
const e = _n.swalPromiseReject.get(this);
|
|
4951
|
-
|
|
4951
|
+
En(this), e && e(t);
|
|
4952
4952
|
}
|
|
4953
|
-
const
|
|
4953
|
+
const En = (t) => {
|
|
4954
4954
|
t.isAwaitingPromise() && (F.awaitingPromise.delete(t), F.innerParams.get(t) || t._destroy());
|
|
4955
4955
|
}, _d = (t) => typeof t > "u" ? {
|
|
4956
4956
|
isConfirmed: !1,
|
|
@@ -4964,10 +4964,10 @@ const Pn = (t) => {
|
|
|
4964
4964
|
},
|
|
4965
4965
|
t
|
|
4966
4966
|
), Sd = (t, e, n) => {
|
|
4967
|
-
const o = ke(), r = wn &&
|
|
4968
|
-
typeof n.willClose == "function" && n.willClose(e), r ? kd(t, e, o, n.returnFocus, n.didClose) :
|
|
4967
|
+
const o = ke(), r = wn && ts(e);
|
|
4968
|
+
typeof n.willClose == "function" && n.willClose(e), r ? kd(t, e, o, n.returnFocus, n.didClose) : fs(t, o, n.returnFocus, n.didClose);
|
|
4969
4969
|
}, kd = (t, e, n, o, r) => {
|
|
4970
|
-
j.swalCloseEventFinishedCallback =
|
|
4970
|
+
j.swalCloseEventFinishedCallback = fs.bind(
|
|
4971
4971
|
null,
|
|
4972
4972
|
t,
|
|
4973
4973
|
n,
|
|
@@ -4976,18 +4976,18 @@ const Pn = (t) => {
|
|
|
4976
4976
|
), e.addEventListener(wn, function(i) {
|
|
4977
4977
|
i.target === e && (j.swalCloseEventFinishedCallback(), delete j.swalCloseEventFinishedCallback);
|
|
4978
4978
|
});
|
|
4979
|
-
},
|
|
4979
|
+
}, ai = (t, e) => {
|
|
4980
4980
|
setTimeout(() => {
|
|
4981
4981
|
typeof e == "function" && e.bind(t.params)(), t._destroy();
|
|
4982
4982
|
});
|
|
4983
4983
|
};
|
|
4984
|
-
function
|
|
4984
|
+
function ms(t, e, n) {
|
|
4985
4985
|
const o = F.domCache.get(t);
|
|
4986
4986
|
e.forEach((r) => {
|
|
4987
4987
|
o[r].disabled = n;
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
4990
|
-
function
|
|
4990
|
+
function ps(t, e) {
|
|
4991
4991
|
if (!t)
|
|
4992
4992
|
return !1;
|
|
4993
4993
|
if (t.type === "radio") {
|
|
@@ -4998,40 +4998,40 @@ function ms(t, e) {
|
|
|
4998
4998
|
t.disabled = e;
|
|
4999
4999
|
}
|
|
5000
5000
|
function Cd() {
|
|
5001
|
-
|
|
5001
|
+
ms(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
5002
5002
|
}
|
|
5003
5003
|
function Id() {
|
|
5004
|
-
|
|
5004
|
+
ms(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
5005
5005
|
}
|
|
5006
5006
|
function Td() {
|
|
5007
|
-
return
|
|
5007
|
+
return ps(this.getInput(), !1);
|
|
5008
5008
|
}
|
|
5009
5009
|
function Ad() {
|
|
5010
|
-
return
|
|
5010
|
+
return ps(this.getInput(), !0);
|
|
5011
5011
|
}
|
|
5012
|
-
function
|
|
5012
|
+
function Ed(t) {
|
|
5013
5013
|
const e = F.domCache.get(this), n = F.innerParams.get(this);
|
|
5014
5014
|
Se(e.validationMessage, t), e.validationMessage.className = h["validation-message"], n.customClass && n.customClass.validationMessage && q(e.validationMessage, n.customClass.validationMessage), he(e.validationMessage);
|
|
5015
5015
|
const o = this.getInput();
|
|
5016
|
-
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", h["validation-message"]),
|
|
5016
|
+
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", h["validation-message"]), Qi(o), q(o, h.inputerror));
|
|
5017
5017
|
}
|
|
5018
|
-
function
|
|
5018
|
+
function Pd() {
|
|
5019
5019
|
const t = F.domCache.get(this);
|
|
5020
5020
|
t.validationMessage && Ce(t.validationMessage);
|
|
5021
5021
|
const e = this.getInput();
|
|
5022
5022
|
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), rt(e, h.inputerror));
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5024
|
+
function xd() {
|
|
5025
5025
|
return F.domCache.get(this).progressSteps;
|
|
5026
5026
|
}
|
|
5027
|
-
function
|
|
5027
|
+
function Ld(t) {
|
|
5028
5028
|
const e = te(), n = F.innerParams.get(this);
|
|
5029
5029
|
if (!e || ft(e, n.hideClass.popup))
|
|
5030
|
-
return
|
|
5030
|
+
return Ne(
|
|
5031
5031
|
"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."
|
|
5032
5032
|
);
|
|
5033
5033
|
const o = Od(t), r = Object.assign({}, n, o);
|
|
5034
|
-
|
|
5034
|
+
rs(this, r), F.innerParams.set(this, r), Object.defineProperties(this, {
|
|
5035
5035
|
params: {
|
|
5036
5036
|
value: Object.assign({}, this.params, t),
|
|
5037
5037
|
writable: !1,
|
|
@@ -5042,7 +5042,7 @@ function xd(t) {
|
|
|
5042
5042
|
const Od = (t) => {
|
|
5043
5043
|
const e = {};
|
|
5044
5044
|
return Object.keys(t).forEach((n) => {
|
|
5045
|
-
|
|
5045
|
+
Gi(n) ? e[n] = t[n] : Ne(
|
|
5046
5046
|
`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
5047
5047
|
|
|
5048
5048
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`
|
|
@@ -5052,56 +5052,56 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
5052
5052
|
function $d() {
|
|
5053
5053
|
const t = F.domCache.get(this), e = F.innerParams.get(this);
|
|
5054
5054
|
if (!e) {
|
|
5055
|
-
|
|
5055
|
+
hs(this);
|
|
5056
5056
|
return;
|
|
5057
5057
|
}
|
|
5058
5058
|
t.popup && j.swalCloseEventFinishedCallback && (j.swalCloseEventFinishedCallback(), delete j.swalCloseEventFinishedCallback), j.deferDisposalTimer && (clearTimeout(j.deferDisposalTimer), delete j.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(), Md(this);
|
|
5059
5059
|
}
|
|
5060
5060
|
const Md = (t) => {
|
|
5061
|
-
|
|
5062
|
-
},
|
|
5061
|
+
hs(t), delete t.params, delete j.keydownHandler, delete j.keydownTarget, delete j.currentInstance;
|
|
5062
|
+
}, hs = (t) => {
|
|
5063
5063
|
t.isAwaitingPromise() ? (vo(F, t), F.awaitingPromise.set(t, !0)) : (vo(_n, t), vo(F, t));
|
|
5064
5064
|
}, vo = (t, e) => {
|
|
5065
5065
|
for (const n in t)
|
|
5066
5066
|
t[n].delete(e);
|
|
5067
|
-
},
|
|
5067
|
+
}, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5068
5068
|
__proto__: null,
|
|
5069
5069
|
_destroy: $d,
|
|
5070
|
-
close:
|
|
5071
|
-
closeModal:
|
|
5072
|
-
closePopup:
|
|
5073
|
-
closeToast:
|
|
5070
|
+
close: Bn,
|
|
5071
|
+
closeModal: Bn,
|
|
5072
|
+
closePopup: Bn,
|
|
5073
|
+
closeToast: Bn,
|
|
5074
5074
|
disableButtons: Id,
|
|
5075
5075
|
disableInput: Ad,
|
|
5076
|
-
disableLoading:
|
|
5076
|
+
disableLoading: si,
|
|
5077
5077
|
enableButtons: Cd,
|
|
5078
5078
|
enableInput: Td,
|
|
5079
5079
|
getInput: sd,
|
|
5080
|
-
getProgressSteps:
|
|
5081
|
-
handleAwaitingPromise:
|
|
5082
|
-
hideLoading:
|
|
5080
|
+
getProgressSteps: xd,
|
|
5081
|
+
handleAwaitingPromise: En,
|
|
5082
|
+
hideLoading: si,
|
|
5083
5083
|
isAwaitingPromise: yd,
|
|
5084
5084
|
rejectPromise: wd,
|
|
5085
|
-
resetValidationMessage:
|
|
5086
|
-
showValidationMessage:
|
|
5087
|
-
update:
|
|
5085
|
+
resetValidationMessage: Pd,
|
|
5086
|
+
showValidationMessage: Ed,
|
|
5087
|
+
update: Ld
|
|
5088
5088
|
}, Symbol.toStringTag, { value: "Module" })), Rd = (t) => {
|
|
5089
5089
|
const e = F.innerParams.get(t);
|
|
5090
|
-
t.disableButtons(), e.input ?
|
|
5090
|
+
t.disableButtons(), e.input ? vs(t, "confirm") : ir(t, !0);
|
|
5091
5091
|
}, Dd = (t) => {
|
|
5092
5092
|
const e = F.innerParams.get(t);
|
|
5093
|
-
t.disableButtons(), e.returnInputValueOnDeny ?
|
|
5094
|
-
},
|
|
5093
|
+
t.disableButtons(), e.returnInputValueOnDeny ? vs(t, "deny") : rr(t, !1);
|
|
5094
|
+
}, Nd = (t, e) => {
|
|
5095
5095
|
t.disableButtons(), e(Kt.cancel);
|
|
5096
|
-
},
|
|
5096
|
+
}, vs = (t, e) => {
|
|
5097
5097
|
const n = F.innerParams.get(t);
|
|
5098
5098
|
if (!n.input)
|
|
5099
5099
|
return Lt(
|
|
5100
5100
|
`The "input" parameter is needed to be set when using returnInputValueOn${qo(e)}`
|
|
5101
5101
|
);
|
|
5102
5102
|
const o = Ju(t, n);
|
|
5103
|
-
n.inputValidator ?
|
|
5104
|
-
},
|
|
5103
|
+
n.inputValidator ? Bd(t, o, e) : t.getInput().checkValidity() ? e === "deny" ? rr(t, o) : ir(t, o) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
5104
|
+
}, Bd = (t, e, n) => {
|
|
5105
5105
|
const o = F.innerParams.get(t);
|
|
5106
5106
|
t.disableInput(), Promise.resolve().then(
|
|
5107
5107
|
() => kn(o.inputValidator(e, o.validationMessage))
|
|
@@ -5113,19 +5113,19 @@ const Md = (t) => {
|
|
|
5113
5113
|
n.showLoaderOnDeny && Ft(wt()), n.preDeny ? (F.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
5114
5114
|
() => kn(n.preDeny(e, n.validationMessage))
|
|
5115
5115
|
).then((r) => {
|
|
5116
|
-
r === !1 ? (t.hideLoading(),
|
|
5117
|
-
}).catch((r) =>
|
|
5118
|
-
},
|
|
5116
|
+
r === !1 ? (t.hideLoading(), En(t)) : t.closePopup({ isDenied: !0, value: typeof r > "u" ? e : r });
|
|
5117
|
+
}).catch((r) => ys(t || void 0, r))) : t.closePopup({ isDenied: !0, value: e });
|
|
5118
|
+
}, li = (t, e) => {
|
|
5119
5119
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
5120
|
-
},
|
|
5120
|
+
}, ys = (t, e) => {
|
|
5121
5121
|
t.rejectPromise(e);
|
|
5122
5122
|
}, ir = (t, e) => {
|
|
5123
5123
|
const n = F.innerParams.get(t || void 0);
|
|
5124
5124
|
n.showLoaderOnConfirm && Ft(), n.preConfirm ? (t.resetValidationMessage(), F.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
5125
5125
|
() => kn(n.preConfirm(e, n.validationMessage))
|
|
5126
5126
|
).then((r) => {
|
|
5127
|
-
He(to()) || r === !1 ? (t.hideLoading(),
|
|
5128
|
-
}).catch((r) =>
|
|
5127
|
+
He(to()) || r === !1 ? (t.hideLoading(), En(t)) : li(t, typeof r > "u" ? e : r);
|
|
5128
|
+
}).catch((r) => ys(t || void 0, r))) : li(t, e);
|
|
5129
5129
|
}, Ud = (t, e, n) => {
|
|
5130
5130
|
F.innerParams.get(t).toast ? Hd(t, e, n) : (Fd(e), Vd(e), Kd(t, e, n));
|
|
5131
5131
|
}, Hd = (t, e, n) => {
|
|
@@ -5156,11 +5156,11 @@ const Fd = (t) => {
|
|
|
5156
5156
|
}
|
|
5157
5157
|
o.target === e.container && eo(r.allowOutsideClick) && n(Kt.backdrop);
|
|
5158
5158
|
};
|
|
5159
|
-
}, zd = (t) => typeof t == "object" && t.jquery,
|
|
5159
|
+
}, zd = (t) => typeof t == "object" && t.jquery, ci = (t) => t instanceof Element || zd(t), Wd = (t) => {
|
|
5160
5160
|
const e = {};
|
|
5161
|
-
return typeof t[0] == "object" && !
|
|
5161
|
+
return typeof t[0] == "object" && !ci(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
5162
5162
|
const r = t[o];
|
|
5163
|
-
typeof r == "string" ||
|
|
5163
|
+
typeof r == "string" || ci(r) ? e[n] = r : r !== void 0 && Lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
|
|
5164
5164
|
}), e;
|
|
5165
5165
|
};
|
|
5166
5166
|
function Gd(...t) {
|
|
@@ -5175,27 +5175,27 @@ function qd(t) {
|
|
|
5175
5175
|
}
|
|
5176
5176
|
return e;
|
|
5177
5177
|
}
|
|
5178
|
-
const Yd = () => j.timeout && j.timeout.getTimerLeft(),
|
|
5178
|
+
const Yd = () => j.timeout && j.timeout.getTimerLeft(), bs = () => {
|
|
5179
5179
|
if (j.timeout)
|
|
5180
5180
|
return Dc(), j.timeout.stop();
|
|
5181
|
-
},
|
|
5181
|
+
}, ws = () => {
|
|
5182
5182
|
if (j.timeout) {
|
|
5183
5183
|
const t = j.timeout.start();
|
|
5184
5184
|
return tr(t), t;
|
|
5185
5185
|
}
|
|
5186
5186
|
}, Xd = () => {
|
|
5187
5187
|
const t = j.timeout;
|
|
5188
|
-
return t && (t.running ?
|
|
5188
|
+
return t && (t.running ? bs() : ws());
|
|
5189
5189
|
}, Zd = (t) => {
|
|
5190
5190
|
if (j.timeout) {
|
|
5191
5191
|
const e = j.timeout.increase(t);
|
|
5192
5192
|
return tr(e, !0), e;
|
|
5193
5193
|
}
|
|
5194
5194
|
}, Jd = () => j.timeout && j.timeout.isRunning();
|
|
5195
|
-
let
|
|
5195
|
+
let ui = !1;
|
|
5196
5196
|
const Mo = {};
|
|
5197
5197
|
function Qd(t = "data-swal-template") {
|
|
5198
|
-
Mo[t] = this,
|
|
5198
|
+
Mo[t] = this, ui || (document.body.addEventListener("click", ef), ui = !0);
|
|
5199
5199
|
}
|
|
5200
5200
|
const ef = (t) => {
|
|
5201
5201
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
@@ -5211,39 +5211,39 @@ const ef = (t) => {
|
|
|
5211
5211
|
argsToParams: Wd,
|
|
5212
5212
|
bindClickHandler: Qd,
|
|
5213
5213
|
clickCancel: cd,
|
|
5214
|
-
clickConfirm:
|
|
5214
|
+
clickConfirm: cs,
|
|
5215
5215
|
clickDeny: ld,
|
|
5216
5216
|
enableLoading: Ft,
|
|
5217
5217
|
fire: Gd,
|
|
5218
5218
|
getActions: Tn,
|
|
5219
|
-
getCancelButton:
|
|
5219
|
+
getCancelButton: At,
|
|
5220
5220
|
getCloseButton: Zo,
|
|
5221
5221
|
getConfirmButton: Ze,
|
|
5222
5222
|
getContainer: ke,
|
|
5223
5223
|
getDenyButton: wt,
|
|
5224
5224
|
getFocusableElements: Jo,
|
|
5225
|
-
getFooter:
|
|
5225
|
+
getFooter: Ji,
|
|
5226
5226
|
getHtmlContainer: Xn,
|
|
5227
5227
|
getIcon: In,
|
|
5228
|
-
getImage:
|
|
5229
|
-
getInputLabel:
|
|
5228
|
+
getImage: Xi,
|
|
5229
|
+
getInputLabel: Lc,
|
|
5230
5230
|
getLoader: Vt,
|
|
5231
5231
|
getPopup: te,
|
|
5232
5232
|
getTimerLeft: Yd,
|
|
5233
5233
|
getTimerProgressBar: no,
|
|
5234
|
-
getTitle:
|
|
5234
|
+
getTitle: Yi,
|
|
5235
5235
|
getValidationMessage: to,
|
|
5236
5236
|
increaseTimer: Zd,
|
|
5237
|
-
isDeprecatedParameter:
|
|
5237
|
+
isDeprecatedParameter: Lo,
|
|
5238
5238
|
isLoading: $c,
|
|
5239
5239
|
isTimerRunning: Jd,
|
|
5240
|
-
isUpdatableParameter:
|
|
5241
|
-
isValidParameter:
|
|
5240
|
+
isUpdatableParameter: Gi,
|
|
5241
|
+
isValidParameter: Wi,
|
|
5242
5242
|
isVisible: ad,
|
|
5243
5243
|
mixin: qd,
|
|
5244
|
-
resumeTimer:
|
|
5244
|
+
resumeTimer: ws,
|
|
5245
5245
|
showLoading: Ft,
|
|
5246
|
-
stopTimer:
|
|
5246
|
+
stopTimer: bs,
|
|
5247
5247
|
toggleTimer: Xd
|
|
5248
5248
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5249
5249
|
let Ro;
|
|
@@ -5265,11 +5265,11 @@ class zt {
|
|
|
5265
5265
|
F.promise.set(this, o);
|
|
5266
5266
|
}
|
|
5267
5267
|
_main(e, n = {}) {
|
|
5268
|
-
|
|
5268
|
+
Pc(Object.assign({}, n, e)), j.currentInstance && (j.currentInstance._destroy(), Qo() && is()), j.currentInstance = this;
|
|
5269
5269
|
const o = of(e, n);
|
|
5270
5270
|
Ru(o), Object.freeze(o), j.timeout && (j.timeout.stop(), delete j.timeout), clearTimeout(j.restoreFocusTimeout);
|
|
5271
5271
|
const r = rf(this);
|
|
5272
|
-
return
|
|
5272
|
+
return rs(this, o), F.innerParams.set(this, o), nf(this, r, o);
|
|
5273
5273
|
}
|
|
5274
5274
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
5275
5275
|
then(e) {
|
|
@@ -5283,12 +5283,12 @@ const nf = (t, e, n) => new Promise((o, r) => {
|
|
|
5283
5283
|
const i = (a) => {
|
|
5284
5284
|
t.closePopup({ isDismissed: !0, dismiss: a });
|
|
5285
5285
|
};
|
|
5286
|
-
_n.swalPromiseResolve.set(t, o), _n.swalPromiseReject.set(t, r), e.confirmButton.onclick = () => Rd(t), e.denyButton.onclick = () => Dd(t), e.cancelButton.onclick = () =>
|
|
5286
|
+
_n.swalPromiseResolve.set(t, o), _n.swalPromiseReject.set(t, r), e.confirmButton.onclick = () => Rd(t), e.denyButton.onclick = () => Dd(t), e.cancelButton.onclick = () => Nd(t, i), e.closeButton.onclick = () => i(Kt.close), Ud(t, e, i), ud(t, j, n, i), Zu(t, n), Wu(n), sf(j, n, i), af(e, n), setTimeout(() => {
|
|
5287
5287
|
e.container.scrollTop = 0;
|
|
5288
5288
|
});
|
|
5289
5289
|
}), of = (t, e) => {
|
|
5290
|
-
const n = Iu(t), o = Object.assign({},
|
|
5291
|
-
return o.showClass = Object.assign({},
|
|
5290
|
+
const n = Iu(t), o = Object.assign({}, Ut, e, n, t);
|
|
5291
|
+
return o.showClass = Object.assign({}, Ut.showClass, o.showClass), o.hideClass = Object.assign({}, Ut.hideClass, o.hideClass), o;
|
|
5292
5292
|
}, rf = (t) => {
|
|
5293
5293
|
const e = {
|
|
5294
5294
|
popup: te(),
|
|
@@ -5296,11 +5296,11 @@ const nf = (t, e, n) => new Promise((o, r) => {
|
|
|
5296
5296
|
actions: Tn(),
|
|
5297
5297
|
confirmButton: Ze(),
|
|
5298
5298
|
denyButton: wt(),
|
|
5299
|
-
cancelButton:
|
|
5299
|
+
cancelButton: At(),
|
|
5300
5300
|
loader: Vt(),
|
|
5301
5301
|
closeButton: Zo(),
|
|
5302
5302
|
validationMessage: to(),
|
|
5303
|
-
progressSteps:
|
|
5303
|
+
progressSteps: Zi()
|
|
5304
5304
|
};
|
|
5305
5305
|
return F.domCache.set(t, e), e;
|
|
5306
5306
|
}, sf = (t, e, n) => {
|
|
@@ -5319,9 +5319,9 @@ const nf = (t, e, n) => new Promise((o, r) => {
|
|
|
5319
5319
|
}, lf = (t, e) => e.focusDeny && He(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && He(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && He(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, cf = () => {
|
|
5320
5320
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
5321
5321
|
};
|
|
5322
|
-
Object.assign(zt.prototype,
|
|
5322
|
+
Object.assign(zt.prototype, gs);
|
|
5323
5323
|
Object.assign(zt, tf);
|
|
5324
|
-
Object.keys(
|
|
5324
|
+
Object.keys(gs).forEach((t) => {
|
|
5325
5325
|
zt[t] = function(...e) {
|
|
5326
5326
|
if (Ro)
|
|
5327
5327
|
return Ro[t](...e);
|
|
@@ -5333,21 +5333,21 @@ const Pt = zt;
|
|
|
5333
5333
|
Pt.default = Pt;
|
|
5334
5334
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
5335
5335
|
const {
|
|
5336
|
-
entries:
|
|
5337
|
-
setPrototypeOf:
|
|
5336
|
+
entries: _s,
|
|
5337
|
+
setPrototypeOf: di,
|
|
5338
5338
|
isFrozen: uf,
|
|
5339
5339
|
getPrototypeOf: df,
|
|
5340
5340
|
getOwnPropertyDescriptor: ff
|
|
5341
5341
|
} = Object;
|
|
5342
5342
|
let {
|
|
5343
|
-
freeze:
|
|
5343
|
+
freeze: Pe,
|
|
5344
5344
|
seal: Ke,
|
|
5345
|
-
create:
|
|
5345
|
+
create: Ss
|
|
5346
5346
|
} = Object, {
|
|
5347
5347
|
apply: Do,
|
|
5348
|
-
construct:
|
|
5348
|
+
construct: No
|
|
5349
5349
|
} = typeof Reflect < "u" && Reflect;
|
|
5350
|
-
|
|
5350
|
+
Pe || (Pe = function(e) {
|
|
5351
5351
|
return e;
|
|
5352
5352
|
});
|
|
5353
5353
|
Ke || (Ke = function(e) {
|
|
@@ -5356,11 +5356,11 @@ Ke || (Ke = function(e) {
|
|
|
5356
5356
|
Do || (Do = function(e, n, o) {
|
|
5357
5357
|
return e.apply(n, o);
|
|
5358
5358
|
});
|
|
5359
|
-
|
|
5359
|
+
No || (No = function(e, n) {
|
|
5360
5360
|
return new e(...n);
|
|
5361
5361
|
});
|
|
5362
|
-
const Un =
|
|
5363
|
-
function
|
|
5362
|
+
const Un = xe(Array.prototype.forEach), mf = xe(Array.prototype.lastIndexOf), fi = xe(Array.prototype.pop), Jt = xe(Array.prototype.push), pf = xe(Array.prototype.splice), Kn = xe(String.prototype.toLowerCase), yo = xe(String.prototype.toString), mi = xe(String.prototype.match), Qt = xe(String.prototype.replace), hf = xe(String.prototype.indexOf), gf = xe(String.prototype.trim), Ge = xe(Object.prototype.hasOwnProperty), Te = xe(RegExp.prototype.test), en = vf(TypeError);
|
|
5363
|
+
function xe(t) {
|
|
5364
5364
|
return function(e) {
|
|
5365
5365
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
5366
5366
|
o[r - 1] = arguments[r];
|
|
@@ -5371,12 +5371,12 @@ function vf(t) {
|
|
|
5371
5371
|
return function() {
|
|
5372
5372
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
5373
5373
|
n[o] = arguments[o];
|
|
5374
|
-
return
|
|
5374
|
+
return No(t, n);
|
|
5375
5375
|
};
|
|
5376
5376
|
}
|
|
5377
5377
|
function z(t, e) {
|
|
5378
5378
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Kn;
|
|
5379
|
-
|
|
5379
|
+
di && di(t, null);
|
|
5380
5380
|
let o = e.length;
|
|
5381
5381
|
for (; o--; ) {
|
|
5382
5382
|
let r = e[o];
|
|
@@ -5394,8 +5394,8 @@ function yf(t) {
|
|
|
5394
5394
|
return t;
|
|
5395
5395
|
}
|
|
5396
5396
|
function Ct(t) {
|
|
5397
|
-
const e =
|
|
5398
|
-
for (const [n, o] of
|
|
5397
|
+
const e = Ss(null);
|
|
5398
|
+
for (const [n, o] of _s(t))
|
|
5399
5399
|
Ge(t, n) && (Array.isArray(o) ? e[n] = yf(o) : o && typeof o == "object" && o.constructor === Object ? e[n] = Ct(o) : e[n] = o);
|
|
5400
5400
|
return e;
|
|
5401
5401
|
}
|
|
@@ -5404,9 +5404,9 @@ function tn(t, e) {
|
|
|
5404
5404
|
const o = ff(t, e);
|
|
5405
5405
|
if (o) {
|
|
5406
5406
|
if (o.get)
|
|
5407
|
-
return
|
|
5407
|
+
return xe(o.get);
|
|
5408
5408
|
if (typeof o.value == "function")
|
|
5409
|
-
return
|
|
5409
|
+
return xe(o.value);
|
|
5410
5410
|
}
|
|
5411
5411
|
t = df(t);
|
|
5412
5412
|
}
|
|
@@ -5415,22 +5415,22 @@ function tn(t, e) {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
return n;
|
|
5417
5417
|
}
|
|
5418
|
-
const
|
|
5418
|
+
const pi = Pe(["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"]), bo = Pe(["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"]), wo = Pe(["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"]), bf = Pe(["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"]), _o = Pe(["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"]), wf = Pe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), hi = Pe(["#text"]), gi = Pe(["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", "popover", "popovertarget", "popovertargetaction", "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", "wrap", "xmlns", "slot"]), So = Pe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "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", "exponent", "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", "intercept", "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", "slope", "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", "tablevalues", "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"]), vi = Pe(["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"]), Hn = Pe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _f = Ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Sf = Ke(/<%[\w\W]*|[\w\W]*%>/gm), kf = Ke(/\$\{[\w\W]*/gm), Cf = Ke(/^data-[\-\w.\u00B7-\uFFFF]+$/), If = Ke(/^aria-[\-\w]+$/), ks = Ke(
|
|
5419
5419
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5420
5420
|
// eslint-disable-line no-useless-escape
|
|
5421
5421
|
), Tf = Ke(/^(?:\w+script|data):/i), Af = Ke(
|
|
5422
5422
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
5423
5423
|
// eslint-disable-line no-control-regex
|
|
5424
|
-
),
|
|
5425
|
-
var
|
|
5424
|
+
), Cs = Ke(/^html$/i), Ef = Ke(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
5425
|
+
var yi = /* @__PURE__ */ Object.freeze({
|
|
5426
5426
|
__proto__: null,
|
|
5427
5427
|
ARIA_ATTR: If,
|
|
5428
5428
|
ATTR_WHITESPACE: Af,
|
|
5429
|
-
CUSTOM_ELEMENT:
|
|
5429
|
+
CUSTOM_ELEMENT: Ef,
|
|
5430
5430
|
DATA_ATTR: Cf,
|
|
5431
|
-
DOCTYPE_NAME:
|
|
5431
|
+
DOCTYPE_NAME: Cs,
|
|
5432
5432
|
ERB_EXPR: Sf,
|
|
5433
|
-
IS_ALLOWED_URI:
|
|
5433
|
+
IS_ALLOWED_URI: ks,
|
|
5434
5434
|
IS_SCRIPT_OR_DATA: Tf,
|
|
5435
5435
|
MUSTACHE_EXPR: _f,
|
|
5436
5436
|
TMPLIT_EXPR: kf
|
|
@@ -5442,9 +5442,9 @@ const nn = {
|
|
|
5442
5442
|
progressingInstruction: 7,
|
|
5443
5443
|
comment: 8,
|
|
5444
5444
|
document: 9
|
|
5445
|
-
},
|
|
5445
|
+
}, Pf = function() {
|
|
5446
5446
|
return typeof window > "u" ? null : window;
|
|
5447
|
-
},
|
|
5447
|
+
}, xf = function(e, n) {
|
|
5448
5448
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
5449
5449
|
return null;
|
|
5450
5450
|
let o = null;
|
|
@@ -5463,7 +5463,7 @@ const nn = {
|
|
|
5463
5463
|
} catch {
|
|
5464
5464
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
5465
5465
|
}
|
|
5466
|
-
},
|
|
5466
|
+
}, bi = function() {
|
|
5467
5467
|
return {
|
|
5468
5468
|
afterSanitizeAttributes: [],
|
|
5469
5469
|
afterSanitizeElements: [],
|
|
@@ -5476,9 +5476,9 @@ const nn = {
|
|
|
5476
5476
|
uponSanitizeShadowNode: []
|
|
5477
5477
|
};
|
|
5478
5478
|
};
|
|
5479
|
-
function
|
|
5480
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
5481
|
-
const e = (R) =>
|
|
5479
|
+
function Is() {
|
|
5480
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pf();
|
|
5481
|
+
const e = (R) => Is(R);
|
|
5482
5482
|
if (e.version = "3.2.4", e.removed = [], !t || !t.document || t.document.nodeType !== nn.document || !t.Element)
|
|
5483
5483
|
return e.isSupported = !1, e;
|
|
5484
5484
|
let {
|
|
@@ -5494,7 +5494,7 @@ function Cs() {
|
|
|
5494
5494
|
HTMLFormElement: m,
|
|
5495
5495
|
DOMParser: g,
|
|
5496
5496
|
trustedTypes: w
|
|
5497
|
-
} = t, k = l.prototype, A = tn(k, "cloneNode"),
|
|
5497
|
+
} = t, k = l.prototype, A = tn(k, "cloneNode"), P = tn(k, "remove"), b = tn(k, "nextSibling"), S = tn(k, "childNodes"), N = tn(k, "parentNode");
|
|
5498
5498
|
if (typeof a == "function") {
|
|
5499
5499
|
const R = n.createElement("template");
|
|
5500
5500
|
R.content && R.content.ownerDocument && (n = R.content.ownerDocument);
|
|
@@ -5503,13 +5503,13 @@ function Cs() {
|
|
|
5503
5503
|
const {
|
|
5504
5504
|
implementation: ge,
|
|
5505
5505
|
createNodeIterator: le,
|
|
5506
|
-
createDocumentFragment:
|
|
5506
|
+
createDocumentFragment: Be,
|
|
5507
5507
|
getElementsByTagName: ue
|
|
5508
5508
|
} = n, {
|
|
5509
5509
|
importNode: X
|
|
5510
5510
|
} = o;
|
|
5511
|
-
let D =
|
|
5512
|
-
e.isSupported = typeof
|
|
5511
|
+
let D = bi();
|
|
5512
|
+
e.isSupported = typeof _s == "function" && typeof N == "function" && ge && ge.createHTMLDocument !== void 0;
|
|
5513
5513
|
const {
|
|
5514
5514
|
MUSTACHE_EXPR: J,
|
|
5515
5515
|
ERB_EXPR: ve,
|
|
@@ -5519,14 +5519,14 @@ function Cs() {
|
|
|
5519
5519
|
IS_SCRIPT_OR_DATA: Qe,
|
|
5520
5520
|
ATTR_WHITESPACE: et,
|
|
5521
5521
|
CUSTOM_ELEMENT: St
|
|
5522
|
-
} =
|
|
5522
|
+
} = yi;
|
|
5523
5523
|
let {
|
|
5524
5524
|
IS_ALLOWED_URI: Fe
|
|
5525
|
-
} =
|
|
5526
|
-
const p = z({}, [...
|
|
5525
|
+
} = yi, c = null;
|
|
5526
|
+
const p = z({}, [...pi, ...bo, ...wo, ..._o, ...hi]);
|
|
5527
5527
|
let y = null;
|
|
5528
|
-
const T = z({}, [...
|
|
5529
|
-
let v = Object.seal(
|
|
5528
|
+
const T = z({}, [...gi, ...So, ...vi, ...Hn]);
|
|
5529
|
+
let v = Object.seal(Ss(null, {
|
|
5530
5530
|
tagNameCheck: {
|
|
5531
5531
|
writable: !0,
|
|
5532
5532
|
configurable: !1,
|
|
@@ -5545,53 +5545,53 @@ function Cs() {
|
|
|
5545
5545
|
enumerable: !0,
|
|
5546
5546
|
value: !1
|
|
5547
5547
|
}
|
|
5548
|
-
})),
|
|
5548
|
+
})), E = null, _ = null, C = !0, L = !0, x = !1, B = !0, V = !1, Le = !0, be = !1, we = !1, st = !1, Ot = !1, Pn = !1, xn = !1, cr = !0, ur = !1;
|
|
5549
5549
|
const Ms = "user-content-";
|
|
5550
|
-
let io = !0, Wt = !1,
|
|
5551
|
-
const
|
|
5552
|
-
let
|
|
5553
|
-
const
|
|
5550
|
+
let io = !0, Wt = !1, $t = {}, Mt = null;
|
|
5551
|
+
const dr = z({}, ["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"]);
|
|
5552
|
+
let fr = null;
|
|
5553
|
+
const mr = z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
5554
5554
|
let so = null;
|
|
5555
|
-
const
|
|
5556
|
-
let
|
|
5557
|
-
const Rs = z({}, [
|
|
5555
|
+
const pr = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ln = "http://www.w3.org/1998/Math/MathML", On = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xhtml";
|
|
5556
|
+
let Rt = at, ao = !1, lo = null;
|
|
5557
|
+
const Rs = z({}, [Ln, On, at], yo);
|
|
5558
5558
|
let $n = z({}, ["mi", "mo", "mn", "ms", "mtext"]), Mn = z({}, ["annotation-xml"]);
|
|
5559
5559
|
const Ds = z({}, ["title", "style", "font", "a", "script"]);
|
|
5560
5560
|
let Gt = null;
|
|
5561
|
-
const
|
|
5562
|
-
let de = null,
|
|
5563
|
-
const Us = n.createElement("form"),
|
|
5561
|
+
const Ns = ["application/xhtml+xml", "text/html"], Bs = "text/html";
|
|
5562
|
+
let de = null, Dt = null;
|
|
5563
|
+
const Us = n.createElement("form"), hr = function(f) {
|
|
5564
5564
|
return f instanceof RegExp || f instanceof Function;
|
|
5565
5565
|
}, co = function() {
|
|
5566
5566
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5567
|
-
if (!(
|
|
5567
|
+
if (!(Dt && Dt === f)) {
|
|
5568
5568
|
if ((!f || typeof f != "object") && (f = {}), f = Ct(f), Gt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5569
|
-
|
|
5569
|
+
Ns.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Bs : f.PARSER_MEDIA_TYPE, de = Gt === "application/xhtml+xml" ? yo : Kn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, de) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, de) : T, lo = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yo) : Rs, so = Ge(f, "ADD_URI_SAFE_ATTR") ? z(Ct(pr), f.ADD_URI_SAFE_ATTR, de) : pr, fr = Ge(f, "ADD_DATA_URI_TAGS") ? z(Ct(mr), f.ADD_DATA_URI_TAGS, de) : mr, Mt = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, de) : dr, E = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, de) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, de) : {}, $t = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, x = f.ALLOW_UNKNOWN_PROTOCOLS || !1, B = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, Le = f.SAFE_FOR_XML !== !1, be = f.WHOLE_DOCUMENT || !1, Ot = f.RETURN_DOM || !1, Pn = f.RETURN_DOM_FRAGMENT || !1, xn = f.RETURN_TRUSTED_TYPE || !1, st = f.FORCE_BODY || !1, cr = f.SANITIZE_DOM !== !1, ur = f.SANITIZE_NAMED_PROPS || !1, io = f.KEEP_CONTENT !== !1, Wt = f.IN_PLACE || !1, Fe = f.ALLOWED_URI_REGEXP || ks, Rt = f.NAMESPACE || at, $n = f.MATHML_TEXT_INTEGRATION_POINTS || $n, Mn = f.HTML_INTEGRATION_POINTS || Mn, v = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && hr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (v.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && hr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (v.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (v.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (L = !1), Pn && (Ot = !0), $t && (c = z({}, hi), y = [], $t.html === !0 && (z(c, pi), z(y, gi)), $t.svg === !0 && (z(c, bo), z(y, So), z(y, Hn)), $t.svgFilters === !0 && (z(c, wo), z(y, So), z(y, Hn)), $t.mathMl === !0 && (z(c, _o), z(y, vi), z(y, Hn))), f.ADD_TAGS && (c === p && (c = Ct(c)), z(c, f.ADD_TAGS, de)), f.ADD_ATTR && (y === T && (y = Ct(y)), z(y, f.ADD_ATTR, de)), f.ADD_URI_SAFE_ATTR && z(so, f.ADD_URI_SAFE_ATTR, de), f.FORBID_CONTENTS && (Mt === dr && (Mt = Ct(Mt)), z(Mt, f.FORBID_CONTENTS, de)), io && (c["#text"] = !0), be && z(c, ["html", "head", "body"]), c.table && (z(c, ["tbody"]), delete E.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
5570
5570
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5571
5571
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5572
5572
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
5573
5573
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5574
5574
|
H = f.TRUSTED_TYPES_POLICY, Y = H.createHTML("");
|
|
5575
5575
|
} else
|
|
5576
|
-
H === void 0 && (H =
|
|
5577
|
-
|
|
5576
|
+
H === void 0 && (H = xf(w, r)), H !== null && typeof Y == "string" && (Y = H.createHTML(""));
|
|
5577
|
+
Pe && Pe(f), Dt = f;
|
|
5578
5578
|
}
|
|
5579
|
-
},
|
|
5580
|
-
let I =
|
|
5579
|
+
}, gr = z({}, [...bo, ...wo, ...bf]), vr = z({}, [..._o, ...wf]), Hs = function(f) {
|
|
5580
|
+
let I = N(f);
|
|
5581
5581
|
(!I || !I.tagName) && (I = {
|
|
5582
|
-
namespaceURI:
|
|
5582
|
+
namespaceURI: Rt,
|
|
5583
5583
|
tagName: "template"
|
|
5584
5584
|
});
|
|
5585
|
-
const $ = Kn(f.tagName),
|
|
5586
|
-
return lo[f.namespaceURI] ? f.namespaceURI === On ? I.namespaceURI === at ? $ === "svg" : I.namespaceURI ===
|
|
5585
|
+
const $ = Kn(f.tagName), ie = Kn(I.tagName);
|
|
5586
|
+
return lo[f.namespaceURI] ? f.namespaceURI === On ? I.namespaceURI === at ? $ === "svg" : I.namespaceURI === Ln ? $ === "svg" && (ie === "annotation-xml" || $n[ie]) : !!gr[$] : f.namespaceURI === Ln ? I.namespaceURI === at ? $ === "math" : I.namespaceURI === On ? $ === "math" && Mn[ie] : !!vr[$] : f.namespaceURI === at ? I.namespaceURI === On && !Mn[ie] || I.namespaceURI === Ln && !$n[ie] ? !1 : !vr[$] && (Ds[$] || !gr[$]) : !!(Gt === "application/xhtml+xml" && lo[f.namespaceURI]) : !1;
|
|
5587
5587
|
}, tt = function(f) {
|
|
5588
5588
|
Jt(e.removed, {
|
|
5589
5589
|
element: f
|
|
5590
5590
|
});
|
|
5591
5591
|
try {
|
|
5592
|
-
|
|
5592
|
+
N(f).removeChild(f);
|
|
5593
5593
|
} catch {
|
|
5594
|
-
|
|
5594
|
+
P(f);
|
|
5595
5595
|
}
|
|
5596
5596
|
}, Rn = function(f, I) {
|
|
5597
5597
|
try {
|
|
@@ -5606,7 +5606,7 @@ function Cs() {
|
|
|
5606
5606
|
});
|
|
5607
5607
|
}
|
|
5608
5608
|
if (I.removeAttribute(f), f === "is")
|
|
5609
|
-
if (
|
|
5609
|
+
if (Ot || Pn)
|
|
5610
5610
|
try {
|
|
5611
5611
|
tt(I);
|
|
5612
5612
|
} catch {
|
|
@@ -5616,31 +5616,31 @@ function Cs() {
|
|
|
5616
5616
|
I.setAttribute(f, "");
|
|
5617
5617
|
} catch {
|
|
5618
5618
|
}
|
|
5619
|
-
},
|
|
5619
|
+
}, yr = function(f) {
|
|
5620
5620
|
let I = null, $ = null;
|
|
5621
5621
|
if (st)
|
|
5622
5622
|
f = "<remove></remove>" + f;
|
|
5623
5623
|
else {
|
|
5624
|
-
const me =
|
|
5624
|
+
const me = mi(f, /^[\r\n\t ]+/);
|
|
5625
5625
|
$ = me && me[0];
|
|
5626
5626
|
}
|
|
5627
|
-
Gt === "application/xhtml+xml" &&
|
|
5628
|
-
const
|
|
5629
|
-
if (
|
|
5627
|
+
Gt === "application/xhtml+xml" && Rt === at && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
5628
|
+
const ie = H ? H.createHTML(f) : f;
|
|
5629
|
+
if (Rt === at)
|
|
5630
5630
|
try {
|
|
5631
|
-
I = new g().parseFromString(
|
|
5631
|
+
I = new g().parseFromString(ie, Gt);
|
|
5632
5632
|
} catch {
|
|
5633
5633
|
}
|
|
5634
5634
|
if (!I || !I.documentElement) {
|
|
5635
|
-
I = ge.createDocument(
|
|
5635
|
+
I = ge.createDocument(Rt, "template", null);
|
|
5636
5636
|
try {
|
|
5637
|
-
I.documentElement.innerHTML = ao ? Y :
|
|
5637
|
+
I.documentElement.innerHTML = ao ? Y : ie;
|
|
5638
5638
|
} catch {
|
|
5639
5639
|
}
|
|
5640
5640
|
}
|
|
5641
5641
|
const _e = I.body || I.documentElement;
|
|
5642
|
-
return f && $ && _e.insertBefore(n.createTextNode($), _e.childNodes[0] || null),
|
|
5643
|
-
},
|
|
5642
|
+
return f && $ && _e.insertBefore(n.createTextNode($), _e.childNodes[0] || null), Rt === at ? ue.call(I, be ? "html" : "body")[0] : be ? I.documentElement : _e;
|
|
5643
|
+
}, br = function(f) {
|
|
5644
5644
|
return le.call(
|
|
5645
5645
|
f.ownerDocument || f,
|
|
5646
5646
|
f,
|
|
@@ -5650,15 +5650,15 @@ function Cs() {
|
|
|
5650
5650
|
);
|
|
5651
5651
|
}, uo = function(f) {
|
|
5652
5652
|
return f instanceof m && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof d) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
|
|
5653
|
-
},
|
|
5653
|
+
}, wr = function(f) {
|
|
5654
5654
|
return typeof s == "function" && f instanceof s;
|
|
5655
5655
|
};
|
|
5656
5656
|
function lt(R, f, I) {
|
|
5657
5657
|
Un(R, ($) => {
|
|
5658
|
-
$.call(e, f, I,
|
|
5658
|
+
$.call(e, f, I, Dt);
|
|
5659
5659
|
});
|
|
5660
5660
|
}
|
|
5661
|
-
const
|
|
5661
|
+
const _r = function(f) {
|
|
5662
5662
|
let I = null;
|
|
5663
5663
|
if (lt(D.beforeSanitizeElements, f, null), uo(f))
|
|
5664
5664
|
return tt(f), !0;
|
|
@@ -5666,46 +5666,46 @@ function Cs() {
|
|
|
5666
5666
|
if (lt(D.uponSanitizeElement, f, {
|
|
5667
5667
|
tagName: $,
|
|
5668
5668
|
allowedTags: c
|
|
5669
|
-
}), f.hasChildNodes() && !
|
|
5669
|
+
}), f.hasChildNodes() && !wr(f.firstElementChild) && Te(/<[/\w]/g, f.innerHTML) && Te(/<[/\w]/g, f.textContent) || f.nodeType === nn.progressingInstruction || Le && f.nodeType === nn.comment && Te(/<[/\w]/g, f.data))
|
|
5670
5670
|
return tt(f), !0;
|
|
5671
|
-
if (!c[$] ||
|
|
5672
|
-
if (!
|
|
5671
|
+
if (!c[$] || E[$]) {
|
|
5672
|
+
if (!E[$] && kr($) && (v.tagNameCheck instanceof RegExp && Te(v.tagNameCheck, $) || v.tagNameCheck instanceof Function && v.tagNameCheck($)))
|
|
5673
5673
|
return !1;
|
|
5674
|
-
if (io &&
|
|
5675
|
-
const
|
|
5676
|
-
if (_e &&
|
|
5674
|
+
if (io && !Mt[$]) {
|
|
5675
|
+
const ie = N(f) || f.parentNode, _e = S(f) || f.childNodes;
|
|
5676
|
+
if (_e && ie) {
|
|
5677
5677
|
const me = _e.length;
|
|
5678
5678
|
for (let Oe = me - 1; Oe >= 0; --Oe) {
|
|
5679
5679
|
const nt = A(_e[Oe], !0);
|
|
5680
|
-
nt.__removalCount = (f.__removalCount || 0) + 1,
|
|
5680
|
+
nt.__removalCount = (f.__removalCount || 0) + 1, ie.insertBefore(nt, b(f));
|
|
5681
5681
|
}
|
|
5682
5682
|
}
|
|
5683
5683
|
}
|
|
5684
5684
|
return tt(f), !0;
|
|
5685
5685
|
}
|
|
5686
|
-
return f instanceof l && !Hs(f) || ($ === "noscript" || $ === "noembed" || $ === "noframes") && Te(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === nn.text && (I = f.textContent, Un([J, ve, ye], (
|
|
5687
|
-
I = Qt(I,
|
|
5686
|
+
return f instanceof l && !Hs(f) || ($ === "noscript" || $ === "noembed" || $ === "noframes") && Te(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === nn.text && (I = f.textContent, Un([J, ve, ye], (ie) => {
|
|
5687
|
+
I = Qt(I, ie, " ");
|
|
5688
5688
|
}), f.textContent !== I && (Jt(e.removed, {
|
|
5689
5689
|
element: f.cloneNode()
|
|
5690
5690
|
}), f.textContent = I)), lt(D.afterSanitizeElements, f, null), !1);
|
|
5691
|
-
},
|
|
5692
|
-
if (
|
|
5691
|
+
}, Sr = function(f, I, $) {
|
|
5692
|
+
if (cr && (I === "id" || I === "name") && ($ in n || $ in Us))
|
|
5693
5693
|
return !1;
|
|
5694
|
-
if (!(
|
|
5694
|
+
if (!(L && !_[I] && Te(Je, I))) {
|
|
5695
5695
|
if (!(C && Te(it, I))) {
|
|
5696
5696
|
if (!y[I] || _[I]) {
|
|
5697
5697
|
if (
|
|
5698
5698
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
5699
5699
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5700
5700
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
5701
|
-
!(
|
|
5701
|
+
!(kr(f) && (v.tagNameCheck instanceof RegExp && Te(v.tagNameCheck, f) || v.tagNameCheck instanceof Function && v.tagNameCheck(f)) && (v.attributeNameCheck instanceof RegExp && Te(v.attributeNameCheck, I) || v.attributeNameCheck instanceof Function && v.attributeNameCheck(I)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
5702
5702
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5703
5703
|
I === "is" && v.allowCustomizedBuiltInElements && (v.tagNameCheck instanceof RegExp && Te(v.tagNameCheck, $) || v.tagNameCheck instanceof Function && v.tagNameCheck($)))
|
|
5704
5704
|
) return !1;
|
|
5705
5705
|
} else if (!so[I]) {
|
|
5706
5706
|
if (!Te(Fe, Qt($, et, ""))) {
|
|
5707
|
-
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" && hf($, "data:") === 0 &&
|
|
5708
|
-
if (!(
|
|
5707
|
+
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" && hf($, "data:") === 0 && fr[f])) {
|
|
5708
|
+
if (!(x && !Te(Qe, Qt($, et, "")))) {
|
|
5709
5709
|
if ($)
|
|
5710
5710
|
return !1;
|
|
5711
5711
|
}
|
|
@@ -5715,9 +5715,9 @@ function Cs() {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
}
|
|
5717
5717
|
return !0;
|
|
5718
|
-
}, Sr = function(f) {
|
|
5719
|
-
return f !== "annotation-xml" && fi(f, St);
|
|
5720
5718
|
}, kr = function(f) {
|
|
5719
|
+
return f !== "annotation-xml" && mi(f, St);
|
|
5720
|
+
}, Cr = function(f) {
|
|
5721
5721
|
lt(D.beforeSanitizeAttributes, f, null);
|
|
5722
5722
|
const {
|
|
5723
5723
|
attributes: I
|
|
@@ -5731,31 +5731,31 @@ function Cs() {
|
|
|
5731
5731
|
allowedAttributes: y,
|
|
5732
5732
|
forceKeepAttr: void 0
|
|
5733
5733
|
};
|
|
5734
|
-
let
|
|
5735
|
-
for (;
|
|
5736
|
-
const _e = I[
|
|
5734
|
+
let ie = I.length;
|
|
5735
|
+
for (; ie--; ) {
|
|
5736
|
+
const _e = I[ie], {
|
|
5737
5737
|
name: me,
|
|
5738
5738
|
namespaceURI: Oe,
|
|
5739
5739
|
value: nt
|
|
5740
5740
|
} = _e, qt = de(me);
|
|
5741
5741
|
let Ie = me === "value" ? nt : gf(nt);
|
|
5742
|
-
if ($.attrName = qt, $.attrValue = Ie, $.keepAttr = !0, $.forceKeepAttr = void 0, lt(D.uponSanitizeAttribute, f, $), Ie = $.attrValue,
|
|
5742
|
+
if ($.attrName = qt, $.attrValue = Ie, $.keepAttr = !0, $.forceKeepAttr = void 0, lt(D.uponSanitizeAttribute, f, $), Ie = $.attrValue, ur && (qt === "id" || qt === "name") && (Rn(me, f), Ie = Ms + Ie), Le && Te(/((--!?|])>)|<\/(style|title)/i, Ie)) {
|
|
5743
5743
|
Rn(me, f);
|
|
5744
5744
|
continue;
|
|
5745
5745
|
}
|
|
5746
5746
|
if ($.forceKeepAttr || (Rn(me, f), !$.keepAttr))
|
|
5747
5747
|
continue;
|
|
5748
|
-
if (!
|
|
5748
|
+
if (!B && Te(/\/>/i, Ie)) {
|
|
5749
5749
|
Rn(me, f);
|
|
5750
5750
|
continue;
|
|
5751
5751
|
}
|
|
5752
|
-
V && Un([J, ve, ye], (
|
|
5753
|
-
Ie = Qt(Ie,
|
|
5752
|
+
V && Un([J, ve, ye], (Tr) => {
|
|
5753
|
+
Ie = Qt(Ie, Tr, " ");
|
|
5754
5754
|
});
|
|
5755
|
-
const
|
|
5756
|
-
if (
|
|
5755
|
+
const Ir = de(f.nodeName);
|
|
5756
|
+
if (Sr(Ir, qt, Ie)) {
|
|
5757
5757
|
if (H && typeof w == "object" && typeof w.getAttributeType == "function" && !Oe)
|
|
5758
|
-
switch (w.getAttributeType(
|
|
5758
|
+
switch (w.getAttributeType(Ir, qt)) {
|
|
5759
5759
|
case "TrustedHTML": {
|
|
5760
5760
|
Ie = H.createHTML(Ie);
|
|
5761
5761
|
break;
|
|
@@ -5766,7 +5766,7 @@ function Cs() {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
}
|
|
5768
5768
|
try {
|
|
5769
|
-
Oe ? f.setAttributeNS(Oe, me, Ie) : f.setAttribute(me, Ie), uo(f) ? tt(f) :
|
|
5769
|
+
Oe ? f.setAttributeNS(Oe, me, Ie) : f.setAttribute(me, Ie), uo(f) ? tt(f) : fi(e.removed);
|
|
5770
5770
|
} catch {
|
|
5771
5771
|
}
|
|
5772
5772
|
}
|
|
@@ -5774,14 +5774,14 @@ function Cs() {
|
|
|
5774
5774
|
lt(D.afterSanitizeAttributes, f, null);
|
|
5775
5775
|
}, js = function R(f) {
|
|
5776
5776
|
let I = null;
|
|
5777
|
-
const $ =
|
|
5777
|
+
const $ = br(f);
|
|
5778
5778
|
for (lt(D.beforeSanitizeShadowDOM, f, null); I = $.nextNode(); )
|
|
5779
|
-
lt(D.uponSanitizeShadowNode, I, null),
|
|
5779
|
+
lt(D.uponSanitizeShadowNode, I, null), _r(I), Cr(I), I.content instanceof i && R(I.content);
|
|
5780
5780
|
lt(D.afterSanitizeShadowDOM, f, null);
|
|
5781
5781
|
};
|
|
5782
5782
|
return e.sanitize = function(R) {
|
|
5783
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, $ = null,
|
|
5784
|
-
if (ao = !R, ao && (R = "<!-->"), typeof R != "string" && !
|
|
5783
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, $ = null, ie = null, _e = null;
|
|
5784
|
+
if (ao = !R, ao && (R = "<!-->"), typeof R != "string" && !wr(R))
|
|
5785
5785
|
if (typeof R.toString == "function") {
|
|
5786
5786
|
if (R = R.toString(), typeof R != "string")
|
|
5787
5787
|
throw en("dirty is not a string, aborting");
|
|
@@ -5792,46 +5792,46 @@ function Cs() {
|
|
|
5792
5792
|
if (we || co(f), e.removed = [], typeof R == "string" && (Wt = !1), Wt) {
|
|
5793
5793
|
if (R.nodeName) {
|
|
5794
5794
|
const nt = de(R.nodeName);
|
|
5795
|
-
if (!c[nt] ||
|
|
5795
|
+
if (!c[nt] || E[nt])
|
|
5796
5796
|
throw en("root node is forbidden and cannot be sanitized in-place");
|
|
5797
5797
|
}
|
|
5798
5798
|
} else if (R instanceof s)
|
|
5799
|
-
I =
|
|
5799
|
+
I = yr("<!---->"), $ = I.ownerDocument.importNode(R, !0), $.nodeType === nn.element && $.nodeName === "BODY" || $.nodeName === "HTML" ? I = $ : I.appendChild($);
|
|
5800
5800
|
else {
|
|
5801
|
-
if (!
|
|
5801
|
+
if (!Ot && !V && !be && // eslint-disable-next-line unicorn/prefer-includes
|
|
5802
5802
|
R.indexOf("<") === -1)
|
|
5803
|
-
return H &&
|
|
5804
|
-
if (I =
|
|
5805
|
-
return
|
|
5803
|
+
return H && xn ? H.createHTML(R) : R;
|
|
5804
|
+
if (I = yr(R), !I)
|
|
5805
|
+
return Ot ? null : xn ? Y : "";
|
|
5806
5806
|
}
|
|
5807
5807
|
I && st && tt(I.firstChild);
|
|
5808
|
-
const me =
|
|
5809
|
-
for (;
|
|
5810
|
-
|
|
5808
|
+
const me = br(Wt ? R : I);
|
|
5809
|
+
for (; ie = me.nextNode(); )
|
|
5810
|
+
_r(ie), Cr(ie), ie.content instanceof i && js(ie.content);
|
|
5811
5811
|
if (Wt)
|
|
5812
5812
|
return R;
|
|
5813
|
-
if (
|
|
5814
|
-
if (
|
|
5815
|
-
for (_e =
|
|
5813
|
+
if (Ot) {
|
|
5814
|
+
if (Pn)
|
|
5815
|
+
for (_e = Be.call(I.ownerDocument); I.firstChild; )
|
|
5816
5816
|
_e.appendChild(I.firstChild);
|
|
5817
5817
|
else
|
|
5818
5818
|
_e = I;
|
|
5819
5819
|
return (y.shadowroot || y.shadowrootmode) && (_e = X.call(o, _e, !0)), _e;
|
|
5820
5820
|
}
|
|
5821
5821
|
let Oe = be ? I.outerHTML : I.innerHTML;
|
|
5822
|
-
return be && c["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Te(
|
|
5822
|
+
return be && c["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Te(Cs, I.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
5823
5823
|
` + Oe), V && Un([J, ve, ye], (nt) => {
|
|
5824
5824
|
Oe = Qt(Oe, nt, " ");
|
|
5825
|
-
}), H &&
|
|
5825
|
+
}), H && xn ? H.createHTML(Oe) : Oe;
|
|
5826
5826
|
}, e.setConfig = function() {
|
|
5827
5827
|
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5828
5828
|
co(R), we = !0;
|
|
5829
5829
|
}, e.clearConfig = function() {
|
|
5830
|
-
|
|
5830
|
+
Dt = null, we = !1;
|
|
5831
5831
|
}, e.isValidAttribute = function(R, f, I) {
|
|
5832
|
-
|
|
5833
|
-
const $ = de(R),
|
|
5834
|
-
return
|
|
5832
|
+
Dt || co({});
|
|
5833
|
+
const $ = de(R), ie = de(f);
|
|
5834
|
+
return Sr($, ie, I);
|
|
5835
5835
|
}, e.addHook = function(R, f) {
|
|
5836
5836
|
typeof f == "function" && Jt(D[R], f);
|
|
5837
5837
|
}, e.removeHook = function(R, f) {
|
|
@@ -5839,14 +5839,14 @@ function Cs() {
|
|
|
5839
5839
|
const I = mf(D[R], f);
|
|
5840
5840
|
return I === -1 ? void 0 : pf(D[R], I, 1)[0];
|
|
5841
5841
|
}
|
|
5842
|
-
return
|
|
5842
|
+
return fi(D[R]);
|
|
5843
5843
|
}, e.removeHooks = function(R) {
|
|
5844
5844
|
D[R] = [];
|
|
5845
5845
|
}, e.removeAllHooks = function() {
|
|
5846
|
-
D =
|
|
5846
|
+
D = bi();
|
|
5847
5847
|
}, e;
|
|
5848
5848
|
}
|
|
5849
|
-
var
|
|
5849
|
+
var sr = Is();
|
|
5850
5850
|
class Ts {
|
|
5851
5851
|
get IsVisible() {
|
|
5852
5852
|
return Pt.isVisible();
|
|
@@ -5859,7 +5859,7 @@ class Ts {
|
|
|
5859
5859
|
allowOutsideClick: !1,
|
|
5860
5860
|
icon: "question",
|
|
5861
5861
|
title: e.title,
|
|
5862
|
-
html:
|
|
5862
|
+
html: sr.sanitize(e.text),
|
|
5863
5863
|
confirmButtonText: e.confirmLabel ?? "confirmar",
|
|
5864
5864
|
cancelButtonText: e.rejectLabel ?? "cancelar"
|
|
5865
5865
|
}).then((o) => {
|
|
@@ -5873,7 +5873,7 @@ class Ts {
|
|
|
5873
5873
|
});
|
|
5874
5874
|
}
|
|
5875
5875
|
}
|
|
5876
|
-
const
|
|
5876
|
+
const Lf = () => new Ts(), Nm = () => new Ts();
|
|
5877
5877
|
function Of(t) {
|
|
5878
5878
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
5879
5879
|
}
|
|
@@ -5883,7 +5883,7 @@ function As(t, ...e) {
|
|
|
5883
5883
|
if (e.length > 0 && !e.includes(t.length))
|
|
5884
5884
|
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
5885
5885
|
}
|
|
5886
|
-
function
|
|
5886
|
+
function wi(t, e = !0) {
|
|
5887
5887
|
if (t.destroyed)
|
|
5888
5888
|
throw new Error("Hash instance has been destroyed");
|
|
5889
5889
|
if (e && t.finished)
|
|
@@ -5903,7 +5903,7 @@ function Mf(t) {
|
|
|
5903
5903
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
5904
5904
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
5905
5905
|
}
|
|
5906
|
-
function
|
|
5906
|
+
function Es(t) {
|
|
5907
5907
|
return typeof t == "string" && (t = Mf(t)), As(t), t;
|
|
5908
5908
|
}
|
|
5909
5909
|
class Rf {
|
|
@@ -5913,24 +5913,24 @@ class Rf {
|
|
|
5913
5913
|
}
|
|
5914
5914
|
}
|
|
5915
5915
|
function Df(t) {
|
|
5916
|
-
const e = (o) => t().update(
|
|
5916
|
+
const e = (o) => t().update(Es(o)).digest(), n = t();
|
|
5917
5917
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
5918
5918
|
}
|
|
5919
|
-
function
|
|
5919
|
+
function Nf(t, e, n, o) {
|
|
5920
5920
|
if (typeof t.setBigUint64 == "function")
|
|
5921
5921
|
return t.setBigUint64(e, n, o);
|
|
5922
5922
|
const r = BigInt(32), i = BigInt(4294967295), a = Number(n >> r & i), s = Number(n & i), l = o ? 4 : 0, u = o ? 0 : 4;
|
|
5923
5923
|
t.setUint32(e + l, a, o), t.setUint32(e + u, s, o);
|
|
5924
5924
|
}
|
|
5925
|
-
const
|
|
5925
|
+
const Bf = (t, e, n) => t & e ^ ~t & n, Uf = (t, e, n) => t & e ^ t & n ^ e & n;
|
|
5926
5926
|
class Hf extends Rf {
|
|
5927
5927
|
constructor(e, n, o, r) {
|
|
5928
5928
|
super(), this.blockLen = e, this.outputLen = n, this.padOffset = o, this.isLE = r, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = ko(this.buffer);
|
|
5929
5929
|
}
|
|
5930
5930
|
update(e) {
|
|
5931
|
-
|
|
5931
|
+
wi(this);
|
|
5932
5932
|
const { view: n, buffer: o, blockLen: r } = this;
|
|
5933
|
-
e =
|
|
5933
|
+
e = Es(e);
|
|
5934
5934
|
const i = e.length;
|
|
5935
5935
|
for (let a = 0; a < i; ) {
|
|
5936
5936
|
const s = Math.min(r - this.pos, i - a);
|
|
@@ -5945,13 +5945,13 @@ class Hf extends Rf {
|
|
|
5945
5945
|
return this.length += e.length, this.roundClean(), this;
|
|
5946
5946
|
}
|
|
5947
5947
|
digestInto(e) {
|
|
5948
|
-
|
|
5948
|
+
wi(this), $f(e, this), this.finished = !0;
|
|
5949
5949
|
const { buffer: n, view: o, blockLen: r, isLE: i } = this;
|
|
5950
5950
|
let { pos: a } = this;
|
|
5951
5951
|
n[a++] = 128, this.buffer.subarray(a).fill(0), this.padOffset > r - a && (this.process(o, 0), a = 0);
|
|
5952
5952
|
for (let m = a; m < r; m++)
|
|
5953
5953
|
n[m] = 0;
|
|
5954
|
-
|
|
5954
|
+
Nf(o, r - 8, BigInt(this.length * 8), i), this.process(o, 0);
|
|
5955
5955
|
const s = ko(e), l = this.outputLen;
|
|
5956
5956
|
if (l % 4)
|
|
5957
5957
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
@@ -6069,7 +6069,7 @@ class Ff extends Hf {
|
|
|
6069
6069
|
}
|
|
6070
6070
|
let { A: o, B: r, C: i, D: a, E: s, F: l, G: u, H: d } = this;
|
|
6071
6071
|
for (let m = 0; m < 64; m++) {
|
|
6072
|
-
const g = ot(s, 6) ^ ot(s, 11) ^ ot(s, 25), w = d + g +
|
|
6072
|
+
const g = ot(s, 6) ^ ot(s, 11) ^ ot(s, 25), w = d + g + Bf(s, l, u) + jf[m] + ht[m] | 0, A = (ot(o, 2) ^ ot(o, 13) ^ ot(o, 22)) + Uf(o, r, i) | 0;
|
|
6073
6073
|
d = u, u = l, l = s, s = a + w | 0, a = i, i = r, r = o, o = w + A | 0;
|
|
6074
6074
|
}
|
|
6075
6075
|
o = o + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, s = s + this.E | 0, l = l + this.F | 0, u = u + this.G | 0, d = d + this.H | 0, this.set(o, r, i, a, s, l, u, d);
|
|
@@ -6134,8 +6134,8 @@ if (typeof Promise > "u")
|
|
|
6134
6134
|
throw Error(
|
|
6135
6135
|
"Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill."
|
|
6136
6136
|
);
|
|
6137
|
-
function
|
|
6138
|
-
if (!(this instanceof
|
|
6137
|
+
function Ps(t) {
|
|
6138
|
+
if (!(this instanceof Ps))
|
|
6139
6139
|
throw new Error(
|
|
6140
6140
|
"The 'Keycloak' constructor must be invoked with 'new'."
|
|
6141
6141
|
);
|
|
@@ -6191,23 +6191,23 @@ function Es(t) {
|
|
|
6191
6191
|
var y = X(), T = X();
|
|
6192
6192
|
T.promise.then(function() {
|
|
6193
6193
|
e.onReady && e.onReady(e.authenticated), y.setSuccess(e.authenticated);
|
|
6194
|
-
}).catch(function(
|
|
6195
|
-
y.setError(
|
|
6194
|
+
}).catch(function(L) {
|
|
6195
|
+
y.setError(L);
|
|
6196
6196
|
});
|
|
6197
|
-
var v =
|
|
6198
|
-
function
|
|
6199
|
-
var
|
|
6200
|
-
V || (
|
|
6197
|
+
var v = N();
|
|
6198
|
+
function E() {
|
|
6199
|
+
var L = function(V) {
|
|
6200
|
+
V || (B.prompt = "none"), c && c.locale && (B.locale = c.locale), e.login(B).then(function() {
|
|
6201
6201
|
T.setSuccess();
|
|
6202
|
-
}).catch(function(
|
|
6203
|
-
T.setError(
|
|
6202
|
+
}).catch(function(Le) {
|
|
6203
|
+
T.setError(Le);
|
|
6204
6204
|
});
|
|
6205
|
-
},
|
|
6206
|
-
var V = document.createElement("iframe"),
|
|
6205
|
+
}, x = function() {
|
|
6206
|
+
var V = document.createElement("iframe"), Le = e.createLoginUrl({
|
|
6207
6207
|
prompt: "none",
|
|
6208
6208
|
redirectUri: e.silentCheckSsoRedirectUri
|
|
6209
6209
|
});
|
|
6210
|
-
V.setAttribute("src",
|
|
6210
|
+
V.setAttribute("src", Le), V.setAttribute(
|
|
6211
6211
|
"sandbox",
|
|
6212
6212
|
"allow-storage-access-by-user-activation allow-scripts allow-same-origin"
|
|
6213
6213
|
), V.setAttribute("title", "keycloak-silent-check-sso"), V.style.display = "none", document.body.appendChild(V);
|
|
@@ -6218,67 +6218,67 @@ function Es(t) {
|
|
|
6218
6218
|
}
|
|
6219
6219
|
};
|
|
6220
6220
|
window.addEventListener("message", be);
|
|
6221
|
-
},
|
|
6221
|
+
}, B = {};
|
|
6222
6222
|
switch (c.onLoad) {
|
|
6223
6223
|
case "check-sso":
|
|
6224
6224
|
i.enable ? J().then(function() {
|
|
6225
6225
|
ye().then(function(V) {
|
|
6226
|
-
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ?
|
|
6226
|
+
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ? x() : L(!1);
|
|
6227
6227
|
}).catch(function(V) {
|
|
6228
6228
|
T.setError(V);
|
|
6229
6229
|
});
|
|
6230
|
-
}) : e.silentCheckSsoRedirectUri ?
|
|
6230
|
+
}) : e.silentCheckSsoRedirectUri ? x() : L(!1);
|
|
6231
6231
|
break;
|
|
6232
6232
|
case "login-required":
|
|
6233
|
-
|
|
6233
|
+
L(!0);
|
|
6234
6234
|
break;
|
|
6235
6235
|
default:
|
|
6236
6236
|
throw "Invalid value for onLoad";
|
|
6237
6237
|
}
|
|
6238
6238
|
}
|
|
6239
6239
|
function _() {
|
|
6240
|
-
var
|
|
6241
|
-
if (
|
|
6240
|
+
var L = le(window.location.href);
|
|
6241
|
+
if (L && window.history.replaceState(
|
|
6242
6242
|
window.history.state,
|
|
6243
6243
|
null,
|
|
6244
|
-
|
|
6245
|
-
),
|
|
6244
|
+
L.newUrl
|
|
6245
|
+
), L && L.valid)
|
|
6246
6246
|
return J().then(function() {
|
|
6247
|
-
S(
|
|
6248
|
-
}).catch(function(
|
|
6249
|
-
T.setError(
|
|
6247
|
+
S(L, T);
|
|
6248
|
+
}).catch(function(x) {
|
|
6249
|
+
T.setError(x);
|
|
6250
6250
|
});
|
|
6251
6251
|
c ? c.token && c.refreshToken ? (Y(
|
|
6252
6252
|
c.token,
|
|
6253
6253
|
c.refreshToken,
|
|
6254
6254
|
c.idToken
|
|
6255
6255
|
), i.enable ? J().then(function() {
|
|
6256
|
-
ye().then(function(
|
|
6257
|
-
|
|
6258
|
-
}).catch(function(
|
|
6259
|
-
T.setError(
|
|
6256
|
+
ye().then(function(x) {
|
|
6257
|
+
x ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), ve()) : T.setSuccess();
|
|
6258
|
+
}).catch(function(x) {
|
|
6259
|
+
T.setError(x);
|
|
6260
6260
|
});
|
|
6261
6261
|
}) : e.updateToken(-1).then(function() {
|
|
6262
6262
|
e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
|
|
6263
|
-
}).catch(function(
|
|
6264
|
-
e.onAuthError && e.onAuthError(), c.onLoad ?
|
|
6265
|
-
})) : c.onLoad ?
|
|
6263
|
+
}).catch(function(x) {
|
|
6264
|
+
e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(x);
|
|
6265
|
+
})) : c.onLoad ? E() : T.setSuccess() : T.setSuccess();
|
|
6266
6266
|
}
|
|
6267
6267
|
function C() {
|
|
6268
|
-
var
|
|
6268
|
+
var L = X(), x = function() {
|
|
6269
6269
|
(document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener(
|
|
6270
6270
|
"readystatechange",
|
|
6271
|
-
|
|
6272
|
-
),
|
|
6271
|
+
x
|
|
6272
|
+
), L.setSuccess());
|
|
6273
6273
|
};
|
|
6274
|
-
return document.addEventListener("readystatechange",
|
|
6274
|
+
return document.addEventListener("readystatechange", x), x(), L.promise;
|
|
6275
6275
|
}
|
|
6276
6276
|
return v.then(function() {
|
|
6277
|
-
C().then(Je).then(_).catch(function(
|
|
6278
|
-
y.setError(
|
|
6277
|
+
C().then(Je).then(_).catch(function(L) {
|
|
6278
|
+
y.setError(L);
|
|
6279
6279
|
});
|
|
6280
|
-
}), v.catch(function(
|
|
6281
|
-
y.setError(
|
|
6280
|
+
}), v.catch(function(L) {
|
|
6281
|
+
y.setError(L);
|
|
6282
6282
|
}), y.promise;
|
|
6283
6283
|
}, e.login = function(c) {
|
|
6284
6284
|
return n.login(c);
|
|
@@ -6327,23 +6327,23 @@ function Es(t) {
|
|
|
6327
6327
|
loginOptions: c
|
|
6328
6328
|
};
|
|
6329
6329
|
c && c.prompt && (v.prompt = c.prompt);
|
|
6330
|
-
var
|
|
6331
|
-
c && c.action == "register" ?
|
|
6330
|
+
var E;
|
|
6331
|
+
c && c.action == "register" ? E = e.endpoints.register() : E = e.endpoints.authorize();
|
|
6332
6332
|
var _ = c && c.scope || e.scope;
|
|
6333
6333
|
_ ? _.indexOf("openid") === -1 && (_ = "openid " + _) : _ = "openid";
|
|
6334
|
-
var C =
|
|
6334
|
+
var C = E + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(T) + "&state=" + encodeURIComponent(p) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(_);
|
|
6335
6335
|
if (l && (C = C + "&nonce=" + encodeURIComponent(y)), c && c.prompt && (C += "&prompt=" + encodeURIComponent(c.prompt)), c && c.maxAge && (C += "&max_age=" + encodeURIComponent(c.maxAge)), c && c.loginHint && (C += "&login_hint=" + encodeURIComponent(c.loginHint)), c && c.idpHint && (C += "&kc_idp_hint=" + encodeURIComponent(c.idpHint)), c && c.action && c.action != "register" && (C += "&kc_action=" + encodeURIComponent(c.action)), c && c.locale && (C += "&ui_locales=" + encodeURIComponent(c.locale)), c && c.acr) {
|
|
6336
|
-
var
|
|
6337
|
-
C += "&claims=" + encodeURIComponent(
|
|
6336
|
+
var L = A(c.acr);
|
|
6337
|
+
C += "&claims=" + encodeURIComponent(L);
|
|
6338
6338
|
}
|
|
6339
6339
|
if ((c && c.acrValues || e.acrValues) && (C += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6340
|
-
var
|
|
6341
|
-
v.pkceCodeVerifier =
|
|
6342
|
-
var
|
|
6340
|
+
var x = g(96);
|
|
6341
|
+
v.pkceCodeVerifier = x;
|
|
6342
|
+
var B = k(
|
|
6343
6343
|
e.pkceMethod,
|
|
6344
|
-
|
|
6344
|
+
x
|
|
6345
6345
|
);
|
|
6346
|
-
C += "&code_challenge=" +
|
|
6346
|
+
C += "&code_challenge=" + B, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6347
6347
|
}
|
|
6348
6348
|
return r.add(v), C;
|
|
6349
6349
|
}, e.logout = function(c) {
|
|
@@ -6358,7 +6358,7 @@ function Es(t) {
|
|
|
6358
6358
|
}, e.createRegisterUrl = function(c) {
|
|
6359
6359
|
return c || (c = {}), c.action = "register", e.createLoginUrl(c);
|
|
6360
6360
|
}, e.createAccountUrl = function(c) {
|
|
6361
|
-
var p =
|
|
6361
|
+
var p = P(), y = void 0;
|
|
6362
6362
|
return typeof p < "u" && (y = p + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(c))), y;
|
|
6363
6363
|
}, e.accountManagement = function() {
|
|
6364
6364
|
return n.accountManagement();
|
|
@@ -6371,7 +6371,7 @@ function Es(t) {
|
|
|
6371
6371
|
var y = e.resourceAccess[p || e.clientId];
|
|
6372
6372
|
return !!y && y.roles.indexOf(c) >= 0;
|
|
6373
6373
|
}, e.loadUserProfile = function() {
|
|
6374
|
-
var c =
|
|
6374
|
+
var c = P() + "/account", p = new XMLHttpRequest();
|
|
6375
6375
|
p.open("GET", c, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
|
|
6376
6376
|
var y = X();
|
|
6377
6377
|
return p.onreadystatechange = function() {
|
|
@@ -6408,33 +6408,33 @@ function Es(t) {
|
|
|
6408
6408
|
if (c == -1 ? (v = !0, u("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(c)) && (v = !0, u("[KEYCLOAK] Refreshing token: token expired")), !v)
|
|
6409
6409
|
p.setSuccess(!1);
|
|
6410
6410
|
else {
|
|
6411
|
-
var
|
|
6411
|
+
var E = "grant_type=refresh_token&refresh_token=" + e.refreshToken, _ = e.endpoints.token();
|
|
6412
6412
|
if (o.push(p), o.length == 1) {
|
|
6413
6413
|
var C = new XMLHttpRequest();
|
|
6414
6414
|
C.open("POST", _, !0), C.setRequestHeader(
|
|
6415
6415
|
"Content-type",
|
|
6416
6416
|
"application/x-www-form-urlencoded"
|
|
6417
|
-
), C.withCredentials = !0,
|
|
6418
|
-
var
|
|
6417
|
+
), C.withCredentials = !0, E += "&client_id=" + encodeURIComponent(e.clientId);
|
|
6418
|
+
var L = (/* @__PURE__ */ new Date()).getTime();
|
|
6419
6419
|
C.onreadystatechange = function() {
|
|
6420
6420
|
if (C.readyState == 4)
|
|
6421
6421
|
if (C.status == 200) {
|
|
6422
|
-
u("[KEYCLOAK] Token refreshed"),
|
|
6423
|
-
var
|
|
6422
|
+
u("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
6423
|
+
var x = JSON.parse(C.responseText);
|
|
6424
6424
|
Y(
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6425
|
+
x.access_token,
|
|
6426
|
+
x.refresh_token,
|
|
6427
|
+
x.id_token,
|
|
6428
|
+
L
|
|
6429
6429
|
), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
6430
|
-
for (var
|
|
6431
|
-
|
|
6430
|
+
for (var B = o.pop(); B != null; B = o.pop())
|
|
6431
|
+
B.setSuccess(!0);
|
|
6432
6432
|
} else {
|
|
6433
6433
|
d("[KEYCLOAK] Failed to refresh token"), C.status == 400 && e.clearToken(), e.onAuthRefreshError && e.onAuthRefreshError();
|
|
6434
|
-
for (var
|
|
6435
|
-
|
|
6434
|
+
for (var B = o.pop(); B != null; B = o.pop())
|
|
6435
|
+
B.setError(!0);
|
|
6436
6436
|
}
|
|
6437
|
-
}, C.send(
|
|
6437
|
+
}, C.send(E);
|
|
6438
6438
|
}
|
|
6439
6439
|
}
|
|
6440
6440
|
};
|
|
@@ -6451,7 +6451,7 @@ function Es(t) {
|
|
|
6451
6451
|
}, e.clearToken = function() {
|
|
6452
6452
|
e.token && (Y(null, null, null), e.onAuthLogout && e.onAuthLogout(), e.loginRequired && e.login());
|
|
6453
6453
|
};
|
|
6454
|
-
function
|
|
6454
|
+
function P() {
|
|
6455
6455
|
if (typeof e.authServerUrl < "u")
|
|
6456
6456
|
return e.authServerUrl.charAt(e.authServerUrl.length - 1) == "/" ? e.authServerUrl + "realms/" + encodeURIComponent(e.realm) : e.authServerUrl + "/realms/" + encodeURIComponent(e.realm);
|
|
6457
6457
|
}
|
|
@@ -6459,7 +6459,7 @@ function Es(t) {
|
|
|
6459
6459
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
6460
6460
|
}
|
|
6461
6461
|
function S(c, p) {
|
|
6462
|
-
var y = c.code, T = c.error, v = c.prompt,
|
|
6462
|
+
var y = c.code, T = c.error, v = c.prompt, E = (/* @__PURE__ */ new Date()).getTime();
|
|
6463
6463
|
if (c.kc_action_status && e.onActionUpdate && e.onActionUpdate(
|
|
6464
6464
|
c.kc_action_status,
|
|
6465
6465
|
c.kc_action
|
|
@@ -6477,17 +6477,17 @@ function Es(t) {
|
|
|
6477
6477
|
else
|
|
6478
6478
|
p && p.setSuccess();
|
|
6479
6479
|
return;
|
|
6480
|
-
} else e.flow != "standard" && (c.access_token || c.id_token) &&
|
|
6480
|
+
} else e.flow != "standard" && (c.access_token || c.id_token) && B(c.access_token, null, c.id_token, !0);
|
|
6481
6481
|
if (e.flow != "implicit" && y) {
|
|
6482
|
-
var C = "code=" + y + "&grant_type=authorization_code",
|
|
6483
|
-
|
|
6482
|
+
var C = "code=" + y + "&grant_type=authorization_code", L = e.endpoints.token(), x = new XMLHttpRequest();
|
|
6483
|
+
x.open("POST", L, !0), x.setRequestHeader(
|
|
6484
6484
|
"Content-type",
|
|
6485
6485
|
"application/x-www-form-urlencoded"
|
|
6486
|
-
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (C += "&code_verifier=" + c.pkceCodeVerifier),
|
|
6487
|
-
if (
|
|
6488
|
-
if (
|
|
6489
|
-
var V = JSON.parse(
|
|
6490
|
-
|
|
6486
|
+
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (C += "&code_verifier=" + c.pkceCodeVerifier), x.withCredentials = !0, x.onreadystatechange = function() {
|
|
6487
|
+
if (x.readyState == 4)
|
|
6488
|
+
if (x.status == 200) {
|
|
6489
|
+
var V = JSON.parse(x.responseText);
|
|
6490
|
+
B(
|
|
6491
6491
|
V.access_token,
|
|
6492
6492
|
V.refresh_token,
|
|
6493
6493
|
V.id_token,
|
|
@@ -6495,64 +6495,64 @@ function Es(t) {
|
|
|
6495
6495
|
), ve();
|
|
6496
6496
|
} else
|
|
6497
6497
|
e.onAuthError && e.onAuthError(), p && p.setError();
|
|
6498
|
-
},
|
|
6498
|
+
}, x.send(C);
|
|
6499
6499
|
}
|
|
6500
|
-
function
|
|
6501
|
-
|
|
6500
|
+
function B(V, Le, be, we) {
|
|
6501
|
+
E = (E + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Le, be, E), l && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : we && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
6502
6502
|
}
|
|
6503
6503
|
}
|
|
6504
|
-
function
|
|
6504
|
+
function N(c) {
|
|
6505
6505
|
var p = X(), y;
|
|
6506
6506
|
t ? typeof t == "string" && (y = t) : y = "keycloak.json";
|
|
6507
|
-
function T(
|
|
6508
|
-
|
|
6507
|
+
function T(x) {
|
|
6508
|
+
x ? e.endpoints = {
|
|
6509
6509
|
authorize: function() {
|
|
6510
|
-
return
|
|
6510
|
+
return x.authorization_endpoint;
|
|
6511
6511
|
},
|
|
6512
6512
|
token: function() {
|
|
6513
|
-
return
|
|
6513
|
+
return x.token_endpoint;
|
|
6514
6514
|
},
|
|
6515
6515
|
logout: function() {
|
|
6516
|
-
if (!
|
|
6516
|
+
if (!x.end_session_endpoint)
|
|
6517
6517
|
throw "Not supported by the OIDC server";
|
|
6518
|
-
return
|
|
6518
|
+
return x.end_session_endpoint;
|
|
6519
6519
|
},
|
|
6520
6520
|
checkSessionIframe: function() {
|
|
6521
|
-
if (!
|
|
6521
|
+
if (!x.check_session_iframe)
|
|
6522
6522
|
throw "Not supported by the OIDC server";
|
|
6523
|
-
return
|
|
6523
|
+
return x.check_session_iframe;
|
|
6524
6524
|
},
|
|
6525
6525
|
register: function() {
|
|
6526
6526
|
throw 'Redirection to "Register user" page not supported in standard OIDC mode';
|
|
6527
6527
|
},
|
|
6528
6528
|
userinfo: function() {
|
|
6529
|
-
if (!
|
|
6529
|
+
if (!x.userinfo_endpoint)
|
|
6530
6530
|
throw "Not supported by the OIDC server";
|
|
6531
|
-
return
|
|
6531
|
+
return x.userinfo_endpoint;
|
|
6532
6532
|
}
|
|
6533
6533
|
} : e.endpoints = {
|
|
6534
6534
|
authorize: function() {
|
|
6535
|
-
return
|
|
6535
|
+
return P() + "/protocol/openid-connect/auth";
|
|
6536
6536
|
},
|
|
6537
6537
|
token: function() {
|
|
6538
|
-
return
|
|
6538
|
+
return P() + "/protocol/openid-connect/token";
|
|
6539
6539
|
},
|
|
6540
6540
|
logout: function() {
|
|
6541
|
-
return
|
|
6541
|
+
return P() + "/protocol/openid-connect/logout";
|
|
6542
6542
|
},
|
|
6543
6543
|
checkSessionIframe: function() {
|
|
6544
|
-
var
|
|
6545
|
-
return e.iframeVersion && (
|
|
6544
|
+
var B = P() + "/protocol/openid-connect/login-status-iframe.html";
|
|
6545
|
+
return e.iframeVersion && (B = B + "?version=" + e.iframeVersion), B;
|
|
6546
6546
|
},
|
|
6547
6547
|
thirdPartyCookiesIframe: function() {
|
|
6548
|
-
var
|
|
6549
|
-
return e.iframeVersion && (
|
|
6548
|
+
var B = P() + "/protocol/openid-connect/3p-cookies/step1.html";
|
|
6549
|
+
return e.iframeVersion && (B = B + "?version=" + e.iframeVersion), B;
|
|
6550
6550
|
},
|
|
6551
6551
|
register: function() {
|
|
6552
|
-
return
|
|
6552
|
+
return P() + "/protocol/openid-connect/registrations";
|
|
6553
6553
|
},
|
|
6554
6554
|
userinfo: function() {
|
|
6555
|
-
return
|
|
6555
|
+
return P() + "/protocol/openid-connect/userinfo";
|
|
6556
6556
|
}
|
|
6557
6557
|
};
|
|
6558
6558
|
}
|
|
@@ -6561,8 +6561,8 @@ function Es(t) {
|
|
|
6561
6561
|
v.open("GET", y, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6562
6562
|
if (v.readyState == 4)
|
|
6563
6563
|
if (v.status == 200 || H(v)) {
|
|
6564
|
-
var
|
|
6565
|
-
e.authServerUrl =
|
|
6564
|
+
var x = JSON.parse(v.responseText);
|
|
6565
|
+
e.authServerUrl = x["auth-server-url"], e.realm = x.realm, e.clientId = x.resource, T(null), p.setSuccess();
|
|
6566
6566
|
} else
|
|
6567
6567
|
p.setError();
|
|
6568
6568
|
}, v.send();
|
|
@@ -6570,22 +6570,22 @@ function Es(t) {
|
|
|
6570
6570
|
if (!t.clientId)
|
|
6571
6571
|
throw "clientId missing";
|
|
6572
6572
|
e.clientId = t.clientId;
|
|
6573
|
-
var
|
|
6574
|
-
if (
|
|
6575
|
-
if (typeof
|
|
6576
|
-
var
|
|
6577
|
-
|
|
6573
|
+
var E = t.oidcProvider;
|
|
6574
|
+
if (E)
|
|
6575
|
+
if (typeof E == "string") {
|
|
6576
|
+
var L;
|
|
6577
|
+
E.charAt(E.length - 1) == "/" ? L = E + ".well-known/openid-configuration" : L = E + "/.well-known/openid-configuration";
|
|
6578
6578
|
var v = new XMLHttpRequest();
|
|
6579
|
-
v.open("GET",
|
|
6579
|
+
v.open("GET", L, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6580
6580
|
if (v.readyState == 4)
|
|
6581
6581
|
if (v.status == 200 || H(v)) {
|
|
6582
|
-
var
|
|
6583
|
-
T(
|
|
6582
|
+
var B = JSON.parse(v.responseText);
|
|
6583
|
+
T(B), p.setSuccess();
|
|
6584
6584
|
} else
|
|
6585
6585
|
p.setError();
|
|
6586
6586
|
}, v.send();
|
|
6587
6587
|
} else
|
|
6588
|
-
T(
|
|
6588
|
+
T(E), p.setSuccess();
|
|
6589
6589
|
else {
|
|
6590
6590
|
if (!t.url) {
|
|
6591
6591
|
for (var _ = document.getElementsByTagName("script"), C = 0; C < _.length; C++)
|
|
@@ -6630,13 +6630,13 @@ function Es(t) {
|
|
|
6630
6630
|
return y;
|
|
6631
6631
|
}
|
|
6632
6632
|
function le(c) {
|
|
6633
|
-
var p =
|
|
6633
|
+
var p = Be(c);
|
|
6634
6634
|
if (p) {
|
|
6635
6635
|
var y = r.get(p.state);
|
|
6636
6636
|
return y && (p.valid = !0, p.redirectUri = y.redirectUri, p.storedNonce = y.nonce, p.prompt = y.prompt, p.pkceCodeVerifier = y.pkceCodeVerifier, p.loginOptions = y.loginOptions), p;
|
|
6637
6637
|
}
|
|
6638
6638
|
}
|
|
6639
|
-
function
|
|
6639
|
+
function Be(c) {
|
|
6640
6640
|
var p;
|
|
6641
6641
|
switch (e.flow) {
|
|
6642
6642
|
case "standard":
|
|
@@ -6678,22 +6678,22 @@ function Es(t) {
|
|
|
6678
6678
|
break;
|
|
6679
6679
|
}
|
|
6680
6680
|
p.push("error"), p.push("error_description"), p.push("error_uri");
|
|
6681
|
-
var y = c.indexOf("?"), T = c.indexOf("#"), v,
|
|
6682
|
-
if (e.responseMode === "query" && y !== -1 ? (v = c.substring(0, y),
|
|
6681
|
+
var y = c.indexOf("?"), T = c.indexOf("#"), v, E;
|
|
6682
|
+
if (e.responseMode === "query" && y !== -1 ? (v = c.substring(0, y), E = ue(
|
|
6683
6683
|
c.substring(
|
|
6684
6684
|
y + 1,
|
|
6685
6685
|
T !== -1 ? T : c.length
|
|
6686
6686
|
),
|
|
6687
6687
|
p
|
|
6688
|
-
),
|
|
6688
|
+
), E.paramsString !== "" && (v += "?" + E.paramsString), T !== -1 && (v += c.substring(T))) : e.responseMode === "fragment" && T !== -1 && (v = c.substring(0, T), E = ue(
|
|
6689
6689
|
c.substring(T + 1),
|
|
6690
6690
|
p
|
|
6691
|
-
),
|
|
6691
|
+
), E.paramsString !== "" && (v += "#" + E.paramsString)), E && E.oauthParams) {
|
|
6692
6692
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
6693
|
-
if ((
|
|
6694
|
-
return
|
|
6695
|
-
} else if (e.flow === "implicit" && (
|
|
6696
|
-
return
|
|
6693
|
+
if ((E.oauthParams.code || E.oauthParams.error) && E.oauthParams.state)
|
|
6694
|
+
return E.oauthParams.newUrl = v, E.oauthParams;
|
|
6695
|
+
} else if (e.flow === "implicit" && (E.oauthParams.access_token || E.oauthParams.error) && E.oauthParams.state)
|
|
6696
|
+
return E.oauthParams.newUrl = v, E.oauthParams;
|
|
6697
6697
|
}
|
|
6698
6698
|
}
|
|
6699
6699
|
function ue(c, p) {
|
|
@@ -6701,8 +6701,8 @@ function Es(t) {
|
|
|
6701
6701
|
paramsString: "",
|
|
6702
6702
|
oauthParams: {}
|
|
6703
6703
|
}, v = 0; v < y.length; v++) {
|
|
6704
|
-
var
|
|
6705
|
-
p.indexOf(_) !== -1 ? T.oauthParams[_] = y[v].slice(
|
|
6704
|
+
var E = y[v].indexOf("="), _ = y[v].slice(0, E);
|
|
6705
|
+
p.indexOf(_) !== -1 ? T.oauthParams[_] = y[v].slice(E + 1) : (T.paramsString !== "" && (T.paramsString += "&"), T.paramsString += y[v]);
|
|
6706
6706
|
}
|
|
6707
6707
|
return T;
|
|
6708
6708
|
}
|
|
@@ -6720,7 +6720,7 @@ function Es(t) {
|
|
|
6720
6720
|
}), c;
|
|
6721
6721
|
}
|
|
6722
6722
|
function D(c, p, y) {
|
|
6723
|
-
var T = null, v = new Promise(function(
|
|
6723
|
+
var T = null, v = new Promise(function(E, _) {
|
|
6724
6724
|
T = setTimeout(function() {
|
|
6725
6725
|
_({
|
|
6726
6726
|
error: y
|
|
@@ -6753,11 +6753,11 @@ function Es(t) {
|
|
|
6753
6753
|
var T = function(v) {
|
|
6754
6754
|
if (!(v.origin !== i.iframeOrigin || i.iframe.contentWindow !== v.source) && (v.data == "unchanged" || v.data == "changed" || v.data == "error")) {
|
|
6755
6755
|
v.data != "unchanged" && e.clearToken();
|
|
6756
|
-
for (var
|
|
6756
|
+
for (var E = i.callbackList.splice(
|
|
6757
6757
|
0,
|
|
6758
6758
|
i.callbackList.length
|
|
6759
|
-
), _ =
|
|
6760
|
-
var C =
|
|
6759
|
+
), _ = E.length - 1; _ >= 0; --_) {
|
|
6760
|
+
var C = E[_];
|
|
6761
6761
|
v.data == "error" ? C.setError() : C.setSuccess(v.data == "unchanged");
|
|
6762
6762
|
}
|
|
6763
6763
|
}
|
|
@@ -6823,7 +6823,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6823
6823
|
window.location.replace(e.createLogoutUrl(_));
|
|
6824
6824
|
return;
|
|
6825
6825
|
}
|
|
6826
|
-
const
|
|
6826
|
+
const L = e.createLogoutUrl(_), x = await fetch(L, {
|
|
6827
6827
|
method: "POST",
|
|
6828
6828
|
headers: {
|
|
6829
6829
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -6837,11 +6837,11 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6837
6837
|
)
|
|
6838
6838
|
})
|
|
6839
6839
|
});
|
|
6840
|
-
if (
|
|
6841
|
-
window.location.href =
|
|
6840
|
+
if (x.redirected) {
|
|
6841
|
+
window.location.href = x.url;
|
|
6842
6842
|
return;
|
|
6843
6843
|
}
|
|
6844
|
-
if (
|
|
6844
|
+
if (x.ok) {
|
|
6845
6845
|
window.location.reload();
|
|
6846
6846
|
return;
|
|
6847
6847
|
}
|
|
@@ -6866,83 +6866,83 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6866
6866
|
};
|
|
6867
6867
|
if (c == "cordova") {
|
|
6868
6868
|
i.enable = !1;
|
|
6869
|
-
var p = function(_, C,
|
|
6869
|
+
var p = function(_, C, L) {
|
|
6870
6870
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
|
|
6871
6871
|
_,
|
|
6872
6872
|
C,
|
|
6873
|
-
|
|
6874
|
-
) : window.open(_, C,
|
|
6873
|
+
L
|
|
6874
|
+
) : window.open(_, C, L);
|
|
6875
6875
|
}, y = function(_) {
|
|
6876
6876
|
return _ && _.cordovaOptions ? Object.keys(_.cordovaOptions).reduce(
|
|
6877
|
-
function(C,
|
|
6878
|
-
return C[
|
|
6877
|
+
function(C, L) {
|
|
6878
|
+
return C[L] = _.cordovaOptions[L], C;
|
|
6879
6879
|
},
|
|
6880
6880
|
{}
|
|
6881
6881
|
) : {};
|
|
6882
6882
|
}, T = function(_) {
|
|
6883
|
-
return Object.keys(_).reduce(function(C,
|
|
6883
|
+
return Object.keys(_).reduce(function(C, L) {
|
|
6884
6884
|
return C.push(
|
|
6885
|
-
|
|
6885
|
+
L + "=" + _[L]
|
|
6886
6886
|
), C;
|
|
6887
6887
|
}, []).join(",");
|
|
6888
6888
|
}, v = function(_) {
|
|
6889
6889
|
var C = y(_);
|
|
6890
6890
|
return C.location = "no", _ && _.prompt == "none" && (C.hidden = "yes"), T(C);
|
|
6891
|
-
},
|
|
6891
|
+
}, E = function() {
|
|
6892
6892
|
return e.redirectUri || "http://localhost";
|
|
6893
6893
|
};
|
|
6894
6894
|
return {
|
|
6895
6895
|
login: function(_) {
|
|
6896
|
-
var C = X(),
|
|
6897
|
-
|
|
6896
|
+
var C = X(), L = v(_), x = e.createLoginUrl(_), B = p(
|
|
6897
|
+
x,
|
|
6898
6898
|
"_blank",
|
|
6899
|
-
|
|
6900
|
-
), V = !1,
|
|
6901
|
-
|
|
6899
|
+
L
|
|
6900
|
+
), V = !1, Le = !1, be = function() {
|
|
6901
|
+
Le = !0, B.close();
|
|
6902
6902
|
};
|
|
6903
|
-
return
|
|
6904
|
-
if (we.url.indexOf(
|
|
6903
|
+
return B.addEventListener("loadstart", function(we) {
|
|
6904
|
+
if (we.url.indexOf(E()) == 0) {
|
|
6905
6905
|
var st = le(we.url);
|
|
6906
6906
|
S(st, C), be(), V = !0;
|
|
6907
6907
|
}
|
|
6908
|
-
}),
|
|
6908
|
+
}), B.addEventListener("loaderror", function(we) {
|
|
6909
6909
|
if (!V)
|
|
6910
|
-
if (we.url.indexOf(
|
|
6910
|
+
if (we.url.indexOf(E()) == 0) {
|
|
6911
6911
|
var st = le(we.url);
|
|
6912
6912
|
S(st, C), be(), V = !0;
|
|
6913
6913
|
} else
|
|
6914
6914
|
C.setError(), be();
|
|
6915
|
-
}),
|
|
6916
|
-
|
|
6915
|
+
}), B.addEventListener("exit", function(we) {
|
|
6916
|
+
Le || C.setError({
|
|
6917
6917
|
reason: "closed_by_user"
|
|
6918
6918
|
});
|
|
6919
6919
|
}), C.promise;
|
|
6920
6920
|
},
|
|
6921
6921
|
logout: function(_) {
|
|
6922
|
-
var C = X(),
|
|
6923
|
-
|
|
6922
|
+
var C = X(), L = e.createLogoutUrl(_), x = p(
|
|
6923
|
+
L,
|
|
6924
6924
|
"_blank",
|
|
6925
6925
|
"location=no,hidden=yes,clearcache=yes"
|
|
6926
|
-
),
|
|
6927
|
-
return
|
|
6928
|
-
V.url.indexOf(
|
|
6929
|
-
}),
|
|
6930
|
-
V.url.indexOf(
|
|
6931
|
-
}),
|
|
6932
|
-
|
|
6926
|
+
), B;
|
|
6927
|
+
return x.addEventListener("loadstart", function(V) {
|
|
6928
|
+
V.url.indexOf(E()) == 0 && x.close();
|
|
6929
|
+
}), x.addEventListener("loaderror", function(V) {
|
|
6930
|
+
V.url.indexOf(E()) == 0 || (B = !0), x.close();
|
|
6931
|
+
}), x.addEventListener("exit", function(V) {
|
|
6932
|
+
B ? C.setError() : (e.clearToken(), C.setSuccess());
|
|
6933
6933
|
}), C.promise;
|
|
6934
6934
|
},
|
|
6935
6935
|
register: function(_) {
|
|
6936
|
-
var C = X(),
|
|
6937
|
-
|
|
6936
|
+
var C = X(), L = e.createRegisterUrl(), x = v(_), B = p(
|
|
6937
|
+
L,
|
|
6938
6938
|
"_blank",
|
|
6939
|
-
|
|
6939
|
+
x
|
|
6940
6940
|
);
|
|
6941
|
-
return
|
|
6942
|
-
if (V.url.indexOf(
|
|
6943
|
-
|
|
6944
|
-
var
|
|
6945
|
-
S(
|
|
6941
|
+
return B.addEventListener("loadstart", function(V) {
|
|
6942
|
+
if (V.url.indexOf(E()) == 0) {
|
|
6943
|
+
B.close();
|
|
6944
|
+
var Le = le(V.url);
|
|
6945
|
+
S(Le, C);
|
|
6946
6946
|
}
|
|
6947
6947
|
}), C.promise;
|
|
6948
6948
|
},
|
|
@@ -6954,40 +6954,40 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6954
6954
|
"_blank",
|
|
6955
6955
|
"location=no"
|
|
6956
6956
|
);
|
|
6957
|
-
C.addEventListener("loadstart", function(
|
|
6958
|
-
|
|
6957
|
+
C.addEventListener("loadstart", function(L) {
|
|
6958
|
+
L.url.indexOf(E()) == 0 && C.close();
|
|
6959
6959
|
});
|
|
6960
6960
|
} else
|
|
6961
6961
|
throw "Not supported by the OIDC server";
|
|
6962
6962
|
},
|
|
6963
6963
|
redirectUri: function(_) {
|
|
6964
|
-
return
|
|
6964
|
+
return E();
|
|
6965
6965
|
}
|
|
6966
6966
|
};
|
|
6967
6967
|
}
|
|
6968
6968
|
if (c == "cordova-native")
|
|
6969
6969
|
return i.enable = !1, {
|
|
6970
6970
|
login: function(_) {
|
|
6971
|
-
var C = X(),
|
|
6972
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6971
|
+
var C = X(), L = e.createLoginUrl(_);
|
|
6972
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
6973
6973
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6974
|
-
var
|
|
6975
|
-
S(
|
|
6976
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6974
|
+
var B = le(x.url);
|
|
6975
|
+
S(B, C);
|
|
6976
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6977
6977
|
},
|
|
6978
6978
|
logout: function(_) {
|
|
6979
|
-
var C = X(),
|
|
6980
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6979
|
+
var C = X(), L = e.createLogoutUrl(_);
|
|
6980
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
6981
6981
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(), C.setSuccess();
|
|
6982
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6982
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6983
6983
|
},
|
|
6984
6984
|
register: function(_) {
|
|
6985
|
-
var C = X(),
|
|
6986
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6985
|
+
var C = X(), L = e.createRegisterUrl(_);
|
|
6986
|
+
return universalLinks.subscribe("keycloak", function(x) {
|
|
6987
6987
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6988
|
-
var
|
|
6989
|
-
S(
|
|
6990
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6988
|
+
var B = le(x.url);
|
|
6989
|
+
S(B, C);
|
|
6990
|
+
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6991
6991
|
},
|
|
6992
6992
|
accountManagement: function() {
|
|
6993
6993
|
var _ = e.createAccountUrl();
|
|
@@ -7011,10 +7011,10 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7011
7011
|
for (var y = (/* @__PURE__ */ new Date()).getTime(), T = 0; T < localStorage.length; T++) {
|
|
7012
7012
|
var v = localStorage.key(T);
|
|
7013
7013
|
if (v && v.indexOf("kc-callback-") == 0) {
|
|
7014
|
-
var
|
|
7015
|
-
if (
|
|
7014
|
+
var E = localStorage.getItem(v);
|
|
7015
|
+
if (E)
|
|
7016
7016
|
try {
|
|
7017
|
-
var _ = JSON.parse(
|
|
7017
|
+
var _ = JSON.parse(E).expires;
|
|
7018
7018
|
(!_ || _ < y) && localStorage.removeItem(v);
|
|
7019
7019
|
} catch {
|
|
7020
7020
|
localStorage.removeItem(v);
|
|
@@ -7038,9 +7038,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7038
7038
|
var c = this;
|
|
7039
7039
|
c.get = function(v) {
|
|
7040
7040
|
if (v) {
|
|
7041
|
-
var
|
|
7042
|
-
if (T("kc-callback-" + v, "", p(-100)),
|
|
7043
|
-
return JSON.parse(
|
|
7041
|
+
var E = y("kc-callback-" + v);
|
|
7042
|
+
if (T("kc-callback-" + v, "", p(-100)), E)
|
|
7043
|
+
return JSON.parse(E);
|
|
7044
7044
|
}
|
|
7045
7045
|
}, c.add = function(v) {
|
|
7046
7046
|
T(
|
|
@@ -7052,18 +7052,18 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7052
7052
|
T(v, "", p(-100));
|
|
7053
7053
|
};
|
|
7054
7054
|
var p = function(v) {
|
|
7055
|
-
var
|
|
7056
|
-
return
|
|
7055
|
+
var E = /* @__PURE__ */ new Date();
|
|
7056
|
+
return E.setTime(E.getTime() + v * 60 * 1e3), E;
|
|
7057
7057
|
}, y = function(v) {
|
|
7058
|
-
for (var
|
|
7059
|
-
for (var
|
|
7060
|
-
|
|
7061
|
-
if (
|
|
7062
|
-
return
|
|
7058
|
+
for (var E = v + "=", _ = document.cookie.split(";"), C = 0; C < _.length; C++) {
|
|
7059
|
+
for (var L = _[C]; L.charAt(0) == " "; )
|
|
7060
|
+
L = L.substring(1);
|
|
7061
|
+
if (L.indexOf(E) == 0)
|
|
7062
|
+
return L.substring(E.length, L.length);
|
|
7063
7063
|
}
|
|
7064
7064
|
return "";
|
|
7065
|
-
}, T = function(v,
|
|
7066
|
-
var C = v + "=" +
|
|
7065
|
+
}, T = function(v, E, _) {
|
|
7066
|
+
var C = v + "=" + E + "; expires=" + _.toUTCString() + "; ";
|
|
7067
7067
|
document.cookie = C;
|
|
7068
7068
|
};
|
|
7069
7069
|
};
|
|
@@ -7086,10 +7086,10 @@ function Wf(t) {
|
|
|
7086
7086
|
}
|
|
7087
7087
|
class Gf {
|
|
7088
7088
|
constructor(e) {
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
this.oidc = new
|
|
7089
|
+
oe(this, "oidc");
|
|
7090
|
+
oe(this, "isAuthenticated", !1);
|
|
7091
|
+
oe(this, "authenticatedWith", null);
|
|
7092
|
+
this.oidc = new Ps(e);
|
|
7093
7093
|
}
|
|
7094
7094
|
async InitAsync(e = {}) {
|
|
7095
7095
|
return await this.oidc.init(e).then(async (n) => (this.isAuthenticated = n, this.authenticatedWith = this.AuthenticatedWith(), n)).catch((n) => (console.info(
|
|
@@ -7112,11 +7112,11 @@ class Gf {
|
|
|
7112
7112
|
return e ? (n = e.identity_provider) != null && n.startsWith("GOV.BR") ? "govbr" : (o = e.identity_provider) != null && o.startsWith("senhaweb") ? "senhaweb" : "ad" : null;
|
|
7113
7113
|
}
|
|
7114
7114
|
}
|
|
7115
|
-
let
|
|
7116
|
-
function
|
|
7117
|
-
|
|
7115
|
+
let xs;
|
|
7116
|
+
function Bm(t) {
|
|
7117
|
+
xs = new Gf(t);
|
|
7118
7118
|
}
|
|
7119
|
-
const
|
|
7119
|
+
const _i = () => xs;
|
|
7120
7120
|
function qf(t) {
|
|
7121
7121
|
return Gs() ? (qs(t), !0) : !1;
|
|
7122
7122
|
}
|
|
@@ -7129,17 +7129,17 @@ function Zf(t) {
|
|
|
7129
7129
|
return Array.isArray(t) ? t : [t];
|
|
7130
7130
|
}
|
|
7131
7131
|
function Jf(t, e = !0, n) {
|
|
7132
|
-
Xf() ?
|
|
7132
|
+
Xf() ? xt(t, n) : e ? t() : Ti(t);
|
|
7133
7133
|
}
|
|
7134
|
-
const
|
|
7134
|
+
const Ls = Yf ? window : void 0;
|
|
7135
7135
|
function Bt(t) {
|
|
7136
7136
|
var e;
|
|
7137
|
-
const n =
|
|
7137
|
+
const n = Ei(t);
|
|
7138
7138
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
7139
7139
|
}
|
|
7140
7140
|
function Qf() {
|
|
7141
7141
|
const t = ne(!1), e = jo();
|
|
7142
|
-
return e &&
|
|
7142
|
+
return e && xt(() => {
|
|
7143
7143
|
t.value = !0;
|
|
7144
7144
|
}, e), t;
|
|
7145
7145
|
}
|
|
@@ -7148,12 +7148,12 @@ function em(t) {
|
|
|
7148
7148
|
return ce(() => (e.value, !!t()));
|
|
7149
7149
|
}
|
|
7150
7150
|
function tm(t, e, n = {}) {
|
|
7151
|
-
const { window: o =
|
|
7151
|
+
const { window: o = Ls, ...r } = n;
|
|
7152
7152
|
let i;
|
|
7153
7153
|
const a = em(() => o && "ResizeObserver" in o), s = () => {
|
|
7154
7154
|
i && (i.disconnect(), i = void 0);
|
|
7155
7155
|
}, l = ce(() => {
|
|
7156
|
-
const m =
|
|
7156
|
+
const m = Ei(t);
|
|
7157
7157
|
return Array.isArray(m) ? m.map((g) => Bt(g)) : [Bt(m)];
|
|
7158
7158
|
}), u = dn(
|
|
7159
7159
|
l,
|
|
@@ -7174,7 +7174,7 @@ function tm(t, e, n = {}) {
|
|
|
7174
7174
|
};
|
|
7175
7175
|
}
|
|
7176
7176
|
function nm(t, e = { width: 0, height: 0 }, n = {}) {
|
|
7177
|
-
const { window: o =
|
|
7177
|
+
const { window: o = Ls, box: r = "content-box" } = n, i = ce(() => {
|
|
7178
7178
|
var m, g;
|
|
7179
7179
|
return (g = (m = Bt(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
7180
7180
|
}), a = ne(e.width), s = ne(e.height), { stop: l } = tm(
|
|
@@ -7217,9 +7217,9 @@ function nm(t, e = { width: 0, height: 0 }, n = {}) {
|
|
|
7217
7217
|
function om(t) {
|
|
7218
7218
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7219
7219
|
}
|
|
7220
|
-
var zn = { exports: {} }, rm = zn.exports,
|
|
7220
|
+
var zn = { exports: {} }, rm = zn.exports, Si;
|
|
7221
7221
|
function im() {
|
|
7222
|
-
return
|
|
7222
|
+
return Si || (Si = 1, function(t) {
|
|
7223
7223
|
(function(e, n) {
|
|
7224
7224
|
t.exports ? t.exports = n() : e.log = n();
|
|
7225
7225
|
})(rm, function() {
|
|
@@ -7231,8 +7231,8 @@ function im() {
|
|
|
7231
7231
|
"warn",
|
|
7232
7232
|
"error"
|
|
7233
7233
|
], i = {}, a = null;
|
|
7234
|
-
function s(A,
|
|
7235
|
-
var b = A[
|
|
7234
|
+
function s(A, P) {
|
|
7235
|
+
var b = A[P];
|
|
7236
7236
|
if (typeof b.bind == "function")
|
|
7237
7237
|
return b.bind(A);
|
|
7238
7238
|
try {
|
|
@@ -7250,9 +7250,9 @@ function im() {
|
|
|
7250
7250
|
return A === "debug" && (A = "log"), typeof console === n ? !1 : A === "trace" && o ? l : console[A] !== void 0 ? s(console, A) : console.log !== void 0 ? s(console, "log") : e;
|
|
7251
7251
|
}
|
|
7252
7252
|
function d() {
|
|
7253
|
-
for (var A = this.getLevel(),
|
|
7254
|
-
var b = r[
|
|
7255
|
-
this[b] =
|
|
7253
|
+
for (var A = this.getLevel(), P = 0; P < r.length; P++) {
|
|
7254
|
+
var b = r[P];
|
|
7255
|
+
this[b] = P < A ? e : this.methodFactory(b, A, this.name);
|
|
7256
7256
|
}
|
|
7257
7257
|
if (this.log = this.debug, typeof console === n && A < this.levels.SILENT)
|
|
7258
7258
|
return "No console available for logging";
|
|
@@ -7262,11 +7262,11 @@ function im() {
|
|
|
7262
7262
|
typeof console !== n && (d.call(this), this[A].apply(this, arguments));
|
|
7263
7263
|
};
|
|
7264
7264
|
}
|
|
7265
|
-
function g(A,
|
|
7265
|
+
function g(A, P, b) {
|
|
7266
7266
|
return u(A) || m.apply(this, arguments);
|
|
7267
7267
|
}
|
|
7268
|
-
function w(A,
|
|
7269
|
-
var b = this, S,
|
|
7268
|
+
function w(A, P) {
|
|
7269
|
+
var b = this, S, N, H, Y = "loglevel";
|
|
7270
7270
|
typeof A == "string" ? Y += ":" + A : typeof A == "symbol" && (Y = void 0);
|
|
7271
7271
|
function ge(D) {
|
|
7272
7272
|
var J = (r[D] || "silent").toUpperCase();
|
|
@@ -7300,7 +7300,7 @@ function im() {
|
|
|
7300
7300
|
return b.levels[D] === void 0 && (D = void 0), D;
|
|
7301
7301
|
}
|
|
7302
7302
|
}
|
|
7303
|
-
function
|
|
7303
|
+
function Be() {
|
|
7304
7304
|
if (!(typeof window === n || !Y)) {
|
|
7305
7305
|
try {
|
|
7306
7306
|
window.localStorage.removeItem(Y);
|
|
@@ -7325,14 +7325,14 @@ function im() {
|
|
|
7325
7325
|
WARN: 3,
|
|
7326
7326
|
ERROR: 4,
|
|
7327
7327
|
SILENT: 5
|
|
7328
|
-
}, b.methodFactory =
|
|
7329
|
-
return H ??
|
|
7328
|
+
}, b.methodFactory = P || g, b.getLevel = function() {
|
|
7329
|
+
return H ?? N ?? S;
|
|
7330
7330
|
}, b.setLevel = function(D, J) {
|
|
7331
7331
|
return H = ue(D), J !== !1 && ge(H), d.call(b);
|
|
7332
7332
|
}, b.setDefaultLevel = function(D) {
|
|
7333
|
-
|
|
7333
|
+
N = ue(D), le() || b.setLevel(D, !1);
|
|
7334
7334
|
}, b.resetLevel = function() {
|
|
7335
|
-
H = null,
|
|
7335
|
+
H = null, Be(), d.call(b);
|
|
7336
7336
|
}, b.enableAll = function(D) {
|
|
7337
7337
|
b.setLevel(b.levels.TRACE, D);
|
|
7338
7338
|
}, b.disableAll = function(D) {
|
|
@@ -7347,12 +7347,12 @@ function im() {
|
|
|
7347
7347
|
var X = le();
|
|
7348
7348
|
X != null && (H = ue(X)), d.call(b);
|
|
7349
7349
|
}
|
|
7350
|
-
a = new w(), a.getLogger = function(
|
|
7351
|
-
if (typeof
|
|
7350
|
+
a = new w(), a.getLogger = function(P) {
|
|
7351
|
+
if (typeof P != "symbol" && typeof P != "string" || P === "")
|
|
7352
7352
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
7353
|
-
var b = i[
|
|
7354
|
-
return b || (b = i[
|
|
7355
|
-
|
|
7353
|
+
var b = i[P];
|
|
7354
|
+
return b || (b = i[P] = new w(
|
|
7355
|
+
P,
|
|
7356
7356
|
a.methodFactory
|
|
7357
7357
|
)), b;
|
|
7358
7358
|
};
|
|
@@ -7366,7 +7366,7 @@ function im() {
|
|
|
7366
7366
|
}(zn)), zn.exports;
|
|
7367
7367
|
}
|
|
7368
7368
|
var sm = im();
|
|
7369
|
-
const Wn = /* @__PURE__ */ om(sm),
|
|
7369
|
+
const Wn = /* @__PURE__ */ om(sm), Um = {
|
|
7370
7370
|
install(t, e) {
|
|
7371
7371
|
const n = e ?? {};
|
|
7372
7372
|
Wn.setDefaultLevel(
|
|
@@ -7378,7 +7378,7 @@ const Wn = /* @__PURE__ */ om(sm), Bm = {
|
|
|
7378
7378
|
`${o}px`
|
|
7379
7379
|
);
|
|
7380
7380
|
const r = ne(!0), i = ne(0), a = ne(!1), s = ne(!1), l = ne(""), u = ne(null), { width: d } = nm(u);
|
|
7381
|
-
t.provide(
|
|
7381
|
+
t.provide(Ki, {
|
|
7382
7382
|
navMenuWidth: o,
|
|
7383
7383
|
isMenuOpened: r,
|
|
7384
7384
|
ToggleMenu: () => {
|
|
@@ -7398,13 +7398,13 @@ const Wn = /* @__PURE__ */ om(sm), Bm = {
|
|
|
7398
7398
|
EnableLightMode: () => Zt.EnableLightMode(),
|
|
7399
7399
|
ClearStoredTheme: () => Zt.ClearStoredTheme(),
|
|
7400
7400
|
LogoutAsync: async () => {
|
|
7401
|
-
const g =
|
|
7401
|
+
const g = Lf(), { oidc: w } = _i();
|
|
7402
7402
|
await g.ConfirmAsync(
|
|
7403
7403
|
"Deseja realmente sair da sua conta?"
|
|
7404
7404
|
) && (s.value = !0, await new Promise((A) => setTimeout(A, 1e3)), w.logout({ redirectUri: window.location.origin }));
|
|
7405
7405
|
},
|
|
7406
7406
|
Login: () => {
|
|
7407
|
-
const { oidc: g } =
|
|
7407
|
+
const { oidc: g } = _i();
|
|
7408
7408
|
g.login();
|
|
7409
7409
|
},
|
|
7410
7410
|
isLoggingOut: s,
|
|
@@ -7426,20 +7426,20 @@ const Wn = /* @__PURE__ */ om(sm), Bm = {
|
|
|
7426
7426
|
i.value = document.documentElement.scrollTop;
|
|
7427
7427
|
}), Zt.SetInitialTheme();
|
|
7428
7428
|
}
|
|
7429
|
-
},
|
|
7429
|
+
}, Hm = Wn;
|
|
7430
7430
|
class Os extends Error {
|
|
7431
7431
|
constructor(n = []) {
|
|
7432
7432
|
const o = Array.isArray(n) ? n : [n];
|
|
7433
7433
|
super(o[0]);
|
|
7434
|
-
|
|
7434
|
+
oe(this, "errors", []);
|
|
7435
7435
|
this.errors = o;
|
|
7436
7436
|
}
|
|
7437
7437
|
}
|
|
7438
7438
|
class am {
|
|
7439
7439
|
constructor(e = null) {
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7440
|
+
oe(this, "errors", []);
|
|
7441
|
+
oe(this, "_value", null);
|
|
7442
|
+
oe(this, "_httpStatusCode");
|
|
7443
7443
|
this._value = e, this._httpStatusCode = 200;
|
|
7444
7444
|
}
|
|
7445
7445
|
get value() {
|
|
@@ -7494,7 +7494,7 @@ class $s {
|
|
|
7494
7494
|
allowOutsideClick: !1,
|
|
7495
7495
|
icon: n,
|
|
7496
7496
|
title: r,
|
|
7497
|
-
html: `<div style="max-height: 50vh; overflow: auto">${
|
|
7497
|
+
html: `<div style="max-height: 50vh; overflow: auto">${sr.sanitize(
|
|
7498
7498
|
o
|
|
7499
7499
|
)}</div>`
|
|
7500
7500
|
}).then(() => i(!0));
|
|
@@ -7519,18 +7519,18 @@ class $s {
|
|
|
7519
7519
|
});
|
|
7520
7520
|
}
|
|
7521
7521
|
}
|
|
7522
|
-
const lm = () => new $s(),
|
|
7522
|
+
const lm = () => new $s(), jm = () => new $s();
|
|
7523
7523
|
window.addEventListener("error", function(t) {
|
|
7524
|
-
return
|
|
7524
|
+
return ar(t.error) || console.error(t.error || t.message), t.preventDefault(), !1;
|
|
7525
7525
|
});
|
|
7526
7526
|
window.addEventListener("unhandledrejection", function(t) {
|
|
7527
|
-
return
|
|
7527
|
+
return ar(t.reason) || console.error("Unhandled Rejection", t.reason), t.preventDefault(), !1;
|
|
7528
7528
|
});
|
|
7529
|
-
const
|
|
7529
|
+
const Fm = (t) => {
|
|
7530
7530
|
t.config.errorHandler = (e, n, o) => {
|
|
7531
|
-
|
|
7531
|
+
ar(e) || console.error("Vue Global Error Handler: ", { err: e, vm: n, info: o });
|
|
7532
7532
|
};
|
|
7533
|
-
},
|
|
7533
|
+
}, ar = (t) => {
|
|
7534
7534
|
try {
|
|
7535
7535
|
if (t.httpStatusCode === 401)
|
|
7536
7536
|
return !0;
|
|
@@ -7539,9 +7539,9 @@ const Hm = (t) => {
|
|
|
7539
7539
|
return t instanceof Os || t instanceof am ? (lm().AlertErrorAsync(t.errors), !0) : !1;
|
|
7540
7540
|
};
|
|
7541
7541
|
function cm() {
|
|
7542
|
-
return Ys(
|
|
7542
|
+
return Ys(Ki);
|
|
7543
7543
|
}
|
|
7544
|
-
const
|
|
7544
|
+
const lr = () => cm(), um = { class: "font-percentage" }, ki = "--font-size-increment", dm = "tamanho-fonte", fm = /* @__PURE__ */ De({
|
|
7545
7545
|
__name: "FontSize",
|
|
7546
7546
|
setup(t) {
|
|
7547
7547
|
const e = ne(!1), n = ne(0), o = () => {
|
|
@@ -7550,11 +7550,11 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7550
7550
|
e.value = !1;
|
|
7551
7551
|
}, i = () => document.documentElement, a = () => parseInt(
|
|
7552
7552
|
getComputedStyle(i()).getPropertyValue(
|
|
7553
|
-
|
|
7553
|
+
ki
|
|
7554
7554
|
) || "1"
|
|
7555
7555
|
), s = (g) => {
|
|
7556
7556
|
g < 0.5 || g > 1.6 || (i().style.setProperty(
|
|
7557
|
-
|
|
7557
|
+
ki,
|
|
7558
7558
|
g.toString()
|
|
7559
7559
|
), m.value = g);
|
|
7560
7560
|
}, l = () => {
|
|
@@ -7566,7 +7566,7 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7566
7566
|
}, m = ne(1);
|
|
7567
7567
|
return Xs(() => {
|
|
7568
7568
|
localStorage.removeItem(dm);
|
|
7569
|
-
}),
|
|
7569
|
+
}), xt(() => {
|
|
7570
7570
|
m.value = a();
|
|
7571
7571
|
}), (g, w) => (O(), U(Xe, null, [
|
|
7572
7572
|
Ae(ut, {
|
|
@@ -7609,7 +7609,7 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7609
7609
|
}), mm = /* @__PURE__ */ _t(fm, [["__scopeId", "data-v-d17f4a5f"]]), pm = /* @__PURE__ */ De({
|
|
7610
7610
|
__name: "ScrollToTop",
|
|
7611
7611
|
setup(t) {
|
|
7612
|
-
const { scrollY: e } =
|
|
7612
|
+
const { scrollY: e } = lr(), n = ce(() => e.value > 800);
|
|
7613
7613
|
function o() {
|
|
7614
7614
|
document.documentElement.scrollTo(0, 0);
|
|
7615
7615
|
}
|
|
@@ -7640,15 +7640,15 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7640
7640
|
Login: m,
|
|
7641
7641
|
isLoggingOut: g,
|
|
7642
7642
|
mainRef: w
|
|
7643
|
-
} =
|
|
7643
|
+
} = lr(), k = ne(null), A = () => {
|
|
7644
7644
|
if (!k.value || !o.value) return !1;
|
|
7645
7645
|
k.value.offsetWidth !== n && u();
|
|
7646
7646
|
};
|
|
7647
|
-
return
|
|
7647
|
+
return xt(() => {
|
|
7648
7648
|
Js().afterEach(() => {
|
|
7649
7649
|
A();
|
|
7650
7650
|
});
|
|
7651
|
-
}), (
|
|
7651
|
+
}), (P, b) => (O(), U("main", {
|
|
7652
7652
|
ref_key: "mainRef",
|
|
7653
7653
|
ref: w,
|
|
7654
7654
|
class: ee({
|
|
@@ -7672,7 +7672,7 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7672
7672
|
}, null, 8, ["onClick"])
|
|
7673
7673
|
])
|
|
7674
7674
|
]),
|
|
7675
|
-
pe(
|
|
7675
|
+
pe(P.$slots, "nav-menu", {}, void 0, !0)
|
|
7676
7676
|
], 2),
|
|
7677
7677
|
M("div", vm, [
|
|
7678
7678
|
M("div", {
|
|
@@ -7718,20 +7718,20 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7718
7718
|
M("div", wm, [
|
|
7719
7719
|
se(g) ? (O(), U("div", _m, [
|
|
7720
7720
|
Ae(Pi)
|
|
7721
|
-
])) : pe(
|
|
7721
|
+
])) : pe(P.$slots, "content", { key: 1 }, void 0, !0)
|
|
7722
7722
|
])
|
|
7723
7723
|
]),
|
|
7724
7724
|
M("footer", null, [
|
|
7725
7725
|
b[4] || (b[4] = M("div", { class: "logo-fazenda" }, null, -1)),
|
|
7726
7726
|
M("div", Sm, [
|
|
7727
7727
|
M("span", km, [
|
|
7728
|
-
pe(
|
|
7729
|
-
b[2] || (b[2] =
|
|
7728
|
+
pe(P.$slots, "footer-nome-fazenda", {}, () => [
|
|
7729
|
+
b[2] || (b[2] = Ar(" SECRETARIA MUNICIPAL DA FAZENDA "))
|
|
7730
7730
|
], !0)
|
|
7731
7731
|
]),
|
|
7732
7732
|
M("span", Cm, [
|
|
7733
|
-
pe(
|
|
7734
|
-
b[3] || (b[3] =
|
|
7733
|
+
pe(P.$slots, "footer-endereco-fazenda", {}, () => [
|
|
7734
|
+
b[3] || (b[3] = Ar(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))
|
|
7735
7735
|
], !0)
|
|
7736
7736
|
])
|
|
7737
7737
|
])
|
|
@@ -7739,18 +7739,18 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7739
7739
|
Ae(pm)
|
|
7740
7740
|
], 2));
|
|
7741
7741
|
}
|
|
7742
|
-
}),
|
|
7742
|
+
}), Vm = /* @__PURE__ */ _t(Im, [["__scopeId", "data-v-35786704"]]), Km = /* @__PURE__ */ De({
|
|
7743
7743
|
__name: "PageTitle",
|
|
7744
7744
|
props: {
|
|
7745
7745
|
title: {}
|
|
7746
7746
|
},
|
|
7747
7747
|
setup(t) {
|
|
7748
|
-
const { pageTitle: e } =
|
|
7748
|
+
const { pageTitle: e } = lr(), n = t;
|
|
7749
7749
|
return Zs(() => {
|
|
7750
7750
|
document.title = n.title, e.value = n.title;
|
|
7751
7751
|
}), (o, r) => null;
|
|
7752
7752
|
}
|
|
7753
|
-
}),
|
|
7753
|
+
}), Ci = {
|
|
7754
7754
|
surface: {
|
|
7755
7755
|
0: "{surface.0.color}",
|
|
7756
7756
|
50: "{surface.100.color}",
|
|
@@ -7814,7 +7814,7 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7814
7814
|
color: "{primary.color}"
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
|
-
},
|
|
7817
|
+
}, zm = {
|
|
7818
7818
|
semantic: {
|
|
7819
7819
|
disabled: {
|
|
7820
7820
|
opacity: "1"
|
|
@@ -7834,8 +7834,8 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7834
7834
|
950: "{primary.color}"
|
|
7835
7835
|
},
|
|
7836
7836
|
colorScheme: {
|
|
7837
|
-
light: { ...
|
|
7838
|
-
dark: { ...
|
|
7837
|
+
light: { ...Ci },
|
|
7838
|
+
dark: { ...Ci }
|
|
7839
7839
|
}
|
|
7840
7840
|
},
|
|
7841
7841
|
components: {
|
|
@@ -8031,10 +8031,56 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
8031
8031
|
hoverBorderColor: "{primary.color}",
|
|
8032
8032
|
placeholderColor: "{text.muted.color}"
|
|
8033
8033
|
}
|
|
8034
|
+
},
|
|
8035
|
+
toast: {
|
|
8036
|
+
root: {
|
|
8037
|
+
width: "min(90vw, 320px)"
|
|
8038
|
+
},
|
|
8039
|
+
colorScheme: {
|
|
8040
|
+
light: {
|
|
8041
|
+
contrast: {
|
|
8042
|
+
background: "{text.color}",
|
|
8043
|
+
color: "{bg.color}",
|
|
8044
|
+
detailColor: "{bg.color}"
|
|
8045
|
+
}
|
|
8046
|
+
},
|
|
8047
|
+
dark: {
|
|
8048
|
+
contrast: {
|
|
8049
|
+
background: "{bg.color}",
|
|
8050
|
+
color: "{text.color}",
|
|
8051
|
+
detailColor: "{text.color}"
|
|
8052
|
+
}
|
|
8053
|
+
}
|
|
8054
|
+
},
|
|
8055
|
+
info: {
|
|
8056
|
+
background: "{info.color}",
|
|
8057
|
+
color: "{info.hover.color}",
|
|
8058
|
+
detailColor: "{text.color}"
|
|
8059
|
+
},
|
|
8060
|
+
success: {
|
|
8061
|
+
background: "{success.color}",
|
|
8062
|
+
color: "{success.hover.color}",
|
|
8063
|
+
detailColor: "{text.color}"
|
|
8064
|
+
},
|
|
8065
|
+
warn: {
|
|
8066
|
+
background: "{warn.color}",
|
|
8067
|
+
color: "{warn.hover.color}",
|
|
8068
|
+
detailColor: "{text.color}"
|
|
8069
|
+
},
|
|
8070
|
+
error: {
|
|
8071
|
+
background: "{error.color}",
|
|
8072
|
+
color: "{error.hover.color}",
|
|
8073
|
+
detailColor: "{text.color}"
|
|
8074
|
+
},
|
|
8075
|
+
secondary: {
|
|
8076
|
+
background: "{secondary.color}",
|
|
8077
|
+
color: "{secondary.hover.color}",
|
|
8078
|
+
detailColor: "{text.color}"
|
|
8079
|
+
}
|
|
8034
8080
|
}
|
|
8035
8081
|
}
|
|
8036
8082
|
};
|
|
8037
|
-
class
|
|
8083
|
+
class Tt {
|
|
8038
8084
|
/**
|
|
8039
8085
|
* https://www.w3.org/TR/mediaqueries-4/#valdef-media-pointer-coarse
|
|
8040
8086
|
* The primary input mechanism of the device includes a pointing device of limited accuracy. Examples include touchscreens and motion-detection sensors (like the Kinect peripheral for the Xbox.)
|
|
@@ -8084,16 +8130,16 @@ class Ht {
|
|
|
8084
8130
|
return n.replace(/#/g, () => r[o++] || "");
|
|
8085
8131
|
}
|
|
8086
8132
|
static MaskCpf(e) {
|
|
8087
|
-
return
|
|
8133
|
+
return Tt.Mask(e.padStart(11, "0"), "###.###.###-##");
|
|
8088
8134
|
}
|
|
8089
8135
|
static MaskCnpj(e) {
|
|
8090
|
-
return
|
|
8136
|
+
return Tt.Mask(
|
|
8091
8137
|
e.padStart(14, "0"),
|
|
8092
8138
|
"##.###.###/####-##"
|
|
8093
8139
|
);
|
|
8094
8140
|
}
|
|
8095
8141
|
static MaskCcm(e) {
|
|
8096
|
-
return
|
|
8142
|
+
return Tt.Mask(e.padStart(8, "0"), "#.###.###-#");
|
|
8097
8143
|
}
|
|
8098
8144
|
/**
|
|
8099
8145
|
* Pausa a execução do código por um determinado tempo, em milissegundos.
|
|
@@ -8105,25 +8151,25 @@ class Ht {
|
|
|
8105
8151
|
return new Promise((n) => setTimeout(n, e));
|
|
8106
8152
|
}
|
|
8107
8153
|
}
|
|
8108
|
-
class
|
|
8154
|
+
class Wm {
|
|
8109
8155
|
constructor(e) {
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8156
|
+
oe(this, "sub");
|
|
8157
|
+
oe(this, "username");
|
|
8158
|
+
oe(this, "name");
|
|
8159
|
+
oe(this, "email");
|
|
8160
|
+
oe(this, "roles");
|
|
8161
|
+
oe(this, "groups");
|
|
8162
|
+
oe(this, "userinfo");
|
|
8163
|
+
oe(this, "department");
|
|
8164
|
+
oe(this, "jobTitle");
|
|
8165
|
+
oe(this, "idp");
|
|
8120
8166
|
this.userinfo = e, this.sub = e.sub, this.username = e.employeeID ?? e.cpf ?? "", this.name = e.name ?? "", this.email = e.email ?? null, this.roles = e.role ?? [], this.groups = e.group ?? [], this.department = this.SetDepartment(), this.jobTitle = this.SetJobTitle(), this.idp = this.SetIdp();
|
|
8121
8167
|
}
|
|
8122
8168
|
get firstname() {
|
|
8123
8169
|
return this.name.split(" ")[0] ?? this.name;
|
|
8124
8170
|
}
|
|
8125
8171
|
get maskedUsername() {
|
|
8126
|
-
return this.username ? this.username.length <= 11 ?
|
|
8172
|
+
return this.username ? this.username.length <= 11 ? Tt.MaskCpf(this.username) : this.username.length === 14 ? Tt.MaskCnpj(this.username) : this.username : "";
|
|
8127
8173
|
}
|
|
8128
8174
|
IsInRole(e) {
|
|
8129
8175
|
return this.roles.includes(e);
|
|
@@ -8145,7 +8191,7 @@ class Km {
|
|
|
8145
8191
|
return ((e = this.userinfo) == null ? void 0 : e.jobTitle) ?? null;
|
|
8146
8192
|
}
|
|
8147
8193
|
}
|
|
8148
|
-
function
|
|
8194
|
+
function Gm() {
|
|
8149
8195
|
const t = ne("development");
|
|
8150
8196
|
function e(l) {
|
|
8151
8197
|
t.value = l.toLocaleLowerCase();
|
|
@@ -8165,7 +8211,7 @@ function zm() {
|
|
|
8165
8211
|
$reset: s
|
|
8166
8212
|
};
|
|
8167
8213
|
}
|
|
8168
|
-
const
|
|
8214
|
+
const qm = (t) => {
|
|
8169
8215
|
const e = /* @__PURE__ */ new Set();
|
|
8170
8216
|
function n(o) {
|
|
8171
8217
|
const { name: r, children: i } = o;
|
|
@@ -8195,39 +8241,94 @@ Promise.prototype.TrackStateWith || (Promise.prototype.TrackStateWith = async fu
|
|
|
8195
8241
|
t.value = !1;
|
|
8196
8242
|
}
|
|
8197
8243
|
});
|
|
8198
|
-
|
|
8244
|
+
class Tm {
|
|
8245
|
+
constructor() {
|
|
8246
|
+
oe(this, "current", null);
|
|
8247
|
+
oe(this, "resolve", null);
|
|
8248
|
+
}
|
|
8249
|
+
/**
|
|
8250
|
+
* Exibe uma notificação simples.
|
|
8251
|
+
* @param message Mensagem da notificação.
|
|
8252
|
+
* @param life Tempo em milissegundos para a notificação desaparecer.
|
|
8253
|
+
* Use `0` para desabilitar o fechamento automático.
|
|
8254
|
+
* @default 5000
|
|
8255
|
+
*/
|
|
8256
|
+
async showAsync(e, n) {
|
|
8257
|
+
const o = {
|
|
8258
|
+
message: e,
|
|
8259
|
+
life: n ?? 5e3
|
|
8260
|
+
};
|
|
8261
|
+
return this.Render(o);
|
|
8262
|
+
}
|
|
8263
|
+
async Render(e) {
|
|
8264
|
+
return new Promise((n) => {
|
|
8265
|
+
this.resolve = n, this.current && (this.current.style.opacity = "0", setTimeout(
|
|
8266
|
+
(function() {
|
|
8267
|
+
this.parentElement && // @ts-ignore
|
|
8268
|
+
this.parentElement.removeChild(this);
|
|
8269
|
+
}).bind(this.current),
|
|
8270
|
+
500
|
|
8271
|
+
));
|
|
8272
|
+
const o = document.createElement("div"), r = document.createElement("div"), i = document.createElement("div");
|
|
8273
|
+
r.className = "content", i.className = "progress", r.appendChild(i), o.className = "sf-toast", o.style.zIndex = (Tt.GetMaxZindex() + 1).toString(), o.appendChild(r), this.current = o, document.body.appendChild(o), o.addEventListener("transitionend", (l) => {
|
|
8274
|
+
l.propertyName === "opacity" && o.style.opacity === "0" && (document.body.removeChild(o), this.current && this.current === o && (this.current = null));
|
|
8275
|
+
});
|
|
8276
|
+
const a = [];
|
|
8277
|
+
Array.isArray(e.message) ? a.push(...e.message) : a.push(e.message);
|
|
8278
|
+
for (const l of a) {
|
|
8279
|
+
const u = document.createElement("p");
|
|
8280
|
+
u.innerHTML = sr.sanitize(l), r.appendChild(u);
|
|
8281
|
+
}
|
|
8282
|
+
const s = document.createElement("i");
|
|
8283
|
+
if (s.classList.add("icon", "material-symbols-outlined"), s.innerText = "close", s.addEventListener("click", () => {
|
|
8284
|
+
this.Close();
|
|
8285
|
+
}), r.appendChild(s), getComputedStyle(o).bottom, getComputedStyle(o).top, o.classList.add("visible"), e.life) {
|
|
8286
|
+
i.style.transitionDuration = `${e.life - 300}ms`, r.classList.add("animate"), setTimeout(() => {
|
|
8287
|
+
this.current === o && this.Close();
|
|
8288
|
+
}, e.life);
|
|
8289
|
+
return;
|
|
8290
|
+
}
|
|
8291
|
+
});
|
|
8292
|
+
}
|
|
8293
|
+
Close() {
|
|
8294
|
+
this.resolve && this.resolve(), this.current && this.current.classList.remove("visible");
|
|
8295
|
+
}
|
|
8296
|
+
}
|
|
8297
|
+
const Am = new Tm(), Ym = () => Am;
|
|
8298
|
+
function Xm() {
|
|
8199
8299
|
document.documentElement.classList.add("app-mounted");
|
|
8200
8300
|
}
|
|
8201
8301
|
export {
|
|
8202
8302
|
Os as AppError,
|
|
8203
8303
|
am as AppResult,
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8304
|
+
Gm as BaseAppState,
|
|
8305
|
+
Bm as ConfigAuth,
|
|
8306
|
+
qm as EnsureUniqueRouteNames,
|
|
8307
|
+
Xm as RemovePreloader,
|
|
8308
|
+
Om as SfButton,
|
|
8309
|
+
Dm as SfContent,
|
|
8210
8310
|
ga as SfDrawer,
|
|
8211
|
-
|
|
8311
|
+
Rm as SfHelpButton,
|
|
8212
8312
|
ut as SfIcon,
|
|
8213
8313
|
da as SfLoadingCircle,
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8314
|
+
Vm as SfMain,
|
|
8315
|
+
$m as SfMessage,
|
|
8316
|
+
Mm as SfNavMenu,
|
|
8317
|
+
Km as SfPageTitle,
|
|
8318
|
+
Lm as SfTabNavigation,
|
|
8219
8319
|
Qs as SfTooltip,
|
|
8220
8320
|
lm as UseAlert,
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8321
|
+
jm as UseAlertService,
|
|
8322
|
+
lr as UseAppInject,
|
|
8323
|
+
_i as UseAuth,
|
|
8324
|
+
Lf as UseConfirm,
|
|
8325
|
+
Nm as UseConfirmService,
|
|
8326
|
+
Ym as UseSimpleToast,
|
|
8327
|
+
Wm as User,
|
|
8328
|
+
Tt as Utilities,
|
|
8329
|
+
Hm as _logger,
|
|
8330
|
+
Um as configSF,
|
|
8331
|
+
Fm as globalErrorHandler,
|
|
8332
|
+
zm as themePreset
|
|
8232
8333
|
};
|
|
8233
8334
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.js.map
|