@luizleon/sf.prefeiturasp.vuecomponents 6.0.35 → 6.0.36
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.js +224 -238
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/composables/usePullToRefresh.d.ts +0 -2
- package/dist/types/composables/usePullToRefresh.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ie, onBeforeUnmount as
|
|
1
|
+
import { defineComponent as ie, onBeforeUnmount as oo, openBlock as _, createElementBlock as x, unref as $, renderSlot as G, createElementVNode as b, computed as Z, createBlock as ne, resolveDynamicComponent as ht, normalizeClass as j, withCtx as le, normalizeStyle as It, Fragment as ke, mergeProps as M, toDisplayString as K, createCommentVNode as F, ref as R, onMounted as $t, resolveComponent as Pn, renderList as At, useSlots as Fa, watch as qt, Teleport as za, createVNode as q, Transition as ao, normalizeProps as Ct, guardReactiveProps as _t, readonly as ws, getCurrentInstance as Vo, nextTick as io, useId as ys, resolveDirective as ks, withDirectives as Vr, vShow as Ua, withModifiers as Wo, inject as Cs, onBeforeMount as Va, onUnmounted as _s, createTextVNode as Ye, watchEffect as Ss, useModel as xs, mergeModels as Ts } from "vue";
|
|
2
2
|
import { useElementSize as Is, useResizeObserver as As } from "@vueuse/core";
|
|
3
3
|
import { UseAuth as Wt } from "@luizleon/sf.prefeiturasp.vueauth";
|
|
4
4
|
import { useRouter as Es } from "vue-router";
|
|
@@ -36,7 +36,7 @@ class yn {
|
|
|
36
36
|
return this.retorno.trim();
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function hr(t = []) {
|
|
40
40
|
let e = "body > *:not(script):not(style)";
|
|
41
41
|
for (const r of t)
|
|
42
42
|
e += `, ${r}`;
|
|
@@ -61,7 +61,7 @@ const Ps = /* @__PURE__ */ ie({
|
|
|
61
61
|
inner = null;
|
|
62
62
|
showTimeout = null;
|
|
63
63
|
Render() {
|
|
64
|
-
this.wrapper = document.createElement("div"), this.wrapper.classList.add("sf-tooltip-wrapper"), this.wrapper.style.zIndex = `${
|
|
64
|
+
this.wrapper = document.createElement("div"), this.wrapper.classList.add("sf-tooltip-wrapper"), this.wrapper.style.zIndex = `${hr() ?? 1}`, this.wrapper.addEventListener("mouseup", function() {
|
|
65
65
|
this.classList.remove("visible"), Array.from(this.children).forEach((a) => a.remove()), this.remove();
|
|
66
66
|
}), this.inner = document.createElement("div"), this.inner.classList.add("sf-tooltip-inner"), this.wrapper.appendChild(this.inner);
|
|
67
67
|
}
|
|
@@ -105,7 +105,7 @@ const Ps = /* @__PURE__ */ ie({
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
const r = new n();
|
|
108
|
-
return
|
|
108
|
+
return oo(() => {
|
|
109
109
|
r.Hide();
|
|
110
110
|
}), (o, a) => (_(), x("div", {
|
|
111
111
|
class: "sf-tooltip-anchor",
|
|
@@ -185,7 +185,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
185
185
|
}, [
|
|
186
186
|
n.visible ? (_(), x("div", {
|
|
187
187
|
key: 0,
|
|
188
|
-
style:
|
|
188
|
+
style: It(n.style),
|
|
189
189
|
class: j(a.value)
|
|
190
190
|
}, [
|
|
191
191
|
n.loading ? (_(), ne(Wa, { key: 0 })) : (_(), x(ke, { key: 1 }, [
|
|
@@ -227,9 +227,9 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
227
227
|
const i = n.value.scrollWidth - n.value.clientWidth;
|
|
228
228
|
o.value = n.value.scrollLeft > 10, a.value = n.value.scrollLeft < i - 10;
|
|
229
229
|
}
|
|
230
|
-
return
|
|
230
|
+
return $t(() => {
|
|
231
231
|
n.value.addEventListener("scroll", s), r.observe(n.value);
|
|
232
|
-
}),
|
|
232
|
+
}), oo(() => {
|
|
233
233
|
try {
|
|
234
234
|
n.value?.removeEventListener(
|
|
235
235
|
"scroll",
|
|
@@ -263,7 +263,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
263
263
|
ref_key: "trackerContainer",
|
|
264
264
|
ref: n
|
|
265
265
|
}, [
|
|
266
|
-
(_(!0), x(ke, null,
|
|
266
|
+
(_(!0), x(ke, null, At(e.tabs, (m) => (_(), ne(u, {
|
|
267
267
|
to: m.route,
|
|
268
268
|
custom: !0
|
|
269
269
|
}, {
|
|
@@ -315,7 +315,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
315
315
|
},
|
|
316
316
|
setup(t) {
|
|
317
317
|
const e = t, n = R(!1);
|
|
318
|
-
return
|
|
318
|
+
return $t(async () => {
|
|
319
319
|
await new Promise(
|
|
320
320
|
(r) => setTimeout(r, e.delay ?? 300)
|
|
321
321
|
), n.value = !0;
|
|
@@ -371,7 +371,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
371
371
|
id: n.id,
|
|
372
372
|
name: n.name,
|
|
373
373
|
class: j(r()),
|
|
374
|
-
style:
|
|
374
|
+
style: It(n.style),
|
|
375
375
|
disabled: n.disabled,
|
|
376
376
|
"data-color": n.color,
|
|
377
377
|
form: n.form,
|
|
@@ -435,7 +435,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
435
435
|
r("open"), window.document.addEventListener("keydown", m, !0);
|
|
436
436
|
}
|
|
437
437
|
function p(v) {
|
|
438
|
-
r("before-open"), s.value =
|
|
438
|
+
r("before-open"), s.value = hr() + 1, v.style.zIndex = `${s.value}`;
|
|
439
439
|
}
|
|
440
440
|
function w(v) {
|
|
441
441
|
r("before-close"), v?.parentElement?.classList.add("sf-mask-overlay-leave");
|
|
@@ -461,7 +461,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
461
461
|
key: 0,
|
|
462
462
|
id: i,
|
|
463
463
|
class: j(y()),
|
|
464
|
-
style:
|
|
464
|
+
style: It({ zIndex: s.value - 1 }),
|
|
465
465
|
onClick: u
|
|
466
466
|
}, [
|
|
467
467
|
q(ao, {
|
|
@@ -476,10 +476,10 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
476
476
|
a.value ? (_(), x("div", {
|
|
477
477
|
key: 0,
|
|
478
478
|
class: j(["sf-drawer"]),
|
|
479
|
-
style:
|
|
479
|
+
style: It(n.style),
|
|
480
480
|
role: "dialog"
|
|
481
481
|
}, [
|
|
482
|
-
G(v.$slots, "header", _t(
|
|
482
|
+
G(v.$slots, "header", Ct(_t({ Close: c })), () => [
|
|
483
483
|
b("div", {
|
|
484
484
|
class: j(["sf-drawer-header", { unstyled: n.unstyledHeader }])
|
|
485
485
|
}, [
|
|
@@ -488,7 +488,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
488
488
|
]),
|
|
489
489
|
S[0] || (S[0] = b("div", { class: "sf-drawer-spacer" }, null, -1)),
|
|
490
490
|
b("div", Ks, [
|
|
491
|
-
G(v.$slots, "action", _t(
|
|
491
|
+
G(v.$slots, "action", Ct(_t({ Close: c })), () => [
|
|
492
492
|
q(Xe, {
|
|
493
493
|
button: !0,
|
|
494
494
|
icon: "close",
|
|
@@ -507,7 +507,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
|
|
|
507
507
|
key: 0,
|
|
508
508
|
class: j(["sf-drawer-footer", { unstyled: n.unstyledFooter }])
|
|
509
509
|
}, [
|
|
510
|
-
G(v.$slots, "footer", _t(
|
|
510
|
+
G(v.$slots, "footer", Ct(_t({ Close: c })))
|
|
511
511
|
], 2)) : F("", !0)
|
|
512
512
|
], 4)) : F("", !0)
|
|
513
513
|
]),
|
|
@@ -561,7 +561,7 @@ function Xs(t, e) {
|
|
|
561
561
|
[e].flat().filter(Boolean).forEach((r) => r.split(" ").forEach(n));
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Pr(t, e) {
|
|
565
565
|
if (t && e) {
|
|
566
566
|
let n = (r) => {
|
|
567
567
|
t.classList ? t.classList.remove(r) : t.className = t.className.replace(new RegExp("(^|\\b)" + r.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
@@ -664,14 +664,14 @@ function ol(t, e = "", n) {
|
|
|
664
664
|
function bt(t) {
|
|
665
665
|
return t == null || t === "" || Array.isArray(t) && t.length === 0 || !(t instanceof Date) && typeof t == "object" && Object.keys(t).length === 0;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Wr(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
668
668
|
if (t === e) return !0;
|
|
669
669
|
if (!t || !e || typeof t != "object" || typeof e != "object" || n.has(t) || n.has(e)) return !1;
|
|
670
670
|
n.add(t).add(e);
|
|
671
671
|
let r = Array.isArray(t), o = Array.isArray(e), a, l, s;
|
|
672
672
|
if (r && o) {
|
|
673
673
|
if (l = t.length, l != e.length) return !1;
|
|
674
|
-
for (a = l; a-- !== 0; ) if (!
|
|
674
|
+
for (a = l; a-- !== 0; ) if (!Wr(t[a], e[a], n)) return !1;
|
|
675
675
|
return !0;
|
|
676
676
|
}
|
|
677
677
|
if (r != o) return !1;
|
|
@@ -684,11 +684,11 @@ function Kr(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
684
684
|
let f = Object.keys(t);
|
|
685
685
|
if (l = f.length, l !== Object.keys(e).length) return !1;
|
|
686
686
|
for (a = l; a-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, f[a])) return !1;
|
|
687
|
-
for (a = l; a-- !== 0; ) if (s = f[a], !
|
|
687
|
+
for (a = l; a-- !== 0; ) if (s = f[a], !Wr(t[s], e[s], n)) return !1;
|
|
688
688
|
return !0;
|
|
689
689
|
}
|
|
690
690
|
function al(t, e) {
|
|
691
|
-
return
|
|
691
|
+
return Wr(t, e);
|
|
692
692
|
}
|
|
693
693
|
function so(t) {
|
|
694
694
|
return typeof t == "function" && "call" in t && "apply" in t;
|
|
@@ -743,7 +743,7 @@ function il(t) {
|
|
|
743
743
|
function sl(t = "") {
|
|
744
744
|
return B(t) && t.length === 1 && !!t.match(/\S| /);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function St(t, e) {
|
|
747
747
|
if (e) {
|
|
748
748
|
let n = e.test(t);
|
|
749
749
|
return e.lastIndex = 0, n;
|
|
@@ -784,7 +784,7 @@ var ul = Object.defineProperty, dl = Object.defineProperties, ml = Object.getOwn
|
|
|
784
784
|
for (var n in e || (e = {})) Ya.call(e, n) && Zo(t, n, e[n]);
|
|
785
785
|
if (ar) for (var n of ar(e)) Xa.call(e, n) && Zo(t, n, e[n]);
|
|
786
786
|
return t;
|
|
787
|
-
},
|
|
787
|
+
}, $r = (t, e) => dl(t, ml(e)), it = (t, e) => {
|
|
788
788
|
var n = {};
|
|
789
789
|
for (var r in t) Ya.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
790
790
|
if (t != null && ar) for (var r of ar(t)) e.indexOf(r) < 0 && Xa.call(t, r) && (n[r] = t[r]);
|
|
@@ -799,11 +799,11 @@ function pl(t) {
|
|
|
799
799
|
function hl(t) {
|
|
800
800
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Kr(t = "", e = "") {
|
|
803
803
|
return hl(`${Ie(t, !1) && Ie(e, !1) ? `${t}-` : t}${e}`);
|
|
804
804
|
}
|
|
805
805
|
function Qa(t = "", e = "") {
|
|
806
|
-
return `--${
|
|
806
|
+
return `--${Kr(t, e)}`;
|
|
807
807
|
}
|
|
808
808
|
function gl(t = "") {
|
|
809
809
|
let e = (t.match(/{/g) || []).length, n = (t.match(/}/g) || []).length;
|
|
@@ -813,12 +813,12 @@ function ei(t, e = "", n = "", r = [], o) {
|
|
|
813
813
|
if (Ie(t)) {
|
|
814
814
|
let a = t.trim();
|
|
815
815
|
if (gl(a)) return;
|
|
816
|
-
if (
|
|
816
|
+
if (St(a, Cn)) {
|
|
817
817
|
let l = a.replaceAll(Cn, (s) => {
|
|
818
|
-
let i = s.replace(/{|}/g, "").split(".").filter((c) => !r.some((u) =>
|
|
818
|
+
let i = s.replace(/{|}/g, "").split(".").filter((c) => !r.some((u) => St(c, u)));
|
|
819
819
|
return `var(${Qa(n, Ga(i.join("-")))}${B(o) ? `, ${o}` : ""})`;
|
|
820
820
|
});
|
|
821
|
-
return
|
|
821
|
+
return St(l.replace(Ja, "0"), Za) ? `calc(${l})` : l;
|
|
822
822
|
}
|
|
823
823
|
return a;
|
|
824
824
|
} else if (il(t)) return t;
|
|
@@ -863,9 +863,9 @@ function ti(t, e) {
|
|
|
863
863
|
}
|
|
864
864
|
return t;
|
|
865
865
|
}
|
|
866
|
-
var
|
|
866
|
+
var xt = (...t) => bl(X.getTheme(), ...t), bl = (t = {}, e, n, r) => {
|
|
867
867
|
if (e) {
|
|
868
|
-
let { variable: o, options: a } = X.defaults || {}, { prefix: l, transform: s } = t?.options || a || {}, i =
|
|
868
|
+
let { variable: o, options: a } = X.defaults || {}, { prefix: l, transform: s } = t?.options || a || {}, i = St(e, Cn) ? e : `{${e}}`;
|
|
869
869
|
return r === "value" || bt(r) && s === "strict" ? X.getTokenValue(e) : ei(i, void 0, l, [o.excludedKeyRegex], n);
|
|
870
870
|
}
|
|
871
871
|
return "";
|
|
@@ -874,18 +874,18 @@ function qn(t, ...e) {
|
|
|
874
874
|
if (t instanceof Array) {
|
|
875
875
|
let n = t.reduce((r, o, a) => {
|
|
876
876
|
var l;
|
|
877
|
-
return r + o + ((l = ge(e[a], { dt:
|
|
877
|
+
return r + o + ((l = ge(e[a], { dt: xt })) != null ? l : "");
|
|
878
878
|
}, "");
|
|
879
|
-
return ti(n,
|
|
879
|
+
return ti(n, xt);
|
|
880
880
|
}
|
|
881
|
-
return ge(t, { dt:
|
|
881
|
+
return ge(t, { dt: xt });
|
|
882
882
|
}
|
|
883
883
|
function wl(t, e = {}) {
|
|
884
884
|
let n = X.defaults.variable, { prefix: r = n.prefix, selector: o = n.selector, excludedKeyRegex: a = n.excludedKeyRegex } = e, l = [], s = [], i = [{ node: t, path: r }];
|
|
885
885
|
for (; i.length; ) {
|
|
886
886
|
let { node: u, path: m } = i.pop();
|
|
887
887
|
for (let f in u) {
|
|
888
|
-
let p = u[f], w = pl(p), g =
|
|
888
|
+
let p = u[f], w = pl(p), g = St(f, a) ? Kr(m) : Kr(m, Ga(f));
|
|
889
889
|
if (wt(w)) i.push({ node: w, path: g });
|
|
890
890
|
else {
|
|
891
891
|
let y = Qa(g), v = ei(w, g, r, [a]);
|
|
@@ -924,8 +924,8 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(t
|
|
|
924
924
|
w = this.transformCSS(t, Bt, "light", "variable", p, r, o), g = Ue;
|
|
925
925
|
let Fn = this.transformCSS(t, `${Nn}${jn}`, "light", "variable", p, r, o), zn = this.transformCSS(t, `${mt}`, "dark", "variable", p, r, o);
|
|
926
926
|
y = `${Fn}${zn}`, v = [.../* @__PURE__ */ new Set([...nn, ...Hn, ...Mt])];
|
|
927
|
-
let
|
|
928
|
-
S = `${
|
|
927
|
+
let Cr = this.transformCSS(t, `${nt}${on}color-scheme:light`, "light", "variable", p, r, o), an = this.transformCSS(t, `${Dt}color-scheme:dark`, "dark", "variable", p, r, o);
|
|
928
|
+
S = `${Cr}${an}`, L = [.../* @__PURE__ */ new Set([...rn, ...ft, ...Rt])], C = ge(f.css, { dt: xt });
|
|
929
929
|
}
|
|
930
930
|
return { primitive: { css: w, tokens: g }, semantic: { css: y, tokens: v }, global: { css: S, tokens: L }, style: C };
|
|
931
931
|
}, getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: a, selector: l }) {
|
|
@@ -933,7 +933,7 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(t
|
|
|
933
933
|
let u, m, f;
|
|
934
934
|
if (B(e) && n.transform !== "strict") {
|
|
935
935
|
let p = t.replace("-directive", ""), w = e, { colorScheme: g, extend: y, css: v } = w, S = it(w, ["colorScheme", "extend", "css"]), L = y || {}, { colorScheme: C } = L, I = it(L, ["colorScheme"]), ee = g || {}, { dark: ue } = ee, Oe = it(ee, ["dark"]), fe = C || {}, { dark: Be } = fe, P = it(fe, ["dark"]), W = B(S) ? this._toVariables({ [p]: Fe(Fe({}, S), I) }, n) : {}, pe = B(Oe) ? this._toVariables({ [p]: Fe(Fe({}, Oe), P) }, n) : {}, be = B(ue) ? this._toVariables({ [p]: Fe(Fe({}, ue), Be) }, n) : {}, [Ne, ct] = [(s = W.declarations) != null ? s : "", W.tokens || []], [Qe, et] = [(i = pe.declarations) != null ? i : "", pe.tokens || []], [ut, Me] = [(c = be.declarations) != null ? c : "", be.tokens || []], V = this.transformCSS(p, `${Ne}${Qe}`, "light", "variable", n, o, a, l), ze = this.transformCSS(p, ut, "dark", "variable", n, o, a, l);
|
|
936
|
-
u = `${V}${ze}`, m = [.../* @__PURE__ */ new Set([...ct, ...et, ...Me])], f = ge(v, { dt:
|
|
936
|
+
u = `${V}${ze}`, m = [.../* @__PURE__ */ new Set([...ct, ...et, ...Me])], f = ge(v, { dt: xt });
|
|
937
937
|
}
|
|
938
938
|
return { css: u, tokens: m, style: f };
|
|
939
939
|
}, getPresetC({ name: t = "", theme: e = {}, params: n, set: r, defaults: o }) {
|
|
@@ -983,7 +983,7 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(t
|
|
|
983
983
|
return bt(i.binding) && delete i.binding, c.pop(), { colorScheme: s, path: this.path, paths: i, value: u.includes("__UNRESOLVED__") ? void 0 : u };
|
|
984
984
|
}, l = (s, i, c) => {
|
|
985
985
|
Object.entries(s).forEach(([u, m]) => {
|
|
986
|
-
let f =
|
|
986
|
+
let f = St(u, e.variable.excludedKeyRegex) ? i : i ? `${i}.${Jo(u)}` : Jo(u), p = c ? `${c}.${u}` : u;
|
|
987
987
|
wt(m) ? l(m, f, p) : (o[f] || (o[f] = { paths: [], computed: (w, g = {}, y = []) => {
|
|
988
988
|
if (o[f].paths.length === 1) return o[f].paths[0].computed(o[f].paths[0].scheme, g.binding, y);
|
|
989
989
|
if (w && w !== "none") for (let v = 0; v < o[f].paths.length; v++) {
|
|
@@ -997,7 +997,7 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(t
|
|
|
997
997
|
return l(t, n, r), o;
|
|
998
998
|
}, getTokenValue(t, e, n) {
|
|
999
999
|
var r;
|
|
1000
|
-
let o = ((s) => s.split(".").filter((i) => !
|
|
1000
|
+
let o = ((s) => s.split(".").filter((i) => !St(i.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(e), a = e.includes("colorScheme.light") ? "light" : e.includes("colorScheme.dark") ? "dark" : void 0, l = [(r = t[o]) == null ? void 0 : r.computed(a)].flat().filter((s) => s);
|
|
1001
1001
|
return l.length === 1 ? l[0].value : l.reduce((s = {}, i) => {
|
|
1002
1002
|
let c = i, { colorScheme: u } = c, m = it(c, ["colorScheme"]);
|
|
1003
1003
|
return s[u] = m, s;
|
|
@@ -1020,7 +1020,7 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(t
|
|
|
1020
1020
|
return "";
|
|
1021
1021
|
} }, X = { defaults: { variable: { prefix: "p", selector: ":root,:host", excludedKeyRegex: /^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi }, options: { prefix: "p", darkModeSelector: "system", cssLayer: !1 } }, _theme: void 0, _layerNames: /* @__PURE__ */ new Set(), _loadedStyleNames: /* @__PURE__ */ new Set(), _loadingStyles: /* @__PURE__ */ new Set(), _tokens: {}, update(t = {}) {
|
|
1022
1022
|
let { theme: e } = t;
|
|
1023
|
-
e && (this._theme =
|
|
1023
|
+
e && (this._theme = $r(Fe({}, e), { options: Fe(Fe({}, this.defaults.options), e.options) }), this._tokens = je.createTokens(this.preset, this.defaults), this.clearLoadedStyleNames());
|
|
1024
1024
|
}, get theme() {
|
|
1025
1025
|
return this._theme;
|
|
1026
1026
|
}, get preset() {
|
|
@@ -1038,11 +1038,11 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(t
|
|
|
1038
1038
|
}, getPreset() {
|
|
1039
1039
|
return this.preset;
|
|
1040
1040
|
}, setPreset(t) {
|
|
1041
|
-
this._theme =
|
|
1041
|
+
this._theme = $r(Fe({}, this.theme), { preset: t }), this._tokens = je.createTokens(t, this.defaults), this.clearLoadedStyleNames(), ye.emit("preset:change", t), ye.emit("theme:change", this.theme);
|
|
1042
1042
|
}, getOptions() {
|
|
1043
1043
|
return this.options;
|
|
1044
1044
|
}, setOptions(t) {
|
|
1045
|
-
this._theme =
|
|
1045
|
+
this._theme = $r(Fe({}, this.theme), { options: t }), this.clearLoadedStyleNames(), ye.emit("options:change", t), ye.emit("theme:change", this.theme);
|
|
1046
1046
|
}, getLayerNames() {
|
|
1047
1047
|
return [...this._layerNames];
|
|
1048
1048
|
}, setLayerNames(t) {
|
|
@@ -1262,7 +1262,7 @@ function _l(t, e) {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
function Sl(t) {
|
|
1264
1264
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1265
|
-
Vo() && Vo().components ?
|
|
1265
|
+
Vo() && Vo().components ? $t(t) : e ? t() : io(t);
|
|
1266
1266
|
}
|
|
1267
1267
|
var xl = 0;
|
|
1268
1268
|
function Tl(t) {
|
|
@@ -1358,7 +1358,7 @@ function sa(t, e) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
return n;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Lr(t) {
|
|
1362
1362
|
for (var e = 1; e < arguments.length; e++) {
|
|
1363
1363
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1364
1364
|
e % 2 ? sa(Object(n), !0).forEach(function(r) {
|
|
@@ -1421,7 +1421,7 @@ var Bl = function(e) {
|
|
|
1421
1421
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(a) {
|
|
1422
1422
|
return a;
|
|
1423
1423
|
}, o = r(qn(ta || (ta = Yn(["", ""])), e));
|
|
1424
|
-
return B(o) ? Tl(wn(o),
|
|
1424
|
+
return B(o) ? Tl(wn(o), Lr({
|
|
1425
1425
|
name: this.name
|
|
1426
1426
|
}, n)) : {};
|
|
1427
1427
|
},
|
|
@@ -1455,7 +1455,7 @@ var Bl = function(e) {
|
|
|
1455
1455
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1456
1456
|
if (this.css) {
|
|
1457
1457
|
var r = ge(this.css, {
|
|
1458
|
-
dt:
|
|
1458
|
+
dt: xt
|
|
1459
1459
|
}) || "", o = wn(qn(ra || (ra = Yn(["", "", ""])), r, e)), a = Object.entries(n).reduce(function(l, s) {
|
|
1460
1460
|
var i = aa(s, 2), c = i[0], u = i[1];
|
|
1461
1461
|
return l.push("".concat(c, '="').concat(u, '"')) && l;
|
|
@@ -1472,7 +1472,7 @@ var Bl = function(e) {
|
|
|
1472
1472
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [X.getStyleSheet(this.name, e, n)];
|
|
1473
1473
|
if (this.style) {
|
|
1474
1474
|
var o = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), a = qn(oa || (oa = Yn(["", ""])), ge(this.style, {
|
|
1475
|
-
dt:
|
|
1475
|
+
dt: xt
|
|
1476
1476
|
})), l = wn(X.transformCSS(o, a)), s = Object.entries(n).reduce(function(i, c) {
|
|
1477
1477
|
var u = aa(c, 2), m = u[0], f = u[1];
|
|
1478
1478
|
return i.push("".concat(m, '="').concat(f, '"')) && i;
|
|
@@ -1482,7 +1482,7 @@ var Bl = function(e) {
|
|
|
1482
1482
|
return r.join("");
|
|
1483
1483
|
},
|
|
1484
1484
|
extend: function(e) {
|
|
1485
|
-
return
|
|
1485
|
+
return Lr(Lr({}, this), {}, {
|
|
1486
1486
|
css: void 0,
|
|
1487
1487
|
style: void 0
|
|
1488
1488
|
}, e);
|
|
@@ -1518,12 +1518,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1518
1518
|
}
|
|
1519
1519
|
function ri(t, e) {
|
|
1520
1520
|
if (t) {
|
|
1521
|
-
if (typeof t == "string") return
|
|
1521
|
+
if (typeof t == "string") return Gr(t, e);
|
|
1522
1522
|
var n = {}.toString.call(t).slice(8, -1);
|
|
1523
|
-
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) ?
|
|
1523
|
+
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;
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Gr(t, e) {
|
|
1527
1527
|
(e == null || e > t.length) && (e = t.length);
|
|
1528
1528
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
1529
1529
|
return r;
|
|
@@ -1590,7 +1590,7 @@ function zl(t, e) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
return (e === "string" ? String : Number)(t);
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1593
|
+
var gr = {
|
|
1594
1594
|
name: "BaseComponent",
|
|
1595
1595
|
props: {
|
|
1596
1596
|
pt: {
|
|
@@ -1913,7 +1913,7 @@ var vr = {
|
|
|
1913
1913
|
var n = cn(e, 1), r = n[0];
|
|
1914
1914
|
return r?.startsWith("pt:");
|
|
1915
1915
|
}).reduce(function(e, n) {
|
|
1916
|
-
var r = cn(n, 2), o = r[0], a = r[1], l = o.split(":"), s = Nl(l), i =
|
|
1916
|
+
var r = cn(n, 2), o = r[0], a = r[1], l = o.split(":"), s = Nl(l), i = Gr(s).slice(1);
|
|
1917
1917
|
return i?.reduce(function(c, u, m, f) {
|
|
1918
1918
|
return !c[u] && (c[u] = m === f.length - 1 ? a : {}), c[u];
|
|
1919
1919
|
}, e), e;
|
|
@@ -2014,7 +2014,7 @@ function Gl(t, e) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
var ai = {
|
|
2016
2016
|
name: "BaseIcon",
|
|
2017
|
-
extends:
|
|
2017
|
+
extends: gr,
|
|
2018
2018
|
props: {
|
|
2019
2019
|
label: {
|
|
2020
2020
|
type: String,
|
|
@@ -2059,18 +2059,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function Xl(t, e) {
|
|
2061
2061
|
if (t) {
|
|
2062
|
-
if (typeof t == "string") return
|
|
2062
|
+
if (typeof t == "string") return qr(t, e);
|
|
2063
2063
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2064
|
-
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) ?
|
|
2064
|
+
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) ? qr(t, e) : void 0;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
2067
|
function Zl(t) {
|
|
2068
2068
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2069
2069
|
}
|
|
2070
2070
|
function Jl(t) {
|
|
2071
|
-
if (Array.isArray(t)) return
|
|
2071
|
+
if (Array.isArray(t)) return qr(t);
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function qr(t, e) {
|
|
2074
2074
|
(e == null || e > t.length) && (e = t.length);
|
|
2075
2075
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
2076
2076
|
return r;
|
|
@@ -2101,18 +2101,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2101
2101
|
}
|
|
2102
2102
|
function nc(t, e) {
|
|
2103
2103
|
if (t) {
|
|
2104
|
-
if (typeof t == "string") return
|
|
2104
|
+
if (typeof t == "string") return Yr(t, e);
|
|
2105
2105
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2106
|
-
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) ?
|
|
2106
|
+
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) ? Yr(t, e) : void 0;
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
function rc(t) {
|
|
2110
2110
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2111
2111
|
}
|
|
2112
2112
|
function oc(t) {
|
|
2113
|
-
if (Array.isArray(t)) return
|
|
2113
|
+
if (Array.isArray(t)) return Yr(t);
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function Yr(t, e) {
|
|
2116
2116
|
(e == null || e > t.length) && (e = t.length);
|
|
2117
2117
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
2118
2118
|
return r;
|
|
@@ -2397,14 +2397,14 @@ function H(t) {
|
|
|
2397
2397
|
for (var e = 1; e < arguments.length; e++) {
|
|
2398
2398
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
2399
2399
|
e % 2 ? pa(Object(n), !0).forEach(function(r) {
|
|
2400
|
-
|
|
2400
|
+
Xr(t, r, n[r]);
|
|
2401
2401
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : pa(Object(n)).forEach(function(r) {
|
|
2402
2402
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
2405
2405
|
return t;
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2407
|
+
function Xr(t, e, n) {
|
|
2408
2408
|
return (e = fc(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
2409
2409
|
}
|
|
2410
2410
|
function fc(t) {
|
|
@@ -2443,7 +2443,7 @@ var O = {
|
|
|
2443
2443
|
},
|
|
2444
2444
|
_getPTDatasets: function() {
|
|
2445
2445
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = "data-pc-";
|
|
2446
|
-
return H(H({}, n === "root" &&
|
|
2446
|
+
return H(H({}, n === "root" && Xr({}, "".concat(r, "name"), qe(e.$name))), {}, Xr({}, "".concat(r, "section"), qe(n)));
|
|
2447
2447
|
},
|
|
2448
2448
|
_getPT: function(e) {
|
|
2449
2449
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 ? arguments[2] : void 0, o = function(l) {
|
|
@@ -2718,18 +2718,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2718
2718
|
}
|
|
2719
2719
|
function kc(t, e) {
|
|
2720
2720
|
if (t) {
|
|
2721
|
-
if (typeof t == "string") return
|
|
2721
|
+
if (typeof t == "string") return Zr(t, e);
|
|
2722
2722
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2723
|
-
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) ?
|
|
2723
|
+
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) ? Zr(t, e) : void 0;
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
2726
|
function Cc(t) {
|
|
2727
2727
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2728
2728
|
}
|
|
2729
2729
|
function _c(t) {
|
|
2730
|
-
if (Array.isArray(t)) return
|
|
2730
|
+
if (Array.isArray(t)) return Zr(t);
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function Zr(t, e) {
|
|
2733
2733
|
(e == null || e > t.length) && (e = t.length);
|
|
2734
2734
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
2735
2735
|
return r;
|
|
@@ -2786,18 +2786,18 @@ var Tc = bc.extend("ripple", {
|
|
|
2786
2786
|
onMouseDown: function(e) {
|
|
2787
2787
|
var n = this, r = e.currentTarget, o = this.getInk(r);
|
|
2788
2788
|
if (!(!o || getComputedStyle(o, null).display === "none")) {
|
|
2789
|
-
if (!this.isUnstyled() &&
|
|
2789
|
+
if (!this.isUnstyled() && Pr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"), !Go(o) && !qo(o)) {
|
|
2790
2790
|
var a = Math.max(Zs(r), nl(r));
|
|
2791
2791
|
o.style.height = a + "px", o.style.width = a + "px";
|
|
2792
2792
|
}
|
|
2793
2793
|
var l = tl(r), s = e.pageX - l.left + document.body.scrollTop - qo(o) / 2, i = e.pageY - l.top + document.body.scrollLeft - Go(o) / 2;
|
|
2794
2794
|
o.style.top = i + "px", o.style.left = s + "px", !this.isUnstyled() && Xs(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
|
|
2795
|
-
o && (!n.isUnstyled() &&
|
|
2795
|
+
o && (!n.isUnstyled() && Pr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"));
|
|
2796
2796
|
}, 401);
|
|
2797
2797
|
}
|
|
2798
2798
|
},
|
|
2799
2799
|
onAnimationEnd: function(e) {
|
|
2800
|
-
this.timeout && clearTimeout(this.timeout), !this.isUnstyled() &&
|
|
2800
|
+
this.timeout && clearTimeout(this.timeout), !this.isUnstyled() && Pr(e.currentTarget, "p-ink-active"), e.currentTarget.setAttribute("data-p-ink-active", "false");
|
|
2801
2801
|
},
|
|
2802
2802
|
getInk: function(e) {
|
|
2803
2803
|
return e && e.children ? wc(e.children).find(function(n) {
|
|
@@ -2807,7 +2807,7 @@ var Tc = bc.extend("ripple", {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}), Ic = {
|
|
2809
2809
|
name: "BasePanelMenu",
|
|
2810
|
-
extends:
|
|
2810
|
+
extends: gr,
|
|
2811
2811
|
props: {
|
|
2812
2812
|
model: {
|
|
2813
2813
|
type: Array,
|
|
@@ -2836,7 +2836,7 @@ var Tc = bc.extend("ripple", {
|
|
|
2836
2836
|
}, ii = {
|
|
2837
2837
|
name: "PanelMenuSub",
|
|
2838
2838
|
hostName: "PanelMenu",
|
|
2839
|
-
extends:
|
|
2839
|
+
extends: gr,
|
|
2840
2840
|
emits: ["item-toggle", "item-mousemove"],
|
|
2841
2841
|
props: {
|
|
2842
2842
|
panelId: {
|
|
@@ -2970,7 +2970,7 @@ function Lc(t, e, n, r, o, a) {
|
|
|
2970
2970
|
return _(), x("ul", {
|
|
2971
2971
|
class: j(t.cx("submenu")),
|
|
2972
2972
|
tabindex: n.tabindex
|
|
2973
|
-
}, [(_(!0), x(ke, null,
|
|
2973
|
+
}, [(_(!0), x(ke, null, At(n.items, function(i, c) {
|
|
2974
2974
|
return _(), x(ke, {
|
|
2975
2975
|
key: a.getItemKey(i)
|
|
2976
2976
|
}, [a.isItemVisible(i) && !a.getItemProp(i, "separator") ? (_(), x("li", M({
|
|
@@ -3009,7 +3009,7 @@ function Lc(t, e, n, r, o, a) {
|
|
|
3009
3009
|
hasSubmenu: a.isItemGroup(i),
|
|
3010
3010
|
label: a.getItemLabel(i),
|
|
3011
3011
|
props: a.getMenuItemProps(i, c)
|
|
3012
|
-
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) :
|
|
3012
|
+
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : Vr((_(), x("a", M({
|
|
3013
3013
|
key: 0,
|
|
3014
3014
|
href: a.getItemProp(i, "url"),
|
|
3015
3015
|
class: t.cx("itemLink"),
|
|
@@ -3049,7 +3049,7 @@ function Lc(t, e, n, r, o, a) {
|
|
|
3049
3049
|
ref_for: !0
|
|
3050
3050
|
}, t.ptm("transition")), {
|
|
3051
3051
|
default: le(function() {
|
|
3052
|
-
return [
|
|
3052
|
+
return [Vr(b("div", M({
|
|
3053
3053
|
class: t.cx("contentContainer")
|
|
3054
3054
|
}, {
|
|
3055
3055
|
ref_for: !0
|
|
@@ -3132,7 +3132,7 @@ function Rc(t) {
|
|
|
3132
3132
|
var si = {
|
|
3133
3133
|
name: "PanelMenuList",
|
|
3134
3134
|
hostName: "PanelMenu",
|
|
3135
|
-
extends:
|
|
3135
|
+
extends: gr,
|
|
3136
3136
|
emits: ["item-toggle", "header-focus"],
|
|
3137
3137
|
props: {
|
|
3138
3138
|
panelId: {
|
|
@@ -3703,7 +3703,7 @@ function Gc(t, e, n, r, o, a) {
|
|
|
3703
3703
|
return _(), x("div", M({
|
|
3704
3704
|
id: t.$id,
|
|
3705
3705
|
class: t.cx("root")
|
|
3706
|
-
}, t.ptmi("root")), [(_(!0), x(ke, null,
|
|
3706
|
+
}, t.ptmi("root")), [(_(!0), x(ke, null, At(t.model, function(s, i) {
|
|
3707
3707
|
return _(), x(ke, {
|
|
3708
3708
|
key: a.getPanelKey(i)
|
|
3709
3709
|
}, [a.isItemVisible(s) ? (_(), x("div", M({
|
|
@@ -3781,7 +3781,7 @@ function Gc(t, e, n, r, o, a) {
|
|
|
3781
3781
|
ref_for: !0
|
|
3782
3782
|
}, t.ptm("transition")), {
|
|
3783
3783
|
default: le(function() {
|
|
3784
|
-
return [
|
|
3784
|
+
return [Vr(b("div", M({
|
|
3785
3785
|
id: a.getContentId(i),
|
|
3786
3786
|
class: t.cx("contentContainer"),
|
|
3787
3787
|
role: "region",
|
|
@@ -3894,7 +3894,7 @@ const qc = { class: "panel-menu-wrapper select-none" }, Yc = ["data-active", "on
|
|
|
3894
3894
|
};
|
|
3895
3895
|
}
|
|
3896
3896
|
}), Np = /* @__PURE__ */ Je(ou, [["__scopeId", "data-v-c92c6de2"]]);
|
|
3897
|
-
function
|
|
3897
|
+
function Or(t) {
|
|
3898
3898
|
let e = t instanceof HTMLElement ? t : null;
|
|
3899
3899
|
for (; e && e.getBoundingClientRect; ) {
|
|
3900
3900
|
const n = e.getBoundingClientRect();
|
|
@@ -3908,23 +3908,23 @@ function Br(t) {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
function au(t) {
|
|
3910
3910
|
const e = R(!1), n = R(null), r = R({ top: "0px", left: "0px", zIndex: "0" }), o = R(!1), a = R(!1), l = (m) => {
|
|
3911
|
-
!m || !(m instanceof HTMLElement) || (n.value =
|
|
3911
|
+
!m || !(m instanceof HTMLElement) || (n.value = Or(m), n.value && (r.value.top = `${n.value.bottom + window.scrollY}px`, r.value.left = `${n.value.left + window.scrollX}px`, r.value.zIndex = `${hr() + 1}`));
|
|
3912
3912
|
}, s = () => {
|
|
3913
3913
|
o.value = !1, a.value = !1, io(() => {
|
|
3914
|
-
const m =
|
|
3914
|
+
const m = Or(t.value);
|
|
3915
3915
|
m && (window.innerWidth < m.right && (r.value.left = `${(n.value?.right ?? 0) + window.scrollX}px`, o.value = !0), window.innerHeight < m.bottom && (r.value.top = `${(n.value?.top ?? 0) + window.scrollY}px`, a.value = !0));
|
|
3916
3916
|
});
|
|
3917
3917
|
}, i = (m) => {
|
|
3918
3918
|
const f = m instanceof CustomEvent ? m.detail.target : m.currentTarget ?? m.target;
|
|
3919
|
-
!f || !(f instanceof HTMLElement) || (n.value =
|
|
3919
|
+
!f || !(f instanceof HTMLElement) || (n.value = Or(f), n.value && (l(f), e.value = !0, s()));
|
|
3920
3920
|
}, c = () => {
|
|
3921
3921
|
e.value && (e.value = !1);
|
|
3922
3922
|
}, u = (m) => {
|
|
3923
3923
|
e.value && t.value && (m.target && t.value.contains(m.target) || c());
|
|
3924
3924
|
};
|
|
3925
|
-
return
|
|
3925
|
+
return $t(() => {
|
|
3926
3926
|
document.addEventListener("click", u, !0), window.addEventListener("resize", c, !0);
|
|
3927
|
-
}),
|
|
3927
|
+
}), oo(() => {
|
|
3928
3928
|
document.removeEventListener("click", u, !0), window.removeEventListener("resize", c, !0);
|
|
3929
3929
|
}), {
|
|
3930
3930
|
Show: i,
|
|
@@ -3963,7 +3963,7 @@ const ci = /* @__PURE__ */ ie({
|
|
|
3963
3963
|
translateY: $(c),
|
|
3964
3964
|
translateXY: $(i) && $(c)
|
|
3965
3965
|
}),
|
|
3966
|
-
style:
|
|
3966
|
+
style: It({ ...$(s), zIndex: +$(s).zIndex + 1 }),
|
|
3967
3967
|
role: "dialog",
|
|
3968
3968
|
"aria-modal": !0,
|
|
3969
3969
|
"aria-label": "Janela de ajuda"
|
|
@@ -3974,7 +3974,7 @@ const ci = /* @__PURE__ */ ie({
|
|
|
3974
3974
|
], 6)) : F("", !0)
|
|
3975
3975
|
]));
|
|
3976
3976
|
}
|
|
3977
|
-
}),
|
|
3977
|
+
}), Br = /* @__PURE__ */ ie({
|
|
3978
3978
|
__name: "HelpButton",
|
|
3979
3979
|
props: {
|
|
3980
3980
|
title: {},
|
|
@@ -3990,7 +3990,7 @@ const ci = /* @__PURE__ */ ie({
|
|
|
3990
3990
|
a.value?.Show(l);
|
|
3991
3991
|
}, o = e, a = R();
|
|
3992
3992
|
return (l, s) => (_(), x(ke, null, [
|
|
3993
|
-
G(l.$slots, "anchor", _t(
|
|
3993
|
+
G(l.$slots, "anchor", Ct(_t({ Show: r })), () => [
|
|
3994
3994
|
q(Xe, {
|
|
3995
3995
|
button: !0,
|
|
3996
3996
|
icon: n.icon ?? "help",
|
|
@@ -4058,7 +4058,7 @@ const Zt = () => su(), lu = { class: "body" }, cu = { class: "my-3 name" }, uu =
|
|
|
4058
4058
|
], !0)
|
|
4059
4059
|
]),
|
|
4060
4060
|
b("div", uu, [
|
|
4061
|
-
G(f.$slots, "buttons", _t(
|
|
4061
|
+
G(f.$slots, "buttons", Ct(_t({ Login: m })), () => [
|
|
4062
4062
|
q($(kn), {
|
|
4063
4063
|
size: o.value,
|
|
4064
4064
|
icon: "person",
|
|
@@ -4305,7 +4305,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4305
4305
|
title: "Minha conta"
|
|
4306
4306
|
}, {
|
|
4307
4307
|
default: le(() => [
|
|
4308
|
-
G(w.$slots, "content", _t(
|
|
4308
|
+
G(w.$slots, "content", Ct(_t({ userinfo: o.value })), () => [
|
|
4309
4309
|
o.value ? (_(), x("div", fu, [
|
|
4310
4310
|
b("div", pu, [
|
|
4311
4311
|
b("div", hu, K(o.value.email), 1),
|
|
@@ -4329,7 +4329,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4329
4329
|
p.value ? (_(), x("div", bu, [
|
|
4330
4330
|
b("div", wu, [
|
|
4331
4331
|
g[5] || (g[5] = b("div", null, "Nível de confiança", -1)),
|
|
4332
|
-
q(
|
|
4332
|
+
q(Br, null, {
|
|
4333
4333
|
default: le(() => [...g[4] || (g[4] = [
|
|
4334
4334
|
Ye(" Nível de confiança do usuário no portal gov.br ", -1)
|
|
4335
4335
|
])]),
|
|
@@ -4343,7 +4343,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4343
4343
|
f.value.length > 0 ? (_(), x("div", ku, [
|
|
4344
4344
|
b("div", Cu, [
|
|
4345
4345
|
g[7] || (g[7] = b("span", null, "Fatores de autenticação", -1)),
|
|
4346
|
-
q(
|
|
4346
|
+
q(Br, null, {
|
|
4347
4347
|
default: le(() => [...g[6] || (g[6] = [
|
|
4348
4348
|
b("div", { class: "text-nowrap mb-3" }, " Métodos utilizados durante autenticação ", -1)
|
|
4349
4349
|
])]),
|
|
@@ -4351,7 +4351,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4351
4351
|
})
|
|
4352
4352
|
]),
|
|
4353
4353
|
b("div", _u, [
|
|
4354
|
-
(_(!0), x(ke, null,
|
|
4354
|
+
(_(!0), x(ke, null, At(f.value, (y) => (_(), x("span", {
|
|
4355
4355
|
key: `amr-${y.amr}`,
|
|
4356
4356
|
class: j("chip")
|
|
4357
4357
|
}, K(y.label), 1))), 128))
|
|
@@ -4364,7 +4364,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4364
4364
|
b("div", xu, [
|
|
4365
4365
|
g[9] || (g[9] = b("div", null, "Perfis atribuídos ao usuário", -1)),
|
|
4366
4366
|
s.value.length === 0 ? (_(), x("div", Tu, "Nenhum perfil atribuído.")) : (_(), x("div", Iu, [
|
|
4367
|
-
(_(!0), x(ke, null,
|
|
4367
|
+
(_(!0), x(ke, null, At(s.value, (y) => (_(), x("span", {
|
|
4368
4368
|
key: y,
|
|
4369
4369
|
class: "chip"
|
|
4370
4370
|
}, K(y), 1))), 128))
|
|
@@ -4377,7 +4377,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4377
4377
|
c.value && o.value.cnpj ? (_(), x("div", Eu, [
|
|
4378
4378
|
b("div", Pu, [
|
|
4379
4379
|
g[12] || (g[12] = b("div", null, "CNPJ vinculado", -1)),
|
|
4380
|
-
q(
|
|
4380
|
+
q(Br, null, {
|
|
4381
4381
|
default: le(() => [...g[11] || (g[11] = [
|
|
4382
4382
|
Ye(" Atributo recebido pelo login com certificado digital de pessoa jurídica. ", -1)
|
|
4383
4383
|
])]),
|
|
@@ -4409,7 +4409,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4409
4409
|
__name: "FontSize",
|
|
4410
4410
|
setup(t) {
|
|
4411
4411
|
const e = R(!1), n = R(0), r = () => {
|
|
4412
|
-
n.value =
|
|
4412
|
+
n.value = hr(), e.value = !0;
|
|
4413
4413
|
}, o = () => {
|
|
4414
4414
|
e.value = !1;
|
|
4415
4415
|
}, a = () => document.documentElement, l = () => parseInt(
|
|
@@ -4430,7 +4430,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4430
4430
|
}, m = R(1);
|
|
4431
4431
|
return Va(() => {
|
|
4432
4432
|
localStorage.removeItem(Ru);
|
|
4433
|
-
}),
|
|
4433
|
+
}), $t(() => {
|
|
4434
4434
|
m.value = l();
|
|
4435
4435
|
}), (f, p) => (_(), x(ke, null, [
|
|
4436
4436
|
q(Xe, {
|
|
@@ -4443,7 +4443,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4443
4443
|
e.value ? (_(), x(ke, { key: 0 }, [
|
|
4444
4444
|
b("div", {
|
|
4445
4445
|
class: j(["border", "fadein", "font-size-wrapper"]),
|
|
4446
|
-
style:
|
|
4446
|
+
style: It({ zIndex: n.value + 1 })
|
|
4447
4447
|
}, [
|
|
4448
4448
|
b("div", {
|
|
4449
4449
|
class: "icon",
|
|
@@ -4464,7 +4464,7 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
|
|
|
4464
4464
|
], 4),
|
|
4465
4465
|
b("div", {
|
|
4466
4466
|
class: "font-size-mask",
|
|
4467
|
-
style:
|
|
4467
|
+
style: It({ zIndex: n.value }),
|
|
4468
4468
|
onClick: o
|
|
4469
4469
|
}, null, 4)
|
|
4470
4470
|
], 64)) : F("", !0)
|
|
@@ -4558,10 +4558,10 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4558
4558
|
ya.includes(t) || (ya.push(t), Ce(t));
|
|
4559
4559
|
}, pi = (t, e = null) => {
|
|
4560
4560
|
Xu(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
|
|
4561
|
-
},
|
|
4561
|
+
}, vr = (t) => typeof t == "function" ? t() : t, fo = (t) => t && typeof t.toPromise == "function", Ln = (t) => fo(t) ? t.toPromise() : Promise.resolve(t), po = (t) => t && Promise.resolve(t) === t, xe = () => document.body.querySelector(`.${h.container}`), On = (t) => {
|
|
4562
4562
|
const e = xe();
|
|
4563
4563
|
return e ? e.querySelector(t) : null;
|
|
4564
|
-
}, $e = (t) => On(`.${t}`), z = () => $e(h.popup), Jt = () => $e(h.icon), Zu = () => $e(h["icon-content"]), hi = () => $e(h.title), ho = () => $e(h["html-container"]), gi = () => $e(h.image), go = () => $e(h["progress-steps"]),
|
|
4564
|
+
}, $e = (t) => On(`.${t}`), z = () => $e(h.popup), Jt = () => $e(h.icon), Zu = () => $e(h["icon-content"]), hi = () => $e(h.title), ho = () => $e(h["html-container"]), gi = () => $e(h.image), go = () => $e(h["progress-steps"]), br = () => $e(h["validation-message"]), Ze = () => (
|
|
4565
4565
|
/** @type {HTMLButtonElement} */
|
|
4566
4566
|
On(`.${h.actions} .${h.confirm}`)
|
|
4567
4567
|
), Qt = () => (
|
|
@@ -4570,7 +4570,7 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4570
4570
|
), Ot = () => (
|
|
4571
4571
|
/** @type {HTMLButtonElement} */
|
|
4572
4572
|
On(`.${h.actions} .${h.deny}`)
|
|
4573
|
-
), Ju = () => $e(h["input-label"]), en = () => On(`.${h.loader}`), Bn = () => $e(h.actions), vi = () => $e(h.footer),
|
|
4573
|
+
), Ju = () => $e(h["input-label"]), en = () => On(`.${h.loader}`), Bn = () => $e(h.actions), vi = () => $e(h.footer), wr = () => $e(h["timer-progress-bar"]), vo = () => $e(h.close), Qu = `
|
|
4574
4574
|
a[href],
|
|
4575
4575
|
area[href],
|
|
4576
4576
|
input:not([disabled]),
|
|
@@ -4594,7 +4594,7 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4594
4594
|
return s > i ? 1 : s < i ? -1 : 0;
|
|
4595
4595
|
}), r = t.querySelectorAll(Qu), o = Array.from(r).filter((a) => a.getAttribute("tabindex") !== "-1");
|
|
4596
4596
|
return [...new Set(n.concat(o))].filter((a) => Ae(a));
|
|
4597
|
-
}, wo = () => lt(document.body, h.shown) && !lt(document.body, h["toast-shown"]) && !lt(document.body, h["no-backdrop"]),
|
|
4597
|
+
}, wo = () => lt(document.body, h.shown) && !lt(document.body, h["toast-shown"]) && !lt(document.body, h["no-backdrop"]), yr = () => {
|
|
4598
4598
|
const t = z();
|
|
4599
4599
|
return t ? lt(t, h.toast) : !1;
|
|
4600
4600
|
}, ed = () => {
|
|
@@ -4637,7 +4637,7 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4637
4637
|
}
|
|
4638
4638
|
U(t, r);
|
|
4639
4639
|
}
|
|
4640
|
-
},
|
|
4640
|
+
}, kr = (t, e) => {
|
|
4641
4641
|
if (!e)
|
|
4642
4642
|
return null;
|
|
4643
4643
|
switch (e) {
|
|
@@ -4676,7 +4676,7 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4676
4676
|
if (o instanceof HTMLElement && lt(o, e))
|
|
4677
4677
|
return o;
|
|
4678
4678
|
}
|
|
4679
|
-
},
|
|
4679
|
+
}, Tt = (t, e, n) => {
|
|
4680
4680
|
n === `${parseInt(`${n}`)}` && (n = parseInt(n)), n || parseInt(`${n}`) === 0 ? t.style.setProperty(e, typeof n == "number" ? `${n}px` : n) : t.style.removeProperty(e);
|
|
4681
4681
|
}, ce = (t, e = "flex") => {
|
|
4682
4682
|
t && (t.style.display = e);
|
|
@@ -4694,10 +4694,10 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4694
4694
|
o && o.style.setProperty(n, r);
|
|
4695
4695
|
}, Mn = (t, e, n = "flex") => {
|
|
4696
4696
|
e ? ce(t, n) : ve(t);
|
|
4697
|
-
}, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), nd = () => !Ae(Ze()) && !Ae(Ot()) && !Ae(Qt()),
|
|
4697
|
+
}, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), nd = () => !Ae(Ze()) && !Ae(Ot()) && !Ae(Qt()), Jr = (t) => t.scrollHeight > t.clientHeight, rd = (t, e) => {
|
|
4698
4698
|
let n = t;
|
|
4699
4699
|
for (; n && n !== e; ) {
|
|
4700
|
-
if (
|
|
4700
|
+
if (Jr(n))
|
|
4701
4701
|
return !0;
|
|
4702
4702
|
n = n.parentElement;
|
|
4703
4703
|
}
|
|
@@ -4706,12 +4706,12 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4706
4706
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), r = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
4707
4707
|
return n > 0 || r > 0;
|
|
4708
4708
|
}, ko = (t, e = !1) => {
|
|
4709
|
-
const n =
|
|
4709
|
+
const n = wr();
|
|
4710
4710
|
n && Ae(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
4711
4711
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
4712
4712
|
}, 10));
|
|
4713
4713
|
}, od = () => {
|
|
4714
|
-
const t =
|
|
4714
|
+
const t = wr();
|
|
4715
4715
|
if (!t)
|
|
4716
4716
|
return;
|
|
4717
4717
|
const e = parseInt(window.getComputedStyle(t).width);
|
|
@@ -4754,14 +4754,14 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4754
4754
|
`.replace(/(^|\n)\s*/g, ""), sd = () => {
|
|
4755
4755
|
const t = xe();
|
|
4756
4756
|
return t ? (t.remove(), De([document.documentElement, document.body], [h["no-backdrop"], h["toast-shown"], h["has-column"]]), !0) : !1;
|
|
4757
|
-
},
|
|
4757
|
+
}, kt = () => {
|
|
4758
4758
|
E.currentInstance.resetValidationMessage();
|
|
4759
4759
|
}, ld = () => {
|
|
4760
4760
|
const t = z(), e = gt(t, h.input), n = gt(t, h.file), r = t.querySelector(`.${h.range} input`), o = t.querySelector(`.${h.range} output`), a = gt(t, h.select), l = t.querySelector(`.${h.checkbox} input`), s = gt(t, h.textarea);
|
|
4761
|
-
e.oninput =
|
|
4762
|
-
|
|
4761
|
+
e.oninput = kt, n.onchange = kt, a.onchange = kt, l.onchange = kt, s.oninput = kt, r.oninput = () => {
|
|
4762
|
+
kt(), o.value = r.value;
|
|
4763
4763
|
}, r.onchange = () => {
|
|
4764
|
-
|
|
4764
|
+
kt(), o.value = r.value;
|
|
4765
4765
|
};
|
|
4766
4766
|
}, cd = (t) => typeof t == "string" ? document.querySelector(t) : t, ud = (t) => {
|
|
4767
4767
|
const e = z();
|
|
@@ -4794,23 +4794,23 @@ const Wu = 100, E = {}, Ku = () => {
|
|
|
4794
4794
|
};
|
|
4795
4795
|
function gd(t, e, n) {
|
|
4796
4796
|
const r = Ze(), o = Ot(), a = Qt();
|
|
4797
|
-
!r || !o || !a || (
|
|
4797
|
+
!r || !o || !a || (Dr(r, "confirm", n), Dr(o, "deny", n), Dr(a, "cancel", n), vd(r, o, a, n), n.reverseButtons && (n.toast ? (t.insertBefore(a, r), t.insertBefore(o, r)) : (t.insertBefore(a, e), t.insertBefore(o, e), t.insertBefore(r, e))));
|
|
4798
4798
|
}
|
|
4799
4799
|
function vd(t, e, n, r) {
|
|
4800
4800
|
if (!r.buttonsStyling) {
|
|
4801
4801
|
De([t, e, n], h.styled);
|
|
4802
4802
|
return;
|
|
4803
4803
|
}
|
|
4804
|
-
U([t, e, n], h.styled), r.confirmButtonColor && t.style.setProperty("--swal2-confirm-button-background-color", r.confirmButtonColor), r.denyButtonColor && e.style.setProperty("--swal2-deny-button-background-color", r.denyButtonColor), r.cancelButtonColor && n.style.setProperty("--swal2-cancel-button-background-color", r.cancelButtonColor),
|
|
4804
|
+
U([t, e, n], h.styled), r.confirmButtonColor && t.style.setProperty("--swal2-confirm-button-background-color", r.confirmButtonColor), r.denyButtonColor && e.style.setProperty("--swal2-deny-button-background-color", r.denyButtonColor), r.cancelButtonColor && n.style.setProperty("--swal2-cancel-button-background-color", r.cancelButtonColor), Mr(t), Mr(e), Mr(n);
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4806
|
+
function Mr(t) {
|
|
4807
4807
|
const e = window.getComputedStyle(t);
|
|
4808
4808
|
if (e.getPropertyValue("--swal2-action-button-focus-box-shadow"))
|
|
4809
4809
|
return;
|
|
4810
4810
|
const n = e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
|
|
4811
4811
|
t.style.setProperty("--swal2-action-button-focus-box-shadow", e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function Dr(t, e, n) {
|
|
4814
4814
|
const r = (
|
|
4815
4815
|
/** @type {'Confirm' | 'Deny' | 'Cancel'} */
|
|
4816
4816
|
mo(e)
|
|
@@ -4869,7 +4869,7 @@ const _d = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
|
|
|
4869
4869
|
const n = z();
|
|
4870
4870
|
if (!n)
|
|
4871
4871
|
return;
|
|
4872
|
-
const r =
|
|
4872
|
+
const r = kr(n, t);
|
|
4873
4873
|
if (r) {
|
|
4874
4874
|
Td(r);
|
|
4875
4875
|
for (const o in e)
|
|
@@ -4913,7 +4913,7 @@ re.select = (t, e) => {
|
|
|
4913
4913
|
};
|
|
4914
4914
|
re.radio = (t) => (t.textContent = "", t);
|
|
4915
4915
|
re.checkbox = (t, e) => {
|
|
4916
|
-
const n =
|
|
4916
|
+
const n = kr(z(), "checkbox");
|
|
4917
4917
|
n.value = "1", n.checked = !!e.inputValue;
|
|
4918
4918
|
const r = t.querySelector("span");
|
|
4919
4919
|
return Le(r, e.inputPlaceholder || e.inputLabel), n;
|
|
@@ -4927,7 +4927,7 @@ re.textarea = (t, e) => {
|
|
|
4927
4927
|
if (!document.body.contains(t))
|
|
4928
4928
|
return;
|
|
4929
4929
|
const a = t.offsetWidth + n(t);
|
|
4930
|
-
a > r ? z().style.width = `${a}px` :
|
|
4930
|
+
a > r ? z().style.width = `${a}px` : Tt(z(), "width", e.width);
|
|
4931
4931
|
};
|
|
4932
4932
|
new MutationObserver(o).observe(t, {
|
|
4933
4933
|
attributes: !0,
|
|
@@ -5004,7 +5004,7 @@ const Ed = (t, e) => {
|
|
|
5004
5004
|
ve(n);
|
|
5005
5005
|
return;
|
|
5006
5006
|
}
|
|
5007
|
-
ce(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt || ""),
|
|
5007
|
+
ce(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt || ""), Tt(n, "width", e.imageWidth), Tt(n, "height", e.imageHeight), n.className = h.image, Pe(n, e, "image");
|
|
5008
5008
|
}
|
|
5009
5009
|
};
|
|
5010
5010
|
let So = !1, _i = 0, Si = 0, xi = 0, Ti = 0;
|
|
@@ -5048,12 +5048,12 @@ const Dd = (t) => {
|
|
|
5048
5048
|
const n = xe(), r = z();
|
|
5049
5049
|
if (!(!n || !r)) {
|
|
5050
5050
|
if (e.toast) {
|
|
5051
|
-
|
|
5051
|
+
Tt(n, "width", e.width), r.style.width = "100%";
|
|
5052
5052
|
const o = en();
|
|
5053
5053
|
o && r.insertBefore(o, Jt());
|
|
5054
5054
|
} else
|
|
5055
|
-
|
|
5056
|
-
|
|
5055
|
+
Tt(r, "width", e.width);
|
|
5056
|
+
Tt(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), ve(br()), jd(r, e), e.draggable && !e.toast ? (U(r, h.draggable), Dd(r)) : (De(r, h.draggable), Rd(r));
|
|
5057
5057
|
}
|
|
5058
5058
|
}, jd = (t, e) => {
|
|
5059
5059
|
const n = e.showClass || {};
|
|
@@ -5082,7 +5082,7 @@ const Dd = (t) => {
|
|
|
5082
5082
|
return U(e, h["progress-step"]), Le(e, t), e;
|
|
5083
5083
|
}, zd = (t) => {
|
|
5084
5084
|
const e = document.createElement("li");
|
|
5085
|
-
return U(e, h["progress-step-line"]), t.progressStepsDistance &&
|
|
5085
|
+
return U(e, h["progress-step-line"]), t.progressStepsDistance && Tt(e, "width", t.progressStepsDistance), e;
|
|
5086
5086
|
}, Ud = (t, e) => {
|
|
5087
5087
|
const n = hi();
|
|
5088
5088
|
n && (yo(n), Mn(n, !!(e.title || e.titleText), "block"), e.title && Co(e.title, n), e.titleText && (n.innerText = e.titleText), Pe(n, e, "title"));
|
|
@@ -5113,7 +5113,7 @@ const Dd = (t) => {
|
|
|
5113
5113
|
Pi(t), e.toast || (t.keydownHandler = (r) => Yd(e, r, n), t.keydownTarget = e.keydownListenerCapture ? window : z(), t.keydownListenerCapture = e.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
|
|
5114
5114
|
capture: t.keydownListenerCapture
|
|
5115
5115
|
}), t.keydownHandlerAdded = !0);
|
|
5116
|
-
},
|
|
5116
|
+
}, Qr = (t, e) => {
|
|
5117
5117
|
var n;
|
|
5118
5118
|
const r = bo();
|
|
5119
5119
|
if (r.length) {
|
|
@@ -5124,9 +5124,9 @@ const Dd = (t) => {
|
|
|
5124
5124
|
}, $i = ["ArrowRight", "ArrowDown"], qd = ["ArrowLeft", "ArrowUp"], Yd = (t, e, n) => {
|
|
5125
5125
|
t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Xd(e, t) : e.key === "Tab" ? Zd(e) : [...$i, ...qd].includes(e.key) ? Jd(e.key) : e.key === "Escape" && Qd(e, t, n)));
|
|
5126
5126
|
}, Xd = (t, e) => {
|
|
5127
|
-
if (!
|
|
5127
|
+
if (!vr(e.allowEnterKey))
|
|
5128
5128
|
return;
|
|
5129
|
-
const n =
|
|
5129
|
+
const n = kr(z(), e.input);
|
|
5130
5130
|
if (t.target && n && t.target instanceof HTMLElement && t.target.outerHTML === n.outerHTML) {
|
|
5131
5131
|
if (["textarea", "file"].includes(e.input))
|
|
5132
5132
|
return;
|
|
@@ -5140,7 +5140,7 @@ const Dd = (t) => {
|
|
|
5140
5140
|
r = o;
|
|
5141
5141
|
break;
|
|
5142
5142
|
}
|
|
5143
|
-
t.shiftKey ?
|
|
5143
|
+
t.shiftKey ? Qr(r, -1) : Qr(r, 1), t.stopPropagation(), t.preventDefault();
|
|
5144
5144
|
}, Jd = (t) => {
|
|
5145
5145
|
const e = Bn(), n = Ze(), r = Ot(), o = Qt();
|
|
5146
5146
|
if (!e || !n || !r || !o)
|
|
@@ -5160,7 +5160,7 @@ const Dd = (t) => {
|
|
|
5160
5160
|
s instanceof HTMLButtonElement && s.focus();
|
|
5161
5161
|
}
|
|
5162
5162
|
}, Qd = (t, e, n) => {
|
|
5163
|
-
t.preventDefault(),
|
|
5163
|
+
t.preventDefault(), vr(e.allowEscapeKey) && n(tn.esc);
|
|
5164
5164
|
};
|
|
5165
5165
|
var Yt = {
|
|
5166
5166
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
@@ -5192,10 +5192,10 @@ const em = () => {
|
|
|
5192
5192
|
};
|
|
5193
5193
|
}, rm = (t) => {
|
|
5194
5194
|
const e = t.target, n = xe(), r = ho();
|
|
5195
|
-
return !n || !r || om(t) || am(t) ? !1 : e === n || !
|
|
5195
|
+
return !n || !r || om(t) || am(t) ? !1 : e === n || !Jr(n) && e instanceof HTMLElement && !rd(e, r) && // #2823
|
|
5196
5196
|
e.tagName !== "INPUT" && // #1603
|
|
5197
5197
|
e.tagName !== "TEXTAREA" && // #2266
|
|
5198
|
-
!(
|
|
5198
|
+
!(Jr(r) && // #1944
|
|
5199
5199
|
r.contains(e));
|
|
5200
5200
|
}, om = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", am = (t) => t.touches && t.touches.length > 1, im = () => {
|
|
5201
5201
|
if (lt(document.body, h.iosfix)) {
|
|
@@ -5215,7 +5215,7 @@ const lm = (t) => {
|
|
|
5215
5215
|
Kt !== null && (document.body.style.paddingRight = `${Kt}px`, Kt = null);
|
|
5216
5216
|
};
|
|
5217
5217
|
function Bi(t, e, n, r) {
|
|
5218
|
-
|
|
5218
|
+
yr() ? xa(t, r) : (Gu(n).then(() => xa(t, r)), Pi(E)), Oi ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), wo() && (cm(), im(), Li()), um();
|
|
5219
5219
|
}
|
|
5220
5220
|
function um() {
|
|
5221
5221
|
De([document.documentElement, document.body], [h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]);
|
|
@@ -5270,10 +5270,10 @@ const Rn = (t) => {
|
|
|
5270
5270
|
});
|
|
5271
5271
|
}, Xt = (t) => {
|
|
5272
5272
|
let e = z();
|
|
5273
|
-
if (e || new
|
|
5273
|
+
if (e || new Pt(), e = z(), !e)
|
|
5274
5274
|
return;
|
|
5275
5275
|
const n = en();
|
|
5276
|
-
|
|
5276
|
+
yr() ? ve(Jt()) : hm(e, t), ce(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
|
|
5277
5277
|
}, hm = (t, e) => {
|
|
5278
5278
|
const n = Bn(), r = en();
|
|
5279
5279
|
!n || !r || (!e && Ae(Ze()) && (e = Ze()), ce(n), e && (ve(e), r.setAttribute("data-button-to-replace", e.className), n.insertBefore(r, e)), U([t, n], h.loading));
|
|
@@ -5401,7 +5401,7 @@ const dr = (t) => {
|
|
|
5401
5401
|
}, To = (t, e) => {
|
|
5402
5402
|
const n = Y.innerParams.get(t || void 0);
|
|
5403
5403
|
n.showLoaderOnConfirm && Xt(), n.preConfirm ? (t.resetValidationMessage(), t.isAwaitingPromise = !0, Promise.resolve().then(() => Ln(n.preConfirm(e, n.validationMessage))).then((o) => {
|
|
5404
|
-
Ae(
|
|
5404
|
+
Ae(br()) || o === !1 ? (t.hideLoading(), Rn(t)) : Ta(t, typeof o > "u" ? e : o);
|
|
5405
5405
|
}).catch((o) => Ni(t || void 0, o))) : Ta(t, e);
|
|
5406
5406
|
};
|
|
5407
5407
|
function mr() {
|
|
@@ -5409,7 +5409,7 @@ function mr() {
|
|
|
5409
5409
|
if (!t)
|
|
5410
5410
|
return;
|
|
5411
5411
|
const e = Y.domCache.get(this);
|
|
5412
|
-
ve(e.loader),
|
|
5412
|
+
ve(e.loader), yr() ? t.icon && ce(Jt()) : Em(e), De([e.popup, e.actions], h.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
5413
5413
|
}
|
|
5414
5414
|
const Em = (t) => {
|
|
5415
5415
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -5417,7 +5417,7 @@ const Em = (t) => {
|
|
|
5417
5417
|
};
|
|
5418
5418
|
function ji() {
|
|
5419
5419
|
const t = Y.innerParams.get(this), e = Y.domCache.get(this);
|
|
5420
|
-
return e ?
|
|
5420
|
+
return e ? kr(e.popup, t.input) : null;
|
|
5421
5421
|
}
|
|
5422
5422
|
function Hi(t, e, n) {
|
|
5423
5423
|
const r = Y.domCache.get(t);
|
|
@@ -5598,8 +5598,8 @@ function Qi() {
|
|
|
5598
5598
|
const Rm = (t) => {
|
|
5599
5599
|
es(t), delete t.params, delete E.keydownHandler, delete E.keydownTarget, delete E.currentInstance;
|
|
5600
5600
|
}, es = (t) => {
|
|
5601
|
-
t.isAwaitingPromise ? (
|
|
5602
|
-
},
|
|
5601
|
+
t.isAwaitingPromise ? (Rr(Y, t), t.isAwaitingPromise = !0) : (Rr(Yt, t), Rr(Y, t), delete t.isAwaitingPromise, delete t.disableButtons, delete t.enableButtons, delete t.getInput, delete t.disableInput, delete t.enableInput, delete t.hideLoading, delete t.disableLoading, delete t.showValidationMessage, delete t.resetValidationMessage, delete t.close, delete t.closePopup, delete t.closeModal, delete t.closeToast, delete t.rejectPromise, delete t.update, delete t._destroy);
|
|
5602
|
+
}, Rr = (t, e) => {
|
|
5603
5603
|
for (const n in t)
|
|
5604
5604
|
t[n].delete(e);
|
|
5605
5605
|
};
|
|
@@ -5651,7 +5651,7 @@ const zm = (t) => {
|
|
|
5651
5651
|
fr = !1;
|
|
5652
5652
|
return;
|
|
5653
5653
|
}
|
|
5654
|
-
r.target === e.container &&
|
|
5654
|
+
r.target === e.container && vr(t.allowOutsideClick) && n(tn.backdrop);
|
|
5655
5655
|
};
|
|
5656
5656
|
}, Wm = (t) => typeof t == "object" && t.jquery, Ia = (t) => t instanceof Element || Wm(t), Km = (t) => {
|
|
5657
5657
|
const e = {};
|
|
@@ -5689,16 +5689,16 @@ const Ym = () => E.timeout && E.timeout.getTimerLeft(), ts = () => {
|
|
|
5689
5689
|
}
|
|
5690
5690
|
}, Jm = () => !!(E.timeout && E.timeout.isRunning());
|
|
5691
5691
|
let Aa = !1;
|
|
5692
|
-
const
|
|
5692
|
+
const eo = {};
|
|
5693
5693
|
function Qm(t = "data-swal-template") {
|
|
5694
|
-
|
|
5694
|
+
eo[t] = this, Aa || (document.body.addEventListener("click", ef), Aa = !0);
|
|
5695
5695
|
}
|
|
5696
5696
|
const ef = (t) => {
|
|
5697
5697
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
5698
|
-
for (const n in
|
|
5698
|
+
for (const n in eo) {
|
|
5699
5699
|
const r = e.getAttribute(n);
|
|
5700
5700
|
if (r) {
|
|
5701
|
-
|
|
5701
|
+
eo[n].fire({
|
|
5702
5702
|
template: r
|
|
5703
5703
|
});
|
|
5704
5704
|
return;
|
|
@@ -5808,9 +5808,9 @@ var af = /* @__PURE__ */ Object.freeze({
|
|
|
5808
5808
|
getPopup: z,
|
|
5809
5809
|
getProgressSteps: go,
|
|
5810
5810
|
getTimerLeft: Ym,
|
|
5811
|
-
getTimerProgressBar:
|
|
5811
|
+
getTimerProgressBar: wr,
|
|
5812
5812
|
getTitle: hi,
|
|
5813
|
-
getValidationMessage:
|
|
5813
|
+
getValidationMessage: br,
|
|
5814
5814
|
increaseTimer: Zm,
|
|
5815
5815
|
isDeprecatedParameter: Xi,
|
|
5816
5816
|
isLoading: ed,
|
|
@@ -5880,7 +5880,7 @@ const rs = ["swal-title", "swal-html", "swal-footer"], lf = (t) => {
|
|
|
5880
5880
|
}, cf = (t) => {
|
|
5881
5881
|
const e = {};
|
|
5882
5882
|
return Array.from(t.querySelectorAll("swal-param")).forEach((r) => {
|
|
5883
|
-
|
|
5883
|
+
Et(r, ["name", "value"]);
|
|
5884
5884
|
const o = (
|
|
5885
5885
|
/** @type {keyof SweetAlertOptions} */
|
|
5886
5886
|
r.getAttribute("name")
|
|
@@ -5899,22 +5899,22 @@ const rs = ["swal-title", "swal-html", "swal-footer"], lf = (t) => {
|
|
|
5899
5899
|
}, df = (t) => {
|
|
5900
5900
|
const e = {};
|
|
5901
5901
|
return Array.from(t.querySelectorAll("swal-button")).forEach((r) => {
|
|
5902
|
-
|
|
5902
|
+
Et(r, ["type", "color", "aria-label"]);
|
|
5903
5903
|
const o = r.getAttribute("type");
|
|
5904
5904
|
!o || !["confirm", "cancel", "deny"].includes(o) || (e[`${o}ButtonText`] = r.innerHTML, e[`show${mo(o)}Button`] = !0, r.hasAttribute("color") && (e[`${o}ButtonColor`] = r.getAttribute("color")), r.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = r.getAttribute("aria-label")));
|
|
5905
5905
|
}), e;
|
|
5906
5906
|
}, mf = (t) => {
|
|
5907
5907
|
const e = {}, n = t.querySelector("swal-image");
|
|
5908
|
-
return n && (
|
|
5908
|
+
return n && (Et(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt") || void 0)), e;
|
|
5909
5909
|
}, ff = (t) => {
|
|
5910
5910
|
const e = {}, n = t.querySelector("swal-icon");
|
|
5911
|
-
return n && (
|
|
5911
|
+
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;
|
|
5912
5912
|
}, pf = (t) => {
|
|
5913
5913
|
const e = {}, n = t.querySelector("swal-input");
|
|
5914
|
-
n && (
|
|
5914
|
+
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")));
|
|
5915
5915
|
const r = Array.from(t.querySelectorAll("swal-input-option"));
|
|
5916
5916
|
return r.length && (e.inputOptions = {}, r.forEach((o) => {
|
|
5917
|
-
|
|
5917
|
+
Et(o, ["value"]);
|
|
5918
5918
|
const a = o.getAttribute("value");
|
|
5919
5919
|
if (!a)
|
|
5920
5920
|
return;
|
|
@@ -5925,7 +5925,7 @@ const rs = ["swal-title", "swal-html", "swal-footer"], lf = (t) => {
|
|
|
5925
5925
|
const n = {};
|
|
5926
5926
|
for (const r in e) {
|
|
5927
5927
|
const o = e[r], a = t.querySelector(o);
|
|
5928
|
-
a && (
|
|
5928
|
+
a && (Et(a, []), n[o.replace(/^swal-/, "")] = a.innerHTML.trim());
|
|
5929
5929
|
}
|
|
5930
5930
|
return n;
|
|
5931
5931
|
}, gf = (t) => {
|
|
@@ -5934,7 +5934,7 @@ const rs = ["swal-title", "swal-html", "swal-footer"], lf = (t) => {
|
|
|
5934
5934
|
const r = n.tagName.toLowerCase();
|
|
5935
5935
|
e.includes(r) || Ce(`Unrecognized element <${r}>`);
|
|
5936
5936
|
});
|
|
5937
|
-
},
|
|
5937
|
+
}, Et = (t, e) => {
|
|
5938
5938
|
Array.from(t.attributes).forEach((n) => {
|
|
5939
5939
|
e.indexOf(n.name) === -1 && Ce([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`, `${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`]);
|
|
5940
5940
|
});
|
|
@@ -5944,7 +5944,7 @@ const rs = ["swal-title", "swal-html", "swal-footer"], lf = (t) => {
|
|
|
5944
5944
|
const o = window.getComputedStyle(document.body).overflowY;
|
|
5945
5945
|
yf(e, n, t), setTimeout(() => {
|
|
5946
5946
|
bf(e, n);
|
|
5947
|
-
}, os), wo() && (wf(e, t.scrollbarPadding, o), em()), !
|
|
5947
|
+
}, os), wo() && (wf(e, t.scrollbarPadding, o), em()), !yr() && !E.previousActiveElement && (E.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), E.eventEmitter.emit("didOpen", n);
|
|
5948
5948
|
}, pr = (t) => {
|
|
5949
5949
|
const e = z();
|
|
5950
5950
|
if (t.target !== e)
|
|
@@ -6060,12 +6060,12 @@ const Sf = (t, e, n) => new Promise((r, o) => {
|
|
|
6060
6060
|
cancelButton: Qt(),
|
|
6061
6061
|
loader: en(),
|
|
6062
6062
|
closeButton: vo(),
|
|
6063
|
-
validationMessage:
|
|
6063
|
+
validationMessage: br(),
|
|
6064
6064
|
progressSteps: go()
|
|
6065
6065
|
};
|
|
6066
6066
|
return Y.domCache.set(t, e), e;
|
|
6067
6067
|
}, If = (t, e, n) => {
|
|
6068
|
-
const r =
|
|
6068
|
+
const r = wr();
|
|
6069
6069
|
ve(r), e.timer && (t.timeout = new sf(() => {
|
|
6070
6070
|
n("timer"), delete t.timeout;
|
|
6071
6071
|
}, e.timer), e.timerProgressBar && (ce(r), Pe(r, e, "timerProgressBar"), setTimeout(() => {
|
|
@@ -6073,11 +6073,11 @@ const Sf = (t, e, n) => new Promise((r, o) => {
|
|
|
6073
6073
|
})));
|
|
6074
6074
|
}, Af = (t, e) => {
|
|
6075
6075
|
if (!e.toast) {
|
|
6076
|
-
if (!
|
|
6076
|
+
if (!vr(e.allowEnterKey)) {
|
|
6077
6077
|
pi("allowEnterKey"), $f();
|
|
6078
6078
|
return;
|
|
6079
6079
|
}
|
|
6080
|
-
Ef(t) || Pf(t, e) ||
|
|
6080
|
+
Ef(t) || Pf(t, e) || Qr(-1, 1);
|
|
6081
6081
|
}
|
|
6082
6082
|
}, Ef = (t) => {
|
|
6083
6083
|
const e = Array.from(t.popup.querySelectorAll("[autofocus]"));
|
|
@@ -6112,8 +6112,8 @@ Object.keys(Nm).forEach((t) => {
|
|
|
6112
6112
|
});
|
|
6113
6113
|
oe.DismissReason = tn;
|
|
6114
6114
|
oe.version = "11.26.3";
|
|
6115
|
-
const
|
|
6116
|
-
|
|
6115
|
+
const Pt = oe;
|
|
6116
|
+
Pt.default = Pt;
|
|
6117
6117
|
typeof document < "u" && (function(t, e) {
|
|
6118
6118
|
var n = t.createElement("style");
|
|
6119
6119
|
if (t.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = e);
|
|
@@ -6136,8 +6136,8 @@ let {
|
|
|
6136
6136
|
seal: Re,
|
|
6137
6137
|
create: er
|
|
6138
6138
|
} = Object, {
|
|
6139
|
-
apply:
|
|
6140
|
-
construct:
|
|
6139
|
+
apply: to,
|
|
6140
|
+
construct: no
|
|
6141
6141
|
} = typeof Reflect < "u" && Reflect;
|
|
6142
6142
|
_e || (_e = function(e) {
|
|
6143
6143
|
return e;
|
|
@@ -6145,30 +6145,30 @@ _e || (_e = function(e) {
|
|
|
6145
6145
|
Re || (Re = function(e) {
|
|
6146
6146
|
return e;
|
|
6147
6147
|
});
|
|
6148
|
-
|
|
6148
|
+
to || (to = function(e, n) {
|
|
6149
6149
|
for (var r = arguments.length, o = new Array(r > 2 ? r - 2 : 0), a = 2; a < r; a++)
|
|
6150
6150
|
o[a - 2] = arguments[a];
|
|
6151
6151
|
return e.apply(n, o);
|
|
6152
6152
|
});
|
|
6153
|
-
|
|
6153
|
+
no || (no = function(e) {
|
|
6154
6154
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
6155
6155
|
r[o - 1] = arguments[o];
|
|
6156
6156
|
return new e(...r);
|
|
6157
6157
|
});
|
|
6158
|
-
const Jn = Se(Array.prototype.forEach), Mf = Se(Array.prototype.lastIndexOf), $a = Se(Array.prototype.pop), dn = Se(Array.prototype.push), Df = Se(Array.prototype.splice), tr = Se(String.prototype.toLowerCase),
|
|
6158
|
+
const Jn = Se(Array.prototype.forEach), Mf = Se(Array.prototype.lastIndexOf), $a = Se(Array.prototype.pop), dn = Se(Array.prototype.push), Df = Se(Array.prototype.splice), tr = Se(String.prototype.toLowerCase), Nr = Se(String.prototype.toString), jr = Se(String.prototype.match), mn = Se(String.prototype.replace), Rf = Se(String.prototype.indexOf), Nf = Se(String.prototype.trim), Ee = Se(Object.prototype.hasOwnProperty), we = Se(RegExp.prototype.test), fn = jf(TypeError);
|
|
6159
6159
|
function Se(t) {
|
|
6160
6160
|
return function(e) {
|
|
6161
6161
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
6162
6162
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
6163
6163
|
r[o - 1] = arguments[o];
|
|
6164
|
-
return
|
|
6164
|
+
return to(t, e, r);
|
|
6165
6165
|
};
|
|
6166
6166
|
}
|
|
6167
6167
|
function jf(t) {
|
|
6168
6168
|
return function() {
|
|
6169
6169
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
6170
6170
|
n[r] = arguments[r];
|
|
6171
|
-
return
|
|
6171
|
+
return no(t, n);
|
|
6172
6172
|
};
|
|
6173
6173
|
}
|
|
6174
6174
|
function D(t, e) {
|
|
@@ -6212,7 +6212,7 @@ function pn(t, e) {
|
|
|
6212
6212
|
}
|
|
6213
6213
|
return n;
|
|
6214
6214
|
}
|
|
6215
|
-
const La = _e(["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", "search", "section", "select", "shadow", "slot", "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"]),
|
|
6215
|
+
const La = _e(["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", "search", "section", "select", "shadow", "slot", "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"]), Hr = _e(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Fr = _e(["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"]), Ff = _e(["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"]), zr = _e(["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"]), zf = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Oa = _e(["#text"]), Ba = _e(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ur = _e(["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", "mask-type", "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"]), Ma = _e(["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"]), Qn = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Uf = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Vf = Re(/<%[\w\W]*|[\w\W]*%>/gm), Wf = Re(/\$\{[\w\W]*/gm), Kf = Re(/^data-[\-\w.\u00B7-\uFFFF]+$/), Gf = Re(/^aria-[\-\w]+$/), is = Re(
|
|
6216
6216
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
6217
6217
|
// eslint-disable-line no-useless-escape
|
|
6218
6218
|
), qf = Re(/^(?:\w+script|data):/i), Yf = Re(
|
|
@@ -6320,9 +6320,9 @@ function ls() {
|
|
|
6320
6320
|
let {
|
|
6321
6321
|
IS_ALLOWED_URI: Me
|
|
6322
6322
|
} = Da, V = null;
|
|
6323
|
-
const ze = D({}, [...La, ...
|
|
6323
|
+
const ze = D({}, [...La, ...Hr, ...Fr, ...zr, ...Oa]);
|
|
6324
6324
|
let te = null;
|
|
6325
|
-
const tt = D({}, [...Ba, ...
|
|
6325
|
+
const tt = D({}, [...Ba, ...Ur, ...Ma, ...Qn]);
|
|
6326
6326
|
let J = Object.seal(er(null, {
|
|
6327
6327
|
tagNameCheck: {
|
|
6328
6328
|
writable: !0,
|
|
@@ -6358,15 +6358,15 @@ function ls() {
|
|
|
6358
6358
|
}
|
|
6359
6359
|
}));
|
|
6360
6360
|
let Nn = !0, nn = !0, jn = !1, Hn = !0, mt = !1, Mt = !0, nt = !1, rn = !1, on = !1, ft = !1, Dt = !1, Rt = !1, Fn = !0, zn = !1;
|
|
6361
|
-
const
|
|
6361
|
+
const Cr = "user-content-";
|
|
6362
6362
|
let an = !0, sn = !1, Nt = {}, Ve = null;
|
|
6363
|
-
const
|
|
6363
|
+
const _r = D({}, ["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"]);
|
|
6364
6364
|
let Eo = null;
|
|
6365
6365
|
const Po = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
6366
|
-
let
|
|
6366
|
+
let Sr = null;
|
|
6367
6367
|
const $o = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Un = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", rt = "http://www.w3.org/1999/xhtml";
|
|
6368
|
-
let jt = rt,
|
|
6369
|
-
const ms = D({}, [Un, Vn, rt],
|
|
6368
|
+
let jt = rt, xr = !1, Tr = null;
|
|
6369
|
+
const ms = D({}, [Un, Vn, rt], Nr);
|
|
6370
6370
|
let Wn = D({}, ["mi", "mo", "mn", "ms", "mtext"]), Kn = D({}, ["annotation-xml"]);
|
|
6371
6371
|
const fs = D({}, ["title", "style", "font", "a", "script"]);
|
|
6372
6372
|
let ln = null;
|
|
@@ -6374,11 +6374,11 @@ function ls() {
|
|
|
6374
6374
|
let se = null, Ht = null;
|
|
6375
6375
|
const gs = n.createElement("form"), Lo = function(d) {
|
|
6376
6376
|
return d instanceof RegExp || d instanceof Function;
|
|
6377
|
-
},
|
|
6377
|
+
}, Ir = function() {
|
|
6378
6378
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6379
6379
|
if (!(Ht && Ht === d)) {
|
|
6380
6380
|
if ((!d || typeof d != "object") && (d = {}), d = Ke(d), ln = // eslint-disable-next-line unicorn/prefer-includes
|
|
6381
|
-
ps.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? hs : d.PARSER_MEDIA_TYPE, se = ln === "application/xhtml+xml" ?
|
|
6381
|
+
ps.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? hs : d.PARSER_MEDIA_TYPE, se = ln === "application/xhtml+xml" ? Nr : tr, V = Ee(d, "ALLOWED_TAGS") ? D({}, d.ALLOWED_TAGS, se) : ze, te = Ee(d, "ALLOWED_ATTR") ? D({}, d.ALLOWED_ATTR, se) : tt, Tr = Ee(d, "ALLOWED_NAMESPACES") ? D({}, d.ALLOWED_NAMESPACES, Nr) : ms, Sr = Ee(d, "ADD_URI_SAFE_ATTR") ? D(Ke($o), d.ADD_URI_SAFE_ATTR, se) : $o, Eo = Ee(d, "ADD_DATA_URI_TAGS") ? D(Ke(Po), d.ADD_DATA_URI_TAGS, se) : Po, Ve = Ee(d, "FORBID_CONTENTS") ? D({}, d.FORBID_CONTENTS, se) : _r, dt = Ee(d, "FORBID_TAGS") ? D({}, d.FORBID_TAGS, se) : Ke({}), Bt = Ee(d, "FORBID_ATTR") ? D({}, d.FORBID_ATTR, se) : Ke({}), Nt = Ee(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Nn = d.ALLOW_ARIA_ATTR !== !1, nn = d.ALLOW_DATA_ATTR !== !1, jn = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Hn = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, mt = d.SAFE_FOR_TEMPLATES || !1, Mt = d.SAFE_FOR_XML !== !1, nt = d.WHOLE_DOCUMENT || !1, ft = d.RETURN_DOM || !1, Dt = d.RETURN_DOM_FRAGMENT || !1, Rt = d.RETURN_TRUSTED_TYPE || !1, on = d.FORCE_BODY || !1, Fn = d.SANITIZE_DOM !== !1, zn = d.SANITIZE_NAMED_PROPS || !1, an = d.KEEP_CONTENT !== !1, sn = d.IN_PLACE || !1, Me = d.ALLOWED_URI_REGEXP || is, jt = d.NAMESPACE || rt, Wn = d.MATHML_TEXT_INTEGRATION_POINTS || Wn, Kn = d.HTML_INTEGRATION_POINTS || Kn, J = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Lo(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (J.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Lo(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (J.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (J.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), mt && (nn = !1), Dt && (ft = !0), Nt && (V = D({}, Oa), te = er(null), Nt.html === !0 && (D(V, La), D(te, Ba)), Nt.svg === !0 && (D(V, Hr), D(te, Ur), D(te, Qn)), Nt.svgFilters === !0 && (D(V, Fr), D(te, Ur), D(te, Qn)), Nt.mathMl === !0 && (D(V, zr), D(te, Ma), D(te, Qn))), Ee(d, "ADD_TAGS") || (Ue.tagCheck = null), Ee(d, "ADD_ATTR") || (Ue.attributeCheck = null), d.ADD_TAGS && (typeof d.ADD_TAGS == "function" ? Ue.tagCheck = d.ADD_TAGS : (V === ze && (V = Ke(V)), D(V, d.ADD_TAGS, se))), d.ADD_ATTR && (typeof d.ADD_ATTR == "function" ? Ue.attributeCheck = d.ADD_ATTR : (te === tt && (te = Ke(te)), D(te, d.ADD_ATTR, se))), d.ADD_URI_SAFE_ATTR && D(Sr, d.ADD_URI_SAFE_ATTR, se), d.FORBID_CONTENTS && (Ve === _r && (Ve = Ke(Ve)), D(Ve, d.FORBID_CONTENTS, se)), d.ADD_FORBID_CONTENTS && (Ve === _r && (Ve = Ke(Ve)), D(Ve, d.ADD_FORBID_CONTENTS, se)), an && (V["#text"] = !0), nt && D(V, ["html", "head", "body"]), V.table && (D(V, ["tbody"]), delete dt.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
6382
6382
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
6383
6383
|
throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
6384
6384
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -6388,14 +6388,14 @@ function ls() {
|
|
|
6388
6388
|
C === void 0 && (C = Jf(p, o)), C !== null && typeof I == "string" && (I = C.createHTML(""));
|
|
6389
6389
|
_e && _e(d), Ht = d;
|
|
6390
6390
|
}
|
|
6391
|
-
}, Oo = D({}, [...
|
|
6391
|
+
}, Oo = D({}, [...Hr, ...Fr, ...Ff]), Bo = D({}, [...zr, ...zf]), vs = function(d) {
|
|
6392
6392
|
let k = L(d);
|
|
6393
6393
|
(!k || !k.tagName) && (k = {
|
|
6394
6394
|
namespaceURI: jt,
|
|
6395
6395
|
tagName: "template"
|
|
6396
6396
|
});
|
|
6397
6397
|
const T = tr(d.tagName), Q = tr(k.tagName);
|
|
6398
|
-
return
|
|
6398
|
+
return Tr[d.namespaceURI] ? d.namespaceURI === Vn ? k.namespaceURI === rt ? T === "svg" : k.namespaceURI === Un ? T === "svg" && (Q === "annotation-xml" || Wn[Q]) : !!Oo[T] : d.namespaceURI === Un ? k.namespaceURI === rt ? T === "math" : k.namespaceURI === Vn ? T === "math" && Kn[Q] : !!Bo[T] : d.namespaceURI === rt ? k.namespaceURI === Vn && !Kn[Q] || k.namespaceURI === Un && !Wn[Q] ? !1 : !Bo[T] && (fs[T] || !Oo[T]) : !!(ln === "application/xhtml+xml" && Tr[d.namespaceURI]) : !1;
|
|
6399
6399
|
}, We = function(d) {
|
|
6400
6400
|
dn(e.removed, {
|
|
6401
6401
|
element: d
|
|
@@ -6405,7 +6405,7 @@ function ls() {
|
|
|
6405
6405
|
} catch {
|
|
6406
6406
|
y(d);
|
|
6407
6407
|
}
|
|
6408
|
-
},
|
|
6408
|
+
}, yt = function(d, k) {
|
|
6409
6409
|
try {
|
|
6410
6410
|
dn(e.removed, {
|
|
6411
6411
|
attribute: k.getAttributeNode(d),
|
|
@@ -6433,7 +6433,7 @@ function ls() {
|
|
|
6433
6433
|
if (on)
|
|
6434
6434
|
d = "<remove></remove>" + d;
|
|
6435
6435
|
else {
|
|
6436
|
-
const ae =
|
|
6436
|
+
const ae = jr(d, /^[\r\n\t ]+/);
|
|
6437
6437
|
T = ae && ae[0];
|
|
6438
6438
|
}
|
|
6439
6439
|
ln === "application/xhtml+xml" && jt === rt && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
@@ -6446,7 +6446,7 @@ function ls() {
|
|
|
6446
6446
|
if (!k || !k.documentElement) {
|
|
6447
6447
|
k = ee.createDocument(jt, "template", null);
|
|
6448
6448
|
try {
|
|
6449
|
-
k.documentElement.innerHTML =
|
|
6449
|
+
k.documentElement.innerHTML = xr ? I : Q;
|
|
6450
6450
|
} catch {
|
|
6451
6451
|
}
|
|
6452
6452
|
}
|
|
@@ -6460,7 +6460,7 @@ function ls() {
|
|
|
6460
6460
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
6461
6461
|
null
|
|
6462
6462
|
);
|
|
6463
|
-
},
|
|
6463
|
+
}, Ar = function(d) {
|
|
6464
6464
|
return d instanceof m && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof u) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
|
|
6465
6465
|
}, Ro = function(d) {
|
|
6466
6466
|
return typeof s == "function" && d instanceof s;
|
|
@@ -6472,7 +6472,7 @@ function ls() {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
const No = function(d) {
|
|
6474
6474
|
let k = null;
|
|
6475
|
-
if (ot(P.beforeSanitizeElements, d, null),
|
|
6475
|
+
if (ot(P.beforeSanitizeElements, d, null), Ar(d))
|
|
6476
6476
|
return We(d), !0;
|
|
6477
6477
|
const T = se(d.nodeName);
|
|
6478
6478
|
if (ot(P.uponSanitizeElement, d, {
|
|
@@ -6515,7 +6515,7 @@ function ls() {
|
|
|
6515
6515
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
6516
6516
|
k === "is" && J.allowCustomizedBuiltInElements && (J.tagNameCheck instanceof RegExp && we(J.tagNameCheck, T) || J.tagNameCheck instanceof Function && J.tagNameCheck(T)))
|
|
6517
6517
|
) return !1;
|
|
6518
|
-
} else if (!
|
|
6518
|
+
} else if (!Sr[k]) {
|
|
6519
6519
|
if (!we(Me, mn(T, et, ""))) {
|
|
6520
6520
|
if (!((k === "src" || k === "xlink:href" || k === "href") && d !== "script" && Rf(T, "data:") === 0 && Eo[d])) {
|
|
6521
6521
|
if (!(jn && !we(Qe, mn(T, et, "")))) {
|
|
@@ -6530,13 +6530,13 @@ function ls() {
|
|
|
6530
6530
|
}
|
|
6531
6531
|
return !0;
|
|
6532
6532
|
}, Ho = function(d) {
|
|
6533
|
-
return d !== "annotation-xml" &&
|
|
6533
|
+
return d !== "annotation-xml" && jr(d, ut);
|
|
6534
6534
|
}, Fo = function(d) {
|
|
6535
6535
|
ot(P.beforeSanitizeAttributes, d, null);
|
|
6536
6536
|
const {
|
|
6537
6537
|
attributes: k
|
|
6538
6538
|
} = d;
|
|
6539
|
-
if (!k ||
|
|
6539
|
+
if (!k || Ar(d))
|
|
6540
6540
|
return;
|
|
6541
6541
|
const T = {
|
|
6542
6542
|
attrName: "",
|
|
@@ -6551,24 +6551,24 @@ function ls() {
|
|
|
6551
6551
|
name: ae,
|
|
6552
6552
|
namespaceURI: Te,
|
|
6553
6553
|
value: at
|
|
6554
|
-
} = he, Ft = se(ae),
|
|
6555
|
-
let de = ae === "value" ?
|
|
6556
|
-
if (T.attrName = Ft, T.attrValue = de, T.keepAttr = !0, T.forceKeepAttr = void 0, ot(P.uponSanitizeAttribute, d, T), de = T.attrValue, zn && (Ft === "id" || Ft === "name") && (
|
|
6557
|
-
|
|
6554
|
+
} = he, Ft = se(ae), Er = at;
|
|
6555
|
+
let de = ae === "value" ? Er : Nf(Er);
|
|
6556
|
+
if (T.attrName = Ft, T.attrValue = de, T.keepAttr = !0, T.forceKeepAttr = void 0, ot(P.uponSanitizeAttribute, d, T), de = T.attrValue, zn && (Ft === "id" || Ft === "name") && (yt(ae, d), de = Cr + de), Mt && we(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, de)) {
|
|
6557
|
+
yt(ae, d);
|
|
6558
6558
|
continue;
|
|
6559
6559
|
}
|
|
6560
|
-
if (Ft === "attributename" &&
|
|
6561
|
-
|
|
6560
|
+
if (Ft === "attributename" && jr(de, "href")) {
|
|
6561
|
+
yt(ae, d);
|
|
6562
6562
|
continue;
|
|
6563
6563
|
}
|
|
6564
6564
|
if (T.forceKeepAttr)
|
|
6565
6565
|
continue;
|
|
6566
6566
|
if (!T.keepAttr) {
|
|
6567
|
-
|
|
6567
|
+
yt(ae, d);
|
|
6568
6568
|
continue;
|
|
6569
6569
|
}
|
|
6570
6570
|
if (!Hn && we(/\/>/i, de)) {
|
|
6571
|
-
|
|
6571
|
+
yt(ae, d);
|
|
6572
6572
|
continue;
|
|
6573
6573
|
}
|
|
6574
6574
|
mt && Jn([W, pe, be], (Uo) => {
|
|
@@ -6576,7 +6576,7 @@ function ls() {
|
|
|
6576
6576
|
});
|
|
6577
6577
|
const zo = se(d.nodeName);
|
|
6578
6578
|
if (!jo(zo, Ft, de)) {
|
|
6579
|
-
|
|
6579
|
+
yt(ae, d);
|
|
6580
6580
|
continue;
|
|
6581
6581
|
}
|
|
6582
6582
|
if (C && typeof p == "object" && typeof p.getAttributeType == "function" && !Te)
|
|
@@ -6590,11 +6590,11 @@ function ls() {
|
|
|
6590
6590
|
break;
|
|
6591
6591
|
}
|
|
6592
6592
|
}
|
|
6593
|
-
if (de !==
|
|
6593
|
+
if (de !== Er)
|
|
6594
6594
|
try {
|
|
6595
|
-
Te ? d.setAttributeNS(Te, ae, de) : d.setAttribute(ae, de),
|
|
6595
|
+
Te ? d.setAttributeNS(Te, ae, de) : d.setAttribute(ae, de), Ar(d) ? We(d) : $a(e.removed);
|
|
6596
6596
|
} catch {
|
|
6597
|
-
|
|
6597
|
+
yt(ae, d);
|
|
6598
6598
|
}
|
|
6599
6599
|
}
|
|
6600
6600
|
ot(P.afterSanitizeAttributes, d, null);
|
|
@@ -6607,7 +6607,7 @@ function ls() {
|
|
|
6607
6607
|
};
|
|
6608
6608
|
return e.sanitize = function(A) {
|
|
6609
6609
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, T = null, Q = null, he = null;
|
|
6610
|
-
if (
|
|
6610
|
+
if (xr = !A, xr && (A = "<!-->"), typeof A != "string" && !Ro(A))
|
|
6611
6611
|
if (typeof A.toString == "function") {
|
|
6612
6612
|
if (A = A.toString(), typeof A != "string")
|
|
6613
6613
|
throw fn("dirty is not a string, aborting");
|
|
@@ -6615,7 +6615,7 @@ function ls() {
|
|
|
6615
6615
|
throw fn("toString is not a function");
|
|
6616
6616
|
if (!e.isSupported)
|
|
6617
6617
|
return A;
|
|
6618
|
-
if (rn ||
|
|
6618
|
+
if (rn || Ir(d), e.removed = [], typeof A == "string" && (sn = !1), sn) {
|
|
6619
6619
|
if (A.nodeName) {
|
|
6620
6620
|
const at = se(A.nodeName);
|
|
6621
6621
|
if (!V[at] || dt[at])
|
|
@@ -6651,11 +6651,11 @@ function ls() {
|
|
|
6651
6651
|
}), C && Rt ? C.createHTML(Te) : Te;
|
|
6652
6652
|
}, e.setConfig = function() {
|
|
6653
6653
|
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6654
|
-
|
|
6654
|
+
Ir(A), rn = !0;
|
|
6655
6655
|
}, e.clearConfig = function() {
|
|
6656
6656
|
Ht = null, rn = !1;
|
|
6657
6657
|
}, e.isValidAttribute = function(A, d, k) {
|
|
6658
|
-
Ht ||
|
|
6658
|
+
Ht || Ir({});
|
|
6659
6659
|
const T = se(A), Q = se(d);
|
|
6660
6660
|
return jo(T, Q, k);
|
|
6661
6661
|
}, e.addHook = function(A, d) {
|
|
@@ -6676,7 +6676,7 @@ var Io = ls();
|
|
|
6676
6676
|
const Qf = (t) => !(!t || !(t instanceof HTMLElement));
|
|
6677
6677
|
class cs {
|
|
6678
6678
|
get IsVisible() {
|
|
6679
|
-
return
|
|
6679
|
+
return Pt.isVisible();
|
|
6680
6680
|
}
|
|
6681
6681
|
/** @deprecated Use ConfirmWithOptionsAsync instead. */
|
|
6682
6682
|
async CreateConfirmAsync(e) {
|
|
@@ -6689,7 +6689,7 @@ class cs {
|
|
|
6689
6689
|
*/
|
|
6690
6690
|
async ConfirmWithOptionsAsync(e) {
|
|
6691
6691
|
return e.confirmLabel ??= "sim", e.rejectLabel ??= "não", e.confirmColor ??= "primary", e.rejectColor ??= "primary", Qf(e.target) ? this.CreatePopoverAsync(e).then((n) => n === !0) : new Promise((n) => {
|
|
6692
|
-
|
|
6692
|
+
Pt.fire({
|
|
6693
6693
|
showCancelButton: !0,
|
|
6694
6694
|
allowEscapeKey: !1,
|
|
6695
6695
|
allowOutsideClick: !1,
|
|
@@ -6926,13 +6926,13 @@ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
|
|
|
6926
6926
|
text: "Deseja sair da sua conta?",
|
|
6927
6927
|
target: m.currentTarget,
|
|
6928
6928
|
confirmColor: "error"
|
|
6929
|
-
}) && (
|
|
6929
|
+
}) && (ro("Saindo..."), l.value = !0, await new Promise((g) => setTimeout(g, 1e3)), p.logout({ redirectUri: window.location.origin }).catch(() => {
|
|
6930
6930
|
l.value = !1, Ha();
|
|
6931
6931
|
}));
|
|
6932
6932
|
},
|
|
6933
6933
|
LogoutWithoutConfirmation: async () => {
|
|
6934
6934
|
const { oidc: m } = Wt();
|
|
6935
|
-
|
|
6935
|
+
ro("Saindo..."), l.value = !0, await new Promise((f) => setTimeout(f, 1e3)), m.logout({ redirectUri: window.location.origin }).catch(() => {
|
|
6936
6936
|
l.value = !1, Ha();
|
|
6937
6937
|
});
|
|
6938
6938
|
},
|
|
@@ -6984,7 +6984,7 @@ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
|
|
|
6984
6984
|
onOnHide: l
|
|
6985
6985
|
}, {
|
|
6986
6986
|
default: le(() => [
|
|
6987
|
-
G(i.$slots, "content", _t(
|
|
6987
|
+
G(i.$slots, "content", Ct(_t({ resolve: r, reject: o })), () => [
|
|
6988
6988
|
$(a)?.detail.options?.title ? (_(), x("div", ip, [
|
|
6989
6989
|
b("b", null, K($(a)?.detail.options.title), 1)
|
|
6990
6990
|
])) : F("", !0),
|
|
@@ -7070,7 +7070,7 @@ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
|
|
|
7070
7070
|
if (!w.value || !o.value) return !1;
|
|
7071
7071
|
w.value.offsetWidth !== r && (ap.debug("[sf.prefeiturasp.vuecomponets] Menu fechado dinamicamente."), u());
|
|
7072
7072
|
};
|
|
7073
|
-
|
|
7073
|
+
$t(() => {
|
|
7074
7074
|
const v = Es();
|
|
7075
7075
|
if (g(), v.afterEach(() => {
|
|
7076
7076
|
g();
|
|
@@ -7254,7 +7254,7 @@ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
|
|
|
7254
7254
|
n.value = f !== -1 ? f : -1;
|
|
7255
7255
|
}
|
|
7256
7256
|
};
|
|
7257
|
-
return
|
|
7257
|
+
return $t(() => {
|
|
7258
7258
|
m();
|
|
7259
7259
|
}), (f, p) => (_(), x("div", Sp, [
|
|
7260
7260
|
b("ul", {
|
|
@@ -7262,7 +7262,7 @@ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
|
|
|
7262
7262
|
"aria-orientation": "horizontal",
|
|
7263
7263
|
class: j({ dense: e.dense })
|
|
7264
7264
|
}, [
|
|
7265
|
-
(_(!0), x(ke, null,
|
|
7265
|
+
(_(!0), x(ke, null, At(e.tabs, (w, g) => (_(), x("li", {
|
|
7266
7266
|
key: c(g),
|
|
7267
7267
|
onClick: (y) => l(g),
|
|
7268
7268
|
onKeydown: (y) => i(y, g)
|
|
@@ -7277,7 +7277,7 @@ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
|
|
|
7277
7277
|
}, K(w.text), 9, Tp)
|
|
7278
7278
|
], 40, xp))), 128))
|
|
7279
7279
|
], 2),
|
|
7280
|
-
(_(!0), x(ke, null,
|
|
7280
|
+
(_(!0), x(ke, null, At(e.tabs, (w, g) => (_(), x("div", {
|
|
7281
7281
|
key: u(g),
|
|
7282
7282
|
id: u(g),
|
|
7283
7283
|
role: "tabpanel",
|
|
@@ -7349,12 +7349,12 @@ class Ap {
|
|
|
7349
7349
|
}
|
|
7350
7350
|
class ds {
|
|
7351
7351
|
get IsVisible() {
|
|
7352
|
-
return
|
|
7352
|
+
return Pt.isVisible();
|
|
7353
7353
|
}
|
|
7354
7354
|
async CreateAlertAsync(e) {
|
|
7355
7355
|
let n = "info", r, o;
|
|
7356
7356
|
return typeof e == "string" || Array.isArray(e) ? r = Array.isArray(e) ? e.join("<br />") : e : (n = e.icon ?? "info", o = e.title ?? "", r = Array.isArray(e.text) ? e.text.join("<br />") : e.text), new Promise((a) => {
|
|
7357
|
-
|
|
7357
|
+
Pt.fire({
|
|
7358
7358
|
allowEscapeKey: !1,
|
|
7359
7359
|
allowOutsideClick: !1,
|
|
7360
7360
|
icon: n,
|
|
@@ -8371,30 +8371,17 @@ class Pp {
|
|
|
8371
8371
|
}
|
|
8372
8372
|
}
|
|
8373
8373
|
const $p = new Pp(), Jp = () => $p;
|
|
8374
|
-
function Qp(t) {
|
|
8375
|
-
const e = (
|
|
8376
|
-
//@ts-ignore
|
|
8377
|
-
window.__SF_PREFEITURASP_PULL_TO_REFRESH_EVENT_NAME__
|
|
8378
|
-
), n = (r) => {
|
|
8379
|
-
r.preventDefault(), r.stopPropagation(), t(r);
|
|
8380
|
-
};
|
|
8381
|
-
return yt(() => {
|
|
8382
|
-
document.addEventListener(e, n);
|
|
8383
|
-
}), hr(() => {
|
|
8384
|
-
document.removeEventListener(e, n);
|
|
8385
|
-
}), {};
|
|
8386
|
-
}
|
|
8387
8374
|
function Ha() {
|
|
8388
8375
|
document.documentElement.removeAttribute("data-app-message"), document.documentElement.classList.add("app-mounted");
|
|
8389
8376
|
}
|
|
8390
|
-
function
|
|
8377
|
+
function ro(t) {
|
|
8391
8378
|
typeof t == "string" && document.documentElement.setAttribute("data-app-message", t), document.documentElement.classList.remove("app-mounted");
|
|
8392
8379
|
}
|
|
8393
|
-
async function
|
|
8380
|
+
async function Qp() {
|
|
8394
8381
|
return await fetch(window.location.origin + "/api/get-environment").then(
|
|
8395
8382
|
async (t) => {
|
|
8396
8383
|
if (!t.ok)
|
|
8397
|
-
throw
|
|
8384
|
+
throw ro("Ocorreu um erro ao inicializar a aplicação."), new Error(
|
|
8398
8385
|
`Erro ao obter ambiente: ${t.status} ${t.statusText}`
|
|
8399
8386
|
);
|
|
8400
8387
|
return await t.text();
|
|
@@ -8406,13 +8393,13 @@ export {
|
|
|
8406
8393
|
Ap as AppResult,
|
|
8407
8394
|
Xp as BaseAppState,
|
|
8408
8395
|
Zp as EnsureUniqueRouteNames,
|
|
8409
|
-
|
|
8396
|
+
Qp as GetEnvironmentAsync,
|
|
8410
8397
|
Ha as RemovePreloader,
|
|
8411
|
-
|
|
8398
|
+
ro as RestorePreloader,
|
|
8412
8399
|
kn as SfButton,
|
|
8413
8400
|
jp as SfContent,
|
|
8414
8401
|
Gs as SfDrawer,
|
|
8415
|
-
|
|
8402
|
+
Br as SfHelpButton,
|
|
8416
8403
|
Xe as SfIcon,
|
|
8417
8404
|
zs as SfLoadingCircle,
|
|
8418
8405
|
Hp as SfLogin,
|
|
@@ -8436,7 +8423,6 @@ export {
|
|
|
8436
8423
|
ap as _logger,
|
|
8437
8424
|
zp as configSF,
|
|
8438
8425
|
Gp as globalErrorHandler,
|
|
8439
|
-
qp as themePreset
|
|
8440
|
-
Qp as usePullToRefresh
|
|
8426
|
+
qp as themePreset
|
|
8441
8427
|
};
|
|
8442
8428
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.js.map
|