@luizleon/sf.prefeiturasp.vuecomponents 0.0.32 → 0.0.34
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/lib.es.js +207 -202
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +9 -9
- package/dist/lib.umd.js.map +1 -1
- package/dist/services/authService.d.ts +3 -3
- package/package.json +1 -1
- package/src/services/authService.ts +32 -10
package/dist/lib.es.js
CHANGED
|
@@ -480,13 +480,13 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
480
480
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
481
481
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
482
482
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
483
|
-
}, Ho = () => typeof window > "u" || typeof document > "u", is = 100,
|
|
484
|
-
|
|
483
|
+
}, Ho = () => typeof window > "u" || typeof document > "u", is = 100, M = {}, as = () => {
|
|
484
|
+
M.previousActiveElement && M.previousActiveElement.focus ? (M.previousActiveElement.focus(), M.previousActiveElement = null) : document.body && document.body.focus();
|
|
485
485
|
}, cs = (t) => new Promise((e) => {
|
|
486
486
|
if (!t)
|
|
487
487
|
return e();
|
|
488
488
|
const n = window.scrollX, o = window.scrollY;
|
|
489
|
-
|
|
489
|
+
M.restoreFocusTimeout = setTimeout(() => {
|
|
490
490
|
as(), e();
|
|
491
491
|
}, is), window.scrollTo(n, o);
|
|
492
492
|
}), ls = `
|
|
@@ -529,10 +529,10 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
529
529
|
[l["no-backdrop"], l["toast-shown"], l["has-column"]]
|
|
530
530
|
), !0) : !1;
|
|
531
531
|
}, We = () => {
|
|
532
|
-
|
|
532
|
+
M.currentInstance.resetValidationMessage();
|
|
533
533
|
}, ds = () => {
|
|
534
|
-
const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select), w = t.querySelector(`.${l.checkbox} input`),
|
|
535
|
-
e.oninput = We, n.onchange = We, c.onchange = We, w.onchange = We,
|
|
534
|
+
const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select), w = t.querySelector(`.${l.checkbox} input`), S = $e(t, l.textarea);
|
|
535
|
+
e.oninput = We, n.onchange = We, c.onchange = We, w.onchange = We, S.oninput = We, o.oninput = () => {
|
|
536
536
|
We(), i.value = o.value;
|
|
537
537
|
}, o.onchange = () => {
|
|
538
538
|
We(), o.nextSibling.value = o.value;
|
|
@@ -611,16 +611,16 @@ function xs(t, e) {
|
|
|
611
611
|
const Cs = (t, e) => {
|
|
612
612
|
const n = se();
|
|
613
613
|
n && (As(n, e.backdrop), _s(n, e.position), xs(n, e.grow), Ee(n, e, "container"));
|
|
614
|
-
},
|
|
614
|
+
}, D = {
|
|
615
615
|
awaitingPromise: /* @__PURE__ */ new WeakMap(),
|
|
616
616
|
promise: /* @__PURE__ */ new WeakMap(),
|
|
617
617
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
618
618
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
619
619
|
}, Es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Ts = (t, e) => {
|
|
620
|
-
const n = V(), o =
|
|
620
|
+
const n = V(), o = D.innerParams.get(t), i = !o || e.input !== o.input;
|
|
621
621
|
Es.forEach((c) => {
|
|
622
|
-
const w = l[c],
|
|
623
|
-
Is(c, e.inputAttributes),
|
|
622
|
+
const w = l[c], S = $e(n, w);
|
|
623
|
+
Is(c, e.inputAttributes), S.className = w, i && ie(S);
|
|
624
624
|
}), e.input && (i && Ss(e), Ps(e));
|
|
625
625
|
}, Ss = (t) => {
|
|
626
626
|
if (!ge[t.input])
|
|
@@ -706,7 +706,7 @@ const Rs = (t, e) => {
|
|
|
706
706
|
const n = Sn();
|
|
707
707
|
re(n, e.closeButtonHtml), Ee(n, e, "closeButton"), Jt(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
708
708
|
}, Bs = (t, e) => {
|
|
709
|
-
const n =
|
|
709
|
+
const n = D.innerParams.get(t), o = Lt();
|
|
710
710
|
if (n && e.icon === n.icon) {
|
|
711
711
|
so(o, e), ro(o, e);
|
|
712
712
|
return;
|
|
@@ -948,7 +948,7 @@ const ii = () => {
|
|
|
948
948
|
const i = window.getComputedStyle(document.body).overflowY;
|
|
949
949
|
vi(e, n, t), setTimeout(() => {
|
|
950
950
|
gi(e, n);
|
|
951
|
-
}, qo), In() && (bi(e, t.scrollbarPadding, i), Ks()), !Yt() && !
|
|
951
|
+
}, qo), In() && (bi(e, t.scrollbarPadding, i), Ks()), !Yt() && !M.previousActiveElement && (M.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), Oe(e, l["no-transition"]);
|
|
952
952
|
}, Ko = (t) => {
|
|
953
953
|
const e = V();
|
|
954
954
|
if (t.target !== e)
|
|
@@ -1003,26 +1003,26 @@ const ii = () => {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}, Ti = {
|
|
1005
1005
|
select: (t, e, n) => {
|
|
1006
|
-
const o = $e(t, l.select), i = (c, w,
|
|
1006
|
+
const o = $e(t, l.select), i = (c, w, S) => {
|
|
1007
1007
|
const u = document.createElement("option");
|
|
1008
|
-
u.value =
|
|
1008
|
+
u.value = S, re(u, w), u.selected = co(S, n.inputValue), c.appendChild(u);
|
|
1009
1009
|
};
|
|
1010
1010
|
e.forEach((c) => {
|
|
1011
|
-
const w = c[0],
|
|
1012
|
-
if (Array.isArray(
|
|
1011
|
+
const w = c[0], S = c[1];
|
|
1012
|
+
if (Array.isArray(S)) {
|
|
1013
1013
|
const u = document.createElement("optgroup");
|
|
1014
|
-
u.label = w, u.disabled = !1, o.appendChild(u),
|
|
1014
|
+
u.label = w, u.disabled = !1, o.appendChild(u), S.forEach((F) => i(u, F[1], F[0]));
|
|
1015
1015
|
} else
|
|
1016
|
-
i(o,
|
|
1016
|
+
i(o, S, w);
|
|
1017
1017
|
}), o.focus();
|
|
1018
1018
|
},
|
|
1019
1019
|
radio: (t, e, n) => {
|
|
1020
1020
|
const o = $e(t, l.radio);
|
|
1021
1021
|
e.forEach((c) => {
|
|
1022
|
-
const w = c[0],
|
|
1022
|
+
const w = c[0], S = c[1], u = document.createElement("input"), F = document.createElement("label");
|
|
1023
1023
|
u.type = "radio", u.name = l.radio, u.value = w, co(w, n.inputValue) && (u.checked = !0);
|
|
1024
1024
|
const W = document.createElement("span");
|
|
1025
|
-
re(W,
|
|
1025
|
+
re(W, S), W.className = l.label, F.appendChild(u), F.appendChild(W), o.appendChild(F);
|
|
1026
1026
|
});
|
|
1027
1027
|
const i = o.querySelectorAll("input");
|
|
1028
1028
|
i.length && i[0].focus();
|
|
@@ -1038,10 +1038,10 @@ const ii = () => {
|
|
|
1038
1038
|
}), e;
|
|
1039
1039
|
}, co = (t, e) => e && e.toString() === t.toString();
|
|
1040
1040
|
function lo() {
|
|
1041
|
-
const t =
|
|
1041
|
+
const t = D.innerParams.get(this);
|
|
1042
1042
|
if (!t)
|
|
1043
1043
|
return;
|
|
1044
|
-
const e =
|
|
1044
|
+
const e = D.domCache.get(this);
|
|
1045
1045
|
ie(e.loader), Yt() ? t.icon && te(Lt()) : Si(e), Oe([e.popup, e.actions], l.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
1046
1046
|
}
|
|
1047
1047
|
const Si = (t) => {
|
|
@@ -1049,7 +1049,7 @@ const Si = (t) => {
|
|
|
1049
1049
|
e.length ? te(e[0], "inline-block") : rs() && ie(t.actions);
|
|
1050
1050
|
};
|
|
1051
1051
|
function Li(t) {
|
|
1052
|
-
const e =
|
|
1052
|
+
const e = D.innerParams.get(t || this), n = D.domCache.get(t || this);
|
|
1053
1053
|
return n ? Pn(n.popup, e.input) : null;
|
|
1054
1054
|
}
|
|
1055
1055
|
const Et = {
|
|
@@ -1069,7 +1069,7 @@ const Et = {
|
|
|
1069
1069
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
1070
1070
|
V().focus();
|
|
1071
1071
|
}, Jo = ["ArrowRight", "ArrowDown"], Fi = ["ArrowLeft", "ArrowUp"], Bi = (t, e, n) => {
|
|
1072
|
-
const o =
|
|
1072
|
+
const o = D.innerParams.get(t);
|
|
1073
1073
|
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Mi(t, e, o) : e.key === "Tab" ? Ui(e, o) : [...Jo, ...Fi].includes(e.key) ? Di(e.key) : e.key === "Escape" && Ni(e, o, n)));
|
|
1074
1074
|
}, Mi = (t, e, n) => {
|
|
1075
1075
|
if (qt(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
@@ -1103,7 +1103,7 @@ const Et = {
|
|
|
1103
1103
|
qt(e.allowEscapeKey) && (t.preventDefault(), n(ht.esc));
|
|
1104
1104
|
};
|
|
1105
1105
|
function Xo(t, e, n, o) {
|
|
1106
|
-
Yt() ? uo(t, o) : (cs(n).then(() => uo(t, o)), Yo(
|
|
1106
|
+
Yt() ? uo(t, o) : (cs(n).then(() => uo(t, o)), Yo(M)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), In() && (ai(), pi(), Vo()), $i();
|
|
1107
1107
|
}
|
|
1108
1108
|
function $i() {
|
|
1109
1109
|
Oe(
|
|
@@ -1117,13 +1117,13 @@ function Mt(t) {
|
|
|
1117
1117
|
this.isAwaitingPromise() ? t.isDismissed || (Rt(this), e(t)) : n && e(t);
|
|
1118
1118
|
}
|
|
1119
1119
|
function Hi() {
|
|
1120
|
-
return !!
|
|
1120
|
+
return !!D.awaitingPromise.get(this);
|
|
1121
1121
|
}
|
|
1122
1122
|
const ji = (t) => {
|
|
1123
1123
|
const e = V();
|
|
1124
1124
|
if (!e)
|
|
1125
1125
|
return !1;
|
|
1126
|
-
const n =
|
|
1126
|
+
const n = D.innerParams.get(t);
|
|
1127
1127
|
if (!n || De(e, n.hideClass.popup))
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
Oe(e, n.showClass.popup), H(e, n.hideClass.popup);
|
|
@@ -1135,7 +1135,7 @@ function zi(t) {
|
|
|
1135
1135
|
Rt(this), e && e(t);
|
|
1136
1136
|
}
|
|
1137
1137
|
const Rt = (t) => {
|
|
1138
|
-
t.isAwaitingPromise() && (
|
|
1138
|
+
t.isAwaitingPromise() && (D.awaitingPromise.delete(t), D.innerParams.get(t) || t._destroy());
|
|
1139
1139
|
}, Vi = (t) => typeof t > "u" ? {
|
|
1140
1140
|
isConfirmed: !1,
|
|
1141
1141
|
isDenied: !1,
|
|
@@ -1151,14 +1151,14 @@ const Rt = (t) => {
|
|
|
1151
1151
|
const o = se(), i = Ct && $o(e);
|
|
1152
1152
|
typeof n.willClose == "function" && n.willClose(e), i ? qi(t, e, o, n.returnFocus, n.didClose) : Xo(t, o, n.returnFocus, n.didClose);
|
|
1153
1153
|
}, qi = (t, e, n, o, i) => {
|
|
1154
|
-
|
|
1154
|
+
M.swalCloseEventFinishedCallback = Xo.bind(
|
|
1155
1155
|
null,
|
|
1156
1156
|
t,
|
|
1157
1157
|
n,
|
|
1158
1158
|
o,
|
|
1159
1159
|
i
|
|
1160
1160
|
), e.addEventListener(Ct, function(c) {
|
|
1161
|
-
c.target === e && (
|
|
1161
|
+
c.target === e && (M.swalCloseEventFinishedCallback(), delete M.swalCloseEventFinishedCallback);
|
|
1162
1162
|
});
|
|
1163
1163
|
}, uo = (t, e) => {
|
|
1164
1164
|
setTimeout(() => {
|
|
@@ -1166,7 +1166,7 @@ const Rt = (t) => {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
};
|
|
1168
1168
|
function Zo(t, e, n) {
|
|
1169
|
-
const o =
|
|
1169
|
+
const o = D.domCache.get(t);
|
|
1170
1170
|
e.forEach((i) => {
|
|
1171
1171
|
o[i].disabled = n;
|
|
1172
1172
|
});
|
|
@@ -1194,28 +1194,28 @@ function Ji() {
|
|
|
1194
1194
|
return Qo(this.getInput(), !0);
|
|
1195
1195
|
}
|
|
1196
1196
|
function Xi(t) {
|
|
1197
|
-
const e =
|
|
1197
|
+
const e = D.domCache.get(this), n = D.innerParams.get(this);
|
|
1198
1198
|
re(e.validationMessage, t), e.validationMessage.className = l["validation-message"], n.customClass && n.customClass.validationMessage && H(e.validationMessage, n.customClass.validationMessage), te(e.validationMessage);
|
|
1199
1199
|
const o = this.getInput();
|
|
1200
1200
|
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", l["validation-message"]), Do(o), H(o, l.inputerror));
|
|
1201
1201
|
}
|
|
1202
1202
|
function Zi() {
|
|
1203
|
-
const t =
|
|
1203
|
+
const t = D.domCache.get(this);
|
|
1204
1204
|
t.validationMessage && ie(t.validationMessage);
|
|
1205
1205
|
const e = this.getInput();
|
|
1206
1206
|
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), Oe(e, l.inputerror));
|
|
1207
1207
|
}
|
|
1208
1208
|
function Qi() {
|
|
1209
|
-
return
|
|
1209
|
+
return D.domCache.get(this).progressSteps;
|
|
1210
1210
|
}
|
|
1211
1211
|
function ea(t) {
|
|
1212
|
-
const e = V(), n =
|
|
1212
|
+
const e = V(), n = D.innerParams.get(this);
|
|
1213
1213
|
if (!e || De(e, n.hideClass.popup))
|
|
1214
1214
|
return be(
|
|
1215
1215
|
"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."
|
|
1216
1216
|
);
|
|
1217
1217
|
const o = ta(t), i = Object.assign({}, n, o);
|
|
1218
|
-
zo(this, i),
|
|
1218
|
+
zo(this, i), D.innerParams.set(this, i), Object.defineProperties(this, {
|
|
1219
1219
|
params: {
|
|
1220
1220
|
value: Object.assign({}, this.params, t),
|
|
1221
1221
|
writable: !1,
|
|
@@ -1234,17 +1234,17 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
1234
1234
|
}), e;
|
|
1235
1235
|
};
|
|
1236
1236
|
function na() {
|
|
1237
|
-
const t =
|
|
1237
|
+
const t = D.domCache.get(this), e = D.innerParams.get(this);
|
|
1238
1238
|
if (!e) {
|
|
1239
1239
|
er(this);
|
|
1240
1240
|
return;
|
|
1241
1241
|
}
|
|
1242
|
-
t.popup &&
|
|
1242
|
+
t.popup && M.swalCloseEventFinishedCallback && (M.swalCloseEventFinishedCallback(), delete M.swalCloseEventFinishedCallback), M.deferDisposalTimer && (clearTimeout(M.deferDisposalTimer), delete M.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(), oa(this);
|
|
1243
1243
|
}
|
|
1244
1244
|
const oa = (t) => {
|
|
1245
|
-
er(t), delete t.params, delete
|
|
1245
|
+
er(t), delete t.params, delete M.keydownHandler, delete M.keydownTarget, delete M.currentInstance;
|
|
1246
1246
|
}, er = (t) => {
|
|
1247
|
-
t.isAwaitingPromise() ? (an(
|
|
1247
|
+
t.isAwaitingPromise() ? (an(D, t), D.awaitingPromise.set(t, !0)) : (an(Et, t), an(D, t));
|
|
1248
1248
|
}, an = (t, e) => {
|
|
1249
1249
|
for (const n in t)
|
|
1250
1250
|
t[n].delete(e);
|
|
@@ -1270,15 +1270,15 @@ const oa = (t) => {
|
|
|
1270
1270
|
showValidationMessage: Xi,
|
|
1271
1271
|
update: ea
|
|
1272
1272
|
}, Symbol.toStringTag, { value: "Module" })), ra = (t) => {
|
|
1273
|
-
const e =
|
|
1273
|
+
const e = D.innerParams.get(t);
|
|
1274
1274
|
t.disableButtons(), e.input ? nr(t, "confirm") : Mn(t, !0);
|
|
1275
1275
|
}, sa = (t) => {
|
|
1276
|
-
const e =
|
|
1276
|
+
const e = D.innerParams.get(t);
|
|
1277
1277
|
t.disableButtons(), e.returnInputValueOnDeny ? nr(t, "deny") : Bn(t, !1);
|
|
1278
1278
|
}, ia = (t, e) => {
|
|
1279
1279
|
t.disableButtons(), e(ht.cancel);
|
|
1280
1280
|
}, nr = (t, e) => {
|
|
1281
|
-
const n =
|
|
1281
|
+
const n = D.innerParams.get(t);
|
|
1282
1282
|
if (!n.input)
|
|
1283
1283
|
return Ye(
|
|
1284
1284
|
`The "input" parameter is needed to be set when using returnInputValueOn${Cn(e)}`
|
|
@@ -1286,15 +1286,15 @@ const oa = (t) => {
|
|
|
1286
1286
|
const o = ki(t, n);
|
|
1287
1287
|
n.inputValidator ? aa(t, o, e) : t.getInput().checkValidity() ? e === "deny" ? Bn(t, o) : Mn(t, o) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
1288
1288
|
}, aa = (t, e, n) => {
|
|
1289
|
-
const o =
|
|
1289
|
+
const o = D.innerParams.get(t);
|
|
1290
1290
|
t.disableInput(), Promise.resolve().then(
|
|
1291
1291
|
() => Tt(o.inputValidator(e, o.validationMessage))
|
|
1292
1292
|
).then((c) => {
|
|
1293
1293
|
t.enableButtons(), t.enableInput(), c ? t.showValidationMessage(c) : n === "deny" ? Bn(t, e) : Mn(t, e);
|
|
1294
1294
|
});
|
|
1295
1295
|
}, Bn = (t, e) => {
|
|
1296
|
-
const n =
|
|
1297
|
-
n.showLoaderOnDeny && dt(He()), n.preDeny ? (
|
|
1296
|
+
const n = D.innerParams.get(t || globalThis);
|
|
1297
|
+
n.showLoaderOnDeny && dt(He()), n.preDeny ? (D.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1298
1298
|
() => Tt(n.preDeny(e, n.validationMessage))
|
|
1299
1299
|
).then((i) => {
|
|
1300
1300
|
i === !1 ? (t.hideLoading(), Rt(t)) : t.closePopup({ isDenied: !0, value: typeof i > "u" ? e : i });
|
|
@@ -1304,17 +1304,17 @@ const oa = (t) => {
|
|
|
1304
1304
|
}, or = (t, e) => {
|
|
1305
1305
|
t.rejectPromise(e);
|
|
1306
1306
|
}, Mn = (t, e) => {
|
|
1307
|
-
const n =
|
|
1308
|
-
n.showLoaderOnConfirm && dt(), n.preConfirm ? (t.resetValidationMessage(),
|
|
1307
|
+
const n = D.innerParams.get(t || globalThis);
|
|
1308
|
+
n.showLoaderOnConfirm && dt(), n.preConfirm ? (t.resetValidationMessage(), D.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1309
1309
|
() => Tt(n.preConfirm(e, n.validationMessage))
|
|
1310
1310
|
).then((i) => {
|
|
1311
1311
|
_e(Kt()) || i === !1 ? (t.hideLoading(), Rt(t)) : fo(t, typeof i > "u" ? e : i);
|
|
1312
1312
|
}).catch((i) => or(t || globalThis, i))) : fo(t, e);
|
|
1313
1313
|
}, ca = (t, e, n) => {
|
|
1314
|
-
|
|
1314
|
+
D.innerParams.get(t).toast ? la(t, e, n) : (da(e), fa(e), ha(t, e, n));
|
|
1315
1315
|
}, la = (t, e, n) => {
|
|
1316
1316
|
e.popup.onclick = () => {
|
|
1317
|
-
const o =
|
|
1317
|
+
const o = D.innerParams.get(t);
|
|
1318
1318
|
o && (ua(o) || o.timer || o.input) || n(ht.close);
|
|
1319
1319
|
};
|
|
1320
1320
|
}, ua = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
@@ -1333,7 +1333,7 @@ const da = (t) => {
|
|
|
1333
1333
|
};
|
|
1334
1334
|
}, ha = (t, e, n) => {
|
|
1335
1335
|
e.container.onclick = (o) => {
|
|
1336
|
-
const i =
|
|
1336
|
+
const i = D.innerParams.get(t);
|
|
1337
1337
|
if (zt) {
|
|
1338
1338
|
zt = !1;
|
|
1339
1339
|
return;
|
|
@@ -1359,23 +1359,23 @@ function ba(t) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
return e;
|
|
1361
1361
|
}
|
|
1362
|
-
const va = () =>
|
|
1363
|
-
if (
|
|
1364
|
-
return ss(),
|
|
1362
|
+
const va = () => M.timeout && M.timeout.getTimerLeft(), rr = () => {
|
|
1363
|
+
if (M.timeout)
|
|
1364
|
+
return ss(), M.timeout.stop();
|
|
1365
1365
|
}, sr = () => {
|
|
1366
|
-
if (
|
|
1367
|
-
const t =
|
|
1366
|
+
if (M.timeout) {
|
|
1367
|
+
const t = M.timeout.start();
|
|
1368
1368
|
return Rn(t), t;
|
|
1369
1369
|
}
|
|
1370
1370
|
}, ya = () => {
|
|
1371
|
-
const t =
|
|
1371
|
+
const t = M.timeout;
|
|
1372
1372
|
return t && (t.running ? rr() : sr());
|
|
1373
1373
|
}, wa = (t) => {
|
|
1374
|
-
if (
|
|
1375
|
-
const e =
|
|
1374
|
+
if (M.timeout) {
|
|
1375
|
+
const e = M.timeout.increase(t);
|
|
1376
1376
|
return Rn(e, !0), e;
|
|
1377
1377
|
}
|
|
1378
|
-
}, ka = () =>
|
|
1378
|
+
}, ka = () => M.timeout && M.timeout.isRunning();
|
|
1379
1379
|
let po = !1;
|
|
1380
1380
|
const vn = {};
|
|
1381
1381
|
function Aa(t = "data-swal-template") {
|
|
@@ -1446,28 +1446,28 @@ class pt {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
});
|
|
1448
1448
|
const o = this._main(this.params);
|
|
1449
|
-
|
|
1449
|
+
D.promise.set(this, o);
|
|
1450
1450
|
}
|
|
1451
1451
|
_main(e, n = {}) {
|
|
1452
|
-
Zr(Object.assign({}, n, e)),
|
|
1452
|
+
Zr(Object.assign({}, n, e)), M.currentInstance && (M.currentInstance._destroy(), In() && Vo()), M.currentInstance = this;
|
|
1453
1453
|
const o = Ea(e, n);
|
|
1454
|
-
ri(o), Object.freeze(o),
|
|
1454
|
+
ri(o), Object.freeze(o), M.timeout && (M.timeout.stop(), delete M.timeout), clearTimeout(M.restoreFocusTimeout);
|
|
1455
1455
|
const i = Ta(this);
|
|
1456
|
-
return zo(this, o),
|
|
1456
|
+
return zo(this, o), D.innerParams.set(this, o), Ca(this, i, o);
|
|
1457
1457
|
}
|
|
1458
1458
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1459
1459
|
then(e) {
|
|
1460
|
-
return
|
|
1460
|
+
return D.promise.get(this).then(e);
|
|
1461
1461
|
}
|
|
1462
1462
|
finally(e) {
|
|
1463
|
-
return
|
|
1463
|
+
return D.promise.get(this).finally(e);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
const Ca = (t, e, n) => new Promise((o, i) => {
|
|
1467
1467
|
const c = (w) => {
|
|
1468
1468
|
t.closePopup({ isDismissed: !0, dismiss: w });
|
|
1469
1469
|
};
|
|
1470
|
-
Et.swalPromiseResolve.set(t, o), Et.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => ra(t), e.denyButton.onclick = () => sa(t), e.cancelButton.onclick = () => ia(t, c), e.closeButton.onclick = () => c(ht.close), ca(t, e, c), Oi(t,
|
|
1470
|
+
Et.swalPromiseResolve.set(t, o), Et.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => ra(t), e.denyButton.onclick = () => sa(t), e.cancelButton.onclick = () => ia(t, c), e.closeButton.onclick = () => c(ht.close), ca(t, e, c), Oi(t, M, n, c), wi(t, n), mi(n), Sa(M, n, c), La(e, n), setTimeout(() => {
|
|
1471
1471
|
e.container.scrollTop = 0;
|
|
1472
1472
|
});
|
|
1473
1473
|
}), Ea = (t, e) => {
|
|
@@ -1486,7 +1486,7 @@ const Ca = (t, e, n) => new Promise((o, i) => {
|
|
|
1486
1486
|
validationMessage: Kt(),
|
|
1487
1487
|
progressSteps: Mo()
|
|
1488
1488
|
};
|
|
1489
|
-
return
|
|
1489
|
+
return D.domCache.set(t, e), e;
|
|
1490
1490
|
}, Sa = (t, e, n) => {
|
|
1491
1491
|
const o = Gt();
|
|
1492
1492
|
ie(o), e.timer && (t.timeout = new si(() => {
|
|
@@ -1558,7 +1558,7 @@ function Ua(t) {
|
|
|
1558
1558
|
return kn(t, n);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function U(t, e) {
|
|
1562
1562
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $t;
|
|
1563
1563
|
mo && mo(t, null);
|
|
1564
1564
|
let o = e.length;
|
|
@@ -1637,7 +1637,7 @@ const Ka = function() {
|
|
|
1637
1637
|
};
|
|
1638
1638
|
function dr() {
|
|
1639
1639
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ka();
|
|
1640
|
-
const e = (
|
|
1640
|
+
const e = (L) => dr(L);
|
|
1641
1641
|
if (e.version = "3.0.6", e.removed = [], !t || !t.document || t.document.nodeType !== 9)
|
|
1642
1642
|
return e.isSupported = !1, e;
|
|
1643
1643
|
let {
|
|
@@ -1646,17 +1646,17 @@ function dr() {
|
|
|
1646
1646
|
const o = n, i = o.currentScript, {
|
|
1647
1647
|
DocumentFragment: c,
|
|
1648
1648
|
HTMLTemplateElement: w,
|
|
1649
|
-
Node:
|
|
1649
|
+
Node: S,
|
|
1650
1650
|
Element: u,
|
|
1651
|
-
NodeFilter:
|
|
1651
|
+
NodeFilter: F,
|
|
1652
1652
|
NamedNodeMap: W = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
1653
1653
|
HTMLFormElement: Y,
|
|
1654
1654
|
DOMParser: ae,
|
|
1655
1655
|
trustedTypes: z
|
|
1656
1656
|
} = t, Fe = u.prototype, Je = Dt(Fe, "cloneNode"), ve = Dt(Fe, "nextSibling"), Xe = Dt(Fe, "childNodes"), de = Dt(Fe, "parentNode");
|
|
1657
1657
|
if (typeof w == "function") {
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1658
|
+
const L = n.createElement("template");
|
|
1659
|
+
L.content && L.content.ownerDocument && (n = L.content.ownerDocument);
|
|
1660
1660
|
}
|
|
1661
1661
|
let N, ye = "";
|
|
1662
1662
|
const {
|
|
@@ -1673,7 +1673,7 @@ function dr() {
|
|
|
1673
1673
|
MUSTACHE_EXPR: y,
|
|
1674
1674
|
ERB_EXPR: O,
|
|
1675
1675
|
TMPLIT_EXPR: p,
|
|
1676
|
-
DATA_ATTR:
|
|
1676
|
+
DATA_ATTR: B,
|
|
1677
1677
|
ARIA_ATTR: q,
|
|
1678
1678
|
IS_SCRIPT_OR_DATA: J,
|
|
1679
1679
|
ATTR_WHITESPACE: G
|
|
@@ -1681,9 +1681,9 @@ function dr() {
|
|
|
1681
1681
|
let {
|
|
1682
1682
|
IS_ALLOWED_URI: ce
|
|
1683
1683
|
} = ko, P = null;
|
|
1684
|
-
const fe =
|
|
1684
|
+
const fe = U({}, [...bo, ...ln, ...un, ...dn, ...vo]);
|
|
1685
1685
|
let r = null;
|
|
1686
|
-
const a =
|
|
1686
|
+
const a = U({}, [...yo, ...fn, ...wo, ...Nt]);
|
|
1687
1687
|
let d = Object.seal(cr(null, {
|
|
1688
1688
|
tagNameCheck: {
|
|
1689
1689
|
writable: !0,
|
|
@@ -1706,13 +1706,13 @@ function dr() {
|
|
|
1706
1706
|
})), g = null, h = null, x = !0, m = !0, b = !1, E = !0, C = !1, R = !1, $ = !1, he = !1, le = !1, ee = !1, Pe = !1, Un = !0, Dn = !1;
|
|
1707
1707
|
const mr = "user-content-";
|
|
1708
1708
|
let Zt = !0, mt = !1, Ze = {}, Qe = null;
|
|
1709
|
-
const Nn =
|
|
1709
|
+
const Nn = U({}, ["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"]);
|
|
1710
1710
|
let $n = null;
|
|
1711
|
-
const Hn =
|
|
1711
|
+
const Hn = U({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1712
1712
|
let Qt = null;
|
|
1713
|
-
const jn =
|
|
1713
|
+
const jn = U({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ot = "http://www.w3.org/1998/Math/MathML", Ft = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
1714
1714
|
let et = Be, en = !1, tn = null;
|
|
1715
|
-
const gr =
|
|
1715
|
+
const gr = U({}, [Ot, Ft, Be], cn);
|
|
1716
1716
|
let je = null;
|
|
1717
1717
|
const br = ["application/xhtml+xml", "text/html"], vr = "text/html";
|
|
1718
1718
|
let Q = null, tt = null;
|
|
@@ -1722,21 +1722,21 @@ function dr() {
|
|
|
1722
1722
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1723
1723
|
if (!(tt && tt === s)) {
|
|
1724
1724
|
if ((!s || typeof s != "object") && (s = {}), s = ot(s), je = // eslint-disable-next-line unicorn/prefer-includes
|
|
1725
|
-
br.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? je = vr : je = s.PARSER_MEDIA_TYPE, Q = je === "application/xhtml+xml" ? cn : $t, P = "ALLOWED_TAGS" in s ?
|
|
1725
|
+
br.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? je = vr : je = s.PARSER_MEDIA_TYPE, Q = je === "application/xhtml+xml" ? cn : $t, P = "ALLOWED_TAGS" in s ? U({}, s.ALLOWED_TAGS, Q) : fe, r = "ALLOWED_ATTR" in s ? U({}, s.ALLOWED_ATTR, Q) : a, tn = "ALLOWED_NAMESPACES" in s ? U({}, s.ALLOWED_NAMESPACES, cn) : gr, Qt = "ADD_URI_SAFE_ATTR" in s ? U(
|
|
1726
1726
|
ot(jn),
|
|
1727
1727
|
// eslint-disable-line indent
|
|
1728
1728
|
s.ADD_URI_SAFE_ATTR,
|
|
1729
1729
|
// eslint-disable-line indent
|
|
1730
1730
|
Q
|
|
1731
1731
|
// eslint-disable-line indent
|
|
1732
|
-
) : jn, $n = "ADD_DATA_URI_TAGS" in s ?
|
|
1732
|
+
) : jn, $n = "ADD_DATA_URI_TAGS" in s ? U(
|
|
1733
1733
|
ot(Hn),
|
|
1734
1734
|
// eslint-disable-line indent
|
|
1735
1735
|
s.ADD_DATA_URI_TAGS,
|
|
1736
1736
|
// eslint-disable-line indent
|
|
1737
1737
|
Q
|
|
1738
1738
|
// eslint-disable-line indent
|
|
1739
|
-
) : Hn, Qe = "FORBID_CONTENTS" in s ?
|
|
1739
|
+
) : Hn, Qe = "FORBID_CONTENTS" in s ? U({}, s.FORBID_CONTENTS, Q) : Nn, g = "FORBID_TAGS" in s ? U({}, s.FORBID_TAGS, Q) : {}, h = "FORBID_ATTR" in s ? U({}, s.FORBID_ATTR, Q) : {}, Ze = "USE_PROFILES" in s ? s.USE_PROFILES : !1, x = s.ALLOW_ARIA_ATTR !== !1, m = s.ALLOW_DATA_ATTR !== !1, b = s.ALLOW_UNKNOWN_PROTOCOLS || !1, E = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, C = s.SAFE_FOR_TEMPLATES || !1, R = s.WHOLE_DOCUMENT || !1, le = s.RETURN_DOM || !1, ee = s.RETURN_DOM_FRAGMENT || !1, Pe = s.RETURN_TRUSTED_TYPE || !1, he = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, Dn = s.SANITIZE_NAMED_PROPS || !1, Zt = s.KEEP_CONTENT !== !1, mt = s.IN_PLACE || !1, ce = s.ALLOWED_URI_REGEXP || lr, et = s.NAMESPACE || Be, d = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (d.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (d.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (d.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), C && (m = !1), ee && (le = !0), Ze && (P = U({}, [...vo]), r = [], Ze.html === !0 && (U(P, bo), U(r, yo)), Ze.svg === !0 && (U(P, ln), U(r, fn), U(r, Nt)), Ze.svgFilters === !0 && (U(P, un), U(r, fn), U(r, Nt)), Ze.mathMl === !0 && (U(P, dn), U(r, wo), U(r, Nt))), s.ADD_TAGS && (P === fe && (P = ot(P)), U(P, s.ADD_TAGS, Q)), s.ADD_ATTR && (r === a && (r = ot(r)), U(r, s.ADD_ATTR, Q)), s.ADD_URI_SAFE_ATTR && U(Qt, s.ADD_URI_SAFE_ATTR, Q), s.FORBID_CONTENTS && (Qe === Nn && (Qe = ot(Qe)), U(Qe, s.FORBID_CONTENTS, Q)), Zt && (P["#text"] = !0), R && U(P, ["html", "head", "body"]), P.table && (U(P, ["tbody"]), delete g.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
1740
1740
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1741
1741
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1742
1742
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -1746,10 +1746,10 @@ function dr() {
|
|
|
1746
1746
|
N === void 0 && (N = Ga(z, i)), N !== null && typeof ye == "string" && (ye = N.createHTML(""));
|
|
1747
1747
|
ue && ue(s), tt = s;
|
|
1748
1748
|
}
|
|
1749
|
-
}, Vn =
|
|
1750
|
-
|
|
1751
|
-
const on =
|
|
1752
|
-
|
|
1749
|
+
}, Vn = U({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = U({}, ["foreignobject", "desc", "title", "annotation-xml"]), wr = U({}, ["title", "style", "font", "a", "script"]), Bt = U({}, ln);
|
|
1750
|
+
U(Bt, un), U(Bt, Da);
|
|
1751
|
+
const on = U({}, dn);
|
|
1752
|
+
U(on, Na);
|
|
1753
1753
|
const kr = function(s) {
|
|
1754
1754
|
let v = de(s);
|
|
1755
1755
|
(!v || !v.tagName) && (v = {
|
|
@@ -1819,13 +1819,13 @@ function dr() {
|
|
|
1819
1819
|
s.ownerDocument || s,
|
|
1820
1820
|
s,
|
|
1821
1821
|
// eslint-disable-next-line no-bitwise
|
|
1822
|
-
|
|
1822
|
+
F.SHOW_ELEMENT | F.SHOW_COMMENT | F.SHOW_TEXT,
|
|
1823
1823
|
null
|
|
1824
1824
|
);
|
|
1825
1825
|
}, Ar = function(s) {
|
|
1826
1826
|
return s instanceof Y && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof W) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
1827
1827
|
}, Gn = function(s) {
|
|
1828
|
-
return typeof
|
|
1828
|
+
return typeof S == "function" && s instanceof S;
|
|
1829
1829
|
}, Me = function(s, v, T) {
|
|
1830
1830
|
k[s] && Ut(k[s], (K) => {
|
|
1831
1831
|
K.call(e, v, T, tt);
|
|
@@ -1861,7 +1861,7 @@ function dr() {
|
|
|
1861
1861
|
}, Jn = function(s, v, T) {
|
|
1862
1862
|
if (Un && (v === "id" || v === "name") && (T in n || T in yr))
|
|
1863
1863
|
return !1;
|
|
1864
|
-
if (!(m && !h[v] && we(
|
|
1864
|
+
if (!(m && !h[v] && we(B, v))) {
|
|
1865
1865
|
if (!(x && we(q, v))) {
|
|
1866
1866
|
if (!r[v] || h[v]) {
|
|
1867
1867
|
if (
|
|
@@ -1938,44 +1938,44 @@ function dr() {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
Me("afterSanitizeAttributes", s, null);
|
|
1941
|
-
}, _r = function
|
|
1941
|
+
}, _r = function L(s) {
|
|
1942
1942
|
let v = null;
|
|
1943
1943
|
const T = Kn(s);
|
|
1944
1944
|
for (Me("beforeSanitizeShadowDOM", s, null); v = T.nextNode(); )
|
|
1945
|
-
Me("uponSanitizeShadowNode", v, null), !Yn(v) && (v.content instanceof c &&
|
|
1945
|
+
Me("uponSanitizeShadowNode", v, null), !Yn(v) && (v.content instanceof c && L(v.content), Zn(v));
|
|
1946
1946
|
Me("afterSanitizeShadowDOM", s, null);
|
|
1947
1947
|
};
|
|
1948
|
-
return e.sanitize = function(
|
|
1948
|
+
return e.sanitize = function(L) {
|
|
1949
1949
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, T = null, K = null, ne = null;
|
|
1950
|
-
if (en = !
|
|
1951
|
-
if (typeof
|
|
1952
|
-
if (
|
|
1950
|
+
if (en = !L, en && (L = "<!-->"), typeof L != "string" && !Gn(L))
|
|
1951
|
+
if (typeof L.toString == "function") {
|
|
1952
|
+
if (L = L.toString(), typeof L != "string")
|
|
1953
1953
|
throw yt("dirty is not a string, aborting");
|
|
1954
1954
|
} else
|
|
1955
1955
|
throw yt("toString is not a function");
|
|
1956
1956
|
if (!e.isSupported)
|
|
1957
|
-
return
|
|
1958
|
-
if ($ || nn(s), e.removed = [], typeof
|
|
1959
|
-
if (
|
|
1960
|
-
const Ve = Q(
|
|
1957
|
+
return L;
|
|
1958
|
+
if ($ || nn(s), e.removed = [], typeof L == "string" && (mt = !1), mt) {
|
|
1959
|
+
if (L.nodeName) {
|
|
1960
|
+
const Ve = Q(L.nodeName);
|
|
1961
1961
|
if (!P[Ve] || g[Ve])
|
|
1962
1962
|
throw yt("root node is forbidden and cannot be sanitized in-place");
|
|
1963
1963
|
}
|
|
1964
|
-
} else if (
|
|
1965
|
-
v = qn("<!---->"), T = v.ownerDocument.importNode(
|
|
1964
|
+
} else if (L instanceof S)
|
|
1965
|
+
v = qn("<!---->"), T = v.ownerDocument.importNode(L, !0), T.nodeType === 1 && T.nodeName === "BODY" || T.nodeName === "HTML" ? v = T : v.appendChild(T);
|
|
1966
1966
|
else {
|
|
1967
1967
|
if (!le && !C && !R && // eslint-disable-next-line unicorn/prefer-includes
|
|
1968
|
-
|
|
1969
|
-
return N && Pe ? N.createHTML(
|
|
1970
|
-
if (v = qn(
|
|
1968
|
+
L.indexOf("<") === -1)
|
|
1969
|
+
return N && Pe ? N.createHTML(L) : L;
|
|
1970
|
+
if (v = qn(L), !v)
|
|
1971
1971
|
return le ? null : Pe ? ye : "";
|
|
1972
1972
|
}
|
|
1973
1973
|
v && he && ze(v.firstChild);
|
|
1974
|
-
const oe = Kn(mt ?
|
|
1974
|
+
const oe = Kn(mt ? L : v);
|
|
1975
1975
|
for (; K = oe.nextNode(); )
|
|
1976
1976
|
Yn(K) || (K.content instanceof c && _r(K.content), Zn(K));
|
|
1977
1977
|
if (mt)
|
|
1978
|
-
return
|
|
1978
|
+
return L;
|
|
1979
1979
|
if (le) {
|
|
1980
1980
|
if (ee)
|
|
1981
1981
|
for (ne = A.call(v.ownerDocument); v.firstChild; )
|
|
@@ -1990,21 +1990,21 @@ function dr() {
|
|
|
1990
1990
|
pe = vt(pe, Ve, " ");
|
|
1991
1991
|
}), N && Pe ? N.createHTML(pe) : pe;
|
|
1992
1992
|
}, e.setConfig = function() {
|
|
1993
|
-
let
|
|
1994
|
-
nn(
|
|
1993
|
+
let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1994
|
+
nn(L), $ = !0;
|
|
1995
1995
|
}, e.clearConfig = function() {
|
|
1996
1996
|
tt = null, $ = !1;
|
|
1997
|
-
}, e.isValidAttribute = function(
|
|
1997
|
+
}, e.isValidAttribute = function(L, s, v) {
|
|
1998
1998
|
tt || nn({});
|
|
1999
|
-
const T = Q(
|
|
1999
|
+
const T = Q(L), K = Q(s);
|
|
2000
2000
|
return Jn(T, K, v);
|
|
2001
|
-
}, e.addHook = function(
|
|
2002
|
-
typeof s == "function" && (k[
|
|
2003
|
-
}, e.removeHook = function(
|
|
2004
|
-
if (k[
|
|
2005
|
-
return go(k[
|
|
2006
|
-
}, e.removeHooks = function(
|
|
2007
|
-
k[
|
|
2001
|
+
}, e.addHook = function(L, s) {
|
|
2002
|
+
typeof s == "function" && (k[L] = k[L] || [], bt(k[L], s));
|
|
2003
|
+
}, e.removeHook = function(L) {
|
|
2004
|
+
if (k[L])
|
|
2005
|
+
return go(k[L]);
|
|
2006
|
+
}, e.removeHooks = function(L) {
|
|
2007
|
+
k[L] && (k[L] = []);
|
|
2008
2008
|
}, e.removeAllHooks = function() {
|
|
2009
2009
|
k = {};
|
|
2010
2010
|
}, e;
|
|
@@ -2059,21 +2059,21 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function w() {
|
|
2061
2061
|
const u = sessionStorage.getItem("name");
|
|
2062
|
-
let
|
|
2062
|
+
let F = "?";
|
|
2063
2063
|
if (!u)
|
|
2064
|
-
return
|
|
2064
|
+
return F;
|
|
2065
2065
|
const W = u.split(" ").filter((ae) => ae.length > 0).map((ae) => ae[0].toUpperCase()), Y = Math.min(2, W.length);
|
|
2066
|
-
return
|
|
2066
|
+
return F = W.slice(0, Y).join(""), F.length > 0 ? F : "?";
|
|
2067
2067
|
}
|
|
2068
|
-
const
|
|
2069
|
-
const u = o.value[0],
|
|
2070
|
-
return Math.max(
|
|
2068
|
+
const S = Sr(() => {
|
|
2069
|
+
const u = o.value[0], F = u === "?" ? 0 : (u.charCodeAt(0) - 64) % 19;
|
|
2070
|
+
return Math.max(F, 0);
|
|
2071
2071
|
});
|
|
2072
2072
|
return Wt(() => {
|
|
2073
2073
|
o.value = w();
|
|
2074
|
-
}), (u,
|
|
2074
|
+
}), (u, F) => (X(), Ae("div", {
|
|
2075
2075
|
id: "sf-header-avatar",
|
|
2076
|
-
"data-cor":
|
|
2076
|
+
"data-cor": S.value,
|
|
2077
2077
|
onClick: c
|
|
2078
2078
|
}, Vt(o.value), 9, Za));
|
|
2079
2079
|
}
|
|
@@ -2127,7 +2127,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2127
2127
|
(...o) => qe(An).Toggle && qe(An).Toggle(...o))
|
|
2128
2128
|
}, cc));
|
|
2129
2129
|
}
|
|
2130
|
-
}), uc = { id: "sf-layout" }, dc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), fc = { class: "title" }, hc = { class: "sf-layout-nav-header" }, pc = /* @__PURE__ */ j("span", null, "Menu", -1), mc = { class: "sf-layout-nav-content" }, gc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), bc = { id: "sf-layout-content" },
|
|
2130
|
+
}), uc = { id: "sf-layout" }, dc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), fc = { class: "title" }, hc = { class: "sf-layout-nav-header" }, pc = /* @__PURE__ */ j("span", null, "Menu", -1), mc = { class: "sf-layout-nav-content" }, gc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), bc = { id: "sf-layout-content" }, Xc = /* @__PURE__ */ Ne({
|
|
2131
2131
|
__name: "Layout",
|
|
2132
2132
|
emits: ["mounted", "logout"],
|
|
2133
2133
|
setup(t, { emit: e }) {
|
|
@@ -2144,7 +2144,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2144
2144
|
"sf-layout-menu-toggler",
|
|
2145
2145
|
{ invert: qe(n).IsVisible }
|
|
2146
2146
|
]),
|
|
2147
|
-
onClick: w[0] || (w[0] = (
|
|
2147
|
+
onClick: w[0] || (w[0] = (S) => qe(n).Toggle())
|
|
2148
2148
|
}, [
|
|
2149
2149
|
dc,
|
|
2150
2150
|
wt(sc)
|
|
@@ -2164,7 +2164,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2164
2164
|
wt(Ht, {
|
|
2165
2165
|
icone: "close",
|
|
2166
2166
|
button: "",
|
|
2167
|
-
onClick: w[1] || (w[1] = (
|
|
2167
|
+
onClick: w[1] || (w[1] = (S) => qe(n).Close())
|
|
2168
2168
|
})
|
|
2169
2169
|
]),
|
|
2170
2170
|
j("div", mc, [
|
|
@@ -2181,7 +2181,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2181
2181
|
], 2)
|
|
2182
2182
|
]));
|
|
2183
2183
|
}
|
|
2184
|
-
}), vc = ["href", "data-active", "onClick"], yc = { class: "sf-navmenulink-text" },
|
|
2184
|
+
}), vc = ["href", "data-active", "onClick"], yc = { class: "sf-navmenulink-text" }, Zc = /* @__PURE__ */ Ne({
|
|
2185
2185
|
__name: "NavMenuLink",
|
|
2186
2186
|
props: {
|
|
2187
2187
|
href: {},
|
|
@@ -2193,8 +2193,8 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2193
2193
|
const e = t, n = To();
|
|
2194
2194
|
function o(i, c) {
|
|
2195
2195
|
i.preventDefault();
|
|
2196
|
-
const
|
|
2197
|
-
c(),
|
|
2196
|
+
const S = i.target.closest(".sf-layout-nav-content");
|
|
2197
|
+
c(), S && S.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2198
2198
|
}
|
|
2199
2199
|
return (i, c) => {
|
|
2200
2200
|
const w = Co("router-link");
|
|
@@ -2202,11 +2202,11 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2202
2202
|
to: e.href,
|
|
2203
2203
|
custom: ""
|
|
2204
2204
|
}, {
|
|
2205
|
-
default: Eo(({ href:
|
|
2205
|
+
default: Eo(({ href: S, navigate: u, isExactActive: F, isActive: W }) => [
|
|
2206
2206
|
j("a", {
|
|
2207
2207
|
class: "sf-navmenulink",
|
|
2208
|
-
href:
|
|
2209
|
-
"data-active": e.exact ?
|
|
2208
|
+
href: S,
|
|
2209
|
+
"data-active": e.exact ? F : W,
|
|
2210
2210
|
onClick: (Y) => o(Y, u)
|
|
2211
2211
|
}, [
|
|
2212
2212
|
e.icon ? (X(), ut(Ht, {
|
|
@@ -2240,7 +2240,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2240
2240
|
onClick: i
|
|
2241
2241
|
}, null, 2));
|
|
2242
2242
|
}
|
|
2243
|
-
}),
|
|
2243
|
+
}), Qc = /* @__PURE__ */ Ne({
|
|
2244
2244
|
__name: "Content",
|
|
2245
2245
|
props: {
|
|
2246
2246
|
class: {},
|
|
@@ -2263,7 +2263,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2263
2263
|
function c() {
|
|
2264
2264
|
return new st("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
2265
2265
|
}
|
|
2266
|
-
return (w,
|
|
2266
|
+
return (w, S) => (X(), Ae("div", {
|
|
2267
2267
|
class: ke(n()),
|
|
2268
2268
|
style: _n(e.style)
|
|
2269
2269
|
}, [
|
|
@@ -2315,40 +2315,40 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2315
2315
|
})
|
|
2316
2316
|
], -1), Tc = [
|
|
2317
2317
|
Ec
|
|
2318
|
-
],
|
|
2318
|
+
], el = /* @__PURE__ */ Ne({
|
|
2319
2319
|
__name: "TabNavigation",
|
|
2320
2320
|
props: {
|
|
2321
2321
|
tabs: {}
|
|
2322
2322
|
},
|
|
2323
2323
|
setup(t) {
|
|
2324
2324
|
const e = t, n = it(null), o = new ResizeObserver((u) => {
|
|
2325
|
-
|
|
2325
|
+
S();
|
|
2326
2326
|
}), i = it(!1), c = it(!1);
|
|
2327
2327
|
function w(u = !1) {
|
|
2328
|
-
const
|
|
2329
|
-
n.value.scrollLeft += u ? -
|
|
2328
|
+
const F = n.value.clientWidth;
|
|
2329
|
+
n.value.scrollLeft += u ? -F : F;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function S() {
|
|
2332
2332
|
const u = n.value.scrollWidth - n.value.clientWidth;
|
|
2333
2333
|
i.value = n.value.scrollLeft > 10, c.value = n.value.scrollLeft < u - 10;
|
|
2334
2334
|
}
|
|
2335
2335
|
return Wt(() => {
|
|
2336
|
-
n.value.addEventListener("scroll",
|
|
2336
|
+
n.value.addEventListener("scroll", S), o.observe(n.value);
|
|
2337
2337
|
}), Ir(() => {
|
|
2338
2338
|
var u;
|
|
2339
2339
|
try {
|
|
2340
2340
|
(u = n.value) == null || u.removeEventListener(
|
|
2341
2341
|
"scroll",
|
|
2342
|
-
|
|
2342
|
+
S
|
|
2343
2343
|
), o.unobserve(n.value), o.disconnect();
|
|
2344
2344
|
} catch {
|
|
2345
2345
|
}
|
|
2346
|
-
}), (u,
|
|
2346
|
+
}), (u, F) => {
|
|
2347
2347
|
const W = Co("RouterLink");
|
|
2348
2348
|
return X(), Ae("div", kc, [
|
|
2349
2349
|
j("div", {
|
|
2350
2350
|
class: ke(["left-arrow", { active: i.value }]),
|
|
2351
|
-
onClick:
|
|
2351
|
+
onClick: F[0] || (F[0] = (Y) => w(!0))
|
|
2352
2352
|
}, _c, 2),
|
|
2353
2353
|
j("ul", {
|
|
2354
2354
|
ref_key: "trackerContainer",
|
|
@@ -2378,12 +2378,12 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2378
2378
|
], 512),
|
|
2379
2379
|
j("div", {
|
|
2380
2380
|
class: ke(["right-arrow", { active: c.value }]),
|
|
2381
|
-
onClick:
|
|
2381
|
+
onClick: F[1] || (F[1] = (Y) => w())
|
|
2382
2382
|
}, Tc, 2)
|
|
2383
2383
|
]);
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
}), Sc = ["id", "name", "disabled", "data-color", "form", "type"], Lc = { class: "sf-button-label" },
|
|
2386
|
+
}), Sc = ["id", "name", "disabled", "data-color", "form", "type"], Lc = { class: "sf-button-label" }, tl = /* @__PURE__ */ Ne({
|
|
2387
2387
|
__name: "Button",
|
|
2388
2388
|
props: {
|
|
2389
2389
|
icon: {},
|
|
@@ -2486,8 +2486,8 @@ function Mc(t, e, n) {
|
|
|
2486
2486
|
return (e + n) * 3 / 4 - n;
|
|
2487
2487
|
}
|
|
2488
2488
|
function Uc(t) {
|
|
2489
|
-
var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), w = 0,
|
|
2490
|
-
for (u = 0; u <
|
|
2489
|
+
var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), w = 0, S = i > 0 ? o - 4 : o, u;
|
|
2490
|
+
for (u = 0; u < S; u += 4)
|
|
2491
2491
|
e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[w++] = e >> 16 & 255, c[w++] = e >> 8 & 255, c[w++] = e & 255;
|
|
2492
2492
|
return i === 2 && (e = Ce[t.charCodeAt(u)] << 2 | Ce[t.charCodeAt(u + 1)] >> 4, c[w++] = e & 255), i === 1 && (e = Ce[t.charCodeAt(u)] << 10 | Ce[t.charCodeAt(u + 1)] << 4 | Ce[t.charCodeAt(u + 2)] >> 2, c[w++] = e >> 8 & 255, c[w++] = e & 255), c;
|
|
2493
2493
|
}
|
|
@@ -2500,8 +2500,8 @@ function Nc(t, e, n) {
|
|
|
2500
2500
|
return i.join("");
|
|
2501
2501
|
}
|
|
2502
2502
|
function $c(t) {
|
|
2503
|
-
for (var e, n = t.length, o = n % 3, i = [], c = 16383, w = 0,
|
|
2504
|
-
i.push(Nc(t, w, w + c >
|
|
2503
|
+
for (var e, n = t.length, o = n % 3, i = [], c = 16383, w = 0, S = n - o; w < S; w += c)
|
|
2504
|
+
i.push(Nc(t, w, w + c > S ? S : w + c));
|
|
2505
2505
|
return o === 1 ? (e = t[n - 1], i.push(
|
|
2506
2506
|
Re[e >> 2] + Re[e << 4 & 63] + "=="
|
|
2507
2507
|
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
|
|
@@ -2527,7 +2527,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2527
2527
|
o.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2528
2528
|
var i = !n && typeof self == "object", c = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2529
2529
|
c ? o = Ic : i && (o = self);
|
|
2530
|
-
var w = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports,
|
|
2530
|
+
var w = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, S = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", u = "0123456789abcdef".split(""), F = [-2147483648, 8388608, 32768, 128], W = [24, 16, 8, 0], Y = [
|
|
2531
2531
|
1116352408,
|
|
2532
2532
|
1899447441,
|
|
2533
2533
|
3049323471,
|
|
@@ -2595,7 +2595,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2595
2595
|
], ae = ["hex", "array", "digest", "arrayBuffer"], z = [];
|
|
2596
2596
|
(o.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(f) {
|
|
2597
2597
|
return Object.prototype.toString.call(f) === "[object Array]";
|
|
2598
|
-
}),
|
|
2598
|
+
}), S && (o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(f) {
|
|
2599
2599
|
return typeof f == "object" && f.buffer && f.buffer.constructor === ArrayBuffer;
|
|
2600
2600
|
});
|
|
2601
2601
|
var Fe = function(f, A) {
|
|
@@ -2654,9 +2654,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2654
2654
|
if (I === "object") {
|
|
2655
2655
|
if (f === null)
|
|
2656
2656
|
throw new Error(e);
|
|
2657
|
-
if (
|
|
2657
|
+
if (S && f.constructor === ArrayBuffer)
|
|
2658
2658
|
f = new Uint8Array(f);
|
|
2659
|
-
else if (!Array.isArray(f) && (!
|
|
2659
|
+
else if (!Array.isArray(f) && (!S || !ArrayBuffer.isView(f)))
|
|
2660
2660
|
throw new Error(e);
|
|
2661
2661
|
} else
|
|
2662
2662
|
throw new Error(e);
|
|
@@ -2677,22 +2677,22 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2677
2677
|
if (!this.finalized) {
|
|
2678
2678
|
this.finalized = !0;
|
|
2679
2679
|
var f = this.blocks, A = this.lastByteIndex;
|
|
2680
|
-
f[16] = this.block, f[A >> 2] |=
|
|
2680
|
+
f[16] = this.block, f[A >> 2] |= F[A & 3], this.block = f[16], A >= 56 && (this.hashed || this.hash(), f[0] = this.block, f[16] = f[1] = f[2] = f[3] = f[4] = f[5] = f[6] = f[7] = f[8] = f[9] = f[10] = f[11] = f[12] = f[13] = f[14] = f[15] = 0), f[14] = this.hBytes << 3 | this.bytes >>> 29, f[15] = this.bytes << 3, this.hash();
|
|
2681
2681
|
}
|
|
2682
2682
|
}, N.prototype.hash = function() {
|
|
2683
|
-
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7,
|
|
2683
|
+
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7, B = this.blocks, q, J, G, ce, P, fe, r, a, d, g, h;
|
|
2684
2684
|
for (q = 16; q < 64; ++q)
|
|
2685
|
-
P =
|
|
2685
|
+
P = B[q - 15], J = (P >>> 7 | P << 25) ^ (P >>> 18 | P << 14) ^ P >>> 3, P = B[q - 2], G = (P >>> 17 | P << 15) ^ (P >>> 19 | P << 13) ^ P >>> 10, B[q] = B[q - 16] + J + B[q - 7] + G << 0;
|
|
2686
2686
|
for (h = A & I, q = 0; q < 64; q += 4)
|
|
2687
|
-
this.first ? (this.is224 ? (a = 300032, P =
|
|
2687
|
+
this.first ? (this.is224 ? (a = 300032, P = B[0] - 1413257819, p = P - 150054599 << 0, _ = P + 24177077 << 0) : (a = 704751109, P = B[0] - 210244248, p = P - 1521486534 << 0, _ = P + 143694565 << 0), this.first = !1) : (J = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), G = (k >>> 6 | k << 26) ^ (k >>> 11 | k << 21) ^ (k >>> 25 | k << 7), a = f & A, ce = a ^ f & I ^ h, r = k & y ^ ~k & O, P = p + G + r + Y[q] + B[q], fe = J + ce, p = _ + P << 0, _ = P + fe << 0), J = (_ >>> 2 | _ << 30) ^ (_ >>> 13 | _ << 19) ^ (_ >>> 22 | _ << 10), G = (p >>> 6 | p << 26) ^ (p >>> 11 | p << 21) ^ (p >>> 25 | p << 7), d = _ & f, ce = d ^ _ & A ^ a, r = p & k ^ ~p & y, P = O + G + r + Y[q + 1] + B[q + 1], fe = J + ce, O = I + P << 0, I = P + fe << 0, J = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), G = (O >>> 6 | O << 26) ^ (O >>> 11 | O << 21) ^ (O >>> 25 | O << 7), g = I & _, ce = g ^ I & f ^ d, r = O & p ^ ~O & k, P = y + G + r + Y[q + 2] + B[q + 2], fe = J + ce, y = A + P << 0, A = P + fe << 0, J = (A >>> 2 | A << 30) ^ (A >>> 13 | A << 19) ^ (A >>> 22 | A << 10), G = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), h = A & I, ce = h ^ A & _ ^ g, r = y & O ^ ~y & p, P = k + G + r + Y[q + 3] + B[q + 3], fe = J + ce, k = f + P << 0, f = P + fe << 0, this.chromeBugWorkAround = !0;
|
|
2688
2688
|
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + A << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + _ << 0, this.h4 = this.h4 + k << 0, this.h5 = this.h5 + y << 0, this.h6 = this.h6 + O << 0, this.h7 = this.h7 + p << 0;
|
|
2689
2689
|
}, N.prototype.hex = function() {
|
|
2690
2690
|
this.finalize();
|
|
2691
|
-
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7,
|
|
2692
|
-
return this.is224 || (
|
|
2691
|
+
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7, B = u[f >> 28 & 15] + u[f >> 24 & 15] + u[f >> 20 & 15] + u[f >> 16 & 15] + u[f >> 12 & 15] + u[f >> 8 & 15] + u[f >> 4 & 15] + u[f & 15] + u[A >> 28 & 15] + u[A >> 24 & 15] + u[A >> 20 & 15] + u[A >> 16 & 15] + u[A >> 12 & 15] + u[A >> 8 & 15] + u[A >> 4 & 15] + u[A & 15] + u[I >> 28 & 15] + u[I >> 24 & 15] + u[I >> 20 & 15] + u[I >> 16 & 15] + u[I >> 12 & 15] + u[I >> 8 & 15] + u[I >> 4 & 15] + u[I & 15] + u[_ >> 28 & 15] + u[_ >> 24 & 15] + u[_ >> 20 & 15] + u[_ >> 16 & 15] + u[_ >> 12 & 15] + u[_ >> 8 & 15] + u[_ >> 4 & 15] + u[_ & 15] + u[k >> 28 & 15] + u[k >> 24 & 15] + u[k >> 20 & 15] + u[k >> 16 & 15] + u[k >> 12 & 15] + u[k >> 8 & 15] + u[k >> 4 & 15] + u[k & 15] + u[y >> 28 & 15] + u[y >> 24 & 15] + u[y >> 20 & 15] + u[y >> 16 & 15] + u[y >> 12 & 15] + u[y >> 8 & 15] + u[y >> 4 & 15] + u[y & 15] + u[O >> 28 & 15] + u[O >> 24 & 15] + u[O >> 20 & 15] + u[O >> 16 & 15] + u[O >> 12 & 15] + u[O >> 8 & 15] + u[O >> 4 & 15] + u[O & 15];
|
|
2692
|
+
return this.is224 || (B += u[p >> 28 & 15] + u[p >> 24 & 15] + u[p >> 20 & 15] + u[p >> 16 & 15] + u[p >> 12 & 15] + u[p >> 8 & 15] + u[p >> 4 & 15] + u[p & 15]), B;
|
|
2693
2693
|
}, N.prototype.toString = N.prototype.hex, N.prototype.digest = function() {
|
|
2694
2694
|
this.finalize();
|
|
2695
|
-
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7,
|
|
2695
|
+
var f = this.h0, A = this.h1, I = this.h2, _ = this.h3, k = this.h4, y = this.h5, O = this.h6, p = this.h7, B = [
|
|
2696
2696
|
f >> 24 & 255,
|
|
2697
2697
|
f >> 16 & 255,
|
|
2698
2698
|
f >> 8 & 255,
|
|
@@ -2722,7 +2722,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2722
2722
|
O >> 8 & 255,
|
|
2723
2723
|
O & 255
|
|
2724
2724
|
];
|
|
2725
|
-
return this.is224 ||
|
|
2725
|
+
return this.is224 || B.push(p >> 24 & 255, p >> 16 & 255, p >> 8 & 255, p & 255), B;
|
|
2726
2726
|
}, N.prototype.array = N.prototype.digest, N.prototype.arrayBuffer = function() {
|
|
2727
2727
|
this.finalize();
|
|
2728
2728
|
var f = new ArrayBuffer(this.is224 ? 28 : 32), A = new DataView(f);
|
|
@@ -2731,16 +2731,16 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2731
2731
|
function ye(f, A, I) {
|
|
2732
2732
|
var _, k = typeof f;
|
|
2733
2733
|
if (k === "string") {
|
|
2734
|
-
var y = [], O = f.length, p = 0,
|
|
2734
|
+
var y = [], O = f.length, p = 0, B;
|
|
2735
2735
|
for (_ = 0; _ < O; ++_)
|
|
2736
|
-
|
|
2736
|
+
B = f.charCodeAt(_), B < 128 ? y[p++] = B : B < 2048 ? (y[p++] = 192 | B >> 6, y[p++] = 128 | B & 63) : B < 55296 || B >= 57344 ? (y[p++] = 224 | B >> 12, y[p++] = 128 | B >> 6 & 63, y[p++] = 128 | B & 63) : (B = 65536 + ((B & 1023) << 10 | f.charCodeAt(++_) & 1023), y[p++] = 240 | B >> 18, y[p++] = 128 | B >> 12 & 63, y[p++] = 128 | B >> 6 & 63, y[p++] = 128 | B & 63);
|
|
2737
2737
|
f = y;
|
|
2738
2738
|
} else if (k === "object") {
|
|
2739
2739
|
if (f === null)
|
|
2740
2740
|
throw new Error(e);
|
|
2741
|
-
if (
|
|
2741
|
+
if (S && f.constructor === ArrayBuffer)
|
|
2742
2742
|
f = new Uint8Array(f);
|
|
2743
|
-
else if (!Array.isArray(f) && (!
|
|
2743
|
+
else if (!Array.isArray(f) && (!S || !ArrayBuffer.isView(f)))
|
|
2744
2744
|
throw new Error(e);
|
|
2745
2745
|
} else
|
|
2746
2746
|
throw new Error(e);
|
|
@@ -2822,9 +2822,9 @@ function pr(t) {
|
|
|
2822
2822
|
enable: !0,
|
|
2823
2823
|
callbackList: [],
|
|
2824
2824
|
interval: 5
|
|
2825
|
-
}, w = document.getElementsByTagName("script"),
|
|
2826
|
-
(w[
|
|
2827
|
-
var u = !0,
|
|
2825
|
+
}, w = document.getElementsByTagName("script"), S = 0; S < w.length; S++)
|
|
2826
|
+
(w[S].src.indexOf("keycloak.js") !== -1 || w[S].src.indexOf("keycloak.min.js") !== -1) && w[S].src.indexOf("version=") !== -1 && (e.iframeVersion = w[S].src.substring(w[S].src.indexOf("version=") + 8).split("&")[0]);
|
|
2827
|
+
var u = !0, F = fe(console.info), W = fe(console.warn);
|
|
2828
2828
|
e.init = function(r) {
|
|
2829
2829
|
if (e.didInitialize)
|
|
2830
2830
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
@@ -2888,7 +2888,7 @@ function pr(t) {
|
|
|
2888
2888
|
switch (r.onLoad) {
|
|
2889
2889
|
case "check-sso":
|
|
2890
2890
|
c.enable ? O().then(function() {
|
|
2891
|
-
|
|
2891
|
+
B().then(function($) {
|
|
2892
2892
|
$ ? g.setSuccess() : e.silentCheckSsoRedirectUri ? C() : E(!1);
|
|
2893
2893
|
}).catch(function($) {
|
|
2894
2894
|
g.setError($);
|
|
@@ -2911,7 +2911,7 @@ function pr(t) {
|
|
|
2911
2911
|
g.setError(C);
|
|
2912
2912
|
});
|
|
2913
2913
|
r ? r.token && r.refreshToken ? (Z(r.token, r.refreshToken, r.idToken), c.enable ? O().then(function() {
|
|
2914
|
-
|
|
2914
|
+
B().then(function(C) {
|
|
2915
2915
|
C ? (e.onAuthSuccess && e.onAuthSuccess(), g.setSuccess(), p()) : g.setSuccess();
|
|
2916
2916
|
}).catch(function(C) {
|
|
2917
2917
|
g.setError(C);
|
|
@@ -3035,7 +3035,7 @@ function pr(t) {
|
|
|
3035
3035
|
if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
|
|
3036
3036
|
throw "Not authenticated";
|
|
3037
3037
|
if (e.timeSkew == null)
|
|
3038
|
-
return
|
|
3038
|
+
return F("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
|
|
3039
3039
|
var a = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
|
|
3040
3040
|
if (r) {
|
|
3041
3041
|
if (isNaN(r))
|
|
@@ -3050,7 +3050,7 @@ function pr(t) {
|
|
|
3050
3050
|
r = r || 5;
|
|
3051
3051
|
var d = function() {
|
|
3052
3052
|
var h = !1;
|
|
3053
|
-
if (r == -1 ? (h = !0,
|
|
3053
|
+
if (r == -1 ? (h = !0, F("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(r)) && (h = !0, F("[KEYCLOAK] Refreshing token: token expired")), !h)
|
|
3054
3054
|
a.setSuccess(!1);
|
|
3055
3055
|
else {
|
|
3056
3056
|
var x = "grant_type=refresh_token&refresh_token=" + e.refreshToken, m = e.endpoints.token();
|
|
@@ -3061,7 +3061,7 @@ function pr(t) {
|
|
|
3061
3061
|
b.onreadystatechange = function() {
|
|
3062
3062
|
if (b.readyState == 4)
|
|
3063
3063
|
if (b.status == 200) {
|
|
3064
|
-
|
|
3064
|
+
F("[KEYCLOAK] Token refreshed"), E = (E + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
3065
3065
|
var C = JSON.parse(b.responseText);
|
|
3066
3066
|
Z(C.access_token, C.refresh_token, C.id_token, E), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
3067
3067
|
for (var R = o.pop(); R != null; R = o.pop())
|
|
@@ -3076,7 +3076,7 @@ function pr(t) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
};
|
|
3078
3078
|
if (c.enable) {
|
|
3079
|
-
var g =
|
|
3079
|
+
var g = B();
|
|
3080
3080
|
g.then(function() {
|
|
3081
3081
|
d();
|
|
3082
3082
|
}).catch(function(h) {
|
|
@@ -3118,7 +3118,7 @@ function pr(t) {
|
|
|
3118
3118
|
}, C.send(b);
|
|
3119
3119
|
}
|
|
3120
3120
|
function R($, he, le, ee) {
|
|
3121
|
-
x = (x + (/* @__PURE__ */ new Date()).getTime()) / 2, Z($, he, le, x), u && (e.tokenParsed && e.tokenParsed.nonce != r.storedNonce || e.refreshTokenParsed && e.refreshTokenParsed.nonce != r.storedNonce || e.idTokenParsed && e.idTokenParsed.nonce != r.storedNonce) ? (
|
|
3121
|
+
x = (x + (/* @__PURE__ */ new Date()).getTime()) / 2, Z($, he, le, x), u && (e.tokenParsed && e.tokenParsed.nonce != r.storedNonce || e.refreshTokenParsed && e.refreshTokenParsed.nonce != r.storedNonce || e.idTokenParsed && e.idTokenParsed.nonce != r.storedNonce) ? (F("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), a && a.setError()) : ee && (e.onAuthSuccess && e.onAuthSuccess(), a && a.setSuccess());
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
3124
|
function N(r) {
|
|
@@ -3226,9 +3226,9 @@ function pr(t) {
|
|
|
3226
3226
|
}
|
|
3227
3227
|
function Z(r, a, d, g) {
|
|
3228
3228
|
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), a ? (e.refreshToken = a, e.refreshTokenParsed = pn(a)) : (delete e.refreshToken, delete e.refreshTokenParsed), d ? (e.idToken = d, e.idTokenParsed = pn(d)) : (delete e.idToken, delete e.idTokenParsed), r) {
|
|
3229
|
-
if (e.token = r, e.tokenParsed = pn(r), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, g && (e.timeSkew = Math.floor(g / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (
|
|
3229
|
+
if (e.token = r, e.tokenParsed = pn(r), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, g && (e.timeSkew = Math.floor(g / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (F("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
3230
3230
|
var h = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3231
|
-
|
|
3231
|
+
F("[KEYCLOAK] Token expires in " + Math.round(h / 1e3) + " s"), h <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, h);
|
|
3232
3232
|
}
|
|
3233
3233
|
} else
|
|
3234
3234
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
@@ -3326,12 +3326,12 @@ function pr(t) {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
function p() {
|
|
3328
3328
|
c.enable && e.token && setTimeout(function() {
|
|
3329
|
-
|
|
3329
|
+
B().then(function(r) {
|
|
3330
3330
|
r && p();
|
|
3331
3331
|
});
|
|
3332
3332
|
}, c.interval * 1e3);
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function B() {
|
|
3335
3335
|
var r = k();
|
|
3336
3336
|
if (c.iframe && c.iframeOrigin) {
|
|
3337
3337
|
var a = e.clientId + " " + (e.sessionId ? e.sessionId : "");
|
|
@@ -3573,22 +3573,27 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3573
3573
|
};
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
function Kc(
|
|
3577
|
-
const e =
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3576
|
+
async function Kc() {
|
|
3577
|
+
const t = "silent-login.html", e = await fetch(location.origin + "/" + t).then((n) => n.status === 200).catch(() => !1);
|
|
3578
|
+
return e || (console.warn(`Arquivo ${t} não localizado no projeto!`), document.body.innerHTML = `<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">O arquivo '${t}' não foi encontrado.</div>`), e;
|
|
3579
|
+
}
|
|
3580
|
+
function Gc(t) {
|
|
3581
|
+
const e = new pr(t), n = {}, o = async (w = {}, S) => {
|
|
3582
|
+
if (await Kc())
|
|
3583
|
+
return e.init(w).then(async (F) => {
|
|
3584
|
+
F && await i(), S && typeof S == "function" && S();
|
|
3585
|
+
}).catch((F) => {
|
|
3586
|
+
console.error(F), document.body.innerHTML = '<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">Não foi possível conectar no servidor de autenticação.</div>';
|
|
3587
|
+
});
|
|
3583
3588
|
}, i = async () => {
|
|
3584
3589
|
const w = await e.loadUserInfo();
|
|
3585
|
-
n.email = w.email ?? "", n.emailVerified = w.email_verified === !0, n.firstName = w.given_name ?? "", n.lastName = w.family_name ?? "", n.name = w.name ?? "", n.sub = w.sub ?? "", n.username = w.preferred_username ?? "", n.roles = [...w.role ?? []], n.groups = [...w.group ?? []], n.IsInRole = (
|
|
3590
|
+
n.email = w.email ?? "", n.emailVerified = w.email_verified === !0, n.firstName = w.given_name ?? "", n.lastName = w.family_name ?? "", n.name = w.name ?? "", n.sub = w.sub ?? "", n.username = w.preferred_username ?? "", n.roles = [...w.role ?? []], n.groups = [...w.group ?? []], n.IsInRole = (S) => n.roles.includes(S), sessionStorage.setItem("name", n.name);
|
|
3586
3591
|
};
|
|
3587
3592
|
return {
|
|
3588
3593
|
Instance: e,
|
|
3589
3594
|
User: n,
|
|
3590
|
-
|
|
3591
|
-
|
|
3595
|
+
Init: o,
|
|
3596
|
+
Logout: () => {
|
|
3592
3597
|
e.logout({
|
|
3593
3598
|
redirectUri: location.origin
|
|
3594
3599
|
}).then(() => {
|
|
@@ -3597,8 +3602,8 @@ function Kc(t) {
|
|
|
3597
3602
|
}
|
|
3598
3603
|
};
|
|
3599
3604
|
}
|
|
3600
|
-
const
|
|
3601
|
-
class
|
|
3605
|
+
const nl = (t) => Gc(t);
|
|
3606
|
+
class ol {
|
|
3602
3607
|
constructor(e = null) {
|
|
3603
3608
|
nt(this, "errors", []);
|
|
3604
3609
|
nt(this, "_value", null);
|
|
@@ -3648,16 +3653,16 @@ class nl {
|
|
|
3648
3653
|
})();
|
|
3649
3654
|
An.SetInitialTheme();
|
|
3650
3655
|
export {
|
|
3651
|
-
|
|
3656
|
+
ol as AppResult,
|
|
3652
3657
|
So as Cor,
|
|
3653
|
-
|
|
3654
|
-
|
|
3658
|
+
tl as SfButton,
|
|
3659
|
+
Qc as SfContent,
|
|
3655
3660
|
Ht as SfIcon,
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3661
|
+
Xc as SfLayout,
|
|
3662
|
+
Zc as SfNavMenuLink,
|
|
3663
|
+
el as SfTabNavigation,
|
|
3659
3664
|
kt as Tamanho,
|
|
3660
|
-
|
|
3665
|
+
nl as UseAuthService,
|
|
3661
3666
|
Xa as UseDialogService,
|
|
3662
3667
|
To as UseNavMenuService
|
|
3663
3668
|
};
|