@luizleon/sf.prefeiturasp.vuecomponents 4.1.28 → 4.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sf.prefeiturasp.vuecomponents.js +173 -170
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +15 -15
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/common/utilities.d.ts +1 -0
- package/dist/types/common/utilities.d.ts.map +1 -1
- package/dist/types/components/drawer/Drawer.vue.d.ts +2 -2
- package/dist/types/components/drawer/Drawer.vue.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ss = Object.defineProperty;
|
|
2
2
|
var ks = (t, e, n) => e in t ? Ss(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var He = (t, e, n) => ks(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { ref as ze, openBlock as L, createElementBlock as F, createElementVNode as M, defineComponent as Ge, unref as ve, createStaticVNode as Cs, onBeforeUnmount as li, renderSlot as be, onMounted as
|
|
4
|
+
import { ref as ze, openBlock as L, createElementBlock as F, createElementVNode as M, defineComponent as Ge, unref as ve, createStaticVNode as Cs, onBeforeUnmount as li, renderSlot as be, onMounted as jn, normalizeClass as te, createVNode as Qe, withCtx as gt, computed as tn, createBlock as de, resolveDynamicComponent as mt, normalizeStyle as sn, mergeProps as z, Fragment as St, createTextVNode as Is, toDisplayString as pt, createCommentVNode as se, resolveComponent as gn, renderList as Er, useSlots as Ts, watch as hr, Teleport as As, withModifiers as tr, Transition as xr, readonly as Ps, getCurrentInstance as Es, nextTick as xs, resolveDirective as Os, withDirectives as gr, vShow as ci } from "vue";
|
|
5
5
|
class Ls {
|
|
6
6
|
constructor() {
|
|
7
7
|
He(this, "_visible", ze(!1));
|
|
@@ -19,7 +19,7 @@ class Ls {
|
|
|
19
19
|
this._visible.value = !0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const $s = new Ls(), ui = () => $s,
|
|
22
|
+
const $s = new Ls(), ui = () => $s, Vn = (t, e) => {
|
|
23
23
|
const n = t.__vccOpts || t;
|
|
24
24
|
for (const [r, o] of e)
|
|
25
25
|
n[r] = o;
|
|
@@ -36,7 +36,7 @@ function Rs(t, e) {
|
|
|
36
36
|
M("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
const Ns = /* @__PURE__ */
|
|
39
|
+
const Ns = /* @__PURE__ */ Vn(Ms, [["render", Rs]]);
|
|
40
40
|
class Bs {
|
|
41
41
|
get storedTheme() {
|
|
42
42
|
return localStorage.getItem("color-scheme");
|
|
@@ -160,7 +160,7 @@ const fi = /* @__PURE__ */ Ge({
|
|
|
160
160
|
emits: ["mounted", "logout"],
|
|
161
161
|
setup(t, { emit: e }) {
|
|
162
162
|
const n = ui(), r = e;
|
|
163
|
-
return
|
|
163
|
+
return jn(() => {
|
|
164
164
|
r("mounted");
|
|
165
165
|
}), (o, i) => (L(), F("div", Hs, [
|
|
166
166
|
M("header", null, [
|
|
@@ -222,7 +222,7 @@ function Ws(t, e) {
|
|
|
222
222
|
], -1)
|
|
223
223
|
]));
|
|
224
224
|
}
|
|
225
|
-
const Gs = /* @__PURE__ */
|
|
225
|
+
const Gs = /* @__PURE__ */ Vn(Ks, [["render", Ws]]);
|
|
226
226
|
class st {
|
|
227
227
|
/**
|
|
228
228
|
* Creates a new instance of the CssClassBuilder class.
|
|
@@ -314,7 +314,7 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
314
314
|
_: 1
|
|
315
315
|
}, 8, ["text", "class"]));
|
|
316
316
|
}
|
|
317
|
-
}),
|
|
317
|
+
}), vr = /* @__PURE__ */ Vn(Xs, [["__scopeId", "data-v-545d34b6"]]), Zs = /* @__PURE__ */ Ge({
|
|
318
318
|
__name: "ScrollToTop",
|
|
319
319
|
setup(t) {
|
|
320
320
|
const e = ze(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
@@ -322,7 +322,7 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
322
322
|
function o() {
|
|
323
323
|
r == null || r.scrollTo(0, 0);
|
|
324
324
|
}
|
|
325
|
-
return
|
|
325
|
+
return jn(() => {
|
|
326
326
|
var i;
|
|
327
327
|
r = ((i = document.getElementById(n)) == null ? void 0 : i.parentElement) ?? null, r && r.addEventListener("scroll", function() {
|
|
328
328
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
@@ -395,7 +395,7 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
395
395
|
const a = n.value.scrollWidth - n.value.clientWidth;
|
|
396
396
|
o.value = n.value.scrollLeft > 10, i.value = n.value.scrollLeft < a - 10;
|
|
397
397
|
}
|
|
398
|
-
return
|
|
398
|
+
return jn(() => {
|
|
399
399
|
n.value.addEventListener("scroll", s), r.observe(n.value);
|
|
400
400
|
}), li(() => {
|
|
401
401
|
var a;
|
|
@@ -512,7 +512,7 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
512
512
|
form: e.form,
|
|
513
513
|
type: e.type
|
|
514
514
|
}, [
|
|
515
|
-
e.icon ? (L(), de(
|
|
515
|
+
e.icon ? (L(), de(vr, {
|
|
516
516
|
key: 0,
|
|
517
517
|
icon: e.icon,
|
|
518
518
|
loading: e.loading,
|
|
@@ -520,7 +520,7 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
520
520
|
color: void 0,
|
|
521
521
|
"button-props": { tabindex: -1 },
|
|
522
522
|
filled: e.iconFilled
|
|
523
|
-
}, null, 8, ["icon", "loading", "size", "filled"])) : e.loading ? (L(), de(
|
|
523
|
+
}, null, 8, ["icon", "loading", "size", "filled"])) : e.loading ? (L(), de(vr, {
|
|
524
524
|
key: 1,
|
|
525
525
|
loading: !0,
|
|
526
526
|
size: e.size,
|
|
@@ -564,14 +564,14 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
564
564
|
window.document.removeEventListener("keydown", f, !0), l.value = !1;
|
|
565
565
|
}
|
|
566
566
|
function $() {
|
|
567
|
-
return new st("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
|
|
567
|
+
return new st("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("center", n.position === "center").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
|
|
568
568
|
}
|
|
569
|
-
return
|
|
569
|
+
return hr(
|
|
570
570
|
() => n.visible,
|
|
571
571
|
(E) => {
|
|
572
572
|
i.value = E;
|
|
573
573
|
}
|
|
574
|
-
),
|
|
574
|
+
), hr(
|
|
575
575
|
() => i.value,
|
|
576
576
|
(E) => {
|
|
577
577
|
r("update:visible", E), E && (l.value = !0);
|
|
@@ -582,7 +582,7 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
582
582
|
id: a,
|
|
583
583
|
class: te($()),
|
|
584
584
|
style: sn({ zIndex: s.value - 1 }),
|
|
585
|
-
onClick:
|
|
585
|
+
onClick: tr(u, ["stop"])
|
|
586
586
|
}, [
|
|
587
587
|
Qe(xr, {
|
|
588
588
|
name: "sf-drawer",
|
|
@@ -603,16 +603,16 @@ const qs = ["disabled", "tabindex"], Ys = ["data-color"], Xs = /* @__PURE__ */ G
|
|
|
603
603
|
]),
|
|
604
604
|
style: sn(n.style),
|
|
605
605
|
role: "dialog",
|
|
606
|
-
onClick: B[0] || (B[0] =
|
|
606
|
+
onClick: B[0] || (B[0] = tr((C) => E.void, ["stop"]))
|
|
607
607
|
}, [
|
|
608
608
|
M("div", ra, [
|
|
609
609
|
M("span", oa, [
|
|
610
610
|
be(E.$slots, "title")
|
|
611
611
|
]),
|
|
612
|
-
Qe(
|
|
612
|
+
Qe(vr, {
|
|
613
613
|
button: !0,
|
|
614
614
|
icon: "close",
|
|
615
|
-
onClick:
|
|
615
|
+
onClick: tr(u, ["stop"])
|
|
616
616
|
})
|
|
617
617
|
]),
|
|
618
618
|
M("div", ia, [
|
|
@@ -673,7 +673,7 @@ function ca(t, e) {
|
|
|
673
673
|
[e].flat().filter(Boolean).forEach((r) => r.split(" ").forEach(n));
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function nr(t, e) {
|
|
677
677
|
if (t && e) {
|
|
678
678
|
const n = (r) => {
|
|
679
679
|
t.classList ? t.classList.remove(r) : t.className = t.className.replace(new RegExp("(^|\\b)" + r.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
@@ -684,11 +684,11 @@ function tr(t, e) {
|
|
|
684
684
|
function ua(t, e) {
|
|
685
685
|
return t instanceof HTMLElement ? t.offsetWidth : 0;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Fn(t) {
|
|
688
688
|
return typeof HTMLElement == "object" ? t instanceof HTMLElement : t && typeof t == "object" && t !== null && t.nodeType === 1 && typeof t.nodeName == "string";
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
if (
|
|
690
|
+
function Rn(t, e = {}) {
|
|
691
|
+
if (Fn(t)) {
|
|
692
692
|
const n = (r, o) => {
|
|
693
693
|
var i, l;
|
|
694
694
|
const s = (i = t == null ? void 0 : t.$attrs) != null && i[r] ? [(l = t == null ? void 0 : t.$attrs) == null ? void 0 : l[r]] : [];
|
|
@@ -708,7 +708,7 @@ function Dn(t, e = {}) {
|
|
|
708
708
|
Object.entries(e).forEach(([r, o]) => {
|
|
709
709
|
if (o != null) {
|
|
710
710
|
const i = r.match(/^on(.+)/);
|
|
711
|
-
i ? t.addEventListener(i[1].toLowerCase(), o) : r === "p-bind" ?
|
|
711
|
+
i ? t.addEventListener(i[1].toLowerCase(), o) : r === "p-bind" ? Rn(t, o) : (o = r === "class" ? [...new Set(n("class", o))].join(" ").trim() : r === "style" ? n("style", o).join(";").trim() : o, (t.$attrs = t.$attrs || {}) && (t.$attrs[r] = o), t.setAttribute(r, o));
|
|
712
712
|
}
|
|
713
713
|
});
|
|
714
714
|
}
|
|
@@ -716,17 +716,17 @@ function Dn(t, e = {}) {
|
|
|
716
716
|
function da(t, e = {}, ...n) {
|
|
717
717
|
{
|
|
718
718
|
const r = document.createElement(t);
|
|
719
|
-
return
|
|
719
|
+
return Rn(r, e), r.append(...n), r;
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
function Fe(t, e) {
|
|
723
|
-
return
|
|
723
|
+
return Fn(t) ? t.matches(e) ? t : t.querySelector(e) : null;
|
|
724
724
|
}
|
|
725
725
|
function Zt(t, e) {
|
|
726
726
|
t && document.activeElement !== t && t.focus(e);
|
|
727
727
|
}
|
|
728
728
|
function Jt(t, e) {
|
|
729
|
-
if (
|
|
729
|
+
if (Fn(t)) {
|
|
730
730
|
const n = t.getAttribute(e);
|
|
731
731
|
return isNaN(n) ? n === "true" || n === "false" ? n === "true" : n : +n;
|
|
732
732
|
}
|
|
@@ -775,7 +775,7 @@ function ga() {
|
|
|
775
775
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
776
776
|
}
|
|
777
777
|
function va(t, e = "", n) {
|
|
778
|
-
|
|
778
|
+
Fn(t) && n !== null && n !== void 0 && t.setAttribute(e, n);
|
|
779
779
|
}
|
|
780
780
|
function mi() {
|
|
781
781
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -802,13 +802,13 @@ function mi() {
|
|
|
802
802
|
function kt(t) {
|
|
803
803
|
return t == null || t === "" || Array.isArray(t) && t.length === 0 || !(t instanceof Date) && typeof t == "object" && Object.keys(t).length === 0;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function yr(t, e) {
|
|
806
806
|
if (t === e) return !0;
|
|
807
807
|
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
808
808
|
var n = Array.isArray(t), r = Array.isArray(e), o, i, l;
|
|
809
809
|
if (n && r) {
|
|
810
810
|
if (i = t.length, i != e.length) return !1;
|
|
811
|
-
for (o = i; o-- !== 0; ) if (!
|
|
811
|
+
for (o = i; o-- !== 0; ) if (!yr(t[o], e[o])) return !1;
|
|
812
812
|
return !0;
|
|
813
813
|
}
|
|
814
814
|
if (n != r) return !1;
|
|
@@ -822,7 +822,7 @@ function vr(t, e) {
|
|
|
822
822
|
if (i = p.length, i !== Object.keys(e).length) return !1;
|
|
823
823
|
for (o = i; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, p[o])) return !1;
|
|
824
824
|
for (o = i; o-- !== 0; )
|
|
825
|
-
if (l = p[o], !
|
|
825
|
+
if (l = p[o], !yr(t[l], e[l])) return !1;
|
|
826
826
|
return !0;
|
|
827
827
|
}
|
|
828
828
|
return t !== t && e !== e;
|
|
@@ -834,7 +834,7 @@ function Y(t) {
|
|
|
834
834
|
return !kt(t);
|
|
835
835
|
}
|
|
836
836
|
function $t(t, e, n) {
|
|
837
|
-
return
|
|
837
|
+
return yr(t, e);
|
|
838
838
|
}
|
|
839
839
|
function yo(t, e) {
|
|
840
840
|
let n;
|
|
@@ -894,23 +894,23 @@ var Pn = {};
|
|
|
894
894
|
function wa(t = "pui_id_") {
|
|
895
895
|
return Pn.hasOwnProperty(t) || (Pn[t] = 0), Pn[t]++, `${t}${Pn[t]}`;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Nn() {
|
|
898
898
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
|
|
899
899
|
return wa(t);
|
|
900
900
|
}
|
|
901
|
-
var _a = Object.defineProperty, Sa = Object.defineProperties, ka = Object.getOwnPropertyDescriptors,
|
|
901
|
+
var _a = Object.defineProperty, Sa = Object.defineProperties, ka = Object.getOwnPropertyDescriptors, Bn = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, wo = (t, e, n) => e in t ? _a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Kt = (t, e) => {
|
|
902
902
|
for (var n in e || (e = {}))
|
|
903
903
|
gi.call(e, n) && wo(t, n, e[n]);
|
|
904
|
-
if (
|
|
905
|
-
for (var n of
|
|
904
|
+
if (Bn)
|
|
905
|
+
for (var n of Bn(e))
|
|
906
906
|
vi.call(e, n) && wo(t, n, e[n]);
|
|
907
907
|
return t;
|
|
908
|
-
},
|
|
908
|
+
}, rr = (t, e) => Sa(t, ka(e)), zt = (t, e) => {
|
|
909
909
|
var n = {};
|
|
910
910
|
for (var r in t)
|
|
911
911
|
gi.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
912
|
-
if (t != null &&
|
|
913
|
-
for (var r of
|
|
912
|
+
if (t != null && Bn)
|
|
913
|
+
for (var r of Bn(t))
|
|
914
914
|
e.indexOf(r) < 0 && vi.call(t, r) && (n[r] = t[r]);
|
|
915
915
|
return n;
|
|
916
916
|
}, Ca = mi(), it = Ca;
|
|
@@ -926,11 +926,11 @@ function So(t, e = "") {
|
|
|
926
926
|
function Ta(t) {
|
|
927
927
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function br(t = "", e = "") {
|
|
930
930
|
return Ta(`${Te(t, !1) && Te(e, !1) ? `${t}-` : t}${e}`);
|
|
931
931
|
}
|
|
932
932
|
function yi(t = "", e = "") {
|
|
933
|
-
return `--${
|
|
933
|
+
return `--${br(t, e)}`;
|
|
934
934
|
}
|
|
935
935
|
function bi(t, e = "", n = "", r = [], o) {
|
|
936
936
|
if (Te(t)) {
|
|
@@ -952,7 +952,7 @@ function Aa(t, e, n) {
|
|
|
952
952
|
function Qt(t, e) {
|
|
953
953
|
return t ? `${t}{${e}}` : "";
|
|
954
954
|
}
|
|
955
|
-
var
|
|
955
|
+
var or = (...t) => Pa(Q.getTheme(), ...t), Pa = (t = {}, e, n, r = "variable") => {
|
|
956
956
|
if (e) {
|
|
957
957
|
const { variable: o, options: i } = Q.defaults || {}, { prefix: l, transform: s } = (t == null ? void 0 : t.options) || i || {}, u = at(e, /{([^}]*)}/g) ? e : `{${e}}`;
|
|
958
958
|
return r === "value" || s === "strict" ? Q.getTokenValue(e) : bi(u, void 0, l, [o.excludedKeyRegex], n);
|
|
@@ -962,7 +962,7 @@ var rr = (...t) => Pa(Q.getTheme(), ...t), Pa = (t = {}, e, n, r = "variable") =
|
|
|
962
962
|
function Ea(t, e = {}) {
|
|
963
963
|
const n = Q.defaults.variable, { prefix: r = n.prefix, selector: o = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, l = (u, f = "") => Object.entries(u).reduce(
|
|
964
964
|
(p, [y, k]) => {
|
|
965
|
-
const I = at(y, i) ?
|
|
965
|
+
const I = at(y, i) ? br(f) : br(f, hi(y)), $ = Ia(k);
|
|
966
966
|
if (vt($)) {
|
|
967
967
|
const { variables: E, tokens: B } = l($, I);
|
|
968
968
|
_o(p.tokens, B), _o(p.variables, E);
|
|
@@ -1168,7 +1168,7 @@ var je = {
|
|
|
1168
1168
|
_tokens: {},
|
|
1169
1169
|
update(t = {}) {
|
|
1170
1170
|
const { theme: e } = t;
|
|
1171
|
-
e && (this._theme =
|
|
1171
|
+
e && (this._theme = rr(Kt({}, e), {
|
|
1172
1172
|
options: Kt(Kt({}, this.defaults.options), e.options)
|
|
1173
1173
|
}), this._tokens = je.createTokens(this.preset, this.defaults), this.clearLoadedStyleNames());
|
|
1174
1174
|
},
|
|
@@ -1196,13 +1196,13 @@ var je = {
|
|
|
1196
1196
|
return this.preset;
|
|
1197
1197
|
},
|
|
1198
1198
|
setPreset(t) {
|
|
1199
|
-
this._theme =
|
|
1199
|
+
this._theme = rr(Kt({}, this.theme), { preset: t }), this._tokens = je.createTokens(t, this.defaults), this.clearLoadedStyleNames(), it.emit("preset:change", t), it.emit("theme:change", this.theme);
|
|
1200
1200
|
},
|
|
1201
1201
|
getOptions() {
|
|
1202
1202
|
return this.options;
|
|
1203
1203
|
},
|
|
1204
1204
|
setOptions(t) {
|
|
1205
|
-
this._theme =
|
|
1205
|
+
this._theme = rr(Kt({}, this.theme), { options: t }), this.clearLoadedStyleNames(), it.emit("options:change", t), it.emit("theme:change", this.theme);
|
|
1206
1206
|
},
|
|
1207
1207
|
getLayerNames() {
|
|
1208
1208
|
return [...this._layerNames];
|
|
@@ -1330,7 +1330,7 @@ function La(t, e) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
function $a(t) {
|
|
1332
1332
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1333
|
-
Es() ?
|
|
1333
|
+
Es() ? jn(t) : e ? t() : xs(t);
|
|
1334
1334
|
}
|
|
1335
1335
|
var Ma = 0;
|
|
1336
1336
|
function Da(t) {
|
|
@@ -1339,16 +1339,16 @@ function Da(t) {
|
|
|
1339
1339
|
var bt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1340
1340
|
if (s) {
|
|
1341
1341
|
var Me = Co(Co({}, Ue), bt), c = Me.name || k, m = Me.id || $, v = Me.nonce || D;
|
|
1342
|
-
o.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(m) || s.createElement("style"), o.value.isConnected || (r.value = Ye || t,
|
|
1342
|
+
o.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(m) || s.createElement("style"), o.value.isConnected || (r.value = Ye || t, Rn(o.value, {
|
|
1343
1343
|
type: "text/css",
|
|
1344
1344
|
id: m,
|
|
1345
1345
|
media: B,
|
|
1346
1346
|
nonce: v
|
|
1347
|
-
}), ee ? s.head.prepend(o.value) : s.head.appendChild(o.value), va(o.value, "data-primevue-style-id", c),
|
|
1347
|
+
}), ee ? s.head.prepend(o.value) : s.head.appendChild(o.value), va(o.value, "data-primevue-style-id", c), Rn(o.value, Me), o.value.onload = function(S) {
|
|
1348
1348
|
return ne == null ? void 0 : ne(S, {
|
|
1349
1349
|
name: c
|
|
1350
1350
|
});
|
|
1351
|
-
}, re == null || re(c)), !n.value && (Ee =
|
|
1351
|
+
}, re == null || re(c)), !n.value && (Ee = hr(r, function(S) {
|
|
1352
1352
|
o.value.textContent = S, Pe == null || Pe(c);
|
|
1353
1353
|
}, {
|
|
1354
1354
|
immediate: !0
|
|
@@ -1425,7 +1425,7 @@ function Ao(t, e) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return n;
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function ir(t) {
|
|
1429
1429
|
for (var e = 1; e < arguments.length; e++) {
|
|
1430
1430
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1431
1431
|
e % 2 ? Ao(Object(n), !0).forEach(function(r) {
|
|
@@ -1609,9 +1609,9 @@ var Fa = function(e) {
|
|
|
1609
1609
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(i) {
|
|
1610
1610
|
return i;
|
|
1611
1611
|
}, o = r(xe(e, {
|
|
1612
|
-
dt:
|
|
1612
|
+
dt: or
|
|
1613
1613
|
}));
|
|
1614
|
-
return o ? Da(nn(o),
|
|
1614
|
+
return o ? Da(nn(o), ir({
|
|
1615
1615
|
name: this.name
|
|
1616
1616
|
}, n)) : {};
|
|
1617
1617
|
},
|
|
@@ -1644,7 +1644,7 @@ var Fa = function(e) {
|
|
|
1644
1644
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1645
1645
|
if (this.css) {
|
|
1646
1646
|
var r = xe(this.css, {
|
|
1647
|
-
dt:
|
|
1647
|
+
dt: or
|
|
1648
1648
|
}), o = nn("".concat(r).concat(e)), i = Object.entries(n).reduce(function(l, s) {
|
|
1649
1649
|
var a = Io(s, 2), u = a[0], f = a[1];
|
|
1650
1650
|
return l.push("".concat(u, '="').concat(f, '"')) && l;
|
|
@@ -1661,7 +1661,7 @@ var Fa = function(e) {
|
|
|
1661
1661
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [Q.getStyleSheet(this.name, e, n)];
|
|
1662
1662
|
if (this.theme) {
|
|
1663
1663
|
var o = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = xe(this.theme, {
|
|
1664
|
-
dt:
|
|
1664
|
+
dt: or
|
|
1665
1665
|
}), l = nn(Q.transformCSS(o, i)), s = Object.entries(n).reduce(function(a, u) {
|
|
1666
1666
|
var f = Io(u, 2), p = f[0], y = f[1];
|
|
1667
1667
|
return a.push("".concat(p, '="').concat(y, '"')) && a;
|
|
@@ -1671,7 +1671,7 @@ var Fa = function(e) {
|
|
|
1671
1671
|
return r.join("");
|
|
1672
1672
|
},
|
|
1673
1673
|
extend: function(e) {
|
|
1674
|
-
return
|
|
1674
|
+
return ir(ir({}, this), {}, {
|
|
1675
1675
|
css: void 0,
|
|
1676
1676
|
theme: void 0
|
|
1677
1677
|
}, e);
|
|
@@ -1774,7 +1774,7 @@ function Za(t, e) {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
return (e === "string" ? String : Number)(t);
|
|
1776
1776
|
}
|
|
1777
|
-
var
|
|
1777
|
+
var Kn = {
|
|
1778
1778
|
name: "BaseComponent",
|
|
1779
1779
|
props: {
|
|
1780
1780
|
pt: {
|
|
@@ -2094,7 +2094,7 @@ var Fn = {
|
|
|
2094
2094
|
}, {});
|
|
2095
2095
|
},
|
|
2096
2096
|
$attrSelector: function() {
|
|
2097
|
-
return
|
|
2097
|
+
return Nn("pc");
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
}, Ja = `
|
|
@@ -2181,7 +2181,7 @@ function nl(t, e) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
var ki = {
|
|
2183
2183
|
name: "BaseIcon",
|
|
2184
|
-
extends:
|
|
2184
|
+
extends: Kn,
|
|
2185
2185
|
props: {
|
|
2186
2186
|
label: {
|
|
2187
2187
|
type: String,
|
|
@@ -2491,14 +2491,14 @@ function q(t) {
|
|
|
2491
2491
|
for (var e = 1; e < arguments.length; e++) {
|
|
2492
2492
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
2493
2493
|
e % 2 ? Ro(Object(n), !0).forEach(function(r) {
|
|
2494
|
-
|
|
2494
|
+
wr(t, r, n[r]);
|
|
2495
2495
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ro(Object(n)).forEach(function(r) {
|
|
2496
2496
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
2497
2497
|
});
|
|
2498
2498
|
}
|
|
2499
2499
|
return t;
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2501
|
+
function wr(t, e, n) {
|
|
2502
2502
|
return (e = gl(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
2503
2503
|
}
|
|
2504
2504
|
function gl(t) {
|
|
@@ -2537,7 +2537,7 @@ var j = {
|
|
|
2537
2537
|
},
|
|
2538
2538
|
_getPTDatasets: function() {
|
|
2539
2539
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = "data-pc-";
|
|
2540
|
-
return q(q({}, n === "root" &&
|
|
2540
|
+
return q(q({}, n === "root" && wr({}, "".concat(r, "name"), Ke(e.$name))), {}, wr({}, "".concat(r, "section"), Ke(n)));
|
|
2541
2541
|
},
|
|
2542
2542
|
_getPT: function(e) {
|
|
2543
2543
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 ? arguments[2] : void 0, o = function(l) {
|
|
@@ -2717,7 +2717,7 @@ var j = {
|
|
|
2717
2717
|
r("created", l, s, a, u);
|
|
2718
2718
|
},
|
|
2719
2719
|
beforeMount: function(l, s, a, u) {
|
|
2720
|
-
l.$attrSelector =
|
|
2720
|
+
l.$attrSelector = Nn("pd"), j._loadStyles(l, s, a), r("beforeMount", l, s, a, u), o(l);
|
|
2721
2721
|
},
|
|
2722
2722
|
mounted: function(l, s, a, u) {
|
|
2723
2723
|
j._loadStyles(l, s, a), r("mounted", l, s, a, u);
|
|
@@ -2795,18 +2795,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2795
2795
|
}
|
|
2796
2796
|
function Cl(t, e) {
|
|
2797
2797
|
if (t) {
|
|
2798
|
-
if (typeof t == "string") return
|
|
2798
|
+
if (typeof t == "string") return _r(t, e);
|
|
2799
2799
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2800
|
-
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) ?
|
|
2800
|
+
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) ? _r(t, e) : void 0;
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
2803
|
function Il(t) {
|
|
2804
2804
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2805
2805
|
}
|
|
2806
2806
|
function Tl(t) {
|
|
2807
|
-
if (Array.isArray(t)) return
|
|
2807
|
+
if (Array.isArray(t)) return _r(t);
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function _r(t, e) {
|
|
2810
2810
|
(e == null || e > t.length) && (e = t.length);
|
|
2811
2811
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
2812
2812
|
return r;
|
|
@@ -2863,18 +2863,18 @@ var El = _l.extend("ripple", {
|
|
|
2863
2863
|
onMouseDown: function(e) {
|
|
2864
2864
|
var n = this, r = e.currentTarget, o = this.getInk(r);
|
|
2865
2865
|
if (!(!o || getComputedStyle(o, null).display === "none")) {
|
|
2866
|
-
if (!this.isUnstyled() &&
|
|
2866
|
+
if (!this.isUnstyled() && nr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"), !go(o) && !vo(o)) {
|
|
2867
2867
|
var i = Math.max(ua(r), pa(r));
|
|
2868
2868
|
o.style.height = i + "px", o.style.width = i + "px";
|
|
2869
2869
|
}
|
|
2870
2870
|
var l = ma(r), s = e.pageX - l.left + document.body.scrollTop - vo(o) / 2, a = e.pageY - l.top + document.body.scrollLeft - go(o) / 2;
|
|
2871
2871
|
o.style.top = a + "px", o.style.left = s + "px", !this.isUnstyled() && ca(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
|
|
2872
|
-
o && (!n.isUnstyled() &&
|
|
2872
|
+
o && (!n.isUnstyled() && nr(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"));
|
|
2873
2873
|
}, 401);
|
|
2874
2874
|
}
|
|
2875
2875
|
},
|
|
2876
2876
|
onAnimationEnd: function(e) {
|
|
2877
|
-
this.timeout && clearTimeout(this.timeout), !this.isUnstyled() &&
|
|
2877
|
+
this.timeout && clearTimeout(this.timeout), !this.isUnstyled() && nr(e.currentTarget, "p-ink-active"), e.currentTarget.setAttribute("data-p-ink-active", "false");
|
|
2878
2878
|
},
|
|
2879
2879
|
getInk: function(e) {
|
|
2880
2880
|
return e && e.children ? Sl(e.children).find(function(n) {
|
|
@@ -2884,7 +2884,7 @@ var El = _l.extend("ripple", {
|
|
|
2884
2884
|
}
|
|
2885
2885
|
}), xl = {
|
|
2886
2886
|
name: "BasePanelMenu",
|
|
2887
|
-
extends:
|
|
2887
|
+
extends: Kn,
|
|
2888
2888
|
props: {
|
|
2889
2889
|
model: {
|
|
2890
2890
|
type: Array,
|
|
@@ -2913,7 +2913,7 @@ var El = _l.extend("ripple", {
|
|
|
2913
2913
|
}, Ci = {
|
|
2914
2914
|
name: "PanelMenuSub",
|
|
2915
2915
|
hostName: "PanelMenu",
|
|
2916
|
-
extends:
|
|
2916
|
+
extends: Kn,
|
|
2917
2917
|
emits: ["item-toggle", "item-mousemove"],
|
|
2918
2918
|
props: {
|
|
2919
2919
|
panelId: {
|
|
@@ -3085,7 +3085,7 @@ function Dl(t, e, n, r, o, i) {
|
|
|
3085
3085
|
hasSubmenu: i.isItemGroup(a),
|
|
3086
3086
|
label: i.getItemLabel(a),
|
|
3087
3087
|
props: i.getMenuItemProps(a, u)
|
|
3088
|
-
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) :
|
|
3088
|
+
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : gr((L(), F("a", z({
|
|
3089
3089
|
key: 0,
|
|
3090
3090
|
href: i.getItemProp(a, "url"),
|
|
3091
3091
|
class: t.cx("itemLink"),
|
|
@@ -3119,7 +3119,7 @@ function Dl(t, e, n, r, o, i) {
|
|
|
3119
3119
|
ref_for: !0
|
|
3120
3120
|
}, t.ptm("transition")), {
|
|
3121
3121
|
default: gt(function() {
|
|
3122
|
-
return [
|
|
3122
|
+
return [gr(M("div", z({
|
|
3123
3123
|
class: t.cx("contentContainer"),
|
|
3124
3124
|
ref_for: !0
|
|
3125
3125
|
}, t.ptm("contentContainer")), [i.isItemVisible(a) && i.isItemGroup(a) ? (L(), de(l, z({
|
|
@@ -3195,7 +3195,7 @@ function Hl(t) {
|
|
|
3195
3195
|
var Ii = {
|
|
3196
3196
|
name: "PanelMenuList",
|
|
3197
3197
|
hostName: "PanelMenu",
|
|
3198
|
-
extends:
|
|
3198
|
+
extends: Kn,
|
|
3199
3199
|
emits: ["item-toggle", "header-focus"],
|
|
3200
3200
|
props: {
|
|
3201
3201
|
panelId: {
|
|
@@ -3601,11 +3601,11 @@ var Ti = {
|
|
|
3601
3601
|
},
|
|
3602
3602
|
watch: {
|
|
3603
3603
|
"$attrs.id": function(e) {
|
|
3604
|
-
this.id = e ||
|
|
3604
|
+
this.id = e || Nn();
|
|
3605
3605
|
}
|
|
3606
3606
|
},
|
|
3607
3607
|
mounted: function() {
|
|
3608
|
-
this.id = this.id ||
|
|
3608
|
+
this.id = this.id || Nn();
|
|
3609
3609
|
},
|
|
3610
3610
|
methods: {
|
|
3611
3611
|
getItemProp: function(e, n) {
|
|
@@ -3842,7 +3842,7 @@ function Xl(t, e, n, r, o, i) {
|
|
|
3842
3842
|
ref_for: !0
|
|
3843
3843
|
}, t.ptm("transition")), {
|
|
3844
3844
|
default: gt(function() {
|
|
3845
|
-
return [
|
|
3845
|
+
return [gr(M("div", z({
|
|
3846
3846
|
id: i.getContentId(a),
|
|
3847
3847
|
class: t.cx("contentContainer"),
|
|
3848
3848
|
role: "region",
|
|
@@ -3932,7 +3932,7 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
3932
3932
|
]);
|
|
3933
3933
|
};
|
|
3934
3934
|
}
|
|
3935
|
-
}), Uf = /* @__PURE__ */
|
|
3935
|
+
}), Uf = /* @__PURE__ */ Vn(nc, [["__scopeId", "data-v-1411187f"]]), Ai = "SweetAlert2:", rc = (t) => {
|
|
3936
3936
|
const e = [];
|
|
3937
3937
|
for (let n = 0; n < t.length; n++)
|
|
3938
3938
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
@@ -3947,7 +3947,7 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
3947
3947
|
oc(
|
|
3948
3948
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
3949
3949
|
);
|
|
3950
|
-
},
|
|
3950
|
+
}, zn = (t) => typeof t == "function" ? t() : t, Nr = (t) => t && typeof t.toPromise == "function", vn = (t) => Nr(t) ? t.toPromise() : Promise.resolve(t), Br = (t) => t && Promise.resolve(t) === t, Mt = {
|
|
3951
3951
|
title: "",
|
|
3952
3952
|
titleText: "",
|
|
3953
3953
|
text: "",
|
|
@@ -4089,12 +4089,12 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
4089
4089
|
"returnFocus",
|
|
4090
4090
|
"heightAuto",
|
|
4091
4091
|
"keydownListenerCapture"
|
|
4092
|
-
], Pi = (t) => Object.prototype.hasOwnProperty.call(Mt, t), Ei = (t) => sc.indexOf(t) !== -1,
|
|
4092
|
+
], Pi = (t) => Object.prototype.hasOwnProperty.call(Mt, t), Ei = (t) => sc.indexOf(t) !== -1, Sr = (t) => ac[t], cc = (t) => {
|
|
4093
4093
|
Pi(t) || Ae(`Unknown parameter "${t}"`);
|
|
4094
4094
|
}, uc = (t) => {
|
|
4095
4095
|
lc.includes(t) && Ae(`The parameter "${t}" is incompatible with toasts`);
|
|
4096
4096
|
}, dc = (t) => {
|
|
4097
|
-
|
|
4097
|
+
Sr(t) && ic(t, Sr(t));
|
|
4098
4098
|
}, fc = (t) => {
|
|
4099
4099
|
!t.backdrop && t.allowOutsideClick && Ae('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4100
4100
|
for (const e in t)
|
|
@@ -4177,7 +4177,7 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
4177
4177
|
]), rn = xi(["success", "warning", "info", "question", "error"]), me = () => document.body.querySelector(`.${h.container}`), yn = (t) => {
|
|
4178
4178
|
const e = me();
|
|
4179
4179
|
return e ? e.querySelector(t) : null;
|
|
4180
|
-
}, Ne = (t) => yn(`.${t}`), X = () => Ne(h.popup), bn = () => Ne(h.icon), Oi = () => Ne(h.title),
|
|
4180
|
+
}, Ne = (t) => yn(`.${t}`), X = () => Ne(h.popup), bn = () => Ne(h.icon), Oi = () => Ne(h.title), Un = () => Ne(h["html-container"]), Li = () => Ne(h.image), $i = () => Ne(h["progress-steps"]), Wn = () => Ne(h["validation-message"]), We = () => yn(`.${h.actions} .${h.confirm}`), yt = () => yn(`.${h.actions} .${h.deny}`), pc = () => Ne(h["input-label"]), Bt = () => yn(`.${h.loader}`), It = () => yn(`.${h.actions} .${h.cancel}`), wn = () => Ne(h.actions), Mi = () => Ne(h.footer), Gn = () => Ne(h["timer-progress-bar"]), Ur = () => Ne(h.close), hc = `
|
|
4181
4181
|
a[href],
|
|
4182
4182
|
area[href],
|
|
4183
4183
|
input:not([disabled]),
|
|
@@ -4202,7 +4202,7 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
4202
4202
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
4203
4203
|
);
|
|
4204
4204
|
return rc(t.concat(e)).filter((n) => Oe(n));
|
|
4205
|
-
}, jr = () => lt(document.body, h.shown) && !lt(document.body, h["toast-shown"]) && !lt(document.body, h["no-backdrop"]),
|
|
4205
|
+
}, jr = () => lt(document.body, h.shown) && !lt(document.body, h["toast-shown"]) && !lt(document.body, h["no-backdrop"]), qn = () => X() && lt(X(), h.toast), gc = () => X().hasAttribute("data-loading"), Dt = {
|
|
4206
4206
|
previousBodyPadding: null
|
|
4207
4207
|
}, fe = (t, e) => {
|
|
4208
4208
|
if (t.textContent = "", e) {
|
|
@@ -4279,18 +4279,18 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
4279
4279
|
}, jo = (t, e, n, r) => {
|
|
4280
4280
|
const o = t.querySelector(e);
|
|
4281
4281
|
o && (o.style[n] = r);
|
|
4282
|
-
},
|
|
4282
|
+
}, Yn = (t, e, n) => {
|
|
4283
4283
|
e ? ae(t, n) : pe(t);
|
|
4284
4284
|
}, Oe = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), yc = () => !Oe(We()) && !Oe(yt()) && !Oe(It()), Vo = (t) => t.scrollHeight > t.clientHeight, Ni = (t) => {
|
|
4285
4285
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), r = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
4286
4286
|
return n > 0 || r > 0;
|
|
4287
4287
|
}, Fr = (t, e = !1) => {
|
|
4288
|
-
const n =
|
|
4288
|
+
const n = Gn();
|
|
4289
4289
|
Oe(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
4290
4290
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
4291
4291
|
}, 10));
|
|
4292
4292
|
}, bc = () => {
|
|
4293
|
-
const t =
|
|
4293
|
+
const t = Gn(), e = parseInt(window.getComputedStyle(t).width);
|
|
4294
4294
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
4295
4295
|
const n = parseInt(window.getComputedStyle(t).width), r = e / n * 100;
|
|
4296
4296
|
t.style.removeProperty("transition"), t.style.width = `${r}%`;
|
|
@@ -4400,15 +4400,15 @@ const Zl = { class: "panel-menu-wrapper" }, Jl = ["data-active", "href", "onClic
|
|
|
4400
4400
|
};
|
|
4401
4401
|
function Mc(t, e, n) {
|
|
4402
4402
|
const r = We(), o = yt(), i = It();
|
|
4403
|
-
|
|
4403
|
+
sr(r, "confirm", n), sr(o, "deny", n), sr(i, "cancel", n), Dc(r, o, i, n), n.reverseButtons && (n.toast ? (t.insertBefore(i, r), t.insertBefore(o, r)) : (t.insertBefore(i, e), t.insertBefore(o, e), t.insertBefore(r, e)));
|
|
4404
4404
|
}
|
|
4405
4405
|
function Dc(t, e, n, r) {
|
|
4406
4406
|
if (!r.buttonsStyling)
|
|
4407
4407
|
return et([t, e, n], h.styled);
|
|
4408
4408
|
G([t, e, n], h.styled), r.confirmButtonColor && (t.style.backgroundColor = r.confirmButtonColor, G(t, h["default-outline"])), r.denyButtonColor && (e.style.backgroundColor = r.denyButtonColor, G(e, h["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, G(n, h["default-outline"]));
|
|
4409
4409
|
}
|
|
4410
|
-
function
|
|
4411
|
-
|
|
4410
|
+
function sr(t, e, n) {
|
|
4411
|
+
Yn(t, n[`show${Rr(e)}Button`], "inline-block"), fe(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = h[e], De(t, n, `${e}Button`), G(t, n[`${e}ButtonClass`]);
|
|
4412
4412
|
}
|
|
4413
4413
|
function Rc(t, e) {
|
|
4414
4414
|
typeof e == "string" ? t.style.background = e : e || G([document.documentElement, document.body], h["no-backdrop"]);
|
|
@@ -4511,14 +4511,14 @@ Ie.textarea = (t, e) => {
|
|
|
4511
4511
|
}), t;
|
|
4512
4512
|
};
|
|
4513
4513
|
const Wc = (t, e) => {
|
|
4514
|
-
const n =
|
|
4514
|
+
const n = Un();
|
|
4515
4515
|
De(n, e, "htmlContainer"), e.html ? (Kr(e.html, n), ae(n, "block")) : e.text ? (n.textContent = e.text, ae(n, "block")) : pe(n), jc(t, e);
|
|
4516
4516
|
}, Gc = (t, e) => {
|
|
4517
4517
|
const n = Mi();
|
|
4518
|
-
|
|
4518
|
+
Yn(n, e.footer), e.footer && Kr(e.footer, n), De(n, e, "footer");
|
|
4519
4519
|
}, qc = (t, e) => {
|
|
4520
4520
|
const n = Ur();
|
|
4521
|
-
fe(n, e.closeButtonHtml), De(n, e, "closeButton"),
|
|
4521
|
+
fe(n, e.closeButtonHtml), De(n, e, "closeButton"), Yn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
4522
4522
|
}, Yc = (t, e) => {
|
|
4523
4523
|
const n = U.innerParams.get(t), r = bn();
|
|
4524
4524
|
if (n && e.icon === n.icon) {
|
|
@@ -4592,10 +4592,10 @@ const Wc = (t, e) => {
|
|
|
4592
4592
|
});
|
|
4593
4593
|
}, ou = (t, e) => {
|
|
4594
4594
|
const n = Oi();
|
|
4595
|
-
|
|
4595
|
+
Yn(n, e.title || e.titleText, "block"), e.title && Kr(e.title, n), e.titleText && (n.innerText = e.titleText), De(n, e, "title");
|
|
4596
4596
|
}, iu = (t, e) => {
|
|
4597
4597
|
const n = me(), r = X();
|
|
4598
|
-
e.toast ? (on(n, "width", e.width), r.style.width = "100%", r.insertBefore(Bt(), bn())) : on(r, "width", e.width), on(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), pe(
|
|
4598
|
+
e.toast ? (on(n, "width", e.width), r.style.width = "100%", r.insertBefore(Bt(), bn())) : on(r, "width", e.width), on(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), pe(Wn()), su(r, e);
|
|
4599
4599
|
}, su = (t, e) => {
|
|
4600
4600
|
t.className = `${h.popup} ${Oe(t) ? e.showClass.popup : ""}`, e.toast ? (G([document.documentElement, document.body], h["toast-shown"]), G(t, h.toast)) : G(t, h.modal), De(t, e, "popup"), typeof e.customClass == "string" && G(t, e.customClass), e.icon && G(t, h[`icon-${e.icon}`]);
|
|
4601
4601
|
}, Hi = (t, e) => {
|
|
@@ -4749,8 +4749,8 @@ const wu = () => {
|
|
|
4749
4749
|
const e = t.target, n = me();
|
|
4750
4750
|
return Tu(t) || Au(t) ? !1 : e === n || !Vo(n) && e.tagName !== "INPUT" && // #1603
|
|
4751
4751
|
e.tagName !== "TEXTAREA" && // #2266
|
|
4752
|
-
!(Vo(
|
|
4753
|
-
|
|
4752
|
+
!(Vo(Un()) && // #1944
|
|
4753
|
+
Un().contains(e));
|
|
4754
4754
|
}, Tu = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Au = (t) => t.touches && t.touches.length > 1, Pu = () => {
|
|
4755
4755
|
if (lt(document.body, h.iosfix)) {
|
|
4756
4756
|
const t = parseInt(document.body.style.top, 10);
|
|
@@ -4762,7 +4762,7 @@ const wu = () => {
|
|
|
4762
4762
|
const o = window.getComputedStyle(document.body).overflowY;
|
|
4763
4763
|
Lu(e, n, t), setTimeout(() => {
|
|
4764
4764
|
xu(e, n);
|
|
4765
|
-
}, Fi), jr() && (Ou(e, t.scrollbarPadding, o), au()), !
|
|
4765
|
+
}, Fi), jr() && (Ou(e, t.scrollbarPadding, o), au()), !qn() && !N.previousActiveElement && (N.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), et(e, h["no-transition"]);
|
|
4766
4766
|
}, Ki = (t) => {
|
|
4767
4767
|
const e = X();
|
|
4768
4768
|
if (t.target !== e)
|
|
@@ -4783,7 +4783,7 @@ const wu = () => {
|
|
|
4783
4783
|
let e = X();
|
|
4784
4784
|
e || new Nt(), e = X();
|
|
4785
4785
|
const n = Bt();
|
|
4786
|
-
|
|
4786
|
+
qn() ? pe(bn()) : $u(e, t), ae(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
4787
4787
|
}, $u = (t, e) => {
|
|
4788
4788
|
const n = wn(), r = Bt();
|
|
4789
4789
|
!e && Oe(We()) && (e = We()), ae(n), e && (pe(e), r.setAttribute("data-button-to-replace", e.className)), r.parentNode.insertBefore(r, e), G([t, n], h.loading);
|
|
@@ -4804,7 +4804,7 @@ const wu = () => {
|
|
|
4804
4804
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
4805
4805
|
}
|
|
4806
4806
|
}, Ru = (t) => t.checked ? 1 : 0, Nu = (t) => t.checked ? t.value : null, Bu = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Uu = (t, e) => {
|
|
4807
|
-
const n = X(), r = (o) => ju[e.input](n,
|
|
4807
|
+
const n = X(), r = (o) => ju[e.input](n, kr(o), e);
|
|
4808
4808
|
Nr(e.inputOptions) || Br(e.inputOptions) ? (Rt(We()), vn(e.inputOptions).then((o) => {
|
|
4809
4809
|
t.hideLoading(), r(o);
|
|
4810
4810
|
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : At(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
@@ -4841,14 +4841,14 @@ const wu = () => {
|
|
|
4841
4841
|
const o = r.querySelectorAll("input");
|
|
4842
4842
|
o.length && o[0].focus();
|
|
4843
4843
|
}
|
|
4844
|
-
},
|
|
4844
|
+
}, kr = (t) => {
|
|
4845
4845
|
const e = [];
|
|
4846
4846
|
return typeof Map < "u" && t instanceof Map ? t.forEach((n, r) => {
|
|
4847
4847
|
let o = n;
|
|
4848
|
-
typeof o == "object" && (o =
|
|
4848
|
+
typeof o == "object" && (o = kr(o)), e.push([r, o]);
|
|
4849
4849
|
}) : Object.keys(t).forEach((n) => {
|
|
4850
4850
|
let r = t[n];
|
|
4851
|
-
typeof r == "object" && (r =
|
|
4851
|
+
typeof r == "object" && (r = kr(r)), e.push([n, r]);
|
|
4852
4852
|
}), e;
|
|
4853
4853
|
}, Go = (t, e) => e && e.toString() === t.toString();
|
|
4854
4854
|
function qo() {
|
|
@@ -4856,7 +4856,7 @@ function qo() {
|
|
|
4856
4856
|
if (!t)
|
|
4857
4857
|
return;
|
|
4858
4858
|
const e = U.domCache.get(this);
|
|
4859
|
-
pe(e.loader),
|
|
4859
|
+
pe(e.loader), qn() ? t.icon && ae(bn()) : Vu(e), et([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;
|
|
4860
4860
|
}
|
|
4861
4861
|
const Vu = (t) => {
|
|
4862
4862
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -4877,7 +4877,7 @@ const hn = {
|
|
|
4877
4877
|
Wi(e), n.toast || (e.keydownHandler = (o) => Yu(t, o, r), e.keydownTarget = n.keydownListenerCapture ? window : X(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
4878
4878
|
capture: e.keydownListenerCapture
|
|
4879
4879
|
}), e.keydownHandlerAdded = !0);
|
|
4880
|
-
},
|
|
4880
|
+
}, Cr = (t, e, n) => {
|
|
4881
4881
|
const r = Hr();
|
|
4882
4882
|
if (r.length)
|
|
4883
4883
|
return e = e + n, e === r.length ? e = 0 : e === -1 && (e = r.length - 1), r[e].focus();
|
|
@@ -4886,7 +4886,7 @@ const hn = {
|
|
|
4886
4886
|
const r = U.innerParams.get(t);
|
|
4887
4887
|
r && (e.isComposing || e.keyCode === 229 || (r.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Xu(t, e, r) : e.key === "Tab" ? Zu(e, r) : [...Gi, ...qu].includes(e.key) ? Ju(e.key) : e.key === "Escape" && Qu(e, r, n)));
|
|
4888
4888
|
}, Xu = (t, e, n) => {
|
|
4889
|
-
if (
|
|
4889
|
+
if (zn(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
4890
4890
|
if (["textarea", "file"].includes(n.input))
|
|
4891
4891
|
return;
|
|
4892
4892
|
zi(), e.preventDefault();
|
|
@@ -4899,7 +4899,7 @@ const hn = {
|
|
|
4899
4899
|
o = i;
|
|
4900
4900
|
break;
|
|
4901
4901
|
}
|
|
4902
|
-
t.shiftKey ?
|
|
4902
|
+
t.shiftKey ? Cr(e, o, -1) : Cr(e, o, 1), t.stopPropagation(), t.preventDefault();
|
|
4903
4903
|
}, Ju = (t) => {
|
|
4904
4904
|
const e = We(), n = yt(), r = It();
|
|
4905
4905
|
if (![e, n, r].includes(document.activeElement))
|
|
@@ -4914,10 +4914,10 @@ const hn = {
|
|
|
4914
4914
|
}
|
|
4915
4915
|
i instanceof HTMLButtonElement && i.focus();
|
|
4916
4916
|
}, Qu = (t, e, n) => {
|
|
4917
|
-
|
|
4917
|
+
zn(e.allowEscapeKey) && (t.preventDefault(), n(Ut.esc));
|
|
4918
4918
|
};
|
|
4919
4919
|
function qi(t, e, n, r) {
|
|
4920
|
-
|
|
4920
|
+
qn() ? Yo(t, r) : (Sc(n).then(() => Yo(t, r)), Wi(N)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), jr() && (_u(), Pu(), ji()), ed();
|
|
4921
4921
|
}
|
|
4922
4922
|
function ed() {
|
|
4923
4923
|
et(
|
|
@@ -5058,8 +5058,8 @@ function gd() {
|
|
|
5058
5058
|
const vd = (t) => {
|
|
5059
5059
|
Zi(t), delete t.params, delete N.keydownHandler, delete N.keydownTarget, delete N.currentInstance;
|
|
5060
5060
|
}, Zi = (t) => {
|
|
5061
|
-
t.isAwaitingPromise() ? (
|
|
5062
|
-
},
|
|
5061
|
+
t.isAwaitingPromise() ? (ar(U, t), U.awaitingPromise.set(t, !0)) : (ar(hn, t), ar(U, t));
|
|
5062
|
+
}, ar = (t, e) => {
|
|
5063
5063
|
for (const n in t)
|
|
5064
5064
|
t[n].delete(e);
|
|
5065
5065
|
}, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5122,7 +5122,7 @@ const vd = (t) => {
|
|
|
5122
5122
|
n.showLoaderOnConfirm && Rt(), n.preConfirm ? (t.resetValidationMessage(), U.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
5123
5123
|
() => vn(n.preConfirm(e, n.validationMessage))
|
|
5124
5124
|
).then((o) => {
|
|
5125
|
-
Oe(
|
|
5125
|
+
Oe(Wn()) || o === !1 ? (t.hideLoading(), Sn(t)) : Xo(t, typeof o > "u" ? e : o);
|
|
5126
5126
|
}).catch((o) => es(t || void 0, o))) : Xo(t, e);
|
|
5127
5127
|
}, Sd = (t, e, n) => {
|
|
5128
5128
|
U.innerParams.get(t).toast ? kd(t, e, n) : (Id(e), Td(e), Ad(t, e, n));
|
|
@@ -5132,27 +5132,27 @@ const vd = (t) => {
|
|
|
5132
5132
|
r && (Cd(r) || r.timer || r.input) || n(Ut.close);
|
|
5133
5133
|
};
|
|
5134
5134
|
}, Cd = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
5135
|
-
let
|
|
5135
|
+
let Hn = !1;
|
|
5136
5136
|
const Id = (t) => {
|
|
5137
5137
|
t.popup.onmousedown = () => {
|
|
5138
5138
|
t.container.onmouseup = function(e) {
|
|
5139
|
-
t.container.onmouseup = void 0, e.target === t.container && (
|
|
5139
|
+
t.container.onmouseup = void 0, e.target === t.container && (Hn = !0);
|
|
5140
5140
|
};
|
|
5141
5141
|
};
|
|
5142
5142
|
}, Td = (t) => {
|
|
5143
5143
|
t.container.onmousedown = () => {
|
|
5144
5144
|
t.popup.onmouseup = function(e) {
|
|
5145
|
-
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (
|
|
5145
|
+
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (Hn = !0);
|
|
5146
5146
|
};
|
|
5147
5147
|
};
|
|
5148
5148
|
}, Ad = (t, e, n) => {
|
|
5149
5149
|
e.container.onclick = (r) => {
|
|
5150
5150
|
const o = U.innerParams.get(t);
|
|
5151
|
-
if (
|
|
5152
|
-
|
|
5151
|
+
if (Hn) {
|
|
5152
|
+
Hn = !1;
|
|
5153
5153
|
return;
|
|
5154
5154
|
}
|
|
5155
|
-
r.target === e.container &&
|
|
5155
|
+
r.target === e.container && zn(o.allowOutsideClick) && n(Ut.backdrop);
|
|
5156
5156
|
};
|
|
5157
5157
|
}, Pd = (t) => typeof t == "object" && t.jquery, Zo = (t) => t instanceof Element || Pd(t), Ed = (t) => {
|
|
5158
5158
|
const e = {};
|
|
@@ -5191,16 +5191,16 @@ const Ld = () => N.timeout && N.timeout.getTimerLeft(), ts = () => {
|
|
|
5191
5191
|
}
|
|
5192
5192
|
}, Dd = () => N.timeout && N.timeout.isRunning();
|
|
5193
5193
|
let Jo = !1;
|
|
5194
|
-
const
|
|
5194
|
+
const Ir = {};
|
|
5195
5195
|
function Rd(t = "data-swal-template") {
|
|
5196
|
-
|
|
5196
|
+
Ir[t] = this, Jo || (document.body.addEventListener("click", Nd), Jo = !0);
|
|
5197
5197
|
}
|
|
5198
5198
|
const Nd = (t) => {
|
|
5199
5199
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
5200
|
-
for (const n in
|
|
5200
|
+
for (const n in Ir) {
|
|
5201
5201
|
const r = e.getAttribute(n);
|
|
5202
5202
|
if (r) {
|
|
5203
|
-
|
|
5203
|
+
Ir[n].fire({ template: r });
|
|
5204
5204
|
return;
|
|
5205
5205
|
}
|
|
5206
5206
|
}
|
|
@@ -5221,18 +5221,18 @@ const Nd = (t) => {
|
|
|
5221
5221
|
getDenyButton: yt,
|
|
5222
5222
|
getFocusableElements: Hr,
|
|
5223
5223
|
getFooter: Mi,
|
|
5224
|
-
getHtmlContainer:
|
|
5224
|
+
getHtmlContainer: Un,
|
|
5225
5225
|
getIcon: bn,
|
|
5226
5226
|
getImage: Li,
|
|
5227
5227
|
getInputLabel: pc,
|
|
5228
5228
|
getLoader: Bt,
|
|
5229
5229
|
getPopup: X,
|
|
5230
5230
|
getTimerLeft: Ld,
|
|
5231
|
-
getTimerProgressBar:
|
|
5231
|
+
getTimerProgressBar: Gn,
|
|
5232
5232
|
getTitle: Oi,
|
|
5233
|
-
getValidationMessage:
|
|
5233
|
+
getValidationMessage: Wn,
|
|
5234
5234
|
increaseTimer: Md,
|
|
5235
|
-
isDeprecatedParameter:
|
|
5235
|
+
isDeprecatedParameter: Sr,
|
|
5236
5236
|
isLoading: gc,
|
|
5237
5237
|
isTimerRunning: Dd,
|
|
5238
5238
|
isUpdatableParameter: Ei,
|
|
@@ -5244,12 +5244,12 @@ const Nd = (t) => {
|
|
|
5244
5244
|
stopTimer: ts,
|
|
5245
5245
|
toggleTimer: $d
|
|
5246
5246
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5247
|
-
let
|
|
5247
|
+
let Tr;
|
|
5248
5248
|
class Ht {
|
|
5249
5249
|
constructor(...e) {
|
|
5250
5250
|
if (typeof window > "u")
|
|
5251
5251
|
return;
|
|
5252
|
-
|
|
5252
|
+
Tr = this;
|
|
5253
5253
|
const n = Object.freeze(this.constructor.argsToParams(e));
|
|
5254
5254
|
Object.defineProperties(this, {
|
|
5255
5255
|
params: {
|
|
@@ -5297,12 +5297,12 @@ const Ud = (t, e, n) => new Promise((r, o) => {
|
|
|
5297
5297
|
cancelButton: It(),
|
|
5298
5298
|
loader: Bt(),
|
|
5299
5299
|
closeButton: Ur(),
|
|
5300
|
-
validationMessage:
|
|
5300
|
+
validationMessage: Wn(),
|
|
5301
5301
|
progressSteps: $i()
|
|
5302
5302
|
};
|
|
5303
5303
|
return U.domCache.set(t, e), e;
|
|
5304
5304
|
}, Vd = (t, e, n) => {
|
|
5305
|
-
const r =
|
|
5305
|
+
const r = Gn();
|
|
5306
5306
|
pe(r), e.timer && (t.timeout = new bu(() => {
|
|
5307
5307
|
n("timer"), delete t.timeout;
|
|
5308
5308
|
}, e.timer), e.timerProgressBar && (ae(r), De(r, e, "timerProgressBar"), setTimeout(() => {
|
|
@@ -5310,9 +5310,9 @@ const Ud = (t, e, n) => new Promise((r, o) => {
|
|
|
5310
5310
|
})));
|
|
5311
5311
|
}, Fd = (t, e) => {
|
|
5312
5312
|
if (!e.toast) {
|
|
5313
|
-
if (!
|
|
5313
|
+
if (!zn(e.allowEnterKey))
|
|
5314
5314
|
return zd();
|
|
5315
|
-
Kd(t, e) ||
|
|
5315
|
+
Kd(t, e) || Cr(e, -1, 1);
|
|
5316
5316
|
}
|
|
5317
5317
|
}, Kd = (t, e) => e.focusDeny && Oe(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Oe(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Oe(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, zd = () => {
|
|
5318
5318
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
@@ -5321,8 +5321,8 @@ Object.assign(Ht.prototype, Ji);
|
|
|
5321
5321
|
Object.assign(Ht, Bd);
|
|
5322
5322
|
Object.keys(Ji).forEach((t) => {
|
|
5323
5323
|
Ht[t] = function(...e) {
|
|
5324
|
-
if (
|
|
5325
|
-
return
|
|
5324
|
+
if (Tr)
|
|
5325
|
+
return Tr[t](...e);
|
|
5326
5326
|
};
|
|
5327
5327
|
});
|
|
5328
5328
|
Ht.DismissReason = Ut;
|
|
@@ -5342,8 +5342,8 @@ let {
|
|
|
5342
5342
|
seal: Re,
|
|
5343
5343
|
create: os
|
|
5344
5344
|
} = Object, {
|
|
5345
|
-
apply:
|
|
5346
|
-
construct:
|
|
5345
|
+
apply: Ar,
|
|
5346
|
+
construct: Pr
|
|
5347
5347
|
} = typeof Reflect < "u" && Reflect;
|
|
5348
5348
|
we || (we = function(e) {
|
|
5349
5349
|
return e;
|
|
@@ -5351,25 +5351,25 @@ we || (we = function(e) {
|
|
|
5351
5351
|
Re || (Re = function(e) {
|
|
5352
5352
|
return e;
|
|
5353
5353
|
});
|
|
5354
|
-
|
|
5354
|
+
Ar || (Ar = function(e, n, r) {
|
|
5355
5355
|
return e.apply(n, r);
|
|
5356
5356
|
});
|
|
5357
|
-
|
|
5357
|
+
Pr || (Pr = function(e, n) {
|
|
5358
5358
|
return new e(...n);
|
|
5359
5359
|
});
|
|
5360
|
-
const On = $e(Array.prototype.forEach), ei = $e(Array.prototype.pop), Wt = $e(Array.prototype.push), Mn = $e(String.prototype.toLowerCase),
|
|
5360
|
+
const On = $e(Array.prototype.forEach), ei = $e(Array.prototype.pop), Wt = $e(Array.prototype.push), Mn = $e(String.prototype.toLowerCase), lr = $e(String.prototype.toString), ti = $e(String.prototype.match), Gt = $e(String.prototype.replace), Yd = $e(String.prototype.indexOf), Xd = $e(String.prototype.trim), Ve = $e(Object.prototype.hasOwnProperty), ge = $e(RegExp.prototype.test), qt = Zd(TypeError);
|
|
5361
5361
|
function $e(t) {
|
|
5362
5362
|
return function(e) {
|
|
5363
5363
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
5364
5364
|
r[o - 1] = arguments[o];
|
|
5365
|
-
return
|
|
5365
|
+
return Ar(t, e, r);
|
|
5366
5366
|
};
|
|
5367
5367
|
}
|
|
5368
5368
|
function Zd(t) {
|
|
5369
5369
|
return function() {
|
|
5370
5370
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
5371
5371
|
n[r] = arguments[r];
|
|
5372
|
-
return
|
|
5372
|
+
return Pr(t, n);
|
|
5373
5373
|
};
|
|
5374
5374
|
}
|
|
5375
5375
|
function V(t, e) {
|
|
@@ -5413,7 +5413,7 @@ function Yt(t, e) {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
return n;
|
|
5415
5415
|
}
|
|
5416
|
-
const ni = we(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
5416
|
+
const ni = we(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cr = we(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ur = we(["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"]), Qd = we(["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"]), dr = we(["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"]), ef = we(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ri = we(["#text"]), oi = we(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), fr = we(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ii = we(["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"]), Ln = we(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tf = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), nf = Re(/<%[\w\W]*|[\w\W]*%>/gm), rf = Re(/\${[\w\W]*}/gm), of = Re(/^data-[\-\w.\u00B7-\uFFFF]/), sf = Re(/^aria-[\-\w]+$/), is = Re(
|
|
5417
5417
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5418
5418
|
// eslint-disable-line no-useless-escape
|
|
5419
5419
|
), af = Re(/^(?:\w+script|data):/i), lf = Re(
|
|
@@ -5518,9 +5518,9 @@ function as() {
|
|
|
5518
5518
|
let {
|
|
5519
5519
|
IS_ALLOWED_URI: Me
|
|
5520
5520
|
} = si, c = null;
|
|
5521
|
-
const m = V({}, [...ni, ...
|
|
5521
|
+
const m = V({}, [...ni, ...cr, ...ur, ...dr, ...ri]);
|
|
5522
5522
|
let v = null;
|
|
5523
|
-
const S = V({}, [...oi, ...
|
|
5523
|
+
const S = V({}, [...oi, ...fr, ...ii, ...Ln]);
|
|
5524
5524
|
let g = Object.seal(os(null, {
|
|
5525
5525
|
tagNameCheck: {
|
|
5526
5526
|
writable: !0,
|
|
@@ -5542,24 +5542,24 @@ function as() {
|
|
|
5542
5542
|
}
|
|
5543
5543
|
})), T = null, b = null, w = !0, P = !0, A = !1, R = !0, H = !1, ke = !0, le = !1, ce = !1, nt = !1, Pt = !1, kn = !1, Cn = !1, qr = !0, Yr = !1;
|
|
5544
5544
|
const ps = "user-content-";
|
|
5545
|
-
let
|
|
5545
|
+
let Xn = !0, jt = !1, Et = {}, xt = null;
|
|
5546
5546
|
const Xr = V({}, ["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"]);
|
|
5547
5547
|
let Zr = null;
|
|
5548
5548
|
const Jr = V({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
5549
|
-
let
|
|
5549
|
+
let Zn = null;
|
|
5550
5550
|
const Qr = V({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), In = "http://www.w3.org/1998/Math/MathML", Tn = "http://www.w3.org/2000/svg", rt = "http://www.w3.org/1999/xhtml";
|
|
5551
|
-
let Ot = rt,
|
|
5552
|
-
const hs = V({}, [In, Tn, rt],
|
|
5551
|
+
let Ot = rt, Jn = !1, Qn = null;
|
|
5552
|
+
const hs = V({}, [In, Tn, rt], lr);
|
|
5553
5553
|
let Vt = null;
|
|
5554
5554
|
const gs = ["application/xhtml+xml", "text/html"], vs = "text/html";
|
|
5555
5555
|
let oe = null, Lt = null;
|
|
5556
5556
|
const ys = n.createElement("form"), eo = function(d) {
|
|
5557
5557
|
return d instanceof RegExp || d instanceof Function;
|
|
5558
|
-
},
|
|
5558
|
+
}, er = function() {
|
|
5559
5559
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5560
5560
|
if (!(Lt && Lt === d)) {
|
|
5561
5561
|
if ((!d || typeof d != "object") && (d = {}), d = _t(d), Vt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5562
|
-
gs.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? vs : d.PARSER_MEDIA_TYPE, oe = Vt === "application/xhtml+xml" ?
|
|
5562
|
+
gs.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? vs : d.PARSER_MEDIA_TYPE, oe = Vt === "application/xhtml+xml" ? lr : Mn, c = Ve(d, "ALLOWED_TAGS") ? V({}, d.ALLOWED_TAGS, oe) : m, v = Ve(d, "ALLOWED_ATTR") ? V({}, d.ALLOWED_ATTR, oe) : S, Qn = Ve(d, "ALLOWED_NAMESPACES") ? V({}, d.ALLOWED_NAMESPACES, lr) : hs, Zn = Ve(d, "ADD_URI_SAFE_ATTR") ? V(
|
|
5563
5563
|
_t(Qr),
|
|
5564
5564
|
// eslint-disable-line indent
|
|
5565
5565
|
d.ADD_URI_SAFE_ATTR,
|
|
@@ -5573,7 +5573,7 @@ function as() {
|
|
|
5573
5573
|
// eslint-disable-line indent
|
|
5574
5574
|
oe
|
|
5575
5575
|
// eslint-disable-line indent
|
|
5576
|
-
) : Jr, xt = Ve(d, "FORBID_CONTENTS") ? V({}, d.FORBID_CONTENTS, oe) : Xr, T = Ve(d, "FORBID_TAGS") ? V({}, d.FORBID_TAGS, oe) : {}, b = Ve(d, "FORBID_ATTR") ? V({}, d.FORBID_ATTR, oe) : {}, Et = Ve(d, "USE_PROFILES") ? d.USE_PROFILES : !1, w = d.ALLOW_ARIA_ATTR !== !1, P = d.ALLOW_DATA_ATTR !== !1, A = d.ALLOW_UNKNOWN_PROTOCOLS || !1, R = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = d.SAFE_FOR_TEMPLATES || !1, ke = d.SAFE_FOR_XML !== !1, le = d.WHOLE_DOCUMENT || !1, Pt = d.RETURN_DOM || !1, kn = d.RETURN_DOM_FRAGMENT || !1, Cn = d.RETURN_TRUSTED_TYPE || !1, nt = d.FORCE_BODY || !1, qr = d.SANITIZE_DOM !== !1, Yr = d.SANITIZE_NAMED_PROPS || !1,
|
|
5576
|
+
) : Jr, xt = Ve(d, "FORBID_CONTENTS") ? V({}, d.FORBID_CONTENTS, oe) : Xr, T = Ve(d, "FORBID_TAGS") ? V({}, d.FORBID_TAGS, oe) : {}, b = Ve(d, "FORBID_ATTR") ? V({}, d.FORBID_ATTR, oe) : {}, Et = Ve(d, "USE_PROFILES") ? d.USE_PROFILES : !1, w = d.ALLOW_ARIA_ATTR !== !1, P = d.ALLOW_DATA_ATTR !== !1, A = d.ALLOW_UNKNOWN_PROTOCOLS || !1, R = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = d.SAFE_FOR_TEMPLATES || !1, ke = d.SAFE_FOR_XML !== !1, le = d.WHOLE_DOCUMENT || !1, Pt = d.RETURN_DOM || !1, kn = d.RETURN_DOM_FRAGMENT || !1, Cn = d.RETURN_TRUSTED_TYPE || !1, nt = d.FORCE_BODY || !1, qr = d.SANITIZE_DOM !== !1, Yr = d.SANITIZE_NAMED_PROPS || !1, Xn = d.KEEP_CONTENT !== !1, jt = d.IN_PLACE || !1, Me = d.ALLOWED_URI_REGEXP || is, Ot = d.NAMESPACE || rt, g = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && eo(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (g.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && eo(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (g.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (g.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (P = !1), kn && (Pt = !0), Et && (c = V({}, ri), v = [], Et.html === !0 && (V(c, ni), V(v, oi)), Et.svg === !0 && (V(c, cr), V(v, fr), V(v, Ln)), Et.svgFilters === !0 && (V(c, ur), V(v, fr), V(v, Ln)), Et.mathMl === !0 && (V(c, dr), V(v, ii), V(v, Ln))), d.ADD_TAGS && (c === m && (c = _t(c)), V(c, d.ADD_TAGS, oe)), d.ADD_ATTR && (v === S && (v = _t(v)), V(v, d.ADD_ATTR, oe)), d.ADD_URI_SAFE_ATTR && V(Zn, d.ADD_URI_SAFE_ATTR, oe), d.FORBID_CONTENTS && (xt === Xr && (xt = _t(xt)), V(xt, d.FORBID_CONTENTS, oe)), Xn && (c["#text"] = !0), le && V(c, ["html", "head", "body"]), c.table && (V(c, ["tbody"]), delete T.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
5577
5577
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5578
5578
|
throw qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5579
5579
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -5583,14 +5583,14 @@ function as() {
|
|
|
5583
5583
|
K === void 0 && (K = df(k, o)), K !== null && typeof ee == "string" && (ee = K.createHTML(""));
|
|
5584
5584
|
we && we(d), Lt = d;
|
|
5585
5585
|
}
|
|
5586
|
-
}, to = V({}, ["mi", "mo", "mn", "ms", "mtext"]), no = V({}, ["foreignobject", "annotation-xml"]), bs = V({}, ["title", "style", "font", "a", "script"]), ro = V({}, [...
|
|
5586
|
+
}, to = V({}, ["mi", "mo", "mn", "ms", "mtext"]), no = V({}, ["foreignobject", "annotation-xml"]), bs = V({}, ["title", "style", "font", "a", "script"]), ro = V({}, [...cr, ...ur, ...Qd]), oo = V({}, [...dr, ...ef]), ws = function(d) {
|
|
5587
5587
|
let _ = D(d);
|
|
5588
5588
|
(!_ || !_.tagName) && (_ = {
|
|
5589
5589
|
namespaceURI: Ot,
|
|
5590
5590
|
tagName: "template"
|
|
5591
5591
|
});
|
|
5592
5592
|
const x = Mn(d.tagName), J = Mn(_.tagName);
|
|
5593
|
-
return
|
|
5593
|
+
return Qn[d.namespaceURI] ? d.namespaceURI === Tn ? _.namespaceURI === rt ? x === "svg" : _.namespaceURI === In ? x === "svg" && (J === "annotation-xml" || to[J]) : !!ro[x] : d.namespaceURI === In ? _.namespaceURI === rt ? x === "math" : _.namespaceURI === Tn ? x === "math" && no[J] : !!oo[x] : d.namespaceURI === rt ? _.namespaceURI === Tn && !no[J] || _.namespaceURI === In && !to[J] ? !1 : !oo[x] && (bs[x] || !ro[x]) : !!(Vt === "application/xhtml+xml" && Qn[d.namespaceURI]) : !1;
|
|
5594
5594
|
}, Xe = function(d) {
|
|
5595
5595
|
Wt(e.removed, {
|
|
5596
5596
|
element: d
|
|
@@ -5641,7 +5641,7 @@ function as() {
|
|
|
5641
5641
|
if (!_ || !_.documentElement) {
|
|
5642
5642
|
_ = _e.createDocument(Ot, "template", null);
|
|
5643
5643
|
try {
|
|
5644
|
-
_.documentElement.innerHTML =
|
|
5644
|
+
_.documentElement.innerHTML = Jn ? ee : J;
|
|
5645
5645
|
} catch {
|
|
5646
5646
|
}
|
|
5647
5647
|
}
|
|
@@ -5676,7 +5676,7 @@ function as() {
|
|
|
5676
5676
|
if (!c[x] || T[x]) {
|
|
5677
5677
|
if (!T[x] && fo(x) && (g.tagNameCheck instanceof RegExp && ge(g.tagNameCheck, x) || g.tagNameCheck instanceof Function && g.tagNameCheck(x)))
|
|
5678
5678
|
return !1;
|
|
5679
|
-
if (
|
|
5679
|
+
if (Xn && !xt[x]) {
|
|
5680
5680
|
const J = D(d) || d.parentNode, ue = C(d) || d.childNodes;
|
|
5681
5681
|
if (ue && J) {
|
|
5682
5682
|
const ie = ue.length;
|
|
@@ -5707,7 +5707,7 @@ function as() {
|
|
|
5707
5707
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
5708
5708
|
_ === "is" && g.allowCustomizedBuiltInElements && (g.tagNameCheck instanceof RegExp && ge(g.tagNameCheck, x) || g.tagNameCheck instanceof Function && g.tagNameCheck(x)))
|
|
5709
5709
|
) return !1;
|
|
5710
|
-
} else if (!
|
|
5710
|
+
} else if (!Zn[_]) {
|
|
5711
5711
|
if (!ge(Me, Gt(x, Ye, ""))) {
|
|
5712
5712
|
if (!((_ === "src" || _ === "xlink:href" || _ === "href") && d !== "script" && Yd(x, "data:") === 0 && Zr[d])) {
|
|
5713
5713
|
if (!(A && !ge(qe, Gt(x, Ye, "")))) {
|
|
@@ -5785,7 +5785,7 @@ function as() {
|
|
|
5785
5785
|
};
|
|
5786
5786
|
return e.sanitize = function(O) {
|
|
5787
5787
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, x = null, J = null, ue = null;
|
|
5788
|
-
if (
|
|
5788
|
+
if (Jn = !O, Jn && (O = "<!-->"), typeof O != "string" && !lo(O))
|
|
5789
5789
|
if (typeof O.toString == "function") {
|
|
5790
5790
|
if (O = O.toString(), typeof O != "string")
|
|
5791
5791
|
throw qt("dirty is not a string, aborting");
|
|
@@ -5793,7 +5793,7 @@ function as() {
|
|
|
5793
5793
|
throw qt("toString is not a function");
|
|
5794
5794
|
if (!e.isSupported)
|
|
5795
5795
|
return O;
|
|
5796
|
-
if (ce ||
|
|
5796
|
+
if (ce || er(d), e.removed = [], typeof O == "string" && (jt = !1), jt) {
|
|
5797
5797
|
if (O.nodeName) {
|
|
5798
5798
|
const Ze = oe(O.nodeName);
|
|
5799
5799
|
if (!c[Ze] || T[Ze])
|
|
@@ -5829,11 +5829,11 @@ function as() {
|
|
|
5829
5829
|
}), K && Cn ? K.createHTML(Ce) : Ce;
|
|
5830
5830
|
}, e.setConfig = function() {
|
|
5831
5831
|
let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5832
|
-
|
|
5832
|
+
er(O), ce = !0;
|
|
5833
5833
|
}, e.clearConfig = function() {
|
|
5834
5834
|
Lt = null, ce = !1;
|
|
5835
5835
|
}, e.isValidAttribute = function(O, d, _) {
|
|
5836
|
-
Lt ||
|
|
5836
|
+
Lt || er({});
|
|
5837
5837
|
const x = oe(O), J = oe(d);
|
|
5838
5838
|
return uo(x, J, _);
|
|
5839
5839
|
}, e.addHook = function(O, d) {
|
|
@@ -5936,7 +5936,7 @@ function hf(t, e) {
|
|
|
5936
5936
|
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
5937
5937
|
}
|
|
5938
5938
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5939
|
-
const
|
|
5939
|
+
const mr = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), Je = (t, e) => t << 32 - e | t >>> e;
|
|
5940
5940
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
5941
5941
|
function gf(t) {
|
|
5942
5942
|
if (typeof t != "string")
|
|
@@ -5965,7 +5965,7 @@ function bf(t, e, n, r) {
|
|
|
5965
5965
|
const wf = (t, e, n) => t & e ^ ~t & n, _f = (t, e, n) => t & e ^ t & n ^ e & n;
|
|
5966
5966
|
class Sf extends vf {
|
|
5967
5967
|
constructor(e, n, r, o) {
|
|
5968
|
-
super(), this.blockLen = e, this.outputLen = n, this.padOffset = r, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view =
|
|
5968
|
+
super(), this.blockLen = e, this.outputLen = n, this.padOffset = r, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = mr(this.buffer);
|
|
5969
5969
|
}
|
|
5970
5970
|
update(e) {
|
|
5971
5971
|
ai(this);
|
|
@@ -5975,7 +5975,7 @@ class Sf extends vf {
|
|
|
5975
5975
|
for (let l = 0; l < i; ) {
|
|
5976
5976
|
const s = Math.min(o - this.pos, i - l);
|
|
5977
5977
|
if (s === o) {
|
|
5978
|
-
const a =
|
|
5978
|
+
const a = mr(e);
|
|
5979
5979
|
for (; o <= i - l; l += o)
|
|
5980
5980
|
this.process(a, l);
|
|
5981
5981
|
continue;
|
|
@@ -5992,7 +5992,7 @@ class Sf extends vf {
|
|
|
5992
5992
|
for (let p = l; p < o; p++)
|
|
5993
5993
|
n[p] = 0;
|
|
5994
5994
|
bf(r, o - 8, BigInt(this.length * 8), i), this.process(r, 0);
|
|
5995
|
-
const s =
|
|
5995
|
+
const s = mr(e), a = this.outputLen;
|
|
5996
5996
|
if (a % 4)
|
|
5997
5997
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
5998
5998
|
const u = a / 4, f = this.get();
|
|
@@ -6151,7 +6151,7 @@ function Af(t) {
|
|
|
6151
6151
|
return atob(e);
|
|
6152
6152
|
}
|
|
6153
6153
|
}
|
|
6154
|
-
function
|
|
6154
|
+
function pr(t, e) {
|
|
6155
6155
|
if (typeof t != "string")
|
|
6156
6156
|
throw new en("Invalid token specified: must be a string");
|
|
6157
6157
|
e || (e = {});
|
|
@@ -6648,8 +6648,8 @@ function fs(t) {
|
|
|
6648
6648
|
return c.status == 0 && c.responseText && c.responseURL.startsWith("file:");
|
|
6649
6649
|
}
|
|
6650
6650
|
function ee(c, m, v, S) {
|
|
6651
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), m ? (e.refreshToken = m, e.refreshTokenParsed =
|
|
6652
|
-
if (e.token = c, e.tokenParsed =
|
|
6651
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), m ? (e.refreshToken = m, e.refreshTokenParsed = pr(m)) : (delete e.refreshToken, delete e.refreshTokenParsed), v ? (e.idToken = v, e.idTokenParsed = pr(v)) : (delete e.idToken, delete e.idTokenParsed), c) {
|
|
6652
|
+
if (e.token = c, e.tokenParsed = pr(c), e.sessionId = e.tokenParsed.sid, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, S && (e.timeSkew = Math.floor(S / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (u(
|
|
6653
6653
|
"[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"
|
|
6654
6654
|
), e.onTokenExpired)) {
|
|
6655
6655
|
var g = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
@@ -7189,7 +7189,7 @@ class Kf {
|
|
|
7189
7189
|
e.forEach((n) => this.WithError(n));
|
|
7190
7190
|
}
|
|
7191
7191
|
}
|
|
7192
|
-
class
|
|
7192
|
+
class Dn {
|
|
7193
7193
|
/**
|
|
7194
7194
|
* https://www.w3.org/TR/mediaqueries-4/#valdef-media-pointer-coarse
|
|
7195
7195
|
* The primary input mechanism of the device includes a pointing device of limited accuracy. Examples include touchscreens and motion-detection sensors (like the Kinect peripheral for the Xbox.)
|
|
@@ -7239,14 +7239,17 @@ class Pr {
|
|
|
7239
7239
|
return n.replace(/#/g, () => o[r++] || "");
|
|
7240
7240
|
}
|
|
7241
7241
|
static MaskCpf(e) {
|
|
7242
|
-
return
|
|
7242
|
+
return Dn.Mask(e.padStart(11, "0"), "###.###.###-##");
|
|
7243
7243
|
}
|
|
7244
7244
|
static MaskCnpj(e) {
|
|
7245
|
-
return
|
|
7245
|
+
return Dn.Mask(
|
|
7246
7246
|
e.padStart(14, "0"),
|
|
7247
7247
|
"##.###.###/####-##"
|
|
7248
7248
|
);
|
|
7249
7249
|
}
|
|
7250
|
+
static MaskCcm(e) {
|
|
7251
|
+
return Dn.Mask(e.padStart(8, "0"), "#.###.###-#");
|
|
7252
|
+
}
|
|
7250
7253
|
/**
|
|
7251
7254
|
* Pausa a execução do código por um determinado tempo, em milissegundos.
|
|
7252
7255
|
* @example await Utilities.DelayAsync(1000)
|
|
@@ -7287,7 +7290,7 @@ export {
|
|
|
7287
7290
|
Rf as SfButton,
|
|
7288
7291
|
Mf as SfContent,
|
|
7289
7292
|
Nf as SfDrawer,
|
|
7290
|
-
|
|
7293
|
+
vr as SfIcon,
|
|
7291
7294
|
$f as SfLayout,
|
|
7292
7295
|
Bf as SfMessage,
|
|
7293
7296
|
Uf as SfNavMenu,
|
|
@@ -7298,6 +7301,6 @@ export {
|
|
|
7298
7301
|
Ff as UseAuth,
|
|
7299
7302
|
jf as UseConfirmService,
|
|
7300
7303
|
ui as UseNavMenuService,
|
|
7301
|
-
|
|
7304
|
+
Dn as Utilities
|
|
7302
7305
|
};
|
|
7303
7306
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.js.map
|