@luizleon/sf.prefeiturasp.vuecomponents 0.0.23 → 0.0.25
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/common/appResult.d.ts +4 -0
- package/dist/lib.es.js +224 -214
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +12 -12
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/common/appResult.ts +12 -0
package/dist/lib.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Er = Object.defineProperty;
|
|
2
2
|
var Tr = (t, e, n) => e in t ? Er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
3
|
+
var ot = (t, e, n) => (Tr(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { ref as At, openBlock as J, createElementBlock as _e, createElementVNode as j, defineComponent as $e, normalizeStyle as xn, normalizeClass as ke, mergeProps as Sr, createBlock as ut, Fragment as Co, createTextVNode as Lr, toDisplayString as Wt, createCommentVNode as Cn, unref as He, createStaticVNode as Ir, createVNode as wt, renderSlot as De, resolveComponent as Eo, withCtx as To, onMounted as So, onBeforeUnmount as Pr, renderList as Rr, nextTick as Or } from "vue";
|
|
5
5
|
class Fr {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
7
|
+
ot(this, "_visible", At(!1));
|
|
8
8
|
}
|
|
9
9
|
get IsVisible() {
|
|
10
10
|
return this._visible.value === !0;
|
|
@@ -41,16 +41,16 @@ const Po = (t, e) => {
|
|
|
41
41
|
Dr
|
|
42
42
|
];
|
|
43
43
|
function $r(t, e) {
|
|
44
|
-
return J(),
|
|
44
|
+
return J(), _e("div", Ur, Nr);
|
|
45
45
|
}
|
|
46
46
|
const Hr = /* @__PURE__ */ Po(Mr, [["render", $r]]);
|
|
47
|
-
class
|
|
47
|
+
class it {
|
|
48
48
|
/**
|
|
49
49
|
* Creates a new instance of the CssClassBuilder class.
|
|
50
50
|
* @param value The initial value of the CSS class string.
|
|
51
51
|
*/
|
|
52
52
|
constructor(e) {
|
|
53
|
-
|
|
53
|
+
ot(this, "retorno");
|
|
54
54
|
this.retorno = e ?? "";
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -96,9 +96,9 @@ const jr = ["disabled", "tabindex"], zr = ["data-color"], jt = /* @__PURE__ */ $
|
|
|
96
96
|
setup(t) {
|
|
97
97
|
const e = t;
|
|
98
98
|
function n() {
|
|
99
|
-
return new
|
|
99
|
+
return new it(`${e.class} sf-icon`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-icon-button", e.button).AddClass("sf-icon-small", e.tamanho === kt.Pequeno).AddClass("sf-icon-medium", e.tamanho === kt.Medio).AddClass("sf-icon-large", e.tamanho === kt.Grande).AddClass("sf-ripple", e.button === !0).Build();
|
|
100
100
|
}
|
|
101
|
-
return (o, i) => (J(),
|
|
101
|
+
return (o, i) => (J(), _e("div", {
|
|
102
102
|
style: xn(e.style),
|
|
103
103
|
class: ke(n())
|
|
104
104
|
}, [
|
|
@@ -108,11 +108,11 @@ const jr = ["disabled", "tabindex"], zr = ["data-color"], jt = /* @__PURE__ */ $
|
|
|
108
108
|
}, e.buttonProps, {
|
|
109
109
|
tabindex: e.button ? void 0 : -1
|
|
110
110
|
}), [
|
|
111
|
-
e.loading ? (J(),
|
|
111
|
+
e.loading ? (J(), ut(Hr, { key: 0 })) : (J(), _e(Co, { key: 1 }, [
|
|
112
112
|
Lr(Wt(e.icone), 1)
|
|
113
113
|
], 64))
|
|
114
114
|
], 16, jr),
|
|
115
|
-
e.dot ? (J(),
|
|
115
|
+
e.dot ? (J(), _e("span", {
|
|
116
116
|
key: 0,
|
|
117
117
|
"data-color": e.dotColor
|
|
118
118
|
}, null, 8, zr)) : Cn("", !0)
|
|
@@ -149,8 +149,8 @@ qt.byteLength = Yr;
|
|
|
149
149
|
qt.toByteArray = Xr;
|
|
150
150
|
qt.fromByteArray = es;
|
|
151
151
|
var Oe = [], Ce = [], Kr = typeof Uint8Array < "u" ? Uint8Array : Array, an = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
152
|
-
for (var
|
|
153
|
-
Oe[
|
|
152
|
+
for (var rt = 0, Gr = an.length; rt < Gr; ++rt)
|
|
153
|
+
Oe[rt] = an[rt], Ce[an.charCodeAt(rt)] = rt;
|
|
154
154
|
Ce["-".charCodeAt(0)] = 62;
|
|
155
155
|
Ce["_".charCodeAt(0)] = 63;
|
|
156
156
|
function Ro(t) {
|
|
@@ -294,26 +294,26 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
294
294
|
return k.create().update(w);
|
|
295
295
|
};
|
|
296
296
|
for (var I = 0; I < Le.length; ++I) {
|
|
297
|
-
var
|
|
298
|
-
k[
|
|
297
|
+
var _ = Le[I];
|
|
298
|
+
k[_] = Be(_, f);
|
|
299
299
|
}
|
|
300
300
|
return k;
|
|
301
301
|
}, ve = function(f, k) {
|
|
302
|
-
var I = no,
|
|
303
|
-
|
|
304
|
-
return new
|
|
302
|
+
var I = no, _ = no.Buffer, w = k ? "sha224" : "sha256", y;
|
|
303
|
+
_.from && !o.JS_SHA256_NO_BUFFER_FROM ? y = _.from : y = function(p) {
|
|
304
|
+
return new _(p);
|
|
305
305
|
};
|
|
306
306
|
var O = function(p) {
|
|
307
307
|
if (typeof p == "string")
|
|
308
308
|
return I.createHash(w).update(p, "utf8").digest("hex");
|
|
309
309
|
if (p == null)
|
|
310
310
|
throw new Error(e);
|
|
311
|
-
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor ===
|
|
311
|
+
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor === _ ? I.createHash(w).update(y(p)).digest("hex") : f(p);
|
|
312
312
|
};
|
|
313
313
|
return O;
|
|
314
314
|
}, Ze = function(f, k) {
|
|
315
|
-
return function(I,
|
|
316
|
-
return new ye(I, k, !0).update(
|
|
315
|
+
return function(I, _) {
|
|
316
|
+
return new ye(I, k, !0).update(_)[f]();
|
|
317
317
|
};
|
|
318
318
|
}, de = function(f) {
|
|
319
319
|
var k = Ze("hex", f);
|
|
@@ -323,8 +323,8 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
323
323
|
return k.create(w).update(y);
|
|
324
324
|
};
|
|
325
325
|
for (var I = 0; I < Le.length; ++I) {
|
|
326
|
-
var
|
|
327
|
-
k[
|
|
326
|
+
var _ = Le[I];
|
|
327
|
+
k[_] = Ze(_, f);
|
|
328
328
|
}
|
|
329
329
|
return k;
|
|
330
330
|
};
|
|
@@ -346,13 +346,13 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
346
346
|
throw new Error(e);
|
|
347
347
|
k = !0;
|
|
348
348
|
}
|
|
349
|
-
for (var
|
|
349
|
+
for (var _, w = 0, y, O = f.length, p = this.blocks; w < O; ) {
|
|
350
350
|
if (this.hashed && (this.hashed = !1, p[0] = this.block, p[16] = p[1] = p[2] = p[3] = p[4] = p[5] = p[6] = p[7] = p[8] = p[9] = p[10] = p[11] = p[12] = p[13] = p[14] = p[15] = 0), k)
|
|
351
351
|
for (y = this.start; w < O && y < 64; ++w)
|
|
352
352
|
p[y >> 2] |= f[w] << W[y++ & 3];
|
|
353
353
|
else
|
|
354
354
|
for (y = this.start; w < O && y < 64; ++w)
|
|
355
|
-
|
|
355
|
+
_ = f.charCodeAt(w), _ < 128 ? p[y >> 2] |= _ << W[y++ & 3] : _ < 2048 ? (p[y >> 2] |= (192 | _ >> 6) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]) : _ < 55296 || _ >= 57344 ? (p[y >> 2] |= (224 | _ >> 12) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 6 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]) : (_ = 65536 + ((_ & 1023) << 10 | f.charCodeAt(++w) & 1023), p[y >> 2] |= (240 | _ >> 18) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 12 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 6 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]);
|
|
356
356
|
this.lastByteIndex = y, this.bytes += y - this.start, y >= 64 ? (this.block = p[16], this.start = y - 64, this.hash(), this.hashed = !0) : this.start = y;
|
|
357
357
|
}
|
|
358
358
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
@@ -364,19 +364,19 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
364
364
|
f[16] = this.block, f[k >> 2] |= H[k & 3], this.block = f[16], k >= 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();
|
|
365
365
|
}
|
|
366
366
|
}, D.prototype.hash = function() {
|
|
367
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
367
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = this.blocks, q, Y, G, ae, P, fe, r, a, d, g, h;
|
|
368
368
|
for (q = 16; q < 64; ++q)
|
|
369
369
|
P = F[q - 15], Y = (P >>> 7 | P << 25) ^ (P >>> 18 | P << 14) ^ P >>> 3, P = F[q - 2], G = (P >>> 17 | P << 15) ^ (P >>> 19 | P << 13) ^ P >>> 10, F[q] = F[q - 16] + Y + F[q - 7] + G << 0;
|
|
370
370
|
for (h = k & I, q = 0; q < 64; q += 4)
|
|
371
|
-
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0,
|
|
372
|
-
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + k << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 +
|
|
371
|
+
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0, _ = P + 24177077 << 0) : (a = 704751109, P = F[0] - 210244248, p = P - 1521486534 << 0, _ = P + 143694565 << 0), this.first = !1) : (Y = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), G = (w >>> 6 | w << 26) ^ (w >>> 11 | w << 21) ^ (w >>> 25 | w << 7), a = f & k, ae = a ^ f & I ^ h, r = w & y ^ ~w & O, P = p + G + r + Q[q] + F[q], fe = Y + ae, p = _ + P << 0, _ = P + fe << 0), Y = (_ >>> 2 | _ << 30) ^ (_ >>> 13 | _ << 19) ^ (_ >>> 22 | _ << 10), G = (p >>> 6 | p << 26) ^ (p >>> 11 | p << 21) ^ (p >>> 25 | p << 7), d = _ & f, ae = d ^ _ & k ^ a, r = p & w ^ ~p & y, P = O + G + r + Q[q + 1] + F[q + 1], fe = Y + ae, O = I + P << 0, I = P + fe << 0, Y = (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 & _, ae = g ^ I & f ^ d, r = O & p ^ ~O & w, P = y + G + r + Q[q + 2] + F[q + 2], fe = Y + ae, y = k + P << 0, k = P + fe << 0, Y = (k >>> 2 | k << 30) ^ (k >>> 13 | k << 19) ^ (k >>> 22 | k << 10), G = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), h = k & I, ae = h ^ k & _ ^ g, r = y & O ^ ~y & p, P = w + G + r + Q[q + 3] + F[q + 3], fe = Y + ae, w = f + P << 0, f = P + fe << 0, this.chromeBugWorkAround = !0;
|
|
372
|
+
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + k << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + _ << 0, this.h4 = this.h4 + w << 0, this.h5 = this.h5 + y << 0, this.h6 = this.h6 + O << 0, this.h7 = this.h7 + p << 0;
|
|
373
373
|
}, D.prototype.hex = function() {
|
|
374
374
|
this.finalize();
|
|
375
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
375
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = 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[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[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[w >> 28 & 15] + u[w >> 24 & 15] + u[w >> 20 & 15] + u[w >> 16 & 15] + u[w >> 12 & 15] + u[w >> 8 & 15] + u[w >> 4 & 15] + u[w & 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];
|
|
376
376
|
return this.is224 || (F += 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]), F;
|
|
377
377
|
}, D.prototype.toString = D.prototype.hex, D.prototype.digest = function() {
|
|
378
378
|
this.finalize();
|
|
379
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
379
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = [
|
|
380
380
|
f >> 24 & 255,
|
|
381
381
|
f >> 16 & 255,
|
|
382
382
|
f >> 8 & 255,
|
|
@@ -389,10 +389,10 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
389
389
|
I >> 16 & 255,
|
|
390
390
|
I >> 8 & 255,
|
|
391
391
|
I & 255,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
392
|
+
_ >> 24 & 255,
|
|
393
|
+
_ >> 16 & 255,
|
|
394
|
+
_ >> 8 & 255,
|
|
395
|
+
_ & 255,
|
|
396
396
|
w >> 24 & 255,
|
|
397
397
|
w >> 16 & 255,
|
|
398
398
|
w >> 8 & 255,
|
|
@@ -413,11 +413,11 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
413
413
|
return k.setUint32(0, this.h0), k.setUint32(4, this.h1), k.setUint32(8, this.h2), k.setUint32(12, this.h3), k.setUint32(16, this.h4), k.setUint32(20, this.h5), k.setUint32(24, this.h6), this.is224 || k.setUint32(28, this.h7), f;
|
|
414
414
|
};
|
|
415
415
|
function ye(f, k, I) {
|
|
416
|
-
var
|
|
416
|
+
var _, w = typeof f;
|
|
417
417
|
if (w === "string") {
|
|
418
418
|
var y = [], O = f.length, p = 0, F;
|
|
419
|
-
for (
|
|
420
|
-
F = f.charCodeAt(
|
|
419
|
+
for (_ = 0; _ < O; ++_)
|
|
420
|
+
F = f.charCodeAt(_), F < 128 ? y[p++] = F : F < 2048 ? (y[p++] = 192 | F >> 6, y[p++] = 128 | F & 63) : F < 55296 || F >= 57344 ? (y[p++] = 224 | F >> 12, y[p++] = 128 | F >> 6 & 63, y[p++] = 128 | F & 63) : (F = 65536 + ((F & 1023) << 10 | f.charCodeAt(++_) & 1023), y[p++] = 240 | F >> 18, y[p++] = 128 | F >> 12 & 63, y[p++] = 128 | F >> 6 & 63, y[p++] = 128 | F & 63);
|
|
421
421
|
f = y;
|
|
422
422
|
} else if (w === "object") {
|
|
423
423
|
if (f === null)
|
|
@@ -430,9 +430,9 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
430
430
|
throw new Error(e);
|
|
431
431
|
f.length > 64 && (f = new D(k, !0).update(f).array());
|
|
432
432
|
var q = [], Y = [];
|
|
433
|
-
for (
|
|
434
|
-
var G = f[
|
|
435
|
-
q[
|
|
433
|
+
for (_ = 0; _ < 64; ++_) {
|
|
434
|
+
var G = f[_] || 0;
|
|
435
|
+
q[_] = 92 ^ G, Y[_] = 54 ^ G;
|
|
436
436
|
}
|
|
437
437
|
D.call(this, k, I), this.update(Y), this.oKeyPad = q, this.inner = !0, this.sharedMemory = I;
|
|
438
438
|
}
|
|
@@ -449,9 +449,9 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
449
449
|
})(Oo);
|
|
450
450
|
var os = Oo.exports;
|
|
451
451
|
const rs = /* @__PURE__ */ Wr(os);
|
|
452
|
-
class
|
|
452
|
+
class _t extends Error {
|
|
453
453
|
}
|
|
454
|
-
|
|
454
|
+
_t.prototype.name = "InvalidTokenError";
|
|
455
455
|
function ss(t) {
|
|
456
456
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
457
457
|
let o = n.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -480,21 +480,21 @@ function is(t) {
|
|
|
480
480
|
}
|
|
481
481
|
function cn(t, e) {
|
|
482
482
|
if (typeof t != "string")
|
|
483
|
-
throw new
|
|
483
|
+
throw new _t("Invalid token specified: must be a string");
|
|
484
484
|
e || (e = {});
|
|
485
485
|
const n = e.header === !0 ? 0 : 1, o = t.split(".")[n];
|
|
486
486
|
if (typeof o != "string")
|
|
487
|
-
throw new
|
|
487
|
+
throw new _t(`Invalid token specified: missing part #${n + 1}`);
|
|
488
488
|
let i;
|
|
489
489
|
try {
|
|
490
490
|
i = is(o);
|
|
491
491
|
} catch (c) {
|
|
492
|
-
throw new
|
|
492
|
+
throw new _t(`Invalid token specified: invalid base64 for part #${n + 1} (${c.message})`);
|
|
493
493
|
}
|
|
494
494
|
try {
|
|
495
495
|
return JSON.parse(i);
|
|
496
496
|
} catch (c) {
|
|
497
|
-
throw new
|
|
497
|
+
throw new _t(`Invalid token specified: invalid json for part #${n + 1} (${c.message})`);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
if (typeof Promise > "u")
|
|
@@ -551,7 +551,7 @@ function Fo(t) {
|
|
|
551
551
|
d.setError(E);
|
|
552
552
|
});
|
|
553
553
|
var h = D();
|
|
554
|
-
function
|
|
554
|
+
function A() {
|
|
555
555
|
var E = function(N) {
|
|
556
556
|
N || (R.prompt = "none"), r && r.locale && (R.locale = r.locale), e.login(R).then(function() {
|
|
557
557
|
g.setSuccess();
|
|
@@ -603,8 +603,8 @@ function Fo(t) {
|
|
|
603
603
|
}) : e.updateToken(-1).then(function() {
|
|
604
604
|
e.onAuthSuccess && e.onAuthSuccess(), g.setSuccess();
|
|
605
605
|
}).catch(function(C) {
|
|
606
|
-
e.onAuthError && e.onAuthError(), r.onLoad ?
|
|
607
|
-
})) : r.onLoad ?
|
|
606
|
+
e.onAuthError && e.onAuthError(), r.onLoad ? A() : g.setError(C);
|
|
607
|
+
})) : r.onLoad ? A() : g.setSuccess() : g.setSuccess();
|
|
608
608
|
}
|
|
609
609
|
function b() {
|
|
610
610
|
var E = w(), C = function() {
|
|
@@ -663,11 +663,11 @@ function Fo(t) {
|
|
|
663
663
|
redirectUri: encodeURIComponent(g)
|
|
664
664
|
};
|
|
665
665
|
r && r.prompt && (h.prompt = r.prompt);
|
|
666
|
-
var
|
|
667
|
-
r && r.action == "register" ?
|
|
666
|
+
var A;
|
|
667
|
+
r && r.action == "register" ? A = e.endpoints.register() : A = e.endpoints.authorize();
|
|
668
668
|
var m = r && r.scope || e.scope;
|
|
669
669
|
m ? m.indexOf("openid") === -1 && (m = "openid " + m) : m = "openid";
|
|
670
|
-
var b =
|
|
670
|
+
var b = A + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(g) + "&state=" + encodeURIComponent(a) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(m);
|
|
671
671
|
if (u && (b = b + "&nonce=" + encodeURIComponent(d)), r && r.prompt && (b += "&prompt=" + encodeURIComponent(r.prompt)), r && r.maxAge && (b += "&max_age=" + encodeURIComponent(r.maxAge)), r && r.loginHint && (b += "&login_hint=" + encodeURIComponent(r.loginHint)), r && r.idpHint && (b += "&kc_idp_hint=" + encodeURIComponent(r.idpHint)), r && r.action && r.action != "register" && (b += "&kc_action=" + encodeURIComponent(r.action)), r && r.locale && (b += "&ui_locales=" + encodeURIComponent(r.locale)), r && r.acr) {
|
|
672
672
|
var E = Xe(r.acr);
|
|
673
673
|
b += "&claims=" + encodeURIComponent(E);
|
|
@@ -737,10 +737,10 @@ function Fo(t) {
|
|
|
737
737
|
if (r == -1 ? (h = !0, H("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(r)) && (h = !0, H("[KEYCLOAK] Refreshing token: token expired")), !h)
|
|
738
738
|
a.setSuccess(!1);
|
|
739
739
|
else {
|
|
740
|
-
var
|
|
740
|
+
var A = "grant_type=refresh_token&refresh_token=" + e.refreshToken, m = e.endpoints.token();
|
|
741
741
|
if (o.push(a), o.length == 1) {
|
|
742
742
|
var b = new XMLHttpRequest();
|
|
743
|
-
b.open("POST", m, !0), b.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), b.withCredentials = !0,
|
|
743
|
+
b.open("POST", m, !0), b.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), b.withCredentials = !0, A += "&client_id=" + encodeURIComponent(e.clientId);
|
|
744
744
|
var E = (/* @__PURE__ */ new Date()).getTime();
|
|
745
745
|
b.onreadystatechange = function() {
|
|
746
746
|
if (b.readyState == 4)
|
|
@@ -755,7 +755,7 @@ function Fo(t) {
|
|
|
755
755
|
for (var R = o.pop(); R != null; R = o.pop())
|
|
756
756
|
R.setError(!0);
|
|
757
757
|
}
|
|
758
|
-
}, b.send(
|
|
758
|
+
}, b.send(A);
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
};
|
|
@@ -780,7 +780,7 @@ function Fo(t) {
|
|
|
780
780
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
781
781
|
}
|
|
782
782
|
function de(r, a) {
|
|
783
|
-
var d = r.code, g = r.error, h = r.prompt,
|
|
783
|
+
var d = r.code, g = r.error, h = r.prompt, A = (/* @__PURE__ */ new Date()).getTime();
|
|
784
784
|
if (r.kc_action_status && e.onActionUpdate && e.onActionUpdate(r.kc_action_status), g) {
|
|
785
785
|
if (h != "none") {
|
|
786
786
|
var m = { error: g, error_description: r.error_description };
|
|
@@ -802,7 +802,7 @@ function Fo(t) {
|
|
|
802
802
|
}, C.send(b);
|
|
803
803
|
}
|
|
804
804
|
function R(N, he, ce, ee) {
|
|
805
|
-
|
|
805
|
+
A = (A + (/* @__PURE__ */ new Date()).getTime()) / 2, X(N, he, ce, A), u && (e.tokenParsed && e.tokenParsed.nonce != r.storedNonce || e.refreshTokenParsed && e.refreshTokenParsed.nonce != r.storedNonce || e.idTokenParsed && e.idTokenParsed.nonce != r.storedNonce) ? (H("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), a && a.setError()) : ee && (e.onAuthSuccess && e.onAuthSuccess(), a && a.setSuccess());
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
function D(r) {
|
|
@@ -874,11 +874,11 @@ function Fo(t) {
|
|
|
874
874
|
if (!t.clientId)
|
|
875
875
|
throw "clientId missing";
|
|
876
876
|
e.clientId = t.clientId;
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
879
|
-
if (typeof
|
|
877
|
+
var A = t.oidcProvider;
|
|
878
|
+
if (A)
|
|
879
|
+
if (typeof A == "string") {
|
|
880
880
|
var E;
|
|
881
|
-
|
|
881
|
+
A.charAt(A.length - 1) == "/" ? E = A + ".well-known/openid-configuration" : E = A + "/.well-known/openid-configuration";
|
|
882
882
|
var h = new XMLHttpRequest();
|
|
883
883
|
h.open("GET", E, !0), h.setRequestHeader("Accept", "application/json"), h.onreadystatechange = function() {
|
|
884
884
|
if (h.readyState == 4)
|
|
@@ -889,7 +889,7 @@ function Fo(t) {
|
|
|
889
889
|
a.setError();
|
|
890
890
|
}, h.send();
|
|
891
891
|
} else
|
|
892
|
-
g(
|
|
892
|
+
g(A), a.setSuccess();
|
|
893
893
|
else {
|
|
894
894
|
if (!t.url) {
|
|
895
895
|
for (var m = document.getElementsByTagName("script"), b = 0; b < m.length; b++)
|
|
@@ -944,22 +944,22 @@ function Fo(t) {
|
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
946
|
a.push("error"), a.push("error_description"), a.push("error_uri");
|
|
947
|
-
var d = r.indexOf("?"), g = r.indexOf("#"), h,
|
|
948
|
-
if (e.responseMode === "query" && d !== -1 ? (h = r.substring(0, d),
|
|
947
|
+
var d = r.indexOf("?"), g = r.indexOf("#"), h, A;
|
|
948
|
+
if (e.responseMode === "query" && d !== -1 ? (h = r.substring(0, d), A = _(r.substring(d + 1, g !== -1 ? g : r.length), a), A.paramsString !== "" && (h += "?" + A.paramsString), g !== -1 && (h += r.substring(g))) : e.responseMode === "fragment" && g !== -1 && (h = r.substring(0, g), A = _(r.substring(g + 1), a), A.paramsString !== "" && (h += "#" + A.paramsString)), A && A.oauthParams) {
|
|
949
949
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
950
|
-
if ((
|
|
951
|
-
return
|
|
952
|
-
} else if (e.flow === "implicit" && (
|
|
953
|
-
return
|
|
950
|
+
if ((A.oauthParams.code || A.oauthParams.error) && A.oauthParams.state)
|
|
951
|
+
return A.oauthParams.newUrl = h, A.oauthParams;
|
|
952
|
+
} else if (e.flow === "implicit" && (A.oauthParams.access_token || A.oauthParams.error) && A.oauthParams.state)
|
|
953
|
+
return A.oauthParams.newUrl = h, A.oauthParams;
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function _(r, a) {
|
|
957
957
|
for (var d = r.split("&"), g = {
|
|
958
958
|
paramsString: "",
|
|
959
959
|
oauthParams: {}
|
|
960
960
|
}, h = 0; h < d.length; h++) {
|
|
961
|
-
var
|
|
962
|
-
a.indexOf(m) !== -1 ? g.oauthParams[m] = d[h].slice(
|
|
961
|
+
var A = d[h].indexOf("="), m = d[h].slice(0, A);
|
|
962
|
+
a.indexOf(m) !== -1 ? g.oauthParams[m] = d[h].slice(A + 1) : (g.paramsString !== "" && (g.paramsString += "&"), g.paramsString += d[h]);
|
|
963
963
|
}
|
|
964
964
|
return g;
|
|
965
965
|
}
|
|
@@ -977,7 +977,7 @@ function Fo(t) {
|
|
|
977
977
|
}), r;
|
|
978
978
|
}
|
|
979
979
|
function y(r, a, d) {
|
|
980
|
-
var g = null, h = new Promise(function(
|
|
980
|
+
var g = null, h = new Promise(function(A, m) {
|
|
981
981
|
g = setTimeout(function() {
|
|
982
982
|
m({ error: d || "Promise is not settled within timeout of " + a + "ms" });
|
|
983
983
|
}, a);
|
|
@@ -1000,8 +1000,8 @@ function Fo(t) {
|
|
|
1000
1000
|
var g = function(h) {
|
|
1001
1001
|
if (!(h.origin !== c.iframeOrigin || c.iframe.contentWindow !== h.source) && (h.data == "unchanged" || h.data == "changed" || h.data == "error")) {
|
|
1002
1002
|
h.data != "unchanged" && e.clearToken();
|
|
1003
|
-
for (var
|
|
1004
|
-
var b =
|
|
1003
|
+
for (var A = c.callbackList.splice(0, c.callbackList.length), m = A.length - 1; m >= 0; --m) {
|
|
1004
|
+
var b = A[m];
|
|
1005
1005
|
h.data == "error" ? b.setError() : b.setSuccess(h.data == "unchanged");
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
@@ -1085,7 +1085,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1085
1085
|
}, h = function(m) {
|
|
1086
1086
|
var b = d(m);
|
|
1087
1087
|
return b.location = "no", m && m.prompt == "none" && (b.hidden = "yes"), g(b);
|
|
1088
|
-
},
|
|
1088
|
+
}, A = function() {
|
|
1089
1089
|
return e.redirectUri || "http://localhost";
|
|
1090
1090
|
};
|
|
1091
1091
|
return {
|
|
@@ -1094,13 +1094,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1094
1094
|
he = !0, R.close();
|
|
1095
1095
|
};
|
|
1096
1096
|
return R.addEventListener("loadstart", function(ee) {
|
|
1097
|
-
if (ee.url.indexOf(
|
|
1097
|
+
if (ee.url.indexOf(A()) == 0) {
|
|
1098
1098
|
var Re = k(ee.url);
|
|
1099
1099
|
de(Re, b), ce(), N = !0;
|
|
1100
1100
|
}
|
|
1101
1101
|
}), R.addEventListener("loaderror", function(ee) {
|
|
1102
1102
|
if (!N)
|
|
1103
|
-
if (ee.url.indexOf(
|
|
1103
|
+
if (ee.url.indexOf(A()) == 0) {
|
|
1104
1104
|
var Re = k(ee.url);
|
|
1105
1105
|
de(Re, b), ce(), N = !0;
|
|
1106
1106
|
} else
|
|
@@ -1114,9 +1114,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1114
1114
|
logout: function(m) {
|
|
1115
1115
|
var b = w(), E = e.createLogoutUrl(m), C = a(E, "_blank", "location=no,hidden=yes,clearcache=yes"), R;
|
|
1116
1116
|
return C.addEventListener("loadstart", function(N) {
|
|
1117
|
-
N.url.indexOf(
|
|
1117
|
+
N.url.indexOf(A()) == 0 && C.close();
|
|
1118
1118
|
}), C.addEventListener("loaderror", function(N) {
|
|
1119
|
-
N.url.indexOf(
|
|
1119
|
+
N.url.indexOf(A()) == 0 || (R = !0), C.close();
|
|
1120
1120
|
}), C.addEventListener("exit", function(N) {
|
|
1121
1121
|
R ? b.setError() : (e.clearToken(), b.setSuccess());
|
|
1122
1122
|
}), b.promise;
|
|
@@ -1124,7 +1124,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1124
1124
|
register: function(m) {
|
|
1125
1125
|
var b = w(), E = e.createRegisterUrl(), C = h(m), R = a(E, "_blank", C);
|
|
1126
1126
|
return R.addEventListener("loadstart", function(N) {
|
|
1127
|
-
if (N.url.indexOf(
|
|
1127
|
+
if (N.url.indexOf(A()) == 0) {
|
|
1128
1128
|
R.close();
|
|
1129
1129
|
var he = k(N.url);
|
|
1130
1130
|
de(he, b);
|
|
@@ -1136,13 +1136,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1136
1136
|
if (typeof m < "u") {
|
|
1137
1137
|
var b = a(m, "_blank", "location=no");
|
|
1138
1138
|
b.addEventListener("loadstart", function(E) {
|
|
1139
|
-
E.url.indexOf(
|
|
1139
|
+
E.url.indexOf(A()) == 0 && b.close();
|
|
1140
1140
|
});
|
|
1141
1141
|
} else
|
|
1142
1142
|
throw "Not supported by the OIDC server";
|
|
1143
1143
|
},
|
|
1144
1144
|
redirectUri: function(m) {
|
|
1145
|
-
return
|
|
1145
|
+
return A();
|
|
1146
1146
|
}
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
@@ -1192,10 +1192,10 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1192
1192
|
for (var d = (/* @__PURE__ */ new Date()).getTime(), g = 0; g < localStorage.length; g++) {
|
|
1193
1193
|
var h = localStorage.key(g);
|
|
1194
1194
|
if (h && h.indexOf("kc-callback-") == 0) {
|
|
1195
|
-
var
|
|
1196
|
-
if (
|
|
1195
|
+
var A = localStorage.getItem(h);
|
|
1196
|
+
if (A)
|
|
1197
1197
|
try {
|
|
1198
|
-
var m = JSON.parse(
|
|
1198
|
+
var m = JSON.parse(A).expires;
|
|
1199
1199
|
(!m || m < d) && localStorage.removeItem(h);
|
|
1200
1200
|
} catch {
|
|
1201
1201
|
localStorage.removeItem(h);
|
|
@@ -1219,9 +1219,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1219
1219
|
var r = this;
|
|
1220
1220
|
r.get = function(h) {
|
|
1221
1221
|
if (h) {
|
|
1222
|
-
var
|
|
1223
|
-
if (g("kc-callback-" + h, "", a(-100)),
|
|
1224
|
-
return JSON.parse(
|
|
1222
|
+
var A = d("kc-callback-" + h);
|
|
1223
|
+
if (g("kc-callback-" + h, "", a(-100)), A)
|
|
1224
|
+
return JSON.parse(A);
|
|
1225
1225
|
}
|
|
1226
1226
|
}, r.add = function(h) {
|
|
1227
1227
|
g("kc-callback-" + h.state, JSON.stringify(h), a(60));
|
|
@@ -1229,18 +1229,18 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1229
1229
|
g(h, "", a(-100));
|
|
1230
1230
|
};
|
|
1231
1231
|
var a = function(h) {
|
|
1232
|
-
var
|
|
1233
|
-
return
|
|
1232
|
+
var A = /* @__PURE__ */ new Date();
|
|
1233
|
+
return A.setTime(A.getTime() + h * 60 * 1e3), A;
|
|
1234
1234
|
}, d = function(h) {
|
|
1235
|
-
for (var
|
|
1235
|
+
for (var A = h + "=", m = document.cookie.split(";"), b = 0; b < m.length; b++) {
|
|
1236
1236
|
for (var E = m[b]; E.charAt(0) == " "; )
|
|
1237
1237
|
E = E.substring(1);
|
|
1238
|
-
if (E.indexOf(
|
|
1239
|
-
return E.substring(
|
|
1238
|
+
if (E.indexOf(A) == 0)
|
|
1239
|
+
return E.substring(A.length, E.length);
|
|
1240
1240
|
}
|
|
1241
1241
|
return "";
|
|
1242
|
-
}, g = function(h,
|
|
1243
|
-
var b = h + "=" +
|
|
1242
|
+
}, g = function(h, A, m) {
|
|
1243
|
+
var b = h + "=" + A + "; expires=" + m.toUTCString() + "; ";
|
|
1244
1244
|
document.cookie = b;
|
|
1245
1245
|
};
|
|
1246
1246
|
};
|
|
@@ -1292,7 +1292,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1292
1292
|
ds(
|
|
1293
1293
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
1294
1294
|
);
|
|
1295
|
-
}, Gt = (t) => typeof t == "function" ? t() : t, Tn = (t) => t && typeof t.toPromise == "function", St = (t) => Tn(t) ? t.toPromise() : Promise.resolve(t), Sn = (t) => t && Promise.resolve(t) === t,
|
|
1295
|
+
}, Gt = (t) => typeof t == "function" ? t() : t, Tn = (t) => t && typeof t.toPromise == "function", St = (t) => Tn(t) ? t.toPromise() : Promise.resolve(t), Sn = (t) => t && Promise.resolve(t) === t, at = {
|
|
1296
1296
|
title: "",
|
|
1297
1297
|
titleText: "",
|
|
1298
1298
|
text: "",
|
|
@@ -1434,7 +1434,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1434
1434
|
"returnFocus",
|
|
1435
1435
|
"heightAuto",
|
|
1436
1436
|
"keydownListenerCapture"
|
|
1437
|
-
], Mo = (t) => Object.prototype.hasOwnProperty.call(
|
|
1437
|
+
], Mo = (t) => Object.prototype.hasOwnProperty.call(at, t), Uo = (t) => hs.indexOf(t) !== -1, gn = (t) => ps[t], gs = (t) => {
|
|
1438
1438
|
Mo(t) || be(`Unknown parameter "${t}"`);
|
|
1439
1439
|
}, bs = (t) => {
|
|
1440
1440
|
ms.includes(t) && be(`The parameter "${t}" is incompatible with toasts`);
|
|
@@ -1522,7 +1522,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1522
1522
|
]), xt = Do(["success", "warning", "info", "question", "error"]), se = () => document.body.querySelector(`.${l.container}`), Lt = (t) => {
|
|
1523
1523
|
const e = se();
|
|
1524
1524
|
return e ? e.querySelector(t) : null;
|
|
1525
|
-
}, Se = (t) => Lt(`.${t}`), V = () => Se(l.popup), It = () => Se(l.icon), No = () => Se(l.title), zt = () => Se(l["html-container"]), $o = () => Se(l.image), Ho = () => Se(l["progress-steps"]), Yt = () => Se(l["validation-message"]), Ie = () => Lt(`.${l.actions} .${l.confirm}`), ze = () => Lt(`.${l.actions} .${l.deny}`), ks = () => Se(l["input-label"]),
|
|
1525
|
+
}, Se = (t) => Lt(`.${t}`), V = () => Se(l.popup), It = () => Se(l.icon), No = () => Se(l.title), zt = () => Se(l["html-container"]), $o = () => Se(l.image), Ho = () => Se(l["progress-steps"]), Yt = () => Se(l["validation-message"]), Ie = () => Lt(`.${l.actions} .${l.confirm}`), ze = () => Lt(`.${l.actions} .${l.deny}`), ks = () => Se(l["input-label"]), ft = () => Lt(`.${l.loader}`), Ge = () => Lt(`.${l.actions} .${l.cancel}`), Pt = () => Se(l.actions), jo = () => Se(l.footer), Jt = () => Se(l["timer-progress-bar"]), Ln = () => Se(l.close), _s = `
|
|
1526
1526
|
a[href],
|
|
1527
1527
|
area[href],
|
|
1528
1528
|
input:not([disabled]),
|
|
@@ -1543,11 +1543,11 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1543
1543
|
).sort((n, o) => {
|
|
1544
1544
|
const i = parseInt(n.getAttribute("tabindex")), c = parseInt(o.getAttribute("tabindex"));
|
|
1545
1545
|
return i > c ? 1 : i < c ? -1 : 0;
|
|
1546
|
-
}), e = xe(V().querySelectorAll(
|
|
1546
|
+
}), e = xe(V().querySelectorAll(_s)).filter(
|
|
1547
1547
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
1548
1548
|
);
|
|
1549
|
-
return us(t.concat(e)).filter((n) =>
|
|
1550
|
-
}, Pn = () => Ne(document.body, l.shown) && !Ne(document.body, l["toast-shown"]) && !Ne(document.body, l["no-backdrop"]), Xt = () => V() && Ne(V(), l.toast),
|
|
1549
|
+
return us(t.concat(e)).filter((n) => Ae(n));
|
|
1550
|
+
}, Pn = () => Ne(document.body, l.shown) && !Ne(document.body, l["toast-shown"]) && !Ne(document.body, l["no-backdrop"]), Xt = () => V() && Ne(V(), l.toast), As = () => V().hasAttribute("data-loading"), ct = {
|
|
1551
1551
|
previousBodyPadding: null
|
|
1552
1552
|
}, re = (t, e) => {
|
|
1553
1553
|
if (t.textContent = "", e) {
|
|
@@ -1626,12 +1626,12 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1626
1626
|
i && (i.style[n] = o);
|
|
1627
1627
|
}, Zt = (t, e, n) => {
|
|
1628
1628
|
e ? te(t, n) : ie(t);
|
|
1629
|
-
},
|
|
1629
|
+
}, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Cs = () => !Ae(Ie()) && !Ae(ze()) && !Ae(Ge()), so = (t) => t.scrollHeight > t.clientHeight, Wo = (t) => {
|
|
1630
1630
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
1631
1631
|
return n > 0 || o > 0;
|
|
1632
1632
|
}, On = (t, e = !1) => {
|
|
1633
1633
|
const n = Jt();
|
|
1634
|
-
|
|
1634
|
+
Ae(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
1635
1635
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
1636
1636
|
}, 10));
|
|
1637
1637
|
}, Es = () => {
|
|
@@ -1740,7 +1740,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1740
1740
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
1741
1741
|
return document.body.removeChild(t), e;
|
|
1742
1742
|
}, $s = (t, e) => {
|
|
1743
|
-
const n = Pt(), o =
|
|
1743
|
+
const n = Pt(), o = ft();
|
|
1744
1744
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ie(n) : te(n), Ee(n, e, "actions"), Hs(n, o, e), re(o, e.loaderHtml), Ee(o, e, "loader");
|
|
1745
1745
|
};
|
|
1746
1746
|
function Hs(t, e, n) {
|
|
@@ -1940,12 +1940,12 @@ const Qs = (t, e) => {
|
|
|
1940
1940
|
Zt(n, e.title || e.titleText, "block"), e.title && Fn(e.title, n), e.titleText && (n.innerText = e.titleText), Ee(n, e, "title");
|
|
1941
1941
|
}, fi = (t, e) => {
|
|
1942
1942
|
const n = se(), o = V();
|
|
1943
|
-
e.toast ? (Ct(n, "width", e.width), o.style.width = "100%", o.insertBefore(
|
|
1943
|
+
e.toast ? (Ct(n, "width", e.width), o.style.width = "100%", o.insertBefore(ft(), It())) : Ct(o, "width", e.width), Ct(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ie(Yt()), hi(o, e);
|
|
1944
1944
|
}, hi = (t, e) => {
|
|
1945
|
-
t.className = `${l.popup} ${
|
|
1945
|
+
t.className = `${l.popup} ${Ae(t) ? e.showClass.popup : ""}`, e.toast ? ($([document.documentElement, document.body], l["toast-shown"]), $(t, l.toast)) : $(t, l.modal), Ee(t, e, "popup"), typeof e.customClass == "string" && $(t, e.customClass), e.icon && $(t, l[`icon-${e.icon}`]);
|
|
1946
1946
|
}, Go = (t, e) => {
|
|
1947
1947
|
fi(t, e), qs(t, e), ui(t, e), ni(t, e), ai(t, e), di(t, e), ti(t, e), Qs(t, e), $s(t, e), ei(t, e), typeof e.didRender == "function" && e.didRender(V());
|
|
1948
|
-
},
|
|
1948
|
+
}, ht = Object.freeze({
|
|
1949
1949
|
cancel: "cancel",
|
|
1950
1950
|
backdrop: "backdrop",
|
|
1951
1951
|
close: "close",
|
|
@@ -1964,7 +1964,7 @@ const Qs = (t, e) => {
|
|
|
1964
1964
|
if (!e)
|
|
1965
1965
|
return {};
|
|
1966
1966
|
const n = e.content;
|
|
1967
|
-
return
|
|
1967
|
+
return _i(n), Object.assign(
|
|
1968
1968
|
gi(n),
|
|
1969
1969
|
bi(n),
|
|
1970
1970
|
vi(n),
|
|
@@ -1977,7 +1977,7 @@ const Qs = (t, e) => {
|
|
|
1977
1977
|
return xe(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
1978
1978
|
Ye(n, ["name", "value"]);
|
|
1979
1979
|
const o = n.getAttribute("name"), i = n.getAttribute("value");
|
|
1980
|
-
typeof
|
|
1980
|
+
typeof at[o] == "boolean" && i === "false" && (e[o] = !1), typeof at[o] == "object" && (e[o] = JSON.parse(i));
|
|
1981
1981
|
}), e;
|
|
1982
1982
|
}, bi = (t) => {
|
|
1983
1983
|
const e = {};
|
|
@@ -2008,7 +2008,7 @@ const Qs = (t, e) => {
|
|
|
2008
2008
|
c && (Ye(c, []), n[i.replace(/^swal-/, "")] = c.innerHTML.trim());
|
|
2009
2009
|
}
|
|
2010
2010
|
return n;
|
|
2011
|
-
},
|
|
2011
|
+
}, _i = (t) => {
|
|
2012
2012
|
const e = Jo.concat([
|
|
2013
2013
|
"swal-param",
|
|
2014
2014
|
"swal-button",
|
|
@@ -2032,7 +2032,7 @@ const Qs = (t, e) => {
|
|
|
2032
2032
|
email: (t, e) => /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid email address"),
|
|
2033
2033
|
url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
|
|
2034
2034
|
};
|
|
2035
|
-
function
|
|
2035
|
+
function Ai(t) {
|
|
2036
2036
|
t.inputValidator || Object.keys(lo).forEach((e) => {
|
|
2037
2037
|
t.input === e && (t.inputValidator = lo[e]);
|
|
2038
2038
|
});
|
|
@@ -2041,7 +2041,7 @@ function xi(t) {
|
|
|
2041
2041
|
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (be('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
2042
2042
|
}
|
|
2043
2043
|
function Ci(t) {
|
|
2044
|
-
|
|
2044
|
+
Ai(t), t.showLoaderOnConfirm && !t.preConfirm && be(
|
|
2045
2045
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
2046
2046
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
2047
2047
|
https://sweetalert2.github.io/#ajax-request`
|
|
@@ -2070,9 +2070,9 @@ class Ei {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
const Ti = () => {
|
|
2073
|
-
|
|
2073
|
+
ct.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (ct.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${ct.previousBodyPadding + Ns()}px`);
|
|
2074
2074
|
}, Si = () => {
|
|
2075
|
-
|
|
2075
|
+
ct.previousBodyPadding !== null && (document.body.style.paddingRight = `${ct.previousBodyPadding}px`, ct.previousBodyPadding = null);
|
|
2076
2076
|
}, Li = () => {
|
|
2077
2077
|
if (// @ts-ignore
|
|
2078
2078
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !Ne(document.body, l.iosfix)) {
|
|
@@ -2124,16 +2124,16 @@ const Ti = () => {
|
|
|
2124
2124
|
$(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), te(e, "grid"), setTimeout(() => {
|
|
2125
2125
|
$(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
2126
2126
|
}, Xo), $([document.documentElement, document.body], l.shown), n.heightAuto && n.backdrop && !n.toast && $([document.documentElement, document.body], l["height-auto"]);
|
|
2127
|
-
},
|
|
2127
|
+
}, dt = (t) => {
|
|
2128
2128
|
let e = V();
|
|
2129
|
-
e || new
|
|
2130
|
-
const n =
|
|
2129
|
+
e || new lt(), e = V();
|
|
2130
|
+
const n = ft();
|
|
2131
2131
|
Xt() ? ie(It()) : $i(e, t), te(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
2132
2132
|
}, $i = (t, e) => {
|
|
2133
|
-
const n = Pt(), o =
|
|
2134
|
-
!e &&
|
|
2133
|
+
const n = Pt(), o = ft();
|
|
2134
|
+
!e && Ae(Ie()) && (e = Ie()), te(n), e && (ie(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), $([t, n], l.loading);
|
|
2135
2135
|
}, Hi = (t, e) => {
|
|
2136
|
-
e.input === "select" || e.input === "radio" ? qi(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Tn(e.inputValue) || Sn(e.inputValue)) && (
|
|
2136
|
+
e.input === "select" || e.input === "radio" ? qi(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Tn(e.inputValue) || Sn(e.inputValue)) && (dt(Ie()), Ki(t, e));
|
|
2137
2137
|
}, ji = (t, e) => {
|
|
2138
2138
|
const n = t.getInput();
|
|
2139
2139
|
if (!n)
|
|
@@ -2150,7 +2150,7 @@ const Ti = () => {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
}, zi = (t) => t.checked ? 1 : 0, Vi = (t) => t.checked ? t.value : null, Wi = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, qi = (t, e) => {
|
|
2152
2152
|
const n = V(), o = (i) => Gi[e.input](n, bn(i), e);
|
|
2153
|
-
Tn(e.inputOptions) || Sn(e.inputOptions) ? (
|
|
2153
|
+
Tn(e.inputOptions) || Sn(e.inputOptions) ? (dt(Ie()), St(e.inputOptions).then((i) => {
|
|
2154
2154
|
t.hideLoading(), o(i);
|
|
2155
2155
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : Je(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
2156
2156
|
}, Ki = (t, e) => {
|
|
@@ -2214,7 +2214,7 @@ function Ji(t) {
|
|
|
2214
2214
|
const Tt = {
|
|
2215
2215
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
2216
2216
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
2217
|
-
}, Xi = () =>
|
|
2217
|
+
}, Xi = () => Ae(V()), Qo = () => Ie() && Ie().click(), Zi = () => ze() && ze().click(), Qi = () => Ge() && Ge().click(), er = (t) => {
|
|
2218
2218
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
2219
2219
|
capture: t.keydownListenerCapture
|
|
2220
2220
|
}), t.keydownHandlerAdded = !1);
|
|
@@ -2254,12 +2254,12 @@ const Tt = {
|
|
|
2254
2254
|
for (let x = 0; x < Pt().children.length; x++) {
|
|
2255
2255
|
if (c = c[i], !c)
|
|
2256
2256
|
return;
|
|
2257
|
-
if (
|
|
2257
|
+
if (Ae(c) && c instanceof HTMLButtonElement)
|
|
2258
2258
|
break;
|
|
2259
2259
|
}
|
|
2260
2260
|
c instanceof HTMLButtonElement && c.focus();
|
|
2261
2261
|
}, ia = (t, e, n) => {
|
|
2262
|
-
Gt(e.allowEscapeKey) && (t.preventDefault(), n(
|
|
2262
|
+
Gt(e.allowEscapeKey) && (t.preventDefault(), n(ht.esc));
|
|
2263
2263
|
};
|
|
2264
2264
|
function nr(t, e, n, o) {
|
|
2265
2265
|
Xt() ? ho(t, o) : (Ls(n).then(() => ho(t, o)), er(B)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), Pn() && (Si(), Bi(), Yo()), aa();
|
|
@@ -2373,7 +2373,7 @@ function ka(t) {
|
|
|
2373
2373
|
return be(
|
|
2374
2374
|
"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."
|
|
2375
2375
|
);
|
|
2376
|
-
const o =
|
|
2376
|
+
const o = _a(t), i = Object.assign({}, n, o);
|
|
2377
2377
|
Go(this, i), U.innerParams.set(this, i), Object.defineProperties(this, {
|
|
2378
2378
|
params: {
|
|
2379
2379
|
value: Object.assign({}, this.params, t),
|
|
@@ -2382,7 +2382,7 @@ function ka(t) {
|
|
|
2382
2382
|
}
|
|
2383
2383
|
});
|
|
2384
2384
|
}
|
|
2385
|
-
const
|
|
2385
|
+
const _a = (t) => {
|
|
2386
2386
|
const e = {};
|
|
2387
2387
|
return Object.keys(t).forEach((n) => {
|
|
2388
2388
|
Uo(n) ? e[n] = t[n] : be(
|
|
@@ -2392,7 +2392,7 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2392
2392
|
);
|
|
2393
2393
|
}), e;
|
|
2394
2394
|
};
|
|
2395
|
-
function
|
|
2395
|
+
function Aa() {
|
|
2396
2396
|
const t = U.domCache.get(this), e = U.innerParams.get(this);
|
|
2397
2397
|
if (!e) {
|
|
2398
2398
|
sr(this);
|
|
@@ -2409,7 +2409,7 @@ const xa = (t) => {
|
|
|
2409
2409
|
t[n].delete(e);
|
|
2410
2410
|
}, ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2411
2411
|
__proto__: null,
|
|
2412
|
-
_destroy:
|
|
2412
|
+
_destroy: Aa,
|
|
2413
2413
|
close: Ut,
|
|
2414
2414
|
closeModal: Ut,
|
|
2415
2415
|
closePopup: Ut,
|
|
@@ -2435,7 +2435,7 @@ const xa = (t) => {
|
|
|
2435
2435
|
const e = U.innerParams.get(t);
|
|
2436
2436
|
t.disableButtons(), e.returnInputValueOnDeny ? ar(t, "deny") : Mn(t, !1);
|
|
2437
2437
|
}, Ta = (t, e) => {
|
|
2438
|
-
t.disableButtons(), e(
|
|
2438
|
+
t.disableButtons(), e(ht.cancel);
|
|
2439
2439
|
}, ar = (t, e) => {
|
|
2440
2440
|
const n = U.innerParams.get(t);
|
|
2441
2441
|
if (!n.input)
|
|
@@ -2453,7 +2453,7 @@ const xa = (t) => {
|
|
|
2453
2453
|
});
|
|
2454
2454
|
}, Mn = (t, e) => {
|
|
2455
2455
|
const n = U.innerParams.get(t || globalThis);
|
|
2456
|
-
n.showLoaderOnDeny &&
|
|
2456
|
+
n.showLoaderOnDeny && dt(ze()), n.preDeny ? (U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
2457
2457
|
() => St(n.preDeny(e, n.validationMessage))
|
|
2458
2458
|
).then((i) => {
|
|
2459
2459
|
i === !1 ? (t.hideLoading(), Ot(t)) : t.closePopup({ isDenied: !0, value: typeof i > "u" ? e : i });
|
|
@@ -2464,17 +2464,17 @@ const xa = (t) => {
|
|
|
2464
2464
|
t.rejectPromise(e);
|
|
2465
2465
|
}, Un = (t, e) => {
|
|
2466
2466
|
const n = U.innerParams.get(t || globalThis);
|
|
2467
|
-
n.showLoaderOnConfirm &&
|
|
2467
|
+
n.showLoaderOnConfirm && dt(), n.preConfirm ? (t.resetValidationMessage(), U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
2468
2468
|
() => St(n.preConfirm(e, n.validationMessage))
|
|
2469
2469
|
).then((i) => {
|
|
2470
|
-
|
|
2470
|
+
Ae(Yt()) || i === !1 ? (t.hideLoading(), Ot(t)) : po(t, typeof i > "u" ? e : i);
|
|
2471
2471
|
}).catch((i) => cr(t || globalThis, i))) : po(t, e);
|
|
2472
2472
|
}, La = (t, e, n) => {
|
|
2473
2473
|
U.innerParams.get(t).toast ? Ia(t, e, n) : (Ra(e), Oa(e), Fa(t, e, n));
|
|
2474
2474
|
}, Ia = (t, e, n) => {
|
|
2475
2475
|
e.popup.onclick = () => {
|
|
2476
2476
|
const o = U.innerParams.get(t);
|
|
2477
|
-
o && (Pa(o) || o.timer || o.input) || n(
|
|
2477
|
+
o && (Pa(o) || o.timer || o.input) || n(ht.close);
|
|
2478
2478
|
};
|
|
2479
2479
|
}, Pa = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
2480
2480
|
let Vt = !1;
|
|
@@ -2497,7 +2497,7 @@ const Ra = (t) => {
|
|
|
2497
2497
|
Vt = !1;
|
|
2498
2498
|
return;
|
|
2499
2499
|
}
|
|
2500
|
-
o.target === e.container && Gt(i.allowOutsideClick) && n(
|
|
2500
|
+
o.target === e.container && Gt(i.allowOutsideClick) && n(ht.backdrop);
|
|
2501
2501
|
};
|
|
2502
2502
|
}, Ba = (t) => typeof t == "object" && t.jquery, mo = (t) => t instanceof Element || Ba(t), Ma = (t) => {
|
|
2503
2503
|
const e = {};
|
|
@@ -2556,7 +2556,7 @@ const Va = (t) => {
|
|
|
2556
2556
|
clickCancel: Qi,
|
|
2557
2557
|
clickConfirm: Qo,
|
|
2558
2558
|
clickDeny: Zi,
|
|
2559
|
-
enableLoading:
|
|
2559
|
+
enableLoading: dt,
|
|
2560
2560
|
fire: Ua,
|
|
2561
2561
|
getActions: Pt,
|
|
2562
2562
|
getCancelButton: Ge,
|
|
@@ -2570,7 +2570,7 @@ const Va = (t) => {
|
|
|
2570
2570
|
getIcon: It,
|
|
2571
2571
|
getImage: $o,
|
|
2572
2572
|
getInputLabel: ks,
|
|
2573
|
-
getLoader:
|
|
2573
|
+
getLoader: ft,
|
|
2574
2574
|
getPopup: V,
|
|
2575
2575
|
getTimerLeft: Na,
|
|
2576
2576
|
getTimerProgressBar: Jt,
|
|
@@ -2578,19 +2578,19 @@ const Va = (t) => {
|
|
|
2578
2578
|
getValidationMessage: Yt,
|
|
2579
2579
|
increaseTimer: Ha,
|
|
2580
2580
|
isDeprecatedParameter: gn,
|
|
2581
|
-
isLoading:
|
|
2581
|
+
isLoading: As,
|
|
2582
2582
|
isTimerRunning: ja,
|
|
2583
2583
|
isUpdatableParameter: Uo,
|
|
2584
2584
|
isValidParameter: Mo,
|
|
2585
2585
|
isVisible: Xi,
|
|
2586
2586
|
mixin: Da,
|
|
2587
2587
|
resumeTimer: ur,
|
|
2588
|
-
showLoading:
|
|
2588
|
+
showLoading: dt,
|
|
2589
2589
|
stopTimer: lr,
|
|
2590
2590
|
toggleTimer: $a
|
|
2591
2591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2592
2592
|
let wn;
|
|
2593
|
-
class
|
|
2593
|
+
class pt {
|
|
2594
2594
|
constructor(...e) {
|
|
2595
2595
|
if (typeof window > "u")
|
|
2596
2596
|
return;
|
|
@@ -2626,12 +2626,12 @@ const qa = (t, e, n) => new Promise((o, i) => {
|
|
|
2626
2626
|
const c = (x) => {
|
|
2627
2627
|
t.closePopup({ isDismissed: !0, dismiss: x });
|
|
2628
2628
|
};
|
|
2629
|
-
Tt.swalPromiseResolve.set(t, o), Tt.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => Ca(t), e.denyButton.onclick = () => Ea(t), e.cancelButton.onclick = () => Ta(t, c), e.closeButton.onclick = () => c(
|
|
2629
|
+
Tt.swalPromiseResolve.set(t, o), Tt.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => Ca(t), e.denyButton.onclick = () => Ea(t), e.cancelButton.onclick = () => Ta(t, c), e.closeButton.onclick = () => c(ht.close), La(t, e, c), ea(t, B, n, c), Hi(t, n), Mi(n), Ya(B, n, c), Ja(e, n), setTimeout(() => {
|
|
2630
2630
|
e.container.scrollTop = 0;
|
|
2631
2631
|
});
|
|
2632
2632
|
}), Ka = (t, e) => {
|
|
2633
|
-
const n = mi(t), o = Object.assign({},
|
|
2634
|
-
return o.showClass = Object.assign({},
|
|
2633
|
+
const n = mi(t), o = Object.assign({}, at, e, n, t);
|
|
2634
|
+
return o.showClass = Object.assign({}, at.showClass, o.showClass), o.hideClass = Object.assign({}, at.hideClass, o.hideClass), o;
|
|
2635
2635
|
}, Ga = (t) => {
|
|
2636
2636
|
const e = {
|
|
2637
2637
|
popup: V(),
|
|
@@ -2640,7 +2640,7 @@ const qa = (t, e, n) => new Promise((o, i) => {
|
|
|
2640
2640
|
confirmButton: Ie(),
|
|
2641
2641
|
denyButton: ze(),
|
|
2642
2642
|
cancelButton: Ge(),
|
|
2643
|
-
loader:
|
|
2643
|
+
loader: ft(),
|
|
2644
2644
|
closeButton: Ln(),
|
|
2645
2645
|
validationMessage: Yt(),
|
|
2646
2646
|
progressSteps: Ho()
|
|
@@ -2659,21 +2659,21 @@ const qa = (t, e, n) => new Promise((o, i) => {
|
|
|
2659
2659
|
return Za();
|
|
2660
2660
|
Xa(t, e) || vn(e, -1, 1);
|
|
2661
2661
|
}
|
|
2662
|
-
}, Xa = (t, e) => e.focusDeny &&
|
|
2662
|
+
}, Xa = (t, e) => e.focusDeny && Ae(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Ae(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Ae(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, Za = () => {
|
|
2663
2663
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
2664
2664
|
};
|
|
2665
|
-
Object.assign(
|
|
2666
|
-
Object.assign(
|
|
2665
|
+
Object.assign(pt.prototype, ir);
|
|
2666
|
+
Object.assign(pt, Wa);
|
|
2667
2667
|
Object.keys(ir).forEach((t) => {
|
|
2668
|
-
|
|
2668
|
+
pt[t] = function(...e) {
|
|
2669
2669
|
if (wn)
|
|
2670
2670
|
return wn[t](...e);
|
|
2671
2671
|
};
|
|
2672
2672
|
});
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2673
|
+
pt.DismissReason = ht;
|
|
2674
|
+
pt.version = "11.4.8";
|
|
2675
|
+
const lt = pt;
|
|
2676
|
+
lt.default = lt;
|
|
2677
2677
|
/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */
|
|
2678
2678
|
const {
|
|
2679
2679
|
entries: dr,
|
|
@@ -2688,7 +2688,7 @@ let {
|
|
|
2688
2688
|
create: hr
|
|
2689
2689
|
} = Object, {
|
|
2690
2690
|
apply: kn,
|
|
2691
|
-
construct:
|
|
2691
|
+
construct: _n
|
|
2692
2692
|
} = typeof Reflect < "u" && Reflect;
|
|
2693
2693
|
ue || (ue = function(e) {
|
|
2694
2694
|
return e;
|
|
@@ -2699,7 +2699,7 @@ Pe || (Pe = function(e) {
|
|
|
2699
2699
|
kn || (kn = function(e, n, o) {
|
|
2700
2700
|
return e.apply(n, o);
|
|
2701
2701
|
});
|
|
2702
|
-
|
|
2702
|
+
_n || (_n = function(e, n) {
|
|
2703
2703
|
return new e(...n);
|
|
2704
2704
|
});
|
|
2705
2705
|
const Dt = Te(Array.prototype.forEach), vo = Te(Array.prototype.pop), bt = Te(Array.prototype.push), Ht = Te(String.prototype.toLowerCase), dn = Te(String.prototype.toString), tc = Te(String.prototype.match), vt = Te(String.prototype.replace), nc = Te(String.prototype.indexOf), oc = Te(String.prototype.trim), we = Te(RegExp.prototype.test), yt = rc(TypeError);
|
|
@@ -2714,7 +2714,7 @@ function rc(t) {
|
|
|
2714
2714
|
return function() {
|
|
2715
2715
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
2716
2716
|
n[o] = arguments[o];
|
|
2717
|
-
return
|
|
2717
|
+
return _n(t, n);
|
|
2718
2718
|
};
|
|
2719
2719
|
}
|
|
2720
2720
|
function M(t, e) {
|
|
@@ -2731,7 +2731,7 @@ function M(t, e) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
return t;
|
|
2733
2733
|
}
|
|
2734
|
-
function
|
|
2734
|
+
function st(t) {
|
|
2735
2735
|
const e = hr(null);
|
|
2736
2736
|
for (const [n, o] of dr(t))
|
|
2737
2737
|
fr(t, n) !== void 0 && (e[n] = o);
|
|
@@ -2753,14 +2753,14 @@ function Nt(t, e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
return n;
|
|
2755
2755
|
}
|
|
2756
|
-
const yo = ue(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), fn = ue(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), hn = ue(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), sc = ue(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), pn = ue(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ic = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wo = ue(["#text"]), ko = ue(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), mn = ue(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]),
|
|
2756
|
+
const yo = ue(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), fn = ue(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), hn = ue(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), sc = ue(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), pn = ue(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ic = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wo = ue(["#text"]), ko = ue(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), mn = ue(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _o = ue(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), $t = ue(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ac = Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), cc = Pe(/<%[\w\W]*|[\w\W]*%>/gm), lc = Pe(/\${[\w\W]*}/gm), uc = Pe(/^data-[\-\w.\u00B7-\uFFFF]/), dc = Pe(/^aria-[\-\w]+$/), pr = Pe(
|
|
2757
2757
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2758
2758
|
// eslint-disable-line no-useless-escape
|
|
2759
2759
|
), fc = Pe(/^(?:\w+script|data):/i), hc = Pe(
|
|
2760
2760
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2761
2761
|
// eslint-disable-line no-control-regex
|
|
2762
2762
|
), mr = Pe(/^html$/i);
|
|
2763
|
-
var
|
|
2763
|
+
var Ao = /* @__PURE__ */ Object.freeze({
|
|
2764
2764
|
__proto__: null,
|
|
2765
2765
|
MUSTACHE_EXPR: ac,
|
|
2766
2766
|
ERB_EXPR: cc,
|
|
@@ -2824,7 +2824,7 @@ function gr() {
|
|
|
2824
2824
|
createDocumentFragment: k,
|
|
2825
2825
|
getElementsByTagName: I
|
|
2826
2826
|
} = n, {
|
|
2827
|
-
importNode:
|
|
2827
|
+
importNode: _
|
|
2828
2828
|
} = o;
|
|
2829
2829
|
let w = {};
|
|
2830
2830
|
e.isSupported = typeof dr == "function" && typeof de == "function" && X && X.createHTMLDocument !== void 0;
|
|
@@ -2836,13 +2836,13 @@ function gr() {
|
|
|
2836
2836
|
ARIA_ATTR: q,
|
|
2837
2837
|
IS_SCRIPT_OR_DATA: Y,
|
|
2838
2838
|
ATTR_WHITESPACE: G
|
|
2839
|
-
} =
|
|
2839
|
+
} = Ao;
|
|
2840
2840
|
let {
|
|
2841
2841
|
IS_ALLOWED_URI: ae
|
|
2842
|
-
} =
|
|
2842
|
+
} = Ao, P = null;
|
|
2843
2843
|
const fe = M({}, [...yo, ...fn, ...hn, ...pn, ...wo]);
|
|
2844
2844
|
let r = null;
|
|
2845
|
-
const a = M({}, [...ko, ...mn, ...
|
|
2845
|
+
const a = M({}, [...ko, ...mn, ..._o, ...$t]);
|
|
2846
2846
|
let d = Object.seal(hr(null, {
|
|
2847
2847
|
tagNameCheck: {
|
|
2848
2848
|
writable: !0,
|
|
@@ -2862,9 +2862,9 @@ function gr() {
|
|
|
2862
2862
|
enumerable: !0,
|
|
2863
2863
|
value: !1
|
|
2864
2864
|
}
|
|
2865
|
-
})), g = null, h = null,
|
|
2865
|
+
})), g = null, h = null, A = !0, m = !0, b = !1, E = !0, C = !1, R = !1, N = !1, he = !1, ce = !1, ee = !1, Re = !1, Dn = !0, Nn = !1;
|
|
2866
2866
|
const br = "user-content-";
|
|
2867
|
-
let Qt = !0,
|
|
2867
|
+
let Qt = !0, mt = !1, Qe = {}, et = null;
|
|
2868
2868
|
const $n = M({}, ["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"]);
|
|
2869
2869
|
let Hn = null;
|
|
2870
2870
|
const jn = M({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -2880,22 +2880,22 @@ function gr() {
|
|
|
2880
2880
|
}, on = function() {
|
|
2881
2881
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2882
2882
|
if (!(nt && nt === s)) {
|
|
2883
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
2883
|
+
if ((!s || typeof s != "object") && (s = {}), s = st(s), Ve = // eslint-disable-next-line unicorn/prefer-includes
|
|
2884
2884
|
yr.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ve = wr : Ve = s.PARSER_MEDIA_TYPE, Z = Ve === "application/xhtml+xml" ? dn : Ht, P = "ALLOWED_TAGS" in s ? M({}, s.ALLOWED_TAGS, Z) : fe, r = "ALLOWED_ATTR" in s ? M({}, s.ALLOWED_ATTR, Z) : a, nn = "ALLOWED_NAMESPACES" in s ? M({}, s.ALLOWED_NAMESPACES, dn) : vr, en = "ADD_URI_SAFE_ATTR" in s ? M(
|
|
2885
|
-
|
|
2885
|
+
st(zn),
|
|
2886
2886
|
// eslint-disable-line indent
|
|
2887
2887
|
s.ADD_URI_SAFE_ATTR,
|
|
2888
2888
|
// eslint-disable-line indent
|
|
2889
2889
|
Z
|
|
2890
2890
|
// eslint-disable-line indent
|
|
2891
2891
|
) : zn, Hn = "ADD_DATA_URI_TAGS" in s ? M(
|
|
2892
|
-
|
|
2892
|
+
st(jn),
|
|
2893
2893
|
// eslint-disable-line indent
|
|
2894
2894
|
s.ADD_DATA_URI_TAGS,
|
|
2895
2895
|
// eslint-disable-line indent
|
|
2896
2896
|
Z
|
|
2897
2897
|
// eslint-disable-line indent
|
|
2898
|
-
) : jn, et = "FORBID_CONTENTS" in s ? M({}, s.FORBID_CONTENTS, Z) : $n, g = "FORBID_TAGS" in s ? M({}, s.FORBID_TAGS, Z) : {}, h = "FORBID_ATTR" in s ? M({}, s.FORBID_ATTR, Z) : {}, Qe = "USE_PROFILES" in s ? s.USE_PROFILES : !1,
|
|
2898
|
+
) : jn, et = "FORBID_CONTENTS" in s ? M({}, s.FORBID_CONTENTS, Z) : $n, g = "FORBID_TAGS" in s ? M({}, s.FORBID_TAGS, Z) : {}, h = "FORBID_ATTR" in s ? M({}, s.FORBID_ATTR, Z) : {}, Qe = "USE_PROFILES" in s ? s.USE_PROFILES : !1, A = 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, ce = s.RETURN_DOM || !1, ee = s.RETURN_DOM_FRAGMENT || !1, Re = s.RETURN_TRUSTED_TYPE || !1, he = s.FORCE_BODY || !1, Dn = s.SANITIZE_DOM !== !1, Nn = s.SANITIZE_NAMED_PROPS || !1, Qt = s.KEEP_CONTENT !== !1, mt = s.IN_PLACE || !1, ae = s.ALLOWED_URI_REGEXP || pr, tt = s.NAMESPACE || Me, d = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Vn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (d.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Vn(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 && (ce = !0), Qe && (P = M({}, [...wo]), r = [], Qe.html === !0 && (M(P, yo), M(r, ko)), Qe.svg === !0 && (M(P, fn), M(r, mn), M(r, $t)), Qe.svgFilters === !0 && (M(P, hn), M(r, mn), M(r, $t)), Qe.mathMl === !0 && (M(P, pn), M(r, _o), M(r, $t))), s.ADD_TAGS && (P === fe && (P = st(P)), M(P, s.ADD_TAGS, Z)), s.ADD_ATTR && (r === a && (r = st(r)), M(r, s.ADD_ATTR, Z)), s.ADD_URI_SAFE_ATTR && M(en, s.ADD_URI_SAFE_ATTR, Z), s.FORBID_CONTENTS && (et === $n && (et = st(et)), M(et, s.FORBID_CONTENTS, Z)), Qt && (P["#text"] = !0), R && M(P, ["html", "head", "body"]), P.table && (M(P, ["tbody"]), delete g.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
2899
2899
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2900
2900
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2901
2901
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -2905,18 +2905,18 @@ function gr() {
|
|
|
2905
2905
|
D === void 0 && (D = mc(z, i)), D !== null && typeof ye == "string" && (ye = D.createHTML(""));
|
|
2906
2906
|
ue && ue(s), nt = s;
|
|
2907
2907
|
}
|
|
2908
|
-
}, Wn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), qn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]),
|
|
2908
|
+
}, Wn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), qn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), _r = M({}, ["title", "style", "font", "a", "script"]), Mt = M({}, fn);
|
|
2909
2909
|
M(Mt, hn), M(Mt, sc);
|
|
2910
2910
|
const rn = M({}, pn);
|
|
2911
2911
|
M(rn, ic);
|
|
2912
|
-
const
|
|
2912
|
+
const Ar = function(s) {
|
|
2913
2913
|
let v = de(s);
|
|
2914
2914
|
(!v || !v.tagName) && (v = {
|
|
2915
2915
|
namespaceURI: tt,
|
|
2916
2916
|
tagName: "template"
|
|
2917
2917
|
});
|
|
2918
2918
|
const T = Ht(s.tagName), K = Ht(v.tagName);
|
|
2919
|
-
return nn[s.namespaceURI] ? s.namespaceURI === Bt ? v.namespaceURI === Me ? T === "svg" : v.namespaceURI === Ft ? T === "svg" && (K === "annotation-xml" || Wn[K]) : !!Mt[T] : s.namespaceURI === Ft ? v.namespaceURI === Me ? T === "math" : v.namespaceURI === Bt ? T === "math" && qn[K] : !!rn[T] : s.namespaceURI === Me ? v.namespaceURI === Bt && !qn[K] || v.namespaceURI === Ft && !Wn[K] ? !1 : !rn[T] && (
|
|
2919
|
+
return nn[s.namespaceURI] ? s.namespaceURI === Bt ? v.namespaceURI === Me ? T === "svg" : v.namespaceURI === Ft ? T === "svg" && (K === "annotation-xml" || Wn[K]) : !!Mt[T] : s.namespaceURI === Ft ? v.namespaceURI === Me ? T === "math" : v.namespaceURI === Bt ? T === "math" && qn[K] : !!rn[T] : s.namespaceURI === Me ? v.namespaceURI === Bt && !qn[K] || v.namespaceURI === Ft && !Wn[K] ? !1 : !rn[T] && (_r[T] || !Mt[T]) : !!(Ve === "application/xhtml+xml" && nn[s.namespaceURI]) : !1;
|
|
2920
2920
|
}, We = function(s) {
|
|
2921
2921
|
bt(e.removed, {
|
|
2922
2922
|
element: s
|
|
@@ -3012,7 +3012,7 @@ function gr() {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
return We(s), !0;
|
|
3014
3014
|
}
|
|
3015
|
-
return s instanceof u && !
|
|
3015
|
+
return s instanceof u && !Ar(s) || (T === "noscript" || T === "noembed" || T === "noframes") && we(/<\/no(script|embed|frames)/i, s.innerHTML) ? (We(s), !0) : (C && s.nodeType === 3 && (v = s.textContent, Dt([y, O, p], (K) => {
|
|
3016
3016
|
v = vt(v, K, " ");
|
|
3017
3017
|
}), s.textContent !== v && (bt(e.removed, {
|
|
3018
3018
|
element: s.cloneNode()
|
|
@@ -3021,7 +3021,7 @@ function gr() {
|
|
|
3021
3021
|
if (Dn && (v === "id" || v === "name") && (T in n || T in kr))
|
|
3022
3022
|
return !1;
|
|
3023
3023
|
if (!(m && !h[v] && we(F, v))) {
|
|
3024
|
-
if (!(
|
|
3024
|
+
if (!(A && we(q, v))) {
|
|
3025
3025
|
if (!r[v] || h[v]) {
|
|
3026
3026
|
if (
|
|
3027
3027
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -3066,9 +3066,9 @@ function gr() {
|
|
|
3066
3066
|
name: oe,
|
|
3067
3067
|
namespaceURI: pe,
|
|
3068
3068
|
value: qe
|
|
3069
|
-
} = ne,
|
|
3069
|
+
} = ne, gt = Z(oe);
|
|
3070
3070
|
let me = oe === "value" ? qe : oc(qe);
|
|
3071
|
-
if (T.attrName =
|
|
3071
|
+
if (T.attrName = gt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Ue("uponSanitizeAttribute", s, T), me = T.attrValue, T.forceKeepAttr || (sn(oe, s), !T.keepAttr))
|
|
3072
3072
|
continue;
|
|
3073
3073
|
if (!E && we(/\/>/i, me)) {
|
|
3074
3074
|
sn(oe, s);
|
|
@@ -3078,9 +3078,9 @@ function gr() {
|
|
|
3078
3078
|
me = vt(me, to, " ");
|
|
3079
3079
|
});
|
|
3080
3080
|
const eo = Z(s.nodeName);
|
|
3081
|
-
if (Xn(eo,
|
|
3082
|
-
if (Nn && (
|
|
3083
|
-
switch (z.getAttributeType(eo,
|
|
3081
|
+
if (Xn(eo, gt, me)) {
|
|
3082
|
+
if (Nn && (gt === "id" || gt === "name") && (sn(oe, s), me = br + me), D && typeof z == "object" && typeof z.getAttributeType == "function" && !pe)
|
|
3083
|
+
switch (z.getAttributeType(eo, gt)) {
|
|
3084
3084
|
case "TrustedHTML": {
|
|
3085
3085
|
me = D.createHTML(me);
|
|
3086
3086
|
break;
|
|
@@ -3114,7 +3114,7 @@ function gr() {
|
|
|
3114
3114
|
throw yt("toString is not a function");
|
|
3115
3115
|
if (!e.isSupported)
|
|
3116
3116
|
return S;
|
|
3117
|
-
if (N || on(s), e.removed = [], typeof S == "string" && (
|
|
3117
|
+
if (N || on(s), e.removed = [], typeof S == "string" && (mt = !1), mt) {
|
|
3118
3118
|
if (S.nodeName) {
|
|
3119
3119
|
const qe = Z(S.nodeName);
|
|
3120
3120
|
if (!P[qe] || g[qe])
|
|
@@ -3130,10 +3130,10 @@ function gr() {
|
|
|
3130
3130
|
return ce ? null : Re ? ye : "";
|
|
3131
3131
|
}
|
|
3132
3132
|
v && he && We(v.firstChild);
|
|
3133
|
-
const oe = Gn(
|
|
3133
|
+
const oe = Gn(mt ? S : v);
|
|
3134
3134
|
for (; K = oe.nextNode(); )
|
|
3135
3135
|
Jn(K) || (K.content instanceof c && Cr(K.content), Qn(K));
|
|
3136
|
-
if (
|
|
3136
|
+
if (mt)
|
|
3137
3137
|
return S;
|
|
3138
3138
|
if (ce) {
|
|
3139
3139
|
if (ee)
|
|
@@ -3141,7 +3141,7 @@ function gr() {
|
|
|
3141
3141
|
ne.appendChild(v.firstChild);
|
|
3142
3142
|
else
|
|
3143
3143
|
ne = v;
|
|
3144
|
-
return (r.shadowroot || r.shadowrootmode) && (ne =
|
|
3144
|
+
return (r.shadowroot || r.shadowrootmode) && (ne = _.call(o, ne, !0)), ne;
|
|
3145
3145
|
}
|
|
3146
3146
|
let pe = R ? v.outerHTML : v.innerHTML;
|
|
3147
3147
|
return R && P["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && we(mr, v.ownerDocument.doctype.name) && (pe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
@@ -3171,11 +3171,11 @@ function gr() {
|
|
|
3171
3171
|
var xo = gr();
|
|
3172
3172
|
class gc {
|
|
3173
3173
|
get IsVisible() {
|
|
3174
|
-
return
|
|
3174
|
+
return lt.isVisible();
|
|
3175
3175
|
}
|
|
3176
3176
|
async ConfirmAsync(e) {
|
|
3177
3177
|
return new Promise((n) => {
|
|
3178
|
-
|
|
3178
|
+
lt.fire({
|
|
3179
3179
|
showCancelButton: !0,
|
|
3180
3180
|
allowEscapeKey: !1,
|
|
3181
3181
|
allowOutsideClick: !1,
|
|
@@ -3195,7 +3195,7 @@ class gc {
|
|
|
3195
3195
|
return Array.isArray(e.text) ? o = `<div style="max-height: 50vh; overflow: auto">
|
|
3196
3196
|
${e.text.join("<br />")}
|
|
3197
3197
|
</div>` : o = e.text, new Promise((i) => {
|
|
3198
|
-
|
|
3198
|
+
lt.fire({
|
|
3199
3199
|
allowEscapeKey: !1,
|
|
3200
3200
|
allowOutsideClick: !1,
|
|
3201
3201
|
icon: n,
|
|
@@ -3227,23 +3227,23 @@ const bc = new gc(), vc = () => bc, yc = ["data-cor"], wc = /* @__PURE__ */ $e({
|
|
|
3227
3227
|
const x = n[0], L = x === "?" ? 0 : (x.charCodeAt(0) - 64) % 19;
|
|
3228
3228
|
return Math.max(L, 0);
|
|
3229
3229
|
}
|
|
3230
|
-
return (x, L) => (J(),
|
|
3230
|
+
return (x, L) => (J(), _e("div", {
|
|
3231
3231
|
id: "sf-header-avatar",
|
|
3232
3232
|
"data-cor": c(),
|
|
3233
3233
|
onClick: o
|
|
3234
3234
|
}, Wt(He(n)), 9, yc));
|
|
3235
3235
|
}
|
|
3236
|
-
}), kc = {},
|
|
3236
|
+
}), kc = {}, _c = {
|
|
3237
3237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3238
3238
|
height: "48",
|
|
3239
3239
|
viewBox: "0 -960 960 960",
|
|
3240
3240
|
width: "48",
|
|
3241
3241
|
class: "sf-svg-icon"
|
|
3242
|
-
},
|
|
3243
|
-
|
|
3242
|
+
}, Ac = /* @__PURE__ */ j("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1), xc = [
|
|
3243
|
+
Ac
|
|
3244
3244
|
];
|
|
3245
3245
|
function Cc(t, e) {
|
|
3246
|
-
return J(),
|
|
3246
|
+
return J(), _e("svg", _c, xc);
|
|
3247
3247
|
}
|
|
3248
3248
|
const Ec = /* @__PURE__ */ Po(kc, [["render", Cc]]);
|
|
3249
3249
|
class Tc {
|
|
@@ -3272,22 +3272,22 @@ class Tc {
|
|
|
3272
3272
|
this.EnableLightMode();
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
|
-
const
|
|
3275
|
+
const An = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), Lc = [
|
|
3276
3276
|
Sc
|
|
3277
3277
|
], Ic = /* @__PURE__ */ $e({
|
|
3278
3278
|
__name: "ThemeToggle",
|
|
3279
3279
|
setup(t) {
|
|
3280
|
-
return (e, n) => (J(),
|
|
3280
|
+
return (e, n) => (J(), _e("button", {
|
|
3281
3281
|
id: "sf-theme-toggle",
|
|
3282
3282
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
3283
|
-
(...o) => He(
|
|
3283
|
+
(...o) => He(An).Toggle && He(An).Toggle(...o))
|
|
3284
3284
|
}, Lc));
|
|
3285
3285
|
}
|
|
3286
3286
|
}), Pc = { id: "sf-layout" }, Rc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Oc = { class: "title" }, Fc = { class: "sf-layout-nav-header" }, Bc = /* @__PURE__ */ j("span", null, "Menu", -1), Mc = { class: "sf-layout-nav-content" }, Uc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), Dc = { id: "sf-layout-content" }, Qc = /* @__PURE__ */ $e({
|
|
3287
3287
|
__name: "Layout",
|
|
3288
3288
|
setup(t) {
|
|
3289
3289
|
const e = Lo();
|
|
3290
|
-
return (n, o) => (J(),
|
|
3290
|
+
return (n, o) => (J(), _e("div", Pc, [
|
|
3291
3291
|
j("header", null, [
|
|
3292
3292
|
j("div", {
|
|
3293
3293
|
class: ke([
|
|
@@ -3348,7 +3348,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3348
3348
|
}
|
|
3349
3349
|
return (i, c) => {
|
|
3350
3350
|
const x = Eo("router-link");
|
|
3351
|
-
return J(),
|
|
3351
|
+
return J(), ut(x, {
|
|
3352
3352
|
to: e.href,
|
|
3353
3353
|
custom: ""
|
|
3354
3354
|
}, {
|
|
@@ -3359,7 +3359,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3359
3359
|
"data-active": e.exact ? H : W,
|
|
3360
3360
|
onClick: (Q) => o(Q, u)
|
|
3361
3361
|
}, [
|
|
3362
|
-
e.icon ? (J(),
|
|
3362
|
+
e.icon ? (J(), ut(jt, {
|
|
3363
3363
|
key: 0,
|
|
3364
3364
|
icone: e.icon,
|
|
3365
3365
|
"button-props": { tabindex: -1 }
|
|
@@ -3374,7 +3374,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3374
3374
|
}), Hc = /* @__PURE__ */ $e({
|
|
3375
3375
|
__name: "ScrollToTop",
|
|
3376
3376
|
setup(t) {
|
|
3377
|
-
const e =
|
|
3377
|
+
const e = At(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
3378
3378
|
let o = null;
|
|
3379
3379
|
function i() {
|
|
3380
3380
|
o == null || o.scrollTo(0, 0);
|
|
@@ -3384,7 +3384,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3384
3384
|
o = ((c = document.getElementById(n)) == null ? void 0 : c.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
3385
3385
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
3386
3386
|
});
|
|
3387
|
-
}), (c, x) => (J(),
|
|
3387
|
+
}), (c, x) => (J(), _e("button", {
|
|
3388
3388
|
id: n,
|
|
3389
3389
|
class: ke(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
3390
3390
|
onClick: i
|
|
@@ -3402,18 +3402,18 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3402
3402
|
setup(t) {
|
|
3403
3403
|
const e = t;
|
|
3404
3404
|
function n() {
|
|
3405
|
-
return new
|
|
3405
|
+
return new it("sf-content").AddClass(e.class, !!e.class).Build();
|
|
3406
3406
|
}
|
|
3407
3407
|
function o() {
|
|
3408
|
-
return new
|
|
3408
|
+
return new it("sf-content-body").AddClass("sf-content-no-padding", e.disableBodyPadding).Build();
|
|
3409
3409
|
}
|
|
3410
3410
|
function i() {
|
|
3411
|
-
return new
|
|
3411
|
+
return new it("sf-content-header").AddClass("sf-content-no-padding", e.disableHeaderPadding).Build();
|
|
3412
3412
|
}
|
|
3413
3413
|
function c() {
|
|
3414
|
-
return new
|
|
3414
|
+
return new it("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
3415
3415
|
}
|
|
3416
|
-
return (x, L) => (J(),
|
|
3416
|
+
return (x, L) => (J(), _e("div", {
|
|
3417
3417
|
class: ke(n()),
|
|
3418
3418
|
style: xn(e.style)
|
|
3419
3419
|
}, [
|
|
@@ -3471,9 +3471,9 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3471
3471
|
tabs: {}
|
|
3472
3472
|
},
|
|
3473
3473
|
setup(t) {
|
|
3474
|
-
const e = t, n =
|
|
3474
|
+
const e = t, n = At(null), o = new ResizeObserver((u) => {
|
|
3475
3475
|
L();
|
|
3476
|
-
}), i =
|
|
3476
|
+
}), i = At(!1), c = At(!1);
|
|
3477
3477
|
function x(u = !1) {
|
|
3478
3478
|
const H = n.value.clientWidth;
|
|
3479
3479
|
n.value.scrollLeft += u ? -H : H;
|
|
@@ -3495,7 +3495,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3495
3495
|
}
|
|
3496
3496
|
}), (u, H) => {
|
|
3497
3497
|
const W = Eo("RouterLink");
|
|
3498
|
-
return J(),
|
|
3498
|
+
return J(), _e("div", jc, [
|
|
3499
3499
|
j("div", {
|
|
3500
3500
|
class: ke(["left-arrow", { active: i.value }]),
|
|
3501
3501
|
onClick: H[0] || (H[0] = (Q) => x(!0))
|
|
@@ -3504,7 +3504,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3504
3504
|
ref_key: "trackerContainer",
|
|
3505
3505
|
ref: n
|
|
3506
3506
|
}, [
|
|
3507
|
-
(J(!0),
|
|
3507
|
+
(J(!0), _e(Co, null, Rr(e.tabs, (Q) => (J(), ut(W, {
|
|
3508
3508
|
to: Q.route,
|
|
3509
3509
|
custom: !0
|
|
3510
3510
|
}, {
|
|
@@ -3555,9 +3555,9 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3555
3555
|
setup(t) {
|
|
3556
3556
|
const e = t;
|
|
3557
3557
|
function n() {
|
|
3558
|
-
return new
|
|
3558
|
+
return new it(`${e.class ?? ""} sf-button`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-button-small", e.size === "sm").AddClass("sf-button-medium", e.size === "md").AddClass("sf-button-large", e.size === "lg").AddClass("sf-button-filled", e.variant === "filled").AddClass("sf-button-text", e.variant === "text").AddClass("sf-button-outlined", e.variant === "outlined").AddClass("sf-button-with-icon", !!e.icon).AddClass("sf-ripple").Build();
|
|
3559
3559
|
}
|
|
3560
|
-
return (o, i) => (J(),
|
|
3560
|
+
return (o, i) => (J(), _e("button", {
|
|
3561
3561
|
id: e.id,
|
|
3562
3562
|
name: e.name,
|
|
3563
3563
|
class: ke(n()),
|
|
@@ -3567,13 +3567,13 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3567
3567
|
form: e.form,
|
|
3568
3568
|
type: e.type
|
|
3569
3569
|
}, [
|
|
3570
|
-
e.icon ? (J(),
|
|
3570
|
+
e.icon ? (J(), ut(jt, {
|
|
3571
3571
|
key: 0,
|
|
3572
3572
|
icone: e.icon,
|
|
3573
3573
|
loading: e.loading,
|
|
3574
3574
|
size: e.size,
|
|
3575
3575
|
"button-props": { tabindex: -1 }
|
|
3576
|
-
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (J(),
|
|
3576
|
+
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (J(), ut(jt, {
|
|
3577
3577
|
key: 1,
|
|
3578
3578
|
loading: !0,
|
|
3579
3579
|
size: e.size,
|
|
@@ -3587,9 +3587,10 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3587
3587
|
});
|
|
3588
3588
|
class rl {
|
|
3589
3589
|
constructor(e = null) {
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
this
|
|
3590
|
+
ot(this, "errors", []);
|
|
3591
|
+
ot(this, "_value", null);
|
|
3592
|
+
ot(this, "_httpStatusCode");
|
|
3593
|
+
this._value = e, this._httpStatusCode = 200;
|
|
3593
3594
|
}
|
|
3594
3595
|
get value() {
|
|
3595
3596
|
return this._value;
|
|
@@ -3603,8 +3604,17 @@ class rl {
|
|
|
3603
3604
|
get hasError() {
|
|
3604
3605
|
return this.errors.length > 0;
|
|
3605
3606
|
}
|
|
3607
|
+
get httpStatusCode() {
|
|
3608
|
+
return this._httpStatusCode;
|
|
3609
|
+
}
|
|
3610
|
+
set httpStatusCode(e) {
|
|
3611
|
+
this._httpStatusCode = e;
|
|
3612
|
+
}
|
|
3606
3613
|
WithError(e) {
|
|
3607
|
-
this.errors.push(e);
|
|
3614
|
+
this.errors.push(e), this._httpStatusCode === 200 && (this._httpStatusCode = 400);
|
|
3615
|
+
}
|
|
3616
|
+
WithErrors(e) {
|
|
3617
|
+
e.forEach((n) => this.WithError(n));
|
|
3608
3618
|
}
|
|
3609
3619
|
}
|
|
3610
3620
|
(() => {
|
|
@@ -3623,7 +3633,7 @@ class rl {
|
|
|
3623
3633
|
}
|
|
3624
3634
|
t(), window.addEventListener("resize", t);
|
|
3625
3635
|
})();
|
|
3626
|
-
|
|
3636
|
+
An.SetInitialTheme();
|
|
3627
3637
|
export {
|
|
3628
3638
|
rl as AppResult,
|
|
3629
3639
|
le as AuthService,
|