@luizleon/sf.prefeiturasp.vuecomponents 5.0.25 → 5.0.27
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 +220 -206
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +3 -5
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/primevue/preset.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -410,7 +410,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
410
410
|
], 2)
|
|
411
411
|
], 14, fa)) : ae("", !0);
|
|
412
412
|
}
|
|
413
|
-
}),
|
|
413
|
+
}), Lm = /* @__PURE__ */ _t(ma, [["__scopeId", "data-v-79a81e53"]]), pa = { class: "sf-drawer-title" }, ha = { class: "sf-drawer-action" }, ga = /* @__PURE__ */ De({
|
|
414
414
|
__name: "Drawer",
|
|
415
415
|
props: {
|
|
416
416
|
visible: { type: Boolean, default: !1 },
|
|
@@ -523,7 +523,7 @@ const Pi = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
523
523
|
], 6)) : ae("", !0)
|
|
524
524
|
]));
|
|
525
525
|
}
|
|
526
|
-
}), va = ["data-icon"],
|
|
526
|
+
}), va = ["data-icon"], xm = /* @__PURE__ */ De({
|
|
527
527
|
__name: "Message",
|
|
528
528
|
props: {
|
|
529
529
|
color: { default: "info" },
|
|
@@ -760,7 +760,7 @@ function Ko(t, e = "", n = {}) {
|
|
|
760
760
|
function zo(t, e = !0) {
|
|
761
761
|
return Array.isArray(t) && (e || t.length !== 0);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Li(t) {
|
|
764
764
|
return Q(t) && !isNaN(t);
|
|
765
765
|
}
|
|
766
766
|
function Pa(t = "") {
|
|
@@ -779,26 +779,26 @@ function ln(t) {
|
|
|
779
779
|
function Ea(t) {
|
|
780
780
|
return Re(t, !1) ? t[0].toUpperCase() + t.slice(1) : t;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function xi(t) {
|
|
783
783
|
return Re(t) ? t.replace(/(_)/g, "-").replace(/[A-Z]/g, (e, n) => n === 0 ? e : "-" + e.toLowerCase()).toLowerCase() : t;
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function Lr(t) {
|
|
786
786
|
return Re(t) ? t.replace(/[A-Z]/g, (e, n) => n === 0 ? e : "." + e.toLowerCase()).toLowerCase() : t;
|
|
787
787
|
}
|
|
788
788
|
var Dn = {};
|
|
789
|
-
function
|
|
789
|
+
function La(t = "pui_id_") {
|
|
790
790
|
return Dn.hasOwnProperty(t) || (Dn[t] = 0), Dn[t]++, `${t}${Dn[t]}`;
|
|
791
791
|
}
|
|
792
792
|
function qn() {
|
|
793
793
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
|
|
794
|
-
return
|
|
794
|
+
return La(t);
|
|
795
795
|
}
|
|
796
|
-
var
|
|
796
|
+
var xa = Object.defineProperty, Oa = Object.defineProperties, $a = Object.getOwnPropertyDescriptors, Yn = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, xr = (t, e, n) => e in t ? xa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Yt = (t, e) => {
|
|
797
797
|
for (var n in e || (e = {}))
|
|
798
|
-
Oi.call(e, n) &&
|
|
798
|
+
Oi.call(e, n) && xr(t, n, e[n]);
|
|
799
799
|
if (Yn)
|
|
800
800
|
for (var n of Yn(e))
|
|
801
|
-
$i.call(e, n) &&
|
|
801
|
+
$i.call(e, n) && xr(t, n, e[n]);
|
|
802
802
|
return t;
|
|
803
803
|
}, mo = (t, e) => Oa(t, $a(e)), Xt = (t, e) => {
|
|
804
804
|
var n = {};
|
|
@@ -816,7 +816,7 @@ function Ra(t) {
|
|
|
816
816
|
return bt(t) && t.hasOwnProperty("value") && t.hasOwnProperty("type") ? t.value : t;
|
|
817
817
|
}
|
|
818
818
|
function $r(t, e = "") {
|
|
819
|
-
return ["opacity", "z-index", "line-height", "font-weight", "flex", "flex-grow", "flex-shrink", "order"].some((o) => e.endsWith(o)) ? t : `${t}`.trim().split(" ").map((i) =>
|
|
819
|
+
return ["opacity", "z-index", "line-height", "font-weight", "flex", "flex-grow", "flex-shrink", "order"].some((o) => e.endsWith(o)) ? t : `${t}`.trim().split(" ").map((i) => Li(i) ? `${i}px` : i).join(" ");
|
|
820
820
|
}
|
|
821
821
|
function Da(t) {
|
|
822
822
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
@@ -833,12 +833,12 @@ function Ri(t, e = "", n = "", o = [], r) {
|
|
|
833
833
|
if (dt(a, i)) {
|
|
834
834
|
const s = a.replaceAll(i, (d) => {
|
|
835
835
|
const g = d.replace(/{|}/g, "").split(".").filter((w) => !o.some((k) => dt(w, k)));
|
|
836
|
-
return `var(${Mi(n,
|
|
836
|
+
return `var(${Mi(n, xi(g.join("-")))}${Q(r) ? `, ${r}` : ""})`;
|
|
837
837
|
}), l = /(\d+\s+[\+\-\*\/]\s+\d+)/g, u = /var\([^)]+\)/g;
|
|
838
838
|
return dt(s.replace(u, "0"), l) ? `calc(${s})` : s;
|
|
839
839
|
}
|
|
840
840
|
return $r(a, e);
|
|
841
|
-
} else if (
|
|
841
|
+
} else if (Li(t))
|
|
842
842
|
return $r(t, e);
|
|
843
843
|
}
|
|
844
844
|
function Ba(t, e, n) {
|
|
@@ -857,7 +857,7 @@ var po = (...t) => Na(oe.getTheme(), ...t), Na = (t = {}, e, n, o = "variable")
|
|
|
857
857
|
function Ua(t, e = {}) {
|
|
858
858
|
const n = oe.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (u, d = "") => Object.entries(u).reduce(
|
|
859
859
|
(m, [g, w]) => {
|
|
860
|
-
const k = dt(g, i) ? Po(d) : Po(d,
|
|
860
|
+
const k = dt(g, i) ? Po(d) : Po(d, xi(g)), A = Ra(w);
|
|
861
861
|
if (bt(A)) {
|
|
862
862
|
const { variables: E, tokens: b } = a(A, k);
|
|
863
863
|
Or(m.tokens, b), Or(m.variables, E);
|
|
@@ -982,7 +982,7 @@ var We = {
|
|
|
982
982
|
},
|
|
983
983
|
createTokens(t = {}, e, n = "", o = "", r = {}) {
|
|
984
984
|
return Object.entries(t).forEach(([i, a]) => {
|
|
985
|
-
const s = dt(i, e.variable.excludedKeyRegex) ? n : n ? `${n}.${
|
|
985
|
+
const s = dt(i, e.variable.excludedKeyRegex) ? n : n ? `${n}.${Lr(i)}` : Lr(i), l = o ? `${o}.${i}` : i;
|
|
986
986
|
bt(a) ? this.createTokens(a, e, s, l, r) : (r[s] || (r[s] = {
|
|
987
987
|
paths: [],
|
|
988
988
|
computed(u, d = {}) {
|
|
@@ -2665,12 +2665,12 @@ var K = {
|
|
|
2665
2665
|
`);
|
|
2666
2666
|
}, El = {
|
|
2667
2667
|
root: "p-ink"
|
|
2668
|
-
},
|
|
2668
|
+
}, Ll = Pe.extend({
|
|
2669
2669
|
name: "ripple-directive",
|
|
2670
2670
|
theme: Pl,
|
|
2671
2671
|
classes: El
|
|
2672
|
-
}),
|
|
2673
|
-
style:
|
|
2672
|
+
}), xl = K.extend({
|
|
2673
|
+
style: Ll
|
|
2674
2674
|
});
|
|
2675
2675
|
function yn(t) {
|
|
2676
2676
|
"@babel/helpers - typeof";
|
|
@@ -2689,18 +2689,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2689
2689
|
}
|
|
2690
2690
|
function Ml(t, e) {
|
|
2691
2691
|
if (t) {
|
|
2692
|
-
if (typeof t == "string") return
|
|
2692
|
+
if (typeof t == "string") return Lo(t, e);
|
|
2693
2693
|
var n = {}.toString.call(t).slice(8, -1);
|
|
2694
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2694
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Lo(t, e) : void 0;
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
function Rl(t) {
|
|
2698
2698
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2699
2699
|
}
|
|
2700
2700
|
function Dl(t) {
|
|
2701
|
-
if (Array.isArray(t)) return
|
|
2701
|
+
if (Array.isArray(t)) return Lo(t);
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function Lo(t, e) {
|
|
2704
2704
|
(e == null || e > t.length) && (e = t.length);
|
|
2705
2705
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
2706
2706
|
return o;
|
|
@@ -2722,7 +2722,7 @@ function Nl(t, e) {
|
|
|
2722
2722
|
}
|
|
2723
2723
|
return (e === "string" ? String : Number)(t);
|
|
2724
2724
|
}
|
|
2725
|
-
var Ul =
|
|
2725
|
+
var Ul = xl.extend("ripple", {
|
|
2726
2726
|
watch: {
|
|
2727
2727
|
"config.ripple": function(e) {
|
|
2728
2728
|
e ? (this.createRipple(this.$host), this.bindEvents(this.$host), this.$host.setAttribute("data-pd-ripple", !0), this.$host.style.overflow = "hidden", this.$host.style.position = "relative") : (this.remove(this.$host), this.$host.removeAttribute("data-pd-ripple"));
|
|
@@ -3941,7 +3941,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
3941
3941
|
return e;
|
|
3942
3942
|
}, qo = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t), Be = (t) => {
|
|
3943
3943
|
console.warn(`${Ki} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3944
|
-
},
|
|
3944
|
+
}, Lt = (t) => {
|
|
3945
3945
|
console.error(`${Ki} ${t}`);
|
|
3946
3946
|
}, Zr = [], _c = (t) => {
|
|
3947
3947
|
Zr.includes(t) || (Zr.push(t), Be(t));
|
|
@@ -4091,20 +4091,20 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4091
4091
|
"returnFocus",
|
|
4092
4092
|
"heightAuto",
|
|
4093
4093
|
"keydownListenerCapture"
|
|
4094
|
-
], zi = (t) => Object.prototype.hasOwnProperty.call(Nt, t), Wi = (t) => kc.indexOf(t) !== -1,
|
|
4094
|
+
], zi = (t) => Object.prototype.hasOwnProperty.call(Nt, t), Wi = (t) => kc.indexOf(t) !== -1, xo = (t) => Cc[t], Tc = (t) => {
|
|
4095
4095
|
zi(t) || Be(`Unknown parameter "${t}"`);
|
|
4096
4096
|
}, Ac = (t) => {
|
|
4097
4097
|
Ic.includes(t) && Be(`The parameter "${t}" is incompatible with toasts`);
|
|
4098
4098
|
}, Pc = (t) => {
|
|
4099
|
-
|
|
4099
|
+
xo(t) && Sc(t, xo(t));
|
|
4100
4100
|
}, Ec = (t) => {
|
|
4101
4101
|
!t.backdrop && t.allowOutsideClick && Be('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4102
4102
|
for (const e in t)
|
|
4103
4103
|
Tc(e), t.toast && Ac(e), Pc(e);
|
|
4104
|
-
},
|
|
4104
|
+
}, Lc = "swal2-", Gi = (t) => {
|
|
4105
4105
|
const e = {};
|
|
4106
4106
|
for (const n in t)
|
|
4107
|
-
e[t[n]] =
|
|
4107
|
+
e[t[n]] = Lc + t[n];
|
|
4108
4108
|
return e;
|
|
4109
4109
|
}, h = Gi([
|
|
4110
4110
|
"container",
|
|
@@ -4179,7 +4179,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4179
4179
|
]), cn = Gi(["success", "warning", "info", "question", "error"]), ke = () => document.body.querySelector(`.${h.container}`), Cn = (t) => {
|
|
4180
4180
|
const e = ke();
|
|
4181
4181
|
return e ? e.querySelector(t) : null;
|
|
4182
|
-
}, ze = (t) => Cn(`.${t}`), te = () => ze(h.popup), In = () => ze(h.icon), qi = () => ze(h.title), Xn = () => ze(h["html-container"]), Yi = () => ze(h.image), Xi = () => ze(h["progress-steps"]), to = () => ze(h["validation-message"]), Ze = () => Cn(`.${h.actions} .${h.confirm}`), wt = () => Cn(`.${h.actions} .${h.deny}`),
|
|
4182
|
+
}, ze = (t) => Cn(`.${t}`), te = () => ze(h.popup), In = () => ze(h.icon), qi = () => ze(h.title), Xn = () => ze(h["html-container"]), Yi = () => ze(h.image), Xi = () => ze(h["progress-steps"]), to = () => ze(h["validation-message"]), Ze = () => Cn(`.${h.actions} .${h.confirm}`), wt = () => Cn(`.${h.actions} .${h.deny}`), xc = () => ze(h["input-label"]), Vt = () => Cn(`.${h.loader}`), Tt = () => Cn(`.${h.actions} .${h.cancel}`), Tn = () => ze(h.actions), Zi = () => ze(h.footer), no = () => ze(h["timer-progress-bar"]), Zo = () => ze(h.close), Oc = `
|
|
4183
4183
|
a[href],
|
|
4184
4184
|
area[href],
|
|
4185
4185
|
input:not([disabled]),
|
|
@@ -4361,7 +4361,7 @@ const Zt = new bc(), Ki = "SweetAlert2:", wc = (t) => {
|
|
|
4361
4361
|
}, Wc = (t) => {
|
|
4362
4362
|
const e = jc();
|
|
4363
4363
|
if (ts()) {
|
|
4364
|
-
|
|
4364
|
+
Lt("SweetAlert2 requires document to initialize");
|
|
4365
4365
|
return;
|
|
4366
4366
|
}
|
|
4367
4367
|
const n = document.createElement("div");
|
|
@@ -4440,7 +4440,7 @@ const nu = (t, e) => {
|
|
|
4440
4440
|
}), e.input && (r && iu(e), lu(e));
|
|
4441
4441
|
}, iu = (t) => {
|
|
4442
4442
|
if (!Me[t.input])
|
|
4443
|
-
return
|
|
4443
|
+
return Lt(
|
|
4444
4444
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
4445
4445
|
);
|
|
4446
4446
|
const e = ns(t.input), n = Me[t.input](e, t);
|
|
@@ -4530,7 +4530,7 @@ const cu = (t, e) => {
|
|
|
4530
4530
|
if (!e.icon && !e.iconHtml)
|
|
4531
4531
|
return Ce(o);
|
|
4532
4532
|
if (e.icon && Object.keys(cn).indexOf(e.icon) === -1)
|
|
4533
|
-
return
|
|
4533
|
+
return Lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Ce(o);
|
|
4534
4534
|
he(o), ti(o, e), ei(o, e), q(o, e.showClass.icon);
|
|
4535
4535
|
}, ei = (t, e) => {
|
|
4536
4536
|
for (const n in cn)
|
|
@@ -4626,8 +4626,8 @@ const cu = (t, e) => {
|
|
|
4626
4626
|
Au(n),
|
|
4627
4627
|
Pu(n),
|
|
4628
4628
|
Eu(n),
|
|
4629
|
-
|
|
4630
|
-
|
|
4629
|
+
Lu(n),
|
|
4630
|
+
xu(n, is)
|
|
4631
4631
|
);
|
|
4632
4632
|
}, Tu = (t) => {
|
|
4633
4633
|
const e = {};
|
|
@@ -4649,7 +4649,7 @@ const cu = (t, e) => {
|
|
|
4649
4649
|
}, Eu = (t) => {
|
|
4650
4650
|
const e = {}, n = t.querySelector("swal-icon");
|
|
4651
4651
|
return n && (At(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
|
|
4652
|
-
},
|
|
4652
|
+
}, Lu = (t) => {
|
|
4653
4653
|
const e = {}, n = t.querySelector("swal-input");
|
|
4654
4654
|
n && (At(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
|
|
4655
4655
|
const o = t.querySelectorAll("swal-input-option");
|
|
@@ -4658,7 +4658,7 @@ const cu = (t, e) => {
|
|
|
4658
4658
|
const i = r.getAttribute("value"), a = r.innerHTML;
|
|
4659
4659
|
e.inputOptions[i] = a;
|
|
4660
4660
|
})), e;
|
|
4661
|
-
},
|
|
4661
|
+
}, xu = (t, e) => {
|
|
4662
4662
|
const n = {};
|
|
4663
4663
|
for (const o in e) {
|
|
4664
4664
|
const r = e[o], i = t.querySelector(r);
|
|
@@ -4809,13 +4809,13 @@ const Bu = () => {
|
|
|
4809
4809
|
const n = te(), o = (r) => rd[e.input](n, Oo(r), e);
|
|
4810
4810
|
Yo(e.inputOptions) || Xo(e.inputOptions) ? (Ft(Ze()), kn(e.inputOptions).then((r) => {
|
|
4811
4811
|
t.hideLoading(), o(r);
|
|
4812
|
-
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) :
|
|
4812
|
+
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : Lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
4813
4813
|
}, od = (t, e) => {
|
|
4814
4814
|
const n = t.getInput();
|
|
4815
4815
|
Ce(n), kn(e.inputValue).then((o) => {
|
|
4816
4816
|
n.value = e.input === "number" ? parseFloat(o) || 0 : `${o}`, he(n), n.focus(), t.hideLoading();
|
|
4817
4817
|
}).catch((o) => {
|
|
4818
|
-
|
|
4818
|
+
Lt(`Error in inputValue promise: ${o}`), n.value = "", he(n), n.focus(), t.hideLoading();
|
|
4819
4819
|
});
|
|
4820
4820
|
}, rd = {
|
|
4821
4821
|
select: (t, e, n) => {
|
|
@@ -5021,10 +5021,10 @@ function Ed() {
|
|
|
5021
5021
|
const e = this.getInput();
|
|
5022
5022
|
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), rt(e, h.inputerror));
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5024
|
+
function Ld() {
|
|
5025
5025
|
return F.domCache.get(this).progressSteps;
|
|
5026
5026
|
}
|
|
5027
|
-
function
|
|
5027
|
+
function xd(t) {
|
|
5028
5028
|
const e = te(), n = F.innerParams.get(this);
|
|
5029
5029
|
if (!e || ft(e, n.hideClass.popup))
|
|
5030
5030
|
return Be(
|
|
@@ -5077,14 +5077,14 @@ const Md = (t) => {
|
|
|
5077
5077
|
enableButtons: Cd,
|
|
5078
5078
|
enableInput: Td,
|
|
5079
5079
|
getInput: sd,
|
|
5080
|
-
getProgressSteps:
|
|
5080
|
+
getProgressSteps: Ld,
|
|
5081
5081
|
handleAwaitingPromise: Pn,
|
|
5082
5082
|
hideLoading: ii,
|
|
5083
5083
|
isAwaitingPromise: yd,
|
|
5084
5084
|
rejectPromise: wd,
|
|
5085
5085
|
resetValidationMessage: Ed,
|
|
5086
5086
|
showValidationMessage: Pd,
|
|
5087
|
-
update:
|
|
5087
|
+
update: xd
|
|
5088
5088
|
}, Symbol.toStringTag, { value: "Module" })), Rd = (t) => {
|
|
5089
5089
|
const e = F.innerParams.get(t);
|
|
5090
5090
|
t.disableButtons(), e.input ? gs(t, "confirm") : ir(t, !0);
|
|
@@ -5096,7 +5096,7 @@ const Md = (t) => {
|
|
|
5096
5096
|
}, gs = (t, e) => {
|
|
5097
5097
|
const n = F.innerParams.get(t);
|
|
5098
5098
|
if (!n.input)
|
|
5099
|
-
return
|
|
5099
|
+
return Lt(
|
|
5100
5100
|
`The "input" parameter is needed to be set when using returnInputValueOn${qo(e)}`
|
|
5101
5101
|
);
|
|
5102
5102
|
const o = Ju(t, n);
|
|
@@ -5160,7 +5160,7 @@ const Fd = (t) => {
|
|
|
5160
5160
|
const e = {};
|
|
5161
5161
|
return typeof t[0] == "object" && !li(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
5162
5162
|
const r = t[o];
|
|
5163
|
-
typeof r == "string" || li(r) ? e[n] = r : r !== void 0 &&
|
|
5163
|
+
typeof r == "string" || li(r) ? e[n] = r : r !== void 0 && Lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
|
|
5164
5164
|
}), e;
|
|
5165
5165
|
};
|
|
5166
5166
|
function Gd(...t) {
|
|
@@ -5226,7 +5226,7 @@ const ef = (t) => {
|
|
|
5226
5226
|
getHtmlContainer: Xn,
|
|
5227
5227
|
getIcon: In,
|
|
5228
5228
|
getImage: Yi,
|
|
5229
|
-
getInputLabel:
|
|
5229
|
+
getInputLabel: xc,
|
|
5230
5230
|
getLoader: Vt,
|
|
5231
5231
|
getPopup: te,
|
|
5232
5232
|
getTimerLeft: Yd,
|
|
@@ -5234,7 +5234,7 @@ const ef = (t) => {
|
|
|
5234
5234
|
getTitle: qi,
|
|
5235
5235
|
getValidationMessage: to,
|
|
5236
5236
|
increaseTimer: Zd,
|
|
5237
|
-
isDeprecatedParameter:
|
|
5237
|
+
isDeprecatedParameter: xo,
|
|
5238
5238
|
isLoading: $c,
|
|
5239
5239
|
isTimerRunning: Jd,
|
|
5240
5240
|
isUpdatableParameter: Wi,
|
|
@@ -5359,8 +5359,8 @@ Do || (Do = function(e, n, o) {
|
|
|
5359
5359
|
Bo || (Bo = function(e, n) {
|
|
5360
5360
|
return new e(...n);
|
|
5361
5361
|
});
|
|
5362
|
-
const Un =
|
|
5363
|
-
function
|
|
5362
|
+
const Un = Le(Array.prototype.forEach), mf = Le(Array.prototype.lastIndexOf), di = Le(Array.prototype.pop), Jt = Le(Array.prototype.push), pf = Le(Array.prototype.splice), Kn = Le(String.prototype.toLowerCase), yo = Le(String.prototype.toString), fi = Le(String.prototype.match), Qt = Le(String.prototype.replace), hf = Le(String.prototype.indexOf), gf = Le(String.prototype.trim), Ge = Le(Object.prototype.hasOwnProperty), Te = Le(RegExp.prototype.test), en = vf(TypeError);
|
|
5363
|
+
function Le(t) {
|
|
5364
5364
|
return function(e) {
|
|
5365
5365
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
5366
5366
|
o[r - 1] = arguments[r];
|
|
@@ -5404,9 +5404,9 @@ function tn(t, e) {
|
|
|
5404
5404
|
const o = ff(t, e);
|
|
5405
5405
|
if (o) {
|
|
5406
5406
|
if (o.get)
|
|
5407
|
-
return
|
|
5407
|
+
return Le(o.get);
|
|
5408
5408
|
if (typeof o.value == "function")
|
|
5409
|
-
return
|
|
5409
|
+
return Le(o.value);
|
|
5410
5410
|
}
|
|
5411
5411
|
t = df(t);
|
|
5412
5412
|
}
|
|
@@ -5444,7 +5444,7 @@ const nn = {
|
|
|
5444
5444
|
document: 9
|
|
5445
5445
|
}, Ef = function() {
|
|
5446
5446
|
return typeof window > "u" ? null : window;
|
|
5447
|
-
},
|
|
5447
|
+
}, Lf = function(e, n) {
|
|
5448
5448
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
5449
5449
|
return null;
|
|
5450
5450
|
let o = null;
|
|
@@ -5545,16 +5545,16 @@ function Cs() {
|
|
|
5545
5545
|
enumerable: !0,
|
|
5546
5546
|
value: !1
|
|
5547
5547
|
}
|
|
5548
|
-
})), P = null, _ = null, C = !0,
|
|
5548
|
+
})), P = null, _ = null, C = !0, x = !0, L = !1, N = !0, V = !1, xe = !0, be = !1, we = !1, st = !1, xt = !1, En = !1, Ln = !1, lr = !0, cr = !1;
|
|
5549
5549
|
const Ms = "user-content-";
|
|
5550
5550
|
let io = !0, Wt = !1, Ot = {}, $t = null;
|
|
5551
5551
|
const ur = z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
5552
5552
|
let dr = null;
|
|
5553
5553
|
const fr = z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
5554
5554
|
let so = null;
|
|
5555
|
-
const mr = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
5555
|
+
const mr = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xn = "http://www.w3.org/1998/Math/MathML", On = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xhtml";
|
|
5556
5556
|
let Mt = at, ao = !1, lo = null;
|
|
5557
|
-
const Rs = z({}, [
|
|
5557
|
+
const Rs = z({}, [xn, On, at], yo);
|
|
5558
5558
|
let $n = z({}, ["mi", "mo", "mn", "ms", "mtext"]), Mn = z({}, ["annotation-xml"]);
|
|
5559
5559
|
const Ds = z({}, ["title", "style", "font", "a", "script"]);
|
|
5560
5560
|
let Gt = null;
|
|
@@ -5566,14 +5566,14 @@ function Cs() {
|
|
|
5566
5566
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5567
5567
|
if (!(Rt && Rt === f)) {
|
|
5568
5568
|
if ((!f || typeof f != "object") && (f = {}), f = Ct(f), Gt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5569
|
-
Bs.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Ns : f.PARSER_MEDIA_TYPE, de = Gt === "application/xhtml+xml" ? yo : Kn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, de) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, de) : T, lo = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yo) : Rs, so = Ge(f, "ADD_URI_SAFE_ATTR") ? z(Ct(mr), f.ADD_URI_SAFE_ATTR, de) : mr, dr = Ge(f, "ADD_DATA_URI_TAGS") ? z(Ct(fr), f.ADD_DATA_URI_TAGS, de) : fr, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, de) : ur, P = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, de) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, de) : {}, Ot = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1,
|
|
5569
|
+
Bs.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Ns : f.PARSER_MEDIA_TYPE, de = Gt === "application/xhtml+xml" ? yo : Kn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, de) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, de) : T, lo = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yo) : Rs, so = Ge(f, "ADD_URI_SAFE_ATTR") ? z(Ct(mr), f.ADD_URI_SAFE_ATTR, de) : mr, dr = Ge(f, "ADD_DATA_URI_TAGS") ? z(Ct(fr), f.ADD_DATA_URI_TAGS, de) : fr, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, de) : ur, P = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, de) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, de) : {}, Ot = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, x = f.ALLOW_DATA_ATTR !== !1, L = f.ALLOW_UNKNOWN_PROTOCOLS || !1, N = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, xe = f.SAFE_FOR_XML !== !1, be = f.WHOLE_DOCUMENT || !1, xt = f.RETURN_DOM || !1, En = f.RETURN_DOM_FRAGMENT || !1, Ln = f.RETURN_TRUSTED_TYPE || !1, st = f.FORCE_BODY || !1, lr = f.SANITIZE_DOM !== !1, cr = f.SANITIZE_NAMED_PROPS || !1, io = f.KEEP_CONTENT !== !1, Wt = f.IN_PLACE || !1, Fe = f.ALLOWED_URI_REGEXP || Ss, Mt = f.NAMESPACE || at, $n = f.MATHML_TEXT_INTEGRATION_POINTS || $n, Mn = f.HTML_INTEGRATION_POINTS || Mn, v = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && pr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (v.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && pr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (v.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (v.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (x = !1), En && (xt = !0), Ot && (c = z({}, pi), y = [], Ot.html === !0 && (z(c, mi), z(y, hi)), Ot.svg === !0 && (z(c, bo), z(y, So), z(y, Hn)), Ot.svgFilters === !0 && (z(c, wo), z(y, So), z(y, Hn)), Ot.mathMl === !0 && (z(c, _o), z(y, gi), z(y, Hn))), f.ADD_TAGS && (c === p && (c = Ct(c)), z(c, f.ADD_TAGS, de)), f.ADD_ATTR && (y === T && (y = Ct(y)), z(y, f.ADD_ATTR, de)), f.ADD_URI_SAFE_ATTR && z(so, f.ADD_URI_SAFE_ATTR, de), f.FORBID_CONTENTS && ($t === ur && ($t = Ct($t)), z($t, f.FORBID_CONTENTS, de)), io && (c["#text"] = !0), be && z(c, ["html", "head", "body"]), c.table && (z(c, ["tbody"]), delete P.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
5570
5570
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5571
5571
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5572
5572
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
5573
5573
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5574
5574
|
H = f.TRUSTED_TYPES_POLICY, Y = H.createHTML("");
|
|
5575
5575
|
} else
|
|
5576
|
-
H === void 0 && (H =
|
|
5576
|
+
H === void 0 && (H = Lf(w, r)), H !== null && typeof Y == "string" && (Y = H.createHTML(""));
|
|
5577
5577
|
Ee && Ee(f), Rt = f;
|
|
5578
5578
|
}
|
|
5579
5579
|
}, hr = z({}, [...bo, ...wo, ...bf]), gr = z({}, [..._o, ...wf]), Hs = function(f) {
|
|
@@ -5583,7 +5583,7 @@ function Cs() {
|
|
|
5583
5583
|
tagName: "template"
|
|
5584
5584
|
});
|
|
5585
5585
|
const $ = Kn(f.tagName), re = Kn(I.tagName);
|
|
5586
|
-
return lo[f.namespaceURI] ? f.namespaceURI === On ? I.namespaceURI === at ? $ === "svg" : I.namespaceURI ===
|
|
5586
|
+
return lo[f.namespaceURI] ? f.namespaceURI === On ? I.namespaceURI === at ? $ === "svg" : I.namespaceURI === xn ? $ === "svg" && (re === "annotation-xml" || $n[re]) : !!hr[$] : f.namespaceURI === xn ? I.namespaceURI === at ? $ === "math" : I.namespaceURI === On ? $ === "math" && Mn[re] : !!gr[$] : f.namespaceURI === at ? I.namespaceURI === On && !Mn[re] || I.namespaceURI === xn && !$n[re] ? !1 : !gr[$] && (Ds[$] || !hr[$]) : !!(Gt === "application/xhtml+xml" && lo[f.namespaceURI]) : !1;
|
|
5587
5587
|
}, tt = function(f) {
|
|
5588
5588
|
Jt(e.removed, {
|
|
5589
5589
|
element: f
|
|
@@ -5606,7 +5606,7 @@ function Cs() {
|
|
|
5606
5606
|
});
|
|
5607
5607
|
}
|
|
5608
5608
|
if (I.removeAttribute(f), f === "is")
|
|
5609
|
-
if (
|
|
5609
|
+
if (xt || En)
|
|
5610
5610
|
try {
|
|
5611
5611
|
tt(I);
|
|
5612
5612
|
} catch {
|
|
@@ -5666,7 +5666,7 @@ function Cs() {
|
|
|
5666
5666
|
if (lt(D.uponSanitizeElement, f, {
|
|
5667
5667
|
tagName: $,
|
|
5668
5668
|
allowedTags: c
|
|
5669
|
-
}), f.hasChildNodes() && !br(f.firstElementChild) && Te(/<[/\w]/g, f.innerHTML) && Te(/<[/\w]/g, f.textContent) || f.nodeType === nn.progressingInstruction ||
|
|
5669
|
+
}), f.hasChildNodes() && !br(f.firstElementChild) && Te(/<[/\w]/g, f.innerHTML) && Te(/<[/\w]/g, f.textContent) || f.nodeType === nn.progressingInstruction || xe && f.nodeType === nn.comment && Te(/<[/\w]/g, f.data))
|
|
5670
5670
|
return tt(f), !0;
|
|
5671
5671
|
if (!c[$] || P[$]) {
|
|
5672
5672
|
if (!P[$] && Sr($) && (v.tagNameCheck instanceof RegExp && Te(v.tagNameCheck, $) || v.tagNameCheck instanceof Function && v.tagNameCheck($)))
|
|
@@ -5691,7 +5691,7 @@ function Cs() {
|
|
|
5691
5691
|
}, _r = function(f, I, $) {
|
|
5692
5692
|
if (lr && (I === "id" || I === "name") && ($ in n || $ in Us))
|
|
5693
5693
|
return !1;
|
|
5694
|
-
if (!(
|
|
5694
|
+
if (!(x && !_[I] && Te(Je, I))) {
|
|
5695
5695
|
if (!(C && Te(it, I))) {
|
|
5696
5696
|
if (!y[I] || _[I]) {
|
|
5697
5697
|
if (
|
|
@@ -5705,7 +5705,7 @@ function Cs() {
|
|
|
5705
5705
|
} else if (!so[I]) {
|
|
5706
5706
|
if (!Te(Fe, Qt($, et, ""))) {
|
|
5707
5707
|
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" && hf($, "data:") === 0 && dr[f])) {
|
|
5708
|
-
if (!(
|
|
5708
|
+
if (!(L && !Te(Qe, Qt($, et, "")))) {
|
|
5709
5709
|
if ($)
|
|
5710
5710
|
return !1;
|
|
5711
5711
|
}
|
|
@@ -5739,7 +5739,7 @@ function Cs() {
|
|
|
5739
5739
|
value: nt
|
|
5740
5740
|
} = _e, qt = de(me);
|
|
5741
5741
|
let Ie = me === "value" ? nt : gf(nt);
|
|
5742
|
-
if ($.attrName = qt, $.attrValue = Ie, $.keepAttr = !0, $.forceKeepAttr = void 0, lt(D.uponSanitizeAttribute, f, $), Ie = $.attrValue, cr && (qt === "id" || qt === "name") && (Rn(me, f), Ie = Ms + Ie),
|
|
5742
|
+
if ($.attrName = qt, $.attrValue = Ie, $.keepAttr = !0, $.forceKeepAttr = void 0, lt(D.uponSanitizeAttribute, f, $), Ie = $.attrValue, cr && (qt === "id" || qt === "name") && (Rn(me, f), Ie = Ms + Ie), xe && Te(/((--!?|])>)|<\/(style|title)/i, Ie)) {
|
|
5743
5743
|
Rn(me, f);
|
|
5744
5744
|
continue;
|
|
5745
5745
|
}
|
|
@@ -5798,11 +5798,11 @@ function Cs() {
|
|
|
5798
5798
|
} else if (R instanceof s)
|
|
5799
5799
|
I = vr("<!---->"), $ = I.ownerDocument.importNode(R, !0), $.nodeType === nn.element && $.nodeName === "BODY" || $.nodeName === "HTML" ? I = $ : I.appendChild($);
|
|
5800
5800
|
else {
|
|
5801
|
-
if (!
|
|
5801
|
+
if (!xt && !V && !be && // eslint-disable-next-line unicorn/prefer-includes
|
|
5802
5802
|
R.indexOf("<") === -1)
|
|
5803
|
-
return H &&
|
|
5803
|
+
return H && Ln ? H.createHTML(R) : R;
|
|
5804
5804
|
if (I = vr(R), !I)
|
|
5805
|
-
return
|
|
5805
|
+
return xt ? null : Ln ? Y : "";
|
|
5806
5806
|
}
|
|
5807
5807
|
I && st && tt(I.firstChild);
|
|
5808
5808
|
const me = yr(Wt ? R : I);
|
|
@@ -5810,7 +5810,7 @@ function Cs() {
|
|
|
5810
5810
|
wr(re), kr(re), re.content instanceof i && js(re.content);
|
|
5811
5811
|
if (Wt)
|
|
5812
5812
|
return R;
|
|
5813
|
-
if (
|
|
5813
|
+
if (xt) {
|
|
5814
5814
|
if (En)
|
|
5815
5815
|
for (_e = Ne.call(I.ownerDocument); I.firstChild; )
|
|
5816
5816
|
_e.appendChild(I.firstChild);
|
|
@@ -5822,7 +5822,7 @@ function Cs() {
|
|
|
5822
5822
|
return be && c["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Te(ks, I.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
5823
5823
|
` + Oe), V && Un([J, ve, ye], (nt) => {
|
|
5824
5824
|
Oe = Qt(Oe, nt, " ");
|
|
5825
|
-
}), H &&
|
|
5825
|
+
}), H && Ln ? H.createHTML(Oe) : Oe;
|
|
5826
5826
|
}, e.setConfig = function() {
|
|
5827
5827
|
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5828
5828
|
co(R), we = !0;
|
|
@@ -5873,7 +5873,7 @@ class Ts {
|
|
|
5873
5873
|
});
|
|
5874
5874
|
}
|
|
5875
5875
|
}
|
|
5876
|
-
const
|
|
5876
|
+
const xf = () => new Ts(), Rm = () => new Ts();
|
|
5877
5877
|
function Of(t) {
|
|
5878
5878
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
5879
5879
|
}
|
|
@@ -6191,23 +6191,23 @@ function Es(t) {
|
|
|
6191
6191
|
var y = X(), T = X();
|
|
6192
6192
|
T.promise.then(function() {
|
|
6193
6193
|
e.onReady && e.onReady(e.authenticated), y.setSuccess(e.authenticated);
|
|
6194
|
-
}).catch(function(
|
|
6195
|
-
y.setError(
|
|
6194
|
+
}).catch(function(x) {
|
|
6195
|
+
y.setError(x);
|
|
6196
6196
|
});
|
|
6197
6197
|
var v = B();
|
|
6198
6198
|
function P() {
|
|
6199
|
-
var
|
|
6199
|
+
var x = function(V) {
|
|
6200
6200
|
V || (N.prompt = "none"), c && c.locale && (N.locale = c.locale), e.login(N).then(function() {
|
|
6201
6201
|
T.setSuccess();
|
|
6202
|
-
}).catch(function(
|
|
6203
|
-
T.setError(
|
|
6202
|
+
}).catch(function(xe) {
|
|
6203
|
+
T.setError(xe);
|
|
6204
6204
|
});
|
|
6205
|
-
},
|
|
6206
|
-
var V = document.createElement("iframe"),
|
|
6205
|
+
}, L = function() {
|
|
6206
|
+
var V = document.createElement("iframe"), xe = e.createLoginUrl({
|
|
6207
6207
|
prompt: "none",
|
|
6208
6208
|
redirectUri: e.silentCheckSsoRedirectUri
|
|
6209
6209
|
});
|
|
6210
|
-
V.setAttribute("src",
|
|
6210
|
+
V.setAttribute("src", xe), V.setAttribute(
|
|
6211
6211
|
"sandbox",
|
|
6212
6212
|
"allow-storage-access-by-user-activation allow-scripts allow-same-origin"
|
|
6213
6213
|
), V.setAttribute("title", "keycloak-silent-check-sso"), V.style.display = "none", document.body.appendChild(V);
|
|
@@ -6223,62 +6223,62 @@ function Es(t) {
|
|
|
6223
6223
|
case "check-sso":
|
|
6224
6224
|
i.enable ? J().then(function() {
|
|
6225
6225
|
ye().then(function(V) {
|
|
6226
|
-
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ?
|
|
6226
|
+
V ? T.setSuccess() : e.silentCheckSsoRedirectUri ? L() : x(!1);
|
|
6227
6227
|
}).catch(function(V) {
|
|
6228
6228
|
T.setError(V);
|
|
6229
6229
|
});
|
|
6230
|
-
}) : e.silentCheckSsoRedirectUri ?
|
|
6230
|
+
}) : e.silentCheckSsoRedirectUri ? L() : x(!1);
|
|
6231
6231
|
break;
|
|
6232
6232
|
case "login-required":
|
|
6233
|
-
|
|
6233
|
+
x(!0);
|
|
6234
6234
|
break;
|
|
6235
6235
|
default:
|
|
6236
6236
|
throw "Invalid value for onLoad";
|
|
6237
6237
|
}
|
|
6238
6238
|
}
|
|
6239
6239
|
function _() {
|
|
6240
|
-
var
|
|
6241
|
-
if (
|
|
6240
|
+
var x = le(window.location.href);
|
|
6241
|
+
if (x && window.history.replaceState(
|
|
6242
6242
|
window.history.state,
|
|
6243
6243
|
null,
|
|
6244
|
-
|
|
6245
|
-
),
|
|
6244
|
+
x.newUrl
|
|
6245
|
+
), x && x.valid)
|
|
6246
6246
|
return J().then(function() {
|
|
6247
|
-
S(
|
|
6248
|
-
}).catch(function(
|
|
6249
|
-
T.setError(
|
|
6247
|
+
S(x, T);
|
|
6248
|
+
}).catch(function(L) {
|
|
6249
|
+
T.setError(L);
|
|
6250
6250
|
});
|
|
6251
6251
|
c ? c.token && c.refreshToken ? (Y(
|
|
6252
6252
|
c.token,
|
|
6253
6253
|
c.refreshToken,
|
|
6254
6254
|
c.idToken
|
|
6255
6255
|
), i.enable ? J().then(function() {
|
|
6256
|
-
ye().then(function(
|
|
6257
|
-
|
|
6258
|
-
}).catch(function(
|
|
6259
|
-
T.setError(
|
|
6256
|
+
ye().then(function(L) {
|
|
6257
|
+
L ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), ve()) : T.setSuccess();
|
|
6258
|
+
}).catch(function(L) {
|
|
6259
|
+
T.setError(L);
|
|
6260
6260
|
});
|
|
6261
6261
|
}) : e.updateToken(-1).then(function() {
|
|
6262
6262
|
e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
|
|
6263
|
-
}).catch(function(
|
|
6264
|
-
e.onAuthError && e.onAuthError(), c.onLoad ? P() : T.setError(
|
|
6263
|
+
}).catch(function(L) {
|
|
6264
|
+
e.onAuthError && e.onAuthError(), c.onLoad ? P() : T.setError(L);
|
|
6265
6265
|
})) : c.onLoad ? P() : T.setSuccess() : T.setSuccess();
|
|
6266
6266
|
}
|
|
6267
6267
|
function C() {
|
|
6268
|
-
var
|
|
6268
|
+
var x = X(), L = function() {
|
|
6269
6269
|
(document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener(
|
|
6270
6270
|
"readystatechange",
|
|
6271
|
-
|
|
6272
|
-
),
|
|
6271
|
+
L
|
|
6272
|
+
), x.setSuccess());
|
|
6273
6273
|
};
|
|
6274
|
-
return document.addEventListener("readystatechange",
|
|
6274
|
+
return document.addEventListener("readystatechange", L), L(), x.promise;
|
|
6275
6275
|
}
|
|
6276
6276
|
return v.then(function() {
|
|
6277
|
-
C().then(Je).then(_).catch(function(
|
|
6278
|
-
y.setError(
|
|
6277
|
+
C().then(Je).then(_).catch(function(x) {
|
|
6278
|
+
y.setError(x);
|
|
6279
6279
|
});
|
|
6280
|
-
}), v.catch(function(
|
|
6281
|
-
y.setError(
|
|
6280
|
+
}), v.catch(function(x) {
|
|
6281
|
+
y.setError(x);
|
|
6282
6282
|
}), y.promise;
|
|
6283
6283
|
}, e.login = function(c) {
|
|
6284
6284
|
return n.login(c);
|
|
@@ -6333,15 +6333,15 @@ function Es(t) {
|
|
|
6333
6333
|
_ ? _.indexOf("openid") === -1 && (_ = "openid " + _) : _ = "openid";
|
|
6334
6334
|
var C = P + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(T) + "&state=" + encodeURIComponent(p) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(_);
|
|
6335
6335
|
if (l && (C = C + "&nonce=" + encodeURIComponent(y)), c && c.prompt && (C += "&prompt=" + encodeURIComponent(c.prompt)), c && c.maxAge && (C += "&max_age=" + encodeURIComponent(c.maxAge)), c && c.loginHint && (C += "&login_hint=" + encodeURIComponent(c.loginHint)), c && c.idpHint && (C += "&kc_idp_hint=" + encodeURIComponent(c.idpHint)), c && c.action && c.action != "register" && (C += "&kc_action=" + encodeURIComponent(c.action)), c && c.locale && (C += "&ui_locales=" + encodeURIComponent(c.locale)), c && c.acr) {
|
|
6336
|
-
var
|
|
6337
|
-
C += "&claims=" + encodeURIComponent(
|
|
6336
|
+
var x = A(c.acr);
|
|
6337
|
+
C += "&claims=" + encodeURIComponent(x);
|
|
6338
6338
|
}
|
|
6339
6339
|
if ((c && c.acrValues || e.acrValues) && (C += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6340
|
-
var
|
|
6341
|
-
v.pkceCodeVerifier =
|
|
6340
|
+
var L = g(96);
|
|
6341
|
+
v.pkceCodeVerifier = L;
|
|
6342
6342
|
var N = k(
|
|
6343
6343
|
e.pkceMethod,
|
|
6344
|
-
|
|
6344
|
+
L
|
|
6345
6345
|
);
|
|
6346
6346
|
C += "&code_challenge=" + N, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6347
6347
|
}
|
|
@@ -6415,17 +6415,17 @@ function Es(t) {
|
|
|
6415
6415
|
"Content-type",
|
|
6416
6416
|
"application/x-www-form-urlencoded"
|
|
6417
6417
|
), C.withCredentials = !0, P += "&client_id=" + encodeURIComponent(e.clientId);
|
|
6418
|
-
var
|
|
6418
|
+
var x = (/* @__PURE__ */ new Date()).getTime();
|
|
6419
6419
|
C.onreadystatechange = function() {
|
|
6420
6420
|
if (C.readyState == 4)
|
|
6421
6421
|
if (C.status == 200) {
|
|
6422
|
-
u("[KEYCLOAK] Token refreshed"),
|
|
6423
|
-
var
|
|
6422
|
+
u("[KEYCLOAK] Token refreshed"), x = (x + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
6423
|
+
var L = JSON.parse(C.responseText);
|
|
6424
6424
|
Y(
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6425
|
+
L.access_token,
|
|
6426
|
+
L.refresh_token,
|
|
6427
|
+
L.id_token,
|
|
6428
|
+
x
|
|
6429
6429
|
), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
6430
6430
|
for (var N = o.pop(); N != null; N = o.pop())
|
|
6431
6431
|
N.setSuccess(!0);
|
|
@@ -6479,14 +6479,14 @@ function Es(t) {
|
|
|
6479
6479
|
return;
|
|
6480
6480
|
} else e.flow != "standard" && (c.access_token || c.id_token) && N(c.access_token, null, c.id_token, !0);
|
|
6481
6481
|
if (e.flow != "implicit" && y) {
|
|
6482
|
-
var C = "code=" + y + "&grant_type=authorization_code",
|
|
6483
|
-
|
|
6482
|
+
var C = "code=" + y + "&grant_type=authorization_code", x = e.endpoints.token(), L = new XMLHttpRequest();
|
|
6483
|
+
L.open("POST", x, !0), L.setRequestHeader(
|
|
6484
6484
|
"Content-type",
|
|
6485
6485
|
"application/x-www-form-urlencoded"
|
|
6486
|
-
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (C += "&code_verifier=" + c.pkceCodeVerifier),
|
|
6487
|
-
if (
|
|
6488
|
-
if (
|
|
6489
|
-
var V = JSON.parse(
|
|
6486
|
+
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (C += "&code_verifier=" + c.pkceCodeVerifier), L.withCredentials = !0, L.onreadystatechange = function() {
|
|
6487
|
+
if (L.readyState == 4)
|
|
6488
|
+
if (L.status == 200) {
|
|
6489
|
+
var V = JSON.parse(L.responseText);
|
|
6490
6490
|
N(
|
|
6491
6491
|
V.access_token,
|
|
6492
6492
|
V.refresh_token,
|
|
@@ -6495,40 +6495,40 @@ function Es(t) {
|
|
|
6495
6495
|
), ve();
|
|
6496
6496
|
} else
|
|
6497
6497
|
e.onAuthError && e.onAuthError(), p && p.setError();
|
|
6498
|
-
},
|
|
6498
|
+
}, L.send(C);
|
|
6499
6499
|
}
|
|
6500
|
-
function N(V,
|
|
6501
|
-
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V,
|
|
6500
|
+
function N(V, xe, be, we) {
|
|
6501
|
+
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, xe, be, P), l && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : we && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
6502
6502
|
}
|
|
6503
6503
|
}
|
|
6504
6504
|
function B(c) {
|
|
6505
6505
|
var p = X(), y;
|
|
6506
6506
|
t ? typeof t == "string" && (y = t) : y = "keycloak.json";
|
|
6507
|
-
function T(
|
|
6508
|
-
|
|
6507
|
+
function T(L) {
|
|
6508
|
+
L ? e.endpoints = {
|
|
6509
6509
|
authorize: function() {
|
|
6510
|
-
return
|
|
6510
|
+
return L.authorization_endpoint;
|
|
6511
6511
|
},
|
|
6512
6512
|
token: function() {
|
|
6513
|
-
return
|
|
6513
|
+
return L.token_endpoint;
|
|
6514
6514
|
},
|
|
6515
6515
|
logout: function() {
|
|
6516
|
-
if (!
|
|
6516
|
+
if (!L.end_session_endpoint)
|
|
6517
6517
|
throw "Not supported by the OIDC server";
|
|
6518
|
-
return
|
|
6518
|
+
return L.end_session_endpoint;
|
|
6519
6519
|
},
|
|
6520
6520
|
checkSessionIframe: function() {
|
|
6521
|
-
if (!
|
|
6521
|
+
if (!L.check_session_iframe)
|
|
6522
6522
|
throw "Not supported by the OIDC server";
|
|
6523
|
-
return
|
|
6523
|
+
return L.check_session_iframe;
|
|
6524
6524
|
},
|
|
6525
6525
|
register: function() {
|
|
6526
6526
|
throw 'Redirection to "Register user" page not supported in standard OIDC mode';
|
|
6527
6527
|
},
|
|
6528
6528
|
userinfo: function() {
|
|
6529
|
-
if (!
|
|
6529
|
+
if (!L.userinfo_endpoint)
|
|
6530
6530
|
throw "Not supported by the OIDC server";
|
|
6531
|
-
return
|
|
6531
|
+
return L.userinfo_endpoint;
|
|
6532
6532
|
}
|
|
6533
6533
|
} : e.endpoints = {
|
|
6534
6534
|
authorize: function() {
|
|
@@ -6561,8 +6561,8 @@ function Es(t) {
|
|
|
6561
6561
|
v.open("GET", y, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6562
6562
|
if (v.readyState == 4)
|
|
6563
6563
|
if (v.status == 200 || H(v)) {
|
|
6564
|
-
var
|
|
6565
|
-
e.authServerUrl =
|
|
6564
|
+
var L = JSON.parse(v.responseText);
|
|
6565
|
+
e.authServerUrl = L["auth-server-url"], e.realm = L.realm, e.clientId = L.resource, T(null), p.setSuccess();
|
|
6566
6566
|
} else
|
|
6567
6567
|
p.setError();
|
|
6568
6568
|
}, v.send();
|
|
@@ -6573,10 +6573,10 @@ function Es(t) {
|
|
|
6573
6573
|
var P = t.oidcProvider;
|
|
6574
6574
|
if (P)
|
|
6575
6575
|
if (typeof P == "string") {
|
|
6576
|
-
var
|
|
6577
|
-
P.charAt(P.length - 1) == "/" ?
|
|
6576
|
+
var x;
|
|
6577
|
+
P.charAt(P.length - 1) == "/" ? x = P + ".well-known/openid-configuration" : x = P + "/.well-known/openid-configuration";
|
|
6578
6578
|
var v = new XMLHttpRequest();
|
|
6579
|
-
v.open("GET",
|
|
6579
|
+
v.open("GET", x, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6580
6580
|
if (v.readyState == 4)
|
|
6581
6581
|
if (v.status == 200 || H(v)) {
|
|
6582
6582
|
var N = JSON.parse(v.responseText);
|
|
@@ -6823,7 +6823,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6823
6823
|
window.location.replace(e.createLogoutUrl(_));
|
|
6824
6824
|
return;
|
|
6825
6825
|
}
|
|
6826
|
-
const
|
|
6826
|
+
const x = e.createLogoutUrl(_), L = await fetch(x, {
|
|
6827
6827
|
method: "POST",
|
|
6828
6828
|
headers: {
|
|
6829
6829
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -6837,11 +6837,11 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6837
6837
|
)
|
|
6838
6838
|
})
|
|
6839
6839
|
});
|
|
6840
|
-
if (
|
|
6841
|
-
window.location.href =
|
|
6840
|
+
if (L.redirected) {
|
|
6841
|
+
window.location.href = L.url;
|
|
6842
6842
|
return;
|
|
6843
6843
|
}
|
|
6844
|
-
if (
|
|
6844
|
+
if (L.ok) {
|
|
6845
6845
|
window.location.reload();
|
|
6846
6846
|
return;
|
|
6847
6847
|
}
|
|
@@ -6866,23 +6866,23 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6866
6866
|
};
|
|
6867
6867
|
if (c == "cordova") {
|
|
6868
6868
|
i.enable = !1;
|
|
6869
|
-
var p = function(_, C,
|
|
6869
|
+
var p = function(_, C, x) {
|
|
6870
6870
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
|
|
6871
6871
|
_,
|
|
6872
6872
|
C,
|
|
6873
|
-
|
|
6874
|
-
) : window.open(_, C,
|
|
6873
|
+
x
|
|
6874
|
+
) : window.open(_, C, x);
|
|
6875
6875
|
}, y = function(_) {
|
|
6876
6876
|
return _ && _.cordovaOptions ? Object.keys(_.cordovaOptions).reduce(
|
|
6877
|
-
function(C,
|
|
6878
|
-
return C[
|
|
6877
|
+
function(C, x) {
|
|
6878
|
+
return C[x] = _.cordovaOptions[x], C;
|
|
6879
6879
|
},
|
|
6880
6880
|
{}
|
|
6881
6881
|
) : {};
|
|
6882
6882
|
}, T = function(_) {
|
|
6883
|
-
return Object.keys(_).reduce(function(C,
|
|
6883
|
+
return Object.keys(_).reduce(function(C, x) {
|
|
6884
6884
|
return C.push(
|
|
6885
|
-
|
|
6885
|
+
x + "=" + _[x]
|
|
6886
6886
|
), C;
|
|
6887
6887
|
}, []).join(",");
|
|
6888
6888
|
}, v = function(_) {
|
|
@@ -6893,12 +6893,12 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6893
6893
|
};
|
|
6894
6894
|
return {
|
|
6895
6895
|
login: function(_) {
|
|
6896
|
-
var C = X(),
|
|
6897
|
-
|
|
6896
|
+
var C = X(), x = v(_), L = e.createLoginUrl(_), N = p(
|
|
6897
|
+
L,
|
|
6898
6898
|
"_blank",
|
|
6899
|
-
|
|
6900
|
-
), V = !1,
|
|
6901
|
-
|
|
6899
|
+
x
|
|
6900
|
+
), V = !1, xe = !1, be = function() {
|
|
6901
|
+
xe = !0, N.close();
|
|
6902
6902
|
};
|
|
6903
6903
|
return N.addEventListener("loadstart", function(we) {
|
|
6904
6904
|
if (we.url.indexOf(P()) == 0) {
|
|
@@ -6913,36 +6913,36 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6913
6913
|
} else
|
|
6914
6914
|
C.setError(), be();
|
|
6915
6915
|
}), N.addEventListener("exit", function(we) {
|
|
6916
|
-
|
|
6916
|
+
xe || C.setError({
|
|
6917
6917
|
reason: "closed_by_user"
|
|
6918
6918
|
});
|
|
6919
6919
|
}), C.promise;
|
|
6920
6920
|
},
|
|
6921
6921
|
logout: function(_) {
|
|
6922
|
-
var C = X(),
|
|
6923
|
-
|
|
6922
|
+
var C = X(), x = e.createLogoutUrl(_), L = p(
|
|
6923
|
+
x,
|
|
6924
6924
|
"_blank",
|
|
6925
6925
|
"location=no,hidden=yes,clearcache=yes"
|
|
6926
6926
|
), N;
|
|
6927
|
-
return
|
|
6928
|
-
V.url.indexOf(P()) == 0 &&
|
|
6929
|
-
}),
|
|
6930
|
-
V.url.indexOf(P()) == 0 || (N = !0),
|
|
6931
|
-
}),
|
|
6927
|
+
return L.addEventListener("loadstart", function(V) {
|
|
6928
|
+
V.url.indexOf(P()) == 0 && L.close();
|
|
6929
|
+
}), L.addEventListener("loaderror", function(V) {
|
|
6930
|
+
V.url.indexOf(P()) == 0 || (N = !0), L.close();
|
|
6931
|
+
}), L.addEventListener("exit", function(V) {
|
|
6932
6932
|
N ? C.setError() : (e.clearToken(), C.setSuccess());
|
|
6933
6933
|
}), C.promise;
|
|
6934
6934
|
},
|
|
6935
6935
|
register: function(_) {
|
|
6936
|
-
var C = X(),
|
|
6937
|
-
|
|
6936
|
+
var C = X(), x = e.createRegisterUrl(), L = v(_), N = p(
|
|
6937
|
+
x,
|
|
6938
6938
|
"_blank",
|
|
6939
|
-
|
|
6939
|
+
L
|
|
6940
6940
|
);
|
|
6941
6941
|
return N.addEventListener("loadstart", function(V) {
|
|
6942
6942
|
if (V.url.indexOf(P()) == 0) {
|
|
6943
6943
|
N.close();
|
|
6944
|
-
var
|
|
6945
|
-
S(
|
|
6944
|
+
var xe = le(V.url);
|
|
6945
|
+
S(xe, C);
|
|
6946
6946
|
}
|
|
6947
6947
|
}), C.promise;
|
|
6948
6948
|
},
|
|
@@ -6954,8 +6954,8 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6954
6954
|
"_blank",
|
|
6955
6955
|
"location=no"
|
|
6956
6956
|
);
|
|
6957
|
-
C.addEventListener("loadstart", function(
|
|
6958
|
-
|
|
6957
|
+
C.addEventListener("loadstart", function(x) {
|
|
6958
|
+
x.url.indexOf(P()) == 0 && C.close();
|
|
6959
6959
|
});
|
|
6960
6960
|
} else
|
|
6961
6961
|
throw "Not supported by the OIDC server";
|
|
@@ -6968,26 +6968,26 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6968
6968
|
if (c == "cordova-native")
|
|
6969
6969
|
return i.enable = !1, {
|
|
6970
6970
|
login: function(_) {
|
|
6971
|
-
var C = X(),
|
|
6972
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6971
|
+
var C = X(), x = e.createLoginUrl(_);
|
|
6972
|
+
return universalLinks.subscribe("keycloak", function(L) {
|
|
6973
6973
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6974
|
-
var N = le(
|
|
6974
|
+
var N = le(L.url);
|
|
6975
6975
|
S(N, C);
|
|
6976
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6976
|
+
}), window.cordova.plugins.browsertab.openUrl(x), C.promise;
|
|
6977
6977
|
},
|
|
6978
6978
|
logout: function(_) {
|
|
6979
|
-
var C = X(),
|
|
6980
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6979
|
+
var C = X(), x = e.createLogoutUrl(_);
|
|
6980
|
+
return universalLinks.subscribe("keycloak", function(L) {
|
|
6981
6981
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(), C.setSuccess();
|
|
6982
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6982
|
+
}), window.cordova.plugins.browsertab.openUrl(x), C.promise;
|
|
6983
6983
|
},
|
|
6984
6984
|
register: function(_) {
|
|
6985
|
-
var C = X(),
|
|
6986
|
-
return universalLinks.subscribe("keycloak", function(
|
|
6985
|
+
var C = X(), x = e.createRegisterUrl(_);
|
|
6986
|
+
return universalLinks.subscribe("keycloak", function(L) {
|
|
6987
6987
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6988
|
-
var N = le(
|
|
6988
|
+
var N = le(L.url);
|
|
6989
6989
|
S(N, C);
|
|
6990
|
-
}), window.cordova.plugins.browsertab.openUrl(
|
|
6990
|
+
}), window.cordova.plugins.browsertab.openUrl(x), C.promise;
|
|
6991
6991
|
},
|
|
6992
6992
|
accountManagement: function() {
|
|
6993
6993
|
var _ = e.createAccountUrl();
|
|
@@ -7056,10 +7056,10 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7056
7056
|
return P.setTime(P.getTime() + v * 60 * 1e3), P;
|
|
7057
7057
|
}, y = function(v) {
|
|
7058
7058
|
for (var P = v + "=", _ = document.cookie.split(";"), C = 0; C < _.length; C++) {
|
|
7059
|
-
for (var
|
|
7060
|
-
|
|
7061
|
-
if (
|
|
7062
|
-
return
|
|
7059
|
+
for (var x = _[C]; x.charAt(0) == " "; )
|
|
7060
|
+
x = x.substring(1);
|
|
7061
|
+
if (x.indexOf(P) == 0)
|
|
7062
|
+
return x.substring(P.length, x.length);
|
|
7063
7063
|
}
|
|
7064
7064
|
return "";
|
|
7065
7065
|
}, T = function(v, P, _) {
|
|
@@ -7112,11 +7112,11 @@ class Gf {
|
|
|
7112
7112
|
return e ? (n = e.identity_provider) != null && n.startsWith("GOV.BR") ? "govbr" : (o = e.identity_provider) != null && o.startsWith("senhaweb") ? "senhaweb" : "ad" : null;
|
|
7113
7113
|
}
|
|
7114
7114
|
}
|
|
7115
|
-
let
|
|
7115
|
+
let Ls;
|
|
7116
7116
|
function Dm(t) {
|
|
7117
|
-
|
|
7117
|
+
Ls = new Gf(t);
|
|
7118
7118
|
}
|
|
7119
|
-
const wi = () =>
|
|
7119
|
+
const wi = () => Ls;
|
|
7120
7120
|
function qf(t) {
|
|
7121
7121
|
return Gs() ? (qs(t), !0) : !1;
|
|
7122
7122
|
}
|
|
@@ -7131,7 +7131,7 @@ function Zf(t) {
|
|
|
7131
7131
|
function Jf(t, e = !0, n) {
|
|
7132
7132
|
Xf() ? Et(t, n) : e ? t() : Ii(t);
|
|
7133
7133
|
}
|
|
7134
|
-
const
|
|
7134
|
+
const xs = Yf ? window : void 0;
|
|
7135
7135
|
function Bt(t) {
|
|
7136
7136
|
var e;
|
|
7137
7137
|
const n = Ai(t);
|
|
@@ -7148,7 +7148,7 @@ function em(t) {
|
|
|
7148
7148
|
return ce(() => (e.value, !!t()));
|
|
7149
7149
|
}
|
|
7150
7150
|
function tm(t, e, n = {}) {
|
|
7151
|
-
const { window: o =
|
|
7151
|
+
const { window: o = xs, ...r } = n;
|
|
7152
7152
|
let i;
|
|
7153
7153
|
const a = em(() => o && "ResizeObserver" in o), s = () => {
|
|
7154
7154
|
i && (i.disconnect(), i = void 0);
|
|
@@ -7174,7 +7174,7 @@ function tm(t, e, n = {}) {
|
|
|
7174
7174
|
};
|
|
7175
7175
|
}
|
|
7176
7176
|
function nm(t, e = { width: 0, height: 0 }, n = {}) {
|
|
7177
|
-
const { window: o =
|
|
7177
|
+
const { window: o = xs, box: r = "content-box" } = n, i = ce(() => {
|
|
7178
7178
|
var m, g;
|
|
7179
7179
|
return (g = (m = Bt(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
7180
7180
|
}), a = ne(e.width), s = ne(e.height), { stop: l } = tm(
|
|
@@ -7398,7 +7398,7 @@ const Wn = /* @__PURE__ */ om(sm), Bm = {
|
|
|
7398
7398
|
EnableLightMode: () => Zt.EnableLightMode(),
|
|
7399
7399
|
ClearStoredTheme: () => Zt.ClearStoredTheme(),
|
|
7400
7400
|
LogoutAsync: async () => {
|
|
7401
|
-
const g =
|
|
7401
|
+
const g = xf(), { oidc: w } = wi();
|
|
7402
7402
|
await g.ConfirmAsync(
|
|
7403
7403
|
"Deseja realmente sair da sua conta?"
|
|
7404
7404
|
) && (s.value = !0, await new Promise((A) => setTimeout(A, 1e3)), w.logout({ redirectUri: window.location.origin }));
|
|
@@ -7846,8 +7846,16 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7846
7846
|
},
|
|
7847
7847
|
button: {
|
|
7848
7848
|
root: {
|
|
7849
|
-
paddingX: "
|
|
7849
|
+
paddingX: "0.75rem",
|
|
7850
7850
|
paddingY: "0.5rem",
|
|
7851
|
+
sm: {
|
|
7852
|
+
paddingX: "0.625rem",
|
|
7853
|
+
paddingY: "0.375rem"
|
|
7854
|
+
},
|
|
7855
|
+
lg: {
|
|
7856
|
+
paddingX: "0.875rem",
|
|
7857
|
+
paddingY: "0.575rem"
|
|
7858
|
+
},
|
|
7851
7859
|
primary: {
|
|
7852
7860
|
hoverBackground: "{primary.color} !important",
|
|
7853
7861
|
hoverBorderColor: "{primary.color} !important"
|
|
@@ -7864,18 +7872,7 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7864
7872
|
root: {
|
|
7865
7873
|
borderRadius: "{border-radius}",
|
|
7866
7874
|
background: "{bg-color}",
|
|
7867
|
-
shadow:
|
|
7868
|
-
0 1px 1px 0 color-mix(in srgb, currentColor 14%, transparent),
|
|
7869
|
-
0 1px 3px 0 color-mix(in srgb, currentColor 12%, transparent)`
|
|
7870
|
-
},
|
|
7871
|
-
colorScheme: {
|
|
7872
|
-
dark: {
|
|
7873
|
-
root: {
|
|
7874
|
-
shadow: `0 -1px 5px 0 color-mix(in srgb, currentColor 20%, transparent),
|
|
7875
|
-
0 1px 10px 0 color-mix(in srgb, currentColor 14%, transparent),
|
|
7876
|
-
0 1px 3px 0 color-mix(in srgb, currentColor 12%, transparent)`
|
|
7877
|
-
}
|
|
7878
|
-
}
|
|
7875
|
+
shadow: "none"
|
|
7879
7876
|
},
|
|
7880
7877
|
title: {
|
|
7881
7878
|
fontWeight: "700",
|
|
@@ -7883,7 +7880,10 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7883
7880
|
},
|
|
7884
7881
|
body: {
|
|
7885
7882
|
padding: "var(--content-gutter)"
|
|
7886
|
-
}
|
|
7883
|
+
},
|
|
7884
|
+
css: () => `.p-card {
|
|
7885
|
+
border: 1px solid var(--border-color);
|
|
7886
|
+
}`
|
|
7887
7887
|
},
|
|
7888
7888
|
checkbox: {
|
|
7889
7889
|
root: {
|
|
@@ -7902,6 +7902,20 @@ const ar = () => cm(), um = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7902
7902
|
}
|
|
7903
7903
|
}
|
|
7904
7904
|
},
|
|
7905
|
+
confirmpopup: {
|
|
7906
|
+
root: {
|
|
7907
|
+
borderColor: "{border.color}",
|
|
7908
|
+
background: "{surface.100.color}",
|
|
7909
|
+
shadow: "none"
|
|
7910
|
+
},
|
|
7911
|
+
colorScheme: {
|
|
7912
|
+
dark: {
|
|
7913
|
+
root: {
|
|
7914
|
+
background: "{surface.300.color}"
|
|
7915
|
+
}
|
|
7916
|
+
}
|
|
7917
|
+
}
|
|
7918
|
+
},
|
|
7905
7919
|
datatable: {
|
|
7906
7920
|
root: {
|
|
7907
7921
|
borderColor: "{border.color} !important"
|
|
@@ -8184,14 +8198,14 @@ export {
|
|
|
8184
8198
|
Dm as ConfigAuth,
|
|
8185
8199
|
Wm as EnsureUniqueRouteNames,
|
|
8186
8200
|
Gm as RemovePreloader,
|
|
8187
|
-
|
|
8201
|
+
Lm as SfButton,
|
|
8188
8202
|
Mm as SfContent,
|
|
8189
8203
|
ga as SfDrawer,
|
|
8190
8204
|
$m as SfHelpButton,
|
|
8191
8205
|
ut as SfIcon,
|
|
8192
8206
|
da as SfLoadingCircle,
|
|
8193
8207
|
jm as SfMain,
|
|
8194
|
-
|
|
8208
|
+
xm as SfMessage,
|
|
8195
8209
|
Om as SfNavMenu,
|
|
8196
8210
|
Fm as SfPageTitle,
|
|
8197
8211
|
Em as SfTabNavigation,
|
|
@@ -8200,7 +8214,7 @@ export {
|
|
|
8200
8214
|
Um as UseAlertService,
|
|
8201
8215
|
ar as UseAppInject,
|
|
8202
8216
|
wi as UseAuth,
|
|
8203
|
-
|
|
8217
|
+
xf as UseConfirm,
|
|
8204
8218
|
Rm as UseConfirmService,
|
|
8205
8219
|
Km as User,
|
|
8206
8220
|
Ht as Utilities,
|