@luizleon/sf.prefeiturasp.vuecomponents 0.0.24 → 0.0.26
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 +375 -356
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +12 -12
- package/dist/lib.umd.js.map +1 -1
- package/dist/services/authService.d.ts +3 -0
- package/package.json +1 -1
- package/src/services/authService.ts +9 -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 rt = (t, e, n) => (Tr(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { ref as xt, openBlock as J, createElementBlock as _e, createElementVNode as j, defineComponent as $e, normalizeStyle as xn, normalizeClass as ke, mergeProps as Sr, createBlock as dt, Fragment as Co, createTextVNode as Lr, toDisplayString as qt, createCommentVNode as Cn, unref as He, createStaticVNode as Ir, createVNode as kt, 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
|
+
rt(this, "_visible", xt(!1));
|
|
8
8
|
}
|
|
9
9
|
get IsVisible() {
|
|
10
10
|
return this._visible.value === !0;
|
|
@@ -20,7 +20,7 @@ class Fr {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
const Br = new Fr(), Lo = () => Br;
|
|
23
|
-
var Io = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(Io || {}),
|
|
23
|
+
var Io = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(Io || {}), _t = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(_t || {});
|
|
24
24
|
const Po = (t, e) => {
|
|
25
25
|
const n = t.__vccOpts || t;
|
|
26
26
|
for (const [o, i] of e)
|
|
@@ -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 at {
|
|
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
|
+
rt(this, "retorno");
|
|
54
54
|
this.retorno = e ?? "";
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -78,7 +78,7 @@ class st {
|
|
|
78
78
|
return this.retorno.trim();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const jr = ["disabled", "tabindex"], zr = ["data-color"],
|
|
81
|
+
const jr = ["disabled", "tabindex"], zr = ["data-color"], zt = /* @__PURE__ */ $e({
|
|
82
82
|
__name: "Icon",
|
|
83
83
|
props: {
|
|
84
84
|
icone: {},
|
|
@@ -88,7 +88,7 @@ const jr = ["disabled", "tabindex"], zr = ["data-color"], jt = /* @__PURE__ */ $
|
|
|
88
88
|
disabled: { type: Boolean },
|
|
89
89
|
loading: { type: Boolean },
|
|
90
90
|
button: { type: Boolean },
|
|
91
|
-
tamanho: { default:
|
|
91
|
+
tamanho: { default: _t.Medio },
|
|
92
92
|
dot: { type: Boolean },
|
|
93
93
|
dotColor: { default: Io.Error },
|
|
94
94
|
buttonProps: {}
|
|
@@ -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 at(`${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 === _t.Pequeno).AddClass("sf-icon-medium", e.tamanho === _t.Medio).AddClass("sf-icon-large", e.tamanho === _t.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(),
|
|
112
|
-
Lr(
|
|
111
|
+
e.loading ? (J(), dt(Hr, { key: 0 })) : (J(), _e(Co, { key: 1 }, [
|
|
112
|
+
Lr(qt(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)
|
|
@@ -144,13 +144,13 @@ function qr(t) {
|
|
|
144
144
|
});
|
|
145
145
|
}), n;
|
|
146
146
|
}
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
var Kt = {};
|
|
148
|
+
Kt.byteLength = Yr;
|
|
149
|
+
Kt.toByteArray = Xr;
|
|
150
|
+
Kt.fromByteArray = es;
|
|
151
151
|
var Oe = [], Ce = [], Kr = typeof Uint8Array < "u" ? Uint8Array : Array, an = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
152
|
-
for (var
|
|
153
|
-
Oe[
|
|
152
|
+
for (var st = 0, Gr = an.length; st < Gr; ++st)
|
|
153
|
+
Oe[st] = an[st], Ce[an.charCodeAt(st)] = st;
|
|
154
154
|
Ce["-".charCodeAt(0)] = 62;
|
|
155
155
|
Ce["_".charCodeAt(0)] = 63;
|
|
156
156
|
function Ro(t) {
|
|
@@ -286,7 +286,7 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
286
286
|
return function(I) {
|
|
287
287
|
return new D(k, !0).update(I)[f]();
|
|
288
288
|
};
|
|
289
|
-
},
|
|
289
|
+
}, Ze = function(f) {
|
|
290
290
|
var k = Be("hex", f);
|
|
291
291
|
c && (k = ve(k, f)), k.create = function() {
|
|
292
292
|
return new D(f);
|
|
@@ -294,37 +294,37 @@ 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
|
-
},
|
|
315
|
-
return function(I,
|
|
316
|
-
return new ye(I, k, !0).update(
|
|
314
|
+
}, Qe = function(f, k) {
|
|
315
|
+
return function(I, _) {
|
|
316
|
+
return new ye(I, k, !0).update(_)[f]();
|
|
317
317
|
};
|
|
318
318
|
}, de = function(f) {
|
|
319
|
-
var k =
|
|
319
|
+
var k = Qe("hex", f);
|
|
320
320
|
k.create = function(w) {
|
|
321
321
|
return new ye(w, f);
|
|
322
322
|
}, k.update = function(w, y) {
|
|
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[_] = Qe(_, 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
|
}
|
|
@@ -443,8 +443,8 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
443
443
|
D.call(this, this.is224, this.sharedMemory), this.update(this.oKeyPad), this.update(f), D.prototype.finalize.call(this);
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
|
-
var X =
|
|
447
|
-
X.sha256 = X, X.sha224 =
|
|
446
|
+
var X = Ze();
|
|
447
|
+
X.sha256 = X, X.sha224 = Ze(!0), X.sha256.hmac = de(), X.sha224.hmac = de(!0), x ? t.exports = X : (o.sha256 = X.sha256, o.sha224 = X.sha224);
|
|
448
448
|
})();
|
|
449
449
|
})(Oo);
|
|
450
450
|
var os = Oo.exports;
|
|
@@ -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() {
|
|
@@ -642,13 +642,13 @@ function Fo(t) {
|
|
|
642
642
|
function Be(r, a) {
|
|
643
643
|
switch (r) {
|
|
644
644
|
case "S256":
|
|
645
|
-
var d = new Uint8Array(rs.arrayBuffer(a)), g =
|
|
645
|
+
var d = new Uint8Array(rs.arrayBuffer(a)), g = Kt.fromByteArray(d).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
646
646
|
return g;
|
|
647
647
|
default:
|
|
648
648
|
throw "Invalid value for pkceMethod";
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Ze(r) {
|
|
652
652
|
var a = {
|
|
653
653
|
id_token: {
|
|
654
654
|
acr: r
|
|
@@ -663,13 +663,13 @@ 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
|
-
var E =
|
|
672
|
+
var E = Ze(r.acr);
|
|
673
673
|
b += "&claims=" + encodeURIComponent(E);
|
|
674
674
|
}
|
|
675
675
|
if ((r && r.acrValues || e.acrValues) && (b += "&acr_values=" + encodeURIComponent(r.acrValues || e.acrValues)), e.pkceMethod) {
|
|
@@ -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
|
};
|
|
@@ -776,11 +776,11 @@ function Fo(t) {
|
|
|
776
776
|
if (typeof e.authServerUrl < "u")
|
|
777
777
|
return e.authServerUrl.charAt(e.authServerUrl.length - 1) == "/" ? e.authServerUrl + "realms/" + encodeURIComponent(e.realm) : e.authServerUrl + "/realms/" + encodeURIComponent(e.realm);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function Qe() {
|
|
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);
|
|
@@ -993,15 +993,15 @@ function Fo(t) {
|
|
|
993
993
|
var a = document.createElement("iframe");
|
|
994
994
|
c.iframe = a, a.onload = function() {
|
|
995
995
|
var h = e.endpoints.authorize();
|
|
996
|
-
h.charAt(0) === "/" ? c.iframeOrigin =
|
|
996
|
+
h.charAt(0) === "/" ? c.iframeOrigin = Qe() : c.iframeOrigin = h.substring(0, h.indexOf("/", 8)), r.setSuccess();
|
|
997
997
|
};
|
|
998
998
|
var d = e.endpoints.checkSessionIframe();
|
|
999
999
|
a.setAttribute("src", d), a.setAttribute("sandbox", "allow-scripts allow-same-origin"), a.setAttribute("title", "keycloak-session-iframe"), a.style.display = "none", document.body.appendChild(a);
|
|
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
|
};
|
|
@@ -1257,24 +1257,33 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
const
|
|
1261
|
-
|
|
1260
|
+
const Ge = new Fo(), as = (t, e) => {
|
|
1261
|
+
Ge.init({ onLoad: "login-required" }).then(async (n) => {
|
|
1262
1262
|
n && await cs(), t();
|
|
1263
1263
|
}).catch((n) => {
|
|
1264
1264
|
e(n);
|
|
1265
1265
|
});
|
|
1266
1266
|
}, cs = async () => {
|
|
1267
|
-
const t = await
|
|
1267
|
+
const t = await Ge.loadUserInfo();
|
|
1268
1268
|
le.User.email = t.email ?? "", le.User.emailVerified = t.email_verified === !0, le.User.firstName = t.given_name ?? "", le.User.lastName = t.family_name ?? "", le.User.name = t.name ?? "", le.User.sub = t.sub ?? "", le.User.username = t.preferred_username ?? "", le.User.roles = [...t.role ?? []], le.User.groups = [...t.group ?? []], le.User.IsInRole = (e) => le.User.roles.includes(e);
|
|
1269
1269
|
}, ls = () => {
|
|
1270
|
-
|
|
1270
|
+
Ge.logout({
|
|
1271
1271
|
redirectUri: location.origin
|
|
1272
1272
|
}).then(() => {
|
|
1273
1273
|
sessionStorage.removeItem("user-info");
|
|
1274
1274
|
});
|
|
1275
1275
|
}, le = {
|
|
1276
|
-
Instance:
|
|
1276
|
+
Instance: Ge,
|
|
1277
1277
|
User: {},
|
|
1278
|
+
SetUrl: (t) => {
|
|
1279
|
+
Ge.authServerUrl = t;
|
|
1280
|
+
},
|
|
1281
|
+
SetRealm: (t) => {
|
|
1282
|
+
Ge.realm = t;
|
|
1283
|
+
},
|
|
1284
|
+
SetClientId: (t) => {
|
|
1285
|
+
Ge.clientId = t;
|
|
1286
|
+
},
|
|
1278
1287
|
CallLogin: as,
|
|
1279
1288
|
CallLogout: ls
|
|
1280
1289
|
}, Bo = "SweetAlert2:", us = (t) => {
|
|
@@ -1284,7 +1293,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1284
1293
|
return e;
|
|
1285
1294
|
}, En = (t) => t.charAt(0).toUpperCase() + t.slice(1), xe = (t) => Array.prototype.slice.call(t), be = (t) => {
|
|
1286
1295
|
console.warn(`${Bo} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
1287
|
-
},
|
|
1296
|
+
}, Xe = (t) => {
|
|
1288
1297
|
console.error(`${Bo} ${t}`);
|
|
1289
1298
|
}, oo = [], ds = (t) => {
|
|
1290
1299
|
oo.includes(t) || (oo.push(t), be(t));
|
|
@@ -1292,7 +1301,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1292
1301
|
ds(
|
|
1293
1302
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
1294
1303
|
);
|
|
1295
|
-
}, Gt = (t) => typeof t == "function" ? t() : t, Tn = (t) => t && typeof t.toPromise == "function",
|
|
1304
|
+
}, Gt = (t) => typeof t == "function" ? t() : t, Tn = (t) => t && typeof t.toPromise == "function", Lt = (t) => Tn(t) ? t.toPromise() : Promise.resolve(t), Sn = (t) => t && Promise.resolve(t) === t, ct = {
|
|
1296
1305
|
title: "",
|
|
1297
1306
|
titleText: "",
|
|
1298
1307
|
text: "",
|
|
@@ -1434,7 +1443,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1434
1443
|
"returnFocus",
|
|
1435
1444
|
"heightAuto",
|
|
1436
1445
|
"keydownListenerCapture"
|
|
1437
|
-
], Mo = (t) => Object.prototype.hasOwnProperty.call(
|
|
1446
|
+
], Mo = (t) => Object.prototype.hasOwnProperty.call(ct, t), Uo = (t) => hs.indexOf(t) !== -1, gn = (t) => ps[t], gs = (t) => {
|
|
1438
1447
|
Mo(t) || be(`Unknown parameter "${t}"`);
|
|
1439
1448
|
}, bs = (t) => {
|
|
1440
1449
|
ms.includes(t) && be(`The parameter "${t}" is incompatible with toasts`);
|
|
@@ -1519,10 +1528,10 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1519
1528
|
"icon-info",
|
|
1520
1529
|
"icon-question",
|
|
1521
1530
|
"icon-error"
|
|
1522
|
-
]),
|
|
1531
|
+
]), Ct = Do(["success", "warning", "info", "question", "error"]), se = () => document.body.querySelector(`.${l.container}`), It = (t) => {
|
|
1523
1532
|
const e = se();
|
|
1524
1533
|
return e ? e.querySelector(t) : null;
|
|
1525
|
-
}, Se = (t) =>
|
|
1534
|
+
}, Se = (t) => It(`.${t}`), V = () => Se(l.popup), Pt = () => Se(l.icon), No = () => Se(l.title), Vt = () => Se(l["html-container"]), $o = () => Se(l.image), Ho = () => Se(l["progress-steps"]), Yt = () => Se(l["validation-message"]), Ie = () => It(`.${l.actions} .${l.confirm}`), ze = () => It(`.${l.actions} .${l.deny}`), ks = () => Se(l["input-label"]), ht = () => It(`.${l.loader}`), Ye = () => It(`.${l.actions} .${l.cancel}`), Rt = () => Se(l.actions), jo = () => Se(l.footer), Jt = () => Se(l["timer-progress-bar"]), Ln = () => Se(l.close), _s = `
|
|
1526
1535
|
a[href],
|
|
1527
1536
|
area[href],
|
|
1528
1537
|
input:not([disabled]),
|
|
@@ -1543,11 +1552,11 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1543
1552
|
).sort((n, o) => {
|
|
1544
1553
|
const i = parseInt(n.getAttribute("tabindex")), c = parseInt(o.getAttribute("tabindex"));
|
|
1545
1554
|
return i > c ? 1 : i < c ? -1 : 0;
|
|
1546
|
-
}), e = xe(V().querySelectorAll(
|
|
1555
|
+
}), e = xe(V().querySelectorAll(_s)).filter(
|
|
1547
1556
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
1548
1557
|
);
|
|
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),
|
|
1558
|
+
return us(t.concat(e)).filter((n) => Ae(n));
|
|
1559
|
+
}, 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"), lt = {
|
|
1551
1560
|
previousBodyPadding: null
|
|
1552
1561
|
}, re = (t, e) => {
|
|
1553
1562
|
if (t.textContent = "", e) {
|
|
@@ -1568,7 +1577,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1568
1577
|
return !0;
|
|
1569
1578
|
}, xs = (t, e) => {
|
|
1570
1579
|
xe(t.classList).forEach((n) => {
|
|
1571
|
-
!Object.values(l).includes(n) && !Object.values(
|
|
1580
|
+
!Object.values(l).includes(n) && !Object.values(Ct).includes(n) && !Object.values(e.showClass).includes(n) && t.classList.remove(n);
|
|
1572
1581
|
});
|
|
1573
1582
|
}, Ee = (t, e, n) => {
|
|
1574
1583
|
if (xs(t, e), e.customClass && e.customClass[n]) {
|
|
@@ -1615,7 +1624,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1615
1624
|
for (let o = 0; o < n.length; o++)
|
|
1616
1625
|
if (Ne(n[o], e))
|
|
1617
1626
|
return n[o];
|
|
1618
|
-
},
|
|
1627
|
+
}, Et = (t, e, n) => {
|
|
1619
1628
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? t.style[e] = typeof n == "number" ? `${n}px` : n : t.style.removeProperty(e);
|
|
1620
1629
|
}, te = (t, e = "flex") => {
|
|
1621
1630
|
t.style.display = e;
|
|
@@ -1626,12 +1635,12 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1626
1635
|
i && (i.style[n] = o);
|
|
1627
1636
|
}, Zt = (t, e, n) => {
|
|
1628
1637
|
e ? te(t, n) : ie(t);
|
|
1629
|
-
},
|
|
1638
|
+
}, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Cs = () => !Ae(Ie()) && !Ae(ze()) && !Ae(Ye()), so = (t) => t.scrollHeight > t.clientHeight, Wo = (t) => {
|
|
1630
1639
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
1631
1640
|
return n > 0 || o > 0;
|
|
1632
1641
|
}, On = (t, e = !1) => {
|
|
1633
1642
|
const n = Jt();
|
|
1634
|
-
|
|
1643
|
+
Ae(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
1635
1644
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
1636
1645
|
}, 10));
|
|
1637
1646
|
}, Es = () => {
|
|
@@ -1704,7 +1713,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1704
1713
|
}, Ms = (t) => {
|
|
1705
1714
|
const e = Ps();
|
|
1706
1715
|
if (qo()) {
|
|
1707
|
-
|
|
1716
|
+
Xe("SweetAlert2 requires document to initialize");
|
|
1708
1717
|
return;
|
|
1709
1718
|
}
|
|
1710
1719
|
const n = document.createElement("div");
|
|
@@ -1721,7 +1730,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1721
1730
|
t.appendChild(e[n].cloneNode(!0));
|
|
1722
1731
|
else
|
|
1723
1732
|
t.appendChild(e.cloneNode(!0));
|
|
1724
|
-
},
|
|
1733
|
+
}, Tt = (() => {
|
|
1725
1734
|
if (qo())
|
|
1726
1735
|
return !1;
|
|
1727
1736
|
const t = document.createElement("div"), e = {
|
|
@@ -1740,11 +1749,11 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1740
1749
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
1741
1750
|
return document.body.removeChild(t), e;
|
|
1742
1751
|
}, $s = (t, e) => {
|
|
1743
|
-
const n =
|
|
1752
|
+
const n = Rt(), o = ht();
|
|
1744
1753
|
!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
1754
|
};
|
|
1746
1755
|
function Hs(t, e, n) {
|
|
1747
|
-
const o = Ie(), i = ze(), c =
|
|
1756
|
+
const o = Ie(), i = ze(), c = Ye();
|
|
1748
1757
|
ln(o, "confirm", n), ln(i, "deny", n), ln(c, "cancel", n), js(o, i, c, n), n.reverseButtons && (n.toast ? (t.insertBefore(c, o), t.insertBefore(i, o)) : (t.insertBefore(c, e), t.insertBefore(i, e), t.insertBefore(o, e)));
|
|
1749
1758
|
}
|
|
1750
1759
|
function js(t, e, n, o) {
|
|
@@ -1783,7 +1792,7 @@ const qs = (t, e) => {
|
|
|
1783
1792
|
}), e.input && (i && Ys(e), Zs(e));
|
|
1784
1793
|
}, Ys = (t) => {
|
|
1785
1794
|
if (!ge[t.input])
|
|
1786
|
-
return
|
|
1795
|
+
return Xe(
|
|
1787
1796
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
1788
1797
|
);
|
|
1789
1798
|
const e = Ko(t.input), n = ge[t.input](e, t);
|
|
@@ -1807,7 +1816,7 @@ const qs = (t, e) => {
|
|
|
1807
1816
|
t.customClass && $(e, t.customClass.input);
|
|
1808
1817
|
}, Bn = (t, e) => {
|
|
1809
1818
|
(!t.placeholder || e.inputPlaceholder) && (t.placeholder = e.inputPlaceholder);
|
|
1810
|
-
},
|
|
1819
|
+
}, Ot = (t, e, n) => {
|
|
1811
1820
|
if (n.inputLabel) {
|
|
1812
1821
|
t.id = l.input;
|
|
1813
1822
|
const o = document.createElement("label"), i = l["input-label"];
|
|
@@ -1819,18 +1828,18 @@ const qs = (t, e) => {
|
|
|
1819
1828
|
}, ge = {};
|
|
1820
1829
|
ge.text = ge.email = ge.password = ge.number = ge.tel = ge.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : Sn(e.inputValue) || be(
|
|
1821
1830
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
1822
|
-
),
|
|
1823
|
-
ge.file = (t, e) => (
|
|
1831
|
+
), Ot(t, t, e), Bn(t, e), t.type = e.input, t);
|
|
1832
|
+
ge.file = (t, e) => (Ot(t, t, e), Bn(t, e), t);
|
|
1824
1833
|
ge.range = (t, e) => {
|
|
1825
1834
|
const n = t.querySelector("input"), o = t.querySelector("output");
|
|
1826
|
-
return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue,
|
|
1835
|
+
return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue, Ot(n, t, e), t;
|
|
1827
1836
|
};
|
|
1828
1837
|
ge.select = (t, e) => {
|
|
1829
1838
|
if (t.textContent = "", e.inputPlaceholder) {
|
|
1830
1839
|
const n = document.createElement("option");
|
|
1831
1840
|
re(n, e.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n);
|
|
1832
1841
|
}
|
|
1833
|
-
return
|
|
1842
|
+
return Ot(t, t, e), t;
|
|
1834
1843
|
};
|
|
1835
1844
|
ge.radio = (t) => (t.textContent = "", t);
|
|
1836
1845
|
ge.checkbox = (t, e) => {
|
|
@@ -1840,7 +1849,7 @@ ge.checkbox = (t, e) => {
|
|
|
1840
1849
|
return re(o, e.inputPlaceholder), t;
|
|
1841
1850
|
};
|
|
1842
1851
|
ge.textarea = (t, e) => {
|
|
1843
|
-
t.value = e.inputValue, Bn(t, e),
|
|
1852
|
+
t.value = e.inputValue, Bn(t, e), Ot(t, t, e);
|
|
1844
1853
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
1845
1854
|
return setTimeout(() => {
|
|
1846
1855
|
if ("MutationObserver" in window) {
|
|
@@ -1856,7 +1865,7 @@ ge.textarea = (t, e) => {
|
|
|
1856
1865
|
}), t;
|
|
1857
1866
|
};
|
|
1858
1867
|
const Qs = (t, e) => {
|
|
1859
|
-
const n =
|
|
1868
|
+
const n = Vt();
|
|
1860
1869
|
Ee(n, e, "htmlContainer"), e.html ? (Fn(e.html, n), te(n, "block")) : e.text ? (n.textContent = e.text, te(n, "block")) : ie(n), Gs(t, e);
|
|
1861
1870
|
}, ei = (t, e) => {
|
|
1862
1871
|
const n = jo();
|
|
@@ -1865,20 +1874,20 @@ const Qs = (t, e) => {
|
|
|
1865
1874
|
const n = Ln();
|
|
1866
1875
|
re(n, e.closeButtonHtml), Ee(n, e, "closeButton"), Zt(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
1867
1876
|
}, ni = (t, e) => {
|
|
1868
|
-
const n = U.innerParams.get(t), o =
|
|
1877
|
+
const n = U.innerParams.get(t), o = Pt();
|
|
1869
1878
|
if (n && e.icon === n.icon) {
|
|
1870
1879
|
ao(o, e), io(o, e);
|
|
1871
1880
|
return;
|
|
1872
1881
|
}
|
|
1873
1882
|
if (!e.icon && !e.iconHtml)
|
|
1874
1883
|
return ie(o);
|
|
1875
|
-
if (e.icon && Object.keys(
|
|
1876
|
-
return
|
|
1884
|
+
if (e.icon && Object.keys(Ct).indexOf(e.icon) === -1)
|
|
1885
|
+
return Xe(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), ie(o);
|
|
1877
1886
|
te(o), ao(o, e), io(o, e), $(o, e.showClass.icon);
|
|
1878
1887
|
}, io = (t, e) => {
|
|
1879
|
-
for (const n in
|
|
1880
|
-
e.icon !== n && Fe(t,
|
|
1881
|
-
$(t,
|
|
1888
|
+
for (const n in Ct)
|
|
1889
|
+
e.icon !== n && Fe(t, Ct[n]);
|
|
1890
|
+
$(t, Ct[e.icon]), ii(t, e), oi(), Ee(t, e, "icon");
|
|
1882
1891
|
}, oi = () => {
|
|
1883
1892
|
const t = V(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
1884
1893
|
for (let o = 0; o < n.length; o++)
|
|
@@ -1915,7 +1924,7 @@ const Qs = (t, e) => {
|
|
|
1915
1924
|
const n = $o();
|
|
1916
1925
|
if (!e.imageUrl)
|
|
1917
1926
|
return ie(n);
|
|
1918
|
-
te(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt),
|
|
1927
|
+
te(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), Et(n, "width", e.imageWidth), Et(n, "height", e.imageHeight), n.className = l.image, Ee(n, e, "image");
|
|
1919
1928
|
}, ci = (t) => {
|
|
1920
1929
|
const e = document.createElement("li");
|
|
1921
1930
|
return $(e, l["progress-step"]), re(e, t), e;
|
|
@@ -1940,12 +1949,12 @@ const Qs = (t, e) => {
|
|
|
1940
1949
|
Zt(n, e.title || e.titleText, "block"), e.title && Fn(e.title, n), e.titleText && (n.innerText = e.titleText), Ee(n, e, "title");
|
|
1941
1950
|
}, fi = (t, e) => {
|
|
1942
1951
|
const n = se(), o = V();
|
|
1943
|
-
e.toast ? (
|
|
1952
|
+
e.toast ? (Et(n, "width", e.width), o.style.width = "100%", o.insertBefore(ht(), Pt())) : Et(o, "width", e.width), Et(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ie(Yt()), hi(o, e);
|
|
1944
1953
|
}, hi = (t, e) => {
|
|
1945
|
-
t.className = `${l.popup} ${
|
|
1954
|
+
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
1955
|
}, Go = (t, e) => {
|
|
1947
1956
|
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
|
-
},
|
|
1957
|
+
}, pt = Object.freeze({
|
|
1949
1958
|
cancel: "cancel",
|
|
1950
1959
|
backdrop: "backdrop",
|
|
1951
1960
|
close: "close",
|
|
@@ -1964,7 +1973,7 @@ const Qs = (t, e) => {
|
|
|
1964
1973
|
if (!e)
|
|
1965
1974
|
return {};
|
|
1966
1975
|
const n = e.content;
|
|
1967
|
-
return
|
|
1976
|
+
return _i(n), Object.assign(
|
|
1968
1977
|
gi(n),
|
|
1969
1978
|
bi(n),
|
|
1970
1979
|
vi(n),
|
|
@@ -1975,29 +1984,29 @@ const Qs = (t, e) => {
|
|
|
1975
1984
|
}, gi = (t) => {
|
|
1976
1985
|
const e = {};
|
|
1977
1986
|
return xe(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
1978
|
-
|
|
1987
|
+
Je(n, ["name", "value"]);
|
|
1979
1988
|
const o = n.getAttribute("name"), i = n.getAttribute("value");
|
|
1980
|
-
typeof
|
|
1989
|
+
typeof ct[o] == "boolean" && i === "false" && (e[o] = !1), typeof ct[o] == "object" && (e[o] = JSON.parse(i));
|
|
1981
1990
|
}), e;
|
|
1982
1991
|
}, bi = (t) => {
|
|
1983
1992
|
const e = {};
|
|
1984
1993
|
return xe(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
1985
|
-
|
|
1994
|
+
Je(n, ["type", "color", "aria-label"]);
|
|
1986
1995
|
const o = n.getAttribute("type");
|
|
1987
1996
|
e[`${o}ButtonText`] = n.innerHTML, e[`show${En(o)}Button`] = !0, n.hasAttribute("color") && (e[`${o}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
1988
1997
|
}), e;
|
|
1989
1998
|
}, vi = (t) => {
|
|
1990
1999
|
const e = {}, n = t.querySelector("swal-image");
|
|
1991
|
-
return n && (
|
|
2000
|
+
return n && (Je(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src")), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width")), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height")), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt"))), e;
|
|
1992
2001
|
}, yi = (t) => {
|
|
1993
2002
|
const e = {}, n = t.querySelector("swal-icon");
|
|
1994
|
-
return n && (
|
|
2003
|
+
return n && (Je(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
|
|
1995
2004
|
}, wi = (t) => {
|
|
1996
2005
|
const e = {}, n = t.querySelector("swal-input");
|
|
1997
|
-
n && (
|
|
2006
|
+
n && (Je(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
|
|
1998
2007
|
const o = t.querySelectorAll("swal-input-option");
|
|
1999
2008
|
return o.length && (e.inputOptions = {}, xe(o).forEach((i) => {
|
|
2000
|
-
|
|
2009
|
+
Je(i, ["value"]);
|
|
2001
2010
|
const c = i.getAttribute("value"), x = i.innerHTML;
|
|
2002
2011
|
e.inputOptions[c] = x;
|
|
2003
2012
|
})), e;
|
|
@@ -2005,10 +2014,10 @@ const Qs = (t, e) => {
|
|
|
2005
2014
|
const n = {};
|
|
2006
2015
|
for (const o in e) {
|
|
2007
2016
|
const i = e[o], c = t.querySelector(i);
|
|
2008
|
-
c && (
|
|
2017
|
+
c && (Je(c, []), n[i.replace(/^swal-/, "")] = c.innerHTML.trim());
|
|
2009
2018
|
}
|
|
2010
2019
|
return n;
|
|
2011
|
-
},
|
|
2020
|
+
}, _i = (t) => {
|
|
2012
2021
|
const e = Jo.concat([
|
|
2013
2022
|
"swal-param",
|
|
2014
2023
|
"swal-button",
|
|
@@ -2021,7 +2030,7 @@ const Qs = (t, e) => {
|
|
|
2021
2030
|
const o = n.tagName.toLowerCase();
|
|
2022
2031
|
e.indexOf(o) === -1 && be(`Unrecognized element <${o}>`);
|
|
2023
2032
|
});
|
|
2024
|
-
},
|
|
2033
|
+
}, Je = (t, e) => {
|
|
2025
2034
|
xe(t.attributes).forEach((n) => {
|
|
2026
2035
|
e.indexOf(n.name) === -1 && be([
|
|
2027
2036
|
`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,
|
|
@@ -2032,7 +2041,7 @@ const Qs = (t, e) => {
|
|
|
2032
2041
|
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
2042
|
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
2043
|
};
|
|
2035
|
-
function
|
|
2044
|
+
function Ai(t) {
|
|
2036
2045
|
t.inputValidator || Object.keys(lo).forEach((e) => {
|
|
2037
2046
|
t.input === e && (t.inputValidator = lo[e]);
|
|
2038
2047
|
});
|
|
@@ -2041,7 +2050,7 @@ function xi(t) {
|
|
|
2041
2050
|
(!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
2051
|
}
|
|
2043
2052
|
function Ci(t) {
|
|
2044
|
-
|
|
2053
|
+
Ai(t), t.showLoaderOnConfirm && !t.preConfirm && be(
|
|
2045
2054
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
2046
2055
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
2047
2056
|
https://sweetalert2.github.io/#ajax-request`
|
|
@@ -2070,9 +2079,9 @@ class Ei {
|
|
|
2070
2079
|
}
|
|
2071
2080
|
}
|
|
2072
2081
|
const Ti = () => {
|
|
2073
|
-
|
|
2082
|
+
lt.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (lt.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${lt.previousBodyPadding + Ns()}px`);
|
|
2074
2083
|
}, Si = () => {
|
|
2075
|
-
|
|
2084
|
+
lt.previousBodyPadding !== null && (document.body.style.paddingRight = `${lt.previousBodyPadding}px`, lt.previousBodyPadding = null);
|
|
2076
2085
|
}, Li = () => {
|
|
2077
2086
|
if (// @ts-ignore
|
|
2078
2087
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !Ne(document.body, l.iosfix)) {
|
|
@@ -2094,8 +2103,8 @@ const Ti = () => {
|
|
|
2094
2103
|
const e = t.target, n = se();
|
|
2095
2104
|
return Oi(t) || Fi(t) ? !1 : e === n || !so(n) && e.tagName !== "INPUT" && // #1603
|
|
2096
2105
|
e.tagName !== "TEXTAREA" && // #2266
|
|
2097
|
-
!(so(
|
|
2098
|
-
|
|
2106
|
+
!(so(Vt()) && // #1944
|
|
2107
|
+
Vt().contains(e));
|
|
2099
2108
|
}, Oi = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Fi = (t) => t.touches && t.touches.length > 1, Bi = () => {
|
|
2100
2109
|
if (Ne(document.body, l.iosfix)) {
|
|
2101
2110
|
const t = parseInt(document.body.style.top, 10);
|
|
@@ -2113,9 +2122,9 @@ const Ti = () => {
|
|
|
2113
2122
|
if (t.target !== e)
|
|
2114
2123
|
return;
|
|
2115
2124
|
const n = se();
|
|
2116
|
-
e.removeEventListener(
|
|
2125
|
+
e.removeEventListener(Tt, Zo), n.style.overflowY = "auto";
|
|
2117
2126
|
}, Ui = (t, e) => {
|
|
2118
|
-
|
|
2127
|
+
Tt && Wo(e) ? (t.style.overflowY = "hidden", e.addEventListener(Tt, Zo)) : t.style.overflowY = "auto";
|
|
2119
2128
|
}, Di = (t, e, n) => {
|
|
2120
2129
|
Li(), e && n !== "hidden" && Ti(), setTimeout(() => {
|
|
2121
2130
|
t.scrollTop = 0;
|
|
@@ -2124,16 +2133,16 @@ const Ti = () => {
|
|
|
2124
2133
|
$(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), te(e, "grid"), setTimeout(() => {
|
|
2125
2134
|
$(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
2126
2135
|
}, Xo), $([document.documentElement, document.body], l.shown), n.heightAuto && n.backdrop && !n.toast && $([document.documentElement, document.body], l["height-auto"]);
|
|
2127
|
-
},
|
|
2136
|
+
}, ft = (t) => {
|
|
2128
2137
|
let e = V();
|
|
2129
|
-
e || new
|
|
2130
|
-
const n =
|
|
2131
|
-
Xt() ? ie(
|
|
2138
|
+
e || new ut(), e = V();
|
|
2139
|
+
const n = ht();
|
|
2140
|
+
Xt() ? ie(Pt()) : $i(e, t), te(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
2132
2141
|
}, $i = (t, e) => {
|
|
2133
|
-
const n =
|
|
2134
|
-
!e &&
|
|
2142
|
+
const n = Rt(), o = ht();
|
|
2143
|
+
!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
2144
|
}, 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)) && (
|
|
2145
|
+
e.input === "select" || e.input === "radio" ? qi(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Tn(e.inputValue) || Sn(e.inputValue)) && (ft(Ie()), Ki(t, e));
|
|
2137
2146
|
}, ji = (t, e) => {
|
|
2138
2147
|
const n = t.getInput();
|
|
2139
2148
|
if (!n)
|
|
@@ -2150,15 +2159,15 @@ const Ti = () => {
|
|
|
2150
2159
|
}
|
|
2151
2160
|
}, 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
2161
|
const n = V(), o = (i) => Gi[e.input](n, bn(i), e);
|
|
2153
|
-
Tn(e.inputOptions) || Sn(e.inputOptions) ? (
|
|
2162
|
+
Tn(e.inputOptions) || Sn(e.inputOptions) ? (ft(Ie()), Lt(e.inputOptions).then((i) => {
|
|
2154
2163
|
t.hideLoading(), o(i);
|
|
2155
|
-
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) :
|
|
2164
|
+
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : Xe(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
2156
2165
|
}, Ki = (t, e) => {
|
|
2157
2166
|
const n = t.getInput();
|
|
2158
|
-
ie(n),
|
|
2167
|
+
ie(n), Lt(e.inputValue).then((o) => {
|
|
2159
2168
|
n.value = e.input === "number" ? parseFloat(o) || 0 : `${o}`, te(n), n.focus(), t.hideLoading();
|
|
2160
2169
|
}).catch((o) => {
|
|
2161
|
-
|
|
2170
|
+
Xe(`Error in inputValue promise: ${o}`), n.value = "", te(n), n.focus(), t.hideLoading();
|
|
2162
2171
|
});
|
|
2163
2172
|
}, Gi = {
|
|
2164
2173
|
select: (t, e, n) => {
|
|
@@ -2201,7 +2210,7 @@ function fo() {
|
|
|
2201
2210
|
if (!t)
|
|
2202
2211
|
return;
|
|
2203
2212
|
const e = U.domCache.get(this);
|
|
2204
|
-
ie(e.loader), Xt() ? t.icon && te(
|
|
2213
|
+
ie(e.loader), Xt() ? t.icon && te(Pt()) : Yi(e), Fe([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;
|
|
2205
2214
|
}
|
|
2206
2215
|
const Yi = (t) => {
|
|
2207
2216
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -2211,10 +2220,10 @@ function Ji(t) {
|
|
|
2211
2220
|
const e = U.innerParams.get(t || this), n = U.domCache.get(t || this);
|
|
2212
2221
|
return n ? Rn(n.popup, e.input) : null;
|
|
2213
2222
|
}
|
|
2214
|
-
const
|
|
2223
|
+
const St = {
|
|
2215
2224
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
2216
2225
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
2217
|
-
}, Xi = () =>
|
|
2226
|
+
}, Xi = () => Ae(V()), Qo = () => Ie() && Ie().click(), Zi = () => ze() && ze().click(), Qi = () => Ye() && Ye().click(), er = (t) => {
|
|
2218
2227
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
2219
2228
|
capture: t.keydownListenerCapture
|
|
2220
2229
|
}), t.keydownHandlerAdded = !1);
|
|
@@ -2246,20 +2255,20 @@ const Tt = {
|
|
|
2246
2255
|
}
|
|
2247
2256
|
t.shiftKey ? vn(e, i, -1) : vn(e, i, 1), t.stopPropagation(), t.preventDefault();
|
|
2248
2257
|
}, sa = (t) => {
|
|
2249
|
-
const e = Ie(), n = ze(), o =
|
|
2258
|
+
const e = Ie(), n = ze(), o = Ye();
|
|
2250
2259
|
if (![e, n, o].includes(document.activeElement))
|
|
2251
2260
|
return;
|
|
2252
2261
|
const i = tr.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
2253
2262
|
let c = document.activeElement;
|
|
2254
|
-
for (let x = 0; x <
|
|
2263
|
+
for (let x = 0; x < Rt().children.length; x++) {
|
|
2255
2264
|
if (c = c[i], !c)
|
|
2256
2265
|
return;
|
|
2257
|
-
if (
|
|
2266
|
+
if (Ae(c) && c instanceof HTMLButtonElement)
|
|
2258
2267
|
break;
|
|
2259
2268
|
}
|
|
2260
2269
|
c instanceof HTMLButtonElement && c.focus();
|
|
2261
2270
|
}, ia = (t, e, n) => {
|
|
2262
|
-
Gt(e.allowEscapeKey) && (t.preventDefault(), n(
|
|
2271
|
+
Gt(e.allowEscapeKey) && (t.preventDefault(), n(pt.esc));
|
|
2263
2272
|
};
|
|
2264
2273
|
function nr(t, e, n, o) {
|
|
2265
2274
|
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();
|
|
@@ -2270,10 +2279,10 @@ function aa() {
|
|
|
2270
2279
|
[l.shown, l["height-auto"], l["no-backdrop"], l["toast-shown"]]
|
|
2271
2280
|
);
|
|
2272
2281
|
}
|
|
2273
|
-
function
|
|
2282
|
+
function Dt(t) {
|
|
2274
2283
|
t = da(t);
|
|
2275
|
-
const e =
|
|
2276
|
-
this.isAwaitingPromise() ? t.isDismissed || (
|
|
2284
|
+
const e = St.swalPromiseResolve.get(this), n = la(this);
|
|
2285
|
+
this.isAwaitingPromise() ? t.isDismissed || (Ft(this), e(t)) : n && e(t);
|
|
2277
2286
|
}
|
|
2278
2287
|
function ca() {
|
|
2279
2288
|
return !!U.awaitingPromise.get(this);
|
|
@@ -2290,10 +2299,10 @@ const la = (t) => {
|
|
|
2290
2299
|
return Fe(o, n.showClass.backdrop), $(o, n.hideClass.backdrop), fa(t, e, n), !0;
|
|
2291
2300
|
};
|
|
2292
2301
|
function ua(t) {
|
|
2293
|
-
const e =
|
|
2294
|
-
|
|
2302
|
+
const e = St.swalPromiseReject.get(this);
|
|
2303
|
+
Ft(this), e && e(t);
|
|
2295
2304
|
}
|
|
2296
|
-
const
|
|
2305
|
+
const Ft = (t) => {
|
|
2297
2306
|
t.isAwaitingPromise() && (U.awaitingPromise.delete(t), U.innerParams.get(t) || t._destroy());
|
|
2298
2307
|
}, da = (t) => typeof t > "u" ? {
|
|
2299
2308
|
isConfirmed: !1,
|
|
@@ -2307,7 +2316,7 @@ const Ot = (t) => {
|
|
|
2307
2316
|
},
|
|
2308
2317
|
t
|
|
2309
2318
|
), fa = (t, e, n) => {
|
|
2310
|
-
const o = se(), i =
|
|
2319
|
+
const o = se(), i = Tt && Wo(e);
|
|
2311
2320
|
typeof n.willClose == "function" && n.willClose(e), i ? ha(t, e, o, n.returnFocus, n.didClose) : nr(t, o, n.returnFocus, n.didClose);
|
|
2312
2321
|
}, ha = (t, e, n, o, i) => {
|
|
2313
2322
|
B.swalCloseEventFinishedCallback = nr.bind(
|
|
@@ -2316,7 +2325,7 @@ const Ot = (t) => {
|
|
|
2316
2325
|
n,
|
|
2317
2326
|
o,
|
|
2318
2327
|
i
|
|
2319
|
-
), e.addEventListener(
|
|
2328
|
+
), e.addEventListener(Tt, function(c) {
|
|
2320
2329
|
c.target === e && (B.swalCloseEventFinishedCallback(), delete B.swalCloseEventFinishedCallback);
|
|
2321
2330
|
});
|
|
2322
2331
|
}, ho = (t, e) => {
|
|
@@ -2373,7 +2382,7 @@ function ka(t) {
|
|
|
2373
2382
|
return be(
|
|
2374
2383
|
"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
2384
|
);
|
|
2376
|
-
const o =
|
|
2385
|
+
const o = _a(t), i = Object.assign({}, n, o);
|
|
2377
2386
|
Go(this, i), U.innerParams.set(this, i), Object.defineProperties(this, {
|
|
2378
2387
|
params: {
|
|
2379
2388
|
value: Object.assign({}, this.params, t),
|
|
@@ -2382,7 +2391,7 @@ function ka(t) {
|
|
|
2382
2391
|
}
|
|
2383
2392
|
});
|
|
2384
2393
|
}
|
|
2385
|
-
const
|
|
2394
|
+
const _a = (t) => {
|
|
2386
2395
|
const e = {};
|
|
2387
2396
|
return Object.keys(t).forEach((n) => {
|
|
2388
2397
|
Uo(n) ? e[n] = t[n] : be(
|
|
@@ -2392,7 +2401,7 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2392
2401
|
);
|
|
2393
2402
|
}), e;
|
|
2394
2403
|
};
|
|
2395
|
-
function
|
|
2404
|
+
function Aa() {
|
|
2396
2405
|
const t = U.domCache.get(this), e = U.innerParams.get(this);
|
|
2397
2406
|
if (!e) {
|
|
2398
2407
|
sr(this);
|
|
@@ -2403,17 +2412,17 @@ function _a() {
|
|
|
2403
2412
|
const xa = (t) => {
|
|
2404
2413
|
sr(t), delete t.params, delete B.keydownHandler, delete B.keydownTarget, delete B.currentInstance;
|
|
2405
2414
|
}, sr = (t) => {
|
|
2406
|
-
t.isAwaitingPromise() ? (un(U, t), U.awaitingPromise.set(t, !0)) : (un(
|
|
2415
|
+
t.isAwaitingPromise() ? (un(U, t), U.awaitingPromise.set(t, !0)) : (un(St, t), un(U, t));
|
|
2407
2416
|
}, un = (t, e) => {
|
|
2408
2417
|
for (const n in t)
|
|
2409
2418
|
t[n].delete(e);
|
|
2410
2419
|
}, ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2411
2420
|
__proto__: null,
|
|
2412
|
-
_destroy:
|
|
2413
|
-
close:
|
|
2414
|
-
closeModal:
|
|
2415
|
-
closePopup:
|
|
2416
|
-
closeToast:
|
|
2421
|
+
_destroy: Aa,
|
|
2422
|
+
close: Dt,
|
|
2423
|
+
closeModal: Dt,
|
|
2424
|
+
closePopup: Dt,
|
|
2425
|
+
closeToast: Dt,
|
|
2417
2426
|
disableButtons: ma,
|
|
2418
2427
|
disableInput: ba,
|
|
2419
2428
|
disableLoading: fo,
|
|
@@ -2421,7 +2430,7 @@ const xa = (t) => {
|
|
|
2421
2430
|
enableInput: ga,
|
|
2422
2431
|
getInput: Ji,
|
|
2423
2432
|
getProgressSteps: wa,
|
|
2424
|
-
handleAwaitingPromise:
|
|
2433
|
+
handleAwaitingPromise: Ft,
|
|
2425
2434
|
hideLoading: fo,
|
|
2426
2435
|
isAwaitingPromise: ca,
|
|
2427
2436
|
rejectPromise: ua,
|
|
@@ -2435,11 +2444,11 @@ const xa = (t) => {
|
|
|
2435
2444
|
const e = U.innerParams.get(t);
|
|
2436
2445
|
t.disableButtons(), e.returnInputValueOnDeny ? ar(t, "deny") : Mn(t, !1);
|
|
2437
2446
|
}, Ta = (t, e) => {
|
|
2438
|
-
t.disableButtons(), e(
|
|
2447
|
+
t.disableButtons(), e(pt.cancel);
|
|
2439
2448
|
}, ar = (t, e) => {
|
|
2440
2449
|
const n = U.innerParams.get(t);
|
|
2441
2450
|
if (!n.input)
|
|
2442
|
-
return
|
|
2451
|
+
return Xe(
|
|
2443
2452
|
`The "input" parameter is needed to be set when using returnInputValueOn${En(e)}`
|
|
2444
2453
|
);
|
|
2445
2454
|
const o = ji(t, n);
|
|
@@ -2447,16 +2456,16 @@ const xa = (t) => {
|
|
|
2447
2456
|
}, Sa = (t, e, n) => {
|
|
2448
2457
|
const o = U.innerParams.get(t);
|
|
2449
2458
|
t.disableInput(), Promise.resolve().then(
|
|
2450
|
-
() =>
|
|
2459
|
+
() => Lt(o.inputValidator(e, o.validationMessage))
|
|
2451
2460
|
).then((c) => {
|
|
2452
2461
|
t.enableButtons(), t.enableInput(), c ? t.showValidationMessage(c) : n === "deny" ? Mn(t, e) : Un(t, e);
|
|
2453
2462
|
});
|
|
2454
2463
|
}, Mn = (t, e) => {
|
|
2455
2464
|
const n = U.innerParams.get(t || globalThis);
|
|
2456
|
-
n.showLoaderOnDeny &&
|
|
2457
|
-
() =>
|
|
2465
|
+
n.showLoaderOnDeny && ft(ze()), n.preDeny ? (U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
2466
|
+
() => Lt(n.preDeny(e, n.validationMessage))
|
|
2458
2467
|
).then((i) => {
|
|
2459
|
-
i === !1 ? (t.hideLoading(),
|
|
2468
|
+
i === !1 ? (t.hideLoading(), Ft(t)) : t.closePopup({ isDenied: !0, value: typeof i > "u" ? e : i });
|
|
2460
2469
|
}).catch((i) => cr(t || globalThis, i))) : t.closePopup({ isDenied: !0, value: e });
|
|
2461
2470
|
}, po = (t, e) => {
|
|
2462
2471
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
@@ -2464,46 +2473,46 @@ const xa = (t) => {
|
|
|
2464
2473
|
t.rejectPromise(e);
|
|
2465
2474
|
}, Un = (t, e) => {
|
|
2466
2475
|
const n = U.innerParams.get(t || globalThis);
|
|
2467
|
-
n.showLoaderOnConfirm &&
|
|
2468
|
-
() =>
|
|
2476
|
+
n.showLoaderOnConfirm && ft(), n.preConfirm ? (t.resetValidationMessage(), U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
2477
|
+
() => Lt(n.preConfirm(e, n.validationMessage))
|
|
2469
2478
|
).then((i) => {
|
|
2470
|
-
|
|
2479
|
+
Ae(Yt()) || i === !1 ? (t.hideLoading(), Ft(t)) : po(t, typeof i > "u" ? e : i);
|
|
2471
2480
|
}).catch((i) => cr(t || globalThis, i))) : po(t, e);
|
|
2472
2481
|
}, La = (t, e, n) => {
|
|
2473
2482
|
U.innerParams.get(t).toast ? Ia(t, e, n) : (Ra(e), Oa(e), Fa(t, e, n));
|
|
2474
2483
|
}, Ia = (t, e, n) => {
|
|
2475
2484
|
e.popup.onclick = () => {
|
|
2476
2485
|
const o = U.innerParams.get(t);
|
|
2477
|
-
o && (Pa(o) || o.timer || o.input) || n(
|
|
2486
|
+
o && (Pa(o) || o.timer || o.input) || n(pt.close);
|
|
2478
2487
|
};
|
|
2479
2488
|
}, Pa = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
2480
|
-
let
|
|
2489
|
+
let Wt = !1;
|
|
2481
2490
|
const Ra = (t) => {
|
|
2482
2491
|
t.popup.onmousedown = () => {
|
|
2483
2492
|
t.container.onmouseup = function(e) {
|
|
2484
|
-
t.container.onmouseup = void 0, e.target === t.container && (
|
|
2493
|
+
t.container.onmouseup = void 0, e.target === t.container && (Wt = !0);
|
|
2485
2494
|
};
|
|
2486
2495
|
};
|
|
2487
2496
|
}, Oa = (t) => {
|
|
2488
2497
|
t.container.onmousedown = () => {
|
|
2489
2498
|
t.popup.onmouseup = function(e) {
|
|
2490
|
-
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (
|
|
2499
|
+
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (Wt = !0);
|
|
2491
2500
|
};
|
|
2492
2501
|
};
|
|
2493
2502
|
}, Fa = (t, e, n) => {
|
|
2494
2503
|
e.container.onclick = (o) => {
|
|
2495
2504
|
const i = U.innerParams.get(t);
|
|
2496
|
-
if (
|
|
2497
|
-
|
|
2505
|
+
if (Wt) {
|
|
2506
|
+
Wt = !1;
|
|
2498
2507
|
return;
|
|
2499
2508
|
}
|
|
2500
|
-
o.target === e.container && Gt(i.allowOutsideClick) && n(
|
|
2509
|
+
o.target === e.container && Gt(i.allowOutsideClick) && n(pt.backdrop);
|
|
2501
2510
|
};
|
|
2502
2511
|
}, Ba = (t) => typeof t == "object" && t.jquery, mo = (t) => t instanceof Element || Ba(t), Ma = (t) => {
|
|
2503
2512
|
const e = {};
|
|
2504
2513
|
return typeof t[0] == "object" && !mo(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
2505
2514
|
const i = t[o];
|
|
2506
|
-
typeof i == "string" || mo(i) ? e[n] = i : i !== void 0 &&
|
|
2515
|
+
typeof i == "string" || mo(i) ? e[n] = i : i !== void 0 && Xe(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`);
|
|
2507
2516
|
}), e;
|
|
2508
2517
|
};
|
|
2509
2518
|
function Ua(...t) {
|
|
@@ -2556,21 +2565,21 @@ const Va = (t) => {
|
|
|
2556
2565
|
clickCancel: Qi,
|
|
2557
2566
|
clickConfirm: Qo,
|
|
2558
2567
|
clickDeny: Zi,
|
|
2559
|
-
enableLoading:
|
|
2568
|
+
enableLoading: ft,
|
|
2560
2569
|
fire: Ua,
|
|
2561
|
-
getActions:
|
|
2562
|
-
getCancelButton:
|
|
2570
|
+
getActions: Rt,
|
|
2571
|
+
getCancelButton: Ye,
|
|
2563
2572
|
getCloseButton: Ln,
|
|
2564
2573
|
getConfirmButton: Ie,
|
|
2565
2574
|
getContainer: se,
|
|
2566
2575
|
getDenyButton: ze,
|
|
2567
2576
|
getFocusableElements: In,
|
|
2568
2577
|
getFooter: jo,
|
|
2569
|
-
getHtmlContainer:
|
|
2570
|
-
getIcon:
|
|
2578
|
+
getHtmlContainer: Vt,
|
|
2579
|
+
getIcon: Pt,
|
|
2571
2580
|
getImage: $o,
|
|
2572
2581
|
getInputLabel: ks,
|
|
2573
|
-
getLoader:
|
|
2582
|
+
getLoader: ht,
|
|
2574
2583
|
getPopup: V,
|
|
2575
2584
|
getTimerLeft: Na,
|
|
2576
2585
|
getTimerProgressBar: Jt,
|
|
@@ -2578,19 +2587,19 @@ const Va = (t) => {
|
|
|
2578
2587
|
getValidationMessage: Yt,
|
|
2579
2588
|
increaseTimer: Ha,
|
|
2580
2589
|
isDeprecatedParameter: gn,
|
|
2581
|
-
isLoading:
|
|
2590
|
+
isLoading: As,
|
|
2582
2591
|
isTimerRunning: ja,
|
|
2583
2592
|
isUpdatableParameter: Uo,
|
|
2584
2593
|
isValidParameter: Mo,
|
|
2585
2594
|
isVisible: Xi,
|
|
2586
2595
|
mixin: Da,
|
|
2587
2596
|
resumeTimer: ur,
|
|
2588
|
-
showLoading:
|
|
2597
|
+
showLoading: ft,
|
|
2589
2598
|
stopTimer: lr,
|
|
2590
2599
|
toggleTimer: $a
|
|
2591
2600
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2592
2601
|
let wn;
|
|
2593
|
-
class
|
|
2602
|
+
class mt {
|
|
2594
2603
|
constructor(...e) {
|
|
2595
2604
|
if (typeof window > "u")
|
|
2596
2605
|
return;
|
|
@@ -2626,21 +2635,21 @@ const qa = (t, e, n) => new Promise((o, i) => {
|
|
|
2626
2635
|
const c = (x) => {
|
|
2627
2636
|
t.closePopup({ isDismissed: !0, dismiss: x });
|
|
2628
2637
|
};
|
|
2629
|
-
|
|
2638
|
+
St.swalPromiseResolve.set(t, o), St.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => Ca(t), e.denyButton.onclick = () => Ea(t), e.cancelButton.onclick = () => Ta(t, c), e.closeButton.onclick = () => c(pt.close), La(t, e, c), ea(t, B, n, c), Hi(t, n), Mi(n), Ya(B, n, c), Ja(e, n), setTimeout(() => {
|
|
2630
2639
|
e.container.scrollTop = 0;
|
|
2631
2640
|
});
|
|
2632
2641
|
}), Ka = (t, e) => {
|
|
2633
|
-
const n = mi(t), o = Object.assign({},
|
|
2634
|
-
return o.showClass = Object.assign({},
|
|
2642
|
+
const n = mi(t), o = Object.assign({}, ct, e, n, t);
|
|
2643
|
+
return o.showClass = Object.assign({}, ct.showClass, o.showClass), o.hideClass = Object.assign({}, ct.hideClass, o.hideClass), o;
|
|
2635
2644
|
}, Ga = (t) => {
|
|
2636
2645
|
const e = {
|
|
2637
2646
|
popup: V(),
|
|
2638
2647
|
container: se(),
|
|
2639
|
-
actions:
|
|
2648
|
+
actions: Rt(),
|
|
2640
2649
|
confirmButton: Ie(),
|
|
2641
2650
|
denyButton: ze(),
|
|
2642
|
-
cancelButton:
|
|
2643
|
-
loader:
|
|
2651
|
+
cancelButton: Ye(),
|
|
2652
|
+
loader: ht(),
|
|
2644
2653
|
closeButton: Ln(),
|
|
2645
2654
|
validationMessage: Yt(),
|
|
2646
2655
|
progressSteps: Ho()
|
|
@@ -2659,21 +2668,21 @@ const qa = (t, e, n) => new Promise((o, i) => {
|
|
|
2659
2668
|
return Za();
|
|
2660
2669
|
Xa(t, e) || vn(e, -1, 1);
|
|
2661
2670
|
}
|
|
2662
|
-
}, Xa = (t, e) => e.focusDeny &&
|
|
2671
|
+
}, 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
2672
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
2664
2673
|
};
|
|
2665
|
-
Object.assign(
|
|
2666
|
-
Object.assign(
|
|
2674
|
+
Object.assign(mt.prototype, ir);
|
|
2675
|
+
Object.assign(mt, Wa);
|
|
2667
2676
|
Object.keys(ir).forEach((t) => {
|
|
2668
|
-
|
|
2677
|
+
mt[t] = function(...e) {
|
|
2669
2678
|
if (wn)
|
|
2670
2679
|
return wn[t](...e);
|
|
2671
2680
|
};
|
|
2672
2681
|
});
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2682
|
+
mt.DismissReason = pt;
|
|
2683
|
+
mt.version = "11.4.8";
|
|
2684
|
+
const ut = mt;
|
|
2685
|
+
ut.default = ut;
|
|
2677
2686
|
/*! @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
2687
|
const {
|
|
2679
2688
|
entries: dr,
|
|
@@ -2688,7 +2697,7 @@ let {
|
|
|
2688
2697
|
create: hr
|
|
2689
2698
|
} = Object, {
|
|
2690
2699
|
apply: kn,
|
|
2691
|
-
construct:
|
|
2700
|
+
construct: _n
|
|
2692
2701
|
} = typeof Reflect < "u" && Reflect;
|
|
2693
2702
|
ue || (ue = function(e) {
|
|
2694
2703
|
return e;
|
|
@@ -2699,10 +2708,10 @@ Pe || (Pe = function(e) {
|
|
|
2699
2708
|
kn || (kn = function(e, n, o) {
|
|
2700
2709
|
return e.apply(n, o);
|
|
2701
2710
|
});
|
|
2702
|
-
|
|
2711
|
+
_n || (_n = function(e, n) {
|
|
2703
2712
|
return new e(...n);
|
|
2704
2713
|
});
|
|
2705
|
-
const
|
|
2714
|
+
const Nt = Te(Array.prototype.forEach), vo = Te(Array.prototype.pop), vt = Te(Array.prototype.push), jt = Te(String.prototype.toLowerCase), dn = Te(String.prototype.toString), tc = Te(String.prototype.match), yt = Te(String.prototype.replace), nc = Te(String.prototype.indexOf), oc = Te(String.prototype.trim), we = Te(RegExp.prototype.test), wt = rc(TypeError);
|
|
2706
2715
|
function Te(t) {
|
|
2707
2716
|
return function(e) {
|
|
2708
2717
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
@@ -2714,11 +2723,11 @@ function rc(t) {
|
|
|
2714
2723
|
return function() {
|
|
2715
2724
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
2716
2725
|
n[o] = arguments[o];
|
|
2717
|
-
return
|
|
2726
|
+
return _n(t, n);
|
|
2718
2727
|
};
|
|
2719
2728
|
}
|
|
2720
2729
|
function M(t, e) {
|
|
2721
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
2730
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : jt;
|
|
2722
2731
|
bo && bo(t, null);
|
|
2723
2732
|
let o = e.length;
|
|
2724
2733
|
for (; o--; ) {
|
|
@@ -2731,13 +2740,13 @@ function M(t, e) {
|
|
|
2731
2740
|
}
|
|
2732
2741
|
return t;
|
|
2733
2742
|
}
|
|
2734
|
-
function
|
|
2743
|
+
function it(t) {
|
|
2735
2744
|
const e = hr(null);
|
|
2736
2745
|
for (const [n, o] of dr(t))
|
|
2737
2746
|
fr(t, n) !== void 0 && (e[n] = o);
|
|
2738
2747
|
return e;
|
|
2739
2748
|
}
|
|
2740
|
-
function
|
|
2749
|
+
function $t(t, e) {
|
|
2741
2750
|
for (; t !== null; ) {
|
|
2742
2751
|
const o = fr(t, e);
|
|
2743
2752
|
if (o) {
|
|
@@ -2753,14 +2762,14 @@ function Nt(t, e) {
|
|
|
2753
2762
|
}
|
|
2754
2763
|
return n;
|
|
2755
2764
|
}
|
|
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"]),
|
|
2765
|
+
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"]), Ht = 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
2766
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2758
2767
|
// eslint-disable-line no-useless-escape
|
|
2759
2768
|
), fc = Pe(/^(?:\w+script|data):/i), hc = Pe(
|
|
2760
2769
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2761
2770
|
// eslint-disable-line no-control-regex
|
|
2762
2771
|
), mr = Pe(/^html$/i);
|
|
2763
|
-
var
|
|
2772
|
+
var Ao = /* @__PURE__ */ Object.freeze({
|
|
2764
2773
|
__proto__: null,
|
|
2765
2774
|
MUSTACHE_EXPR: ac,
|
|
2766
2775
|
ERB_EXPR: cc,
|
|
@@ -2812,7 +2821,7 @@ function gr() {
|
|
|
2812
2821
|
HTMLFormElement: Q,
|
|
2813
2822
|
DOMParser: Le,
|
|
2814
2823
|
trustedTypes: z
|
|
2815
|
-
} = t, Be = u.prototype,
|
|
2824
|
+
} = t, Be = u.prototype, Ze = $t(Be, "cloneNode"), ve = $t(Be, "nextSibling"), Qe = $t(Be, "childNodes"), de = $t(Be, "parentNode");
|
|
2816
2825
|
if (typeof x == "function") {
|
|
2817
2826
|
const S = n.createElement("template");
|
|
2818
2827
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
@@ -2824,7 +2833,7 @@ function gr() {
|
|
|
2824
2833
|
createDocumentFragment: k,
|
|
2825
2834
|
getElementsByTagName: I
|
|
2826
2835
|
} = n, {
|
|
2827
|
-
importNode:
|
|
2836
|
+
importNode: _
|
|
2828
2837
|
} = o;
|
|
2829
2838
|
let w = {};
|
|
2830
2839
|
e.isSupported = typeof dr == "function" && typeof de == "function" && X && X.createHTMLDocument !== void 0;
|
|
@@ -2836,13 +2845,13 @@ function gr() {
|
|
|
2836
2845
|
ARIA_ATTR: q,
|
|
2837
2846
|
IS_SCRIPT_OR_DATA: Y,
|
|
2838
2847
|
ATTR_WHITESPACE: G
|
|
2839
|
-
} =
|
|
2848
|
+
} = Ao;
|
|
2840
2849
|
let {
|
|
2841
2850
|
IS_ALLOWED_URI: ae
|
|
2842
|
-
} =
|
|
2851
|
+
} = Ao, P = null;
|
|
2843
2852
|
const fe = M({}, [...yo, ...fn, ...hn, ...pn, ...wo]);
|
|
2844
2853
|
let r = null;
|
|
2845
|
-
const a = M({}, [...ko, ...mn, ...
|
|
2854
|
+
const a = M({}, [...ko, ...mn, ..._o, ...Ht]);
|
|
2846
2855
|
let d = Object.seal(hr(null, {
|
|
2847
2856
|
tagNameCheck: {
|
|
2848
2857
|
writable: !0,
|
|
@@ -2862,63 +2871,63 @@ function gr() {
|
|
|
2862
2871
|
enumerable: !0,
|
|
2863
2872
|
value: !1
|
|
2864
2873
|
}
|
|
2865
|
-
})), g = null, h = null,
|
|
2874
|
+
})), 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
2875
|
const br = "user-content-";
|
|
2867
|
-
let Qt = !0,
|
|
2876
|
+
let Qt = !0, gt = !1, et = {}, tt = null;
|
|
2868
2877
|
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
2878
|
let Hn = null;
|
|
2870
2879
|
const jn = M({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2871
2880
|
let en = null;
|
|
2872
|
-
const zn = M({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
2873
|
-
let
|
|
2874
|
-
const vr = M({}, [
|
|
2881
|
+
const zn = M({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Bt = "http://www.w3.org/1998/Math/MathML", Mt = "http://www.w3.org/2000/svg", Me = "http://www.w3.org/1999/xhtml";
|
|
2882
|
+
let nt = Me, tn = !1, nn = null;
|
|
2883
|
+
const vr = M({}, [Bt, Mt, Me], dn);
|
|
2875
2884
|
let Ve = null;
|
|
2876
2885
|
const yr = ["application/xhtml+xml", "text/html"], wr = "text/html";
|
|
2877
|
-
let Z = null,
|
|
2886
|
+
let Z = null, ot = null;
|
|
2878
2887
|
const kr = n.createElement("form"), Vn = function(s) {
|
|
2879
2888
|
return s instanceof RegExp || s instanceof Function;
|
|
2880
2889
|
}, on = function() {
|
|
2881
2890
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2882
|
-
if (!(
|
|
2883
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
2884
|
-
yr.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ve = wr : Ve = s.PARSER_MEDIA_TYPE, Z = Ve === "application/xhtml+xml" ? dn :
|
|
2885
|
-
|
|
2891
|
+
if (!(ot && ot === s)) {
|
|
2892
|
+
if ((!s || typeof s != "object") && (s = {}), s = it(s), Ve = // eslint-disable-next-line unicorn/prefer-includes
|
|
2893
|
+
yr.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ve = wr : Ve = s.PARSER_MEDIA_TYPE, Z = Ve === "application/xhtml+xml" ? dn : jt, 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(
|
|
2894
|
+
it(zn),
|
|
2886
2895
|
// eslint-disable-line indent
|
|
2887
2896
|
s.ADD_URI_SAFE_ATTR,
|
|
2888
2897
|
// eslint-disable-line indent
|
|
2889
2898
|
Z
|
|
2890
2899
|
// eslint-disable-line indent
|
|
2891
2900
|
) : zn, Hn = "ADD_DATA_URI_TAGS" in s ? M(
|
|
2892
|
-
|
|
2901
|
+
it(jn),
|
|
2893
2902
|
// eslint-disable-line indent
|
|
2894
2903
|
s.ADD_DATA_URI_TAGS,
|
|
2895
2904
|
// eslint-disable-line indent
|
|
2896
2905
|
Z
|
|
2897
2906
|
// eslint-disable-line indent
|
|
2898
|
-
) : jn,
|
|
2907
|
+
) : jn, tt = "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) : {}, et = "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, gt = s.IN_PLACE || !1, ae = s.ALLOWED_URI_REGEXP || pr, nt = 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), et && (P = M({}, [...wo]), r = [], et.html === !0 && (M(P, yo), M(r, ko)), et.svg === !0 && (M(P, fn), M(r, mn), M(r, Ht)), et.svgFilters === !0 && (M(P, hn), M(r, mn), M(r, Ht)), et.mathMl === !0 && (M(P, pn), M(r, _o), M(r, Ht))), s.ADD_TAGS && (P === fe && (P = it(P)), M(P, s.ADD_TAGS, Z)), s.ADD_ATTR && (r === a && (r = it(r)), M(r, s.ADD_ATTR, Z)), s.ADD_URI_SAFE_ATTR && M(en, s.ADD_URI_SAFE_ATTR, Z), s.FORBID_CONTENTS && (tt === $n && (tt = it(tt)), M(tt, 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
2908
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2900
|
-
throw
|
|
2909
|
+
throw wt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2901
2910
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2902
|
-
throw
|
|
2911
|
+
throw wt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2903
2912
|
D = s.TRUSTED_TYPES_POLICY, ye = D.createHTML("");
|
|
2904
2913
|
} else
|
|
2905
2914
|
D === void 0 && (D = mc(z, i)), D !== null && typeof ye == "string" && (ye = D.createHTML(""));
|
|
2906
|
-
ue && ue(s),
|
|
2915
|
+
ue && ue(s), ot = s;
|
|
2907
2916
|
}
|
|
2908
|
-
}, Wn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), qn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]),
|
|
2909
|
-
M(
|
|
2917
|
+
}, Wn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), qn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), _r = M({}, ["title", "style", "font", "a", "script"]), Ut = M({}, fn);
|
|
2918
|
+
M(Ut, hn), M(Ut, sc);
|
|
2910
2919
|
const rn = M({}, pn);
|
|
2911
2920
|
M(rn, ic);
|
|
2912
|
-
const
|
|
2921
|
+
const Ar = function(s) {
|
|
2913
2922
|
let v = de(s);
|
|
2914
2923
|
(!v || !v.tagName) && (v = {
|
|
2915
|
-
namespaceURI:
|
|
2924
|
+
namespaceURI: nt,
|
|
2916
2925
|
tagName: "template"
|
|
2917
2926
|
});
|
|
2918
|
-
const T =
|
|
2919
|
-
return nn[s.namespaceURI] ? s.namespaceURI ===
|
|
2927
|
+
const T = jt(s.tagName), K = jt(v.tagName);
|
|
2928
|
+
return nn[s.namespaceURI] ? s.namespaceURI === Mt ? v.namespaceURI === Me ? T === "svg" : v.namespaceURI === Bt ? T === "svg" && (K === "annotation-xml" || Wn[K]) : !!Ut[T] : s.namespaceURI === Bt ? v.namespaceURI === Me ? T === "math" : v.namespaceURI === Mt ? T === "math" && qn[K] : !!rn[T] : s.namespaceURI === Me ? v.namespaceURI === Mt && !qn[K] || v.namespaceURI === Bt && !Wn[K] ? !1 : !rn[T] && (_r[T] || !Ut[T]) : !!(Ve === "application/xhtml+xml" && nn[s.namespaceURI]) : !1;
|
|
2920
2929
|
}, We = function(s) {
|
|
2921
|
-
|
|
2930
|
+
vt(e.removed, {
|
|
2922
2931
|
element: s
|
|
2923
2932
|
});
|
|
2924
2933
|
try {
|
|
@@ -2928,12 +2937,12 @@ function gr() {
|
|
|
2928
2937
|
}
|
|
2929
2938
|
}, sn = function(s, v) {
|
|
2930
2939
|
try {
|
|
2931
|
-
|
|
2940
|
+
vt(e.removed, {
|
|
2932
2941
|
attribute: v.getAttributeNode(s),
|
|
2933
2942
|
from: v
|
|
2934
2943
|
});
|
|
2935
2944
|
} catch {
|
|
2936
|
-
|
|
2945
|
+
vt(e.removed, {
|
|
2937
2946
|
attribute: null,
|
|
2938
2947
|
from: v
|
|
2939
2948
|
});
|
|
@@ -2957,22 +2966,22 @@ function gr() {
|
|
|
2957
2966
|
const oe = tc(s, /^[\r\n\t ]+/);
|
|
2958
2967
|
T = oe && oe[0];
|
|
2959
2968
|
}
|
|
2960
|
-
Ve === "application/xhtml+xml" &&
|
|
2969
|
+
Ve === "application/xhtml+xml" && nt === Me && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
2961
2970
|
const K = D ? D.createHTML(s) : s;
|
|
2962
|
-
if (
|
|
2971
|
+
if (nt === Me)
|
|
2963
2972
|
try {
|
|
2964
2973
|
v = new Le().parseFromString(K, Ve);
|
|
2965
2974
|
} catch {
|
|
2966
2975
|
}
|
|
2967
2976
|
if (!v || !v.documentElement) {
|
|
2968
|
-
v = X.createDocument(
|
|
2977
|
+
v = X.createDocument(nt, "template", null);
|
|
2969
2978
|
try {
|
|
2970
2979
|
v.documentElement.innerHTML = tn ? ye : K;
|
|
2971
2980
|
} catch {
|
|
2972
2981
|
}
|
|
2973
2982
|
}
|
|
2974
2983
|
const ne = v.body || v.documentElement;
|
|
2975
|
-
return s && T && ne.insertBefore(n.createTextNode(T), ne.childNodes[0] || null),
|
|
2984
|
+
return s && T && ne.insertBefore(n.createTextNode(T), ne.childNodes[0] || null), nt === Me ? I.call(v, R ? "html" : "body")[0] : R ? v.documentElement : ne;
|
|
2976
2985
|
}, Gn = function(s) {
|
|
2977
2986
|
return f.call(
|
|
2978
2987
|
s.ownerDocument || s,
|
|
@@ -2986,8 +2995,8 @@ function gr() {
|
|
|
2986
2995
|
}, Yn = function(s) {
|
|
2987
2996
|
return typeof L == "function" && s instanceof L;
|
|
2988
2997
|
}, Ue = function(s, v, T) {
|
|
2989
|
-
w[s] &&
|
|
2990
|
-
K.call(e, v, T,
|
|
2998
|
+
w[s] && Nt(w[s], (K) => {
|
|
2999
|
+
K.call(e, v, T, ot);
|
|
2991
3000
|
});
|
|
2992
3001
|
}, Jn = function(s) {
|
|
2993
3002
|
let v = null;
|
|
@@ -3002,26 +3011,26 @@ function gr() {
|
|
|
3002
3011
|
if (!P[T] || g[T]) {
|
|
3003
3012
|
if (!g[T] && Zn(T) && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, T) || d.tagNameCheck instanceof Function && d.tagNameCheck(T)))
|
|
3004
3013
|
return !1;
|
|
3005
|
-
if (Qt && !
|
|
3006
|
-
const K = de(s) || s.parentNode, ne =
|
|
3014
|
+
if (Qt && !tt[T]) {
|
|
3015
|
+
const K = de(s) || s.parentNode, ne = Qe(s) || s.childNodes;
|
|
3007
3016
|
if (ne && K) {
|
|
3008
3017
|
const oe = ne.length;
|
|
3009
3018
|
for (let pe = oe - 1; pe >= 0; --pe)
|
|
3010
|
-
K.insertBefore(
|
|
3019
|
+
K.insertBefore(Ze(ne[pe], !0), ve(s));
|
|
3011
3020
|
}
|
|
3012
3021
|
}
|
|
3013
3022
|
return We(s), !0;
|
|
3014
3023
|
}
|
|
3015
|
-
return s instanceof u && !
|
|
3016
|
-
v =
|
|
3017
|
-
}), s.textContent !== v && (
|
|
3024
|
+
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, Nt([y, O, p], (K) => {
|
|
3025
|
+
v = yt(v, K, " ");
|
|
3026
|
+
}), s.textContent !== v && (vt(e.removed, {
|
|
3018
3027
|
element: s.cloneNode()
|
|
3019
3028
|
}), s.textContent = v)), Ue("afterSanitizeElements", s, null), !1);
|
|
3020
3029
|
}, Xn = function(s, v, T) {
|
|
3021
3030
|
if (Dn && (v === "id" || v === "name") && (T in n || T in kr))
|
|
3022
3031
|
return !1;
|
|
3023
3032
|
if (!(m && !h[v] && we(F, v))) {
|
|
3024
|
-
if (!(
|
|
3033
|
+
if (!(A && we(q, v))) {
|
|
3025
3034
|
if (!r[v] || h[v]) {
|
|
3026
3035
|
if (
|
|
3027
3036
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -3033,9 +3042,9 @@ function gr() {
|
|
|
3033
3042
|
)
|
|
3034
3043
|
return !1;
|
|
3035
3044
|
} else if (!en[v]) {
|
|
3036
|
-
if (!we(ae,
|
|
3045
|
+
if (!we(ae, yt(T, G, ""))) {
|
|
3037
3046
|
if (!((v === "src" || v === "xlink:href" || v === "href") && s !== "script" && nc(T, "data:") === 0 && Hn[s])) {
|
|
3038
|
-
if (!(b && !we(Y,
|
|
3047
|
+
if (!(b && !we(Y, yt(T, G, "")))) {
|
|
3039
3048
|
if (T)
|
|
3040
3049
|
return !1;
|
|
3041
3050
|
}
|
|
@@ -3066,21 +3075,21 @@ function gr() {
|
|
|
3066
3075
|
name: oe,
|
|
3067
3076
|
namespaceURI: pe,
|
|
3068
3077
|
value: qe
|
|
3069
|
-
} = ne,
|
|
3078
|
+
} = ne, bt = Z(oe);
|
|
3070
3079
|
let me = oe === "value" ? qe : oc(qe);
|
|
3071
|
-
if (T.attrName =
|
|
3080
|
+
if (T.attrName = bt, 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
3081
|
continue;
|
|
3073
3082
|
if (!E && we(/\/>/i, me)) {
|
|
3074
3083
|
sn(oe, s);
|
|
3075
3084
|
continue;
|
|
3076
3085
|
}
|
|
3077
|
-
C &&
|
|
3078
|
-
me =
|
|
3086
|
+
C && Nt([y, O, p], (to) => {
|
|
3087
|
+
me = yt(me, to, " ");
|
|
3079
3088
|
});
|
|
3080
3089
|
const eo = Z(s.nodeName);
|
|
3081
|
-
if (Xn(eo,
|
|
3082
|
-
if (Nn && (
|
|
3083
|
-
switch (z.getAttributeType(eo,
|
|
3090
|
+
if (Xn(eo, bt, me)) {
|
|
3091
|
+
if (Nn && (bt === "id" || bt === "name") && (sn(oe, s), me = br + me), D && typeof z == "object" && typeof z.getAttributeType == "function" && !pe)
|
|
3092
|
+
switch (z.getAttributeType(eo, bt)) {
|
|
3084
3093
|
case "TrustedHTML": {
|
|
3085
3094
|
me = D.createHTML(me);
|
|
3086
3095
|
break;
|
|
@@ -3109,16 +3118,16 @@ function gr() {
|
|
|
3109
3118
|
if (tn = !S, tn && (S = "<!-->"), typeof S != "string" && !Yn(S))
|
|
3110
3119
|
if (typeof S.toString == "function") {
|
|
3111
3120
|
if (S = S.toString(), typeof S != "string")
|
|
3112
|
-
throw
|
|
3121
|
+
throw wt("dirty is not a string, aborting");
|
|
3113
3122
|
} else
|
|
3114
|
-
throw
|
|
3123
|
+
throw wt("toString is not a function");
|
|
3115
3124
|
if (!e.isSupported)
|
|
3116
3125
|
return S;
|
|
3117
|
-
if (N || on(s), e.removed = [], typeof S == "string" && (
|
|
3126
|
+
if (N || on(s), e.removed = [], typeof S == "string" && (gt = !1), gt) {
|
|
3118
3127
|
if (S.nodeName) {
|
|
3119
3128
|
const qe = Z(S.nodeName);
|
|
3120
3129
|
if (!P[qe] || g[qe])
|
|
3121
|
-
throw
|
|
3130
|
+
throw wt("root node is forbidden and cannot be sanitized in-place");
|
|
3122
3131
|
}
|
|
3123
3132
|
} else if (S instanceof L)
|
|
3124
3133
|
v = Kn("<!---->"), T = v.ownerDocument.importNode(S, !0), T.nodeType === 1 && T.nodeName === "BODY" || T.nodeName === "HTML" ? v = T : v.appendChild(T);
|
|
@@ -3130,10 +3139,10 @@ function gr() {
|
|
|
3130
3139
|
return ce ? null : Re ? ye : "";
|
|
3131
3140
|
}
|
|
3132
3141
|
v && he && We(v.firstChild);
|
|
3133
|
-
const oe = Gn(
|
|
3142
|
+
const oe = Gn(gt ? S : v);
|
|
3134
3143
|
for (; K = oe.nextNode(); )
|
|
3135
3144
|
Jn(K) || (K.content instanceof c && Cr(K.content), Qn(K));
|
|
3136
|
-
if (
|
|
3145
|
+
if (gt)
|
|
3137
3146
|
return S;
|
|
3138
3147
|
if (ce) {
|
|
3139
3148
|
if (ee)
|
|
@@ -3141,24 +3150,24 @@ function gr() {
|
|
|
3141
3150
|
ne.appendChild(v.firstChild);
|
|
3142
3151
|
else
|
|
3143
3152
|
ne = v;
|
|
3144
|
-
return (r.shadowroot || r.shadowrootmode) && (ne =
|
|
3153
|
+
return (r.shadowroot || r.shadowrootmode) && (ne = _.call(o, ne, !0)), ne;
|
|
3145
3154
|
}
|
|
3146
3155
|
let pe = R ? v.outerHTML : v.innerHTML;
|
|
3147
3156
|
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 + `>
|
|
3148
|
-
` + pe), C &&
|
|
3149
|
-
pe =
|
|
3157
|
+
` + pe), C && Nt([y, O, p], (qe) => {
|
|
3158
|
+
pe = yt(pe, qe, " ");
|
|
3150
3159
|
}), D && Re ? D.createHTML(pe) : pe;
|
|
3151
3160
|
}, e.setConfig = function() {
|
|
3152
3161
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3153
3162
|
on(S), N = !0;
|
|
3154
3163
|
}, e.clearConfig = function() {
|
|
3155
|
-
|
|
3164
|
+
ot = null, N = !1;
|
|
3156
3165
|
}, e.isValidAttribute = function(S, s, v) {
|
|
3157
|
-
|
|
3166
|
+
ot || on({});
|
|
3158
3167
|
const T = Z(S), K = Z(s);
|
|
3159
3168
|
return Xn(T, K, v);
|
|
3160
3169
|
}, e.addHook = function(S, s) {
|
|
3161
|
-
typeof s == "function" && (w[S] = w[S] || [],
|
|
3170
|
+
typeof s == "function" && (w[S] = w[S] || [], vt(w[S], s));
|
|
3162
3171
|
}, e.removeHook = function(S) {
|
|
3163
3172
|
if (w[S])
|
|
3164
3173
|
return vo(w[S]);
|
|
@@ -3171,11 +3180,11 @@ function gr() {
|
|
|
3171
3180
|
var xo = gr();
|
|
3172
3181
|
class gc {
|
|
3173
3182
|
get IsVisible() {
|
|
3174
|
-
return
|
|
3183
|
+
return ut.isVisible();
|
|
3175
3184
|
}
|
|
3176
3185
|
async ConfirmAsync(e) {
|
|
3177
3186
|
return new Promise((n) => {
|
|
3178
|
-
|
|
3187
|
+
ut.fire({
|
|
3179
3188
|
showCancelButton: !0,
|
|
3180
3189
|
allowEscapeKey: !1,
|
|
3181
3190
|
allowOutsideClick: !1,
|
|
@@ -3195,7 +3204,7 @@ class gc {
|
|
|
3195
3204
|
return Array.isArray(e.text) ? o = `<div style="max-height: 50vh; overflow: auto">
|
|
3196
3205
|
${e.text.join("<br />")}
|
|
3197
3206
|
</div>` : o = e.text, new Promise((i) => {
|
|
3198
|
-
|
|
3207
|
+
ut.fire({
|
|
3199
3208
|
allowEscapeKey: !1,
|
|
3200
3209
|
allowOutsideClick: !1,
|
|
3201
3210
|
icon: n,
|
|
@@ -3227,23 +3236,23 @@ const bc = new gc(), vc = () => bc, yc = ["data-cor"], wc = /* @__PURE__ */ $e({
|
|
|
3227
3236
|
const x = n[0], L = x === "?" ? 0 : (x.charCodeAt(0) - 64) % 19;
|
|
3228
3237
|
return Math.max(L, 0);
|
|
3229
3238
|
}
|
|
3230
|
-
return (x, L) => (J(),
|
|
3239
|
+
return (x, L) => (J(), _e("div", {
|
|
3231
3240
|
id: "sf-header-avatar",
|
|
3232
3241
|
"data-cor": c(),
|
|
3233
3242
|
onClick: o
|
|
3234
|
-
},
|
|
3243
|
+
}, qt(He(n)), 9, yc));
|
|
3235
3244
|
}
|
|
3236
|
-
}), kc = {},
|
|
3245
|
+
}), kc = {}, _c = {
|
|
3237
3246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3238
3247
|
height: "48",
|
|
3239
3248
|
viewBox: "0 -960 960 960",
|
|
3240
3249
|
width: "48",
|
|
3241
3250
|
class: "sf-svg-icon"
|
|
3242
|
-
},
|
|
3243
|
-
|
|
3251
|
+
}, 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 = [
|
|
3252
|
+
Ac
|
|
3244
3253
|
];
|
|
3245
3254
|
function Cc(t, e) {
|
|
3246
|
-
return J(),
|
|
3255
|
+
return J(), _e("svg", _c, xc);
|
|
3247
3256
|
}
|
|
3248
3257
|
const Ec = /* @__PURE__ */ Po(kc, [["render", Cc]]);
|
|
3249
3258
|
class Tc {
|
|
@@ -3272,22 +3281,22 @@ class Tc {
|
|
|
3272
3281
|
this.EnableLightMode();
|
|
3273
3282
|
}
|
|
3274
3283
|
}
|
|
3275
|
-
const
|
|
3284
|
+
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
3285
|
Sc
|
|
3277
3286
|
], Ic = /* @__PURE__ */ $e({
|
|
3278
3287
|
__name: "ThemeToggle",
|
|
3279
3288
|
setup(t) {
|
|
3280
|
-
return (e, n) => (J(),
|
|
3289
|
+
return (e, n) => (J(), _e("button", {
|
|
3281
3290
|
id: "sf-theme-toggle",
|
|
3282
3291
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
3283
|
-
(...o) => He(
|
|
3292
|
+
(...o) => He(An).Toggle && He(An).Toggle(...o))
|
|
3284
3293
|
}, Lc));
|
|
3285
3294
|
}
|
|
3286
3295
|
}), 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
3296
|
__name: "Layout",
|
|
3288
3297
|
setup(t) {
|
|
3289
3298
|
const e = Lo();
|
|
3290
|
-
return (n, o) => (J(),
|
|
3299
|
+
return (n, o) => (J(), _e("div", Pc, [
|
|
3291
3300
|
j("header", null, [
|
|
3292
3301
|
j("div", {
|
|
3293
3302
|
class: ke([
|
|
@@ -3297,21 +3306,21 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3297
3306
|
onClick: o[0] || (o[0] = (i) => He(e).Toggle())
|
|
3298
3307
|
}, [
|
|
3299
3308
|
Rc,
|
|
3300
|
-
|
|
3309
|
+
kt(Ec)
|
|
3301
3310
|
], 2),
|
|
3302
3311
|
j("div", Oc, [
|
|
3303
3312
|
De(n.$slots, "title")
|
|
3304
3313
|
]),
|
|
3305
3314
|
De(n.$slots, "action"),
|
|
3306
|
-
|
|
3307
|
-
|
|
3315
|
+
kt(Ic),
|
|
3316
|
+
kt(wc)
|
|
3308
3317
|
]),
|
|
3309
3318
|
j("nav", {
|
|
3310
3319
|
class: ke({ visible: He(e).IsVisible })
|
|
3311
3320
|
}, [
|
|
3312
3321
|
j("div", Fc, [
|
|
3313
3322
|
Bc,
|
|
3314
|
-
|
|
3323
|
+
kt(zt, {
|
|
3315
3324
|
icone: "close",
|
|
3316
3325
|
button: "",
|
|
3317
3326
|
onClick: o[1] || (o[1] = (i) => He(e).Close())
|
|
@@ -3348,7 +3357,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3348
3357
|
}
|
|
3349
3358
|
return (i, c) => {
|
|
3350
3359
|
const x = Eo("router-link");
|
|
3351
|
-
return J(),
|
|
3360
|
+
return J(), dt(x, {
|
|
3352
3361
|
to: e.href,
|
|
3353
3362
|
custom: ""
|
|
3354
3363
|
}, {
|
|
@@ -3359,12 +3368,12 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3359
3368
|
"data-active": e.exact ? H : W,
|
|
3360
3369
|
onClick: (Q) => o(Q, u)
|
|
3361
3370
|
}, [
|
|
3362
|
-
e.icon ? (J(),
|
|
3371
|
+
e.icon ? (J(), dt(zt, {
|
|
3363
3372
|
key: 0,
|
|
3364
3373
|
icone: e.icon,
|
|
3365
3374
|
"button-props": { tabindex: -1 }
|
|
3366
3375
|
}, null, 8, ["icone"])) : Cn("", !0),
|
|
3367
|
-
j("span", $c,
|
|
3376
|
+
j("span", $c, qt(e.text), 1)
|
|
3368
3377
|
], 8, Nc)
|
|
3369
3378
|
]),
|
|
3370
3379
|
_: 1
|
|
@@ -3374,7 +3383,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3374
3383
|
}), Hc = /* @__PURE__ */ $e({
|
|
3375
3384
|
__name: "ScrollToTop",
|
|
3376
3385
|
setup(t) {
|
|
3377
|
-
const e =
|
|
3386
|
+
const e = xt(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
3378
3387
|
let o = null;
|
|
3379
3388
|
function i() {
|
|
3380
3389
|
o == null || o.scrollTo(0, 0);
|
|
@@ -3384,7 +3393,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3384
3393
|
o = ((c = document.getElementById(n)) == null ? void 0 : c.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
3385
3394
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
3386
3395
|
});
|
|
3387
|
-
}), (c, x) => (J(),
|
|
3396
|
+
}), (c, x) => (J(), _e("button", {
|
|
3388
3397
|
id: n,
|
|
3389
3398
|
class: ke(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
3390
3399
|
onClick: i
|
|
@@ -3402,18 +3411,18 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3402
3411
|
setup(t) {
|
|
3403
3412
|
const e = t;
|
|
3404
3413
|
function n() {
|
|
3405
|
-
return new
|
|
3414
|
+
return new at("sf-content").AddClass(e.class, !!e.class).Build();
|
|
3406
3415
|
}
|
|
3407
3416
|
function o() {
|
|
3408
|
-
return new
|
|
3417
|
+
return new at("sf-content-body").AddClass("sf-content-no-padding", e.disableBodyPadding).Build();
|
|
3409
3418
|
}
|
|
3410
3419
|
function i() {
|
|
3411
|
-
return new
|
|
3420
|
+
return new at("sf-content-header").AddClass("sf-content-no-padding", e.disableHeaderPadding).Build();
|
|
3412
3421
|
}
|
|
3413
3422
|
function c() {
|
|
3414
|
-
return new
|
|
3423
|
+
return new at("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
3415
3424
|
}
|
|
3416
|
-
return (x, L) => (J(),
|
|
3425
|
+
return (x, L) => (J(), _e("div", {
|
|
3417
3426
|
class: ke(n()),
|
|
3418
3427
|
style: xn(e.style)
|
|
3419
3428
|
}, [
|
|
@@ -3426,7 +3435,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3426
3435
|
class: ke(o())
|
|
3427
3436
|
}, [
|
|
3428
3437
|
De(x.$slots, "default"),
|
|
3429
|
-
|
|
3438
|
+
kt(Hc)
|
|
3430
3439
|
], 2),
|
|
3431
3440
|
j("div", {
|
|
3432
3441
|
class: ke(c())
|
|
@@ -3471,9 +3480,9 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3471
3480
|
tabs: {}
|
|
3472
3481
|
},
|
|
3473
3482
|
setup(t) {
|
|
3474
|
-
const e = t, n =
|
|
3483
|
+
const e = t, n = xt(null), o = new ResizeObserver((u) => {
|
|
3475
3484
|
L();
|
|
3476
|
-
}), i =
|
|
3485
|
+
}), i = xt(!1), c = xt(!1);
|
|
3477
3486
|
function x(u = !1) {
|
|
3478
3487
|
const H = n.value.clientWidth;
|
|
3479
3488
|
n.value.scrollLeft += u ? -H : H;
|
|
@@ -3495,7 +3504,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3495
3504
|
}
|
|
3496
3505
|
}), (u, H) => {
|
|
3497
3506
|
const W = Eo("RouterLink");
|
|
3498
|
-
return J(),
|
|
3507
|
+
return J(), _e("div", jc, [
|
|
3499
3508
|
j("div", {
|
|
3500
3509
|
class: ke(["left-arrow", { active: i.value }]),
|
|
3501
3510
|
onClick: H[0] || (H[0] = (Q) => x(!0))
|
|
@@ -3504,7 +3513,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3504
3513
|
ref_key: "trackerContainer",
|
|
3505
3514
|
ref: n
|
|
3506
3515
|
}, [
|
|
3507
|
-
(J(!0),
|
|
3516
|
+
(J(!0), _e(Co, null, Rr(e.tabs, (Q) => (J(), dt(W, {
|
|
3508
3517
|
to: Q.route,
|
|
3509
3518
|
custom: !0
|
|
3510
3519
|
}, {
|
|
@@ -3519,7 +3528,7 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3519
3528
|
href: Q.route,
|
|
3520
3529
|
class: ke({ active: z }),
|
|
3521
3530
|
onClick: Le
|
|
3522
|
-
},
|
|
3531
|
+
}, qt(Q.text), 11, qc)
|
|
3523
3532
|
])
|
|
3524
3533
|
], 8, Wc)
|
|
3525
3534
|
]),
|
|
@@ -3555,9 +3564,9 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3555
3564
|
setup(t) {
|
|
3556
3565
|
const e = t;
|
|
3557
3566
|
function n() {
|
|
3558
|
-
return new
|
|
3567
|
+
return new at(`${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
3568
|
}
|
|
3560
|
-
return (o, i) => (J(),
|
|
3569
|
+
return (o, i) => (J(), _e("button", {
|
|
3561
3570
|
id: e.id,
|
|
3562
3571
|
name: e.name,
|
|
3563
3572
|
class: ke(n()),
|
|
@@ -3567,13 +3576,13 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3567
3576
|
form: e.form,
|
|
3568
3577
|
type: e.type
|
|
3569
3578
|
}, [
|
|
3570
|
-
e.icon ? (J(),
|
|
3579
|
+
e.icon ? (J(), dt(zt, {
|
|
3571
3580
|
key: 0,
|
|
3572
3581
|
icone: e.icon,
|
|
3573
3582
|
loading: e.loading,
|
|
3574
3583
|
size: e.size,
|
|
3575
3584
|
"button-props": { tabindex: -1 }
|
|
3576
|
-
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (J(),
|
|
3585
|
+
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (J(), dt(zt, {
|
|
3577
3586
|
key: 1,
|
|
3578
3587
|
loading: !0,
|
|
3579
3588
|
size: e.size,
|
|
@@ -3587,9 +3596,10 @@ const _n = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3587
3596
|
});
|
|
3588
3597
|
class rl {
|
|
3589
3598
|
constructor(e = null) {
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
this
|
|
3599
|
+
rt(this, "errors", []);
|
|
3600
|
+
rt(this, "_value", null);
|
|
3601
|
+
rt(this, "_httpStatusCode");
|
|
3602
|
+
this._value = e, this._httpStatusCode = 200;
|
|
3593
3603
|
}
|
|
3594
3604
|
get value() {
|
|
3595
3605
|
return this._value;
|
|
@@ -3603,8 +3613,17 @@ class rl {
|
|
|
3603
3613
|
get hasError() {
|
|
3604
3614
|
return this.errors.length > 0;
|
|
3605
3615
|
}
|
|
3616
|
+
get httpStatusCode() {
|
|
3617
|
+
return this._httpStatusCode;
|
|
3618
|
+
}
|
|
3619
|
+
set httpStatusCode(e) {
|
|
3620
|
+
this._httpStatusCode = e;
|
|
3621
|
+
}
|
|
3606
3622
|
WithError(e) {
|
|
3607
|
-
this.errors.push(e);
|
|
3623
|
+
this.errors.push(e), this._httpStatusCode === 200 && (this._httpStatusCode = 400);
|
|
3624
|
+
}
|
|
3625
|
+
WithErrors(e) {
|
|
3626
|
+
e.forEach((n) => this.WithError(n));
|
|
3608
3627
|
}
|
|
3609
3628
|
}
|
|
3610
3629
|
(() => {
|
|
@@ -3623,18 +3642,18 @@ class rl {
|
|
|
3623
3642
|
}
|
|
3624
3643
|
t(), window.addEventListener("resize", t);
|
|
3625
3644
|
})();
|
|
3626
|
-
|
|
3645
|
+
An.SetInitialTheme();
|
|
3627
3646
|
export {
|
|
3628
3647
|
rl as AppResult,
|
|
3629
3648
|
le as AuthService,
|
|
3630
3649
|
Io as Cor,
|
|
3631
3650
|
ol as SfButton,
|
|
3632
3651
|
tl as SfContent,
|
|
3633
|
-
|
|
3652
|
+
zt as SfIcon,
|
|
3634
3653
|
Qc as SfLayout,
|
|
3635
3654
|
el as SfNavMenuLink,
|
|
3636
3655
|
nl as SfTabNavigation,
|
|
3637
|
-
|
|
3656
|
+
_t as Tamanho,
|
|
3638
3657
|
vc as UseDialogService,
|
|
3639
3658
|
Lo as UseNavMenuService
|
|
3640
3659
|
};
|