@luizleon/sf.prefeiturasp.vuecomponents 5.0.3 → 5.0.5
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 +215 -219
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +12 -12
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/layout/FontSize.vue.d.ts.map +1 -1
- package/dist/types/components/layout/Main.vue.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Us = Object.defineProperty;
|
|
2
2
|
var Hs = (t, e, n) => e in t ? Us(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var ze = (t, e, n) => Hs(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { openBlock as $, createElementBlock as H, createElementVNode as M, defineComponent as Ve, onBeforeUnmount as vi, unref as oe, renderSlot as fe, computed as Ie, createBlock as ce, resolveDynamicComponent as yt, normalizeClass as Q, withCtx as It, normalizeStyle as Tt, Fragment as
|
|
4
|
+
import { openBlock as $, createElementBlock as H, createElementVNode as M, defineComponent as Ve, onBeforeUnmount as vi, unref as oe, renderSlot as fe, computed as Ie, createBlock as ce, resolveDynamicComponent as yt, normalizeClass as Q, withCtx as It, normalizeStyle as Tt, Fragment as rt, mergeProps as W, toDisplayString as Me, createCommentVNode as se, ref as ie, onMounted as xt, createVNode as De, resolveComponent as _n, renderList as $r, useSlots as js, watch as dn, Teleport as Fs, withModifiers as wr, Transition as Mr, normalizeProps as ir, guardReactiveProps as sr, readonly as Vs, getCurrentInstance as Dr, nextTick as wi, resolveDirective as Ks, withDirectives as _r, vShow as _i, getCurrentScope as zs, onScopeDispose as Ws, toValue as Si, inject as Gs, onBeforeMount as qs, createTextVNode as ko, watchEffect as Ys } from "vue";
|
|
5
5
|
import { useRouter as Xs } from "vue-router";
|
|
6
6
|
const Ft = (t, e) => {
|
|
7
7
|
const n = t.__vccOpts || t;
|
|
@@ -176,7 +176,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
176
176
|
style: Tt(n.style),
|
|
177
177
|
class: Q(i.value)
|
|
178
178
|
}, [
|
|
179
|
-
n.loading ? ($(), ce(ki, { key: 0 })) : ($(), H(
|
|
179
|
+
n.loading ? ($(), ce(ki, { key: 0 })) : ($(), H(rt, { key: 1 }, [
|
|
180
180
|
M("button", W({
|
|
181
181
|
class: [
|
|
182
182
|
"material-symbols-outlined",
|
|
@@ -186,7 +186,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
186
186
|
"data-p-loading": n.loading
|
|
187
187
|
}, n.buttonProps, {
|
|
188
188
|
tabindex: n.button ? void 0 : -1
|
|
189
|
-
}),
|
|
189
|
+
}), Me(n.icon), 17, ta),
|
|
190
190
|
n.dot ? ($(), H("span", {
|
|
191
191
|
key: 0,
|
|
192
192
|
"data-color": n.dotColor
|
|
@@ -197,7 +197,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
197
197
|
_: 1
|
|
198
198
|
}, 8, ["text", "class"]));
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), ct = /* @__PURE__ */ Ft(ra, [["__scopeId", "data-v-77b83510"]]), oa = /* @__PURE__ */ Ve({
|
|
201
201
|
__name: "ScrollToTop",
|
|
202
202
|
setup(t) {
|
|
203
203
|
const e = ie(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
@@ -252,7 +252,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
252
252
|
class: Q(r())
|
|
253
253
|
}, [
|
|
254
254
|
fe(a.$slots, "default"),
|
|
255
|
-
|
|
255
|
+
De(oa)
|
|
256
256
|
], 2),
|
|
257
257
|
M("div", {
|
|
258
258
|
class: Q(i())
|
|
@@ -315,7 +315,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
315
315
|
ref_key: "trackerContainer",
|
|
316
316
|
ref: n
|
|
317
317
|
}, [
|
|
318
|
-
($(!0), H(
|
|
318
|
+
($(!0), H(rt, null, $r(e.tabs, (m) => ($(), ce(d, {
|
|
319
319
|
to: m.route,
|
|
320
320
|
custom: !0
|
|
321
321
|
}, {
|
|
@@ -330,7 +330,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
330
330
|
href: m.route,
|
|
331
331
|
class: Q({ active: w }),
|
|
332
332
|
onClick: g
|
|
333
|
-
},
|
|
333
|
+
}, Me(m.text), 11, aa)
|
|
334
334
|
])
|
|
335
335
|
], 8, sa)
|
|
336
336
|
]),
|
|
@@ -401,14 +401,14 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
401
401
|
"data-p-loading": n.loading,
|
|
402
402
|
onClick: o
|
|
403
403
|
}, [
|
|
404
|
-
n.loading ? ($(), ce(
|
|
404
|
+
n.loading ? ($(), ce(ct, {
|
|
405
405
|
key: 0,
|
|
406
406
|
loading: !0,
|
|
407
407
|
size: n.size,
|
|
408
408
|
"button-props": { tabindex: -1 },
|
|
409
409
|
class: Q("icon-loading")
|
|
410
410
|
}, null, 8, ["size"])) : se("", !0),
|
|
411
|
-
n.icon ? ($(), ce(
|
|
411
|
+
n.icon ? ($(), ce(ct, {
|
|
412
412
|
key: 1,
|
|
413
413
|
icon: n.icon,
|
|
414
414
|
size: n.size,
|
|
@@ -487,7 +487,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
487
487
|
style: Tt({ zIndex: s.value - 1 }),
|
|
488
488
|
onClick: wr(d, ["stop"])
|
|
489
489
|
}, [
|
|
490
|
-
|
|
490
|
+
De(Mr, {
|
|
491
491
|
name: "sf-drawer",
|
|
492
492
|
appear: "",
|
|
493
493
|
onBeforeEnter: w,
|
|
@@ -507,12 +507,12 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
507
507
|
class: Q(["sf-drawer-header", { unstyled: n.unstyledHeader }])
|
|
508
508
|
}, [
|
|
509
509
|
fe(v.$slots, "title", {}, () => [
|
|
510
|
-
M("div", ca,
|
|
510
|
+
M("div", ca, Me(n.title), 1)
|
|
511
511
|
]),
|
|
512
512
|
S[0] || (S[0] = M("div", { class: "sf-drawer-spacer" }, null, -1)),
|
|
513
513
|
fe(v.$slots, "action", ir(sr({ Close: c })), () => [
|
|
514
514
|
M("div", da, [
|
|
515
|
-
|
|
515
|
+
De(ct, {
|
|
516
516
|
button: !0,
|
|
517
517
|
icon: "close",
|
|
518
518
|
onClick: c
|
|
@@ -763,11 +763,11 @@ function vt(t, e = !0) {
|
|
|
763
763
|
function Re(t, ...e) {
|
|
764
764
|
return Br(t) ? t(...e) : t;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Le(t, e = !0) {
|
|
767
767
|
return typeof t == "string" && (e || t !== "");
|
|
768
768
|
}
|
|
769
769
|
function Ye(t) {
|
|
770
|
-
return
|
|
770
|
+
return Le(t) ? t.replace(/(-|_)/g, "").toLowerCase() : t;
|
|
771
771
|
}
|
|
772
772
|
function Nr(t, e = "", n = {}) {
|
|
773
773
|
const r = Ye(e).split("."), o = r.shift();
|
|
@@ -793,13 +793,13 @@ function ln(t) {
|
|
|
793
793
|
return t && t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":");
|
|
794
794
|
}
|
|
795
795
|
function Ca(t) {
|
|
796
|
-
return
|
|
796
|
+
return Le(t, !1) ? t[0].toUpperCase() + t.slice(1) : t;
|
|
797
797
|
}
|
|
798
798
|
function Ti(t) {
|
|
799
|
-
return
|
|
799
|
+
return Le(t) ? t.replace(/(_)/g, "-").replace(/[A-Z]/g, (e, n) => n === 0 ? e : "-" + e.toLowerCase()).toLowerCase() : t;
|
|
800
800
|
}
|
|
801
801
|
function Ao(t) {
|
|
802
|
-
return
|
|
802
|
+
return Le(t) ? t.replace(/[A-Z]/g, (e, n) => n === 0 ? e : "." + e.toLowerCase()).toLowerCase() : t;
|
|
803
803
|
}
|
|
804
804
|
var $n = {};
|
|
805
805
|
function Ia(t = "pui_id_") {
|
|
@@ -824,7 +824,7 @@ var Ta = Object.defineProperty, Aa = Object.defineProperties, Pa = Object.getOwn
|
|
|
824
824
|
for (var r of Kn(t))
|
|
825
825
|
e.indexOf(r) < 0 && Pi.call(t, r) && (n[r] = t[r]);
|
|
826
826
|
return n;
|
|
827
|
-
}, Ea = Ci(),
|
|
827
|
+
}, Ea = Ci(), ut = Ea;
|
|
828
828
|
function Eo(t, e) {
|
|
829
829
|
Ur(t) ? t.push(...e || []) : vt(t) && Object.assign(t, e);
|
|
830
830
|
}
|
|
@@ -838,13 +838,13 @@ function La(t) {
|
|
|
838
838
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
839
839
|
}
|
|
840
840
|
function kr(t = "", e = "") {
|
|
841
|
-
return La(`${
|
|
841
|
+
return La(`${Le(t, !1) && Le(e, !1) ? `${t}-` : t}${e}`);
|
|
842
842
|
}
|
|
843
843
|
function Ei(t = "", e = "") {
|
|
844
844
|
return `--${kr(t, e)}`;
|
|
845
845
|
}
|
|
846
846
|
function xi(t, e = "", n = "", r = [], o) {
|
|
847
|
-
if (
|
|
847
|
+
if (Le(t)) {
|
|
848
848
|
const i = /{([^}]*)}/g, a = t.trim();
|
|
849
849
|
if (ft(a, i)) {
|
|
850
850
|
const s = a.replaceAll(i, (d) => {
|
|
@@ -858,7 +858,7 @@ function xi(t, e = "", n = "", r = [], o) {
|
|
|
858
858
|
return xo(t, e);
|
|
859
859
|
}
|
|
860
860
|
function Oa(t, e, n) {
|
|
861
|
-
|
|
861
|
+
Le(e, !1) && t.push(`${e}:${n};`);
|
|
862
862
|
}
|
|
863
863
|
function sn(t, e) {
|
|
864
864
|
return t ? `${t}{${e}}` : "";
|
|
@@ -939,10 +939,10 @@ var We = {
|
|
|
939
939
|
const { preset: c, options: d } = e;
|
|
940
940
|
let m, g, w, k;
|
|
941
941
|
if (ee(c)) {
|
|
942
|
-
const { primitive: A, semantic: E } = c, v = E || {}, { colorScheme: S } = v, R = Xt(v, ["colorScheme"]), U = S || {}, { dark: Y } = U, pe = Xt(U, ["dark"]), ae = ee(A) ? this._toVariables({ primitive: A }, d) : {},
|
|
942
|
+
const { primitive: A, semantic: E } = c, v = E || {}, { colorScheme: S } = v, R = Xt(v, ["colorScheme"]), U = S || {}, { dark: Y } = U, pe = Xt(U, ["dark"]), ae = ee(A) ? this._toVariables({ primitive: A }, d) : {}, $e = ee(R) ? this._toVariables({ semantic: R }, d) : {}, le = ee(pe) ? this._toVariables({ light: pe }, d) : {}, X = ee(Y) ? this._toVariables({ dark: Y }, d) : {}, [B, J] = [(i = ae.declarations) != null ? i : "", ae.tokens], [he, ge] = [(a = $e.declarations) != null ? a : "", $e.tokens || []], [Ze, it] = [(s = le.declarations) != null ? s : "", le.tokens || []], [Je, Qe] = [(l = X.declarations) != null ? l : "", X.tokens || []];
|
|
943
943
|
m = this.transformCSS(t, B, "light", "variable", d, r, o), g = J;
|
|
944
|
-
const _t = this.transformCSS(t, `${he}${
|
|
945
|
-
w = `${_t}${He}`, k = [.../* @__PURE__ */ new Set([...ge, ...
|
|
944
|
+
const _t = this.transformCSS(t, `${he}${Ze}color-scheme:light`, "light", "variable", d, r, o), He = this.transformCSS(t, `${Je}color-scheme:dark`, "dark", "variable", d, r, o);
|
|
945
|
+
w = `${_t}${He}`, k = [.../* @__PURE__ */ new Set([...ge, ...it, ...Qe])];
|
|
946
946
|
}
|
|
947
947
|
return {
|
|
948
948
|
primitive: {
|
|
@@ -957,7 +957,7 @@ var We = {
|
|
|
957
957
|
},
|
|
958
958
|
getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: i, selector: a }) {
|
|
959
959
|
var s, l, c;
|
|
960
|
-
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Xt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, E = Xt(k, ["dark"]), v = ee(w) ? this._toVariables({ [d]: w }, n) : {}, S = ee(E) ? this._toVariables({ [d]: E }, n) : {}, R = ee(A) ? this._toVariables({ [d]: A }, n) : {}, [U, Y] = [(s = v.declarations) != null ? s : "", v.tokens || []], [pe, ae] = [(l = S.declarations) != null ? l : "", S.tokens || []], [
|
|
960
|
+
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Xt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, E = Xt(k, ["dark"]), v = ee(w) ? this._toVariables({ [d]: w }, n) : {}, S = ee(E) ? this._toVariables({ [d]: E }, n) : {}, R = ee(A) ? this._toVariables({ [d]: A }, n) : {}, [U, Y] = [(s = v.declarations) != null ? s : "", v.tokens || []], [pe, ae] = [(l = S.declarations) != null ? l : "", S.tokens || []], [$e, le] = [(c = R.declarations) != null ? c : "", R.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...ae, ...le])], B = this.transformCSS(d, `${U}${pe}`, "light", "variable", n, o, i, a), J = this.transformCSS(d, $e, "dark", "variable", n, o, i, a);
|
|
961
961
|
return {
|
|
962
962
|
css: `${B}${J}`,
|
|
963
963
|
tokens: X
|
|
@@ -1101,19 +1101,19 @@ var We = {
|
|
|
1101
1101
|
return this.theme;
|
|
1102
1102
|
},
|
|
1103
1103
|
setTheme(t) {
|
|
1104
|
-
this.update({ theme: t }),
|
|
1104
|
+
this.update({ theme: t }), ut.emit("theme:change", t);
|
|
1105
1105
|
},
|
|
1106
1106
|
getPreset() {
|
|
1107
1107
|
return this.preset;
|
|
1108
1108
|
},
|
|
1109
1109
|
setPreset(t) {
|
|
1110
|
-
this._theme = lr(Yt({}, this.theme), { preset: t }), this._tokens = We.createTokens(t, this.defaults), this.clearLoadedStyleNames(),
|
|
1110
|
+
this._theme = lr(Yt({}, this.theme), { preset: t }), this._tokens = We.createTokens(t, this.defaults), this.clearLoadedStyleNames(), ut.emit("preset:change", t), ut.emit("theme:change", this.theme);
|
|
1111
1111
|
},
|
|
1112
1112
|
getOptions() {
|
|
1113
1113
|
return this.options;
|
|
1114
1114
|
},
|
|
1115
1115
|
setOptions(t) {
|
|
1116
|
-
this._theme = lr(Yt({}, this.theme), { options: t }), this.clearLoadedStyleNames(),
|
|
1116
|
+
this._theme = lr(Yt({}, this.theme), { options: t }), this.clearLoadedStyleNames(), ut.emit("options:change", t), ut.emit("theme:change", this.theme);
|
|
1117
1117
|
},
|
|
1118
1118
|
getLayerNames() {
|
|
1119
1119
|
return [...this._layerNames];
|
|
@@ -1173,7 +1173,7 @@ var We = {
|
|
|
1173
1173
|
this._loadingStyles.add(t);
|
|
1174
1174
|
},
|
|
1175
1175
|
onStyleLoaded(t, { name: e }) {
|
|
1176
|
-
this._loadingStyles.size && (this._loadingStyles.delete(e),
|
|
1176
|
+
this._loadingStyles.size && (this._loadingStyles.delete(e), ut.emit(`theme:${e}:load`, t), !this._loadingStyles.size && ut.emit("theme:load"));
|
|
1177
1177
|
}
|
|
1178
1178
|
}, gt = {
|
|
1179
1179
|
_loadedStyleNames: /* @__PURE__ */ new Set(),
|
|
@@ -1245,12 +1245,12 @@ function Na(t) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
var Ua = 0;
|
|
1247
1247
|
function Ha(t) {
|
|
1248
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ie(!1), r = ie(t), o = ie(null), i = _a() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, c = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Ua) : g, k = e.id, A = k === void 0 ? void 0 : k, E = e.media, v = E === void 0 ? void 0 : E, S = e.nonce, R = S === void 0 ? void 0 : S, U = e.first, Y = U === void 0 ? !1 : U, pe = e.onMounted, ae = pe === void 0 ? void 0 : pe,
|
|
1249
|
-
},
|
|
1248
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ie(!1), r = ie(t), o = ie(null), i = _a() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, c = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Ua) : g, k = e.id, A = k === void 0 ? void 0 : k, E = e.media, v = E === void 0 ? void 0 : E, S = e.nonce, R = S === void 0 ? void 0 : S, U = e.first, Y = U === void 0 ? !1 : U, pe = e.onMounted, ae = pe === void 0 ? void 0 : pe, $e = e.onUpdated, le = $e === void 0 ? void 0 : $e, X = e.onLoad, B = X === void 0 ? void 0 : X, J = e.props, he = J === void 0 ? {} : J, ge = function() {
|
|
1249
|
+
}, Ze = function(Qe) {
|
|
1250
1250
|
var _t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1251
1251
|
if (s) {
|
|
1252
1252
|
var He = Oo(Oo({}, he), _t), u = He.name || w, p = He.id || A, b = He.nonce || R;
|
|
1253
|
-
o.value = s.querySelector('style[data-primevue-style-id="'.concat(u, '"]')) || s.getElementById(p) || s.createElement("style"), o.value.isConnected || (r.value =
|
|
1253
|
+
o.value = s.querySelector('style[data-primevue-style-id="'.concat(u, '"]')) || s.getElementById(p) || s.createElement("style"), o.value.isConnected || (r.value = Qe || t, Fn(o.value, {
|
|
1254
1254
|
type: "text/css",
|
|
1255
1255
|
id: p,
|
|
1256
1256
|
media: v,
|
|
@@ -1265,16 +1265,16 @@ function Ha(t) {
|
|
|
1265
1265
|
immediate: !0
|
|
1266
1266
|
}), n.value = !0);
|
|
1267
1267
|
}
|
|
1268
|
-
},
|
|
1268
|
+
}, it = function() {
|
|
1269
1269
|
!s || !n.value || (ge(), wa(o.value) && s.head.removeChild(o.value), n.value = !1);
|
|
1270
1270
|
};
|
|
1271
|
-
return c && !m && Na(
|
|
1271
|
+
return c && !m && Na(Ze), {
|
|
1272
1272
|
id: A,
|
|
1273
1273
|
name: w,
|
|
1274
1274
|
el: o,
|
|
1275
1275
|
css: r,
|
|
1276
|
-
unload:
|
|
1277
|
-
load:
|
|
1276
|
+
unload: it,
|
|
1277
|
+
load: Ze,
|
|
1278
1278
|
isLoaded: Vs(n)
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
@@ -1829,7 +1829,7 @@ var qn = {
|
|
|
1829
1829
|
_themeChangeListener: function() {
|
|
1830
1830
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
|
|
1831
1831
|
};
|
|
1832
|
-
gt.clearLoadedStyleNames(),
|
|
1832
|
+
gt.clearLoadedStyleNames(), ut.on("theme:change", e);
|
|
1833
1833
|
},
|
|
1834
1834
|
_getHostInstance: function(e) {
|
|
1835
1835
|
return e ? this.$options.hostName ? e.$.type.name === this.$options.hostName ? e : this._getHostInstance(e.$parentInstance) : e.$parentInstance : void 0;
|
|
@@ -1864,7 +1864,7 @@ var qn = {
|
|
|
1864
1864
|
},
|
|
1865
1865
|
_getPTClassValue: function() {
|
|
1866
1866
|
var e = this._getOptionValue.apply(this, arguments);
|
|
1867
|
-
return
|
|
1867
|
+
return Le(e) || Ur(e) ? {
|
|
1868
1868
|
class: e
|
|
1869
1869
|
} : e;
|
|
1870
1870
|
},
|
|
@@ -1885,7 +1885,7 @@ var qn = {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
if (e != null && e.hasOwnProperty("_usept")) {
|
|
1887
1887
|
var a, s = e._usept || ((a = this.$primevueConfig) === null || a === void 0 ? void 0 : a.ptOptions) || {}, l = s.mergeSections, c = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d, g = i(e.originalValue), w = i(e.value);
|
|
1888
|
-
return g === void 0 && w === void 0 ? void 0 :
|
|
1888
|
+
return g === void 0 && w === void 0 ? void 0 : Le(w) ? w : Le(g) ? g : c || !c && w ? m ? this._mergeProps(m, g, w) : G(G({}, g), w) : w;
|
|
1889
1889
|
}
|
|
1890
1890
|
return i(e);
|
|
1891
1891
|
},
|
|
@@ -2438,7 +2438,7 @@ var K = {
|
|
|
2438
2438
|
_getPTValue: function() {
|
|
2439
2439
|
var e, n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = function() {
|
|
2440
2440
|
var S = K._getOptionValue.apply(K, arguments);
|
|
2441
|
-
return
|
|
2441
|
+
return Le(S) || Ur(S) ? {
|
|
2442
2442
|
class: S
|
|
2443
2443
|
} : S;
|
|
2444
2444
|
}, c = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = c.mergeSections, m = d === void 0 ? !0 : d, g = c.mergeProps, w = g === void 0 ? !1 : g, k = s ? K._useDefaultPT(r, r.defaultPT(), l, i, a) : void 0, A = K._usePT(r, K._getPT(o, r.$name), l, i, Z(Z({}, a), {}, {
|
|
@@ -2467,7 +2467,7 @@ var K = {
|
|
|
2467
2467
|
};
|
|
2468
2468
|
if (n != null && n.hasOwnProperty("_usept")) {
|
|
2469
2469
|
var s, l = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, c = l.mergeSections, d = c === void 0 ? !0 : c, m = l.mergeProps, g = m === void 0 ? !1 : m, w = a(n.originalValue), k = a(n.value);
|
|
2470
|
-
return w === void 0 && k === void 0 ? void 0 :
|
|
2470
|
+
return w === void 0 && k === void 0 ? void 0 : Le(k) ? k : Le(w) ? w : d || !d && k ? g ? K._mergeProps(e, g, w, k) : Z(Z({}, w), k) : k;
|
|
2471
2471
|
}
|
|
2472
2472
|
return a(n);
|
|
2473
2473
|
},
|
|
@@ -2532,7 +2532,7 @@ var K = {
|
|
|
2532
2532
|
_themeChangeListener: function() {
|
|
2533
2533
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
|
|
2534
2534
|
};
|
|
2535
|
-
gt.clearLoadedStyleNames(),
|
|
2535
|
+
gt.clearLoadedStyleNames(), ut.on("theme:change", e);
|
|
2536
2536
|
},
|
|
2537
2537
|
_hook: function(e, n, r, o, i, a) {
|
|
2538
2538
|
var s, l, c = "on".concat(Ca(n)), d = K._getConfig(o, i), m = r == null ? void 0 : r.$instance, g = K._usePT(m, K._getPT(o == null || (s = o.value) === null || s === void 0 ? void 0 : s.pt, e), K._getOptionValue, "hooks.".concat(c)), w = K._useDefaultPT(m, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], K._getOptionValue, "hooks.".concat(c)), k = {
|
|
@@ -2959,8 +2959,8 @@ function Hl(t, e, n, r, o, i) {
|
|
|
2959
2959
|
return $(), H("ul", {
|
|
2960
2960
|
class: Q(t.cx("submenu")),
|
|
2961
2961
|
tabindex: n.tabindex
|
|
2962
|
-
}, [($(!0), H(
|
|
2963
|
-
return $(), H(
|
|
2962
|
+
}, [($(!0), H(rt, null, $r(n.items, function(l, c) {
|
|
2963
|
+
return $(), H(rt, {
|
|
2964
2964
|
key: i.getItemKey(l)
|
|
2965
2965
|
}, [i.isItemVisible(l) && !i.getItemProp(l, "separator") ? ($(), H("li", W({
|
|
2966
2966
|
key: 0,
|
|
@@ -3003,7 +3003,7 @@ function Hl(t, e, n, r, o, i) {
|
|
|
3003
3003
|
target: i.getItemProp(l, "target"),
|
|
3004
3004
|
tabindex: "-1",
|
|
3005
3005
|
ref_for: !0
|
|
3006
|
-
}, i.getPTOptions("itemLink", l, c)), [i.isItemGroup(l) ? ($(), H(
|
|
3006
|
+
}, i.getPTOptions("itemLink", l, c)), [i.isItemGroup(l) ? ($(), H(rt, {
|
|
3007
3007
|
key: 0
|
|
3008
3008
|
}, [n.templates.submenuicon ? ($(), ce(yt(n.templates.submenuicon), W({
|
|
3009
3009
|
key: 0,
|
|
@@ -3025,7 +3025,7 @@ function Hl(t, e, n, r, o, i) {
|
|
|
3025
3025
|
}, i.getPTOptions("itemIcon", l, c)), null, 16)) : se("", !0), M("span", W({
|
|
3026
3026
|
class: t.cx("itemLabel"),
|
|
3027
3027
|
ref_for: !0
|
|
3028
|
-
}, i.getPTOptions("itemLabel", l, c)),
|
|
3028
|
+
}, i.getPTOptions("itemLabel", l, c)), Me(i.getItemLabel(l)), 17)], 16, Ul)), [[s]])], 16, Nl), De(Mr, W({
|
|
3029
3029
|
name: "p-toggleable-content",
|
|
3030
3030
|
ref_for: !0
|
|
3031
3031
|
}, t.ptm("transition")), {
|
|
@@ -3683,8 +3683,8 @@ function tu(t, e, n, r, o, i) {
|
|
|
3683
3683
|
return $(), H("div", W({
|
|
3684
3684
|
id: o.id,
|
|
3685
3685
|
class: t.cx("root")
|
|
3686
|
-
}, t.ptmi("root")), [($(!0), H(
|
|
3687
|
-
return $(), H(
|
|
3686
|
+
}, t.ptmi("root")), [($(!0), H(rt, null, $r(t.model, function(s, l) {
|
|
3687
|
+
return $(), H(rt, {
|
|
3688
3688
|
key: i.getPanelKey(l)
|
|
3689
3689
|
}, [i.isItemVisible(s) ? ($(), H("div", W({
|
|
3690
3690
|
key: 0,
|
|
@@ -3748,7 +3748,7 @@ function tu(t, e, n, r, o, i) {
|
|
|
3748
3748
|
}, i.getPTOptions("headerIcon", s, l)), null, 16)) : se("", !0), M("span", W({
|
|
3749
3749
|
class: t.cx("headerLabel"),
|
|
3750
3750
|
ref_for: !0
|
|
3751
|
-
}, i.getPTOptions("headerLabel", s, l)),
|
|
3751
|
+
}, i.getPTOptions("headerLabel", s, l)), Me(i.getItemLabel(s)), 17)], 16, Ql))], 16)], 16, Jl), De(Mr, W({
|
|
3752
3752
|
name: "p-toggleable-content",
|
|
3753
3753
|
ref_for: !0
|
|
3754
3754
|
}, t.ptm("transition")), {
|
|
@@ -3763,7 +3763,7 @@ function tu(t, e, n, r, o, i) {
|
|
|
3763
3763
|
key: 0,
|
|
3764
3764
|
class: t.cx("content"),
|
|
3765
3765
|
ref_for: !0
|
|
3766
|
-
}, t.ptm("content")), [
|
|
3766
|
+
}, t.ptm("content")), [De(a, {
|
|
3767
3767
|
panelId: i.getPanelId(l),
|
|
3768
3768
|
items: i.getItemProp(s, "items"),
|
|
3769
3769
|
templates: t.$slots,
|
|
@@ -3805,7 +3805,7 @@ const nu = { class: "panel-menu-wrapper" }, ru = ["data-active", "href", "onClic
|
|
|
3805
3805
|
return (o, i) => {
|
|
3806
3806
|
const a = _n("router-link");
|
|
3807
3807
|
return $(), H("div", nu, [
|
|
3808
|
-
|
|
3808
|
+
De(oe(Bi), {
|
|
3809
3809
|
model: e.items,
|
|
3810
3810
|
unstyled: !0
|
|
3811
3811
|
}, {
|
|
@@ -3832,8 +3832,8 @@ const nu = { class: "panel-menu-wrapper" }, ru = ["data-active", "href", "onClic
|
|
|
3832
3832
|
href: s.path,
|
|
3833
3833
|
onClick: wr((m) => n(s, c), ["prevent"])
|
|
3834
3834
|
}, [
|
|
3835
|
-
s.icon ? ($(), H("span", ou,
|
|
3836
|
-
M("span", null,
|
|
3835
|
+
s.icon ? ($(), H("span", ou, Me(s.icon), 1)) : se("", !0),
|
|
3836
|
+
M("span", null, Me(s.text), 1)
|
|
3837
3837
|
], 10, ru)
|
|
3838
3838
|
]),
|
|
3839
3839
|
_: 2
|
|
@@ -3845,11 +3845,11 @@ const nu = { class: "panel-menu-wrapper" }, ru = ["data-active", "href", "onClic
|
|
|
3845
3845
|
]),
|
|
3846
3846
|
onClick: wr((c) => r(c, s), ["stop"])
|
|
3847
3847
|
}, [
|
|
3848
|
-
s.icon ? ($(), H("span", su,
|
|
3849
|
-
M("span", null,
|
|
3848
|
+
s.icon ? ($(), H("span", su, Me(s.icon), 1)) : se("", !0),
|
|
3849
|
+
M("span", null, Me(s.text), 1)
|
|
3850
3850
|
], 10, iu)) : ($(), H("a", au, [
|
|
3851
|
-
s.icon ? ($(), H("span", lu,
|
|
3852
|
-
M("span", null,
|
|
3851
|
+
s.icon ? ($(), H("span", lu, Me(s.icon), 1)) : se("", !0),
|
|
3852
|
+
M("span", null, Me(s.text), 1),
|
|
3853
3853
|
i[0] || (i[0] = M("div", { class: "sep" }, null, -1)),
|
|
3854
3854
|
M("span", {
|
|
3855
3855
|
class: Q([
|
|
@@ -3899,12 +3899,12 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
3899
3899
|
for (let n = 0; n < t.length; n++)
|
|
3900
3900
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
3901
3901
|
return e;
|
|
3902
|
-
}, Fr = (t) => t.charAt(0).toUpperCase() + t.slice(1), Ne = (t) => Array.prototype.slice.call(t),
|
|
3902
|
+
}, Fr = (t) => t.charAt(0).toUpperCase() + t.slice(1), Ne = (t) => Array.prototype.slice.call(t), Oe = (t) => {
|
|
3903
3903
|
console.warn(`${Ui} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3904
3904
|
}, Lt = (t) => {
|
|
3905
3905
|
console.error(`${Ui} ${t}`);
|
|
3906
3906
|
}, qo = [], fu = (t) => {
|
|
3907
|
-
qo.includes(t) || (qo.push(t),
|
|
3907
|
+
qo.includes(t) || (qo.push(t), Oe(t));
|
|
3908
3908
|
}, mu = (t, e) => {
|
|
3909
3909
|
fu(
|
|
3910
3910
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
@@ -4052,13 +4052,13 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4052
4052
|
"heightAuto",
|
|
4053
4053
|
"keydownListenerCapture"
|
|
4054
4054
|
], Hi = (t) => Object.prototype.hasOwnProperty.call(Ut, t), ji = (t) => pu.indexOf(t) !== -1, Tr = (t) => hu[t], yu = (t) => {
|
|
4055
|
-
Hi(t) ||
|
|
4055
|
+
Hi(t) || Oe(`Unknown parameter "${t}"`);
|
|
4056
4056
|
}, bu = (t) => {
|
|
4057
|
-
gu.includes(t) &&
|
|
4057
|
+
gu.includes(t) && Oe(`The parameter "${t}" is incompatible with toasts`);
|
|
4058
4058
|
}, vu = (t) => {
|
|
4059
4059
|
Tr(t) && mu(t, Tr(t));
|
|
4060
4060
|
}, wu = (t) => {
|
|
4061
|
-
!t.backdrop && t.allowOutsideClick &&
|
|
4061
|
+
!t.backdrop && t.allowOutsideClick && Oe('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4062
4062
|
for (const e in t)
|
|
4063
4063
|
yu(e), t.toast && bu(e), vu(e);
|
|
4064
4064
|
}, _u = "swal2-", Fi = (t) => {
|
|
@@ -4139,7 +4139,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4139
4139
|
]), un = Fi(["success", "warning", "info", "question", "error"]), _e = () => document.body.querySelector(`.${h.container}`), kn = (t) => {
|
|
4140
4140
|
const e = _e();
|
|
4141
4141
|
return e ? e.querySelector(t) : null;
|
|
4142
|
-
}, Ke = (t) => kn(`.${t}`), te = () => Ke(h.popup), Cn = () => Ke(h.icon), Vi = () => Ke(h.title), zn = () => Ke(h["html-container"]), Ki = () => Ke(h.image), zi = () => Ke(h["progress-steps"]), Xn = () => Ke(h["validation-message"]),
|
|
4142
|
+
}, Ke = (t) => kn(`.${t}`), te = () => Ke(h.popup), Cn = () => Ke(h.icon), Vi = () => Ke(h.title), zn = () => Ke(h["html-container"]), Ki = () => Ke(h.image), zi = () => Ke(h["progress-steps"]), Xn = () => Ke(h["validation-message"]), Xe = () => kn(`.${h.actions} .${h.confirm}`), wt = () => kn(`.${h.actions} .${h.deny}`), Su = () => Ke(h["input-label"]), Vt = () => kn(`.${h.loader}`), At = () => kn(`.${h.actions} .${h.cancel}`), In = () => Ke(h.actions), Wi = () => Ke(h.footer), Zn = () => Ke(h["timer-progress-bar"]), zr = () => Ke(h.close), ku = `
|
|
4143
4143
|
a[href],
|
|
4144
4144
|
area[href],
|
|
4145
4145
|
input:not([disabled]),
|
|
@@ -4190,7 +4190,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4190
4190
|
}, je = (t, e, n) => {
|
|
4191
4191
|
if (Iu(t, e), e.customClass && e.customClass[n]) {
|
|
4192
4192
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
4193
|
-
return
|
|
4193
|
+
return Oe(
|
|
4194
4194
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
4195
4195
|
);
|
|
4196
4196
|
q(t, e.customClass[n]);
|
|
@@ -4225,7 +4225,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4225
4225
|
}));
|
|
4226
4226
|
}, q = (t, e) => {
|
|
4227
4227
|
qi(t, e, !0);
|
|
4228
|
-
},
|
|
4228
|
+
}, ot = (t, e) => {
|
|
4229
4229
|
qi(t, e, !1);
|
|
4230
4230
|
}, bt = (t, e) => {
|
|
4231
4231
|
const n = Ne(t.childNodes);
|
|
@@ -4243,7 +4243,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4243
4243
|
o && (o.style[n] = r);
|
|
4244
4244
|
}, Qn = (t, e, n) => {
|
|
4245
4245
|
e ? me(t, n) : Se(t);
|
|
4246
|
-
}, Be = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Tu = () => !Be(
|
|
4246
|
+
}, Be = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Tu = () => !Be(Xe()) && !Be(wt()) && !Be(At()), Xo = (t) => t.scrollHeight > t.clientHeight, Yi = (t) => {
|
|
4247
4247
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), r = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
4248
4248
|
return n > 0 || r > 0;
|
|
4249
4249
|
}, Yr = (t, e = !1) => {
|
|
@@ -4300,7 +4300,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4300
4300
|
</div>
|
|
4301
4301
|
`.replace(/(^|\n)\s*/g, ""), Ou = () => {
|
|
4302
4302
|
const t = _e();
|
|
4303
|
-
return t ? (t.remove(),
|
|
4303
|
+
return t ? (t.remove(), ot(
|
|
4304
4304
|
[document.documentElement, document.body],
|
|
4305
4305
|
[h["no-backdrop"], h["toast-shown"], h["has-column"]]
|
|
4306
4306
|
), !0) : !1;
|
|
@@ -4361,12 +4361,12 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4361
4361
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? Se(n) : me(n), je(n, e, "actions"), Fu(n, r, e), we(r, e.loaderHtml), je(r, e, "loader");
|
|
4362
4362
|
};
|
|
4363
4363
|
function Fu(t, e, n) {
|
|
4364
|
-
const r =
|
|
4364
|
+
const r = Xe(), o = wt(), i = At();
|
|
4365
4365
|
dr(r, "confirm", n), dr(o, "deny", n), dr(i, "cancel", n), Vu(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)));
|
|
4366
4366
|
}
|
|
4367
4367
|
function Vu(t, e, n, r) {
|
|
4368
4368
|
if (!r.buttonsStyling)
|
|
4369
|
-
return
|
|
4369
|
+
return ot([t, e, n], h.styled);
|
|
4370
4370
|
q([t, e, n], h.styled), r.confirmButtonColor && (t.style.backgroundColor = r.confirmButtonColor, q(t, h["default-outline"])), r.denyButtonColor && (e.style.backgroundColor = r.denyButtonColor, q(e, h["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, q(n, h["default-outline"]));
|
|
4371
4371
|
}
|
|
4372
4372
|
function dr(t, e, n) {
|
|
@@ -4376,7 +4376,7 @@ function Ku(t, e) {
|
|
|
4376
4376
|
typeof e == "string" ? t.style.background = e : e || q([document.documentElement, document.body], h["no-backdrop"]);
|
|
4377
4377
|
}
|
|
4378
4378
|
function zu(t, e) {
|
|
4379
|
-
e in h ? q(t, h[e]) : (
|
|
4379
|
+
e in h ? q(t, h[e]) : (Oe('The "position" parameter is not valid, defaulting to "center"'), q(t, h.center));
|
|
4380
4380
|
}
|
|
4381
4381
|
function Wu(t, e) {
|
|
4382
4382
|
if (e && typeof e == "string") {
|
|
@@ -4399,11 +4399,11 @@ const Gu = (t, e) => {
|
|
|
4399
4399
|
Ju(i, e.inputAttributes), s.className = a, o && Se(s);
|
|
4400
4400
|
}), e.input && (o && Xu(e), Qu(e));
|
|
4401
4401
|
}, Xu = (t) => {
|
|
4402
|
-
if (!
|
|
4402
|
+
if (!xe[t.input])
|
|
4403
4403
|
return Lt(
|
|
4404
4404
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
4405
4405
|
);
|
|
4406
|
-
const e = Zi(t.input), n =
|
|
4406
|
+
const e = Zi(t.input), n = xe[t.input](e, t);
|
|
4407
4407
|
me(n), setTimeout(() => {
|
|
4408
4408
|
Gi(n);
|
|
4409
4409
|
});
|
|
@@ -4433,30 +4433,30 @@ const Gu = (t, e) => {
|
|
|
4433
4433
|
}, Zi = (t) => {
|
|
4434
4434
|
const e = h[t] ? h[t] : h.input;
|
|
4435
4435
|
return bt(te(), e);
|
|
4436
|
-
},
|
|
4437
|
-
|
|
4436
|
+
}, xe = {};
|
|
4437
|
+
xe.text = xe.email = xe.password = xe.number = xe.tel = xe.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : Kr(e.inputValue) || Oe(
|
|
4438
4438
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
4439
4439
|
), Tn(t, t, e), Zr(t, e), t.type = e.input, t);
|
|
4440
|
-
|
|
4441
|
-
|
|
4440
|
+
xe.file = (t, e) => (Tn(t, t, e), Zr(t, e), t);
|
|
4441
|
+
xe.range = (t, e) => {
|
|
4442
4442
|
const n = t.querySelector("input"), r = t.querySelector("output");
|
|
4443
4443
|
return n.value = e.inputValue, n.type = e.input, r.value = e.inputValue, Tn(n, t, e), t;
|
|
4444
4444
|
};
|
|
4445
|
-
|
|
4445
|
+
xe.select = (t, e) => {
|
|
4446
4446
|
if (t.textContent = "", e.inputPlaceholder) {
|
|
4447
4447
|
const n = document.createElement("option");
|
|
4448
4448
|
we(n, e.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n);
|
|
4449
4449
|
}
|
|
4450
4450
|
return Tn(t, t, e), t;
|
|
4451
4451
|
};
|
|
4452
|
-
|
|
4453
|
-
|
|
4452
|
+
xe.radio = (t) => (t.textContent = "", t);
|
|
4453
|
+
xe.checkbox = (t, e) => {
|
|
4454
4454
|
const n = qr(te(), "checkbox");
|
|
4455
4455
|
n.value = "1", n.id = h.checkbox, n.checked = !!e.inputValue;
|
|
4456
4456
|
const r = t.querySelector("span");
|
|
4457
4457
|
return we(r, e.inputPlaceholder), t;
|
|
4458
4458
|
};
|
|
4459
|
-
|
|
4459
|
+
xe.textarea = (t, e) => {
|
|
4460
4460
|
t.value = e.inputValue, Zr(t, e), Tn(t, t, e);
|
|
4461
4461
|
const n = (r) => parseInt(window.getComputedStyle(r).marginLeft) + parseInt(window.getComputedStyle(r).marginRight);
|
|
4462
4462
|
return setTimeout(() => {
|
|
@@ -4494,7 +4494,7 @@ const ec = (t, e) => {
|
|
|
4494
4494
|
me(r), Jo(r, e), Zo(r, e), q(r, e.showClass.icon);
|
|
4495
4495
|
}, Zo = (t, e) => {
|
|
4496
4496
|
for (const n in un)
|
|
4497
|
-
e.icon !== n &&
|
|
4497
|
+
e.icon !== n && ot(t, un[n]);
|
|
4498
4498
|
q(t, un[e.icon]), ac(t, e), oc(), je(t, e, "icon");
|
|
4499
4499
|
}, oc = () => {
|
|
4500
4500
|
const t = te(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
@@ -4543,7 +4543,7 @@ const ec = (t, e) => {
|
|
|
4543
4543
|
const n = zi();
|
|
4544
4544
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
4545
4545
|
return Se(n);
|
|
4546
|
-
me(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length &&
|
|
4546
|
+
me(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Oe(
|
|
4547
4547
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
4548
4548
|
), e.progressSteps.forEach((r, o) => {
|
|
4549
4549
|
const i = uc(r);
|
|
@@ -4636,11 +4636,11 @@ const ec = (t, e) => {
|
|
|
4636
4636
|
]);
|
|
4637
4637
|
Ne(t.children).forEach((n) => {
|
|
4638
4638
|
const r = n.tagName.toLowerCase();
|
|
4639
|
-
e.indexOf(r) === -1 &&
|
|
4639
|
+
e.indexOf(r) === -1 && Oe(`Unrecognized element <${r}>`);
|
|
4640
4640
|
});
|
|
4641
4641
|
}, Pt = (t, e) => {
|
|
4642
4642
|
Ne(t.attributes).forEach((n) => {
|
|
4643
|
-
e.indexOf(n.name) === -1 &&
|
|
4643
|
+
e.indexOf(n.name) === -1 && Oe([
|
|
4644
4644
|
`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,
|
|
4645
4645
|
`${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`
|
|
4646
4646
|
]);
|
|
@@ -4655,10 +4655,10 @@ function Cc(t) {
|
|
|
4655
4655
|
});
|
|
4656
4656
|
}
|
|
4657
4657
|
function Ic(t) {
|
|
4658
|
-
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (
|
|
4658
|
+
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (Oe('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
4659
4659
|
}
|
|
4660
4660
|
function Tc(t) {
|
|
4661
|
-
Cc(t), t.showLoaderOnConfirm && !t.preConfirm &&
|
|
4661
|
+
Cc(t), t.showLoaderOnConfirm && !t.preConfirm && Oe(
|
|
4662
4662
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
4663
4663
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
4664
4664
|
https://sweetalert2.github.io/#ajax-request`
|
|
@@ -4716,7 +4716,7 @@ const Pc = () => {
|
|
|
4716
4716
|
}, Mc = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Dc = (t) => t.touches && t.touches.length > 1, Rc = () => {
|
|
4717
4717
|
if (mt(document.body, h.iosfix)) {
|
|
4718
4718
|
const t = parseInt(document.body.style.top, 10);
|
|
4719
|
-
|
|
4719
|
+
ot(document.body, h.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
4720
4720
|
}
|
|
4721
4721
|
}, ts = 10, Bc = (t) => {
|
|
4722
4722
|
const e = _e(), n = te();
|
|
@@ -4724,7 +4724,7 @@ const Pc = () => {
|
|
|
4724
4724
|
const o = window.getComputedStyle(document.body).overflowY;
|
|
4725
4725
|
Hc(e, n, t), setTimeout(() => {
|
|
4726
4726
|
Nc(e, n);
|
|
4727
|
-
}, ts), Gr() && (Uc(e, t.scrollbarPadding, o), hc()), !Jn() && !j.previousActiveElement && (j.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)),
|
|
4727
|
+
}, ts), Gr() && (Uc(e, t.scrollbarPadding, o), hc()), !Jn() && !j.previousActiveElement && (j.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), ot(e, h["no-transition"]);
|
|
4728
4728
|
}, ns = (t) => {
|
|
4729
4729
|
const e = te();
|
|
4730
4730
|
if (t.target !== e)
|
|
@@ -4748,9 +4748,9 @@ const Pc = () => {
|
|
|
4748
4748
|
Jn() ? Se(Cn()) : jc(e, t), me(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
4749
4749
|
}, jc = (t, e) => {
|
|
4750
4750
|
const n = In(), r = Vt();
|
|
4751
|
-
!e && Be(
|
|
4751
|
+
!e && Be(Xe()) && (e = Xe()), me(n), e && (Se(e), r.setAttribute("data-button-to-replace", e.className)), r.parentNode.insertBefore(r, e), q([t, n], h.loading);
|
|
4752
4752
|
}, Fc = (t, e) => {
|
|
4753
|
-
e.input === "select" || e.input === "radio" ? Gc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Vr(e.inputValue) || Kr(e.inputValue)) && (jt(
|
|
4753
|
+
e.input === "select" || e.input === "radio" ? Gc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Vr(e.inputValue) || Kr(e.inputValue)) && (jt(Xe()), qc(t, e));
|
|
4754
4754
|
}, Vc = (t, e) => {
|
|
4755
4755
|
const n = t.getInput();
|
|
4756
4756
|
if (!n)
|
|
@@ -4767,7 +4767,7 @@ const Pc = () => {
|
|
|
4767
4767
|
}
|
|
4768
4768
|
}, Kc = (t) => t.checked ? 1 : 0, zc = (t) => t.checked ? t.value : null, Wc = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Gc = (t, e) => {
|
|
4769
4769
|
const n = te(), r = (o) => Yc[e.input](n, Ar(o), e);
|
|
4770
|
-
Vr(e.inputOptions) || Kr(e.inputOptions) ? (jt(
|
|
4770
|
+
Vr(e.inputOptions) || Kr(e.inputOptions) ? (jt(Xe()), Sn(e.inputOptions).then((o) => {
|
|
4771
4771
|
t.hideLoading(), r(o);
|
|
4772
4772
|
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : Lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
4773
4773
|
}, qc = (t, e) => {
|
|
@@ -4818,7 +4818,7 @@ function ni() {
|
|
|
4818
4818
|
if (!t)
|
|
4819
4819
|
return;
|
|
4820
4820
|
const e = F.domCache.get(this);
|
|
4821
|
-
Se(e.loader), Jn() ? t.icon && me(Cn()) : Xc(e),
|
|
4821
|
+
Se(e.loader), Jn() ? t.icon && me(Cn()) : Xc(e), ot([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;
|
|
4822
4822
|
}
|
|
4823
4823
|
const Xc = (t) => {
|
|
4824
4824
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -4831,7 +4831,7 @@ function Zc(t) {
|
|
|
4831
4831
|
const wn = {
|
|
4832
4832
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
4833
4833
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
4834
|
-
}, Jc = () => Be(te()), rs = () =>
|
|
4834
|
+
}, Jc = () => Be(te()), rs = () => Xe() && Xe().click(), Qc = () => wt() && wt().click(), ed = () => At() && At().click(), os = (t) => {
|
|
4835
4835
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
4836
4836
|
capture: t.keydownListenerCapture
|
|
4837
4837
|
}), t.keydownHandlerAdded = !1);
|
|
@@ -4863,7 +4863,7 @@ const wn = {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
t.shiftKey ? Pr(e, o, -1) : Pr(e, o, 1), t.stopPropagation(), t.preventDefault();
|
|
4865
4865
|
}, sd = (t) => {
|
|
4866
|
-
const e =
|
|
4866
|
+
const e = Xe(), n = wt(), r = At();
|
|
4867
4867
|
if (![e, n, r].includes(document.activeElement))
|
|
4868
4868
|
return;
|
|
4869
4869
|
const o = is.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
@@ -4882,7 +4882,7 @@ function ss(t, e, n, r) {
|
|
|
4882
4882
|
Jn() ? ri(t, r) : (xu(n).then(() => ri(t, r)), os(j)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), Gr() && (Ec(), Rc(), Qi()), ld();
|
|
4883
4883
|
}
|
|
4884
4884
|
function ld() {
|
|
4885
|
-
|
|
4885
|
+
ot(
|
|
4886
4886
|
[document.documentElement, document.body],
|
|
4887
4887
|
[h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]
|
|
4888
4888
|
);
|
|
@@ -4902,9 +4902,9 @@ const cd = (t) => {
|
|
|
4902
4902
|
const n = F.innerParams.get(t);
|
|
4903
4903
|
if (!n || mt(e, n.hideClass.popup))
|
|
4904
4904
|
return !1;
|
|
4905
|
-
|
|
4905
|
+
ot(e, n.showClass.popup), q(e, n.hideClass.popup);
|
|
4906
4906
|
const r = _e();
|
|
4907
|
-
return
|
|
4907
|
+
return ot(r, n.showClass.backdrop), q(r, n.hideClass.backdrop), md(t, e, n), !0;
|
|
4908
4908
|
};
|
|
4909
4909
|
function dd(t) {
|
|
4910
4910
|
const e = wn.swalPromiseReject.get(this);
|
|
@@ -4979,7 +4979,7 @@ function wd() {
|
|
|
4979
4979
|
const t = F.domCache.get(this);
|
|
4980
4980
|
t.validationMessage && Se(t.validationMessage);
|
|
4981
4981
|
const e = this.getInput();
|
|
4982
|
-
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"),
|
|
4982
|
+
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), ot(e, h.inputerror));
|
|
4983
4983
|
}
|
|
4984
4984
|
function _d() {
|
|
4985
4985
|
return F.domCache.get(this).progressSteps;
|
|
@@ -4987,7 +4987,7 @@ function _d() {
|
|
|
4987
4987
|
function Sd(t) {
|
|
4988
4988
|
const e = te(), n = F.innerParams.get(this);
|
|
4989
4989
|
if (!e || mt(e, n.hideClass.popup))
|
|
4990
|
-
return
|
|
4990
|
+
return Oe(
|
|
4991
4991
|
"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup."
|
|
4992
4992
|
);
|
|
4993
4993
|
const r = kd(t), o = Object.assign({}, n, r);
|
|
@@ -5002,7 +5002,7 @@ function Sd(t) {
|
|
|
5002
5002
|
const kd = (t) => {
|
|
5003
5003
|
const e = {};
|
|
5004
5004
|
return Object.keys(t).forEach((n) => {
|
|
5005
|
-
ji(n) ? e[n] = t[n] :
|
|
5005
|
+
ji(n) ? e[n] = t[n] : Oe(
|
|
5006
5006
|
`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
5007
5007
|
|
|
5008
5008
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`
|
|
@@ -5178,7 +5178,7 @@ const zd = (t) => {
|
|
|
5178
5178
|
getActions: In,
|
|
5179
5179
|
getCancelButton: At,
|
|
5180
5180
|
getCloseButton: zr,
|
|
5181
|
-
getConfirmButton:
|
|
5181
|
+
getConfirmButton: Xe,
|
|
5182
5182
|
getContainer: _e,
|
|
5183
5183
|
getDenyButton: wt,
|
|
5184
5184
|
getFocusableElements: Wr,
|
|
@@ -5254,7 +5254,7 @@ const Gd = (t, e, n) => new Promise((r, o) => {
|
|
|
5254
5254
|
popup: te(),
|
|
5255
5255
|
container: _e(),
|
|
5256
5256
|
actions: In(),
|
|
5257
|
-
confirmButton:
|
|
5257
|
+
confirmButton: Xe(),
|
|
5258
5258
|
denyButton: wt(),
|
|
5259
5259
|
cancelButton: At(),
|
|
5260
5260
|
loader: Vt(),
|
|
@@ -5300,14 +5300,14 @@ const {
|
|
|
5300
5300
|
getOwnPropertyDescriptor: nf
|
|
5301
5301
|
} = Object;
|
|
5302
5302
|
let {
|
|
5303
|
-
freeze:
|
|
5303
|
+
freeze: Ae,
|
|
5304
5304
|
seal: Fe,
|
|
5305
5305
|
create: gs
|
|
5306
5306
|
} = Object, {
|
|
5307
5307
|
apply: Lr,
|
|
5308
5308
|
construct: Or
|
|
5309
5309
|
} = typeof Reflect < "u" && Reflect;
|
|
5310
|
-
|
|
5310
|
+
Ae || (Ae = function(e) {
|
|
5311
5311
|
return e;
|
|
5312
5312
|
});
|
|
5313
5313
|
Fe || (Fe = function(e) {
|
|
@@ -5375,7 +5375,7 @@ function tn(t, e) {
|
|
|
5375
5375
|
}
|
|
5376
5376
|
return n;
|
|
5377
5377
|
}
|
|
5378
|
-
const ci =
|
|
5378
|
+
const ci = Ae(["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"]), pr = Ae(["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"]), hr = Ae(["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"]), lf = Ae(["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"]), gr = Ae(["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"]), uf = Ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), di = Ae(["#text"]), fi = Ae(["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"]), yr = Ae(["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"]), mi = Ae(["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"]), Bn = Ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), cf = Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), df = Fe(/<%[\w\W]*|[\w\W]*%>/gm), ff = Fe(/\${[\w\W]*}/gm), mf = Fe(/^data-[\-\w.\u00B7-\uFFFF]/), pf = Fe(/^aria-[\-\w]+$/), ys = Fe(
|
|
5379
5379
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5380
5380
|
// eslint-disable-line no-useless-escape
|
|
5381
5381
|
), hf = Fe(/^(?:\w+script|data):/i), gf = Fe(
|
|
@@ -5460,7 +5460,7 @@ function vs() {
|
|
|
5460
5460
|
const {
|
|
5461
5461
|
implementation: pe,
|
|
5462
5462
|
createNodeIterator: ae,
|
|
5463
|
-
createDocumentFragment:
|
|
5463
|
+
createDocumentFragment: $e,
|
|
5464
5464
|
getElementsByTagName: le
|
|
5465
5465
|
} = n, {
|
|
5466
5466
|
importNode: X
|
|
@@ -5471,10 +5471,10 @@ function vs() {
|
|
|
5471
5471
|
MUSTACHE_EXPR: J,
|
|
5472
5472
|
ERB_EXPR: he,
|
|
5473
5473
|
TMPLIT_EXPR: ge,
|
|
5474
|
-
DATA_ATTR:
|
|
5475
|
-
ARIA_ATTR:
|
|
5476
|
-
IS_SCRIPT_OR_DATA:
|
|
5477
|
-
ATTR_WHITESPACE:
|
|
5474
|
+
DATA_ATTR: Ze,
|
|
5475
|
+
ARIA_ATTR: it,
|
|
5476
|
+
IS_SCRIPT_OR_DATA: Je,
|
|
5477
|
+
ATTR_WHITESPACE: Qe,
|
|
5478
5478
|
CUSTOM_ELEMENT: _t
|
|
5479
5479
|
} = pi;
|
|
5480
5480
|
let {
|
|
@@ -5502,16 +5502,16 @@ function vs() {
|
|
|
5502
5502
|
enumerable: !0,
|
|
5503
5503
|
value: !1
|
|
5504
5504
|
}
|
|
5505
|
-
})), P = null, _ = null, C = !0, L = !0, x = !1, N = !0, V = !1,
|
|
5505
|
+
})), P = null, _ = null, C = !0, L = !0, x = !1, N = !0, V = !1, Pe = !0, ye = !1, be = !1, st = !1, Ot = !1, Pn = !1, En = !1, to = !0, no = !1;
|
|
5506
5506
|
const Ls = "user-content-";
|
|
5507
5507
|
let er = !0, Wt = !1, $t = {}, Mt = null;
|
|
5508
5508
|
const ro = z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
5509
5509
|
let oo = null;
|
|
5510
5510
|
const io = z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
5511
5511
|
let tr = null;
|
|
5512
|
-
const so = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xn = "http://www.w3.org/1998/Math/MathML", Ln = "http://www.w3.org/2000/svg",
|
|
5513
|
-
let Dt =
|
|
5514
|
-
const Os = z({}, [xn, Ln,
|
|
5512
|
+
const so = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xn = "http://www.w3.org/1998/Math/MathML", Ln = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xhtml";
|
|
5513
|
+
let Dt = at, nr = !1, rr = null;
|
|
5514
|
+
const Os = z({}, [xn, Ln, at], mr);
|
|
5515
5515
|
let Gt = null;
|
|
5516
5516
|
const $s = ["application/xhtml+xml", "text/html"], Ms = "text/html";
|
|
5517
5517
|
let ue = null, Rt = null;
|
|
@@ -5535,7 +5535,7 @@ function vs() {
|
|
|
5535
5535
|
// eslint-disable-line indent
|
|
5536
5536
|
ue
|
|
5537
5537
|
// eslint-disable-line indent
|
|
5538
|
-
) : io, Mt = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, ue) : ro, P = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, ue) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, ue) : {}, $t = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, x = f.ALLOW_UNKNOWN_PROTOCOLS || !1, N = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1,
|
|
5538
|
+
) : io, Mt = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, ue) : ro, P = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, ue) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, ue) : {}, $t = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, x = f.ALLOW_UNKNOWN_PROTOCOLS || !1, N = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, Pe = f.SAFE_FOR_XML !== !1, ye = f.WHOLE_DOCUMENT || !1, Ot = f.RETURN_DOM || !1, Pn = f.RETURN_DOM_FRAGMENT || !1, En = f.RETURN_TRUSTED_TYPE || !1, st = f.FORCE_BODY || !1, to = f.SANITIZE_DOM !== !1, no = f.SANITIZE_NAMED_PROPS || !1, er = f.KEEP_CONTENT !== !1, Wt = f.IN_PLACE || !1, He = f.ALLOWED_URI_REGEXP || ys, Dt = f.NAMESPACE || at, y = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && ao(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (y.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && ao(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (y.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (y.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (L = !1), Pn && (Ot = !0), $t && (u = z({}, di), b = [], $t.html === !0 && (z(u, ci), z(b, fi)), $t.svg === !0 && (z(u, pr), z(b, yr), z(b, Bn)), $t.svgFilters === !0 && (z(u, hr), z(b, yr), z(b, Bn)), $t.mathMl === !0 && (z(u, gr), z(b, mi), z(b, Bn))), f.ADD_TAGS && (u === p && (u = kt(u)), z(u, f.ADD_TAGS, ue)), f.ADD_ATTR && (b === T && (b = kt(b)), z(b, f.ADD_ATTR, ue)), f.ADD_URI_SAFE_ATTR && z(tr, f.ADD_URI_SAFE_ATTR, ue), f.FORBID_CONTENTS && (Mt === ro && (Mt = kt(Mt)), z(Mt, f.FORBID_CONTENTS, ue)), er && (u["#text"] = !0), ye && z(u, ["html", "head", "body"]), u.table && (z(u, ["tbody"]), delete P.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
5539
5539
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5540
5540
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5541
5541
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -5543,7 +5543,7 @@ function vs() {
|
|
|
5543
5543
|
U = f.TRUSTED_TYPES_POLICY, Y = U.createHTML("");
|
|
5544
5544
|
} else
|
|
5545
5545
|
U === void 0 && (U = vf(w, o)), U !== null && typeof Y == "string" && (Y = U.createHTML(""));
|
|
5546
|
-
|
|
5546
|
+
Ae && Ae(f), Rt = f;
|
|
5547
5547
|
}
|
|
5548
5548
|
}, lo = z({}, ["mi", "mo", "mn", "ms", "mtext"]), uo = z({}, ["foreignobject", "annotation-xml"]), Rs = z({}, ["title", "style", "font", "a", "script"]), co = z({}, [...pr, ...hr, ...lf]), fo = z({}, [...gr, ...uf]), Bs = function(f) {
|
|
5549
5549
|
let I = R(f);
|
|
@@ -5552,8 +5552,8 @@ function vs() {
|
|
|
5552
5552
|
tagName: "template"
|
|
5553
5553
|
});
|
|
5554
5554
|
const O = Un(f.tagName), ne = Un(I.tagName);
|
|
5555
|
-
return rr[f.namespaceURI] ? f.namespaceURI === Ln ? I.namespaceURI ===
|
|
5556
|
-
},
|
|
5555
|
+
return rr[f.namespaceURI] ? f.namespaceURI === Ln ? I.namespaceURI === at ? O === "svg" : I.namespaceURI === xn ? O === "svg" && (ne === "annotation-xml" || lo[ne]) : !!co[O] : f.namespaceURI === xn ? I.namespaceURI === at ? O === "math" : I.namespaceURI === Ln ? O === "math" && uo[ne] : !!fo[O] : f.namespaceURI === at ? I.namespaceURI === Ln && !uo[ne] || I.namespaceURI === xn && !lo[ne] ? !1 : !fo[O] && (Rs[O] || !co[O]) : !!(Gt === "application/xhtml+xml" && rr[f.namespaceURI]) : !1;
|
|
5556
|
+
}, et = function(f) {
|
|
5557
5557
|
Jt(e.removed, {
|
|
5558
5558
|
element: f
|
|
5559
5559
|
});
|
|
@@ -5577,7 +5577,7 @@ function vs() {
|
|
|
5577
5577
|
if (I.removeAttribute(f), f === "is" && !b[f])
|
|
5578
5578
|
if (Ot || Pn)
|
|
5579
5579
|
try {
|
|
5580
|
-
|
|
5580
|
+
et(I);
|
|
5581
5581
|
} catch {
|
|
5582
5582
|
}
|
|
5583
5583
|
else
|
|
@@ -5587,15 +5587,15 @@ function vs() {
|
|
|
5587
5587
|
}
|
|
5588
5588
|
}, mo = function(f) {
|
|
5589
5589
|
let I = null, O = null;
|
|
5590
|
-
if (
|
|
5590
|
+
if (st)
|
|
5591
5591
|
f = "<remove></remove>" + f;
|
|
5592
5592
|
else {
|
|
5593
5593
|
const de = ui(f, /^[\r\n\t ]+/);
|
|
5594
5594
|
O = de && de[0];
|
|
5595
5595
|
}
|
|
5596
|
-
Gt === "application/xhtml+xml" && Dt ===
|
|
5596
|
+
Gt === "application/xhtml+xml" && Dt === at && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
5597
5597
|
const ne = U ? U.createHTML(f) : f;
|
|
5598
|
-
if (Dt ===
|
|
5598
|
+
if (Dt === at)
|
|
5599
5599
|
try {
|
|
5600
5600
|
I = new g().parseFromString(ne, Gt);
|
|
5601
5601
|
} catch {
|
|
@@ -5608,7 +5608,7 @@ function vs() {
|
|
|
5608
5608
|
}
|
|
5609
5609
|
}
|
|
5610
5610
|
const ve = I.body || I.documentElement;
|
|
5611
|
-
return f && O && ve.insertBefore(n.createTextNode(O), ve.childNodes[0] || null), Dt ===
|
|
5611
|
+
return f && O && ve.insertBefore(n.createTextNode(O), ve.childNodes[0] || null), Dt === at ? le.call(I, ye ? "html" : "body")[0] : ye ? I.documentElement : ve;
|
|
5612
5612
|
}, po = function(f) {
|
|
5613
5613
|
return ae.call(
|
|
5614
5614
|
f.ownerDocument || f,
|
|
@@ -5621,20 +5621,20 @@ function vs() {
|
|
|
5621
5621
|
return f instanceof m && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof d) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
|
|
5622
5622
|
}, go = function(f) {
|
|
5623
5623
|
return typeof s == "function" && f instanceof s;
|
|
5624
|
-
},
|
|
5624
|
+
}, lt = function(f, I, O) {
|
|
5625
5625
|
B[f] && Rn(B[f], (ne) => {
|
|
5626
5626
|
ne.call(e, I, O, Rt);
|
|
5627
5627
|
});
|
|
5628
5628
|
}, yo = function(f) {
|
|
5629
5629
|
let I = null;
|
|
5630
|
-
if (
|
|
5631
|
-
return
|
|
5630
|
+
if (lt("beforeSanitizeElements", f, null), ho(f))
|
|
5631
|
+
return et(f), !0;
|
|
5632
5632
|
const O = ue(f.nodeName);
|
|
5633
|
-
if (
|
|
5633
|
+
if (lt("uponSanitizeElement", f, {
|
|
5634
5634
|
tagName: O,
|
|
5635
5635
|
allowedTags: u
|
|
5636
|
-
}), f.hasChildNodes() && !go(f.firstElementChild) && Ce(/<[/\w]/g, f.innerHTML) && Ce(/<[/\w]/g, f.textContent) || f.nodeType === nn.progressingInstruction ||
|
|
5637
|
-
return
|
|
5636
|
+
}), f.hasChildNodes() && !go(f.firstElementChild) && Ce(/<[/\w]/g, f.innerHTML) && Ce(/<[/\w]/g, f.textContent) || f.nodeType === nn.progressingInstruction || Pe && f.nodeType === nn.comment && Ce(/<[/\w]/g, f.data))
|
|
5637
|
+
return et(f), !0;
|
|
5638
5638
|
if (!u[O] || P[O]) {
|
|
5639
5639
|
if (!P[O] && vo(O) && (y.tagNameCheck instanceof RegExp && Ce(y.tagNameCheck, O) || y.tagNameCheck instanceof Function && y.tagNameCheck(O)))
|
|
5640
5640
|
return !1;
|
|
@@ -5642,24 +5642,24 @@ function vs() {
|
|
|
5642
5642
|
const ne = R(f) || f.parentNode, ve = S(f) || f.childNodes;
|
|
5643
5643
|
if (ve && ne) {
|
|
5644
5644
|
const de = ve.length;
|
|
5645
|
-
for (let
|
|
5646
|
-
const
|
|
5647
|
-
|
|
5645
|
+
for (let Ee = de - 1; Ee >= 0; --Ee) {
|
|
5646
|
+
const tt = A(ve[Ee], !0);
|
|
5647
|
+
tt.__removalCount = (f.__removalCount || 0) + 1, ne.insertBefore(tt, v(f));
|
|
5648
5648
|
}
|
|
5649
5649
|
}
|
|
5650
5650
|
}
|
|
5651
|
-
return
|
|
5651
|
+
return et(f), !0;
|
|
5652
5652
|
}
|
|
5653
|
-
return f instanceof l && !Bs(f) || (O === "noscript" || O === "noembed" || O === "noframes") && Ce(/<\/no(script|embed|frames)/i, f.innerHTML) ? (
|
|
5653
|
+
return f instanceof l && !Bs(f) || (O === "noscript" || O === "noembed" || O === "noframes") && Ce(/<\/no(script|embed|frames)/i, f.innerHTML) ? (et(f), !0) : (V && f.nodeType === nn.text && (I = f.textContent, Rn([J, he, ge], (ne) => {
|
|
5654
5654
|
I = Qt(I, ne, " ");
|
|
5655
5655
|
}), f.textContent !== I && (Jt(e.removed, {
|
|
5656
5656
|
element: f.cloneNode()
|
|
5657
|
-
}), f.textContent = I)),
|
|
5657
|
+
}), f.textContent = I)), lt("afterSanitizeElements", f, null), !1);
|
|
5658
5658
|
}, bo = function(f, I, O) {
|
|
5659
5659
|
if (to && (I === "id" || I === "name") && (O in n || O in Ds))
|
|
5660
5660
|
return !1;
|
|
5661
|
-
if (!(L && !_[I] && Ce(
|
|
5662
|
-
if (!(C && Ce(
|
|
5661
|
+
if (!(L && !_[I] && Ce(Ze, I))) {
|
|
5662
|
+
if (!(C && Ce(it, I))) {
|
|
5663
5663
|
if (!b[I] || _[I]) {
|
|
5664
5664
|
if (
|
|
5665
5665
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -5670,9 +5670,9 @@ function vs() {
|
|
|
5670
5670
|
I === "is" && y.allowCustomizedBuiltInElements && (y.tagNameCheck instanceof RegExp && Ce(y.tagNameCheck, O) || y.tagNameCheck instanceof Function && y.tagNameCheck(O)))
|
|
5671
5671
|
) return !1;
|
|
5672
5672
|
} else if (!tr[I]) {
|
|
5673
|
-
if (!Ce(He, Qt(O,
|
|
5673
|
+
if (!Ce(He, Qt(O, Qe, ""))) {
|
|
5674
5674
|
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" && rf(O, "data:") === 0 && oo[f])) {
|
|
5675
|
-
if (!(x && !Ce(
|
|
5675
|
+
if (!(x && !Ce(Je, Qt(O, Qe, "")))) {
|
|
5676
5676
|
if (O)
|
|
5677
5677
|
return !1;
|
|
5678
5678
|
}
|
|
@@ -5685,7 +5685,7 @@ function vs() {
|
|
|
5685
5685
|
}, vo = function(f) {
|
|
5686
5686
|
return f !== "annotation-xml" && ui(f, _t);
|
|
5687
5687
|
}, wo = function(f) {
|
|
5688
|
-
|
|
5688
|
+
lt("beforeSanitizeAttributes", f, null);
|
|
5689
5689
|
const {
|
|
5690
5690
|
attributes: I
|
|
5691
5691
|
} = f;
|
|
@@ -5701,11 +5701,11 @@ function vs() {
|
|
|
5701
5701
|
for (; ne--; ) {
|
|
5702
5702
|
const ve = I[ne], {
|
|
5703
5703
|
name: de,
|
|
5704
|
-
namespaceURI:
|
|
5705
|
-
value:
|
|
5704
|
+
namespaceURI: Ee,
|
|
5705
|
+
value: tt
|
|
5706
5706
|
} = ve, qt = ue(de);
|
|
5707
|
-
let ke = de === "value" ?
|
|
5708
|
-
if (O.attrName = qt, O.attrValue = ke, O.keepAttr = !0, O.forceKeepAttr = void 0,
|
|
5707
|
+
let ke = de === "value" ? tt : of(tt);
|
|
5708
|
+
if (O.attrName = qt, O.attrValue = ke, O.keepAttr = !0, O.forceKeepAttr = void 0, lt("uponSanitizeAttribute", f, O), ke = O.attrValue, Pe && Ce(/((--!?|])>)|<\/(style|title)/i, ke)) {
|
|
5709
5709
|
On(de, f);
|
|
5710
5710
|
continue;
|
|
5711
5711
|
}
|
|
@@ -5720,7 +5720,7 @@ function vs() {
|
|
|
5720
5720
|
});
|
|
5721
5721
|
const _o = ue(f.nodeName);
|
|
5722
5722
|
if (bo(_o, qt, ke)) {
|
|
5723
|
-
if (no && (qt === "id" || qt === "name") && (On(de, f), ke = Ls + ke), U && typeof w == "object" && typeof w.getAttributeType == "function" && !
|
|
5723
|
+
if (no && (qt === "id" || qt === "name") && (On(de, f), ke = Ls + ke), U && typeof w == "object" && typeof w.getAttributeType == "function" && !Ee)
|
|
5724
5724
|
switch (w.getAttributeType(_o, qt)) {
|
|
5725
5725
|
case "TrustedHTML": {
|
|
5726
5726
|
ke = U.createHTML(ke);
|
|
@@ -5732,18 +5732,18 @@ function vs() {
|
|
|
5732
5732
|
}
|
|
5733
5733
|
}
|
|
5734
5734
|
try {
|
|
5735
|
-
|
|
5735
|
+
Ee ? f.setAttributeNS(Ee, de, ke) : f.setAttribute(de, ke), ho(f) ? et(f) : li(e.removed);
|
|
5736
5736
|
} catch {
|
|
5737
5737
|
}
|
|
5738
5738
|
}
|
|
5739
5739
|
}
|
|
5740
|
-
|
|
5740
|
+
lt("afterSanitizeAttributes", f, null);
|
|
5741
5741
|
}, Ns = function D(f) {
|
|
5742
5742
|
let I = null;
|
|
5743
5743
|
const O = po(f);
|
|
5744
|
-
for (
|
|
5745
|
-
|
|
5746
|
-
|
|
5744
|
+
for (lt("beforeSanitizeShadowDOM", f, null); I = O.nextNode(); )
|
|
5745
|
+
lt("uponSanitizeShadowNode", I, null), !yo(I) && (I.content instanceof i && D(I.content), wo(I));
|
|
5746
|
+
lt("afterSanitizeShadowDOM", f, null);
|
|
5747
5747
|
};
|
|
5748
5748
|
return e.sanitize = function(D) {
|
|
5749
5749
|
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, O = null, ne = null, ve = null;
|
|
@@ -5757,8 +5757,8 @@ function vs() {
|
|
|
5757
5757
|
return D;
|
|
5758
5758
|
if (be || or(f), e.removed = [], typeof D == "string" && (Wt = !1), Wt) {
|
|
5759
5759
|
if (D.nodeName) {
|
|
5760
|
-
const
|
|
5761
|
-
if (!u[
|
|
5760
|
+
const tt = ue(D.nodeName);
|
|
5761
|
+
if (!u[tt] || P[tt])
|
|
5762
5762
|
throw en("root node is forbidden and cannot be sanitized in-place");
|
|
5763
5763
|
}
|
|
5764
5764
|
} else if (D instanceof s)
|
|
@@ -5770,7 +5770,7 @@ function vs() {
|
|
|
5770
5770
|
if (I = mo(D), !I)
|
|
5771
5771
|
return Ot ? null : En ? Y : "";
|
|
5772
5772
|
}
|
|
5773
|
-
I &&
|
|
5773
|
+
I && st && et(I.firstChild);
|
|
5774
5774
|
const de = po(Wt ? D : I);
|
|
5775
5775
|
for (; ne = de.nextNode(); )
|
|
5776
5776
|
yo(ne) || (ne.content instanceof i && Ns(ne.content), wo(ne));
|
|
@@ -5778,17 +5778,17 @@ function vs() {
|
|
|
5778
5778
|
return D;
|
|
5779
5779
|
if (Ot) {
|
|
5780
5780
|
if (Pn)
|
|
5781
|
-
for (ve =
|
|
5781
|
+
for (ve = $e.call(I.ownerDocument); I.firstChild; )
|
|
5782
5782
|
ve.appendChild(I.firstChild);
|
|
5783
5783
|
else
|
|
5784
5784
|
ve = I;
|
|
5785
5785
|
return (b.shadowroot || b.shadowrootmode) && (ve = X.call(r, ve, !0)), ve;
|
|
5786
5786
|
}
|
|
5787
|
-
let
|
|
5788
|
-
return ye && u["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Ce(bs, I.ownerDocument.doctype.name) && (
|
|
5789
|
-
` +
|
|
5790
|
-
|
|
5791
|
-
}), U && En ? U.createHTML(
|
|
5787
|
+
let Ee = ye ? I.outerHTML : I.innerHTML;
|
|
5788
|
+
return ye && u["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Ce(bs, I.ownerDocument.doctype.name) && (Ee = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
5789
|
+
` + Ee), V && Rn([J, he, ge], (tt) => {
|
|
5790
|
+
Ee = Qt(Ee, tt, " ");
|
|
5791
|
+
}), U && En ? U.createHTML(Ee) : Ee;
|
|
5792
5792
|
}, e.setConfig = function() {
|
|
5793
5793
|
let D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5794
5794
|
or(D), be = !0;
|
|
@@ -5859,7 +5859,7 @@ function Sf(t, e) {
|
|
|
5859
5859
|
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
5860
5860
|
}
|
|
5861
5861
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5862
|
-
const br = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength),
|
|
5862
|
+
const br = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), nt = (t, e) => t << 32 - e | t >>> e;
|
|
5863
5863
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
5864
5864
|
function kf(t) {
|
|
5865
5865
|
if (typeof t != "string")
|
|
@@ -6027,12 +6027,12 @@ class Lf extends Ef {
|
|
|
6027
6027
|
for (let m = 0; m < 16; m++, n += 4)
|
|
6028
6028
|
ht[m] = e.getUint32(n, !1);
|
|
6029
6029
|
for (let m = 16; m < 64; m++) {
|
|
6030
|
-
const g = ht[m - 15], w = ht[m - 2], k =
|
|
6030
|
+
const g = ht[m - 15], w = ht[m - 2], k = nt(g, 7) ^ nt(g, 18) ^ g >>> 3, A = nt(w, 17) ^ nt(w, 19) ^ w >>> 10;
|
|
6031
6031
|
ht[m] = A + ht[m - 7] + k + ht[m - 16] | 0;
|
|
6032
6032
|
}
|
|
6033
6033
|
let { A: r, B: o, C: i, D: a, E: s, F: l, G: c, H: d } = this;
|
|
6034
6034
|
for (let m = 0; m < 64; m++) {
|
|
6035
|
-
const g =
|
|
6035
|
+
const g = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), w = d + g + Af(s, l, c) + xf[m] + ht[m] | 0, A = (nt(r, 2) ^ nt(r, 13) ^ nt(r, 22)) + Pf(r, o, i) | 0;
|
|
6036
6036
|
d = c, c = l, l = s, s = a + w | 0, a = i, i = o, o = r, r = w + A | 0;
|
|
6037
6037
|
}
|
|
6038
6038
|
r = r + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, s = s + this.E | 0, l = l + this.F | 0, c = c + this.G | 0, d = d + this.H | 0, this.set(r, o, i, a, s, l, c, d);
|
|
@@ -6118,7 +6118,7 @@ function Cs(t) {
|
|
|
6118
6118
|
);
|
|
6119
6119
|
e.didInitialize = !0, e.authenticated = !1, o = _t();
|
|
6120
6120
|
var p = ["default", "cordova", "cordova-native"];
|
|
6121
|
-
if (u && p.indexOf(u.adapter) > -1 ? n =
|
|
6121
|
+
if (u && p.indexOf(u.adapter) > -1 ? n = it(u.adapter) : u && typeof u.adapter == "object" ? n = u.adapter : window.Cordova || window.cordova ? n = it("cordova") : n = it(), u) {
|
|
6122
6122
|
if (typeof u.useNonce < "u" && (l = u.useNonce), typeof u.checkLoginIframe < "u" && (i.enable = u.checkLoginIframe), u.checkLoginIframeInterval && (i.interval = u.checkLoginIframeInterval), u.onLoad === "login-required" && (e.loginRequired = !0), u.responseMode)
|
|
6123
6123
|
if (u.responseMode === "query" || u.responseMode === "fragment")
|
|
6124
6124
|
e.responseMode = u.responseMode;
|
|
@@ -6162,22 +6162,22 @@ function Cs(t) {
|
|
|
6162
6162
|
var L = function(V) {
|
|
6163
6163
|
V || (N.prompt = "none"), u && u.locale && (N.locale = u.locale), e.login(N).then(function() {
|
|
6164
6164
|
T.setSuccess();
|
|
6165
|
-
}).catch(function(
|
|
6166
|
-
T.setError(
|
|
6165
|
+
}).catch(function(Pe) {
|
|
6166
|
+
T.setError(Pe);
|
|
6167
6167
|
});
|
|
6168
6168
|
}, x = function() {
|
|
6169
|
-
var V = document.createElement("iframe"),
|
|
6169
|
+
var V = document.createElement("iframe"), Pe = e.createLoginUrl({
|
|
6170
6170
|
prompt: "none",
|
|
6171
6171
|
redirectUri: e.silentCheckSsoRedirectUri
|
|
6172
6172
|
});
|
|
6173
|
-
V.setAttribute("src",
|
|
6173
|
+
V.setAttribute("src", Pe), V.setAttribute(
|
|
6174
6174
|
"sandbox",
|
|
6175
6175
|
"allow-storage-access-by-user-activation allow-scripts allow-same-origin"
|
|
6176
6176
|
), V.setAttribute("title", "keycloak-silent-check-sso"), V.style.display = "none", document.body.appendChild(V);
|
|
6177
6177
|
var ye = function(be) {
|
|
6178
6178
|
if (!(be.origin !== window.location.origin || V.contentWindow !== be.source)) {
|
|
6179
|
-
var
|
|
6180
|
-
S(
|
|
6179
|
+
var st = ae(be.data);
|
|
6180
|
+
S(st, T), document.body.removeChild(V), window.removeEventListener("message", ye);
|
|
6181
6181
|
}
|
|
6182
6182
|
};
|
|
6183
6183
|
window.addEventListener("message", ye);
|
|
@@ -6237,7 +6237,7 @@ function Cs(t) {
|
|
|
6237
6237
|
return document.addEventListener("readystatechange", x), x(), L.promise;
|
|
6238
6238
|
}
|
|
6239
6239
|
return y.then(function() {
|
|
6240
|
-
C().then(
|
|
6240
|
+
C().then(Ze).then(_).catch(function(L) {
|
|
6241
6241
|
b.setError(L);
|
|
6242
6242
|
});
|
|
6243
6243
|
}), y.catch(function(L) {
|
|
@@ -6460,8 +6460,8 @@ function Cs(t) {
|
|
|
6460
6460
|
e.onAuthError && e.onAuthError(), p && p.setError();
|
|
6461
6461
|
}, x.send(C);
|
|
6462
6462
|
}
|
|
6463
|
-
function N(V,
|
|
6464
|
-
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V,
|
|
6463
|
+
function N(V, Pe, ye, be) {
|
|
6464
|
+
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Pe, ye, P), l && e.idTokenParsed && e.idTokenParsed.nonce != u.storedNonce ? (c("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : be && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
6465
6465
|
}
|
|
6466
6466
|
}
|
|
6467
6467
|
function R(u) {
|
|
@@ -6593,13 +6593,13 @@ function Cs(t) {
|
|
|
6593
6593
|
return b;
|
|
6594
6594
|
}
|
|
6595
6595
|
function ae(u) {
|
|
6596
|
-
var p =
|
|
6596
|
+
var p = $e(u);
|
|
6597
6597
|
if (p) {
|
|
6598
6598
|
var b = o.get(p.state);
|
|
6599
6599
|
return b && (p.valid = !0, p.redirectUri = b.redirectUri, p.storedNonce = b.nonce, p.prompt = b.prompt, p.pkceCodeVerifier = b.pkceCodeVerifier, p.loginOptions = b.loginOptions), p;
|
|
6600
6600
|
}
|
|
6601
6601
|
}
|
|
6602
|
-
function
|
|
6602
|
+
function $e(u) {
|
|
6603
6603
|
var p;
|
|
6604
6604
|
switch (e.flow) {
|
|
6605
6605
|
case "standard":
|
|
@@ -6745,7 +6745,7 @@ function Cs(t) {
|
|
|
6745
6745
|
u.setSuccess();
|
|
6746
6746
|
return u.promise;
|
|
6747
6747
|
}
|
|
6748
|
-
function
|
|
6748
|
+
function Ze() {
|
|
6749
6749
|
var u = X();
|
|
6750
6750
|
if (i.enable || e.silentCheckSsoRedirectUri) {
|
|
6751
6751
|
var p = document.createElement("iframe");
|
|
@@ -6775,7 +6775,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6775
6775
|
"Timeout when waiting for 3rd party check iframe message."
|
|
6776
6776
|
);
|
|
6777
6777
|
}
|
|
6778
|
-
function
|
|
6778
|
+
function it(u) {
|
|
6779
6779
|
if (!u || u == "default")
|
|
6780
6780
|
return {
|
|
6781
6781
|
login: function(_) {
|
|
@@ -6860,23 +6860,23 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6860
6860
|
x,
|
|
6861
6861
|
"_blank",
|
|
6862
6862
|
L
|
|
6863
|
-
), V = !1,
|
|
6864
|
-
|
|
6863
|
+
), V = !1, Pe = !1, ye = function() {
|
|
6864
|
+
Pe = !0, N.close();
|
|
6865
6865
|
};
|
|
6866
6866
|
return N.addEventListener("loadstart", function(be) {
|
|
6867
6867
|
if (be.url.indexOf(P()) == 0) {
|
|
6868
|
-
var
|
|
6869
|
-
S(
|
|
6868
|
+
var st = ae(be.url);
|
|
6869
|
+
S(st, C), ye(), V = !0;
|
|
6870
6870
|
}
|
|
6871
6871
|
}), N.addEventListener("loaderror", function(be) {
|
|
6872
6872
|
if (!V)
|
|
6873
6873
|
if (be.url.indexOf(P()) == 0) {
|
|
6874
|
-
var
|
|
6875
|
-
S(
|
|
6874
|
+
var st = ae(be.url);
|
|
6875
|
+
S(st, C), ye(), V = !0;
|
|
6876
6876
|
} else
|
|
6877
6877
|
C.setError(), ye();
|
|
6878
6878
|
}), N.addEventListener("exit", function(be) {
|
|
6879
|
-
|
|
6879
|
+
Pe || C.setError({
|
|
6880
6880
|
reason: "closed_by_user"
|
|
6881
6881
|
});
|
|
6882
6882
|
}), C.promise;
|
|
@@ -6904,8 +6904,8 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6904
6904
|
return N.addEventListener("loadstart", function(V) {
|
|
6905
6905
|
if (V.url.indexOf(P()) == 0) {
|
|
6906
6906
|
N.close();
|
|
6907
|
-
var
|
|
6908
|
-
S(
|
|
6907
|
+
var Pe = ae(V.url);
|
|
6908
|
+
S(Pe, C);
|
|
6909
6909
|
}
|
|
6910
6910
|
}), C.promise;
|
|
6911
6911
|
},
|
|
@@ -6965,9 +6965,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6965
6965
|
};
|
|
6966
6966
|
throw "invalid adapter type: " + u;
|
|
6967
6967
|
}
|
|
6968
|
-
var
|
|
6969
|
-
if (!(this instanceof
|
|
6970
|
-
return new
|
|
6968
|
+
var Je = function() {
|
|
6969
|
+
if (!(this instanceof Je))
|
|
6970
|
+
return new Je();
|
|
6971
6971
|
localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
|
|
6972
6972
|
var u = this;
|
|
6973
6973
|
function p() {
|
|
@@ -6995,9 +6995,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6995
6995
|
var T = "kc-callback-" + b.state;
|
|
6996
6996
|
b.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(T, JSON.stringify(b));
|
|
6997
6997
|
};
|
|
6998
|
-
},
|
|
6999
|
-
if (!(this instanceof
|
|
7000
|
-
return new
|
|
6998
|
+
}, Qe = function() {
|
|
6999
|
+
if (!(this instanceof Qe))
|
|
7000
|
+
return new Qe();
|
|
7001
7001
|
var u = this;
|
|
7002
7002
|
u.get = function(y) {
|
|
7003
7003
|
if (y) {
|
|
@@ -7032,10 +7032,10 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7032
7032
|
};
|
|
7033
7033
|
function _t() {
|
|
7034
7034
|
try {
|
|
7035
|
-
return new
|
|
7035
|
+
return new Je();
|
|
7036
7036
|
} catch {
|
|
7037
7037
|
}
|
|
7038
|
-
return new
|
|
7038
|
+
return new Qe();
|
|
7039
7039
|
}
|
|
7040
7040
|
function He(u) {
|
|
7041
7041
|
return function() {
|
|
@@ -7263,7 +7263,7 @@ var As = { exports: {} };
|
|
|
7263
7263
|
return v.levels[B] === void 0 && (B = void 0), B;
|
|
7264
7264
|
}
|
|
7265
7265
|
}
|
|
7266
|
-
function
|
|
7266
|
+
function $e() {
|
|
7267
7267
|
if (!(typeof window === n || !Y)) {
|
|
7268
7268
|
try {
|
|
7269
7269
|
window.localStorage.removeItem(Y);
|
|
@@ -7295,7 +7295,7 @@ var As = { exports: {} };
|
|
|
7295
7295
|
}, v.setDefaultLevel = function(B) {
|
|
7296
7296
|
R = le(B), ae() || v.setLevel(B, !1);
|
|
7297
7297
|
}, v.resetLevel = function() {
|
|
7298
|
-
U = null,
|
|
7298
|
+
U = null, $e(), d.call(v);
|
|
7299
7299
|
}, v.enableAll = function(B) {
|
|
7300
7300
|
v.setLevel(v.levels.TRACE, B);
|
|
7301
7301
|
}, v.disableAll = function(B) {
|
|
@@ -7523,33 +7523,29 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7523
7523
|
localStorage.removeItem(Qf);
|
|
7524
7524
|
}), xt(() => {
|
|
7525
7525
|
m.value = a();
|
|
7526
|
-
}), (g, w) => ($(), H(
|
|
7527
|
-
|
|
7526
|
+
}), (g, w) => ($(), H(rt, null, [
|
|
7527
|
+
De(ct, {
|
|
7528
7528
|
button: !0,
|
|
7529
7529
|
size: "sm",
|
|
7530
7530
|
icon: "text_increase",
|
|
7531
7531
|
tooltip: "Tamanho da fonte",
|
|
7532
7532
|
onClick: r
|
|
7533
7533
|
}),
|
|
7534
|
-
e.value ? ($(), H(
|
|
7534
|
+
e.value ? ($(), H(rt, { key: 0 }, [
|
|
7535
7535
|
M("div", {
|
|
7536
7536
|
class: Q(["border", "fadein", "font-size-wrapper"]),
|
|
7537
7537
|
style: Tt({ zIndex: n.value + 1 })
|
|
7538
7538
|
}, [
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
icon: "remove",
|
|
7542
|
-
size: "sm",
|
|
7539
|
+
M("div", {
|
|
7540
|
+
class: "icon",
|
|
7543
7541
|
onClick: c
|
|
7544
7542
|
}),
|
|
7545
|
-
M("span", Jf,
|
|
7543
|
+
M("span", Jf, Me(m.value.toLocaleString("pt-br", {
|
|
7546
7544
|
style: "percent",
|
|
7547
7545
|
maximumFractionDigits: 0
|
|
7548
7546
|
})), 1),
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
icon: "add",
|
|
7552
|
-
size: "sm",
|
|
7547
|
+
M("div", {
|
|
7548
|
+
class: "icon add",
|
|
7553
7549
|
onClick: l
|
|
7554
7550
|
}),
|
|
7555
7551
|
M("span", {
|
|
@@ -7565,7 +7561,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7565
7561
|
], 64)) : se("", !0)
|
|
7566
7562
|
], 64));
|
|
7567
7563
|
}
|
|
7568
|
-
}), tm = /* @__PURE__ */ Ft(em, [["__scopeId", "data-v-
|
|
7564
|
+
}), tm = /* @__PURE__ */ Ft(em, [["__scopeId", "data-v-af78ca17"]]), nm = { class: "nav-menu-header" }, rm = { class: "nav-menu-inner-close" }, om = { class: "main-content" }, im = { class: "menu-button" }, sm = { class: "page-title" }, am = { class: "action" }, lm = { id: "content" }, um = {
|
|
7569
7565
|
key: 0,
|
|
7570
7566
|
id: "logging-out"
|
|
7571
7567
|
}, cm = { class: "info-fazenda" }, dm = { class: "font-bold" }, fm = { class: "info-endereco text-muted" }, mm = /* @__PURE__ */ Ve({
|
|
@@ -7613,7 +7609,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7613
7609
|
M("div", nm, [
|
|
7614
7610
|
v[0] || (v[0] = M("span", null, "Menu", -1)),
|
|
7615
7611
|
M("div", rm, [
|
|
7616
|
-
|
|
7612
|
+
De(ct, {
|
|
7617
7613
|
button: !0,
|
|
7618
7614
|
icon: "close",
|
|
7619
7615
|
onClick: oe(a)
|
|
@@ -7628,33 +7624,33 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7628
7624
|
class: Q({ "shadow-bottom": oe(i) > 72 })
|
|
7629
7625
|
}, [
|
|
7630
7626
|
M("div", im, [
|
|
7631
|
-
|
|
7627
|
+
De(ct, {
|
|
7632
7628
|
button: !0,
|
|
7633
7629
|
icon: oe(r) ? "menu_open" : "menu",
|
|
7634
7630
|
tooltip: "Menu",
|
|
7635
7631
|
onClick: oe(a)
|
|
7636
7632
|
}, null, 8, ["icon", "onClick"])
|
|
7637
7633
|
]),
|
|
7638
|
-
M("div", sm,
|
|
7634
|
+
M("div", sm, Me(oe(g) ? "Saindo..." : oe(o)), 1),
|
|
7639
7635
|
v[1] || (v[1] = M("span", { class: "sep" }, null, -1)),
|
|
7640
7636
|
M("div", am, [
|
|
7641
|
-
|
|
7637
|
+
De(ct, {
|
|
7642
7638
|
button: !0,
|
|
7643
7639
|
size: "sm",
|
|
7644
7640
|
icon: oe(s) ? "light_mode" : "dark_mode",
|
|
7645
7641
|
tooltip: oe(s) ? "Modo claro" : "Modo escuro",
|
|
7646
7642
|
onClick: oe(l)
|
|
7647
7643
|
}, null, 8, ["icon", "tooltip", "onClick"]),
|
|
7648
|
-
|
|
7649
|
-
e.auth ? ($(), H(
|
|
7650
|
-
e.auth.isAuthenticated ? ($(), ce(
|
|
7644
|
+
De(tm),
|
|
7645
|
+
e.auth ? ($(), H(rt, { key: 0 }, [
|
|
7646
|
+
e.auth.isAuthenticated ? ($(), ce(ct, {
|
|
7651
7647
|
key: 0,
|
|
7652
7648
|
button: !0,
|
|
7653
7649
|
size: "sm",
|
|
7654
7650
|
icon: "logout",
|
|
7655
7651
|
tooltip: "Sair",
|
|
7656
7652
|
onClick: oe(d)
|
|
7657
|
-
}, null, 8, ["onClick"])) : ($(), ce(
|
|
7653
|
+
}, null, 8, ["onClick"])) : ($(), ce(ct, {
|
|
7658
7654
|
key: 1,
|
|
7659
7655
|
button: !0,
|
|
7660
7656
|
size: "sm",
|
|
@@ -7667,7 +7663,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7667
7663
|
], 2),
|
|
7668
7664
|
M("div", lm, [
|
|
7669
7665
|
oe(g) ? ($(), H("div", um, [
|
|
7670
|
-
|
|
7666
|
+
De(ki)
|
|
7671
7667
|
])) : fe(E.$slots, "content", { key: 1 }, void 0, !0)
|
|
7672
7668
|
])
|
|
7673
7669
|
]),
|
|
@@ -7688,7 +7684,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7688
7684
|
])
|
|
7689
7685
|
], 2));
|
|
7690
7686
|
}
|
|
7691
|
-
}), Em = /* @__PURE__ */ Ft(mm, [["__scopeId", "data-v-
|
|
7687
|
+
}), Em = /* @__PURE__ */ Ft(mm, [["__scopeId", "data-v-8d67809b"]]), xm = /* @__PURE__ */ Ve({
|
|
7692
7688
|
__name: "PageTitle",
|
|
7693
7689
|
props: {
|
|
7694
7690
|
title: {}
|
|
@@ -8083,7 +8079,7 @@ export {
|
|
|
8083
8079
|
vm as SfButton,
|
|
8084
8080
|
ym as SfContent,
|
|
8085
8081
|
wm as SfDrawer,
|
|
8086
|
-
|
|
8082
|
+
ct as SfIcon,
|
|
8087
8083
|
Em as SfMain,
|
|
8088
8084
|
_m as SfMessage,
|
|
8089
8085
|
Sm as SfNavMenu,
|