@luizleon/sf.prefeiturasp.vuecomponents 0.0.25 → 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/lib.es.js +251 -242
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +10 -10
- 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)
|
|
@@ -44,13 +44,13 @@ function $r(t, e) {
|
|
|
44
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 it {
|
|
|
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,7 +96,7 @@ 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
101
|
return (o, i) => (J(), _e("div", {
|
|
102
102
|
style: xn(e.style),
|
|
@@ -108,8 +108,8 @@ 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
115
|
e.dot ? (J(), _e("span", {
|
|
@@ -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);
|
|
@@ -311,12 +311,12 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
311
311
|
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor === _ ? I.createHash(w).update(y(p)).digest("hex") : f(p);
|
|
312
312
|
};
|
|
313
313
|
return O;
|
|
314
|
-
},
|
|
314
|
+
}, Qe = function(f, k) {
|
|
315
315
|
return function(I, _) {
|
|
316
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) {
|
|
@@ -324,7 +324,7 @@ const ts = {}, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
324
324
|
};
|
|
325
325
|
for (var I = 0; I < Le.length; ++I) {
|
|
326
326
|
var _ = Le[I];
|
|
327
|
-
k[_] =
|
|
327
|
+
k[_] = Qe(_, f);
|
|
328
328
|
}
|
|
329
329
|
return k;
|
|
330
330
|
};
|
|
@@ -443,15 +443,15 @@ 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;
|
|
451
451
|
const rs = /* @__PURE__ */ Wr(os);
|
|
452
|
-
class
|
|
452
|
+
class At extends Error {
|
|
453
453
|
}
|
|
454
|
-
|
|
454
|
+
At.prototype.name = "InvalidTokenError";
|
|
455
455
|
function ss(t) {
|
|
456
456
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
457
457
|
let o = n.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -480,21 +480,21 @@ function is(t) {
|
|
|
480
480
|
}
|
|
481
481
|
function cn(t, e) {
|
|
482
482
|
if (typeof t != "string")
|
|
483
|
-
throw new
|
|
483
|
+
throw new At("Invalid token specified: must be a string");
|
|
484
484
|
e || (e = {});
|
|
485
485
|
const n = e.header === !0 ? 0 : 1, o = t.split(".")[n];
|
|
486
486
|
if (typeof o != "string")
|
|
487
|
-
throw new
|
|
487
|
+
throw new At(`Invalid token specified: missing part #${n + 1}`);
|
|
488
488
|
let i;
|
|
489
489
|
try {
|
|
490
490
|
i = is(o);
|
|
491
491
|
} catch (c) {
|
|
492
|
-
throw new
|
|
492
|
+
throw new At(`Invalid token specified: invalid base64 for part #${n + 1} (${c.message})`);
|
|
493
493
|
}
|
|
494
494
|
try {
|
|
495
495
|
return JSON.parse(i);
|
|
496
496
|
} catch (c) {
|
|
497
|
-
throw new
|
|
497
|
+
throw new At(`Invalid token specified: invalid json for part #${n + 1} (${c.message})`);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
if (typeof Promise > "u")
|
|
@@ -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
|
|
@@ -669,7 +669,7 @@ function Fo(t) {
|
|
|
669
669
|
m ? m.indexOf("openid") === -1 && (m = "openid " + m) : m = "openid";
|
|
670
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) {
|
|
@@ -776,7 +776,7 @@ 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) {
|
|
@@ -993,7 +993,7 @@ 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);
|
|
@@ -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]),
|
|
@@ -1547,7 +1556,7 @@ const Kt = new Fo(), as = (t, e) => {
|
|
|
1547
1556
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
1548
1557
|
);
|
|
1549
1558
|
return us(t.concat(e)).filter((n) => Ae(n));
|
|
1550
|
-
}, Pn = () => Ne(document.body, l.shown) && !Ne(document.body, l["toast-shown"]) && !Ne(document.body, l["no-backdrop"]), Xt = () => V() && Ne(V(), l.toast), As = () => V().hasAttribute("data-loading"),
|
|
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,7 +1635,7 @@ 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
|
-
}, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Cs = () => !Ae(Ie()) && !Ae(ze()) && !Ae(
|
|
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) => {
|
|
@@ -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
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",
|
|
@@ -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,7 +2014,7 @@ 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) => {
|
|
@@ -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()}>.`,
|
|
@@ -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 =
|
|
2142
|
+
const n = Rt(), o = ht();
|
|
2134
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 = () => Ae(V()), Qo = () => Ie() && Ie().click(), Zi = () => ze() && ze().click(), Qi = () =>
|
|
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,12 +2255,12 @@ 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
2266
|
if (Ae(c) && c instanceof HTMLButtonElement)
|
|
@@ -2259,7 +2268,7 @@ const Tt = {
|
|
|
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) => {
|
|
@@ -2403,17 +2412,17 @@ function Aa() {
|
|
|
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
2421
|
_destroy: Aa,
|
|
2413
|
-
close:
|
|
2414
|
-
closeModal:
|
|
2415
|
-
closePopup:
|
|
2416
|
-
closeToast:
|
|
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
|
-
Ae(Yt()) || i === !1 ? (t.hideLoading(),
|
|
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,
|
|
@@ -2585,12 +2594,12 @@ const Va = (t) => {
|
|
|
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()
|
|
@@ -2662,18 +2671,18 @@ const qa = (t, e, n) => new Promise((o, i) => {
|
|
|
2662
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,
|
|
@@ -2702,7 +2711,7 @@ kn || (kn = function(e, n, o) {
|
|
|
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++)
|
|
@@ -2718,7 +2727,7 @@ function rc(t) {
|
|
|
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,7 +2762,7 @@ 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"]), _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"]),
|
|
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(
|
|
@@ -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);
|
|
@@ -2842,7 +2851,7 @@ function gr() {
|
|
|
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, ..._o,
|
|
2854
|
+
const a = M({}, [...ko, ...mn, ..._o, ...Ht]);
|
|
2846
2855
|
let d = Object.seal(hr(null, {
|
|
2847
2856
|
tagNameCheck: {
|
|
2848
2857
|
writable: !0,
|
|
@@ -2864,61 +2873,61 @@ function gr() {
|
|
|
2864
2873
|
}
|
|
2865
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"]), _r = M({}, ["title", "style", "font", "a", "script"]),
|
|
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
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,19 +3011,19 @@ 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 && !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,
|
|
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) {
|
|
@@ -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)
|
|
@@ -3145,20 +3154,20 @@ function gr() {
|
|
|
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,
|
|
@@ -3231,7 +3240,7 @@ const bc = new gc(), vc = () => bc, yc = ["data-cor"], wc = /* @__PURE__ */ $e({
|
|
|
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
3245
|
}), kc = {}, _c = {
|
|
3237
3246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3297,21 +3306,21 @@ const An = (() => 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 An = (() => 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 An = (() => 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 An = (() => 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);
|
|
@@ -3402,16 +3411,16 @@ const An = (() => 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
3425
|
return (x, L) => (J(), _e("div", {
|
|
3417
3426
|
class: ke(n()),
|
|
@@ -3426,7 +3435,7 @@ const An = (() => 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 An = (() => 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;
|
|
@@ -3504,7 +3513,7 @@ const An = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3504
3513
|
ref_key: "trackerContainer",
|
|
3505
3514
|
ref: n
|
|
3506
3515
|
}, [
|
|
3507
|
-
(J(!0), _e(Co, null, Rr(e.tabs, (Q) => (J(),
|
|
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 An = (() => 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,7 +3564,7 @@ const An = (() => 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
3569
|
return (o, i) => (J(), _e("button", {
|
|
3561
3570
|
id: e.id,
|
|
@@ -3567,13 +3576,13 @@ const An = (() => 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,9 @@ const An = (() => new Tc())(), Sc = /* @__PURE__ */ Ir('<svg xmlns="http://www.w
|
|
|
3587
3596
|
});
|
|
3588
3597
|
class rl {
|
|
3589
3598
|
constructor(e = null) {
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3599
|
+
rt(this, "errors", []);
|
|
3600
|
+
rt(this, "_value", null);
|
|
3601
|
+
rt(this, "_httpStatusCode");
|
|
3593
3602
|
this._value = e, this._httpStatusCode = 200;
|
|
3594
3603
|
}
|
|
3595
3604
|
get value() {
|
|
@@ -3640,11 +3649,11 @@ export {
|
|
|
3640
3649
|
Io as Cor,
|
|
3641
3650
|
ol as SfButton,
|
|
3642
3651
|
tl as SfContent,
|
|
3643
|
-
|
|
3652
|
+
zt as SfIcon,
|
|
3644
3653
|
Qc as SfLayout,
|
|
3645
3654
|
el as SfNavMenuLink,
|
|
3646
3655
|
nl as SfTabNavigation,
|
|
3647
|
-
|
|
3656
|
+
_t as Tamanho,
|
|
3648
3657
|
vc as UseDialogService,
|
|
3649
3658
|
Lo as UseNavMenuService
|
|
3650
3659
|
};
|