@luizleon/sf.prefeiturasp.vuecomponents 5.0.6 → 5.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sf.prefeiturasp.vuecomponents.js +1042 -1036
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +17 -17
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/navmenu/NavMenu.vue.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Us = Object.defineProperty;
|
|
2
2
|
var Hs = (t, e, n) => e in t ? Us(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var ze = (t, e, n) => Hs(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { openBlock as $, createElementBlock as H, createElementVNode as M, defineComponent as Ve, onBeforeUnmount as vi, unref as oe, renderSlot as fe, computed as Ie, createBlock as
|
|
4
|
+
import { openBlock as $, createElementBlock as H, createElementVNode as M, defineComponent as Ve, onBeforeUnmount as vi, unref as oe, renderSlot as fe, computed as Ie, createBlock as ue, resolveDynamicComponent as yt, normalizeClass as Q, withCtx as It, normalizeStyle as Tt, Fragment as rt, mergeProps as W, toDisplayString as Me, createCommentVNode as se, ref as ie, onMounted as xt, createVNode as De, resolveComponent as _n, renderList as $r, useSlots as js, watch as dn, Teleport as Fs, withModifiers as wr, Transition as Mr, normalizeProps as ir, guardReactiveProps as sr, readonly as Vs, getCurrentInstance as Dr, nextTick as wi, resolveDirective as Ks, withDirectives as _r, vShow as _i, getCurrentScope as zs, onScopeDispose as Ws, toValue as Si, inject as Gs, onBeforeMount as qs, createTextVNode as ko, watchEffect as Ys } from "vue";
|
|
5
5
|
import { useRouter as Xs } from "vue-router";
|
|
6
6
|
const Ft = (t, e) => {
|
|
7
7
|
const n = t.__vccOpts || t;
|
|
@@ -91,35 +91,35 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
91
91
|
this.Render(), this.inner.textContent = e.text, document.body.appendChild(this.wrapper), this.wrapper.classList.add("visible"), this.Position(i);
|
|
92
92
|
}
|
|
93
93
|
Hide() {
|
|
94
|
-
const i = this.wrapper,
|
|
95
|
-
!i || !
|
|
94
|
+
const i = this.wrapper, l = this.inner;
|
|
95
|
+
!i || !l || (i.classList.remove("visible"), document.body.removeChild(i), this.wrapper = null, this.inner = null);
|
|
96
96
|
}
|
|
97
97
|
Position(i) {
|
|
98
98
|
const s = i.currentTarget.getBoundingClientRect();
|
|
99
99
|
this.FixWidth();
|
|
100
|
-
const
|
|
101
|
-
if (!
|
|
102
|
-
const
|
|
103
|
-
|
|
100
|
+
const a = this.wrapper;
|
|
101
|
+
if (!a) return;
|
|
102
|
+
const u = 5;
|
|
103
|
+
a.style.top = `${s.top + s.height - u}px`, a.style.left = `${s.left + s.width - u}px`, this.OutOfBottom() && (a.style.top = `${s.top - a.clientHeight + u}px`), this.OutOfRight() && (a.style.left = `${s.left - a.clientWidth + u}px`);
|
|
104
104
|
}
|
|
105
105
|
FixWidth() {
|
|
106
106
|
const i = this.wrapper;
|
|
107
107
|
if (!i) return;
|
|
108
108
|
i.style.width = "fit-content", i.style.wordBreak = "normal", i.style.whiteSpace = "nowrap";
|
|
109
|
-
const
|
|
110
|
-
i.clientWidth >
|
|
109
|
+
const l = window.innerWidth / 2;
|
|
110
|
+
i.clientWidth > l && (i.style.width = `${l}px`, i.style.wordBreak = "break-word", i.style.whiteSpace = "normal");
|
|
111
111
|
}
|
|
112
112
|
OutOfBottom() {
|
|
113
113
|
const i = this.wrapper;
|
|
114
114
|
if (!i) return !1;
|
|
115
|
-
const
|
|
116
|
-
return
|
|
115
|
+
const l = i.getBoundingClientRect(), s = window.innerHeight || document.documentElement.clientHeight;
|
|
116
|
+
return l.bottom + 10 > s;
|
|
117
117
|
}
|
|
118
118
|
OutOfRight() {
|
|
119
119
|
const i = this.wrapper;
|
|
120
120
|
if (!i) return !1;
|
|
121
|
-
const
|
|
122
|
-
return
|
|
121
|
+
const l = i.getBoundingClientRect(), s = window.innerWidth || document.documentElement.clientWidth;
|
|
122
|
+
return l.right + 10 > s;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
const r = new n();
|
|
@@ -128,11 +128,11 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
128
128
|
}), (o, i) => ($(), H("div", {
|
|
129
129
|
class: "sf-tooltip-anchor",
|
|
130
130
|
onMouseenter: i[0] || (i[0] = //@ts-ignore
|
|
131
|
-
(...
|
|
131
|
+
(...l) => oe(r).Show && oe(r).Show(...l)),
|
|
132
132
|
onMouseleave: i[1] || (i[1] = //@ts-ignore
|
|
133
|
-
(...
|
|
133
|
+
(...l) => oe(r).Hide && oe(r).Hide(...l)),
|
|
134
134
|
onMousedown: i[2] || (i[2] = //@ts-ignore
|
|
135
|
-
(...
|
|
135
|
+
(...l) => oe(r).Hide && oe(r).Hide(...l))
|
|
136
136
|
}, [
|
|
137
137
|
fe(o.$slots, "default")
|
|
138
138
|
], 32));
|
|
@@ -162,13 +162,13 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
162
162
|
), o = Ie(() => new dt(n.tooltip ? "" : "display-content").AddClass("loading", n.loading).AddClass("disabled", n.disabled).Build()), i = Ie(() => new dt(`${n.class} sf-icon`).AddClass("sf-icon-button", n.button).AddClass("sf-icon-small", n.size === "sm").AddClass("sf-icon-medium", n.size === "md").AddClass("sf-icon-large", n.size === "lg").AddClass("sf-icon-xlarge", n.size === "xl").AddClass("sf-icon-2xlarge", n.size === "2xl").AddClass("sf-icon-3xlarge", n.size === "3xl").AddClass("sf-ripple", n.button === !0).AddClass(
|
|
163
163
|
`${n.color}-color`,
|
|
164
164
|
!!n.color && n.color !== "inherit"
|
|
165
|
-
).Build()),
|
|
166
|
-
n.disabled || n.loading || s("click",
|
|
165
|
+
).Build()), l = (a) => {
|
|
166
|
+
n.disabled || n.loading || s("click", a);
|
|
167
167
|
}, s = e;
|
|
168
|
-
return (
|
|
168
|
+
return (a, u) => ($(), ue(yt(r.value), {
|
|
169
169
|
text: n.tooltip,
|
|
170
170
|
class: Q(o.value),
|
|
171
|
-
onClick:
|
|
171
|
+
onClick: l
|
|
172
172
|
}, {
|
|
173
173
|
default: It(() => [
|
|
174
174
|
n.visible ? ($(), H("div", {
|
|
@@ -176,7 +176,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
176
176
|
style: Tt(n.style),
|
|
177
177
|
class: Q(i.value)
|
|
178
178
|
}, [
|
|
179
|
-
n.loading ? ($(),
|
|
179
|
+
n.loading ? ($(), ue(ki, { key: 0 })) : ($(), H(rt, { key: 1 }, [
|
|
180
180
|
M("button", W({
|
|
181
181
|
class: [
|
|
182
182
|
"material-symbols-outlined",
|
|
@@ -197,7 +197,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
197
197
|
_: 1
|
|
198
198
|
}, 8, ["text", "class"]));
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), ut = /* @__PURE__ */ Ft(ra, [["__scopeId", "data-v-77b83510"]]), oa = /* @__PURE__ */ Ve({
|
|
201
201
|
__name: "ScrollToTop",
|
|
202
202
|
setup(t) {
|
|
203
203
|
const e = ie(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
@@ -210,13 +210,13 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
210
210
|
r = ((i = document.getElementById(n)) == null ? void 0 : i.parentElement) ?? null, r && r.addEventListener("scroll", function() {
|
|
211
211
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
212
212
|
});
|
|
213
|
-
}), (i,
|
|
213
|
+
}), (i, l) => ($(), H("button", {
|
|
214
214
|
id: n,
|
|
215
215
|
class: Q(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
216
216
|
onClick: o
|
|
217
217
|
}, null, 2));
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), wm = /* @__PURE__ */ Ve({
|
|
220
220
|
__name: "Content",
|
|
221
221
|
props: {
|
|
222
222
|
class: {},
|
|
@@ -239,63 +239,63 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
239
239
|
function i() {
|
|
240
240
|
return new dt("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
241
241
|
}
|
|
242
|
-
return (
|
|
242
|
+
return (l, s) => ($(), H("div", {
|
|
243
243
|
class: Q(n()),
|
|
244
244
|
style: Tt(e.style)
|
|
245
245
|
}, [
|
|
246
246
|
M("div", {
|
|
247
247
|
class: Q(o())
|
|
248
248
|
}, [
|
|
249
|
-
fe(
|
|
249
|
+
fe(l.$slots, "header")
|
|
250
250
|
], 2),
|
|
251
251
|
M("div", {
|
|
252
252
|
class: Q(r())
|
|
253
253
|
}, [
|
|
254
|
-
fe(
|
|
254
|
+
fe(l.$slots, "default"),
|
|
255
255
|
De(oa)
|
|
256
256
|
], 2),
|
|
257
257
|
M("div", {
|
|
258
258
|
class: Q(i())
|
|
259
259
|
}, [
|
|
260
|
-
fe(
|
|
260
|
+
fe(l.$slots, "footer")
|
|
261
261
|
], 2)
|
|
262
262
|
], 6));
|
|
263
263
|
}
|
|
264
|
-
}), ia = { class: "sf-tab-navigation" }, sa = ["data-active"], aa = ["href", "onClick"],
|
|
264
|
+
}), ia = { class: "sf-tab-navigation" }, sa = ["data-active"], aa = ["href", "onClick"], _m = /* @__PURE__ */ Ve({
|
|
265
265
|
__name: "TabNavigation",
|
|
266
266
|
props: {
|
|
267
267
|
tabs: {}
|
|
268
268
|
},
|
|
269
269
|
setup(t) {
|
|
270
|
-
const e = t, n = ie(null), r = new ResizeObserver((
|
|
270
|
+
const e = t, n = ie(null), r = new ResizeObserver((a) => {
|
|
271
271
|
s();
|
|
272
272
|
}), o = ie(!1), i = ie(!1);
|
|
273
|
-
function a
|
|
274
|
-
const
|
|
275
|
-
n.value.scrollLeft +=
|
|
273
|
+
function l(a = !1) {
|
|
274
|
+
const u = n.value.clientWidth;
|
|
275
|
+
n.value.scrollLeft += a ? -u : u;
|
|
276
276
|
}
|
|
277
277
|
function s() {
|
|
278
|
-
const
|
|
279
|
-
o.value = n.value.scrollLeft > 10, i.value = n.value.scrollLeft <
|
|
278
|
+
const a = n.value.scrollWidth - n.value.clientWidth;
|
|
279
|
+
o.value = n.value.scrollLeft > 10, i.value = n.value.scrollLeft < a - 10;
|
|
280
280
|
}
|
|
281
281
|
return xt(() => {
|
|
282
282
|
n.value.addEventListener("scroll", s), r.observe(n.value);
|
|
283
283
|
}), vi(() => {
|
|
284
|
-
var
|
|
284
|
+
var a;
|
|
285
285
|
try {
|
|
286
|
-
(
|
|
286
|
+
(a = n.value) == null || a.removeEventListener(
|
|
287
287
|
"scroll",
|
|
288
288
|
s
|
|
289
289
|
), r.unobserve(n.value), r.disconnect();
|
|
290
290
|
} catch {
|
|
291
291
|
}
|
|
292
|
-
}), (
|
|
292
|
+
}), (a, u) => {
|
|
293
293
|
const d = _n("RouterLink");
|
|
294
294
|
return $(), H("div", ia, [
|
|
295
295
|
M("div", {
|
|
296
296
|
class: Q(["left-arrow", { active: o.value }]),
|
|
297
|
-
onClick:
|
|
298
|
-
},
|
|
297
|
+
onClick: u[0] || (u[0] = (m) => l(!0))
|
|
298
|
+
}, u[2] || (u[2] = [
|
|
299
299
|
M("svg", {
|
|
300
300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
301
301
|
fill: "none",
|
|
@@ -315,13 +315,13 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
315
315
|
ref_key: "trackerContainer",
|
|
316
316
|
ref: n
|
|
317
317
|
}, [
|
|
318
|
-
($(!0), H(rt, null, $r(e.tabs, (m) => ($(),
|
|
318
|
+
($(!0), H(rt, null, $r(e.tabs, (m) => ($(), ue(d, {
|
|
319
319
|
to: m.route,
|
|
320
320
|
custom: !0
|
|
321
321
|
}, {
|
|
322
322
|
default: It(({ navigate: g, isActive: w }) => [
|
|
323
323
|
M("li", { "data-active": w }, [
|
|
324
|
-
fe(
|
|
324
|
+
fe(a.$slots, "item", {
|
|
325
325
|
item: m,
|
|
326
326
|
navigate: g,
|
|
327
327
|
isActive: w
|
|
@@ -339,8 +339,8 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
339
339
|
], 512),
|
|
340
340
|
M("div", {
|
|
341
341
|
class: Q(["right-arrow", { active: i.value }]),
|
|
342
|
-
onClick:
|
|
343
|
-
},
|
|
342
|
+
onClick: u[1] || (u[1] = (m) => l())
|
|
343
|
+
}, u[3] || (u[3] = [
|
|
344
344
|
M("svg", {
|
|
345
345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
346
346
|
fill: "none",
|
|
@@ -359,7 +359,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
359
359
|
]);
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
}), la = ["id", "name", "disabled", "data-color", "form", "type", "data-p-loading"],
|
|
362
|
+
}), la = ["id", "name", "disabled", "data-color", "form", "type", "data-p-loading"], ca = /* @__PURE__ */ Ve({
|
|
363
363
|
__name: "Button",
|
|
364
364
|
props: {
|
|
365
365
|
icon: {},
|
|
@@ -385,10 +385,10 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
385
385
|
function r() {
|
|
386
386
|
return new dt(`${n.class ?? ""} sf-button`).AddClass("sf-button-small", n.size === "sm").AddClass("sf-button-medium", n.size === "md").AddClass("sf-button-large", n.size === "lg").AddClass("sf-button-filled", n.variant === "filled").AddClass("sf-button-text", n.variant === "text").AddClass("sf-button-outlined", n.variant === "outlined").AddClass("sf-button-with-icon", !!n.icon).AddClass("sf-ripple", !n.loading && !n.disabled).Build();
|
|
387
387
|
}
|
|
388
|
-
const o = (
|
|
389
|
-
n.disabled || n.loading || i("click",
|
|
388
|
+
const o = (l) => {
|
|
389
|
+
n.disabled || n.loading || i("click", l);
|
|
390
390
|
}, i = e;
|
|
391
|
-
return (
|
|
391
|
+
return (l, s) => n.visible ? ($(), H("button", {
|
|
392
392
|
key: 0,
|
|
393
393
|
id: n.id,
|
|
394
394
|
name: n.name,
|
|
@@ -401,14 +401,14 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
401
401
|
"data-p-loading": n.loading,
|
|
402
402
|
onClick: o
|
|
403
403
|
}, [
|
|
404
|
-
n.loading ? ($(),
|
|
404
|
+
n.loading ? ($(), ue(ut, {
|
|
405
405
|
key: 0,
|
|
406
406
|
loading: !0,
|
|
407
407
|
size: n.size,
|
|
408
408
|
"button-props": { tabindex: -1 },
|
|
409
409
|
class: Q("icon-loading")
|
|
410
410
|
}, null, 8, ["size"])) : se("", !0),
|
|
411
|
-
n.icon ? ($(),
|
|
411
|
+
n.icon ? ($(), ue(ut, {
|
|
412
412
|
key: 1,
|
|
413
413
|
icon: n.icon,
|
|
414
414
|
size: n.size,
|
|
@@ -422,11 +422,11 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
422
422
|
transparent: !n.disabled && n.loading
|
|
423
423
|
})
|
|
424
424
|
}, [
|
|
425
|
-
fe(
|
|
425
|
+
fe(l.$slots, "default", {}, void 0, !0)
|
|
426
426
|
], 2)
|
|
427
427
|
], 14, la)) : se("", !0);
|
|
428
428
|
}
|
|
429
|
-
}),
|
|
429
|
+
}), Sm = /* @__PURE__ */ Ft(ca, [["__scopeId", "data-v-09dce4de"]]), ua = { class: "sf-drawer-title" }, da = { class: "sf-drawer-action" }, km = /* @__PURE__ */ Ve({
|
|
430
430
|
__name: "Drawer",
|
|
431
431
|
props: {
|
|
432
432
|
visible: { type: Boolean, default: !1 },
|
|
@@ -440,18 +440,18 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
440
440
|
},
|
|
441
441
|
emits: ["update:visible", "open", "before-close"],
|
|
442
442
|
setup(t, { emit: e }) {
|
|
443
|
-
const n = t, r = e, o = js(), i = ie(n.visible),
|
|
444
|
-
function
|
|
443
|
+
const n = t, r = e, o = js(), i = ie(n.visible), l = ie(!1), s = ie(0), a = "sf-drawer-" + Math.random().toString(36).slice(2, 11) + "-" + Date.now();
|
|
444
|
+
function u() {
|
|
445
445
|
i.value = !1;
|
|
446
446
|
}
|
|
447
447
|
function d(v) {
|
|
448
448
|
if (!n.dismissableMask)
|
|
449
449
|
return;
|
|
450
450
|
const S = v.target;
|
|
451
|
-
S && S.id ===
|
|
451
|
+
S && S.id === a && (i.value = !1);
|
|
452
452
|
}
|
|
453
453
|
function m(v) {
|
|
454
|
-
(v.key === "Escape" || v.code === "Escape") &&
|
|
454
|
+
(v.key === "Escape" || v.code === "Escape") && u();
|
|
455
455
|
}
|
|
456
456
|
function g() {
|
|
457
457
|
r("open"), window.document.addEventListener("keydown", m, !0);
|
|
@@ -464,7 +464,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
464
464
|
r("before-close"), (S = v == null ? void 0 : v.parentElement) == null || S.classList.add("sf-mask-overlay-leave");
|
|
465
465
|
}
|
|
466
466
|
function A() {
|
|
467
|
-
window.document.removeEventListener("keydown", m, !0),
|
|
467
|
+
window.document.removeEventListener("keydown", m, !0), l.value = !1;
|
|
468
468
|
}
|
|
469
469
|
function E() {
|
|
470
470
|
return new dt("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("center", n.position === "center").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
|
|
@@ -477,12 +477,12 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
477
477
|
), dn(
|
|
478
478
|
() => i.value,
|
|
479
479
|
(v) => {
|
|
480
|
-
r("update:visible", v), v && (
|
|
480
|
+
r("update:visible", v), v && (l.value = !0);
|
|
481
481
|
}
|
|
482
|
-
), (v, S) => ($(),
|
|
483
|
-
|
|
482
|
+
), (v, S) => ($(), ue(Fs, { to: "body" }, [
|
|
483
|
+
l.value ? ($(), H("div", {
|
|
484
484
|
key: 0,
|
|
485
|
-
id:
|
|
485
|
+
id: a,
|
|
486
486
|
class: Q(E()),
|
|
487
487
|
style: Tt({ zIndex: s.value - 1 }),
|
|
488
488
|
onClick: wr(d, ["stop"])
|
|
@@ -502,20 +502,20 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
502
502
|
style: Tt(n.style),
|
|
503
503
|
role: "dialog"
|
|
504
504
|
}, [
|
|
505
|
-
fe(v.$slots, "header", ir(sr({ Close:
|
|
505
|
+
fe(v.$slots, "header", ir(sr({ Close: u })), () => [
|
|
506
506
|
M("div", {
|
|
507
507
|
class: Q(["sf-drawer-header", { unstyled: n.unstyledHeader }])
|
|
508
508
|
}, [
|
|
509
509
|
fe(v.$slots, "title", {}, () => [
|
|
510
|
-
M("div",
|
|
510
|
+
M("div", ua, Me(n.title), 1)
|
|
511
511
|
]),
|
|
512
512
|
S[0] || (S[0] = M("div", { class: "sf-drawer-spacer" }, null, -1)),
|
|
513
|
-
fe(v.$slots, "action", ir(sr({ Close:
|
|
513
|
+
fe(v.$slots, "action", ir(sr({ Close: u })), () => [
|
|
514
514
|
M("div", da, [
|
|
515
|
-
De(
|
|
515
|
+
De(ut, {
|
|
516
516
|
button: !0,
|
|
517
517
|
icon: "close",
|
|
518
|
-
onClick:
|
|
518
|
+
onClick: u
|
|
519
519
|
})
|
|
520
520
|
])
|
|
521
521
|
])
|
|
@@ -530,7 +530,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
530
530
|
key: 0,
|
|
531
531
|
class: Q(["sf-drawer-footer", { unstyled: n.unstyledFooter }])
|
|
532
532
|
}, [
|
|
533
|
-
fe(v.$slots, "footer", ir(sr({ Close:
|
|
533
|
+
fe(v.$slots, "footer", ir(sr({ Close: u })))
|
|
534
534
|
], 2)) : se("", !0)
|
|
535
535
|
], 4)) : se("", !0)
|
|
536
536
|
]),
|
|
@@ -539,7 +539,7 @@ const ea = /* @__PURE__ */ Ve({
|
|
|
539
539
|
], 6)) : se("", !0)
|
|
540
540
|
]));
|
|
541
541
|
}
|
|
542
|
-
}), fa = ["data-icon"],
|
|
542
|
+
}), fa = ["data-icon"], Cm = /* @__PURE__ */ Ve({
|
|
543
543
|
__name: "Message",
|
|
544
544
|
props: {
|
|
545
545
|
color: { default: "info" },
|
|
@@ -601,19 +601,19 @@ function Gn(t) {
|
|
|
601
601
|
function Fn(t, e = {}) {
|
|
602
602
|
if (Gn(t)) {
|
|
603
603
|
const n = (r, o) => {
|
|
604
|
-
var i,
|
|
605
|
-
const s = (i = t == null ? void 0 : t.$attrs) != null && i[r] ? [(
|
|
606
|
-
return [o].flat().reduce((
|
|
607
|
-
if (
|
|
608
|
-
const d = typeof
|
|
604
|
+
var i, l;
|
|
605
|
+
const s = (i = t == null ? void 0 : t.$attrs) != null && i[r] ? [(l = t == null ? void 0 : t.$attrs) == null ? void 0 : l[r]] : [];
|
|
606
|
+
return [o].flat().reduce((a, u) => {
|
|
607
|
+
if (u != null) {
|
|
608
|
+
const d = typeof u;
|
|
609
609
|
if (d === "string" || d === "number")
|
|
610
|
-
|
|
610
|
+
a.push(u);
|
|
611
611
|
else if (d === "object") {
|
|
612
|
-
const m = Array.isArray(
|
|
613
|
-
|
|
612
|
+
const m = Array.isArray(u) ? n(r, u) : Object.entries(u).map(([g, w]) => r === "style" && (w || w === 0) ? `${g.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${w}` : w ? g : void 0);
|
|
613
|
+
a = m.length ? a.concat(m.filter((g) => !!g)) : a;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
return
|
|
616
|
+
return a;
|
|
617
617
|
}, s);
|
|
618
618
|
};
|
|
619
619
|
Object.entries(e).forEach(([r, o]) => {
|
|
@@ -716,24 +716,24 @@ function Ct(t) {
|
|
|
716
716
|
function Sr(t, e) {
|
|
717
717
|
if (t === e) return !0;
|
|
718
718
|
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
719
|
-
var n = Array.isArray(t), r = Array.isArray(e), o, i,
|
|
719
|
+
var n = Array.isArray(t), r = Array.isArray(e), o, i, l;
|
|
720
720
|
if (n && r) {
|
|
721
721
|
if (i = t.length, i != e.length) return !1;
|
|
722
722
|
for (o = i; o-- !== 0; ) if (!Sr(t[o], e[o])) return !1;
|
|
723
723
|
return !0;
|
|
724
724
|
}
|
|
725
725
|
if (n != r) return !1;
|
|
726
|
-
var s = t instanceof Date,
|
|
727
|
-
if (s !=
|
|
728
|
-
if (s &&
|
|
729
|
-
var
|
|
730
|
-
if (
|
|
731
|
-
if (
|
|
726
|
+
var s = t instanceof Date, a = e instanceof Date;
|
|
727
|
+
if (s != a) return !1;
|
|
728
|
+
if (s && a) return t.getTime() == e.getTime();
|
|
729
|
+
var u = t instanceof RegExp, d = e instanceof RegExp;
|
|
730
|
+
if (u != d) return !1;
|
|
731
|
+
if (u && d) return t.toString() == e.toString();
|
|
732
732
|
var m = Object.keys(t);
|
|
733
733
|
if (i = m.length, i !== Object.keys(e).length) return !1;
|
|
734
734
|
for (o = i; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, m[o])) return !1;
|
|
735
735
|
for (o = i; o-- !== 0; )
|
|
736
|
-
if (
|
|
736
|
+
if (l = m[o], !Sr(t[l], e[l])) return !1;
|
|
737
737
|
return !0;
|
|
738
738
|
}
|
|
739
739
|
return t !== t && e !== e;
|
|
@@ -824,7 +824,7 @@ var Ta = Object.defineProperty, Aa = Object.defineProperties, Pa = Object.getOwn
|
|
|
824
824
|
for (var r of Kn(t))
|
|
825
825
|
e.indexOf(r) < 0 && Pi.call(t, r) && (n[r] = t[r]);
|
|
826
826
|
return n;
|
|
827
|
-
}, Ea = Ci(),
|
|
827
|
+
}, Ea = Ci(), ct = Ea;
|
|
828
828
|
function Eo(t, e) {
|
|
829
829
|
Ur(t) ? t.push(...e || []) : vt(t) && Object.assign(t, e);
|
|
830
830
|
}
|
|
@@ -845,15 +845,15 @@ function Ei(t = "", e = "") {
|
|
|
845
845
|
}
|
|
846
846
|
function xi(t, e = "", n = "", r = [], o) {
|
|
847
847
|
if (Le(t)) {
|
|
848
|
-
const i = /{([^}]*)}/g,
|
|
849
|
-
if (ft(
|
|
850
|
-
const s =
|
|
848
|
+
const i = /{([^}]*)}/g, l = t.trim();
|
|
849
|
+
if (ft(l, i)) {
|
|
850
|
+
const s = l.replaceAll(i, (d) => {
|
|
851
851
|
const g = d.replace(/{|}/g, "").split(".").filter((w) => !r.some((k) => ft(w, k)));
|
|
852
852
|
return `var(${Ei(n, Ti(g.join("-")))}${ee(o) ? `, ${o}` : ""})`;
|
|
853
|
-
}),
|
|
854
|
-
return ft(s.replace(
|
|
853
|
+
}), a = /(\d+\s+[\+\-\*\/]\s+\d+)/g, u = /var\([^)]+\)/g;
|
|
854
|
+
return ft(s.replace(u, "0"), a) ? `calc(${s})` : s;
|
|
855
855
|
}
|
|
856
|
-
return xo(
|
|
856
|
+
return xo(l, e);
|
|
857
857
|
} else if (Ii(t))
|
|
858
858
|
return xo(t, e);
|
|
859
859
|
}
|
|
@@ -863,29 +863,29 @@ function Oa(t, e, n) {
|
|
|
863
863
|
function sn(t, e) {
|
|
864
864
|
return t ? `${t}{${e}}` : "";
|
|
865
865
|
}
|
|
866
|
-
var
|
|
866
|
+
var cr = (...t) => $a(re.getTheme(), ...t), $a = (t = {}, e, n, r = "variable") => {
|
|
867
867
|
if (e) {
|
|
868
|
-
const { variable: o, options: i } = re.defaults || {}, { prefix:
|
|
869
|
-
return r === "value" || s === "strict" ? re.getTokenValue(e) : xi(
|
|
868
|
+
const { variable: o, options: i } = re.defaults || {}, { prefix: l, transform: s } = (t == null ? void 0 : t.options) || i || {}, u = ft(e, /{([^}]*)}/g) ? e : `{${e}}`;
|
|
869
|
+
return r === "value" || s === "strict" ? re.getTokenValue(e) : xi(u, void 0, l, [o.excludedKeyRegex], n);
|
|
870
870
|
}
|
|
871
871
|
return "";
|
|
872
872
|
};
|
|
873
873
|
function Ma(t, e = {}) {
|
|
874
|
-
const n = re.defaults.variable, { prefix: r = n.prefix, selector: o = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e,
|
|
874
|
+
const n = re.defaults.variable, { prefix: r = n.prefix, selector: o = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, l = (u, d = "") => Object.entries(u).reduce(
|
|
875
875
|
(m, [g, w]) => {
|
|
876
876
|
const k = ft(g, i) ? kr(d) : kr(d, Ti(g)), A = xa(w);
|
|
877
877
|
if (vt(A)) {
|
|
878
|
-
const { variables: E, tokens: v } =
|
|
878
|
+
const { variables: E, tokens: v } = l(A, k);
|
|
879
879
|
Eo(m.tokens, v), Eo(m.variables, E);
|
|
880
880
|
} else
|
|
881
881
|
m.tokens.push((r ? k.replace(`${r}-`, "") : k).replaceAll("-", ".")), Oa(m.variables, Ei(k), xi(A, k, r, [i]));
|
|
882
882
|
return m;
|
|
883
883
|
},
|
|
884
884
|
{ variables: [], tokens: [] }
|
|
885
|
-
), { variables: s, tokens:
|
|
885
|
+
), { variables: s, tokens: a } = l(t, r);
|
|
886
886
|
return {
|
|
887
887
|
value: s,
|
|
888
|
-
tokens:
|
|
888
|
+
tokens: a,
|
|
889
889
|
declarations: s.join(""),
|
|
890
890
|
css: sn(o, s.join(""))
|
|
891
891
|
};
|
|
@@ -935,11 +935,11 @@ var We = {
|
|
|
935
935
|
return Ma(t, { prefix: e == null ? void 0 : e.prefix });
|
|
936
936
|
},
|
|
937
937
|
getCommon({ name: t = "", theme: e = {}, params: n, set: r, defaults: o }) {
|
|
938
|
-
var i,
|
|
939
|
-
const { preset:
|
|
938
|
+
var i, l, s, a;
|
|
939
|
+
const { preset: u, options: d } = e;
|
|
940
940
|
let m, g, w, k;
|
|
941
|
-
if (ee(
|
|
942
|
-
const { primitive: A, semantic: E } =
|
|
941
|
+
if (ee(u)) {
|
|
942
|
+
const { primitive: A, semantic: E } = u, v = E || {}, { colorScheme: S } = v, R = Xt(v, ["colorScheme"]), U = S || {}, { dark: Y } = U, pe = Xt(U, ["dark"]), ae = ee(A) ? this._toVariables({ primitive: A }, d) : {}, $e = ee(R) ? this._toVariables({ semantic: R }, d) : {}, le = ee(pe) ? this._toVariables({ light: pe }, d) : {}, X = ee(Y) ? this._toVariables({ dark: Y }, d) : {}, [B, J] = [(i = ae.declarations) != null ? i : "", ae.tokens], [he, ge] = [(l = $e.declarations) != null ? l : "", $e.tokens || []], [Ze, it] = [(s = le.declarations) != null ? s : "", le.tokens || []], [Je, Qe] = [(a = X.declarations) != null ? a : "", X.tokens || []];
|
|
943
943
|
m = this.transformCSS(t, B, "light", "variable", d, r, o), g = J;
|
|
944
944
|
const _t = this.transformCSS(t, `${he}${Ze}color-scheme:light`, "light", "variable", d, r, o), He = this.transformCSS(t, `${Je}color-scheme:dark`, "dark", "variable", d, r, o);
|
|
945
945
|
w = `${_t}${He}`, k = [.../* @__PURE__ */ new Set([...ge, ...it, ...Qe])];
|
|
@@ -955,9 +955,9 @@ var We = {
|
|
|
955
955
|
}
|
|
956
956
|
};
|
|
957
957
|
},
|
|
958
|
-
getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: i, selector:
|
|
959
|
-
var s,
|
|
960
|
-
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Xt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, E = Xt(k, ["dark"]), v = ee(w) ? this._toVariables({ [d]: w }, n) : {}, S = ee(E) ? this._toVariables({ [d]: E }, n) : {}, R = ee(A) ? this._toVariables({ [d]: A }, n) : {}, [U, Y] = [(s = v.declarations) != null ? s : "", v.tokens || []], [pe, ae] = [(
|
|
958
|
+
getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: i, selector: l }) {
|
|
959
|
+
var s, a, u;
|
|
960
|
+
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Xt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, E = Xt(k, ["dark"]), v = ee(w) ? this._toVariables({ [d]: w }, n) : {}, S = ee(E) ? this._toVariables({ [d]: E }, n) : {}, R = ee(A) ? this._toVariables({ [d]: A }, n) : {}, [U, Y] = [(s = v.declarations) != null ? s : "", v.tokens || []], [pe, ae] = [(a = S.declarations) != null ? a : "", S.tokens || []], [$e, le] = [(u = R.declarations) != null ? u : "", R.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...ae, ...le])], B = this.transformCSS(d, `${U}${pe}`, "light", "variable", n, o, i, l), J = this.transformCSS(d, $e, "dark", "variable", n, o, i, l);
|
|
961
961
|
return {
|
|
962
962
|
css: `${B}${J}`,
|
|
963
963
|
tokens: X
|
|
@@ -965,13 +965,13 @@ var We = {
|
|
|
965
965
|
},
|
|
966
966
|
getPresetC({ name: t = "", theme: e = {}, params: n, set: r, defaults: o }) {
|
|
967
967
|
var i;
|
|
968
|
-
const { preset:
|
|
969
|
-
return this.getPreset({ name: t, preset:
|
|
968
|
+
const { preset: l, options: s } = e, a = (i = l == null ? void 0 : l.components) == null ? void 0 : i[t];
|
|
969
|
+
return this.getPreset({ name: t, preset: a, options: s, params: n, set: r, defaults: o });
|
|
970
970
|
},
|
|
971
971
|
getPresetD({ name: t = "", theme: e = {}, params: n, set: r, defaults: o }) {
|
|
972
972
|
var i;
|
|
973
|
-
const
|
|
974
|
-
return this.getPreset({ name:
|
|
973
|
+
const l = t.replace("-directive", ""), { preset: s, options: a } = e, u = (i = s == null ? void 0 : s.directives) == null ? void 0 : i[l];
|
|
974
|
+
return this.getPreset({ name: l, preset: u, options: a, params: n, set: r, defaults: o });
|
|
975
975
|
},
|
|
976
976
|
getColorSchemeOption(t, e) {
|
|
977
977
|
var n;
|
|
@@ -982,49 +982,49 @@ var We = {
|
|
|
982
982
|
return o ? `@layer ${Re(o.order || "primeui", n)}` : "";
|
|
983
983
|
},
|
|
984
984
|
getCommonStyleSheet({ name: t = "", theme: e = {}, params: n, props: r = {}, set: o, defaults: i }) {
|
|
985
|
-
const
|
|
986
|
-
return Object.entries(
|
|
985
|
+
const l = this.getCommon({ name: t, theme: e, params: n, set: o, defaults: i }), s = Object.entries(r).reduce((a, [u, d]) => a.push(`${u}="${d}"`) && a, []).join(" ");
|
|
986
|
+
return Object.entries(l || {}).reduce((a, [u, d]) => {
|
|
987
987
|
if (d != null && d.css) {
|
|
988
|
-
const m = ln(d == null ? void 0 : d.css), g = `${
|
|
989
|
-
|
|
988
|
+
const m = ln(d == null ? void 0 : d.css), g = `${u}-variables`;
|
|
989
|
+
a.push(`<style type="text/css" data-primevue-style-id="${g}" ${s}>${m}</style>`);
|
|
990
990
|
}
|
|
991
|
-
return
|
|
991
|
+
return a;
|
|
992
992
|
}, []).join("");
|
|
993
993
|
},
|
|
994
994
|
getStyleSheet({ name: t = "", theme: e = {}, params: n, props: r = {}, set: o, defaults: i }) {
|
|
995
|
-
var
|
|
996
|
-
const s = { name: t, theme: e, params: n, set: o, defaults: i },
|
|
997
|
-
return
|
|
995
|
+
var l;
|
|
996
|
+
const s = { name: t, theme: e, params: n, set: o, defaults: i }, a = (l = t.includes("-directive") ? this.getPresetD(s) : this.getPresetC(s)) == null ? void 0 : l.css, u = Object.entries(r).reduce((d, [m, g]) => d.push(`${m}="${g}"`) && d, []).join(" ");
|
|
997
|
+
return a ? `<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${ln(a)}</style>` : "";
|
|
998
998
|
},
|
|
999
999
|
createTokens(t = {}, e, n = "", r = "", o = {}) {
|
|
1000
|
-
return Object.entries(t).forEach(([i,
|
|
1001
|
-
const s = ft(i, e.variable.excludedKeyRegex) ? n : n ? `${n}.${Ao(i)}` : Ao(i),
|
|
1002
|
-
vt(
|
|
1000
|
+
return Object.entries(t).forEach(([i, l]) => {
|
|
1001
|
+
const s = ft(i, e.variable.excludedKeyRegex) ? n : n ? `${n}.${Ao(i)}` : Ao(i), a = r ? `${r}.${i}` : i;
|
|
1002
|
+
vt(l) ? this.createTokens(l, e, s, a, o) : (o[s] || (o[s] = {
|
|
1003
1003
|
paths: [],
|
|
1004
|
-
computed(
|
|
1005
|
-
if (
|
|
1006
|
-
const m = this.paths.find((g) => g.scheme ===
|
|
1007
|
-
return m == null ? void 0 : m.computed(
|
|
1004
|
+
computed(u, d = {}) {
|
|
1005
|
+
if (u) {
|
|
1006
|
+
const m = this.paths.find((g) => g.scheme === u) || this.paths.find((g) => g.scheme === "none");
|
|
1007
|
+
return m == null ? void 0 : m.computed(u, d.binding);
|
|
1008
1008
|
}
|
|
1009
1009
|
return this.paths.map((m) => m.computed(m.scheme, d[m.scheme]));
|
|
1010
1010
|
}
|
|
1011
1011
|
}), o[s].paths.push({
|
|
1012
|
-
path:
|
|
1013
|
-
value:
|
|
1014
|
-
scheme:
|
|
1015
|
-
computed(
|
|
1012
|
+
path: a,
|
|
1013
|
+
value: l,
|
|
1014
|
+
scheme: a.includes("colorScheme.light") ? "light" : a.includes("colorScheme.dark") ? "dark" : "none",
|
|
1015
|
+
computed(u, d = {}) {
|
|
1016
1016
|
const m = /{([^}]*)}/g;
|
|
1017
|
-
let g =
|
|
1018
|
-
if (d.name = this.path, d.binding || (d.binding = {}), ft(
|
|
1019
|
-
const k =
|
|
1017
|
+
let g = l;
|
|
1018
|
+
if (d.name = this.path, d.binding || (d.binding = {}), ft(l, m)) {
|
|
1019
|
+
const k = l.trim().replaceAll(m, (v) => {
|
|
1020
1020
|
var S, R;
|
|
1021
1021
|
const U = v.replace(/{|}/g, "");
|
|
1022
|
-
return (R = (S = o[U]) == null ? void 0 : S.computed(
|
|
1022
|
+
return (R = (S = o[U]) == null ? void 0 : S.computed(u, d)) == null ? void 0 : R.value;
|
|
1023
1023
|
}), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, E = /var\([^)]+\)/g;
|
|
1024
1024
|
g = ft(k.replace(E, "0"), A) ? `calc(${k})` : k;
|
|
1025
1025
|
}
|
|
1026
1026
|
return Ct(d.binding) && delete d.binding, {
|
|
1027
|
-
colorScheme:
|
|
1027
|
+
colorScheme: u,
|
|
1028
1028
|
path: this.path,
|
|
1029
1029
|
paths: d,
|
|
1030
1030
|
value: g.includes("undefined") ? void 0 : g
|
|
@@ -1035,25 +1035,25 @@ var We = {
|
|
|
1035
1035
|
},
|
|
1036
1036
|
getTokenValue(t, e, n) {
|
|
1037
1037
|
var r;
|
|
1038
|
-
const i = ((
|
|
1039
|
-
return s.length === 1 ? s[0].value : s.reduce((
|
|
1040
|
-
const d =
|
|
1041
|
-
return
|
|
1038
|
+
const i = ((a) => a.split(".").filter((d) => !ft(d.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(e), l = e.includes("colorScheme.light") ? "light" : e.includes("colorScheme.dark") ? "dark" : void 0, s = [(r = t[i]) == null ? void 0 : r.computed(l)].flat().filter((a) => a);
|
|
1039
|
+
return s.length === 1 ? s[0].value : s.reduce((a = {}, u) => {
|
|
1040
|
+
const d = u, { colorScheme: m } = d, g = Xt(d, ["colorScheme"]);
|
|
1041
|
+
return a[m] = g, a;
|
|
1042
1042
|
}, void 0);
|
|
1043
1043
|
},
|
|
1044
|
-
transformCSS(t, e, n, r, o = {}, i,
|
|
1044
|
+
transformCSS(t, e, n, r, o = {}, i, l, s) {
|
|
1045
1045
|
if (ee(e)) {
|
|
1046
|
-
const { cssLayer:
|
|
1046
|
+
const { cssLayer: a } = o;
|
|
1047
1047
|
if (r !== "style") {
|
|
1048
|
-
const
|
|
1049
|
-
e = n === "dark" ?
|
|
1048
|
+
const u = this.getColorSchemeOption(o, l), d = s ? sn(s, e) : e;
|
|
1049
|
+
e = n === "dark" ? u.reduce((m, { selector: g }) => (ee(g) && (m += g.includes("[CSS]") ? g.replace("[CSS]", d) : sn(g, d)), m), "") : sn(s ?? ":root", e);
|
|
1050
1050
|
}
|
|
1051
|
-
if (
|
|
1052
|
-
const
|
|
1051
|
+
if (a) {
|
|
1052
|
+
const u = {
|
|
1053
1053
|
name: "primeui",
|
|
1054
1054
|
order: "primeui"
|
|
1055
1055
|
};
|
|
1056
|
-
vt(
|
|
1056
|
+
vt(a) && (u.name = Re(a.name, { name: t, type: r })), ee(u.name) && (e = sn(`@layer ${u.name}`, e), i == null || i.layerNames(u.name));
|
|
1057
1057
|
}
|
|
1058
1058
|
return e;
|
|
1059
1059
|
}
|
|
@@ -1101,19 +1101,19 @@ var We = {
|
|
|
1101
1101
|
return this.theme;
|
|
1102
1102
|
},
|
|
1103
1103
|
setTheme(t) {
|
|
1104
|
-
this.update({ theme: t }),
|
|
1104
|
+
this.update({ theme: t }), ct.emit("theme:change", t);
|
|
1105
1105
|
},
|
|
1106
1106
|
getPreset() {
|
|
1107
1107
|
return this.preset;
|
|
1108
1108
|
},
|
|
1109
1109
|
setPreset(t) {
|
|
1110
|
-
this._theme = lr(Yt({}, this.theme), { preset: t }), this._tokens = We.createTokens(t, this.defaults), this.clearLoadedStyleNames(),
|
|
1110
|
+
this._theme = lr(Yt({}, this.theme), { preset: t }), this._tokens = We.createTokens(t, this.defaults), this.clearLoadedStyleNames(), ct.emit("preset:change", t), ct.emit("theme:change", this.theme);
|
|
1111
1111
|
},
|
|
1112
1112
|
getOptions() {
|
|
1113
1113
|
return this.options;
|
|
1114
1114
|
},
|
|
1115
1115
|
setOptions(t) {
|
|
1116
|
-
this._theme = lr(Yt({}, this.theme), { options: t }), this.clearLoadedStyleNames(),
|
|
1116
|
+
this._theme = lr(Yt({}, this.theme), { options: t }), this.clearLoadedStyleNames(), ct.emit("options:change", t), ct.emit("theme:change", this.theme);
|
|
1117
1117
|
},
|
|
1118
1118
|
getLayerNames() {
|
|
1119
1119
|
return [...this._layerNames];
|
|
@@ -1173,7 +1173,7 @@ var We = {
|
|
|
1173
1173
|
this._loadingStyles.add(t);
|
|
1174
1174
|
},
|
|
1175
1175
|
onStyleLoaded(t, { name: e }) {
|
|
1176
|
-
this._loadingStyles.size && (this._loadingStyles.delete(e),
|
|
1176
|
+
this._loadingStyles.size && (this._loadingStyles.delete(e), ct.emit(`theme:${e}:load`, t), !this._loadingStyles.size && ct.emit("theme:load"));
|
|
1177
1177
|
}
|
|
1178
1178
|
}, gt = {
|
|
1179
1179
|
_loadedStyleNames: /* @__PURE__ */ new Set(),
|
|
@@ -1245,22 +1245,22 @@ function Na(t) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
var Ua = 0;
|
|
1247
1247
|
function Ha(t) {
|
|
1248
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ie(!1), r = ie(t), o = ie(null), i = _a() ? window.document : void 0,
|
|
1248
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ie(!1), r = ie(t), o = ie(null), i = _a() ? window.document : void 0, l = e.document, s = l === void 0 ? i : l, a = e.immediate, u = a === void 0 ? !0 : a, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Ua) : g, k = e.id, A = k === void 0 ? void 0 : k, E = e.media, v = E === void 0 ? void 0 : E, S = e.nonce, R = S === void 0 ? void 0 : S, U = e.first, Y = U === void 0 ? !1 : U, pe = e.onMounted, ae = pe === void 0 ? void 0 : pe, $e = e.onUpdated, le = $e === void 0 ? void 0 : $e, X = e.onLoad, B = X === void 0 ? void 0 : X, J = e.props, he = J === void 0 ? {} : J, ge = function() {
|
|
1249
1249
|
}, Ze = function(Qe) {
|
|
1250
1250
|
var _t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1251
1251
|
if (s) {
|
|
1252
|
-
var He = Oo(Oo({}, he), _t),
|
|
1253
|
-
o.value = s.querySelector('style[data-primevue-style-id="'.concat(
|
|
1252
|
+
var He = Oo(Oo({}, he), _t), c = He.name || w, p = He.id || A, b = He.nonce || R;
|
|
1253
|
+
o.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(p) || s.createElement("style"), o.value.isConnected || (r.value = Qe || t, Fn(o.value, {
|
|
1254
1254
|
type: "text/css",
|
|
1255
1255
|
id: p,
|
|
1256
1256
|
media: v,
|
|
1257
1257
|
nonce: b
|
|
1258
|
-
}), Y ? s.head.prepend(o.value) : s.head.appendChild(o.value), Sa(o.value, "data-primevue-style-id",
|
|
1258
|
+
}), Y ? s.head.prepend(o.value) : s.head.appendChild(o.value), Sa(o.value, "data-primevue-style-id", c), Fn(o.value, He), o.value.onload = function(T) {
|
|
1259
1259
|
return B == null ? void 0 : B(T, {
|
|
1260
|
-
name:
|
|
1260
|
+
name: c
|
|
1261
1261
|
});
|
|
1262
|
-
}, ae == null || ae(
|
|
1263
|
-
o.value.textContent = T, le == null || le(
|
|
1262
|
+
}, ae == null || ae(c)), !n.value && (ge = dn(r, function(T) {
|
|
1263
|
+
o.value.textContent = T, le == null || le(c);
|
|
1264
1264
|
}, {
|
|
1265
1265
|
immediate: !0
|
|
1266
1266
|
}), n.value = !0);
|
|
@@ -1268,7 +1268,7 @@ function Ha(t) {
|
|
|
1268
1268
|
}, it = function() {
|
|
1269
1269
|
!s || !n.value || (ge(), wa(o.value) && s.head.removeChild(o.value), n.value = !1);
|
|
1270
1270
|
};
|
|
1271
|
-
return
|
|
1271
|
+
return u && !m && Na(Ze), {
|
|
1272
1272
|
id: A,
|
|
1273
1273
|
name: w,
|
|
1274
1274
|
el: o,
|
|
@@ -1308,16 +1308,16 @@ function Mo(t, e) {
|
|
|
1308
1308
|
function Va(t, e) {
|
|
1309
1309
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1310
1310
|
if (n != null) {
|
|
1311
|
-
var r, o, i,
|
|
1311
|
+
var r, o, i, l, s = [], a = !0, u = !1;
|
|
1312
1312
|
try {
|
|
1313
|
-
if (i = (n = n.call(t)).next, e !== 0) for (; !(
|
|
1313
|
+
if (i = (n = n.call(t)).next, e !== 0) for (; !(a = (r = i.call(n)).done) && (s.push(r.value), s.length !== e); a = !0) ;
|
|
1314
1314
|
} catch (d) {
|
|
1315
|
-
|
|
1315
|
+
u = !0, o = d;
|
|
1316
1316
|
} finally {
|
|
1317
1317
|
try {
|
|
1318
|
-
if (!
|
|
1318
|
+
if (!a && n.return != null && (l = n.return(), Object(l) !== l)) return;
|
|
1319
1319
|
} finally {
|
|
1320
|
-
if (
|
|
1320
|
+
if (u) throw o;
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
return s;
|
|
@@ -1336,7 +1336,7 @@ function Do(t, e) {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
return n;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function ur(t) {
|
|
1340
1340
|
for (var e = 1; e < arguments.length; e++) {
|
|
1341
1341
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1342
1342
|
e % 2 ? Do(Object(n), !0).forEach(function(r) {
|
|
@@ -1520,9 +1520,9 @@ var qa = function(e) {
|
|
|
1520
1520
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(i) {
|
|
1521
1521
|
return i;
|
|
1522
1522
|
}, o = r(Re(e, {
|
|
1523
|
-
dt:
|
|
1523
|
+
dt: cr
|
|
1524
1524
|
}));
|
|
1525
|
-
return o ? Ha(ln(o),
|
|
1525
|
+
return o ? Ha(ln(o), ur({
|
|
1526
1526
|
name: this.name
|
|
1527
1527
|
}, n)) : {};
|
|
1528
1528
|
},
|
|
@@ -1555,10 +1555,10 @@ var qa = function(e) {
|
|
|
1555
1555
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1556
1556
|
if (this.css) {
|
|
1557
1557
|
var r = Re(this.css, {
|
|
1558
|
-
dt:
|
|
1559
|
-
}), o = ln("".concat(r).concat(e)), i = Object.entries(n).reduce(function(
|
|
1560
|
-
var
|
|
1561
|
-
return
|
|
1558
|
+
dt: cr
|
|
1559
|
+
}), o = ln("".concat(r).concat(e)), i = Object.entries(n).reduce(function(l, s) {
|
|
1560
|
+
var a = $o(s, 2), u = a[0], d = a[1];
|
|
1561
|
+
return l.push("".concat(u, '="').concat(d, '"')) && l;
|
|
1562
1562
|
}, []).join(" ");
|
|
1563
1563
|
return '<style type="text/css" data-primevue-style-id="'.concat(this.name, '" ').concat(i, ">").concat(o, "</style>");
|
|
1564
1564
|
}
|
|
@@ -1572,17 +1572,17 @@ var qa = function(e) {
|
|
|
1572
1572
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [re.getStyleSheet(this.name, e, n)];
|
|
1573
1573
|
if (this.theme) {
|
|
1574
1574
|
var o = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = Re(this.theme, {
|
|
1575
|
-
dt:
|
|
1576
|
-
}),
|
|
1577
|
-
var d = $o(
|
|
1578
|
-
return
|
|
1575
|
+
dt: cr
|
|
1576
|
+
}), l = ln(re.transformCSS(o, i)), s = Object.entries(n).reduce(function(a, u) {
|
|
1577
|
+
var d = $o(u, 2), m = d[0], g = d[1];
|
|
1578
|
+
return a.push("".concat(m, '="').concat(g, '"')) && a;
|
|
1579
1579
|
}, []).join(" ");
|
|
1580
|
-
r.push('<style type="text/css" data-primevue-style-id="'.concat(o, '" ').concat(s, ">").concat(
|
|
1580
|
+
r.push('<style type="text/css" data-primevue-style-id="'.concat(o, '" ').concat(s, ">").concat(l, "</style>"));
|
|
1581
1581
|
}
|
|
1582
1582
|
return r.join("");
|
|
1583
1583
|
},
|
|
1584
1584
|
extend: function(e) {
|
|
1585
|
-
return
|
|
1585
|
+
return ur(ur({}, this), {}, {
|
|
1586
1586
|
css: void 0,
|
|
1587
1587
|
theme: void 0
|
|
1588
1588
|
}, e);
|
|
@@ -1626,19 +1626,19 @@ function Bo(t, e) {
|
|
|
1626
1626
|
function el(t, e) {
|
|
1627
1627
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1628
1628
|
if (n != null) {
|
|
1629
|
-
var r, o, i,
|
|
1629
|
+
var r, o, i, l, s = [], a = !0, u = !1;
|
|
1630
1630
|
try {
|
|
1631
1631
|
if (i = (n = n.call(t)).next, e === 0) {
|
|
1632
1632
|
if (Object(n) !== n) return;
|
|
1633
|
-
|
|
1634
|
-
} else for (; !(
|
|
1633
|
+
a = !1;
|
|
1634
|
+
} else for (; !(a = (r = i.call(n)).done) && (s.push(r.value), s.length !== e); a = !0) ;
|
|
1635
1635
|
} catch (d) {
|
|
1636
|
-
|
|
1636
|
+
u = !0, o = d;
|
|
1637
1637
|
} finally {
|
|
1638
1638
|
try {
|
|
1639
|
-
if (!
|
|
1639
|
+
if (!a && n.return != null && (l = n.return(), Object(l) !== l)) return;
|
|
1640
1640
|
} finally {
|
|
1641
|
-
if (
|
|
1641
|
+
if (u) throw o;
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
return s;
|
|
@@ -1730,9 +1730,9 @@ var qn = {
|
|
|
1730
1730
|
scopedStyleEl: void 0,
|
|
1731
1731
|
rootEl: void 0,
|
|
1732
1732
|
beforeCreate: function() {
|
|
1733
|
-
var e, n, r, o, i,
|
|
1733
|
+
var e, n, r, o, i, l, s, a, u, d, m, g = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, w = g ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, k = g ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
|
|
1734
1734
|
(o = k || w) === null || o === void 0 || (o = o.hooks) === null || o === void 0 || (i = o.onBeforeCreate) === null || i === void 0 || i.call(o);
|
|
1735
|
-
var A = (
|
|
1735
|
+
var A = (l = this.$primevueConfig) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l._usept, E = A ? (s = this.$primevue) === null || s === void 0 || (s = s.config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s.originalValue : void 0, v = A ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
|
|
1736
1736
|
(d = v || E) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (m = d.onBeforeCreate) === null || m === void 0 || m.call(d);
|
|
1737
1737
|
},
|
|
1738
1738
|
created: function() {
|
|
@@ -1790,8 +1790,8 @@ var qn = {
|
|
|
1790
1790
|
var e, n;
|
|
1791
1791
|
if (!this.isUnstyled) {
|
|
1792
1792
|
if (!re.isStyleNameLoaded("common")) {
|
|
1793
|
-
var r, o, i = ((r = this.$style) === null || r === void 0 || (o = r.getCommonTheme) === null || o === void 0 ? void 0 : o.call(r)) || {},
|
|
1794
|
-
Te.load(
|
|
1793
|
+
var r, o, i = ((r = this.$style) === null || r === void 0 || (o = r.getCommonTheme) === null || o === void 0 ? void 0 : o.call(r)) || {}, l = i.primitive, s = i.semantic;
|
|
1794
|
+
Te.load(l == null ? void 0 : l.css, G({
|
|
1795
1795
|
name: "primitive-variables"
|
|
1796
1796
|
}, this.$styleOptions)), Te.load(s == null ? void 0 : s.css, G({
|
|
1797
1797
|
name: "semantic-variables"
|
|
@@ -1800,7 +1800,7 @@ var qn = {
|
|
|
1800
1800
|
}, this.$styleOptions)), re.setLoadedStyleName("common");
|
|
1801
1801
|
}
|
|
1802
1802
|
if (!re.isStyleNameLoaded((e = this.$style) === null || e === void 0 ? void 0 : e.name) && (n = this.$style) !== null && n !== void 0 && n.name) {
|
|
1803
|
-
var
|
|
1803
|
+
var a, u, d, m, g = ((a = this.$style) === null || a === void 0 || (u = a.getComponentTheme) === null || u === void 0 ? void 0 : u.call(a)) || {}, w = g.css;
|
|
1804
1804
|
(d = this.$style) === null || d === void 0 || d.load(w, G({
|
|
1805
1805
|
name: "".concat(this.$style.name, "-variables")
|
|
1806
1806
|
}, this.$styleOptions)), (m = this.$style) === null || m === void 0 || m.loadTheme(G({
|
|
@@ -1817,7 +1817,7 @@ var qn = {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
},
|
|
1819
1819
|
_loadScopedThemeStyles: function(e) {
|
|
1820
|
-
var n, r, o, i = ((n = this.$style) === null || n === void 0 || (r = n.getPresetTheme) === null || r === void 0 ? void 0 : r.call(n, e, "[".concat(this.$attrSelector, "]"))) || {},
|
|
1820
|
+
var n, r, o, i = ((n = this.$style) === null || n === void 0 || (r = n.getPresetTheme) === null || r === void 0 ? void 0 : r.call(n, e, "[".concat(this.$attrSelector, "]"))) || {}, l = i.css, s = (o = this.$style) === null || o === void 0 ? void 0 : o.load(l, G({
|
|
1821
1821
|
name: "".concat(this.$attrSelector, "-").concat(this.$style.name)
|
|
1822
1822
|
}, this.$styleOptions));
|
|
1823
1823
|
this.scopedStyleEl = s.el;
|
|
@@ -1829,7 +1829,7 @@ var qn = {
|
|
|
1829
1829
|
_themeChangeListener: function() {
|
|
1830
1830
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
|
|
1831
1831
|
};
|
|
1832
|
-
gt.clearLoadedStyleNames(),
|
|
1832
|
+
gt.clearLoadedStyleNames(), ct.on("theme:change", e);
|
|
1833
1833
|
},
|
|
1834
1834
|
_getHostInstance: function(e) {
|
|
1835
1835
|
return e ? this.$options.hostName ? e.$.type.name === this.$options.hostName ? e : this._getHostInstance(e.$parentInstance) : e.$parentInstance : void 0;
|
|
@@ -1843,10 +1843,10 @@ var qn = {
|
|
|
1843
1843
|
return Nr(e, n, r);
|
|
1844
1844
|
},
|
|
1845
1845
|
_getPTValue: function() {
|
|
1846
|
-
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0,
|
|
1846
|
+
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, l = /./g.test(r) && !!o[r.split(".")[0]], s = this._getPropValue("ptOptions") || ((e = this.$primevueConfig) === null || e === void 0 ? void 0 : e.ptOptions) || {}, a = s.mergeSections, u = a === void 0 ? !0 : a, d = s.mergeProps, m = d === void 0 ? !1 : d, g = i ? l ? this._useGlobalPT(this._getPTClassValue, r, o) : this._useDefaultPT(this._getPTClassValue, r, o) : void 0, w = l ? void 0 : this._getPTSelf(n, this._getPTClassValue, r, G(G({}, o), {}, {
|
|
1847
1847
|
global: g || {}
|
|
1848
1848
|
})), k = this._getPTDatasets(r);
|
|
1849
|
-
return
|
|
1849
|
+
return u || !u && w ? m ? this._mergeProps(m, g, w, k) : G(G(G({}, g), w), k) : G(G({}, w), k);
|
|
1850
1850
|
},
|
|
1851
1851
|
_getPTSelf: function() {
|
|
1852
1852
|
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -1870,8 +1870,8 @@ var qn = {
|
|
|
1870
1870
|
},
|
|
1871
1871
|
_getPT: function(e) {
|
|
1872
1872
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 ? arguments[2] : void 0, i = function(s) {
|
|
1873
|
-
var
|
|
1874
|
-
return (
|
|
1873
|
+
var a, u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = o ? o(s) : s, m = Ye(r), g = Ye(n.$name);
|
|
1874
|
+
return (a = u ? m !== g ? d == null ? void 0 : d[m] : void 0 : d == null ? void 0 : d[m]) !== null && a !== void 0 ? a : d;
|
|
1875
1875
|
};
|
|
1876
1876
|
return e != null && e.hasOwnProperty("_usept") ? {
|
|
1877
1877
|
_usept: e._usept,
|
|
@@ -1884,8 +1884,8 @@ var qn = {
|
|
|
1884
1884
|
return n(A, r, o);
|
|
1885
1885
|
};
|
|
1886
1886
|
if (e != null && e.hasOwnProperty("_usept")) {
|
|
1887
|
-
var
|
|
1888
|
-
return g === void 0 && w === void 0 ? void 0 : Le(w) ? w : Le(g) ? g :
|
|
1887
|
+
var l, s = e._usept || ((l = this.$primevueConfig) === null || l === void 0 ? void 0 : l.ptOptions) || {}, a = s.mergeSections, u = a === void 0 ? !0 : a, d = s.mergeProps, m = d === void 0 ? !1 : d, g = i(e.originalValue), w = i(e.value);
|
|
1888
|
+
return g === void 0 && w === void 0 ? void 0 : Le(w) ? w : Le(g) ? g : u || !u && w ? m ? this._mergeProps(m, g, w) : G(G({}, g), w) : w;
|
|
1889
1889
|
}
|
|
1890
1890
|
return i(e);
|
|
1891
1891
|
},
|
|
@@ -1989,9 +1989,9 @@ var qn = {
|
|
|
1989
1989
|
var n = Mn(e, 1), r = n[0];
|
|
1990
1990
|
return r == null ? void 0 : r.startsWith("pt:");
|
|
1991
1991
|
}).reduce(function(e, n) {
|
|
1992
|
-
var r = Mn(n, 2), o = r[0], i = r[1],
|
|
1993
|
-
return
|
|
1994
|
-
return !
|
|
1992
|
+
var r = Mn(n, 2), o = r[0], i = r[1], l = o.split(":"), s = Ja(l), a = s.slice(1);
|
|
1993
|
+
return a == null || a.reduce(function(u, d, m, g) {
|
|
1994
|
+
return !u[d] && (u[d] = m === g.length - 1 ? i : {}), u[d];
|
|
1995
1995
|
}, e), e;
|
|
1996
1996
|
}, {});
|
|
1997
1997
|
},
|
|
@@ -2130,17 +2130,17 @@ var Mi = {
|
|
|
2130
2130
|
}, ll = /* @__PURE__ */ M("path", {
|
|
2131
2131
|
d: "M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",
|
|
2132
2132
|
fill: "currentColor"
|
|
2133
|
-
}, null, -1),
|
|
2134
|
-
function
|
|
2133
|
+
}, null, -1), cl = [ll];
|
|
2134
|
+
function ul(t, e, n, r, o, i) {
|
|
2135
2135
|
return $(), H("svg", W({
|
|
2136
2136
|
width: "14",
|
|
2137
2137
|
height: "14",
|
|
2138
2138
|
viewBox: "0 0 14 14",
|
|
2139
2139
|
fill: "none",
|
|
2140
2140
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2141
|
-
}, t.pti()),
|
|
2141
|
+
}, t.pti()), cl, 16);
|
|
2142
2142
|
}
|
|
2143
|
-
Hr.render =
|
|
2143
|
+
Hr.render = ul;
|
|
2144
2144
|
var jr = {
|
|
2145
2145
|
name: "ChevronRightIcon",
|
|
2146
2146
|
extends: Mi
|
|
@@ -2370,16 +2370,16 @@ function Vo(t, e) {
|
|
|
2370
2370
|
function vl(t, e) {
|
|
2371
2371
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2372
2372
|
if (n != null) {
|
|
2373
|
-
var r, o, i,
|
|
2373
|
+
var r, o, i, l, s = [], a = !0, u = !1;
|
|
2374
2374
|
try {
|
|
2375
|
-
if (i = (n = n.call(t)).next, e !== 0) for (; !(
|
|
2375
|
+
if (i = (n = n.call(t)).next, e !== 0) for (; !(a = (r = i.call(n)).done) && (s.push(r.value), s.length !== e); a = !0) ;
|
|
2376
2376
|
} catch (d) {
|
|
2377
|
-
|
|
2377
|
+
u = !0, o = d;
|
|
2378
2378
|
} finally {
|
|
2379
2379
|
try {
|
|
2380
|
-
if (!
|
|
2380
|
+
if (!a && n.return != null && (l = n.return(), Object(l) !== l)) return;
|
|
2381
2381
|
} finally {
|
|
2382
|
-
if (
|
|
2382
|
+
if (u) throw o;
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
2385
|
return s;
|
|
@@ -2436,12 +2436,12 @@ var K = {
|
|
|
2436
2436
|
},
|
|
2437
2437
|
_getOptionValue: Nr,
|
|
2438
2438
|
_getPTValue: function() {
|
|
2439
|
-
var e, n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "",
|
|
2439
|
+
var e, n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = function() {
|
|
2440
2440
|
var S = K._getOptionValue.apply(K, arguments);
|
|
2441
2441
|
return Le(S) || Ur(S) ? {
|
|
2442
2442
|
class: S
|
|
2443
2443
|
} : S;
|
|
2444
|
-
},
|
|
2444
|
+
}, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = u.mergeSections, m = d === void 0 ? !0 : d, g = u.mergeProps, w = g === void 0 ? !1 : g, k = s ? K._useDefaultPT(r, r.defaultPT(), a, i, l) : void 0, A = K._usePT(r, K._getPT(o, r.$name), a, i, Z(Z({}, l), {}, {
|
|
2445
2445
|
global: k || {}
|
|
2446
2446
|
})), E = K._getPTDatasets(r, i);
|
|
2447
2447
|
return m || !m && A ? w ? K._mergeProps(r, w, k, A, E) : Z(Z(Z({}, k), A), E) : Z(Z({}, A), E);
|
|
@@ -2451,9 +2451,9 @@ var K = {
|
|
|
2451
2451
|
return Z(Z({}, n === "root" && Cr({}, "".concat(r, "name"), Ye(e.$name))), {}, Cr({}, "".concat(r, "section"), Ye(n)));
|
|
2452
2452
|
},
|
|
2453
2453
|
_getPT: function(e) {
|
|
2454
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 ? arguments[2] : void 0, o = function(
|
|
2455
|
-
var s,
|
|
2456
|
-
return (s =
|
|
2454
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 ? arguments[2] : void 0, o = function(l) {
|
|
2455
|
+
var s, a = r ? r(l) : l, u = Ye(n);
|
|
2456
|
+
return (s = a == null ? void 0 : a[u]) !== null && s !== void 0 ? s : a;
|
|
2457
2457
|
};
|
|
2458
2458
|
return e != null && e.hasOwnProperty("_usept") ? {
|
|
2459
2459
|
_usept: e._usept,
|
|
@@ -2462,25 +2462,25 @@ var K = {
|
|
|
2462
2462
|
} : o(e);
|
|
2463
2463
|
},
|
|
2464
2464
|
_usePT: function() {
|
|
2465
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0,
|
|
2465
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0, l = function(E) {
|
|
2466
2466
|
return r(E, o, i);
|
|
2467
2467
|
};
|
|
2468
2468
|
if (n != null && n.hasOwnProperty("_usept")) {
|
|
2469
|
-
var s,
|
|
2469
|
+
var s, a = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, u = a.mergeSections, d = u === void 0 ? !0 : u, m = a.mergeProps, g = m === void 0 ? !1 : m, w = l(n.originalValue), k = l(n.value);
|
|
2470
2470
|
return w === void 0 && k === void 0 ? void 0 : Le(k) ? k : Le(w) ? w : d || !d && k ? g ? K._mergeProps(e, g, w, k) : Z(Z({}, w), k) : k;
|
|
2471
2471
|
}
|
|
2472
|
-
return
|
|
2472
|
+
return l(n);
|
|
2473
2473
|
},
|
|
2474
2474
|
_useDefaultPT: function() {
|
|
2475
2475
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0;
|
|
2476
2476
|
return K._usePT(e, n, r, o, i);
|
|
2477
2477
|
},
|
|
2478
2478
|
_loadStyles: function(e, n, r) {
|
|
2479
|
-
var o, i = K._getConfig(n, r),
|
|
2479
|
+
var o, i = K._getConfig(n, r), l = {
|
|
2480
2480
|
nonce: i == null || (o = i.csp) === null || o === void 0 ? void 0 : o.nonce
|
|
2481
2481
|
};
|
|
2482
|
-
K._loadCoreStyles(e.$instance,
|
|
2483
|
-
return K._loadThemeStyles(e.$instance,
|
|
2482
|
+
K._loadCoreStyles(e.$instance, l), K._loadThemeStyles(e.$instance, l), K._loadScopedThemeStyles(e.$instance, l), K._themeChangeListener(function() {
|
|
2483
|
+
return K._loadThemeStyles(e.$instance, l);
|
|
2484
2484
|
});
|
|
2485
2485
|
},
|
|
2486
2486
|
_loadCoreStyles: function() {
|
|
@@ -2494,10 +2494,10 @@ var K = {
|
|
|
2494
2494
|
var e, n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
|
|
2495
2495
|
if (!(r != null && r.isUnstyled())) {
|
|
2496
2496
|
if (!re.isStyleNameLoaded("common")) {
|
|
2497
|
-
var i,
|
|
2498
|
-
Te.load(
|
|
2497
|
+
var i, l, s = ((i = r.$style) === null || i === void 0 || (l = i.getCommonTheme) === null || l === void 0 ? void 0 : l.call(i)) || {}, a = s.primitive, u = s.semantic;
|
|
2498
|
+
Te.load(a == null ? void 0 : a.css, Z({
|
|
2499
2499
|
name: "primitive-variables"
|
|
2500
|
-
}, o)), Te.load(
|
|
2500
|
+
}, o)), Te.load(u == null ? void 0 : u.css, Z({
|
|
2501
2501
|
name: "semantic-variables"
|
|
2502
2502
|
}, o)), Te.loadTheme(Z({
|
|
2503
2503
|
name: "global-style"
|
|
@@ -2523,23 +2523,23 @@ var K = {
|
|
|
2523
2523
|
_loadScopedThemeStyles: function() {
|
|
2524
2524
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, r = e.preset();
|
|
2525
2525
|
if (r && e.$attrSelector) {
|
|
2526
|
-
var o, i,
|
|
2526
|
+
var o, i, l, s = ((o = e.$style) === null || o === void 0 || (i = o.getPresetTheme) === null || i === void 0 ? void 0 : i.call(o, r, "[".concat(e.$attrSelector, "]"))) || {}, a = s.css, u = (l = e.$style) === null || l === void 0 ? void 0 : l.load(a, Z({
|
|
2527
2527
|
name: "".concat(e.$attrSelector, "-").concat(e.$style.name)
|
|
2528
2528
|
}, n));
|
|
2529
|
-
e.scopedStyleEl =
|
|
2529
|
+
e.scopedStyleEl = u.el;
|
|
2530
2530
|
}
|
|
2531
2531
|
},
|
|
2532
2532
|
_themeChangeListener: function() {
|
|
2533
2533
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
|
|
2534
2534
|
};
|
|
2535
|
-
gt.clearLoadedStyleNames(),
|
|
2535
|
+
gt.clearLoadedStyleNames(), ct.on("theme:change", e);
|
|
2536
2536
|
},
|
|
2537
|
-
_hook: function(e, n, r, o, i,
|
|
2538
|
-
var s,
|
|
2537
|
+
_hook: function(e, n, r, o, i, l) {
|
|
2538
|
+
var s, a, u = "on".concat(Ca(n)), d = K._getConfig(o, i), m = r == null ? void 0 : r.$instance, g = K._usePT(m, K._getPT(o == null || (s = o.value) === null || s === void 0 ? void 0 : s.pt, e), K._getOptionValue, "hooks.".concat(u)), w = K._useDefaultPT(m, d == null || (a = d.pt) === null || a === void 0 || (a = a.directives) === null || a === void 0 ? void 0 : a[e], K._getOptionValue, "hooks.".concat(u)), k = {
|
|
2539
2539
|
el: r,
|
|
2540
2540
|
binding: o,
|
|
2541
2541
|
vnode: i,
|
|
2542
|
-
prevVnode:
|
|
2542
|
+
prevVnode: l
|
|
2543
2543
|
};
|
|
2544
2544
|
g == null || g(m, k), w == null || w(m, k);
|
|
2545
2545
|
},
|
|
@@ -2549,17 +2549,17 @@ var K = {
|
|
|
2549
2549
|
return Br(e) ? e.apply(void 0, r) : W.apply(void 0, r);
|
|
2550
2550
|
},
|
|
2551
2551
|
_extend: function(e) {
|
|
2552
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = function(
|
|
2552
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = function(l, s, a, u, d) {
|
|
2553
2553
|
var m, g, w;
|
|
2554
2554
|
s._$instances = s._$instances || {};
|
|
2555
|
-
var k = K._getConfig(
|
|
2555
|
+
var k = K._getConfig(a, u), A = s._$instances[e] || {}, E = Ct(A) ? Z(Z({}, n), n == null ? void 0 : n.methods) : {};
|
|
2556
2556
|
s._$instances[e] = Z(Z({}, A), {}, {
|
|
2557
2557
|
/* new instance variables to pass in directive methods */
|
|
2558
2558
|
$name: e,
|
|
2559
2559
|
$host: s,
|
|
2560
|
-
$binding:
|
|
2561
|
-
$modifiers:
|
|
2562
|
-
$value:
|
|
2560
|
+
$binding: a,
|
|
2561
|
+
$modifiers: a == null ? void 0 : a.modifiers,
|
|
2562
|
+
$value: a == null ? void 0 : a.value,
|
|
2563
2563
|
$el: A.$el || s || void 0,
|
|
2564
2564
|
$style: Z({
|
|
2565
2565
|
classes: void 0,
|
|
@@ -2609,42 +2609,42 @@ var K = {
|
|
|
2609
2609
|
var S, R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2610
2610
|
return U ? K._getOptionValue((S = s.$instance) === null || S === void 0 || (S = S.$style) === null || S === void 0 ? void 0 : S.inlineStyles, R, Z({}, Y)) : void 0;
|
|
2611
2611
|
}
|
|
2612
|
-
}, E), s.$instance = s._$instances[e], (m = (g = s.$instance)[
|
|
2612
|
+
}, E), s.$instance = s._$instances[e], (m = (g = s.$instance)[l]) === null || m === void 0 || m.call(g, s, a, u, d), s["$".concat(e)] = s.$instance, K._hook(e, l, s, a, u, d), s.$pd || (s.$pd = {}), s.$pd[e] = Z(Z({}, (w = s.$pd) === null || w === void 0 ? void 0 : w[e]), {}, {
|
|
2613
2613
|
name: e,
|
|
2614
2614
|
instance: s.$instance
|
|
2615
2615
|
});
|
|
2616
|
-
}, o = function(
|
|
2617
|
-
var s,
|
|
2618
|
-
g == null || (
|
|
2616
|
+
}, o = function(l) {
|
|
2617
|
+
var s, a, u, d, m, g = (s = l.$instance) === null || s === void 0 ? void 0 : s.watch;
|
|
2618
|
+
g == null || (a = g.config) === null || a === void 0 || a.call(l.$instance, (u = l.$instance) === null || u === void 0 ? void 0 : u.$primevueConfig), jo.on("config:change", function(w) {
|
|
2619
2619
|
var k, A = w.newValue, E = w.oldValue;
|
|
2620
|
-
return g == null || (k = g.config) === null || k === void 0 ? void 0 : k.call(
|
|
2621
|
-
}), g == null || (d = g["config.ripple"]) === null || d === void 0 || d.call(
|
|
2620
|
+
return g == null || (k = g.config) === null || k === void 0 ? void 0 : k.call(l.$instance, A, E);
|
|
2621
|
+
}), g == null || (d = g["config.ripple"]) === null || d === void 0 || d.call(l.$instance, (m = l.$instance) === null || m === void 0 || (m = m.$primevueConfig) === null || m === void 0 ? void 0 : m.ripple), jo.on("config:ripple:change", function(w) {
|
|
2622
2622
|
var k, A = w.newValue, E = w.oldValue;
|
|
2623
|
-
return g == null || (k = g["config.ripple"]) === null || k === void 0 ? void 0 : k.call(
|
|
2623
|
+
return g == null || (k = g["config.ripple"]) === null || k === void 0 ? void 0 : k.call(l.$instance, A, E);
|
|
2624
2624
|
});
|
|
2625
2625
|
};
|
|
2626
2626
|
return {
|
|
2627
|
-
created: function(
|
|
2628
|
-
r("created",
|
|
2627
|
+
created: function(l, s, a, u) {
|
|
2628
|
+
r("created", l, s, a, u);
|
|
2629
2629
|
},
|
|
2630
|
-
beforeMount: function(
|
|
2631
|
-
|
|
2630
|
+
beforeMount: function(l, s, a, u) {
|
|
2631
|
+
l.$attrSelector = Vn("pd"), K._loadStyles(l, s, a), r("beforeMount", l, s, a, u), o(l);
|
|
2632
2632
|
},
|
|
2633
|
-
mounted: function(
|
|
2634
|
-
K._loadStyles(
|
|
2633
|
+
mounted: function(l, s, a, u) {
|
|
2634
|
+
K._loadStyles(l, s, a), r("mounted", l, s, a, u);
|
|
2635
2635
|
},
|
|
2636
|
-
beforeUpdate: function(
|
|
2637
|
-
r("beforeUpdate",
|
|
2636
|
+
beforeUpdate: function(l, s, a, u) {
|
|
2637
|
+
r("beforeUpdate", l, s, a, u);
|
|
2638
2638
|
},
|
|
2639
|
-
updated: function(
|
|
2640
|
-
K._loadStyles(
|
|
2639
|
+
updated: function(l, s, a, u) {
|
|
2640
|
+
K._loadStyles(l, s, a), r("updated", l, s, a, u);
|
|
2641
2641
|
},
|
|
2642
|
-
beforeUnmount: function(
|
|
2643
|
-
r("beforeUnmount",
|
|
2642
|
+
beforeUnmount: function(l, s, a, u) {
|
|
2643
|
+
r("beforeUnmount", l, s, a, u);
|
|
2644
2644
|
},
|
|
2645
|
-
unmounted: function(
|
|
2645
|
+
unmounted: function(l, s, a, u) {
|
|
2646
2646
|
var d;
|
|
2647
|
-
(d =
|
|
2647
|
+
(d = l.$instance) === null || d === void 0 || (d = d.scopedStyleEl) === null || d === void 0 || (d = d.value) === null || d === void 0 || d.remove(), r("unmounted", l, s, a, u);
|
|
2648
2648
|
}
|
|
2649
2649
|
};
|
|
2650
2650
|
},
|
|
@@ -2652,8 +2652,8 @@ var K = {
|
|
|
2652
2652
|
var e = K._getMeta.apply(K, arguments), n = Fo(e, 2), r = n[0], o = n[1];
|
|
2653
2653
|
return Z({
|
|
2654
2654
|
extend: function() {
|
|
2655
|
-
var
|
|
2656
|
-
return K.extend(
|
|
2655
|
+
var l = K._getMeta.apply(K, arguments), s = Fo(l, 2), a = s[0], u = s[1];
|
|
2656
|
+
return K.extend(a, Z(Z(Z({}, o), o == null ? void 0 : o.methods), u));
|
|
2657
2657
|
}
|
|
2658
2658
|
}, K._extend(r, o));
|
|
2659
2659
|
}
|
|
@@ -2778,8 +2778,8 @@ var Ml = Tl.extend("ripple", {
|
|
|
2778
2778
|
var i = Math.max(ha(r), va(r));
|
|
2779
2779
|
o.style.height = i + "px", o.style.width = i + "px";
|
|
2780
2780
|
}
|
|
2781
|
-
var
|
|
2782
|
-
o.style.top =
|
|
2781
|
+
var l = ba(r), s = e.pageX - l.left + document.body.scrollTop - Io(o) / 2, a = e.pageY - l.top + document.body.scrollLeft - Co(o) / 2;
|
|
2782
|
+
o.style.top = a + "px", o.style.left = s + "px", !this.isUnstyled() && pa(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
|
|
2783
2783
|
o && (!n.isUnstyled() && ar(o, "p-ink-active"), o.setAttribute("data-p-ink-active", "false"));
|
|
2784
2784
|
}, 401);
|
|
2785
2785
|
}
|
|
@@ -2955,77 +2955,77 @@ var Ml = Tl.extend("ripple", {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
}, Rl = ["tabindex"], Bl = ["id", "aria-label", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-focused", "data-p-disabled"], Nl = ["onClick", "onMousemove"], Ul = ["href", "target"];
|
|
2957
2957
|
function Hl(t, e, n, r, o, i) {
|
|
2958
|
-
var
|
|
2958
|
+
var l = _n("PanelMenuSub", !0), s = Ks("ripple");
|
|
2959
2959
|
return $(), H("ul", {
|
|
2960
2960
|
class: Q(t.cx("submenu")),
|
|
2961
2961
|
tabindex: n.tabindex
|
|
2962
|
-
}, [($(!0), H(rt, null, $r(n.items, function(
|
|
2962
|
+
}, [($(!0), H(rt, null, $r(n.items, function(a, u) {
|
|
2963
2963
|
return $(), H(rt, {
|
|
2964
|
-
key: i.getItemKey(
|
|
2965
|
-
}, [i.isItemVisible(
|
|
2964
|
+
key: i.getItemKey(a)
|
|
2965
|
+
}, [i.isItemVisible(a) && !i.getItemProp(a, "separator") ? ($(), H("li", W({
|
|
2966
2966
|
key: 0,
|
|
2967
|
-
id: i.getItemId(
|
|
2967
|
+
id: i.getItemId(a),
|
|
2968
2968
|
class: [t.cx("item", {
|
|
2969
|
-
processedItem:
|
|
2970
|
-
}), i.getItemProp(
|
|
2971
|
-
style: i.getItemProp(
|
|
2969
|
+
processedItem: a
|
|
2970
|
+
}), i.getItemProp(a, "class")],
|
|
2971
|
+
style: i.getItemProp(a, "style"),
|
|
2972
2972
|
role: "treeitem",
|
|
2973
|
-
"aria-label": i.getItemLabel(
|
|
2974
|
-
"aria-expanded": i.isItemGroup(
|
|
2973
|
+
"aria-label": i.getItemLabel(a),
|
|
2974
|
+
"aria-expanded": i.isItemGroup(a) ? i.isItemActive(a) : void 0,
|
|
2975
2975
|
"aria-level": n.level + 1,
|
|
2976
2976
|
"aria-setsize": i.getAriaSetSize(),
|
|
2977
|
-
"aria-posinset": i.getAriaPosInset(
|
|
2977
|
+
"aria-posinset": i.getAriaPosInset(u),
|
|
2978
2978
|
ref_for: !0
|
|
2979
|
-
}, i.getPTOptions("item",
|
|
2980
|
-
"data-p-focused": i.isItemFocused(
|
|
2981
|
-
"data-p-disabled": i.isItemDisabled(
|
|
2979
|
+
}, i.getPTOptions("item", a, u), {
|
|
2980
|
+
"data-p-focused": i.isItemFocused(a),
|
|
2981
|
+
"data-p-disabled": i.isItemDisabled(a)
|
|
2982
2982
|
}), [M("div", W({
|
|
2983
2983
|
class: t.cx("itemContent"),
|
|
2984
2984
|
onClick: function(m) {
|
|
2985
|
-
return i.onItemClick(m,
|
|
2985
|
+
return i.onItemClick(m, a);
|
|
2986
2986
|
},
|
|
2987
2987
|
onMousemove: function(m) {
|
|
2988
|
-
return i.onItemMouseMove(m,
|
|
2988
|
+
return i.onItemMouseMove(m, a);
|
|
2989
2989
|
},
|
|
2990
2990
|
ref_for: !0
|
|
2991
|
-
}, i.getPTOptions("itemContent",
|
|
2991
|
+
}, i.getPTOptions("itemContent", a, u)), [n.templates.item ? ($(), ue(yt(n.templates.item), {
|
|
2992
2992
|
key: 1,
|
|
2993
|
-
item:
|
|
2993
|
+
item: a.item,
|
|
2994
2994
|
root: !1,
|
|
2995
|
-
active: i.isItemActive(
|
|
2996
|
-
hasSubmenu: i.isItemGroup(
|
|
2997
|
-
label: i.getItemLabel(
|
|
2998
|
-
props: i.getMenuItemProps(
|
|
2995
|
+
active: i.isItemActive(a),
|
|
2996
|
+
hasSubmenu: i.isItemGroup(a),
|
|
2997
|
+
label: i.getItemLabel(a),
|
|
2998
|
+
props: i.getMenuItemProps(a, u)
|
|
2999
2999
|
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : _r(($(), H("a", W({
|
|
3000
3000
|
key: 0,
|
|
3001
|
-
href: i.getItemProp(
|
|
3001
|
+
href: i.getItemProp(a, "url"),
|
|
3002
3002
|
class: t.cx("itemLink"),
|
|
3003
|
-
target: i.getItemProp(
|
|
3003
|
+
target: i.getItemProp(a, "target"),
|
|
3004
3004
|
tabindex: "-1",
|
|
3005
3005
|
ref_for: !0
|
|
3006
|
-
}, i.getPTOptions("itemLink",
|
|
3006
|
+
}, i.getPTOptions("itemLink", a, u)), [i.isItemGroup(a) ? ($(), H(rt, {
|
|
3007
3007
|
key: 0
|
|
3008
|
-
}, [n.templates.submenuicon ? ($(),
|
|
3008
|
+
}, [n.templates.submenuicon ? ($(), ue(yt(n.templates.submenuicon), W({
|
|
3009
3009
|
key: 0,
|
|
3010
3010
|
class: t.cx("submenuIcon"),
|
|
3011
|
-
active: i.isItemActive(
|
|
3011
|
+
active: i.isItemActive(a),
|
|
3012
3012
|
ref_for: !0
|
|
3013
|
-
}, i.getPTOptions("submenuIcon",
|
|
3013
|
+
}, i.getPTOptions("submenuIcon", a, u)), null, 16, ["class", "active"])) : ($(), ue(yt(i.isItemActive(a) ? "ChevronDownIcon" : "ChevronRightIcon"), W({
|
|
3014
3014
|
key: 1,
|
|
3015
3015
|
class: t.cx("submenuIcon"),
|
|
3016
3016
|
ref_for: !0
|
|
3017
|
-
}, i.getPTOptions("submenuIcon",
|
|
3017
|
+
}, i.getPTOptions("submenuIcon", a, u)), null, 16, ["class"]))], 64)) : se("", !0), n.templates.itemicon ? ($(), ue(yt(n.templates.itemicon), {
|
|
3018
3018
|
key: 1,
|
|
3019
|
-
item:
|
|
3019
|
+
item: a.item,
|
|
3020
3020
|
class: Q(t.cx("itemIcon"))
|
|
3021
|
-
}, null, 8, ["item", "class"])) : i.getItemProp(
|
|
3021
|
+
}, null, 8, ["item", "class"])) : i.getItemProp(a, "icon") ? ($(), H("span", W({
|
|
3022
3022
|
key: 2,
|
|
3023
|
-
class: [t.cx("itemIcon"), i.getItemProp(
|
|
3023
|
+
class: [t.cx("itemIcon"), i.getItemProp(a, "icon")],
|
|
3024
3024
|
ref_for: !0
|
|
3025
|
-
}, i.getPTOptions("itemIcon",
|
|
3025
|
+
}, i.getPTOptions("itemIcon", a, u)), null, 16)) : se("", !0), M("span", W({
|
|
3026
3026
|
class: t.cx("itemLabel"),
|
|
3027
3027
|
ref_for: !0
|
|
3028
|
-
}, i.getPTOptions("itemLabel",
|
|
3028
|
+
}, i.getPTOptions("itemLabel", a, u)), Me(i.getItemLabel(a)), 17)], 16, Ul)), [[s]])], 16, Nl), De(Mr, W({
|
|
3029
3029
|
name: "p-toggleable-content",
|
|
3030
3030
|
ref_for: !0
|
|
3031
3031
|
}, t.ptm("transition")), {
|
|
@@ -3033,13 +3033,13 @@ function Hl(t, e, n, r, o, i) {
|
|
|
3033
3033
|
return [_r(M("div", W({
|
|
3034
3034
|
class: t.cx("contentContainer"),
|
|
3035
3035
|
ref_for: !0
|
|
3036
|
-
}, t.ptm("contentContainer")), [i.isItemVisible(
|
|
3036
|
+
}, t.ptm("contentContainer")), [i.isItemVisible(a) && i.isItemGroup(a) ? ($(), ue(l, W({
|
|
3037
3037
|
key: 0,
|
|
3038
|
-
id: i.getItemId(
|
|
3038
|
+
id: i.getItemId(a) + "_list",
|
|
3039
3039
|
role: "group",
|
|
3040
3040
|
panelId: n.panelId,
|
|
3041
3041
|
focusedItemId: n.focusedItemId,
|
|
3042
|
-
items:
|
|
3042
|
+
items: a.items,
|
|
3043
3043
|
level: n.level + 1,
|
|
3044
3044
|
templates: n.templates,
|
|
3045
3045
|
activeItemPath: n.activeItemPath,
|
|
@@ -3050,13 +3050,13 @@ function Hl(t, e, n, r, o, i) {
|
|
|
3050
3050
|
pt: t.pt,
|
|
3051
3051
|
unstyled: t.unstyled,
|
|
3052
3052
|
ref_for: !0
|
|
3053
|
-
}, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : se("", !0)], 16), [[_i, i.isItemActive(
|
|
3053
|
+
}, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : se("", !0)], 16), [[_i, i.isItemActive(a)]])];
|
|
3054
3054
|
}),
|
|
3055
3055
|
_: 2
|
|
3056
|
-
}, 1040)], 16, Bl)) : se("", !0), i.isItemVisible(
|
|
3056
|
+
}, 1040)], 16, Bl)) : se("", !0), i.isItemVisible(a) && i.getItemProp(a, "separator") ? ($(), H("li", W({
|
|
3057
3057
|
key: 1,
|
|
3058
|
-
style: i.getItemProp(
|
|
3059
|
-
class: [t.cx("separator"), i.getItemProp(
|
|
3058
|
+
style: i.getItemProp(a, "style"),
|
|
3059
|
+
class: [t.cx("separator"), i.getItemProp(a, "class")],
|
|
3060
3060
|
role: "separator",
|
|
3061
3061
|
ref_for: !0
|
|
3062
3062
|
}, t.ptm("separator")), null, 16)) : se("", !0)], 64);
|
|
@@ -3085,16 +3085,16 @@ function Wo(t, e) {
|
|
|
3085
3085
|
function Kl(t, e) {
|
|
3086
3086
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3087
3087
|
if (n != null) {
|
|
3088
|
-
var r, o, i,
|
|
3088
|
+
var r, o, i, l, s = [], a = !0, u = !1;
|
|
3089
3089
|
try {
|
|
3090
|
-
if (i = (n = n.call(t)).next, e !== 0) for (; !(
|
|
3090
|
+
if (i = (n = n.call(t)).next, e !== 0) for (; !(a = (r = i.call(n)).done) && (s.push(r.value), s.length !== e); a = !0) ;
|
|
3091
3091
|
} catch (d) {
|
|
3092
|
-
|
|
3092
|
+
u = !0, o = d;
|
|
3093
3093
|
} finally {
|
|
3094
3094
|
try {
|
|
3095
|
-
if (!
|
|
3095
|
+
if (!a && n.return != null && (l = n.return(), Object(l) !== l)) return;
|
|
3096
3096
|
} finally {
|
|
3097
|
-
if (
|
|
3097
|
+
if (u) throw o;
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
3100
3100
|
return s;
|
|
@@ -3337,12 +3337,12 @@ var Ri = {
|
|
|
3337
3337
|
this.searchValue = (this.searchValue || "") + n;
|
|
3338
3338
|
var o = null, i = !1;
|
|
3339
3339
|
if (ee(this.focusedItem)) {
|
|
3340
|
-
var
|
|
3340
|
+
var l = this.visibleItems.findIndex(function(s) {
|
|
3341
3341
|
return s.key === r.focusedItem.key;
|
|
3342
3342
|
});
|
|
3343
|
-
o = this.visibleItems.slice(
|
|
3343
|
+
o = this.visibleItems.slice(l).find(function(s) {
|
|
3344
3344
|
return r.isItemMatched(s);
|
|
3345
|
-
}), o = Ct(o) ? this.visibleItems.slice(0,
|
|
3345
|
+
}), o = Ct(o) ? this.visibleItems.slice(0, l).find(function(s) {
|
|
3346
3346
|
return r.isItemMatched(s);
|
|
3347
3347
|
}) : o;
|
|
3348
3348
|
} else
|
|
@@ -3358,7 +3358,7 @@ var Ri = {
|
|
|
3358
3358
|
}, 500), i;
|
|
3359
3359
|
},
|
|
3360
3360
|
changeFocusedItem: function(e) {
|
|
3361
|
-
var n = e.originalEvent, r = e.processedItem, o = e.focusOnNext, i = e.selfCheck,
|
|
3361
|
+
var n = e.originalEvent, r = e.processedItem, o = e.focusOnNext, i = e.selfCheck, l = e.allowHeaderFocus, s = l === void 0 ? !0 : l;
|
|
3362
3362
|
ee(this.focusedItem) && this.focusedItem.key !== r.key ? (this.focusedItem = r, this.scrollInView()) : s && this.$emit("header-focus", {
|
|
3363
3363
|
originalEvent: n,
|
|
3364
3364
|
focusOnNext: o,
|
|
@@ -3375,10 +3375,10 @@ var Ri = {
|
|
|
3375
3375
|
autoUpdateActiveItemPath: function(e) {
|
|
3376
3376
|
var n = this;
|
|
3377
3377
|
this.activeItemPath = Object.entries(e || {}).reduce(function(r, o) {
|
|
3378
|
-
var i = jl(o, 2),
|
|
3378
|
+
var i = jl(o, 2), l = i[0], s = i[1];
|
|
3379
3379
|
if (s) {
|
|
3380
|
-
var
|
|
3381
|
-
|
|
3380
|
+
var a = n.findProcessedItemByItemKey(l);
|
|
3381
|
+
a && r.push(a);
|
|
3382
3382
|
}
|
|
3383
3383
|
return r;
|
|
3384
3384
|
}, []);
|
|
@@ -3389,23 +3389,23 @@ var Ri = {
|
|
|
3389
3389
|
for (var o = 0; o < n.length; o++) {
|
|
3390
3390
|
var i = n[o];
|
|
3391
3391
|
if (this.getItemProp(i, "key") === e) return i;
|
|
3392
|
-
var
|
|
3393
|
-
if (
|
|
3392
|
+
var l = this.findProcessedItemByItemKey(e, i.items, r + 1);
|
|
3393
|
+
if (l) return l;
|
|
3394
3394
|
}
|
|
3395
3395
|
},
|
|
3396
3396
|
createProcessedItems: function(e) {
|
|
3397
|
-
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "",
|
|
3398
|
-
return e && e.forEach(function(s,
|
|
3399
|
-
var
|
|
3397
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "", l = [];
|
|
3398
|
+
return e && e.forEach(function(s, a) {
|
|
3399
|
+
var u = (i !== "" ? i + "_" : "") + a, d = {
|
|
3400
3400
|
item: s,
|
|
3401
|
-
index:
|
|
3401
|
+
index: a,
|
|
3402
3402
|
level: r,
|
|
3403
|
-
key:
|
|
3403
|
+
key: u,
|
|
3404
3404
|
parent: o,
|
|
3405
3405
|
parentKey: i
|
|
3406
3406
|
};
|
|
3407
|
-
d.items = n.createProcessedItems(s.items, r + 1, d,
|
|
3408
|
-
}),
|
|
3407
|
+
d.items = n.createProcessedItems(s.items, r + 1, d, u), l.push(d);
|
|
3408
|
+
}), l;
|
|
3409
3409
|
},
|
|
3410
3410
|
flatItems: function(e) {
|
|
3411
3411
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
@@ -3430,8 +3430,8 @@ var Ri = {
|
|
|
3430
3430
|
}
|
|
3431
3431
|
};
|
|
3432
3432
|
function Wl(t, e, n, r, o, i) {
|
|
3433
|
-
var
|
|
3434
|
-
return $(),
|
|
3433
|
+
var l = _n("PanelMenuSub");
|
|
3434
|
+
return $(), ue(l, W({
|
|
3435
3435
|
id: n.panelId + "_list",
|
|
3436
3436
|
class: t.cx("rootList"),
|
|
3437
3437
|
role: "tree",
|
|
@@ -3631,17 +3631,17 @@ var Bi = {
|
|
|
3631
3631
|
return this.findPrevHeader(this.$el.lastElementChild, !0);
|
|
3632
3632
|
},
|
|
3633
3633
|
updateFocusedHeader: function(e) {
|
|
3634
|
-
var n = e.originalEvent, r = e.focusOnNext, o = e.selfCheck, i = n.currentTarget.closest('[data-pc-section="panel"]'),
|
|
3635
|
-
|
|
3634
|
+
var n = e.originalEvent, r = e.focusOnNext, o = e.selfCheck, i = n.currentTarget.closest('[data-pc-section="panel"]'), l = o ? qe(i, '[data-pc-section="header"]') : r ? this.findNextHeader(i) : this.findPrevHeader(i);
|
|
3635
|
+
l ? this.changeFocusedHeader(n, l) : r ? this.onHeaderHomeKey(n) : this.onHeaderEndKey(n);
|
|
3636
3636
|
},
|
|
3637
3637
|
changeActiveItem: function(e, n) {
|
|
3638
3638
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3639
3639
|
if (!this.isItemDisabled(n)) {
|
|
3640
3640
|
var o = this.isItemActive(n), i = o ? "panel-close" : "panel-open";
|
|
3641
|
-
this.activeItem = r ? n : this.activeItem && Bt(n, this.activeItem) ? null : n, this.multiple && (this.activeItems.some(function(
|
|
3642
|
-
return Bt(n,
|
|
3643
|
-
}) ? this.activeItems = this.activeItems.filter(function(
|
|
3644
|
-
return !Bt(n,
|
|
3641
|
+
this.activeItem = r ? n : this.activeItem && Bt(n, this.activeItem) ? null : n, this.multiple && (this.activeItems.some(function(l) {
|
|
3642
|
+
return Bt(n, l);
|
|
3643
|
+
}) ? this.activeItems = this.activeItems.filter(function(l) {
|
|
3644
|
+
return !Bt(n, l);
|
|
3645
3645
|
}) : this.activeItems.push(n)), this.changeExpandedKeys({
|
|
3646
3646
|
item: n,
|
|
3647
3647
|
expanded: !o
|
|
@@ -3677,22 +3677,22 @@ var Bi = {
|
|
|
3677
3677
|
ChevronRightIcon: jr,
|
|
3678
3678
|
ChevronDownIcon: Hr
|
|
3679
3679
|
}
|
|
3680
|
-
}, Zl = ["id"], Jl = ["id", "tabindex", "aria-label", "aria-expanded", "aria-controls", "aria-disabled", "onClick", "onKeydown", "data-p-active", "data-p-disabled"], Ql = ["href"],
|
|
3681
|
-
function
|
|
3682
|
-
var
|
|
3680
|
+
}, Zl = ["id"], Jl = ["id", "tabindex", "aria-label", "aria-expanded", "aria-controls", "aria-disabled", "onClick", "onKeydown", "data-p-active", "data-p-disabled"], Ql = ["href"], ec = ["id", "aria-labelledby"];
|
|
3681
|
+
function tc(t, e, n, r, o, i) {
|
|
3682
|
+
var l = _n("PanelMenuList");
|
|
3683
3683
|
return $(), H("div", W({
|
|
3684
3684
|
id: o.id,
|
|
3685
3685
|
class: t.cx("root")
|
|
3686
|
-
}, t.ptmi("root")), [($(!0), H(rt, null, $r(t.model, function(s,
|
|
3686
|
+
}, t.ptmi("root")), [($(!0), H(rt, null, $r(t.model, function(s, a) {
|
|
3687
3687
|
return $(), H(rt, {
|
|
3688
|
-
key: i.getPanelKey(
|
|
3688
|
+
key: i.getPanelKey(a)
|
|
3689
3689
|
}, [i.isItemVisible(s) ? ($(), H("div", W({
|
|
3690
3690
|
key: 0,
|
|
3691
3691
|
style: i.getItemProp(s, "style"),
|
|
3692
3692
|
class: [t.cx("panel"), i.getItemProp(s, "class")],
|
|
3693
3693
|
ref_for: !0
|
|
3694
3694
|
}, t.ptm("panel")), [M("div", W({
|
|
3695
|
-
id: i.getHeaderId(
|
|
3695
|
+
id: i.getHeaderId(a),
|
|
3696
3696
|
class: [t.cx("header", {
|
|
3697
3697
|
item: s
|
|
3698
3698
|
}), i.getItemProp(s, "headerClass")],
|
|
@@ -3700,7 +3700,7 @@ function tu(t, e, n, r, o, i) {
|
|
|
3700
3700
|
role: "button",
|
|
3701
3701
|
"aria-label": i.getItemLabel(s),
|
|
3702
3702
|
"aria-expanded": i.isItemActive(s),
|
|
3703
|
-
"aria-controls": i.getContentId(
|
|
3703
|
+
"aria-controls": i.getContentId(a),
|
|
3704
3704
|
"aria-disabled": i.isItemDisabled(s),
|
|
3705
3705
|
onClick: function(d) {
|
|
3706
3706
|
return i.onHeaderClick(d, s);
|
|
@@ -3709,35 +3709,35 @@ function tu(t, e, n, r, o, i) {
|
|
|
3709
3709
|
return i.onHeaderKeyDown(d, s);
|
|
3710
3710
|
},
|
|
3711
3711
|
ref_for: !0
|
|
3712
|
-
}, i.getPTOptions("header", s,
|
|
3712
|
+
}, i.getPTOptions("header", s, a), {
|
|
3713
3713
|
"data-p-active": i.isItemActive(s),
|
|
3714
3714
|
"data-p-disabled": i.isItemDisabled(s)
|
|
3715
3715
|
}), [M("div", W({
|
|
3716
3716
|
class: t.cx("headerContent"),
|
|
3717
3717
|
ref_for: !0
|
|
3718
|
-
}, i.getPTOptions("headerContent", s,
|
|
3718
|
+
}, i.getPTOptions("headerContent", s, a)), [t.$slots.item ? ($(), ue(yt(t.$slots.item), {
|
|
3719
3719
|
key: 1,
|
|
3720
3720
|
item: s,
|
|
3721
3721
|
root: !0,
|
|
3722
3722
|
active: i.isItemActive(s),
|
|
3723
3723
|
hasSubmenu: i.getItemProp(s, "items"),
|
|
3724
3724
|
label: i.getItemLabel(s),
|
|
3725
|
-
props: i.getMenuItemProps(s,
|
|
3725
|
+
props: i.getMenuItemProps(s, a)
|
|
3726
3726
|
}, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : ($(), H("a", W({
|
|
3727
3727
|
key: 0,
|
|
3728
3728
|
href: i.getItemProp(s, "url"),
|
|
3729
3729
|
class: t.cx("headerLink"),
|
|
3730
3730
|
tabindex: -1,
|
|
3731
3731
|
ref_for: !0
|
|
3732
|
-
}, i.getPTOptions("headerLink", s,
|
|
3732
|
+
}, i.getPTOptions("headerLink", s, a)), [i.getItemProp(s, "items") ? fe(t.$slots, "submenuicon", {
|
|
3733
3733
|
key: 0,
|
|
3734
3734
|
active: i.isItemActive(s)
|
|
3735
3735
|
}, function() {
|
|
3736
|
-
return [($(),
|
|
3736
|
+
return [($(), ue(yt(i.isItemActive(s) ? "ChevronDownIcon" : "ChevronRightIcon"), W({
|
|
3737
3737
|
class: t.cx("submenuIcon"),
|
|
3738
3738
|
ref_for: !0
|
|
3739
|
-
}, i.getPTOptions("submenuIcon", s,
|
|
3740
|
-
}) : se("", !0), t.$slots.headericon ? ($(),
|
|
3739
|
+
}, i.getPTOptions("submenuIcon", s, a)), null, 16, ["class"]))];
|
|
3740
|
+
}) : se("", !0), t.$slots.headericon ? ($(), ue(yt(t.$slots.headericon), {
|
|
3741
3741
|
key: 1,
|
|
3742
3742
|
item: s,
|
|
3743
3743
|
class: Q([t.cx("headerIcon"), i.getItemProp(s, "icon")])
|
|
@@ -3745,26 +3745,26 @@ function tu(t, e, n, r, o, i) {
|
|
|
3745
3745
|
key: 2,
|
|
3746
3746
|
class: [t.cx("headerIcon"), i.getItemProp(s, "icon")],
|
|
3747
3747
|
ref_for: !0
|
|
3748
|
-
}, i.getPTOptions("headerIcon", s,
|
|
3748
|
+
}, i.getPTOptions("headerIcon", s, a)), null, 16)) : se("", !0), M("span", W({
|
|
3749
3749
|
class: t.cx("headerLabel"),
|
|
3750
3750
|
ref_for: !0
|
|
3751
|
-
}, i.getPTOptions("headerLabel", s,
|
|
3751
|
+
}, i.getPTOptions("headerLabel", s, a)), Me(i.getItemLabel(s)), 17)], 16, Ql))], 16)], 16, Jl), De(Mr, W({
|
|
3752
3752
|
name: "p-toggleable-content",
|
|
3753
3753
|
ref_for: !0
|
|
3754
3754
|
}, t.ptm("transition")), {
|
|
3755
3755
|
default: It(function() {
|
|
3756
3756
|
return [_r(M("div", W({
|
|
3757
|
-
id: i.getContentId(
|
|
3757
|
+
id: i.getContentId(a),
|
|
3758
3758
|
class: t.cx("contentContainer"),
|
|
3759
3759
|
role: "region",
|
|
3760
|
-
"aria-labelledby": i.getHeaderId(
|
|
3760
|
+
"aria-labelledby": i.getHeaderId(a),
|
|
3761
3761
|
ref_for: !0
|
|
3762
3762
|
}, t.ptm("contentContainer")), [i.getItemProp(s, "items") ? ($(), H("div", W({
|
|
3763
3763
|
key: 0,
|
|
3764
3764
|
class: t.cx("content"),
|
|
3765
3765
|
ref_for: !0
|
|
3766
|
-
}, t.ptm("content")), [De(
|
|
3767
|
-
panelId: i.getPanelId(
|
|
3766
|
+
}, t.ptm("content")), [De(l, {
|
|
3767
|
+
panelId: i.getPanelId(a),
|
|
3768
3768
|
items: i.getItemProp(s, "items"),
|
|
3769
3769
|
templates: t.$slots,
|
|
3770
3770
|
expandedKeys: t.expandedKeys,
|
|
@@ -3772,84 +3772,90 @@ function tu(t, e, n, r, o, i) {
|
|
|
3772
3772
|
onHeaderFocus: i.updateFocusedHeader,
|
|
3773
3773
|
pt: t.pt,
|
|
3774
3774
|
unstyled: t.unstyled
|
|
3775
|
-
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "pt", "unstyled"])], 16)) : se("", !0)], 16,
|
|
3775
|
+
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "pt", "unstyled"])], 16)) : se("", !0)], 16, ec), [[_i, i.isItemActive(s)]])];
|
|
3776
3776
|
}),
|
|
3777
3777
|
_: 2
|
|
3778
3778
|
}, 1040)], 16)) : se("", !0)], 64);
|
|
3779
3779
|
}), 128))], 16, Zl);
|
|
3780
3780
|
}
|
|
3781
|
-
Bi.render =
|
|
3782
|
-
const
|
|
3781
|
+
Bi.render = tc;
|
|
3782
|
+
const nc = { class: "panel-menu-wrapper" }, rc = ["data-active", "onClick"], oc = {
|
|
3783
3783
|
key: 0,
|
|
3784
3784
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
3785
|
-
},
|
|
3785
|
+
}, ic = ["textContent"], sc = ["onClick"], ac = {
|
|
3786
3786
|
key: 0,
|
|
3787
3787
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
3788
|
-
},
|
|
3788
|
+
}, lc = ["textContent"], cc = {
|
|
3789
3789
|
key: 2,
|
|
3790
3790
|
class: /* @__PURE__ */ Q(["item-menu sf-ripple"])
|
|
3791
|
-
},
|
|
3791
|
+
}, uc = {
|
|
3792
3792
|
key: 0,
|
|
3793
3793
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
3794
|
-
},
|
|
3794
|
+
}, dc = ["textContent"], fc = /* @__PURE__ */ Ve({
|
|
3795
3795
|
__name: "NavMenu",
|
|
3796
3796
|
props: {
|
|
3797
3797
|
items: {}
|
|
3798
3798
|
},
|
|
3799
3799
|
setup(t) {
|
|
3800
|
-
const e = t, n = (
|
|
3801
|
-
|
|
3802
|
-
}, r = (
|
|
3803
|
-
|
|
3804
|
-
};
|
|
3805
|
-
return (
|
|
3806
|
-
const
|
|
3807
|
-
return $(), H("div",
|
|
3800
|
+
const e = t, n = (i, l) => {
|
|
3801
|
+
i.disabled || l();
|
|
3802
|
+
}, r = (i, l) => {
|
|
3803
|
+
l.disabled || typeof l.command == "function" && l.command(i);
|
|
3804
|
+
}, o = (i) => typeof i.label == "function" ? i.label() : i.label ?? "Item";
|
|
3805
|
+
return (i, l) => {
|
|
3806
|
+
const s = _n("router-link");
|
|
3807
|
+
return $(), H("div", nc, [
|
|
3808
3808
|
De(oe(Bi), {
|
|
3809
3809
|
model: e.items,
|
|
3810
3810
|
unstyled: !0
|
|
3811
3811
|
}, {
|
|
3812
|
-
item: It(({ item:
|
|
3813
|
-
|
|
3812
|
+
item: It(({ item: a, active: u }) => [
|
|
3813
|
+
a.to ? ($(), ue(s, {
|
|
3814
3814
|
key: 0,
|
|
3815
|
-
to:
|
|
3815
|
+
to: a.to,
|
|
3816
3816
|
custom: ""
|
|
3817
3817
|
}, {
|
|
3818
|
-
default: It(({ navigate:
|
|
3818
|
+
default: It(({ navigate: d, isActive: m }) => [
|
|
3819
3819
|
M("a", {
|
|
3820
3820
|
class: Q([
|
|
3821
3821
|
"item-menu",
|
|
3822
3822
|
{
|
|
3823
|
-
"sf-ripple": !
|
|
3824
|
-
disabled:
|
|
3823
|
+
"sf-ripple": !a.disabled,
|
|
3824
|
+
disabled: a.disabled
|
|
3825
3825
|
}
|
|
3826
3826
|
]),
|
|
3827
|
-
"data-active":
|
|
3828
|
-
onClick: wr((
|
|
3827
|
+
"data-active": m,
|
|
3828
|
+
onClick: wr((g) => n(a, d), ["prevent"])
|
|
3829
3829
|
}, [
|
|
3830
|
-
|
|
3831
|
-
M("span",
|
|
3832
|
-
|
|
3830
|
+
a.icon ? ($(), H("span", oc, Me(a.icon), 1)) : se("", !0),
|
|
3831
|
+
M("span", {
|
|
3832
|
+
textContent: Me(o(a))
|
|
3833
|
+
}, null, 8, ic)
|
|
3834
|
+
], 10, rc)
|
|
3833
3835
|
]),
|
|
3834
3836
|
_: 2
|
|
3835
|
-
}, 1032, ["to"])) : typeof
|
|
3837
|
+
}, 1032, ["to"])) : typeof a.command == "function" ? ($(), H("span", {
|
|
3836
3838
|
key: 1,
|
|
3837
3839
|
class: Q([
|
|
3838
3840
|
"item-menu",
|
|
3839
|
-
{ "sf-ripple": !
|
|
3841
|
+
{ "sf-ripple": !a.disabled, disabled: a.disabled }
|
|
3840
3842
|
]),
|
|
3841
|
-
onClick: wr((
|
|
3843
|
+
onClick: wr((d) => r(d, a), ["stop"])
|
|
3842
3844
|
}, [
|
|
3843
|
-
|
|
3844
|
-
M("span",
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3845
|
+
a.icon ? ($(), H("span", ac, Me(a.icon), 1)) : se("", !0),
|
|
3846
|
+
M("span", {
|
|
3847
|
+
textContent: Me(o(a))
|
|
3848
|
+
}, null, 8, lc)
|
|
3849
|
+
], 10, sc)) : ($(), H("a", cc, [
|
|
3850
|
+
a.icon ? ($(), H("span", uc, Me(a.icon), 1)) : se("", !0),
|
|
3851
|
+
M("span", {
|
|
3852
|
+
textContent: Me(o(a))
|
|
3853
|
+
}, null, 8, dc),
|
|
3854
|
+
l[0] || (l[0] = M("div", { class: "sep" }, null, -1)),
|
|
3849
3855
|
M("span", {
|
|
3850
3856
|
class: Q([
|
|
3851
3857
|
"material-symbols-outlined arrow",
|
|
3852
|
-
{ "--expand":
|
|
3858
|
+
{ "--expand": u }
|
|
3853
3859
|
])
|
|
3854
3860
|
}, " chevron_right ", 2)
|
|
3855
3861
|
]))
|
|
@@ -3859,8 +3865,8 @@ const nu = { class: "panel-menu-wrapper" }, ru = ["data-active", "onClick"], ou
|
|
|
3859
3865
|
]);
|
|
3860
3866
|
};
|
|
3861
3867
|
}
|
|
3862
|
-
}),
|
|
3863
|
-
class
|
|
3868
|
+
}), Im = /* @__PURE__ */ Ft(fc, [["__scopeId", "data-v-4510e33e"]]), Ni = Symbol();
|
|
3869
|
+
class mc {
|
|
3864
3870
|
get storedTheme() {
|
|
3865
3871
|
return localStorage.getItem("color-scheme");
|
|
3866
3872
|
}
|
|
@@ -3889,7 +3895,7 @@ class cu {
|
|
|
3889
3895
|
localStorage.removeItem("color-scheme");
|
|
3890
3896
|
}
|
|
3891
3897
|
}
|
|
3892
|
-
const Zt = new
|
|
3898
|
+
const Zt = new mc(), Ui = "SweetAlert2:", pc = (t) => {
|
|
3893
3899
|
const e = [];
|
|
3894
3900
|
for (let n = 0; n < t.length; n++)
|
|
3895
3901
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
@@ -3898,10 +3904,10 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
3898
3904
|
console.warn(`${Ui} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3899
3905
|
}, Lt = (t) => {
|
|
3900
3906
|
console.error(`${Ui} ${t}`);
|
|
3901
|
-
}, qo = [],
|
|
3907
|
+
}, qo = [], hc = (t) => {
|
|
3902
3908
|
qo.includes(t) || (qo.push(t), Oe(t));
|
|
3903
|
-
},
|
|
3904
|
-
|
|
3909
|
+
}, gc = (t, e) => {
|
|
3910
|
+
hc(
|
|
3905
3911
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
3906
3912
|
);
|
|
3907
3913
|
}, Yn = (t) => typeof t == "function" ? t() : t, Vr = (t) => t && typeof t.toPromise == "function", Sn = (t) => Vr(t) ? t.toPromise() : Promise.resolve(t), Kr = (t) => t && Promise.resolve(t) === t, Ut = {
|
|
@@ -3992,7 +3998,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
3992
3998
|
didClose: void 0,
|
|
3993
3999
|
didDestroy: void 0,
|
|
3994
4000
|
scrollbarPadding: !0
|
|
3995
|
-
},
|
|
4001
|
+
}, yc = [
|
|
3996
4002
|
"allowEscapeKey",
|
|
3997
4003
|
"allowOutsideClick",
|
|
3998
4004
|
"background",
|
|
@@ -4036,7 +4042,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4036
4042
|
"title",
|
|
4037
4043
|
"titleText",
|
|
4038
4044
|
"willClose"
|
|
4039
|
-
],
|
|
4045
|
+
], bc = {}, vc = [
|
|
4040
4046
|
"allowOutsideClick",
|
|
4041
4047
|
"allowEnterKey",
|
|
4042
4048
|
"backdrop",
|
|
@@ -4046,20 +4052,20 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4046
4052
|
"returnFocus",
|
|
4047
4053
|
"heightAuto",
|
|
4048
4054
|
"keydownListenerCapture"
|
|
4049
|
-
], Hi = (t) => Object.prototype.hasOwnProperty.call(Ut, t), ji = (t) =>
|
|
4055
|
+
], Hi = (t) => Object.prototype.hasOwnProperty.call(Ut, t), ji = (t) => yc.indexOf(t) !== -1, Tr = (t) => bc[t], wc = (t) => {
|
|
4050
4056
|
Hi(t) || Oe(`Unknown parameter "${t}"`);
|
|
4051
|
-
},
|
|
4052
|
-
|
|
4053
|
-
},
|
|
4054
|
-
Tr(t) &&
|
|
4055
|
-
},
|
|
4057
|
+
}, _c = (t) => {
|
|
4058
|
+
vc.includes(t) && Oe(`The parameter "${t}" is incompatible with toasts`);
|
|
4059
|
+
}, Sc = (t) => {
|
|
4060
|
+
Tr(t) && gc(t, Tr(t));
|
|
4061
|
+
}, kc = (t) => {
|
|
4056
4062
|
!t.backdrop && t.allowOutsideClick && Oe('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4057
4063
|
for (const e in t)
|
|
4058
|
-
|
|
4059
|
-
},
|
|
4064
|
+
wc(e), t.toast && _c(e), Sc(e);
|
|
4065
|
+
}, Cc = "swal2-", Fi = (t) => {
|
|
4060
4066
|
const e = {};
|
|
4061
4067
|
for (const n in t)
|
|
4062
|
-
e[t[n]] =
|
|
4068
|
+
e[t[n]] = Cc + t[n];
|
|
4063
4069
|
return e;
|
|
4064
4070
|
}, h = Fi([
|
|
4065
4071
|
"container",
|
|
@@ -4131,10 +4137,10 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4131
4137
|
"icon-info",
|
|
4132
4138
|
"icon-question",
|
|
4133
4139
|
"icon-error"
|
|
4134
|
-
]),
|
|
4140
|
+
]), cn = Fi(["success", "warning", "info", "question", "error"]), _e = () => document.body.querySelector(`.${h.container}`), kn = (t) => {
|
|
4135
4141
|
const e = _e();
|
|
4136
4142
|
return e ? e.querySelector(t) : null;
|
|
4137
|
-
}, Ke = (t) => kn(`.${t}`), te = () => Ke(h.popup), Cn = () => Ke(h.icon), Vi = () => Ke(h.title), zn = () => Ke(h["html-container"]), Ki = () => Ke(h.image), zi = () => Ke(h["progress-steps"]), Xn = () => Ke(h["validation-message"]), Xe = () => kn(`.${h.actions} .${h.confirm}`), wt = () => kn(`.${h.actions} .${h.deny}`),
|
|
4143
|
+
}, Ke = (t) => kn(`.${t}`), te = () => Ke(h.popup), Cn = () => Ke(h.icon), Vi = () => Ke(h.title), zn = () => Ke(h["html-container"]), Ki = () => Ke(h.image), zi = () => Ke(h["progress-steps"]), Xn = () => Ke(h["validation-message"]), Xe = () => kn(`.${h.actions} .${h.confirm}`), wt = () => kn(`.${h.actions} .${h.deny}`), Ic = () => Ke(h["input-label"]), Vt = () => kn(`.${h.loader}`), At = () => kn(`.${h.actions} .${h.cancel}`), In = () => Ke(h.actions), Wi = () => Ke(h.footer), Zn = () => Ke(h["timer-progress-bar"]), zr = () => Ke(h.close), Tc = `
|
|
4138
4144
|
a[href],
|
|
4139
4145
|
area[href],
|
|
4140
4146
|
input:not([disabled]),
|
|
@@ -4155,11 +4161,11 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4155
4161
|
).sort((n, r) => {
|
|
4156
4162
|
const o = parseInt(n.getAttribute("tabindex")), i = parseInt(r.getAttribute("tabindex"));
|
|
4157
4163
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
4158
|
-
}), e = Ne(te().querySelectorAll(
|
|
4164
|
+
}), e = Ne(te().querySelectorAll(Tc)).filter(
|
|
4159
4165
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
4160
4166
|
);
|
|
4161
|
-
return
|
|
4162
|
-
}, Gr = () => mt(document.body, h.shown) && !mt(document.body, h["toast-shown"]) && !mt(document.body, h["no-backdrop"]), Jn = () => te() && mt(te(), h.toast),
|
|
4167
|
+
return pc(t.concat(e)).filter((n) => Be(n));
|
|
4168
|
+
}, Gr = () => mt(document.body, h.shown) && !mt(document.body, h["toast-shown"]) && !mt(document.body, h["no-backdrop"]), Jn = () => te() && mt(te(), h.toast), Ac = () => te().hasAttribute("data-loading"), Ht = {
|
|
4163
4169
|
previousBodyPadding: null
|
|
4164
4170
|
}, we = (t, e) => {
|
|
4165
4171
|
if (t.textContent = "", e) {
|
|
@@ -4178,12 +4184,12 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4178
4184
|
if (!t.classList.contains(n[r]))
|
|
4179
4185
|
return !1;
|
|
4180
4186
|
return !0;
|
|
4181
|
-
},
|
|
4187
|
+
}, Pc = (t, e) => {
|
|
4182
4188
|
Ne(t.classList).forEach((n) => {
|
|
4183
|
-
!Object.values(h).includes(n) && !Object.values(
|
|
4189
|
+
!Object.values(h).includes(n) && !Object.values(cn).includes(n) && !Object.values(e.showClass).includes(n) && t.classList.remove(n);
|
|
4184
4190
|
});
|
|
4185
4191
|
}, je = (t, e, n) => {
|
|
4186
|
-
if (
|
|
4192
|
+
if (Pc(t, e), e.customClass && e.customClass[n]) {
|
|
4187
4193
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
4188
4194
|
return Oe(
|
|
4189
4195
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
@@ -4227,7 +4233,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4227
4233
|
for (let r = 0; r < n.length; r++)
|
|
4228
4234
|
if (mt(n[r], e))
|
|
4229
4235
|
return n[r];
|
|
4230
|
-
},
|
|
4236
|
+
}, un = (t, e, n) => {
|
|
4231
4237
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? t.style[e] = typeof n == "number" ? `${n}px` : n : t.style.removeProperty(e);
|
|
4232
4238
|
}, me = (t, e = "flex") => {
|
|
4233
4239
|
t.style.display = e;
|
|
@@ -4238,7 +4244,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4238
4244
|
o && (o.style[n] = r);
|
|
4239
4245
|
}, Qn = (t, e, n) => {
|
|
4240
4246
|
e ? me(t, n) : Se(t);
|
|
4241
|
-
}, Be = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)),
|
|
4247
|
+
}, Be = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Ec = () => !Be(Xe()) && !Be(wt()) && !Be(At()), Xo = (t) => t.scrollHeight > t.clientHeight, Yi = (t) => {
|
|
4242
4248
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), r = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
4243
4249
|
return n > 0 || r > 0;
|
|
4244
4250
|
}, Yr = (t, e = !1) => {
|
|
@@ -4246,21 +4252,21 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4246
4252
|
Be(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
4247
4253
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
4248
4254
|
}, 10));
|
|
4249
|
-
},
|
|
4255
|
+
}, xc = () => {
|
|
4250
4256
|
const t = Zn(), e = parseInt(window.getComputedStyle(t).width);
|
|
4251
4257
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
4252
4258
|
const n = parseInt(window.getComputedStyle(t).width), r = e / n * 100;
|
|
4253
4259
|
t.style.removeProperty("transition"), t.style.width = `${r}%`;
|
|
4254
|
-
}, Xi = () => typeof window > "u" || typeof document > "u",
|
|
4260
|
+
}, Xi = () => typeof window > "u" || typeof document > "u", Lc = 100, j = {}, Oc = () => {
|
|
4255
4261
|
j.previousActiveElement && j.previousActiveElement.focus ? (j.previousActiveElement.focus(), j.previousActiveElement = null) : document.body && document.body.focus();
|
|
4256
|
-
},
|
|
4262
|
+
}, $c = (t) => new Promise((e) => {
|
|
4257
4263
|
if (!t)
|
|
4258
4264
|
return e();
|
|
4259
4265
|
const n = window.scrollX, r = window.scrollY;
|
|
4260
4266
|
j.restoreFocusTimeout = setTimeout(() => {
|
|
4261
|
-
|
|
4262
|
-
},
|
|
4263
|
-
}),
|
|
4267
|
+
Oc(), e();
|
|
4268
|
+
}, Lc), window.scrollTo(n, r);
|
|
4269
|
+
}), Mc = `
|
|
4264
4270
|
<div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
|
|
4265
4271
|
<button type="button" class="${h.close}"></button>
|
|
4266
4272
|
<ul class="${h["progress-steps"]}"></ul>
|
|
@@ -4293,7 +4299,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4293
4299
|
<div class="${h["timer-progress-bar"]}"></div>
|
|
4294
4300
|
</div>
|
|
4295
4301
|
</div>
|
|
4296
|
-
`.replace(/(^|\n)\s*/g, ""),
|
|
4302
|
+
`.replace(/(^|\n)\s*/g, ""), Dc = () => {
|
|
4297
4303
|
const t = _e();
|
|
4298
4304
|
return t ? (t.remove(), ot(
|
|
4299
4305
|
[document.documentElement, document.body],
|
|
@@ -4301,33 +4307,33 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4301
4307
|
), !0) : !1;
|
|
4302
4308
|
}, St = () => {
|
|
4303
4309
|
j.currentInstance.resetValidationMessage();
|
|
4304
|
-
},
|
|
4305
|
-
const t = te(), e = bt(t, h.input), n = bt(t, h.file), r = t.querySelector(`.${h.range} input`), o = t.querySelector(`.${h.range} output`), i = bt(t, h.select),
|
|
4306
|
-
e.oninput = St, n.onchange = St, i.onchange = St,
|
|
4310
|
+
}, Rc = () => {
|
|
4311
|
+
const t = te(), e = bt(t, h.input), n = bt(t, h.file), r = t.querySelector(`.${h.range} input`), o = t.querySelector(`.${h.range} output`), i = bt(t, h.select), l = t.querySelector(`.${h.checkbox} input`), s = bt(t, h.textarea);
|
|
4312
|
+
e.oninput = St, n.onchange = St, i.onchange = St, l.onchange = St, s.oninput = St, r.oninput = () => {
|
|
4307
4313
|
St(), o.value = r.value;
|
|
4308
4314
|
}, r.onchange = () => {
|
|
4309
4315
|
St(), r.nextSibling.value = r.value;
|
|
4310
4316
|
};
|
|
4311
|
-
},
|
|
4317
|
+
}, Bc = (t) => typeof t == "string" ? document.querySelector(t) : t, Nc = (t) => {
|
|
4312
4318
|
const e = te();
|
|
4313
4319
|
e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true");
|
|
4314
|
-
},
|
|
4320
|
+
}, Uc = (t) => {
|
|
4315
4321
|
window.getComputedStyle(t).direction === "rtl" && q(_e(), h.rtl);
|
|
4316
|
-
},
|
|
4317
|
-
const e =
|
|
4322
|
+
}, Hc = (t) => {
|
|
4323
|
+
const e = Dc();
|
|
4318
4324
|
if (Xi()) {
|
|
4319
4325
|
Lt("SweetAlert2 requires document to initialize");
|
|
4320
4326
|
return;
|
|
4321
4327
|
}
|
|
4322
4328
|
const n = document.createElement("div");
|
|
4323
|
-
n.className = h.container, e && q(n, h["no-transition"]), we(n,
|
|
4324
|
-
const r =
|
|
4325
|
-
r.appendChild(n),
|
|
4329
|
+
n.className = h.container, e && q(n, h["no-transition"]), we(n, Mc);
|
|
4330
|
+
const r = Bc(t.target);
|
|
4331
|
+
r.appendChild(n), Nc(t), Uc(r), Rc();
|
|
4326
4332
|
}, Xr = (t, e) => {
|
|
4327
|
-
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ?
|
|
4328
|
-
},
|
|
4329
|
-
t.jquery ?
|
|
4330
|
-
},
|
|
4333
|
+
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? jc(t, e) : t && we(e, t);
|
|
4334
|
+
}, jc = (t, e) => {
|
|
4335
|
+
t.jquery ? Fc(e, t) : we(e, t.toString());
|
|
4336
|
+
}, Fc = (t, e) => {
|
|
4331
4337
|
if (t.textContent = "", 0 in e)
|
|
4332
4338
|
for (let n = 0; n in e; n++)
|
|
4333
4339
|
t.appendChild(e[n].cloneNode(!0));
|
|
@@ -4346,20 +4352,20 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4346
4352
|
if (Object.prototype.hasOwnProperty.call(e, n) && typeof t.style[n] < "u")
|
|
4347
4353
|
return e[n];
|
|
4348
4354
|
return !1;
|
|
4349
|
-
})(),
|
|
4355
|
+
})(), Vc = () => {
|
|
4350
4356
|
const t = document.createElement("div");
|
|
4351
4357
|
t.className = h["scrollbar-measure"], document.body.appendChild(t);
|
|
4352
4358
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
4353
4359
|
return document.body.removeChild(t), e;
|
|
4354
|
-
},
|
|
4360
|
+
}, Kc = (t, e) => {
|
|
4355
4361
|
const n = In(), r = Vt();
|
|
4356
|
-
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? Se(n) : me(n), je(n, e, "actions"),
|
|
4362
|
+
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? Se(n) : me(n), je(n, e, "actions"), zc(n, r, e), we(r, e.loaderHtml), je(r, e, "loader");
|
|
4357
4363
|
};
|
|
4358
|
-
function
|
|
4364
|
+
function zc(t, e, n) {
|
|
4359
4365
|
const r = Xe(), o = wt(), i = At();
|
|
4360
|
-
dr(r, "confirm", n), dr(o, "deny", n), dr(i, "cancel", n),
|
|
4366
|
+
dr(r, "confirm", n), dr(o, "deny", n), dr(i, "cancel", n), Wc(r, o, i, n), n.reverseButtons && (n.toast ? (t.insertBefore(i, r), t.insertBefore(o, r)) : (t.insertBefore(i, e), t.insertBefore(o, e), t.insertBefore(r, e)));
|
|
4361
4367
|
}
|
|
4362
|
-
function
|
|
4368
|
+
function Wc(t, e, n, r) {
|
|
4363
4369
|
if (!r.buttonsStyling)
|
|
4364
4370
|
return ot([t, e, n], h.styled);
|
|
4365
4371
|
q([t, e, n], h.styled), r.confirmButtonColor && (t.style.backgroundColor = r.confirmButtonColor, q(t, h["default-outline"])), r.denyButtonColor && (e.style.backgroundColor = r.denyButtonColor, q(e, h["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, q(n, h["default-outline"]));
|
|
@@ -4367,33 +4373,33 @@ function Vu(t, e, n, r) {
|
|
|
4367
4373
|
function dr(t, e, n) {
|
|
4368
4374
|
Qn(t, n[`show${Fr(e)}Button`], "inline-block"), we(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = h[e], je(t, n, `${e}Button`), q(t, n[`${e}ButtonClass`]);
|
|
4369
4375
|
}
|
|
4370
|
-
function
|
|
4376
|
+
function Gc(t, e) {
|
|
4371
4377
|
typeof e == "string" ? t.style.background = e : e || q([document.documentElement, document.body], h["no-backdrop"]);
|
|
4372
4378
|
}
|
|
4373
|
-
function
|
|
4379
|
+
function qc(t, e) {
|
|
4374
4380
|
e in h ? q(t, h[e]) : (Oe('The "position" parameter is not valid, defaulting to "center"'), q(t, h.center));
|
|
4375
4381
|
}
|
|
4376
|
-
function
|
|
4382
|
+
function Yc(t, e) {
|
|
4377
4383
|
if (e && typeof e == "string") {
|
|
4378
4384
|
const n = `grow-${e}`;
|
|
4379
4385
|
n in h && q(t, h[n]);
|
|
4380
4386
|
}
|
|
4381
4387
|
}
|
|
4382
|
-
const
|
|
4388
|
+
const Xc = (t, e) => {
|
|
4383
4389
|
const n = _e();
|
|
4384
|
-
n && (
|
|
4390
|
+
n && (Gc(n, e.backdrop), qc(n, e.position), Yc(n, e.grow), je(n, e, "container"));
|
|
4385
4391
|
}, F = {
|
|
4386
4392
|
awaitingPromise: /* @__PURE__ */ new WeakMap(),
|
|
4387
4393
|
promise: /* @__PURE__ */ new WeakMap(),
|
|
4388
4394
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
4389
4395
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
4390
|
-
},
|
|
4396
|
+
}, Zc = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Jc = (t, e) => {
|
|
4391
4397
|
const n = te(), r = F.innerParams.get(t), o = !r || e.input !== r.input;
|
|
4392
|
-
|
|
4393
|
-
const
|
|
4394
|
-
|
|
4395
|
-
}), e.input && (o &&
|
|
4396
|
-
},
|
|
4398
|
+
Zc.forEach((i) => {
|
|
4399
|
+
const l = h[i], s = bt(n, l);
|
|
4400
|
+
tu(i, e.inputAttributes), s.className = l, o && Se(s);
|
|
4401
|
+
}), e.input && (o && Qc(e), nu(e));
|
|
4402
|
+
}, Qc = (t) => {
|
|
4397
4403
|
if (!xe[t.input])
|
|
4398
4404
|
return Lt(
|
|
4399
4405
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
@@ -4402,19 +4408,19 @@ const Gu = (t, e) => {
|
|
|
4402
4408
|
me(n), setTimeout(() => {
|
|
4403
4409
|
Gi(n);
|
|
4404
4410
|
});
|
|
4405
|
-
},
|
|
4411
|
+
}, eu = (t) => {
|
|
4406
4412
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
4407
4413
|
const n = t.attributes[e].name;
|
|
4408
4414
|
["type", "value", "style"].includes(n) || t.removeAttribute(n);
|
|
4409
4415
|
}
|
|
4410
|
-
},
|
|
4416
|
+
}, tu = (t, e) => {
|
|
4411
4417
|
const n = qr(te(), t);
|
|
4412
4418
|
if (n) {
|
|
4413
|
-
|
|
4419
|
+
eu(n);
|
|
4414
4420
|
for (const r in e)
|
|
4415
4421
|
n.setAttribute(r, e[r]);
|
|
4416
4422
|
}
|
|
4417
|
-
},
|
|
4423
|
+
}, nu = (t) => {
|
|
4418
4424
|
const e = Zi(t.input);
|
|
4419
4425
|
t.customClass && q(e, t.customClass.input);
|
|
4420
4426
|
}, Zr = (t, e) => {
|
|
@@ -4467,16 +4473,16 @@ xe.textarea = (t, e) => {
|
|
|
4467
4473
|
}
|
|
4468
4474
|
}), t;
|
|
4469
4475
|
};
|
|
4470
|
-
const
|
|
4476
|
+
const ru = (t, e) => {
|
|
4471
4477
|
const n = zn();
|
|
4472
|
-
je(n, e, "htmlContainer"), e.html ? (Xr(e.html, n), me(n, "block")) : e.text ? (n.textContent = e.text, me(n, "block")) : Se(n),
|
|
4473
|
-
},
|
|
4478
|
+
je(n, e, "htmlContainer"), e.html ? (Xr(e.html, n), me(n, "block")) : e.text ? (n.textContent = e.text, me(n, "block")) : Se(n), Jc(t, e);
|
|
4479
|
+
}, ou = (t, e) => {
|
|
4474
4480
|
const n = Wi();
|
|
4475
4481
|
Qn(n, e.footer), e.footer && Xr(e.footer, n), je(n, e, "footer");
|
|
4476
|
-
},
|
|
4482
|
+
}, iu = (t, e) => {
|
|
4477
4483
|
const n = zr();
|
|
4478
4484
|
we(n, e.closeButtonHtml), je(n, e, "closeButton"), Qn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
4479
|
-
},
|
|
4485
|
+
}, su = (t, e) => {
|
|
4480
4486
|
const n = F.innerParams.get(t), r = Cn();
|
|
4481
4487
|
if (n && e.icon === n.icon) {
|
|
4482
4488
|
Jo(r, e), Zo(r, e);
|
|
@@ -4484,34 +4490,34 @@ const ec = (t, e) => {
|
|
|
4484
4490
|
}
|
|
4485
4491
|
if (!e.icon && !e.iconHtml)
|
|
4486
4492
|
return Se(r);
|
|
4487
|
-
if (e.icon && Object.keys(
|
|
4493
|
+
if (e.icon && Object.keys(cn).indexOf(e.icon) === -1)
|
|
4488
4494
|
return Lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Se(r);
|
|
4489
4495
|
me(r), Jo(r, e), Zo(r, e), q(r, e.showClass.icon);
|
|
4490
4496
|
}, Zo = (t, e) => {
|
|
4491
|
-
for (const n in
|
|
4492
|
-
e.icon !== n && ot(t,
|
|
4493
|
-
q(t,
|
|
4494
|
-
},
|
|
4497
|
+
for (const n in cn)
|
|
4498
|
+
e.icon !== n && ot(t, cn[n]);
|
|
4499
|
+
q(t, cn[e.icon]), uu(t, e), au(), je(t, e, "icon");
|
|
4500
|
+
}, au = () => {
|
|
4495
4501
|
const t = te(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
4496
4502
|
for (let r = 0; r < n.length; r++)
|
|
4497
4503
|
n[r].style.backgroundColor = e;
|
|
4498
|
-
},
|
|
4504
|
+
}, lu = `
|
|
4499
4505
|
<div class="swal2-success-circular-line-left"></div>
|
|
4500
4506
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
4501
4507
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
4502
4508
|
<div class="swal2-success-circular-line-right"></div>
|
|
4503
|
-
`,
|
|
4509
|
+
`, cu = `
|
|
4504
4510
|
<span class="swal2-x-mark">
|
|
4505
4511
|
<span class="swal2-x-mark-line-left"></span>
|
|
4506
4512
|
<span class="swal2-x-mark-line-right"></span>
|
|
4507
4513
|
</span>
|
|
4508
4514
|
`, Jo = (t, e) => {
|
|
4509
|
-
t.textContent = "", e.iconHtml ? we(t, Qo(e.iconHtml)) : e.icon === "success" ? we(t,
|
|
4515
|
+
t.textContent = "", e.iconHtml ? we(t, Qo(e.iconHtml)) : e.icon === "success" ? we(t, lu) : e.icon === "error" ? we(t, cu) : we(t, Qo({
|
|
4510
4516
|
question: "?",
|
|
4511
4517
|
warning: "!",
|
|
4512
4518
|
info: "i"
|
|
4513
4519
|
}[e.icon]));
|
|
4514
|
-
},
|
|
4520
|
+
}, uu = (t, e) => {
|
|
4515
4521
|
if (e.iconColor) {
|
|
4516
4522
|
t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
|
|
4517
4523
|
for (const n of [
|
|
@@ -4523,47 +4529,47 @@ const ec = (t, e) => {
|
|
|
4523
4529
|
Yo(t, n, "backgroundColor", e.iconColor);
|
|
4524
4530
|
Yo(t, ".swal2-success-ring", "borderColor", e.iconColor);
|
|
4525
4531
|
}
|
|
4526
|
-
}, Qo = (t) => `<div class="${h["icon-content"]}">${t}</div>`,
|
|
4532
|
+
}, Qo = (t) => `<div class="${h["icon-content"]}">${t}</div>`, du = (t, e) => {
|
|
4527
4533
|
const n = Ki();
|
|
4528
4534
|
if (!e.imageUrl)
|
|
4529
4535
|
return Se(n);
|
|
4530
|
-
me(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt),
|
|
4531
|
-
},
|
|
4536
|
+
me(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), un(n, "width", e.imageWidth), un(n, "height", e.imageHeight), n.className = h.image, je(n, e, "image");
|
|
4537
|
+
}, fu = (t) => {
|
|
4532
4538
|
const e = document.createElement("li");
|
|
4533
4539
|
return q(e, h["progress-step"]), we(e, t), e;
|
|
4534
|
-
},
|
|
4540
|
+
}, mu = (t) => {
|
|
4535
4541
|
const e = document.createElement("li");
|
|
4536
4542
|
return q(e, h["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e;
|
|
4537
|
-
},
|
|
4543
|
+
}, pu = (t, e) => {
|
|
4538
4544
|
const n = zi();
|
|
4539
4545
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
4540
4546
|
return Se(n);
|
|
4541
4547
|
me(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Oe(
|
|
4542
4548
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
4543
4549
|
), e.progressSteps.forEach((r, o) => {
|
|
4544
|
-
const i =
|
|
4550
|
+
const i = fu(r);
|
|
4545
4551
|
if (n.appendChild(i), o === e.currentProgressStep && q(i, h["active-progress-step"]), o !== e.progressSteps.length - 1) {
|
|
4546
|
-
const
|
|
4547
|
-
n.appendChild(
|
|
4552
|
+
const l = mu(e);
|
|
4553
|
+
n.appendChild(l);
|
|
4548
4554
|
}
|
|
4549
4555
|
});
|
|
4550
|
-
},
|
|
4556
|
+
}, hu = (t, e) => {
|
|
4551
4557
|
const n = Vi();
|
|
4552
4558
|
Qn(n, e.title || e.titleText, "block"), e.title && Xr(e.title, n), e.titleText && (n.innerText = e.titleText), je(n, e, "title");
|
|
4553
|
-
},
|
|
4559
|
+
}, gu = (t, e) => {
|
|
4554
4560
|
const n = _e(), r = te();
|
|
4555
|
-
e.toast ? (
|
|
4556
|
-
},
|
|
4561
|
+
e.toast ? (un(n, "width", e.width), r.style.width = "100%", r.insertBefore(Vt(), Cn())) : un(r, "width", e.width), un(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), Se(Xn()), yu(r, e);
|
|
4562
|
+
}, yu = (t, e) => {
|
|
4557
4563
|
t.className = `${h.popup} ${Be(t) ? e.showClass.popup : ""}`, e.toast ? (q([document.documentElement, document.body], h["toast-shown"]), q(t, h.toast)) : q(t, h.modal), je(t, e, "popup"), typeof e.customClass == "string" && q(t, e.customClass), e.icon && q(t, h[`icon-${e.icon}`]);
|
|
4558
4564
|
}, Ji = (t, e) => {
|
|
4559
|
-
|
|
4565
|
+
gu(t, e), Xc(t, e), pu(t, e), su(t, e), du(t, e), hu(t, e), iu(t, e), ru(t, e), Kc(t, e), ou(t, e), typeof e.didRender == "function" && e.didRender(te());
|
|
4560
4566
|
}, Kt = Object.freeze({
|
|
4561
4567
|
cancel: "cancel",
|
|
4562
4568
|
backdrop: "backdrop",
|
|
4563
4569
|
close: "close",
|
|
4564
4570
|
esc: "esc",
|
|
4565
4571
|
timer: "timer"
|
|
4566
|
-
}),
|
|
4572
|
+
}), bu = () => {
|
|
4567
4573
|
Ne(document.body.children).forEach((e) => {
|
|
4568
4574
|
e === _e() || e.contains(_e()) || (e.hasAttribute("aria-hidden") && e.setAttribute("data-previous-aria-hidden", e.getAttribute("aria-hidden")), e.setAttribute("aria-hidden", "true"));
|
|
4569
4575
|
});
|
|
@@ -4571,56 +4577,56 @@ const ec = (t, e) => {
|
|
|
4571
4577
|
Ne(document.body.children).forEach((e) => {
|
|
4572
4578
|
e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden")), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
|
|
4573
4579
|
});
|
|
4574
|
-
}, es = ["swal-title", "swal-html", "swal-footer"],
|
|
4580
|
+
}, es = ["swal-title", "swal-html", "swal-footer"], vu = (t) => {
|
|
4575
4581
|
const e = typeof t.template == "string" ? document.querySelector(t.template) : t.template;
|
|
4576
4582
|
if (!e)
|
|
4577
4583
|
return {};
|
|
4578
4584
|
const n = e.content;
|
|
4579
|
-
return
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4585
|
+
return Tu(n), Object.assign(
|
|
4586
|
+
wu(n),
|
|
4587
|
+
_u(n),
|
|
4588
|
+
Su(n),
|
|
4589
|
+
ku(n),
|
|
4590
|
+
Cu(n),
|
|
4591
|
+
Iu(n, es)
|
|
4586
4592
|
);
|
|
4587
|
-
},
|
|
4593
|
+
}, wu = (t) => {
|
|
4588
4594
|
const e = {};
|
|
4589
4595
|
return Ne(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
4590
4596
|
Pt(n, ["name", "value"]);
|
|
4591
4597
|
const r = n.getAttribute("name"), o = n.getAttribute("value");
|
|
4592
4598
|
typeof Ut[r] == "boolean" && o === "false" && (e[r] = !1), typeof Ut[r] == "object" && (e[r] = JSON.parse(o));
|
|
4593
4599
|
}), e;
|
|
4594
|
-
},
|
|
4600
|
+
}, _u = (t) => {
|
|
4595
4601
|
const e = {};
|
|
4596
4602
|
return Ne(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
4597
4603
|
Pt(n, ["type", "color", "aria-label"]);
|
|
4598
4604
|
const r = n.getAttribute("type");
|
|
4599
4605
|
e[`${r}ButtonText`] = n.innerHTML, e[`show${Fr(r)}Button`] = !0, n.hasAttribute("color") && (e[`${r}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${r}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
4600
4606
|
}), e;
|
|
4601
|
-
},
|
|
4607
|
+
}, Su = (t) => {
|
|
4602
4608
|
const e = {}, n = t.querySelector("swal-image");
|
|
4603
4609
|
return n && (Pt(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;
|
|
4604
|
-
},
|
|
4610
|
+
}, ku = (t) => {
|
|
4605
4611
|
const e = {}, n = t.querySelector("swal-icon");
|
|
4606
4612
|
return n && (Pt(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
|
|
4607
|
-
},
|
|
4613
|
+
}, Cu = (t) => {
|
|
4608
4614
|
const e = {}, n = t.querySelector("swal-input");
|
|
4609
4615
|
n && (Pt(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")));
|
|
4610
4616
|
const r = t.querySelectorAll("swal-input-option");
|
|
4611
4617
|
return r.length && (e.inputOptions = {}, Ne(r).forEach((o) => {
|
|
4612
4618
|
Pt(o, ["value"]);
|
|
4613
|
-
const i = o.getAttribute("value"),
|
|
4614
|
-
e.inputOptions[i] =
|
|
4619
|
+
const i = o.getAttribute("value"), l = o.innerHTML;
|
|
4620
|
+
e.inputOptions[i] = l;
|
|
4615
4621
|
})), e;
|
|
4616
|
-
},
|
|
4622
|
+
}, Iu = (t, e) => {
|
|
4617
4623
|
const n = {};
|
|
4618
4624
|
for (const r in e) {
|
|
4619
4625
|
const o = e[r], i = t.querySelector(o);
|
|
4620
4626
|
i && (Pt(i, []), n[o.replace(/^swal-/, "")] = i.innerHTML.trim());
|
|
4621
4627
|
}
|
|
4622
4628
|
return n;
|
|
4623
|
-
},
|
|
4629
|
+
}, Tu = (t) => {
|
|
4624
4630
|
const e = es.concat([
|
|
4625
4631
|
"swal-param",
|
|
4626
4632
|
"swal-button",
|
|
@@ -4644,23 +4650,23 @@ const ec = (t, e) => {
|
|
|
4644
4650
|
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"),
|
|
4645
4651
|
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")
|
|
4646
4652
|
};
|
|
4647
|
-
function
|
|
4653
|
+
function Au(t) {
|
|
4648
4654
|
t.inputValidator || Object.keys(ei).forEach((e) => {
|
|
4649
4655
|
t.input === e && (t.inputValidator = ei[e]);
|
|
4650
4656
|
});
|
|
4651
4657
|
}
|
|
4652
|
-
function
|
|
4658
|
+
function Pu(t) {
|
|
4653
4659
|
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (Oe('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
4654
4660
|
}
|
|
4655
|
-
function
|
|
4656
|
-
|
|
4661
|
+
function Eu(t) {
|
|
4662
|
+
Au(t), t.showLoaderOnConfirm && !t.preConfirm && Oe(
|
|
4657
4663
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
4658
4664
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
4659
4665
|
https://sweetalert2.github.io/#ajax-request`
|
|
4660
|
-
),
|
|
4661
|
-
`).join("<br />")),
|
|
4666
|
+
), Pu(t), typeof t.title == "string" && (t.title = t.title.split(`
|
|
4667
|
+
`).join("<br />")), Hc(t);
|
|
4662
4668
|
}
|
|
4663
|
-
class
|
|
4669
|
+
class xu {
|
|
4664
4670
|
constructor(e, n) {
|
|
4665
4671
|
this.callback = e, this.remaining = n, this.running = !1, this.start();
|
|
4666
4672
|
}
|
|
@@ -4681,58 +4687,58 @@ class Ac {
|
|
|
4681
4687
|
return this.running;
|
|
4682
4688
|
}
|
|
4683
4689
|
}
|
|
4684
|
-
const
|
|
4685
|
-
Ht.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (Ht.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Ht.previousBodyPadding +
|
|
4686
|
-
},
|
|
4690
|
+
const Lu = () => {
|
|
4691
|
+
Ht.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (Ht.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Ht.previousBodyPadding + Vc()}px`);
|
|
4692
|
+
}, Ou = () => {
|
|
4687
4693
|
Ht.previousBodyPadding !== null && (document.body.style.paddingRight = `${Ht.previousBodyPadding}px`, Ht.previousBodyPadding = null);
|
|
4688
|
-
},
|
|
4694
|
+
}, $u = () => {
|
|
4689
4695
|
if (// @ts-ignore
|
|
4690
4696
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !mt(document.body, h.iosfix)) {
|
|
4691
4697
|
const e = document.body.scrollTop;
|
|
4692
|
-
document.body.style.top = `${e * -1}px`, q(document.body, h.iosfix),
|
|
4698
|
+
document.body.style.top = `${e * -1}px`, q(document.body, h.iosfix), Du(), Mu();
|
|
4693
4699
|
}
|
|
4694
|
-
},
|
|
4700
|
+
}, Mu = () => {
|
|
4695
4701
|
const t = navigator.userAgent, e = !!t.match(/iPad/i) || !!t.match(/iPhone/i), n = !!t.match(/WebKit/i);
|
|
4696
4702
|
e && n && !t.match(/CriOS/i) && te().scrollHeight > window.innerHeight - 44 && (_e().style.paddingBottom = "44px");
|
|
4697
|
-
},
|
|
4703
|
+
}, Du = () => {
|
|
4698
4704
|
const t = _e();
|
|
4699
4705
|
let e;
|
|
4700
4706
|
t.ontouchstart = (n) => {
|
|
4701
|
-
e =
|
|
4707
|
+
e = Ru(n);
|
|
4702
4708
|
}, t.ontouchmove = (n) => {
|
|
4703
4709
|
e && (n.preventDefault(), n.stopPropagation());
|
|
4704
4710
|
};
|
|
4705
|
-
},
|
|
4711
|
+
}, Ru = (t) => {
|
|
4706
4712
|
const e = t.target, n = _e();
|
|
4707
|
-
return
|
|
4713
|
+
return Bu(t) || Nu(t) ? !1 : e === n || !Xo(n) && e.tagName !== "INPUT" && // #1603
|
|
4708
4714
|
e.tagName !== "TEXTAREA" && // #2266
|
|
4709
4715
|
!(Xo(zn()) && // #1944
|
|
4710
4716
|
zn().contains(e));
|
|
4711
|
-
},
|
|
4717
|
+
}, Bu = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Nu = (t) => t.touches && t.touches.length > 1, Uu = () => {
|
|
4712
4718
|
if (mt(document.body, h.iosfix)) {
|
|
4713
4719
|
const t = parseInt(document.body.style.top, 10);
|
|
4714
4720
|
ot(document.body, h.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
4715
4721
|
}
|
|
4716
|
-
}, ts = 10,
|
|
4722
|
+
}, ts = 10, Hu = (t) => {
|
|
4717
4723
|
const e = _e(), n = te();
|
|
4718
4724
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
4719
4725
|
const o = window.getComputedStyle(document.body).overflowY;
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
}, ts), Gr() && (
|
|
4726
|
+
Vu(e, n, t), setTimeout(() => {
|
|
4727
|
+
ju(e, n);
|
|
4728
|
+
}, ts), Gr() && (Fu(e, t.scrollbarPadding, o), bu()), !Jn() && !j.previousActiveElement && (j.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), ot(e, h["no-transition"]);
|
|
4723
4729
|
}, ns = (t) => {
|
|
4724
4730
|
const e = te();
|
|
4725
4731
|
if (t.target !== e)
|
|
4726
4732
|
return;
|
|
4727
4733
|
const n = _e();
|
|
4728
4734
|
e.removeEventListener(vn, ns), n.style.overflowY = "auto";
|
|
4729
|
-
},
|
|
4735
|
+
}, ju = (t, e) => {
|
|
4730
4736
|
vn && Yi(e) ? (t.style.overflowY = "hidden", e.addEventListener(vn, ns)) : t.style.overflowY = "auto";
|
|
4731
|
-
},
|
|
4732
|
-
|
|
4737
|
+
}, Fu = (t, e, n) => {
|
|
4738
|
+
$u(), e && n !== "hidden" && Lu(), setTimeout(() => {
|
|
4733
4739
|
t.scrollTop = 0;
|
|
4734
4740
|
});
|
|
4735
|
-
},
|
|
4741
|
+
}, Vu = (t, e, n) => {
|
|
4736
4742
|
q(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), me(e, "grid"), setTimeout(() => {
|
|
4737
4743
|
q(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
4738
4744
|
}, ts), q([document.documentElement, document.body], h.shown), n.heightAuto && n.backdrop && !n.toast && q([document.documentElement, document.body], h["height-auto"]);
|
|
@@ -4740,60 +4746,60 @@ const Pc = () => {
|
|
|
4740
4746
|
let e = te();
|
|
4741
4747
|
e || new Et(), e = te();
|
|
4742
4748
|
const n = Vt();
|
|
4743
|
-
Jn() ? Se(Cn()) :
|
|
4744
|
-
},
|
|
4749
|
+
Jn() ? Se(Cn()) : Ku(e, t), me(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
4750
|
+
}, Ku = (t, e) => {
|
|
4745
4751
|
const n = In(), r = Vt();
|
|
4746
4752
|
!e && Be(Xe()) && (e = Xe()), me(n), e && (Se(e), r.setAttribute("data-button-to-replace", e.className)), r.parentNode.insertBefore(r, e), q([t, n], h.loading);
|
|
4747
|
-
},
|
|
4748
|
-
e.input === "select" || e.input === "radio" ?
|
|
4749
|
-
},
|
|
4753
|
+
}, zu = (t, e) => {
|
|
4754
|
+
e.input === "select" || e.input === "radio" ? Xu(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (Vr(e.inputValue) || Kr(e.inputValue)) && (jt(Xe()), Zu(t, e));
|
|
4755
|
+
}, Wu = (t, e) => {
|
|
4750
4756
|
const n = t.getInput();
|
|
4751
4757
|
if (!n)
|
|
4752
4758
|
return null;
|
|
4753
4759
|
switch (e.input) {
|
|
4754
4760
|
case "checkbox":
|
|
4755
|
-
return
|
|
4761
|
+
return Gu(n);
|
|
4756
4762
|
case "radio":
|
|
4757
|
-
return
|
|
4763
|
+
return qu(n);
|
|
4758
4764
|
case "file":
|
|
4759
|
-
return
|
|
4765
|
+
return Yu(n);
|
|
4760
4766
|
default:
|
|
4761
4767
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
4762
4768
|
}
|
|
4763
|
-
},
|
|
4764
|
-
const n = te(), r = (o) =>
|
|
4769
|
+
}, Gu = (t) => t.checked ? 1 : 0, qu = (t) => t.checked ? t.value : null, Yu = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Xu = (t, e) => {
|
|
4770
|
+
const n = te(), r = (o) => Ju[e.input](n, Ar(o), e);
|
|
4765
4771
|
Vr(e.inputOptions) || Kr(e.inputOptions) ? (jt(Xe()), Sn(e.inputOptions).then((o) => {
|
|
4766
4772
|
t.hideLoading(), r(o);
|
|
4767
4773
|
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : Lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
4768
|
-
},
|
|
4774
|
+
}, Zu = (t, e) => {
|
|
4769
4775
|
const n = t.getInput();
|
|
4770
4776
|
Se(n), Sn(e.inputValue).then((r) => {
|
|
4771
4777
|
n.value = e.input === "number" ? parseFloat(r) || 0 : `${r}`, me(n), n.focus(), t.hideLoading();
|
|
4772
4778
|
}).catch((r) => {
|
|
4773
4779
|
Lt(`Error in inputValue promise: ${r}`), n.value = "", me(n), n.focus(), t.hideLoading();
|
|
4774
4780
|
});
|
|
4775
|
-
},
|
|
4781
|
+
}, Ju = {
|
|
4776
4782
|
select: (t, e, n) => {
|
|
4777
|
-
const r = bt(t, h.select), o = (i,
|
|
4778
|
-
const
|
|
4779
|
-
|
|
4783
|
+
const r = bt(t, h.select), o = (i, l, s) => {
|
|
4784
|
+
const a = document.createElement("option");
|
|
4785
|
+
a.value = s, we(a, l), a.selected = ti(s, n.inputValue), i.appendChild(a);
|
|
4780
4786
|
};
|
|
4781
4787
|
e.forEach((i) => {
|
|
4782
|
-
const
|
|
4788
|
+
const l = i[0], s = i[1];
|
|
4783
4789
|
if (Array.isArray(s)) {
|
|
4784
|
-
const
|
|
4785
|
-
|
|
4790
|
+
const a = document.createElement("optgroup");
|
|
4791
|
+
a.label = l, a.disabled = !1, r.appendChild(a), s.forEach((u) => o(a, u[1], u[0]));
|
|
4786
4792
|
} else
|
|
4787
|
-
o(r, s,
|
|
4793
|
+
o(r, s, l);
|
|
4788
4794
|
}), r.focus();
|
|
4789
4795
|
},
|
|
4790
4796
|
radio: (t, e, n) => {
|
|
4791
4797
|
const r = bt(t, h.radio);
|
|
4792
4798
|
e.forEach((i) => {
|
|
4793
|
-
const
|
|
4794
|
-
|
|
4799
|
+
const l = i[0], s = i[1], a = document.createElement("input"), u = document.createElement("label");
|
|
4800
|
+
a.type = "radio", a.name = h.radio, a.value = l, ti(l, n.inputValue) && (a.checked = !0);
|
|
4795
4801
|
const d = document.createElement("span");
|
|
4796
|
-
we(d, s), d.className = h.label,
|
|
4802
|
+
we(d, s), d.className = h.label, u.appendChild(a), u.appendChild(d), r.appendChild(u);
|
|
4797
4803
|
});
|
|
4798
4804
|
const o = r.querySelectorAll("input");
|
|
4799
4805
|
o.length && o[0].focus();
|
|
@@ -4813,25 +4819,25 @@ function ni() {
|
|
|
4813
4819
|
if (!t)
|
|
4814
4820
|
return;
|
|
4815
4821
|
const e = F.domCache.get(this);
|
|
4816
|
-
Se(e.loader), Jn() ? t.icon && me(Cn()) :
|
|
4822
|
+
Se(e.loader), Jn() ? t.icon && me(Cn()) : Qu(e), ot([e.popup, e.actions], h.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
4817
4823
|
}
|
|
4818
|
-
const
|
|
4824
|
+
const Qu = (t) => {
|
|
4819
4825
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
4820
|
-
e.length ? me(e[0], "inline-block") :
|
|
4826
|
+
e.length ? me(e[0], "inline-block") : Ec() && Se(t.actions);
|
|
4821
4827
|
};
|
|
4822
|
-
function
|
|
4828
|
+
function ed(t) {
|
|
4823
4829
|
const e = F.innerParams.get(t || this), n = F.domCache.get(t || this);
|
|
4824
4830
|
return n ? qr(n.popup, e.input) : null;
|
|
4825
4831
|
}
|
|
4826
4832
|
const wn = {
|
|
4827
4833
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
4828
4834
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
4829
|
-
},
|
|
4835
|
+
}, td = () => Be(te()), rs = () => Xe() && Xe().click(), nd = () => wt() && wt().click(), rd = () => At() && At().click(), os = (t) => {
|
|
4830
4836
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
4831
4837
|
capture: t.keydownListenerCapture
|
|
4832
4838
|
}), t.keydownHandlerAdded = !1);
|
|
4833
|
-
},
|
|
4834
|
-
os(e), n.toast || (e.keydownHandler = (o) =>
|
|
4839
|
+
}, od = (t, e, n, r) => {
|
|
4840
|
+
os(e), n.toast || (e.keydownHandler = (o) => sd(t, o, r), e.keydownTarget = n.keydownListenerCapture ? window : te(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
4835
4841
|
capture: e.keydownListenerCapture
|
|
4836
4842
|
}), e.keydownHandlerAdded = !0);
|
|
4837
4843
|
}, Pr = (t, e, n) => {
|
|
@@ -4839,16 +4845,16 @@ const wn = {
|
|
|
4839
4845
|
if (r.length)
|
|
4840
4846
|
return e = e + n, e === r.length ? e = 0 : e === -1 && (e = r.length - 1), r[e].focus();
|
|
4841
4847
|
te().focus();
|
|
4842
|
-
}, is = ["ArrowRight", "ArrowDown"],
|
|
4848
|
+
}, is = ["ArrowRight", "ArrowDown"], id = ["ArrowLeft", "ArrowUp"], sd = (t, e, n) => {
|
|
4843
4849
|
const r = F.innerParams.get(t);
|
|
4844
|
-
r && (e.isComposing || e.keyCode === 229 || (r.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ?
|
|
4845
|
-
},
|
|
4850
|
+
r && (e.isComposing || e.keyCode === 229 || (r.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? ad(t, e, r) : e.key === "Tab" ? ld(e, r) : [...is, ...id].includes(e.key) ? cd(e.key) : e.key === "Escape" && ud(e, r, n)));
|
|
4851
|
+
}, ad = (t, e, n) => {
|
|
4846
4852
|
if (Yn(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
4847
4853
|
if (["textarea", "file"].includes(n.input))
|
|
4848
4854
|
return;
|
|
4849
4855
|
rs(), e.preventDefault();
|
|
4850
4856
|
}
|
|
4851
|
-
},
|
|
4857
|
+
}, ld = (t, e) => {
|
|
4852
4858
|
const n = t.target, r = Wr();
|
|
4853
4859
|
let o = -1;
|
|
4854
4860
|
for (let i = 0; i < r.length; i++)
|
|
@@ -4857,40 +4863,40 @@ const wn = {
|
|
|
4857
4863
|
break;
|
|
4858
4864
|
}
|
|
4859
4865
|
t.shiftKey ? Pr(e, o, -1) : Pr(e, o, 1), t.stopPropagation(), t.preventDefault();
|
|
4860
|
-
},
|
|
4866
|
+
}, cd = (t) => {
|
|
4861
4867
|
const e = Xe(), n = wt(), r = At();
|
|
4862
4868
|
if (![e, n, r].includes(document.activeElement))
|
|
4863
4869
|
return;
|
|
4864
4870
|
const o = is.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
4865
4871
|
let i = document.activeElement;
|
|
4866
|
-
for (let
|
|
4872
|
+
for (let l = 0; l < In().children.length; l++) {
|
|
4867
4873
|
if (i = i[o], !i)
|
|
4868
4874
|
return;
|
|
4869
4875
|
if (Be(i) && i instanceof HTMLButtonElement)
|
|
4870
4876
|
break;
|
|
4871
4877
|
}
|
|
4872
4878
|
i instanceof HTMLButtonElement && i.focus();
|
|
4873
|
-
},
|
|
4879
|
+
}, ud = (t, e, n) => {
|
|
4874
4880
|
Yn(e.allowEscapeKey) && (t.preventDefault(), n(Kt.esc));
|
|
4875
4881
|
};
|
|
4876
4882
|
function ss(t, e, n, r) {
|
|
4877
|
-
Jn() ? ri(t, r) : (
|
|
4883
|
+
Jn() ? ri(t, r) : ($c(n).then(() => ri(t, r)), os(j)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), Gr() && (Ou(), Uu(), Qi()), dd();
|
|
4878
4884
|
}
|
|
4879
|
-
function
|
|
4885
|
+
function dd() {
|
|
4880
4886
|
ot(
|
|
4881
4887
|
[document.documentElement, document.body],
|
|
4882
4888
|
[h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]
|
|
4883
4889
|
);
|
|
4884
4890
|
}
|
|
4885
4891
|
function Dn(t) {
|
|
4886
|
-
t =
|
|
4887
|
-
const e = wn.swalPromiseResolve.get(this), n =
|
|
4892
|
+
t = hd(t);
|
|
4893
|
+
const e = wn.swalPromiseResolve.get(this), n = md(this);
|
|
4888
4894
|
this.isAwaitingPromise() ? t.isDismissed || (An(this), e(t)) : n && e(t);
|
|
4889
4895
|
}
|
|
4890
|
-
function
|
|
4896
|
+
function fd() {
|
|
4891
4897
|
return !!F.awaitingPromise.get(this);
|
|
4892
4898
|
}
|
|
4893
|
-
const
|
|
4899
|
+
const md = (t) => {
|
|
4894
4900
|
const e = te();
|
|
4895
4901
|
if (!e)
|
|
4896
4902
|
return !1;
|
|
@@ -4899,15 +4905,15 @@ const cd = (t) => {
|
|
|
4899
4905
|
return !1;
|
|
4900
4906
|
ot(e, n.showClass.popup), q(e, n.hideClass.popup);
|
|
4901
4907
|
const r = _e();
|
|
4902
|
-
return ot(r, n.showClass.backdrop), q(r, n.hideClass.backdrop),
|
|
4908
|
+
return ot(r, n.showClass.backdrop), q(r, n.hideClass.backdrop), gd(t, e, n), !0;
|
|
4903
4909
|
};
|
|
4904
|
-
function
|
|
4910
|
+
function pd(t) {
|
|
4905
4911
|
const e = wn.swalPromiseReject.get(this);
|
|
4906
4912
|
An(this), e && e(t);
|
|
4907
4913
|
}
|
|
4908
4914
|
const An = (t) => {
|
|
4909
4915
|
t.isAwaitingPromise() && (F.awaitingPromise.delete(t), F.innerParams.get(t) || t._destroy());
|
|
4910
|
-
},
|
|
4916
|
+
}, hd = (t) => typeof t > "u" ? {
|
|
4911
4917
|
isConfirmed: !1,
|
|
4912
4918
|
isDenied: !1,
|
|
4913
4919
|
isDismissed: !0
|
|
@@ -4918,10 +4924,10 @@ const An = (t) => {
|
|
|
4918
4924
|
isDismissed: !1
|
|
4919
4925
|
},
|
|
4920
4926
|
t
|
|
4921
|
-
),
|
|
4927
|
+
), gd = (t, e, n) => {
|
|
4922
4928
|
const r = _e(), o = vn && Yi(e);
|
|
4923
|
-
typeof n.willClose == "function" && n.willClose(e), o ?
|
|
4924
|
-
},
|
|
4929
|
+
typeof n.willClose == "function" && n.willClose(e), o ? yd(t, e, r, n.returnFocus, n.didClose) : ss(t, r, n.returnFocus, n.didClose);
|
|
4930
|
+
}, yd = (t, e, n, r, o) => {
|
|
4925
4931
|
j.swalCloseEventFinishedCallback = ss.bind(
|
|
4926
4932
|
null,
|
|
4927
4933
|
t,
|
|
@@ -4952,40 +4958,40 @@ function ls(t, e) {
|
|
|
4952
4958
|
} else
|
|
4953
4959
|
t.disabled = e;
|
|
4954
4960
|
}
|
|
4955
|
-
function
|
|
4961
|
+
function bd() {
|
|
4956
4962
|
as(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
4957
4963
|
}
|
|
4958
|
-
function
|
|
4964
|
+
function vd() {
|
|
4959
4965
|
as(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
4960
4966
|
}
|
|
4961
|
-
function
|
|
4967
|
+
function wd() {
|
|
4962
4968
|
return ls(this.getInput(), !1);
|
|
4963
4969
|
}
|
|
4964
|
-
function
|
|
4970
|
+
function _d() {
|
|
4965
4971
|
return ls(this.getInput(), !0);
|
|
4966
4972
|
}
|
|
4967
|
-
function
|
|
4973
|
+
function Sd(t) {
|
|
4968
4974
|
const e = F.domCache.get(this), n = F.innerParams.get(this);
|
|
4969
4975
|
we(e.validationMessage, t), e.validationMessage.className = h["validation-message"], n.customClass && n.customClass.validationMessage && q(e.validationMessage, n.customClass.validationMessage), me(e.validationMessage);
|
|
4970
4976
|
const r = this.getInput();
|
|
4971
4977
|
r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", h["validation-message"]), Gi(r), q(r, h.inputerror));
|
|
4972
4978
|
}
|
|
4973
|
-
function
|
|
4979
|
+
function kd() {
|
|
4974
4980
|
const t = F.domCache.get(this);
|
|
4975
4981
|
t.validationMessage && Se(t.validationMessage);
|
|
4976
4982
|
const e = this.getInput();
|
|
4977
4983
|
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), ot(e, h.inputerror));
|
|
4978
4984
|
}
|
|
4979
|
-
function
|
|
4985
|
+
function Cd() {
|
|
4980
4986
|
return F.domCache.get(this).progressSteps;
|
|
4981
4987
|
}
|
|
4982
|
-
function
|
|
4988
|
+
function Id(t) {
|
|
4983
4989
|
const e = te(), n = F.innerParams.get(this);
|
|
4984
4990
|
if (!e || mt(e, n.hideClass.popup))
|
|
4985
4991
|
return Oe(
|
|
4986
4992
|
"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."
|
|
4987
4993
|
);
|
|
4988
|
-
const r =
|
|
4994
|
+
const r = Td(t), o = Object.assign({}, n, r);
|
|
4989
4995
|
Ji(this, o), F.innerParams.set(this, o), Object.defineProperties(this, {
|
|
4990
4996
|
params: {
|
|
4991
4997
|
value: Object.assign({}, this.params, t),
|
|
@@ -4994,7 +5000,7 @@ function Sd(t) {
|
|
|
4994
5000
|
}
|
|
4995
5001
|
});
|
|
4996
5002
|
}
|
|
4997
|
-
const
|
|
5003
|
+
const Td = (t) => {
|
|
4998
5004
|
const e = {};
|
|
4999
5005
|
return Object.keys(t).forEach((n) => {
|
|
5000
5006
|
ji(n) ? e[n] = t[n] : Oe(
|
|
@@ -5004,49 +5010,49 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
5004
5010
|
);
|
|
5005
5011
|
}), e;
|
|
5006
5012
|
};
|
|
5007
|
-
function
|
|
5013
|
+
function Ad() {
|
|
5008
5014
|
const t = F.domCache.get(this), e = F.innerParams.get(this);
|
|
5009
5015
|
if (!e) {
|
|
5010
|
-
|
|
5016
|
+
cs(this);
|
|
5011
5017
|
return;
|
|
5012
5018
|
}
|
|
5013
|
-
t.popup && j.swalCloseEventFinishedCallback && (j.swalCloseEventFinishedCallback(), delete j.swalCloseEventFinishedCallback), j.deferDisposalTimer && (clearTimeout(j.deferDisposalTimer), delete j.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(),
|
|
5019
|
+
t.popup && j.swalCloseEventFinishedCallback && (j.swalCloseEventFinishedCallback(), delete j.swalCloseEventFinishedCallback), j.deferDisposalTimer && (clearTimeout(j.deferDisposalTimer), delete j.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(), Pd(this);
|
|
5014
5020
|
}
|
|
5015
|
-
const
|
|
5016
|
-
|
|
5017
|
-
},
|
|
5021
|
+
const Pd = (t) => {
|
|
5022
|
+
cs(t), delete t.params, delete j.keydownHandler, delete j.keydownTarget, delete j.currentInstance;
|
|
5023
|
+
}, cs = (t) => {
|
|
5018
5024
|
t.isAwaitingPromise() ? (fr(F, t), F.awaitingPromise.set(t, !0)) : (fr(wn, t), fr(F, t));
|
|
5019
5025
|
}, fr = (t, e) => {
|
|
5020
5026
|
for (const n in t)
|
|
5021
5027
|
t[n].delete(e);
|
|
5022
|
-
},
|
|
5028
|
+
}, us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5023
5029
|
__proto__: null,
|
|
5024
|
-
_destroy:
|
|
5030
|
+
_destroy: Ad,
|
|
5025
5031
|
close: Dn,
|
|
5026
5032
|
closeModal: Dn,
|
|
5027
5033
|
closePopup: Dn,
|
|
5028
5034
|
closeToast: Dn,
|
|
5029
|
-
disableButtons:
|
|
5030
|
-
disableInput:
|
|
5035
|
+
disableButtons: vd,
|
|
5036
|
+
disableInput: _d,
|
|
5031
5037
|
disableLoading: ni,
|
|
5032
|
-
enableButtons:
|
|
5033
|
-
enableInput:
|
|
5034
|
-
getInput:
|
|
5035
|
-
getProgressSteps:
|
|
5038
|
+
enableButtons: bd,
|
|
5039
|
+
enableInput: wd,
|
|
5040
|
+
getInput: ed,
|
|
5041
|
+
getProgressSteps: Cd,
|
|
5036
5042
|
handleAwaitingPromise: An,
|
|
5037
5043
|
hideLoading: ni,
|
|
5038
|
-
isAwaitingPromise:
|
|
5039
|
-
rejectPromise:
|
|
5040
|
-
resetValidationMessage:
|
|
5041
|
-
showValidationMessage:
|
|
5042
|
-
update:
|
|
5043
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5044
|
+
isAwaitingPromise: fd,
|
|
5045
|
+
rejectPromise: pd,
|
|
5046
|
+
resetValidationMessage: kd,
|
|
5047
|
+
showValidationMessage: Sd,
|
|
5048
|
+
update: Id
|
|
5049
|
+
}, Symbol.toStringTag, { value: "Module" })), Ed = (t) => {
|
|
5044
5050
|
const e = F.innerParams.get(t);
|
|
5045
5051
|
t.disableButtons(), e.input ? ds(t, "confirm") : Qr(t, !0);
|
|
5046
|
-
},
|
|
5052
|
+
}, xd = (t) => {
|
|
5047
5053
|
const e = F.innerParams.get(t);
|
|
5048
5054
|
t.disableButtons(), e.returnInputValueOnDeny ? ds(t, "deny") : Jr(t, !1);
|
|
5049
|
-
},
|
|
5055
|
+
}, Ld = (t, e) => {
|
|
5050
5056
|
t.disableButtons(), e(Kt.cancel);
|
|
5051
5057
|
}, ds = (t, e) => {
|
|
5052
5058
|
const n = F.innerParams.get(t);
|
|
@@ -5054,9 +5060,9 @@ const Id = (t) => {
|
|
|
5054
5060
|
return Lt(
|
|
5055
5061
|
`The "input" parameter is needed to be set when using returnInputValueOn${Fr(e)}`
|
|
5056
5062
|
);
|
|
5057
|
-
const r =
|
|
5058
|
-
n.inputValidator ?
|
|
5059
|
-
},
|
|
5063
|
+
const r = Wu(t, n);
|
|
5064
|
+
n.inputValidator ? Od(t, r, e) : t.getInput().checkValidity() ? e === "deny" ? Jr(t, r) : Qr(t, r) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
5065
|
+
}, Od = (t, e, n) => {
|
|
5060
5066
|
const r = F.innerParams.get(t);
|
|
5061
5067
|
t.disableInput(), Promise.resolve().then(
|
|
5062
5068
|
() => Sn(r.inputValidator(e, r.validationMessage))
|
|
@@ -5081,28 +5087,28 @@ const Id = (t) => {
|
|
|
5081
5087
|
).then((o) => {
|
|
5082
5088
|
Be(Xn()) || o === !1 ? (t.hideLoading(), An(t)) : oi(t, typeof o > "u" ? e : o);
|
|
5083
5089
|
}).catch((o) => fs(t || void 0, o))) : oi(t, e);
|
|
5084
|
-
},
|
|
5085
|
-
F.innerParams.get(t).toast ?
|
|
5086
|
-
},
|
|
5090
|
+
}, $d = (t, e, n) => {
|
|
5091
|
+
F.innerParams.get(t).toast ? Md(t, e, n) : (Rd(e), Bd(e), Nd(t, e, n));
|
|
5092
|
+
}, Md = (t, e, n) => {
|
|
5087
5093
|
e.popup.onclick = () => {
|
|
5088
5094
|
const r = F.innerParams.get(t);
|
|
5089
|
-
r && (
|
|
5095
|
+
r && (Dd(r) || r.timer || r.input) || n(Kt.close);
|
|
5090
5096
|
};
|
|
5091
|
-
},
|
|
5097
|
+
}, Dd = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
5092
5098
|
let Wn = !1;
|
|
5093
|
-
const
|
|
5099
|
+
const Rd = (t) => {
|
|
5094
5100
|
t.popup.onmousedown = () => {
|
|
5095
5101
|
t.container.onmouseup = function(e) {
|
|
5096
5102
|
t.container.onmouseup = void 0, e.target === t.container && (Wn = !0);
|
|
5097
5103
|
};
|
|
5098
5104
|
};
|
|
5099
|
-
},
|
|
5105
|
+
}, Bd = (t) => {
|
|
5100
5106
|
t.container.onmousedown = () => {
|
|
5101
5107
|
t.popup.onmouseup = function(e) {
|
|
5102
5108
|
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (Wn = !0);
|
|
5103
5109
|
};
|
|
5104
5110
|
};
|
|
5105
|
-
},
|
|
5111
|
+
}, Nd = (t, e, n) => {
|
|
5106
5112
|
e.container.onclick = (r) => {
|
|
5107
5113
|
const o = F.innerParams.get(t);
|
|
5108
5114
|
if (Wn) {
|
|
@@ -5111,18 +5117,18 @@ const $d = (t) => {
|
|
|
5111
5117
|
}
|
|
5112
5118
|
r.target === e.container && Yn(o.allowOutsideClick) && n(Kt.backdrop);
|
|
5113
5119
|
};
|
|
5114
|
-
},
|
|
5120
|
+
}, Ud = (t) => typeof t == "object" && t.jquery, ii = (t) => t instanceof Element || Ud(t), Hd = (t) => {
|
|
5115
5121
|
const e = {};
|
|
5116
5122
|
return typeof t[0] == "object" && !ii(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, r) => {
|
|
5117
5123
|
const o = t[r];
|
|
5118
5124
|
typeof o == "string" || ii(o) ? e[n] = o : o !== void 0 && Lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`);
|
|
5119
5125
|
}), e;
|
|
5120
5126
|
};
|
|
5121
|
-
function
|
|
5127
|
+
function jd(...t) {
|
|
5122
5128
|
const e = this;
|
|
5123
5129
|
return new e(...t);
|
|
5124
5130
|
}
|
|
5125
|
-
function
|
|
5131
|
+
function Fd(t) {
|
|
5126
5132
|
class e extends this {
|
|
5127
5133
|
_main(r, o) {
|
|
5128
5134
|
return super._main(r, Object.assign({}, t, o));
|
|
@@ -5130,29 +5136,29 @@ function Ud(t) {
|
|
|
5130
5136
|
}
|
|
5131
5137
|
return e;
|
|
5132
5138
|
}
|
|
5133
|
-
const
|
|
5139
|
+
const Vd = () => j.timeout && j.timeout.getTimerLeft(), ms = () => {
|
|
5134
5140
|
if (j.timeout)
|
|
5135
|
-
return
|
|
5141
|
+
return xc(), j.timeout.stop();
|
|
5136
5142
|
}, ps = () => {
|
|
5137
5143
|
if (j.timeout) {
|
|
5138
5144
|
const t = j.timeout.start();
|
|
5139
5145
|
return Yr(t), t;
|
|
5140
5146
|
}
|
|
5141
|
-
},
|
|
5147
|
+
}, Kd = () => {
|
|
5142
5148
|
const t = j.timeout;
|
|
5143
5149
|
return t && (t.running ? ms() : ps());
|
|
5144
|
-
},
|
|
5150
|
+
}, zd = (t) => {
|
|
5145
5151
|
if (j.timeout) {
|
|
5146
5152
|
const e = j.timeout.increase(t);
|
|
5147
5153
|
return Yr(e, !0), e;
|
|
5148
5154
|
}
|
|
5149
|
-
},
|
|
5155
|
+
}, Wd = () => j.timeout && j.timeout.isRunning();
|
|
5150
5156
|
let si = !1;
|
|
5151
5157
|
const Er = {};
|
|
5152
|
-
function
|
|
5153
|
-
Er[t] = this, si || (document.body.addEventListener("click",
|
|
5158
|
+
function Gd(t = "data-swal-template") {
|
|
5159
|
+
Er[t] = this, si || (document.body.addEventListener("click", qd), si = !0);
|
|
5154
5160
|
}
|
|
5155
|
-
const
|
|
5161
|
+
const qd = (t) => {
|
|
5156
5162
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
5157
5163
|
for (const n in Er) {
|
|
5158
5164
|
const r = e.getAttribute(n);
|
|
@@ -5161,15 +5167,15 @@ const zd = (t) => {
|
|
|
5161
5167
|
return;
|
|
5162
5168
|
}
|
|
5163
5169
|
}
|
|
5164
|
-
},
|
|
5170
|
+
}, Yd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5165
5171
|
__proto__: null,
|
|
5166
|
-
argsToParams:
|
|
5167
|
-
bindClickHandler:
|
|
5168
|
-
clickCancel:
|
|
5172
|
+
argsToParams: Hd,
|
|
5173
|
+
bindClickHandler: Gd,
|
|
5174
|
+
clickCancel: rd,
|
|
5169
5175
|
clickConfirm: rs,
|
|
5170
|
-
clickDeny:
|
|
5176
|
+
clickDeny: nd,
|
|
5171
5177
|
enableLoading: jt,
|
|
5172
|
-
fire:
|
|
5178
|
+
fire: jd,
|
|
5173
5179
|
getActions: In,
|
|
5174
5180
|
getCancelButton: At,
|
|
5175
5181
|
getCloseButton: zr,
|
|
@@ -5181,25 +5187,25 @@ const zd = (t) => {
|
|
|
5181
5187
|
getHtmlContainer: zn,
|
|
5182
5188
|
getIcon: Cn,
|
|
5183
5189
|
getImage: Ki,
|
|
5184
|
-
getInputLabel:
|
|
5190
|
+
getInputLabel: Ic,
|
|
5185
5191
|
getLoader: Vt,
|
|
5186
5192
|
getPopup: te,
|
|
5187
|
-
getTimerLeft:
|
|
5193
|
+
getTimerLeft: Vd,
|
|
5188
5194
|
getTimerProgressBar: Zn,
|
|
5189
5195
|
getTitle: Vi,
|
|
5190
5196
|
getValidationMessage: Xn,
|
|
5191
|
-
increaseTimer:
|
|
5197
|
+
increaseTimer: zd,
|
|
5192
5198
|
isDeprecatedParameter: Tr,
|
|
5193
|
-
isLoading:
|
|
5194
|
-
isTimerRunning:
|
|
5199
|
+
isLoading: Ac,
|
|
5200
|
+
isTimerRunning: Wd,
|
|
5195
5201
|
isUpdatableParameter: ji,
|
|
5196
5202
|
isValidParameter: Hi,
|
|
5197
|
-
isVisible:
|
|
5198
|
-
mixin:
|
|
5203
|
+
isVisible: td,
|
|
5204
|
+
mixin: Fd,
|
|
5199
5205
|
resumeTimer: ps,
|
|
5200
5206
|
showLoading: jt,
|
|
5201
5207
|
stopTimer: ms,
|
|
5202
|
-
toggleTimer:
|
|
5208
|
+
toggleTimer: Kd
|
|
5203
5209
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5204
5210
|
let xr;
|
|
5205
5211
|
class zt {
|
|
@@ -5220,11 +5226,11 @@ class zt {
|
|
|
5220
5226
|
F.promise.set(this, r);
|
|
5221
5227
|
}
|
|
5222
5228
|
_main(e, n = {}) {
|
|
5223
|
-
|
|
5224
|
-
const r =
|
|
5225
|
-
|
|
5226
|
-
const o =
|
|
5227
|
-
return Ji(this, r), F.innerParams.set(this, r),
|
|
5229
|
+
kc(Object.assign({}, n, e)), j.currentInstance && (j.currentInstance._destroy(), Gr() && Qi()), j.currentInstance = this;
|
|
5230
|
+
const r = Zd(e, n);
|
|
5231
|
+
Eu(r), Object.freeze(r), j.timeout && (j.timeout.stop(), delete j.timeout), clearTimeout(j.restoreFocusTimeout);
|
|
5232
|
+
const o = Jd(this);
|
|
5233
|
+
return Ji(this, r), F.innerParams.set(this, r), Xd(this, o, r);
|
|
5228
5234
|
}
|
|
5229
5235
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
5230
5236
|
then(e) {
|
|
@@ -5234,17 +5240,17 @@ class zt {
|
|
|
5234
5240
|
return F.promise.get(this).finally(e);
|
|
5235
5241
|
}
|
|
5236
5242
|
}
|
|
5237
|
-
const
|
|
5238
|
-
const i = (
|
|
5239
|
-
t.closePopup({ isDismissed: !0, dismiss:
|
|
5243
|
+
const Xd = (t, e, n) => new Promise((r, o) => {
|
|
5244
|
+
const i = (l) => {
|
|
5245
|
+
t.closePopup({ isDismissed: !0, dismiss: l });
|
|
5240
5246
|
};
|
|
5241
|
-
wn.swalPromiseResolve.set(t, r), wn.swalPromiseReject.set(t, o), e.confirmButton.onclick = () =>
|
|
5247
|
+
wn.swalPromiseResolve.set(t, r), wn.swalPromiseReject.set(t, o), e.confirmButton.onclick = () => Ed(t), e.denyButton.onclick = () => xd(t), e.cancelButton.onclick = () => Ld(t, i), e.closeButton.onclick = () => i(Kt.close), $d(t, e, i), od(t, j, n, i), zu(t, n), Hu(n), Qd(j, n, i), ef(e, n), setTimeout(() => {
|
|
5242
5248
|
e.container.scrollTop = 0;
|
|
5243
5249
|
});
|
|
5244
|
-
}),
|
|
5245
|
-
const n =
|
|
5250
|
+
}), Zd = (t, e) => {
|
|
5251
|
+
const n = vu(t), r = Object.assign({}, Ut, e, n, t);
|
|
5246
5252
|
return r.showClass = Object.assign({}, Ut.showClass, r.showClass), r.hideClass = Object.assign({}, Ut.hideClass, r.hideClass), r;
|
|
5247
|
-
},
|
|
5253
|
+
}, Jd = (t) => {
|
|
5248
5254
|
const e = {
|
|
5249
5255
|
popup: te(),
|
|
5250
5256
|
container: _e(),
|
|
@@ -5258,25 +5264,25 @@ const Gd = (t, e, n) => new Promise((r, o) => {
|
|
|
5258
5264
|
progressSteps: zi()
|
|
5259
5265
|
};
|
|
5260
5266
|
return F.domCache.set(t, e), e;
|
|
5261
|
-
},
|
|
5267
|
+
}, Qd = (t, e, n) => {
|
|
5262
5268
|
const r = Zn();
|
|
5263
|
-
Se(r), e.timer && (t.timeout = new
|
|
5269
|
+
Se(r), e.timer && (t.timeout = new xu(() => {
|
|
5264
5270
|
n("timer"), delete t.timeout;
|
|
5265
5271
|
}, e.timer), e.timerProgressBar && (me(r), je(r, e, "timerProgressBar"), setTimeout(() => {
|
|
5266
5272
|
t.timeout && t.timeout.running && Yr(e.timer);
|
|
5267
5273
|
})));
|
|
5268
|
-
},
|
|
5274
|
+
}, ef = (t, e) => {
|
|
5269
5275
|
if (!e.toast) {
|
|
5270
5276
|
if (!Yn(e.allowEnterKey))
|
|
5271
|
-
return
|
|
5272
|
-
|
|
5277
|
+
return nf();
|
|
5278
|
+
tf(t, e) || Pr(e, -1, 1);
|
|
5273
5279
|
}
|
|
5274
|
-
},
|
|
5280
|
+
}, tf = (t, e) => e.focusDeny && Be(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Be(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Be(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, nf = () => {
|
|
5275
5281
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
5276
5282
|
};
|
|
5277
|
-
Object.assign(zt.prototype,
|
|
5278
|
-
Object.assign(zt,
|
|
5279
|
-
Object.keys(
|
|
5283
|
+
Object.assign(zt.prototype, us);
|
|
5284
|
+
Object.assign(zt, Yd);
|
|
5285
|
+
Object.keys(us).forEach((t) => {
|
|
5280
5286
|
zt[t] = function(...e) {
|
|
5281
5287
|
if (xr)
|
|
5282
5288
|
return xr[t](...e);
|
|
@@ -5290,9 +5296,9 @@ Et.default = Et;
|
|
|
5290
5296
|
const {
|
|
5291
5297
|
entries: hs,
|
|
5292
5298
|
setPrototypeOf: ai,
|
|
5293
|
-
isFrozen:
|
|
5294
|
-
getPrototypeOf:
|
|
5295
|
-
getOwnPropertyDescriptor:
|
|
5299
|
+
isFrozen: rf,
|
|
5300
|
+
getPrototypeOf: of,
|
|
5301
|
+
getOwnPropertyDescriptor: sf
|
|
5296
5302
|
} = Object;
|
|
5297
5303
|
let {
|
|
5298
5304
|
freeze: Ae,
|
|
@@ -5314,7 +5320,7 @@ Lr || (Lr = function(e, n, r) {
|
|
|
5314
5320
|
Or || (Or = function(e, n) {
|
|
5315
5321
|
return new e(...n);
|
|
5316
5322
|
});
|
|
5317
|
-
const Rn = Ue(Array.prototype.forEach), li = Ue(Array.prototype.pop), Jt = Ue(Array.prototype.push), Un = Ue(String.prototype.toLowerCase), mr = Ue(String.prototype.toString),
|
|
5323
|
+
const Rn = Ue(Array.prototype.forEach), li = Ue(Array.prototype.pop), Jt = Ue(Array.prototype.push), Un = Ue(String.prototype.toLowerCase), mr = Ue(String.prototype.toString), ci = Ue(String.prototype.match), Qt = Ue(String.prototype.replace), af = Ue(String.prototype.indexOf), lf = Ue(String.prototype.trim), Ge = Ue(Object.prototype.hasOwnProperty), Ce = Ue(RegExp.prototype.test), en = cf(TypeError);
|
|
5318
5324
|
function Ue(t) {
|
|
5319
5325
|
return function(e) {
|
|
5320
5326
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -5322,7 +5328,7 @@ function Ue(t) {
|
|
|
5322
5328
|
return Lr(t, e, r);
|
|
5323
5329
|
};
|
|
5324
5330
|
}
|
|
5325
|
-
function
|
|
5331
|
+
function cf(t) {
|
|
5326
5332
|
return function() {
|
|
5327
5333
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
5328
5334
|
n[r] = arguments[r];
|
|
@@ -5337,13 +5343,13 @@ function z(t, e) {
|
|
|
5337
5343
|
let o = e[r];
|
|
5338
5344
|
if (typeof o == "string") {
|
|
5339
5345
|
const i = n(o);
|
|
5340
|
-
i !== o && (
|
|
5346
|
+
i !== o && (rf(e) || (e[r] = i), o = i);
|
|
5341
5347
|
}
|
|
5342
5348
|
t[o] = !0;
|
|
5343
5349
|
}
|
|
5344
5350
|
return t;
|
|
5345
5351
|
}
|
|
5346
|
-
function
|
|
5352
|
+
function uf(t) {
|
|
5347
5353
|
for (let e = 0; e < t.length; e++)
|
|
5348
5354
|
Ge(t, e) || (t[e] = null);
|
|
5349
5355
|
return t;
|
|
@@ -5351,44 +5357,44 @@ function af(t) {
|
|
|
5351
5357
|
function kt(t) {
|
|
5352
5358
|
const e = gs(null);
|
|
5353
5359
|
for (const [n, r] of hs(t))
|
|
5354
|
-
Ge(t, n) && (Array.isArray(r) ? e[n] =
|
|
5360
|
+
Ge(t, n) && (Array.isArray(r) ? e[n] = uf(r) : r && typeof r == "object" && r.constructor === Object ? e[n] = kt(r) : e[n] = r);
|
|
5355
5361
|
return e;
|
|
5356
5362
|
}
|
|
5357
5363
|
function tn(t, e) {
|
|
5358
5364
|
for (; t !== null; ) {
|
|
5359
|
-
const r =
|
|
5365
|
+
const r = sf(t, e);
|
|
5360
5366
|
if (r) {
|
|
5361
5367
|
if (r.get)
|
|
5362
5368
|
return Ue(r.get);
|
|
5363
5369
|
if (typeof r.value == "function")
|
|
5364
5370
|
return Ue(r.value);
|
|
5365
5371
|
}
|
|
5366
|
-
t =
|
|
5372
|
+
t = of(t);
|
|
5367
5373
|
}
|
|
5368
5374
|
function n() {
|
|
5369
5375
|
return null;
|
|
5370
5376
|
}
|
|
5371
5377
|
return n;
|
|
5372
5378
|
}
|
|
5373
|
-
const
|
|
5379
|
+
const ui = Ae(["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"]), pr = Ae(["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"]), hr = Ae(["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"]), df = Ae(["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"]), gr = Ae(["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"]), ff = Ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), di = Ae(["#text"]), fi = Ae(["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", "popover", "popovertarget", "popovertargetaction", "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", "wrap", "xmlns", "slot"]), yr = Ae(["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"]), mi = Ae(["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"]), Bn = Ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), mf = Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), pf = Fe(/<%[\w\W]*|[\w\W]*%>/gm), hf = Fe(/\${[\w\W]*}/gm), gf = Fe(/^data-[\-\w.\u00B7-\uFFFF]/), yf = Fe(/^aria-[\-\w]+$/), ys = Fe(
|
|
5374
5380
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5375
5381
|
// eslint-disable-line no-useless-escape
|
|
5376
|
-
),
|
|
5382
|
+
), bf = Fe(/^(?:\w+script|data):/i), vf = Fe(
|
|
5377
5383
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
5378
5384
|
// eslint-disable-line no-control-regex
|
|
5379
|
-
), bs = Fe(/^html$/i),
|
|
5385
|
+
), bs = Fe(/^html$/i), wf = Fe(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
5380
5386
|
var pi = /* @__PURE__ */ Object.freeze({
|
|
5381
5387
|
__proto__: null,
|
|
5382
|
-
MUSTACHE_EXPR:
|
|
5383
|
-
ERB_EXPR:
|
|
5384
|
-
TMPLIT_EXPR:
|
|
5385
|
-
DATA_ATTR:
|
|
5386
|
-
ARIA_ATTR:
|
|
5388
|
+
MUSTACHE_EXPR: mf,
|
|
5389
|
+
ERB_EXPR: pf,
|
|
5390
|
+
TMPLIT_EXPR: hf,
|
|
5391
|
+
DATA_ATTR: gf,
|
|
5392
|
+
ARIA_ATTR: yf,
|
|
5387
5393
|
IS_ALLOWED_URI: ys,
|
|
5388
|
-
IS_SCRIPT_OR_DATA:
|
|
5389
|
-
ATTR_WHITESPACE:
|
|
5394
|
+
IS_SCRIPT_OR_DATA: bf,
|
|
5395
|
+
ATTR_WHITESPACE: vf,
|
|
5390
5396
|
DOCTYPE_NAME: bs,
|
|
5391
|
-
CUSTOM_ELEMENT:
|
|
5397
|
+
CUSTOM_ELEMENT: wf
|
|
5392
5398
|
});
|
|
5393
5399
|
const nn = {
|
|
5394
5400
|
element: 1,
|
|
@@ -5406,9 +5412,9 @@ const nn = {
|
|
|
5406
5412
|
documentFragment: 11,
|
|
5407
5413
|
notation: 12
|
|
5408
5414
|
// Deprecated
|
|
5409
|
-
},
|
|
5415
|
+
}, _f = function() {
|
|
5410
5416
|
return typeof window > "u" ? null : window;
|
|
5411
|
-
},
|
|
5417
|
+
}, Sf = function(e, n) {
|
|
5412
5418
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
5413
5419
|
return null;
|
|
5414
5420
|
let r = null;
|
|
@@ -5417,11 +5423,11 @@ const nn = {
|
|
|
5417
5423
|
const i = "dompurify" + (r ? "#" + r : "");
|
|
5418
5424
|
try {
|
|
5419
5425
|
return e.createPolicy(i, {
|
|
5420
|
-
createHTML(
|
|
5421
|
-
return
|
|
5426
|
+
createHTML(l) {
|
|
5427
|
+
return l;
|
|
5422
5428
|
},
|
|
5423
|
-
createScriptURL(
|
|
5424
|
-
return
|
|
5429
|
+
createScriptURL(l) {
|
|
5430
|
+
return l;
|
|
5425
5431
|
}
|
|
5426
5432
|
});
|
|
5427
5433
|
} catch {
|
|
@@ -5429,7 +5435,7 @@ const nn = {
|
|
|
5429
5435
|
}
|
|
5430
5436
|
};
|
|
5431
5437
|
function vs() {
|
|
5432
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
5438
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _f();
|
|
5433
5439
|
const e = (D) => vs(D);
|
|
5434
5440
|
if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== nn.document)
|
|
5435
5441
|
return e.isSupported = !1, e;
|
|
@@ -5438,16 +5444,16 @@ function vs() {
|
|
|
5438
5444
|
} = t;
|
|
5439
5445
|
const r = n, o = r.currentScript, {
|
|
5440
5446
|
DocumentFragment: i,
|
|
5441
|
-
HTMLTemplateElement:
|
|
5447
|
+
HTMLTemplateElement: l,
|
|
5442
5448
|
Node: s,
|
|
5443
|
-
Element:
|
|
5444
|
-
NodeFilter:
|
|
5449
|
+
Element: a,
|
|
5450
|
+
NodeFilter: u,
|
|
5445
5451
|
NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
5446
5452
|
HTMLFormElement: m,
|
|
5447
5453
|
DOMParser: g,
|
|
5448
5454
|
trustedTypes: w
|
|
5449
|
-
} = t, k =
|
|
5450
|
-
if (typeof
|
|
5455
|
+
} = t, k = a.prototype, A = tn(k, "cloneNode"), E = tn(k, "remove"), v = tn(k, "nextSibling"), S = tn(k, "childNodes"), R = tn(k, "parentNode");
|
|
5456
|
+
if (typeof l == "function") {
|
|
5451
5457
|
const D = n.createElement("template");
|
|
5452
5458
|
D.content && D.content.ownerDocument && (n = D.content.ownerDocument);
|
|
5453
5459
|
}
|
|
@@ -5474,8 +5480,8 @@ function vs() {
|
|
|
5474
5480
|
} = pi;
|
|
5475
5481
|
let {
|
|
5476
5482
|
IS_ALLOWED_URI: He
|
|
5477
|
-
} = pi,
|
|
5478
|
-
const p = z({}, [...
|
|
5483
|
+
} = pi, c = null;
|
|
5484
|
+
const p = z({}, [...ui, ...pr, ...hr, ...gr, ...di]);
|
|
5479
5485
|
let b = null;
|
|
5480
5486
|
const T = z({}, [...fi, ...yr, ...mi, ...Bn]);
|
|
5481
5487
|
let y = Object.seal(gs(null, {
|
|
@@ -5509,45 +5515,45 @@ function vs() {
|
|
|
5509
5515
|
const Os = z({}, [xn, Ln, at], mr);
|
|
5510
5516
|
let Gt = null;
|
|
5511
5517
|
const $s = ["application/xhtml+xml", "text/html"], Ms = "text/html";
|
|
5512
|
-
let
|
|
5518
|
+
let ce = null, Rt = null;
|
|
5513
5519
|
const Ds = n.createElement("form"), ao = function(f) {
|
|
5514
5520
|
return f instanceof RegExp || f instanceof Function;
|
|
5515
5521
|
}, or = function() {
|
|
5516
5522
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5517
5523
|
if (!(Rt && Rt === f)) {
|
|
5518
5524
|
if ((!f || typeof f != "object") && (f = {}), f = kt(f), Gt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5519
|
-
$s.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Ms : f.PARSER_MEDIA_TYPE,
|
|
5525
|
+
$s.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Ms : f.PARSER_MEDIA_TYPE, ce = Gt === "application/xhtml+xml" ? mr : Un, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, ce) : p, b = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, ce) : T, rr = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, mr) : Os, tr = Ge(f, "ADD_URI_SAFE_ATTR") ? z(
|
|
5520
5526
|
kt(so),
|
|
5521
5527
|
// eslint-disable-line indent
|
|
5522
5528
|
f.ADD_URI_SAFE_ATTR,
|
|
5523
5529
|
// eslint-disable-line indent
|
|
5524
|
-
|
|
5530
|
+
ce
|
|
5525
5531
|
// eslint-disable-line indent
|
|
5526
5532
|
) : so, oo = Ge(f, "ADD_DATA_URI_TAGS") ? z(
|
|
5527
5533
|
kt(io),
|
|
5528
5534
|
// eslint-disable-line indent
|
|
5529
5535
|
f.ADD_DATA_URI_TAGS,
|
|
5530
5536
|
// eslint-disable-line indent
|
|
5531
|
-
|
|
5537
|
+
ce
|
|
5532
5538
|
// eslint-disable-line indent
|
|
5533
|
-
) : io, Mt = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS,
|
|
5539
|
+
) : io, Mt = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, ce) : ro, P = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, ce) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, ce) : {}, $t = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, x = f.ALLOW_UNKNOWN_PROTOCOLS || !1, N = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, Pe = f.SAFE_FOR_XML !== !1, ye = f.WHOLE_DOCUMENT || !1, Ot = f.RETURN_DOM || !1, Pn = f.RETURN_DOM_FRAGMENT || !1, En = f.RETURN_TRUSTED_TYPE || !1, st = f.FORCE_BODY || !1, to = f.SANITIZE_DOM !== !1, no = f.SANITIZE_NAMED_PROPS || !1, er = f.KEEP_CONTENT !== !1, Wt = f.IN_PLACE || !1, He = f.ALLOWED_URI_REGEXP || ys, Dt = f.NAMESPACE || at, y = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && ao(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (y.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && ao(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (y.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (y.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (L = !1), Pn && (Ot = !0), $t && (c = z({}, di), b = [], $t.html === !0 && (z(c, ui), z(b, fi)), $t.svg === !0 && (z(c, pr), z(b, yr), z(b, Bn)), $t.svgFilters === !0 && (z(c, hr), z(b, yr), z(b, Bn)), $t.mathMl === !0 && (z(c, gr), z(b, mi), z(b, Bn))), f.ADD_TAGS && (c === p && (c = kt(c)), z(c, f.ADD_TAGS, ce)), f.ADD_ATTR && (b === T && (b = kt(b)), z(b, f.ADD_ATTR, ce)), f.ADD_URI_SAFE_ATTR && z(tr, f.ADD_URI_SAFE_ATTR, ce), f.FORBID_CONTENTS && (Mt === ro && (Mt = kt(Mt)), z(Mt, f.FORBID_CONTENTS, ce)), er && (c["#text"] = !0), ye && z(c, ["html", "head", "body"]), c.table && (z(c, ["tbody"]), delete P.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
5534
5540
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5535
5541
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5536
5542
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
5537
5543
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5538
5544
|
U = f.TRUSTED_TYPES_POLICY, Y = U.createHTML("");
|
|
5539
5545
|
} else
|
|
5540
|
-
U === void 0 && (U =
|
|
5546
|
+
U === void 0 && (U = Sf(w, o)), U !== null && typeof Y == "string" && (Y = U.createHTML(""));
|
|
5541
5547
|
Ae && Ae(f), Rt = f;
|
|
5542
5548
|
}
|
|
5543
|
-
}, lo = z({}, ["mi", "mo", "mn", "ms", "mtext"]),
|
|
5549
|
+
}, lo = z({}, ["mi", "mo", "mn", "ms", "mtext"]), co = z({}, ["foreignobject", "annotation-xml"]), Rs = z({}, ["title", "style", "font", "a", "script"]), uo = z({}, [...pr, ...hr, ...df]), fo = z({}, [...gr, ...ff]), Bs = function(f) {
|
|
5544
5550
|
let I = R(f);
|
|
5545
5551
|
(!I || !I.tagName) && (I = {
|
|
5546
5552
|
namespaceURI: Dt,
|
|
5547
5553
|
tagName: "template"
|
|
5548
5554
|
});
|
|
5549
5555
|
const O = Un(f.tagName), ne = Un(I.tagName);
|
|
5550
|
-
return rr[f.namespaceURI] ? f.namespaceURI === Ln ? I.namespaceURI === at ? O === "svg" : I.namespaceURI === xn ? O === "svg" && (ne === "annotation-xml" || lo[ne]) : !!
|
|
5556
|
+
return rr[f.namespaceURI] ? f.namespaceURI === Ln ? I.namespaceURI === at ? O === "svg" : I.namespaceURI === xn ? O === "svg" && (ne === "annotation-xml" || lo[ne]) : !!uo[O] : f.namespaceURI === xn ? I.namespaceURI === at ? O === "math" : I.namespaceURI === Ln ? O === "math" && co[ne] : !!fo[O] : f.namespaceURI === at ? I.namespaceURI === Ln && !co[ne] || I.namespaceURI === xn && !lo[ne] ? !1 : !fo[O] && (Rs[O] || !uo[O]) : !!(Gt === "application/xhtml+xml" && rr[f.namespaceURI]) : !1;
|
|
5551
5557
|
}, et = function(f) {
|
|
5552
5558
|
Jt(e.removed, {
|
|
5553
5559
|
element: f
|
|
@@ -5585,7 +5591,7 @@ function vs() {
|
|
|
5585
5591
|
if (st)
|
|
5586
5592
|
f = "<remove></remove>" + f;
|
|
5587
5593
|
else {
|
|
5588
|
-
const de =
|
|
5594
|
+
const de = ci(f, /^[\r\n\t ]+/);
|
|
5589
5595
|
O = de && de[0];
|
|
5590
5596
|
}
|
|
5591
5597
|
Gt === "application/xhtml+xml" && Dt === at && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
@@ -5609,7 +5615,7 @@ function vs() {
|
|
|
5609
5615
|
f.ownerDocument || f,
|
|
5610
5616
|
f,
|
|
5611
5617
|
// eslint-disable-next-line no-bitwise
|
|
5612
|
-
|
|
5618
|
+
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
5613
5619
|
null
|
|
5614
5620
|
);
|
|
5615
5621
|
}, ho = function(f) {
|
|
@@ -5624,13 +5630,13 @@ function vs() {
|
|
|
5624
5630
|
let I = null;
|
|
5625
5631
|
if (lt("beforeSanitizeElements", f, null), ho(f))
|
|
5626
5632
|
return et(f), !0;
|
|
5627
|
-
const O =
|
|
5633
|
+
const O = ce(f.nodeName);
|
|
5628
5634
|
if (lt("uponSanitizeElement", f, {
|
|
5629
5635
|
tagName: O,
|
|
5630
|
-
allowedTags:
|
|
5636
|
+
allowedTags: c
|
|
5631
5637
|
}), f.hasChildNodes() && !go(f.firstElementChild) && Ce(/<[/\w]/g, f.innerHTML) && Ce(/<[/\w]/g, f.textContent) || f.nodeType === nn.progressingInstruction || Pe && f.nodeType === nn.comment && Ce(/<[/\w]/g, f.data))
|
|
5632
5638
|
return et(f), !0;
|
|
5633
|
-
if (!
|
|
5639
|
+
if (!c[O] || P[O]) {
|
|
5634
5640
|
if (!P[O] && vo(O) && (y.tagNameCheck instanceof RegExp && Ce(y.tagNameCheck, O) || y.tagNameCheck instanceof Function && y.tagNameCheck(O)))
|
|
5635
5641
|
return !1;
|
|
5636
5642
|
if (er && !Mt[O]) {
|
|
@@ -5645,7 +5651,7 @@ function vs() {
|
|
|
5645
5651
|
}
|
|
5646
5652
|
return et(f), !0;
|
|
5647
5653
|
}
|
|
5648
|
-
return f instanceof
|
|
5654
|
+
return f instanceof a && !Bs(f) || (O === "noscript" || O === "noembed" || O === "noframes") && Ce(/<\/no(script|embed|frames)/i, f.innerHTML) ? (et(f), !0) : (V && f.nodeType === nn.text && (I = f.textContent, Rn([J, he, ge], (ne) => {
|
|
5649
5655
|
I = Qt(I, ne, " ");
|
|
5650
5656
|
}), f.textContent !== I && (Jt(e.removed, {
|
|
5651
5657
|
element: f.cloneNode()
|
|
@@ -5666,7 +5672,7 @@ function vs() {
|
|
|
5666
5672
|
) return !1;
|
|
5667
5673
|
} else if (!tr[I]) {
|
|
5668
5674
|
if (!Ce(He, Qt(O, Qe, ""))) {
|
|
5669
|
-
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" &&
|
|
5675
|
+
if (!((I === "src" || I === "xlink:href" || I === "href") && f !== "script" && af(O, "data:") === 0 && oo[f])) {
|
|
5670
5676
|
if (!(x && !Ce(Je, Qt(O, Qe, "")))) {
|
|
5671
5677
|
if (O)
|
|
5672
5678
|
return !1;
|
|
@@ -5678,7 +5684,7 @@ function vs() {
|
|
|
5678
5684
|
}
|
|
5679
5685
|
return !0;
|
|
5680
5686
|
}, vo = function(f) {
|
|
5681
|
-
return f !== "annotation-xml" &&
|
|
5687
|
+
return f !== "annotation-xml" && ci(f, _t);
|
|
5682
5688
|
}, wo = function(f) {
|
|
5683
5689
|
lt("beforeSanitizeAttributes", f, null);
|
|
5684
5690
|
const {
|
|
@@ -5698,8 +5704,8 @@ function vs() {
|
|
|
5698
5704
|
name: de,
|
|
5699
5705
|
namespaceURI: Ee,
|
|
5700
5706
|
value: tt
|
|
5701
|
-
} = ve, qt =
|
|
5702
|
-
let ke = de === "value" ? tt :
|
|
5707
|
+
} = ve, qt = ce(de);
|
|
5708
|
+
let ke = de === "value" ? tt : lf(tt);
|
|
5703
5709
|
if (O.attrName = qt, O.attrValue = ke, O.keepAttr = !0, O.forceKeepAttr = void 0, lt("uponSanitizeAttribute", f, O), ke = O.attrValue, Pe && Ce(/((--!?|])>)|<\/(style|title)/i, ke)) {
|
|
5704
5710
|
On(de, f);
|
|
5705
5711
|
continue;
|
|
@@ -5713,7 +5719,7 @@ function vs() {
|
|
|
5713
5719
|
V && Rn([J, he, ge], (So) => {
|
|
5714
5720
|
ke = Qt(ke, So, " ");
|
|
5715
5721
|
});
|
|
5716
|
-
const _o =
|
|
5722
|
+
const _o = ce(f.nodeName);
|
|
5717
5723
|
if (bo(_o, qt, ke)) {
|
|
5718
5724
|
if (no && (qt === "id" || qt === "name") && (On(de, f), ke = Ls + ke), U && typeof w == "object" && typeof w.getAttributeType == "function" && !Ee)
|
|
5719
5725
|
switch (w.getAttributeType(_o, qt)) {
|
|
@@ -5752,8 +5758,8 @@ function vs() {
|
|
|
5752
5758
|
return D;
|
|
5753
5759
|
if (be || or(f), e.removed = [], typeof D == "string" && (Wt = !1), Wt) {
|
|
5754
5760
|
if (D.nodeName) {
|
|
5755
|
-
const tt =
|
|
5756
|
-
if (!
|
|
5761
|
+
const tt = ce(D.nodeName);
|
|
5762
|
+
if (!c[tt] || P[tt])
|
|
5757
5763
|
throw en("root node is forbidden and cannot be sanitized in-place");
|
|
5758
5764
|
}
|
|
5759
5765
|
} else if (D instanceof s)
|
|
@@ -5780,7 +5786,7 @@ function vs() {
|
|
|
5780
5786
|
return (b.shadowroot || b.shadowrootmode) && (ve = X.call(r, ve, !0)), ve;
|
|
5781
5787
|
}
|
|
5782
5788
|
let Ee = ye ? I.outerHTML : I.innerHTML;
|
|
5783
|
-
return ye &&
|
|
5789
|
+
return ye && c["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Ce(bs, I.ownerDocument.doctype.name) && (Ee = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
5784
5790
|
` + Ee), V && Rn([J, he, ge], (tt) => {
|
|
5785
5791
|
Ee = Qt(Ee, tt, " ");
|
|
5786
5792
|
}), U && En ? U.createHTML(Ee) : Ee;
|
|
@@ -5791,7 +5797,7 @@ function vs() {
|
|
|
5791
5797
|
Rt = null, be = !1;
|
|
5792
5798
|
}, e.isValidAttribute = function(D, f, I) {
|
|
5793
5799
|
Rt || or({});
|
|
5794
|
-
const O =
|
|
5800
|
+
const O = ce(D), ne = ce(f);
|
|
5795
5801
|
return bo(O, ne, I);
|
|
5796
5802
|
}, e.addHook = function(D, f) {
|
|
5797
5803
|
typeof f == "function" && (B[D] = B[D] || [], Jt(B[D], f));
|
|
@@ -5831,12 +5837,12 @@ class _s {
|
|
|
5831
5837
|
});
|
|
5832
5838
|
}
|
|
5833
5839
|
}
|
|
5834
|
-
const
|
|
5835
|
-
function
|
|
5840
|
+
const kf = () => new _s(), Tm = () => new _s();
|
|
5841
|
+
function Cf(t) {
|
|
5836
5842
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
5837
5843
|
}
|
|
5838
5844
|
function Ss(t, ...e) {
|
|
5839
|
-
if (!
|
|
5845
|
+
if (!Cf(t))
|
|
5840
5846
|
throw new Error("Uint8Array expected");
|
|
5841
5847
|
if (e.length > 0 && !e.includes(t.length))
|
|
5842
5848
|
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
@@ -5847,7 +5853,7 @@ function hi(t, e = !0) {
|
|
|
5847
5853
|
if (e && t.finished)
|
|
5848
5854
|
throw new Error("Hash#digest() has already been called");
|
|
5849
5855
|
}
|
|
5850
|
-
function
|
|
5856
|
+
function If(t, e) {
|
|
5851
5857
|
Ss(t);
|
|
5852
5858
|
const n = e.outputLen;
|
|
5853
5859
|
if (t.length < n)
|
|
@@ -5856,32 +5862,32 @@ function Sf(t, e) {
|
|
|
5856
5862
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5857
5863
|
const br = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), nt = (t, e) => t << 32 - e | t >>> e;
|
|
5858
5864
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
5859
|
-
function
|
|
5865
|
+
function Tf(t) {
|
|
5860
5866
|
if (typeof t != "string")
|
|
5861
5867
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
5862
5868
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
5863
5869
|
}
|
|
5864
5870
|
function ks(t) {
|
|
5865
|
-
return typeof t == "string" && (t =
|
|
5871
|
+
return typeof t == "string" && (t = Tf(t)), Ss(t), t;
|
|
5866
5872
|
}
|
|
5867
|
-
class
|
|
5873
|
+
class Af {
|
|
5868
5874
|
// Safe version that clones internal state
|
|
5869
5875
|
clone() {
|
|
5870
5876
|
return this._cloneInto();
|
|
5871
5877
|
}
|
|
5872
5878
|
}
|
|
5873
|
-
function
|
|
5879
|
+
function Pf(t) {
|
|
5874
5880
|
const e = (r) => t().update(ks(r)).digest(), n = t();
|
|
5875
5881
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
5876
5882
|
}
|
|
5877
|
-
function
|
|
5883
|
+
function Ef(t, e, n, r) {
|
|
5878
5884
|
if (typeof t.setBigUint64 == "function")
|
|
5879
5885
|
return t.setBigUint64(e, n, r);
|
|
5880
|
-
const o = BigInt(32), i = BigInt(4294967295),
|
|
5881
|
-
t.setUint32(e +
|
|
5886
|
+
const o = BigInt(32), i = BigInt(4294967295), l = Number(n >> o & i), s = Number(n & i), a = r ? 4 : 0, u = r ? 0 : 4;
|
|
5887
|
+
t.setUint32(e + a, l, r), t.setUint32(e + u, s, r);
|
|
5882
5888
|
}
|
|
5883
|
-
const
|
|
5884
|
-
class
|
|
5889
|
+
const xf = (t, e, n) => t & e ^ ~t & n, Lf = (t, e, n) => t & e ^ t & n ^ e & n;
|
|
5890
|
+
class Of extends Af {
|
|
5885
5891
|
constructor(e, n, r, o) {
|
|
5886
5892
|
super(), this.blockLen = e, this.outputLen = n, this.padOffset = r, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = br(this.buffer);
|
|
5887
5893
|
}
|
|
@@ -5890,33 +5896,33 @@ class Ef extends Cf {
|
|
|
5890
5896
|
const { view: n, buffer: r, blockLen: o } = this;
|
|
5891
5897
|
e = ks(e);
|
|
5892
5898
|
const i = e.length;
|
|
5893
|
-
for (let
|
|
5894
|
-
const s = Math.min(o - this.pos, i -
|
|
5899
|
+
for (let l = 0; l < i; ) {
|
|
5900
|
+
const s = Math.min(o - this.pos, i - l);
|
|
5895
5901
|
if (s === o) {
|
|
5896
|
-
const
|
|
5897
|
-
for (; o <= i -
|
|
5898
|
-
this.process(
|
|
5902
|
+
const a = br(e);
|
|
5903
|
+
for (; o <= i - l; l += o)
|
|
5904
|
+
this.process(a, l);
|
|
5899
5905
|
continue;
|
|
5900
5906
|
}
|
|
5901
|
-
r.set(e.subarray(
|
|
5907
|
+
r.set(e.subarray(l, l + s), this.pos), this.pos += s, l += s, this.pos === o && (this.process(n, 0), this.pos = 0);
|
|
5902
5908
|
}
|
|
5903
5909
|
return this.length += e.length, this.roundClean(), this;
|
|
5904
5910
|
}
|
|
5905
5911
|
digestInto(e) {
|
|
5906
|
-
hi(this),
|
|
5912
|
+
hi(this), If(e, this), this.finished = !0;
|
|
5907
5913
|
const { buffer: n, view: r, blockLen: o, isLE: i } = this;
|
|
5908
|
-
let { pos:
|
|
5909
|
-
n[
|
|
5910
|
-
for (let m =
|
|
5914
|
+
let { pos: l } = this;
|
|
5915
|
+
n[l++] = 128, this.buffer.subarray(l).fill(0), this.padOffset > o - l && (this.process(r, 0), l = 0);
|
|
5916
|
+
for (let m = l; m < o; m++)
|
|
5911
5917
|
n[m] = 0;
|
|
5912
|
-
|
|
5913
|
-
const s = br(e),
|
|
5914
|
-
if (
|
|
5918
|
+
Ef(r, o - 8, BigInt(this.length * 8), i), this.process(r, 0);
|
|
5919
|
+
const s = br(e), a = this.outputLen;
|
|
5920
|
+
if (a % 4)
|
|
5915
5921
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
5916
|
-
const
|
|
5917
|
-
if (
|
|
5922
|
+
const u = a / 4, d = this.get();
|
|
5923
|
+
if (u > d.length)
|
|
5918
5924
|
throw new Error("_sha2: outputLen bigger than state");
|
|
5919
|
-
for (let m = 0; m <
|
|
5925
|
+
for (let m = 0; m < u; m++)
|
|
5920
5926
|
s.setUint32(4 * m, d[m], i);
|
|
5921
5927
|
}
|
|
5922
5928
|
digest() {
|
|
@@ -5927,11 +5933,11 @@ class Ef extends Cf {
|
|
|
5927
5933
|
}
|
|
5928
5934
|
_cloneInto(e) {
|
|
5929
5935
|
e || (e = new this.constructor()), e.set(...this.get());
|
|
5930
|
-
const { blockLen: n, buffer: r, length: o, finished: i, destroyed:
|
|
5931
|
-
return e.length = o, e.pos = s, e.finished = i, e.destroyed =
|
|
5936
|
+
const { blockLen: n, buffer: r, length: o, finished: i, destroyed: l, pos: s } = this;
|
|
5937
|
+
return e.length = o, e.pos = s, e.finished = i, e.destroyed = l, o % n && e.buffer.set(r), e;
|
|
5932
5938
|
}
|
|
5933
5939
|
}
|
|
5934
|
-
const
|
|
5940
|
+
const $f = /* @__PURE__ */ new Uint32Array([
|
|
5935
5941
|
1116352408,
|
|
5936
5942
|
1899447441,
|
|
5937
5943
|
3049323471,
|
|
@@ -6006,17 +6012,17 @@ const xf = /* @__PURE__ */ new Uint32Array([
|
|
|
6006
6012
|
528734635,
|
|
6007
6013
|
1541459225
|
|
6008
6014
|
]), ht = /* @__PURE__ */ new Uint32Array(64);
|
|
6009
|
-
class
|
|
6015
|
+
class Mf extends Of {
|
|
6010
6016
|
constructor() {
|
|
6011
6017
|
super(64, 32, 8, !1), this.A = pt[0] | 0, this.B = pt[1] | 0, this.C = pt[2] | 0, this.D = pt[3] | 0, this.E = pt[4] | 0, this.F = pt[5] | 0, this.G = pt[6] | 0, this.H = pt[7] | 0;
|
|
6012
6018
|
}
|
|
6013
6019
|
get() {
|
|
6014
|
-
const { A: e, B: n, C: r, D: o, E: i, F:
|
|
6015
|
-
return [e, n, r, o, i,
|
|
6020
|
+
const { A: e, B: n, C: r, D: o, E: i, F: l, G: s, H: a } = this;
|
|
6021
|
+
return [e, n, r, o, i, l, s, a];
|
|
6016
6022
|
}
|
|
6017
6023
|
// prettier-ignore
|
|
6018
|
-
set(e, n, r, o, i,
|
|
6019
|
-
this.A = e | 0, this.B = n | 0, this.C = r | 0, this.D = o | 0, this.E = i | 0, this.F =
|
|
6024
|
+
set(e, n, r, o, i, l, s, a) {
|
|
6025
|
+
this.A = e | 0, this.B = n | 0, this.C = r | 0, this.D = o | 0, this.E = i | 0, this.F = l | 0, this.G = s | 0, this.H = a | 0;
|
|
6020
6026
|
}
|
|
6021
6027
|
process(e, n) {
|
|
6022
6028
|
for (let m = 0; m < 16; m++, n += 4)
|
|
@@ -6025,12 +6031,12 @@ class Lf extends Ef {
|
|
|
6025
6031
|
const g = ht[m - 15], w = ht[m - 2], k = nt(g, 7) ^ nt(g, 18) ^ g >>> 3, A = nt(w, 17) ^ nt(w, 19) ^ w >>> 10;
|
|
6026
6032
|
ht[m] = A + ht[m - 7] + k + ht[m - 16] | 0;
|
|
6027
6033
|
}
|
|
6028
|
-
let { A: r, B: o, C: i, D:
|
|
6034
|
+
let { A: r, B: o, C: i, D: l, E: s, F: a, G: u, H: d } = this;
|
|
6029
6035
|
for (let m = 0; m < 64; m++) {
|
|
6030
|
-
const g = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), w = d + g +
|
|
6031
|
-
d =
|
|
6036
|
+
const g = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), w = d + g + xf(s, a, u) + $f[m] + ht[m] | 0, A = (nt(r, 2) ^ nt(r, 13) ^ nt(r, 22)) + Lf(r, o, i) | 0;
|
|
6037
|
+
d = u, u = a, a = s, s = l + w | 0, l = i, i = o, o = r, r = w + A | 0;
|
|
6032
6038
|
}
|
|
6033
|
-
r = r + this.A | 0, o = o + this.B | 0, i = i + this.C | 0,
|
|
6039
|
+
r = r + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, l = l + this.D | 0, s = s + this.E | 0, a = a + this.F | 0, u = u + this.G | 0, d = d + this.H | 0, this.set(r, o, i, l, s, a, u, d);
|
|
6034
6040
|
}
|
|
6035
6041
|
roundClean() {
|
|
6036
6042
|
ht.fill(0);
|
|
@@ -6039,17 +6045,17 @@ class Lf extends Ef {
|
|
|
6039
6045
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
6040
6046
|
}
|
|
6041
6047
|
}
|
|
6042
|
-
const
|
|
6048
|
+
const Df = /* @__PURE__ */ Pf(() => new Mf());
|
|
6043
6049
|
class an extends Error {
|
|
6044
6050
|
}
|
|
6045
6051
|
an.prototype.name = "InvalidTokenError";
|
|
6046
|
-
function
|
|
6052
|
+
function Rf(t) {
|
|
6047
6053
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
6048
6054
|
let r = n.charCodeAt(0).toString(16).toUpperCase();
|
|
6049
6055
|
return r.length < 2 && (r = "0" + r), "%" + r;
|
|
6050
6056
|
}));
|
|
6051
6057
|
}
|
|
6052
|
-
function
|
|
6058
|
+
function Bf(t) {
|
|
6053
6059
|
let e = t.replace(/-/g, "+").replace(/_/g, "/");
|
|
6054
6060
|
switch (e.length % 4) {
|
|
6055
6061
|
case 0:
|
|
@@ -6064,7 +6070,7 @@ function Mf(t) {
|
|
|
6064
6070
|
throw new Error("base64 string is not of the correct length");
|
|
6065
6071
|
}
|
|
6066
6072
|
try {
|
|
6067
|
-
return
|
|
6073
|
+
return Rf(e);
|
|
6068
6074
|
} catch {
|
|
6069
6075
|
return atob(e);
|
|
6070
6076
|
}
|
|
@@ -6078,7 +6084,7 @@ function vr(t, e) {
|
|
|
6078
6084
|
throw new an(`Invalid token specified: missing part #${n + 1}`);
|
|
6079
6085
|
let o;
|
|
6080
6086
|
try {
|
|
6081
|
-
o =
|
|
6087
|
+
o = Bf(r);
|
|
6082
6088
|
} catch (i) {
|
|
6083
6089
|
throw new an(`Invalid token specified: invalid base64 for part #${n + 1} (${i.message})`);
|
|
6084
6090
|
}
|
|
@@ -6103,24 +6109,24 @@ function Cs(t) {
|
|
|
6103
6109
|
interval: 5
|
|
6104
6110
|
};
|
|
6105
6111
|
e.didInitialize = !1;
|
|
6106
|
-
for (var
|
|
6107
|
-
(
|
|
6108
|
-
var
|
|
6109
|
-
e.init = function(
|
|
6112
|
+
for (var l = document.getElementsByTagName("script"), s = 0; s < l.length; s++)
|
|
6113
|
+
(l[s].src.indexOf("keycloak.js") !== -1 || l[s].src.indexOf("keycloak.min.js") !== -1) && l[s].src.indexOf("version=") !== -1 && (e.iframeVersion = l[s].src.substring(l[s].src.indexOf("version=") + 8).split("&")[0]);
|
|
6114
|
+
var a = !0, u = He(console.info), d = He(console.warn);
|
|
6115
|
+
e.init = function(c) {
|
|
6110
6116
|
if (e.didInitialize)
|
|
6111
6117
|
throw new Error(
|
|
6112
6118
|
"A 'Keycloak' instance can only be initialized once."
|
|
6113
6119
|
);
|
|
6114
6120
|
e.didInitialize = !0, e.authenticated = !1, o = _t();
|
|
6115
6121
|
var p = ["default", "cordova", "cordova-native"];
|
|
6116
|
-
if (
|
|
6117
|
-
if (typeof
|
|
6118
|
-
if (
|
|
6119
|
-
e.responseMode =
|
|
6122
|
+
if (c && p.indexOf(c.adapter) > -1 ? n = it(c.adapter) : c && typeof c.adapter == "object" ? n = c.adapter : window.Cordova || window.cordova ? n = it("cordova") : n = it(), c) {
|
|
6123
|
+
if (typeof c.useNonce < "u" && (a = c.useNonce), typeof c.checkLoginIframe < "u" && (i.enable = c.checkLoginIframe), c.checkLoginIframeInterval && (i.interval = c.checkLoginIframeInterval), c.onLoad === "login-required" && (e.loginRequired = !0), c.responseMode)
|
|
6124
|
+
if (c.responseMode === "query" || c.responseMode === "fragment")
|
|
6125
|
+
e.responseMode = c.responseMode;
|
|
6120
6126
|
else
|
|
6121
6127
|
throw "Invalid value for responseMode";
|
|
6122
|
-
if (
|
|
6123
|
-
switch (
|
|
6128
|
+
if (c.flow) {
|
|
6129
|
+
switch (c.flow) {
|
|
6124
6130
|
case "standard":
|
|
6125
6131
|
e.responseType = "code";
|
|
6126
6132
|
break;
|
|
@@ -6133,17 +6139,17 @@ function Cs(t) {
|
|
|
6133
6139
|
default:
|
|
6134
6140
|
throw "Invalid value for flow";
|
|
6135
6141
|
}
|
|
6136
|
-
e.flow =
|
|
6142
|
+
e.flow = c.flow;
|
|
6137
6143
|
}
|
|
6138
|
-
if (
|
|
6139
|
-
if (
|
|
6144
|
+
if (c.timeSkew != null && (e.timeSkew = c.timeSkew), c.redirectUri && (e.redirectUri = c.redirectUri), c.silentCheckSsoRedirectUri && (e.silentCheckSsoRedirectUri = c.silentCheckSsoRedirectUri), typeof c.silentCheckSsoFallback == "boolean" ? e.silentCheckSsoFallback = c.silentCheckSsoFallback : e.silentCheckSsoFallback = !0, typeof c.pkceMethod < "u") {
|
|
6145
|
+
if (c.pkceMethod !== "S256" && c.pkceMethod !== !1)
|
|
6140
6146
|
throw new TypeError(
|
|
6141
|
-
`Invalid value for pkceMethod', expected 'S256' or false but got ${
|
|
6147
|
+
`Invalid value for pkceMethod', expected 'S256' or false but got ${c.pkceMethod}.`
|
|
6142
6148
|
);
|
|
6143
|
-
e.pkceMethod =
|
|
6149
|
+
e.pkceMethod = c.pkceMethod;
|
|
6144
6150
|
} else
|
|
6145
6151
|
e.pkceMethod = "S256";
|
|
6146
|
-
typeof
|
|
6152
|
+
typeof c.enableLogging == "boolean" ? e.enableLogging = c.enableLogging : e.enableLogging = !1, c.logoutMethod === "POST" ? e.logoutMethod = "POST" : e.logoutMethod = "GET", typeof c.scope == "string" && (e.scope = c.scope), typeof c.acrValues == "string" && (e.acrValues = c.acrValues), typeof c.messageReceiveTimeout == "number" && c.messageReceiveTimeout > 0 ? e.messageReceiveTimeout = c.messageReceiveTimeout : e.messageReceiveTimeout = 1e4;
|
|
6147
6153
|
}
|
|
6148
6154
|
e.responseMode || (e.responseMode = "fragment"), e.responseType || (e.responseType = "code", e.flow = "standard");
|
|
6149
6155
|
var b = X(), T = X();
|
|
@@ -6155,7 +6161,7 @@ function Cs(t) {
|
|
|
6155
6161
|
var y = R();
|
|
6156
6162
|
function P() {
|
|
6157
6163
|
var L = function(V) {
|
|
6158
|
-
V || (N.prompt = "none"),
|
|
6164
|
+
V || (N.prompt = "none"), c && c.locale && (N.locale = c.locale), e.login(N).then(function() {
|
|
6159
6165
|
T.setSuccess();
|
|
6160
6166
|
}).catch(function(Pe) {
|
|
6161
6167
|
T.setError(Pe);
|
|
@@ -6177,7 +6183,7 @@ function Cs(t) {
|
|
|
6177
6183
|
};
|
|
6178
6184
|
window.addEventListener("message", ye);
|
|
6179
6185
|
}, N = {};
|
|
6180
|
-
switch (
|
|
6186
|
+
switch (c.onLoad) {
|
|
6181
6187
|
case "check-sso":
|
|
6182
6188
|
i.enable ? J().then(function() {
|
|
6183
6189
|
ge().then(function(V) {
|
|
@@ -6206,10 +6212,10 @@ function Cs(t) {
|
|
|
6206
6212
|
}).catch(function(x) {
|
|
6207
6213
|
T.setError(x);
|
|
6208
6214
|
});
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6215
|
+
c ? c.token && c.refreshToken ? (Y(
|
|
6216
|
+
c.token,
|
|
6217
|
+
c.refreshToken,
|
|
6218
|
+
c.idToken
|
|
6213
6219
|
), i.enable ? J().then(function() {
|
|
6214
6220
|
ge().then(function(x) {
|
|
6215
6221
|
x ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), he()) : T.setSuccess();
|
|
@@ -6219,8 +6225,8 @@ function Cs(t) {
|
|
|
6219
6225
|
}) : e.updateToken(-1).then(function() {
|
|
6220
6226
|
e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
|
|
6221
6227
|
}).catch(function(x) {
|
|
6222
|
-
e.onAuthError && e.onAuthError(),
|
|
6223
|
-
})) :
|
|
6228
|
+
e.onAuthError && e.onAuthError(), c.onLoad ? P() : T.setError(x);
|
|
6229
|
+
})) : c.onLoad ? P() : T.setSuccess() : T.setSuccess();
|
|
6224
6230
|
}
|
|
6225
6231
|
function C() {
|
|
6226
6232
|
var L = X(), x = function() {
|
|
@@ -6238,63 +6244,63 @@ function Cs(t) {
|
|
|
6238
6244
|
}), y.catch(function(L) {
|
|
6239
6245
|
b.setError(L);
|
|
6240
6246
|
}), b.promise;
|
|
6241
|
-
}, e.login = function(
|
|
6242
|
-
return n.login(
|
|
6247
|
+
}, e.login = function(c) {
|
|
6248
|
+
return n.login(c);
|
|
6243
6249
|
};
|
|
6244
|
-
function m(
|
|
6250
|
+
function m(c) {
|
|
6245
6251
|
var p = null, b = window.crypto || window.msCrypto;
|
|
6246
6252
|
if (b && b.getRandomValues && window.Uint8Array)
|
|
6247
|
-
return p = new Uint8Array(
|
|
6248
|
-
p = new Array(
|
|
6253
|
+
return p = new Uint8Array(c), b.getRandomValues(p), p;
|
|
6254
|
+
p = new Array(c);
|
|
6249
6255
|
for (var T = 0; T < p.length; T++)
|
|
6250
6256
|
p[T] = Math.floor(256 * Math.random());
|
|
6251
6257
|
return p;
|
|
6252
6258
|
}
|
|
6253
|
-
function g(
|
|
6259
|
+
function g(c) {
|
|
6254
6260
|
return w(
|
|
6255
|
-
|
|
6261
|
+
c,
|
|
6256
6262
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
6257
6263
|
);
|
|
6258
6264
|
}
|
|
6259
|
-
function w(
|
|
6260
|
-
for (var b = m(
|
|
6265
|
+
function w(c, p) {
|
|
6266
|
+
for (var b = m(c), T = new Array(c), y = 0; y < c; y++)
|
|
6261
6267
|
T[y] = p.charCodeAt(b[y] % p.length);
|
|
6262
6268
|
return String.fromCharCode.apply(null, T);
|
|
6263
6269
|
}
|
|
6264
|
-
function k(
|
|
6265
|
-
if (
|
|
6270
|
+
function k(c, p) {
|
|
6271
|
+
if (c !== "S256")
|
|
6266
6272
|
throw new TypeError(
|
|
6267
|
-
`Invalid value for 'pkceMethod', expected 'S256' but got '${
|
|
6273
|
+
`Invalid value for 'pkceMethod', expected 'S256' but got '${c}'.`
|
|
6268
6274
|
);
|
|
6269
|
-
const b =
|
|
6270
|
-
return
|
|
6275
|
+
const b = Df(p);
|
|
6276
|
+
return Nf(b).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
6271
6277
|
}
|
|
6272
|
-
function A(
|
|
6278
|
+
function A(c) {
|
|
6273
6279
|
var p = {
|
|
6274
6280
|
id_token: {
|
|
6275
|
-
acr:
|
|
6281
|
+
acr: c
|
|
6276
6282
|
}
|
|
6277
6283
|
};
|
|
6278
6284
|
return JSON.stringify(p);
|
|
6279
6285
|
}
|
|
6280
|
-
e.createLoginUrl = function(
|
|
6281
|
-
var p = pe(), b = pe(), T = n.redirectUri(
|
|
6286
|
+
e.createLoginUrl = function(c) {
|
|
6287
|
+
var p = pe(), b = pe(), T = n.redirectUri(c), y = {
|
|
6282
6288
|
state: p,
|
|
6283
6289
|
nonce: b,
|
|
6284
6290
|
redirectUri: encodeURIComponent(T),
|
|
6285
|
-
loginOptions:
|
|
6291
|
+
loginOptions: c
|
|
6286
6292
|
};
|
|
6287
|
-
|
|
6293
|
+
c && c.prompt && (y.prompt = c.prompt);
|
|
6288
6294
|
var P;
|
|
6289
|
-
|
|
6290
|
-
var _ =
|
|
6295
|
+
c && c.action == "register" ? P = e.endpoints.register() : P = e.endpoints.authorize();
|
|
6296
|
+
var _ = c && c.scope || e.scope;
|
|
6291
6297
|
_ ? _.indexOf("openid") === -1 && (_ = "openid " + _) : _ = "openid";
|
|
6292
6298
|
var C = P + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(T) + "&state=" + encodeURIComponent(p) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(_);
|
|
6293
|
-
if (
|
|
6294
|
-
var L = A(
|
|
6299
|
+
if (a && (C = C + "&nonce=" + encodeURIComponent(b)), c && c.prompt && (C += "&prompt=" + encodeURIComponent(c.prompt)), c && c.maxAge && (C += "&max_age=" + encodeURIComponent(c.maxAge)), c && c.loginHint && (C += "&login_hint=" + encodeURIComponent(c.loginHint)), c && c.idpHint && (C += "&kc_idp_hint=" + encodeURIComponent(c.idpHint)), c && c.action && c.action != "register" && (C += "&kc_action=" + encodeURIComponent(c.action)), c && c.locale && (C += "&ui_locales=" + encodeURIComponent(c.locale)), c && c.acr) {
|
|
6300
|
+
var L = A(c.acr);
|
|
6295
6301
|
C += "&claims=" + encodeURIComponent(L);
|
|
6296
6302
|
}
|
|
6297
|
-
if ((
|
|
6303
|
+
if ((c && c.acrValues || e.acrValues) && (C += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6298
6304
|
var x = g(96);
|
|
6299
6305
|
y.pkceCodeVerifier = x;
|
|
6300
6306
|
var N = k(
|
|
@@ -6304,66 +6310,66 @@ function Cs(t) {
|
|
|
6304
6310
|
C += "&code_challenge=" + N, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6305
6311
|
}
|
|
6306
6312
|
return o.add(y), C;
|
|
6307
|
-
}, e.logout = function(
|
|
6308
|
-
return n.logout(
|
|
6309
|
-
}, e.createLogoutUrl = function(
|
|
6310
|
-
if (((
|
|
6313
|
+
}, e.logout = function(c) {
|
|
6314
|
+
return n.logout(c);
|
|
6315
|
+
}, e.createLogoutUrl = function(c) {
|
|
6316
|
+
if (((c == null ? void 0 : c.logoutMethod) ?? e.logoutMethod) === "POST")
|
|
6311
6317
|
return e.endpoints.logout();
|
|
6312
|
-
var b = e.endpoints.logout() + "?client_id=" + encodeURIComponent(e.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(n.redirectUri(
|
|
6318
|
+
var b = e.endpoints.logout() + "?client_id=" + encodeURIComponent(e.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(n.redirectUri(c, !1));
|
|
6313
6319
|
return e.idToken && (b += "&id_token_hint=" + encodeURIComponent(e.idToken)), b;
|
|
6314
|
-
}, e.register = function(
|
|
6315
|
-
return n.register(
|
|
6316
|
-
}, e.createRegisterUrl = function(
|
|
6317
|
-
return
|
|
6318
|
-
}, e.createAccountUrl = function(
|
|
6320
|
+
}, e.register = function(c) {
|
|
6321
|
+
return n.register(c);
|
|
6322
|
+
}, e.createRegisterUrl = function(c) {
|
|
6323
|
+
return c || (c = {}), c.action = "register", e.createLoginUrl(c);
|
|
6324
|
+
}, e.createAccountUrl = function(c) {
|
|
6319
6325
|
var p = E(), b = void 0;
|
|
6320
|
-
return typeof p < "u" && (b = p + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(
|
|
6326
|
+
return typeof p < "u" && (b = p + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(c))), b;
|
|
6321
6327
|
}, e.accountManagement = function() {
|
|
6322
6328
|
return n.accountManagement();
|
|
6323
|
-
}, e.hasRealmRole = function(
|
|
6329
|
+
}, e.hasRealmRole = function(c) {
|
|
6324
6330
|
var p = e.realmAccess;
|
|
6325
|
-
return !!p && p.roles.indexOf(
|
|
6326
|
-
}, e.hasResourceRole = function(
|
|
6331
|
+
return !!p && p.roles.indexOf(c) >= 0;
|
|
6332
|
+
}, e.hasResourceRole = function(c, p) {
|
|
6327
6333
|
if (!e.resourceAccess)
|
|
6328
6334
|
return !1;
|
|
6329
6335
|
var b = e.resourceAccess[p || e.clientId];
|
|
6330
|
-
return !!b && b.roles.indexOf(
|
|
6336
|
+
return !!b && b.roles.indexOf(c) >= 0;
|
|
6331
6337
|
}, e.loadUserProfile = function() {
|
|
6332
|
-
var
|
|
6333
|
-
p.open("GET",
|
|
6338
|
+
var c = E() + "/account", p = new XMLHttpRequest();
|
|
6339
|
+
p.open("GET", c, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
|
|
6334
6340
|
var b = X();
|
|
6335
6341
|
return p.onreadystatechange = function() {
|
|
6336
6342
|
p.readyState == 4 && (p.status == 200 ? (e.profile = JSON.parse(p.responseText), b.setSuccess(e.profile)) : b.setError());
|
|
6337
6343
|
}, p.send(), b.promise;
|
|
6338
6344
|
}, e.loadUserInfo = function() {
|
|
6339
|
-
var
|
|
6340
|
-
p.open("GET",
|
|
6345
|
+
var c = e.endpoints.userinfo(), p = new XMLHttpRequest();
|
|
6346
|
+
p.open("GET", c, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
|
|
6341
6347
|
var b = X();
|
|
6342
6348
|
return p.onreadystatechange = function() {
|
|
6343
6349
|
p.readyState == 4 && (p.status == 200 ? (e.userInfo = JSON.parse(p.responseText), b.setSuccess(e.userInfo)) : b.setError());
|
|
6344
6350
|
}, p.send(), b.promise;
|
|
6345
|
-
}, e.isTokenExpired = function(
|
|
6351
|
+
}, e.isTokenExpired = function(c) {
|
|
6346
6352
|
if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
|
|
6347
6353
|
throw "Not authenticated";
|
|
6348
6354
|
if (e.timeSkew == null)
|
|
6349
|
-
return
|
|
6355
|
+
return u(
|
|
6350
6356
|
"[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"
|
|
6351
6357
|
), !0;
|
|
6352
6358
|
var p = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
|
|
6353
|
-
if (
|
|
6354
|
-
if (isNaN(
|
|
6359
|
+
if (c) {
|
|
6360
|
+
if (isNaN(c))
|
|
6355
6361
|
throw "Invalid minValidity";
|
|
6356
|
-
p -=
|
|
6362
|
+
p -= c;
|
|
6357
6363
|
}
|
|
6358
6364
|
return p < 0;
|
|
6359
|
-
}, e.updateToken = function(
|
|
6365
|
+
}, e.updateToken = function(c) {
|
|
6360
6366
|
var p = X();
|
|
6361
6367
|
if (!e.refreshToken)
|
|
6362
6368
|
return p.setError(), p.promise;
|
|
6363
|
-
|
|
6369
|
+
c = c || 5;
|
|
6364
6370
|
var b = function() {
|
|
6365
6371
|
var y = !1;
|
|
6366
|
-
if (
|
|
6372
|
+
if (c == -1 ? (y = !0, u("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(c)) && (y = !0, u("[KEYCLOAK] Refreshing token: token expired")), !y)
|
|
6367
6373
|
p.setSuccess(!1);
|
|
6368
6374
|
else {
|
|
6369
6375
|
var P = "grant_type=refresh_token&refresh_token=" + e.refreshToken, _ = e.endpoints.token();
|
|
@@ -6377,7 +6383,7 @@ function Cs(t) {
|
|
|
6377
6383
|
C.onreadystatechange = function() {
|
|
6378
6384
|
if (C.readyState == 4)
|
|
6379
6385
|
if (C.status == 200) {
|
|
6380
|
-
|
|
6386
|
+
u("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
6381
6387
|
var x = JSON.parse(C.responseText);
|
|
6382
6388
|
Y(
|
|
6383
6389
|
x.access_token,
|
|
@@ -6416,32 +6422,32 @@ function Cs(t) {
|
|
|
6416
6422
|
function v() {
|
|
6417
6423
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
6418
6424
|
}
|
|
6419
|
-
function S(
|
|
6420
|
-
var b =
|
|
6421
|
-
if (
|
|
6422
|
-
|
|
6423
|
-
|
|
6425
|
+
function S(c, p) {
|
|
6426
|
+
var b = c.code, T = c.error, y = c.prompt, P = (/* @__PURE__ */ new Date()).getTime();
|
|
6427
|
+
if (c.kc_action_status && e.onActionUpdate && e.onActionUpdate(
|
|
6428
|
+
c.kc_action_status,
|
|
6429
|
+
c.kc_action
|
|
6424
6430
|
), T) {
|
|
6425
6431
|
if (y != "none")
|
|
6426
|
-
if (
|
|
6427
|
-
e.login(
|
|
6432
|
+
if (c.error_description && c.error_description === "authentication_expired")
|
|
6433
|
+
e.login(c.loginOptions);
|
|
6428
6434
|
else {
|
|
6429
6435
|
var _ = {
|
|
6430
6436
|
error: T,
|
|
6431
|
-
error_description:
|
|
6437
|
+
error_description: c.error_description
|
|
6432
6438
|
};
|
|
6433
6439
|
e.onAuthError && e.onAuthError(_), p && p.setError(_);
|
|
6434
6440
|
}
|
|
6435
6441
|
else
|
|
6436
6442
|
p && p.setSuccess();
|
|
6437
6443
|
return;
|
|
6438
|
-
} else e.flow != "standard" && (
|
|
6444
|
+
} else e.flow != "standard" && (c.access_token || c.id_token) && N(c.access_token, null, c.id_token, !0);
|
|
6439
6445
|
if (e.flow != "implicit" && b) {
|
|
6440
6446
|
var C = "code=" + b + "&grant_type=authorization_code", L = e.endpoints.token(), x = new XMLHttpRequest();
|
|
6441
6447
|
x.open("POST", L, !0), x.setRequestHeader(
|
|
6442
6448
|
"Content-type",
|
|
6443
6449
|
"application/x-www-form-urlencoded"
|
|
6444
|
-
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" +
|
|
6450
|
+
), C += "&client_id=" + encodeURIComponent(e.clientId), C += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (C += "&code_verifier=" + c.pkceCodeVerifier), x.withCredentials = !0, x.onreadystatechange = function() {
|
|
6445
6451
|
if (x.readyState == 4)
|
|
6446
6452
|
if (x.status == 200) {
|
|
6447
6453
|
var V = JSON.parse(x.responseText);
|
|
@@ -6456,10 +6462,10 @@ function Cs(t) {
|
|
|
6456
6462
|
}, x.send(C);
|
|
6457
6463
|
}
|
|
6458
6464
|
function N(V, Pe, ye, be) {
|
|
6459
|
-
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Pe, ye, P),
|
|
6465
|
+
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Pe, ye, P), a && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : be && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
6460
6466
|
}
|
|
6461
6467
|
}
|
|
6462
|
-
function R(
|
|
6468
|
+
function R(c) {
|
|
6463
6469
|
var p = X(), b;
|
|
6464
6470
|
t ? typeof t == "string" && (b = t) : b = "keycloak.json";
|
|
6465
6471
|
function T(x) {
|
|
@@ -6562,16 +6568,16 @@ function Cs(t) {
|
|
|
6562
6568
|
}
|
|
6563
6569
|
return p.promise;
|
|
6564
6570
|
}
|
|
6565
|
-
function U(
|
|
6566
|
-
return
|
|
6571
|
+
function U(c) {
|
|
6572
|
+
return c.status == 0 && c.responseText && c.responseURL.startsWith("file:");
|
|
6567
6573
|
}
|
|
6568
|
-
function Y(
|
|
6569
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), p ? (e.refreshToken = p, e.refreshTokenParsed = vr(p)) : (delete e.refreshToken, delete e.refreshTokenParsed), b ? (e.idToken = b, e.idTokenParsed = vr(b)) : (delete e.idToken, delete e.idTokenParsed),
|
|
6570
|
-
if (e.token =
|
|
6574
|
+
function Y(c, p, b, T) {
|
|
6575
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), p ? (e.refreshToken = p, e.refreshTokenParsed = vr(p)) : (delete e.refreshToken, delete e.refreshTokenParsed), b ? (e.idToken = b, e.idTokenParsed = vr(b)) : (delete e.idToken, delete e.idTokenParsed), c) {
|
|
6576
|
+
if (e.token = c, e.tokenParsed = vr(c), e.sessionId = e.tokenParsed.sid, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, T && (e.timeSkew = Math.floor(T / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (u(
|
|
6571
6577
|
"[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"
|
|
6572
6578
|
), e.onTokenExpired)) {
|
|
6573
6579
|
var y = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
6574
|
-
|
|
6580
|
+
u(
|
|
6575
6581
|
"[KEYCLOAK] Token expires in " + Math.round(y / 1e3) + " s"
|
|
6576
6582
|
), y <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(
|
|
6577
6583
|
e.onTokenExpired,
|
|
@@ -6582,19 +6588,19 @@ function Cs(t) {
|
|
|
6582
6588
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
6583
6589
|
}
|
|
6584
6590
|
function pe() {
|
|
6585
|
-
var
|
|
6586
|
-
p[14] = "4", p[19] =
|
|
6591
|
+
var c = "0123456789abcdef", p = w(36, c).split("");
|
|
6592
|
+
p[14] = "4", p[19] = c.substr(p[19] & 3 | 8, 1), p[8] = p[13] = p[18] = p[23] = "-";
|
|
6587
6593
|
var b = p.join("");
|
|
6588
6594
|
return b;
|
|
6589
6595
|
}
|
|
6590
|
-
function ae(
|
|
6591
|
-
var p = $e(
|
|
6596
|
+
function ae(c) {
|
|
6597
|
+
var p = $e(c);
|
|
6592
6598
|
if (p) {
|
|
6593
6599
|
var b = o.get(p.state);
|
|
6594
6600
|
return b && (p.valid = !0, p.redirectUri = b.redirectUri, p.storedNonce = b.nonce, p.prompt = b.prompt, p.pkceCodeVerifier = b.pkceCodeVerifier, p.loginOptions = b.loginOptions), p;
|
|
6595
6601
|
}
|
|
6596
6602
|
}
|
|
6597
|
-
function $e(
|
|
6603
|
+
function $e(c) {
|
|
6598
6604
|
var p;
|
|
6599
6605
|
switch (e.flow) {
|
|
6600
6606
|
case "standard":
|
|
@@ -6636,15 +6642,15 @@ function Cs(t) {
|
|
|
6636
6642
|
break;
|
|
6637
6643
|
}
|
|
6638
6644
|
p.push("error"), p.push("error_description"), p.push("error_uri");
|
|
6639
|
-
var b =
|
|
6640
|
-
if (e.responseMode === "query" && b !== -1 ? (y =
|
|
6641
|
-
|
|
6645
|
+
var b = c.indexOf("?"), T = c.indexOf("#"), y, P;
|
|
6646
|
+
if (e.responseMode === "query" && b !== -1 ? (y = c.substring(0, b), P = le(
|
|
6647
|
+
c.substring(
|
|
6642
6648
|
b + 1,
|
|
6643
|
-
T !== -1 ? T :
|
|
6649
|
+
T !== -1 ? T : c.length
|
|
6644
6650
|
),
|
|
6645
6651
|
p
|
|
6646
|
-
), P.paramsString !== "" && (y += "?" + P.paramsString), T !== -1 && (y +=
|
|
6647
|
-
|
|
6652
|
+
), P.paramsString !== "" && (y += "?" + P.paramsString), T !== -1 && (y += c.substring(T))) : e.responseMode === "fragment" && T !== -1 && (y = c.substring(0, T), P = le(
|
|
6653
|
+
c.substring(T + 1),
|
|
6648
6654
|
p
|
|
6649
6655
|
), P.paramsString !== "" && (y += "#" + P.paramsString)), P && P.oauthParams) {
|
|
6650
6656
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
@@ -6654,8 +6660,8 @@ function Cs(t) {
|
|
|
6654
6660
|
return P.oauthParams.newUrl = y, P.oauthParams;
|
|
6655
6661
|
}
|
|
6656
6662
|
}
|
|
6657
|
-
function le(
|
|
6658
|
-
for (var b =
|
|
6663
|
+
function le(c, p) {
|
|
6664
|
+
for (var b = c.split("&"), T = {
|
|
6659
6665
|
paramsString: "",
|
|
6660
6666
|
oauthParams: {}
|
|
6661
6667
|
}, y = 0; y < b.length; y++) {
|
|
@@ -6665,19 +6671,19 @@ function Cs(t) {
|
|
|
6665
6671
|
return T;
|
|
6666
6672
|
}
|
|
6667
6673
|
function X() {
|
|
6668
|
-
var
|
|
6674
|
+
var c = {
|
|
6669
6675
|
setSuccess: function(p) {
|
|
6670
|
-
|
|
6676
|
+
c.resolve(p);
|
|
6671
6677
|
},
|
|
6672
6678
|
setError: function(p) {
|
|
6673
|
-
|
|
6679
|
+
c.reject(p);
|
|
6674
6680
|
}
|
|
6675
6681
|
};
|
|
6676
|
-
return
|
|
6677
|
-
|
|
6678
|
-
}),
|
|
6682
|
+
return c.promise = new Promise(function(p, b) {
|
|
6683
|
+
c.resolve = p, c.reject = b;
|
|
6684
|
+
}), c;
|
|
6679
6685
|
}
|
|
6680
|
-
function B(
|
|
6686
|
+
function B(c, p, b) {
|
|
6681
6687
|
var T = null, y = new Promise(function(P, _) {
|
|
6682
6688
|
T = setTimeout(function() {
|
|
6683
6689
|
_({
|
|
@@ -6685,23 +6691,23 @@ function Cs(t) {
|
|
|
6685
6691
|
});
|
|
6686
6692
|
}, p);
|
|
6687
6693
|
});
|
|
6688
|
-
return Promise.race([
|
|
6694
|
+
return Promise.race([c, y]).finally(
|
|
6689
6695
|
function() {
|
|
6690
6696
|
clearTimeout(T);
|
|
6691
6697
|
}
|
|
6692
6698
|
);
|
|
6693
6699
|
}
|
|
6694
6700
|
function J() {
|
|
6695
|
-
var
|
|
6701
|
+
var c = X();
|
|
6696
6702
|
if (!i.enable || i.iframe)
|
|
6697
|
-
return
|
|
6703
|
+
return c.setSuccess(), c.promise;
|
|
6698
6704
|
var p = document.createElement("iframe");
|
|
6699
6705
|
i.iframe = p, p.onload = function() {
|
|
6700
6706
|
var y = e.endpoints.authorize();
|
|
6701
6707
|
y.charAt(0) === "/" ? i.iframeOrigin = v() : i.iframeOrigin = y.substring(
|
|
6702
6708
|
0,
|
|
6703
6709
|
y.indexOf("/", 8)
|
|
6704
|
-
),
|
|
6710
|
+
), c.setSuccess();
|
|
6705
6711
|
};
|
|
6706
6712
|
var b = e.endpoints.checkSessionIframe();
|
|
6707
6713
|
p.setAttribute("src", b), p.setAttribute(
|
|
@@ -6720,28 +6726,28 @@ function Cs(t) {
|
|
|
6720
6726
|
}
|
|
6721
6727
|
}
|
|
6722
6728
|
};
|
|
6723
|
-
return window.addEventListener("message", T, !1),
|
|
6729
|
+
return window.addEventListener("message", T, !1), c.promise;
|
|
6724
6730
|
}
|
|
6725
6731
|
function he() {
|
|
6726
6732
|
i.enable && e.token && setTimeout(function() {
|
|
6727
|
-
ge().then(function(
|
|
6728
|
-
|
|
6733
|
+
ge().then(function(c) {
|
|
6734
|
+
c && he();
|
|
6729
6735
|
});
|
|
6730
6736
|
}, i.interval * 1e3);
|
|
6731
6737
|
}
|
|
6732
6738
|
function ge() {
|
|
6733
|
-
var
|
|
6739
|
+
var c = X();
|
|
6734
6740
|
if (i.iframe && i.iframeOrigin) {
|
|
6735
6741
|
var p = e.clientId + " " + (e.sessionId ? e.sessionId : "");
|
|
6736
|
-
i.callbackList.push(
|
|
6742
|
+
i.callbackList.push(c);
|
|
6737
6743
|
var b = i.iframeOrigin;
|
|
6738
6744
|
i.callbackList.length == 1 && i.iframe.contentWindow.postMessage(p, b);
|
|
6739
6745
|
} else
|
|
6740
|
-
|
|
6741
|
-
return
|
|
6746
|
+
c.setSuccess();
|
|
6747
|
+
return c.promise;
|
|
6742
6748
|
}
|
|
6743
6749
|
function Ze() {
|
|
6744
|
-
var
|
|
6750
|
+
var c = X();
|
|
6745
6751
|
if (i.enable || e.silentCheckSsoRedirectUri) {
|
|
6746
6752
|
var p = document.createElement("iframe");
|
|
6747
6753
|
p.setAttribute(
|
|
@@ -6759,19 +6765,19 @@ function Cs(t) {
|
|
|
6759
6765
|
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
6760
6766
|
|
|
6761
6767
|
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`
|
|
6762
|
-
), i.enable = !1, e.silentCheckSsoFallback && (e.silentCheckSsoRedirectUri = !1)), document.body.removeChild(p), window.removeEventListener("message", b),
|
|
6768
|
+
), i.enable = !1, e.silentCheckSsoFallback && (e.silentCheckSsoRedirectUri = !1)), document.body.removeChild(p), window.removeEventListener("message", b), c.setSuccess()));
|
|
6763
6769
|
};
|
|
6764
6770
|
window.addEventListener("message", b, !1);
|
|
6765
6771
|
} else
|
|
6766
|
-
|
|
6772
|
+
c.setSuccess();
|
|
6767
6773
|
return B(
|
|
6768
|
-
|
|
6774
|
+
c.promise,
|
|
6769
6775
|
e.messageReceiveTimeout,
|
|
6770
6776
|
"Timeout when waiting for 3rd party check iframe message."
|
|
6771
6777
|
);
|
|
6772
6778
|
}
|
|
6773
|
-
function it(
|
|
6774
|
-
if (!
|
|
6779
|
+
function it(c) {
|
|
6780
|
+
if (!c || c == "default")
|
|
6775
6781
|
return {
|
|
6776
6782
|
login: function(_) {
|
|
6777
6783
|
return window.location.assign(e.createLoginUrl(_)), X().promise;
|
|
@@ -6822,7 +6828,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6822
6828
|
return _ && _.redirectUri ? _.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
6823
6829
|
}
|
|
6824
6830
|
};
|
|
6825
|
-
if (
|
|
6831
|
+
if (c == "cordova") {
|
|
6826
6832
|
i.enable = !1;
|
|
6827
6833
|
var p = function(_, C, L) {
|
|
6828
6834
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
|
|
@@ -6923,7 +6929,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6923
6929
|
}
|
|
6924
6930
|
};
|
|
6925
6931
|
}
|
|
6926
|
-
if (
|
|
6932
|
+
if (c == "cordova-native")
|
|
6927
6933
|
return i.enable = !1, {
|
|
6928
6934
|
login: function(_) {
|
|
6929
6935
|
var C = X(), L = e.createLoginUrl(_);
|
|
@@ -6958,13 +6964,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6958
6964
|
return _ && _.redirectUri ? _.redirectUri : e.redirectUri ? e.redirectUri : "http://localhost";
|
|
6959
6965
|
}
|
|
6960
6966
|
};
|
|
6961
|
-
throw "invalid adapter type: " +
|
|
6967
|
+
throw "invalid adapter type: " + c;
|
|
6962
6968
|
}
|
|
6963
6969
|
var Je = function() {
|
|
6964
6970
|
if (!(this instanceof Je))
|
|
6965
6971
|
return new Je();
|
|
6966
6972
|
localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
|
|
6967
|
-
var
|
|
6973
|
+
var c = this;
|
|
6968
6974
|
function p() {
|
|
6969
6975
|
for (var b = (/* @__PURE__ */ new Date()).getTime(), T = 0; T < localStorage.length; T++) {
|
|
6970
6976
|
var y = localStorage.key(T);
|
|
@@ -6980,12 +6986,12 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6980
6986
|
}
|
|
6981
6987
|
}
|
|
6982
6988
|
}
|
|
6983
|
-
|
|
6989
|
+
c.get = function(b) {
|
|
6984
6990
|
if (b) {
|
|
6985
6991
|
var T = "kc-callback-" + b, y = localStorage.getItem(T);
|
|
6986
6992
|
return y && (localStorage.removeItem(T), y = JSON.parse(y)), p(), y;
|
|
6987
6993
|
}
|
|
6988
|
-
},
|
|
6994
|
+
}, c.add = function(b) {
|
|
6989
6995
|
p();
|
|
6990
6996
|
var T = "kc-callback-" + b.state;
|
|
6991
6997
|
b.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(T, JSON.stringify(b));
|
|
@@ -6993,20 +6999,20 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6993
6999
|
}, Qe = function() {
|
|
6994
7000
|
if (!(this instanceof Qe))
|
|
6995
7001
|
return new Qe();
|
|
6996
|
-
var
|
|
6997
|
-
|
|
7002
|
+
var c = this;
|
|
7003
|
+
c.get = function(y) {
|
|
6998
7004
|
if (y) {
|
|
6999
7005
|
var P = b("kc-callback-" + y);
|
|
7000
7006
|
if (T("kc-callback-" + y, "", p(-100)), P)
|
|
7001
7007
|
return JSON.parse(P);
|
|
7002
7008
|
}
|
|
7003
|
-
},
|
|
7009
|
+
}, c.add = function(y) {
|
|
7004
7010
|
T(
|
|
7005
7011
|
"kc-callback-" + y.state,
|
|
7006
7012
|
JSON.stringify(y),
|
|
7007
7013
|
p(60)
|
|
7008
7014
|
);
|
|
7009
|
-
},
|
|
7015
|
+
}, c.removeItem = function(y) {
|
|
7010
7016
|
T(y, "", p(-100));
|
|
7011
7017
|
};
|
|
7012
7018
|
var p = function(y) {
|
|
@@ -7032,17 +7038,17 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7032
7038
|
}
|
|
7033
7039
|
return new Qe();
|
|
7034
7040
|
}
|
|
7035
|
-
function He(
|
|
7041
|
+
function He(c) {
|
|
7036
7042
|
return function() {
|
|
7037
|
-
e.enableLogging &&
|
|
7043
|
+
e.enableLogging && c.apply(console, Array.prototype.slice.call(arguments));
|
|
7038
7044
|
};
|
|
7039
7045
|
}
|
|
7040
7046
|
}
|
|
7041
|
-
function
|
|
7047
|
+
function Nf(t) {
|
|
7042
7048
|
const e = String.fromCodePoint(...t);
|
|
7043
7049
|
return btoa(e);
|
|
7044
7050
|
}
|
|
7045
|
-
class
|
|
7051
|
+
class Uf {
|
|
7046
7052
|
constructor(e) {
|
|
7047
7053
|
ze(this, "oidc");
|
|
7048
7054
|
ze(this, "isAuthenticated", !1);
|
|
@@ -7071,52 +7077,52 @@ class Rf {
|
|
|
7071
7077
|
}
|
|
7072
7078
|
}
|
|
7073
7079
|
let Is;
|
|
7074
|
-
function
|
|
7075
|
-
Is = new
|
|
7080
|
+
function Am(t) {
|
|
7081
|
+
Is = new Uf(t);
|
|
7076
7082
|
}
|
|
7077
7083
|
const gi = () => Is;
|
|
7078
|
-
function
|
|
7084
|
+
function Hf(t) {
|
|
7079
7085
|
return zs() ? (Ws(t), !0) : !1;
|
|
7080
7086
|
}
|
|
7081
|
-
const
|
|
7087
|
+
const jf = typeof window < "u" && typeof document < "u";
|
|
7082
7088
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7083
|
-
function
|
|
7089
|
+
function Ff(t) {
|
|
7084
7090
|
return Dr();
|
|
7085
7091
|
}
|
|
7086
|
-
function
|
|
7092
|
+
function Vf(t) {
|
|
7087
7093
|
return Array.isArray(t) ? t : [t];
|
|
7088
7094
|
}
|
|
7089
|
-
function
|
|
7090
|
-
|
|
7095
|
+
function Kf(t, e = !0, n) {
|
|
7096
|
+
Ff() ? xt(t, n) : e ? t() : wi(t);
|
|
7091
7097
|
}
|
|
7092
|
-
const Ts =
|
|
7098
|
+
const Ts = jf ? window : void 0;
|
|
7093
7099
|
function Nt(t) {
|
|
7094
7100
|
var e;
|
|
7095
7101
|
const n = Si(t);
|
|
7096
7102
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
7097
7103
|
}
|
|
7098
|
-
function
|
|
7104
|
+
function zf() {
|
|
7099
7105
|
const t = ie(!1), e = Dr();
|
|
7100
7106
|
return e && xt(() => {
|
|
7101
7107
|
t.value = !0;
|
|
7102
7108
|
}, e), t;
|
|
7103
7109
|
}
|
|
7104
|
-
function
|
|
7105
|
-
const e =
|
|
7110
|
+
function Wf(t) {
|
|
7111
|
+
const e = zf();
|
|
7106
7112
|
return Ie(() => (e.value, !!t()));
|
|
7107
7113
|
}
|
|
7108
|
-
function
|
|
7114
|
+
function Gf(t, e, n = {}) {
|
|
7109
7115
|
const { window: r = Ts, ...o } = n;
|
|
7110
7116
|
let i;
|
|
7111
|
-
const
|
|
7117
|
+
const l = Wf(() => r && "ResizeObserver" in r), s = () => {
|
|
7112
7118
|
i && (i.disconnect(), i = void 0);
|
|
7113
|
-
},
|
|
7119
|
+
}, a = Ie(() => {
|
|
7114
7120
|
const m = Si(t);
|
|
7115
7121
|
return Array.isArray(m) ? m.map((g) => Nt(g)) : [Nt(m)];
|
|
7116
|
-
}),
|
|
7117
|
-
|
|
7122
|
+
}), u = dn(
|
|
7123
|
+
a,
|
|
7118
7124
|
(m) => {
|
|
7119
|
-
if (s(),
|
|
7125
|
+
if (s(), l.value && r) {
|
|
7120
7126
|
i = new ResizeObserver(e);
|
|
7121
7127
|
for (const g of m)
|
|
7122
7128
|
g && i.observe(g, o);
|
|
@@ -7124,18 +7130,18 @@ function Kf(t, e, n = {}) {
|
|
|
7124
7130
|
},
|
|
7125
7131
|
{ immediate: !0, flush: "post" }
|
|
7126
7132
|
), d = () => {
|
|
7127
|
-
s(),
|
|
7133
|
+
s(), u();
|
|
7128
7134
|
};
|
|
7129
|
-
return
|
|
7130
|
-
isSupported:
|
|
7135
|
+
return Hf(d), {
|
|
7136
|
+
isSupported: l,
|
|
7131
7137
|
stop: d
|
|
7132
7138
|
};
|
|
7133
7139
|
}
|
|
7134
|
-
function
|
|
7140
|
+
function qf(t, e = { width: 0, height: 0 }, n = {}) {
|
|
7135
7141
|
const { window: r = Ts, box: o = "content-box" } = n, i = Ie(() => {
|
|
7136
7142
|
var m, g;
|
|
7137
7143
|
return (g = (m = Nt(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
7138
|
-
}),
|
|
7144
|
+
}), l = ie(e.width), s = ie(e.height), { stop: a } = Gf(
|
|
7139
7145
|
t,
|
|
7140
7146
|
([m]) => {
|
|
7141
7147
|
const g = o === "border-box" ? m.borderBoxSize : o === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
|
|
@@ -7143,44 +7149,44 @@ function zf(t, e = { width: 0, height: 0 }, n = {}) {
|
|
|
7143
7149
|
const w = Nt(t);
|
|
7144
7150
|
if (w) {
|
|
7145
7151
|
const k = w.getBoundingClientRect();
|
|
7146
|
-
|
|
7152
|
+
l.value = k.width, s.value = k.height;
|
|
7147
7153
|
}
|
|
7148
7154
|
} else if (g) {
|
|
7149
|
-
const w =
|
|
7150
|
-
|
|
7155
|
+
const w = Vf(g);
|
|
7156
|
+
l.value = w.reduce((k, { inlineSize: A }) => k + A, 0), s.value = w.reduce((k, { blockSize: A }) => k + A, 0);
|
|
7151
7157
|
} else
|
|
7152
|
-
|
|
7158
|
+
l.value = m.contentRect.width, s.value = m.contentRect.height;
|
|
7153
7159
|
},
|
|
7154
7160
|
n
|
|
7155
7161
|
);
|
|
7156
|
-
|
|
7162
|
+
Kf(() => {
|
|
7157
7163
|
const m = Nt(t);
|
|
7158
|
-
m && (
|
|
7164
|
+
m && (l.value = "offsetWidth" in m ? m.offsetWidth : e.width, s.value = "offsetHeight" in m ? m.offsetHeight : e.height);
|
|
7159
7165
|
});
|
|
7160
|
-
const
|
|
7166
|
+
const u = dn(
|
|
7161
7167
|
() => Nt(t),
|
|
7162
7168
|
(m) => {
|
|
7163
|
-
|
|
7169
|
+
l.value = m ? e.width : 0, s.value = m ? e.height : 0;
|
|
7164
7170
|
}
|
|
7165
7171
|
);
|
|
7166
7172
|
function d() {
|
|
7167
|
-
|
|
7173
|
+
a(), u();
|
|
7168
7174
|
}
|
|
7169
7175
|
return {
|
|
7170
|
-
width:
|
|
7176
|
+
width: l,
|
|
7171
7177
|
height: s,
|
|
7172
7178
|
stop: d
|
|
7173
7179
|
};
|
|
7174
7180
|
}
|
|
7175
|
-
var
|
|
7176
|
-
function
|
|
7181
|
+
var Yf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7182
|
+
function Xf(t) {
|
|
7177
7183
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7178
7184
|
}
|
|
7179
7185
|
var As = { exports: {} };
|
|
7180
7186
|
(function(t) {
|
|
7181
7187
|
(function(e, n) {
|
|
7182
7188
|
t.exports ? t.exports = n() : e.log = n();
|
|
7183
|
-
})(
|
|
7189
|
+
})(Yf, function() {
|
|
7184
7190
|
var e = function() {
|
|
7185
7191
|
}, n = "undefined", r = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), o = [
|
|
7186
7192
|
"trace",
|
|
@@ -7188,7 +7194,7 @@ var As = { exports: {} };
|
|
|
7188
7194
|
"info",
|
|
7189
7195
|
"warn",
|
|
7190
7196
|
"error"
|
|
7191
|
-
], i = {},
|
|
7197
|
+
], i = {}, l = null;
|
|
7192
7198
|
function s(A, E) {
|
|
7193
7199
|
var v = A[E];
|
|
7194
7200
|
if (typeof v.bind == "function")
|
|
@@ -7201,11 +7207,11 @@ var As = { exports: {} };
|
|
|
7201
7207
|
};
|
|
7202
7208
|
}
|
|
7203
7209
|
}
|
|
7204
|
-
function
|
|
7210
|
+
function a() {
|
|
7205
7211
|
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
7206
7212
|
}
|
|
7207
|
-
function
|
|
7208
|
-
return A === "debug" && (A = "log"), typeof console === n ? !1 : A === "trace" && r ?
|
|
7213
|
+
function u(A) {
|
|
7214
|
+
return A === "debug" && (A = "log"), typeof console === n ? !1 : A === "trace" && r ? a : console[A] !== void 0 ? s(console, A) : console.log !== void 0 ? s(console, "log") : e;
|
|
7209
7215
|
}
|
|
7210
7216
|
function d() {
|
|
7211
7217
|
for (var A = this.getLevel(), E = 0; E < o.length; E++) {
|
|
@@ -7221,7 +7227,7 @@ var As = { exports: {} };
|
|
|
7221
7227
|
};
|
|
7222
7228
|
}
|
|
7223
7229
|
function g(A, E, v) {
|
|
7224
|
-
return
|
|
7230
|
+
return u(A) || m.apply(this, arguments);
|
|
7225
7231
|
}
|
|
7226
7232
|
function w(A, E) {
|
|
7227
7233
|
var v = this, S, R, U, Y = "loglevel";
|
|
@@ -7296,34 +7302,34 @@ var As = { exports: {} };
|
|
|
7296
7302
|
}, v.disableAll = function(B) {
|
|
7297
7303
|
v.setLevel(v.levels.SILENT, B);
|
|
7298
7304
|
}, v.rebuild = function() {
|
|
7299
|
-
if (
|
|
7305
|
+
if (l !== v && (S = le(l.getLevel())), d.call(v), l === v)
|
|
7300
7306
|
for (var B in i)
|
|
7301
7307
|
i[B].rebuild();
|
|
7302
7308
|
}, S = le(
|
|
7303
|
-
|
|
7309
|
+
l ? l.getLevel() : "WARN"
|
|
7304
7310
|
);
|
|
7305
7311
|
var X = ae();
|
|
7306
7312
|
X != null && (U = le(X)), d.call(v);
|
|
7307
7313
|
}
|
|
7308
|
-
|
|
7314
|
+
l = new w(), l.getLogger = function(E) {
|
|
7309
7315
|
if (typeof E != "symbol" && typeof E != "string" || E === "")
|
|
7310
7316
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
7311
7317
|
var v = i[E];
|
|
7312
7318
|
return v || (v = i[E] = new w(
|
|
7313
7319
|
E,
|
|
7314
|
-
|
|
7320
|
+
l.methodFactory
|
|
7315
7321
|
)), v;
|
|
7316
7322
|
};
|
|
7317
7323
|
var k = typeof window !== n ? window.log : void 0;
|
|
7318
|
-
return
|
|
7319
|
-
return typeof window !== n && window.log ===
|
|
7320
|
-
},
|
|
7324
|
+
return l.noConflict = function() {
|
|
7325
|
+
return typeof window !== n && window.log === l && (window.log = k), l;
|
|
7326
|
+
}, l.getLoggers = function() {
|
|
7321
7327
|
return i;
|
|
7322
|
-
},
|
|
7328
|
+
}, l.default = l, l;
|
|
7323
7329
|
});
|
|
7324
7330
|
})(As);
|
|
7325
|
-
var
|
|
7326
|
-
const Hn = /* @__PURE__ */
|
|
7331
|
+
var Zf = As.exports;
|
|
7332
|
+
const Hn = /* @__PURE__ */ Xf(Zf), Pm = {
|
|
7327
7333
|
install(t, e) {
|
|
7328
7334
|
const n = e ?? {};
|
|
7329
7335
|
Hn.setDefaultLevel(
|
|
@@ -7334,7 +7340,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7334
7340
|
"--nav-menu-width",
|
|
7335
7341
|
`${r}px`
|
|
7336
7342
|
);
|
|
7337
|
-
const o = ie(!0), i = ie(0),
|
|
7343
|
+
const o = ie(!0), i = ie(0), l = ie(!1), s = ie(!1), a = ie(""), u = ie(null), { width: d } = qf(u);
|
|
7338
7344
|
t.provide(Ni, {
|
|
7339
7345
|
navMenuWidth: r,
|
|
7340
7346
|
isMenuOpened: o,
|
|
@@ -7348,14 +7354,14 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7348
7354
|
o.value = !1;
|
|
7349
7355
|
},
|
|
7350
7356
|
scrollY: i,
|
|
7351
|
-
pageTitle:
|
|
7352
|
-
isDarkMode:
|
|
7357
|
+
pageTitle: a,
|
|
7358
|
+
isDarkMode: l,
|
|
7353
7359
|
ToggleTheme: () => Zt.Toggle(),
|
|
7354
7360
|
EnableDarkMode: () => Zt.EnableDarkMode(),
|
|
7355
7361
|
EnableLightMode: () => Zt.EnableLightMode(),
|
|
7356
7362
|
ClearStoredTheme: () => Zt.ClearStoredTheme(),
|
|
7357
7363
|
LogoutAsync: async () => {
|
|
7358
|
-
const g =
|
|
7364
|
+
const g = kf(), { oidc: w } = gi();
|
|
7359
7365
|
await g.ConfirmAsync(
|
|
7360
7366
|
"Deseja realmente sair da sua conta?"
|
|
7361
7367
|
) && (s.value = !0, await new Promise((A) => setTimeout(A, 1e3)), w.logout({ redirectUri: window.location.origin }));
|
|
@@ -7365,7 +7371,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7365
7371
|
g.login();
|
|
7366
7372
|
},
|
|
7367
7373
|
isLoggingOut: s,
|
|
7368
|
-
mainRef:
|
|
7374
|
+
mainRef: u,
|
|
7369
7375
|
mainWidth: d,
|
|
7370
7376
|
isMainXs: Ie(() => d.value <= 384),
|
|
7371
7377
|
isMainSm: Ie(() => d.value > 384),
|
|
@@ -7375,7 +7381,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7375
7381
|
isMain2Xl: Ie(() => d.value > 1536),
|
|
7376
7382
|
isMain3Xl: Ie(() => d.value > 1920)
|
|
7377
7383
|
}), new MutationObserver(() => {
|
|
7378
|
-
|
|
7384
|
+
l.value = document.documentElement.classList.contains("dark");
|
|
7379
7385
|
}).observe(document.documentElement, {
|
|
7380
7386
|
attributes: !0,
|
|
7381
7387
|
attributeFilter: ["class"]
|
|
@@ -7383,7 +7389,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7383
7389
|
i.value = document.documentElement.scrollTop;
|
|
7384
7390
|
}), Zt.SetInitialTheme();
|
|
7385
7391
|
}
|
|
7386
|
-
},
|
|
7392
|
+
}, Em = Hn;
|
|
7387
7393
|
class Ps extends Error {
|
|
7388
7394
|
constructor(n = []) {
|
|
7389
7395
|
const r = Array.isArray(n) ? n : [n];
|
|
@@ -7392,7 +7398,7 @@ class Ps extends Error {
|
|
|
7392
7398
|
this.errors = r;
|
|
7393
7399
|
}
|
|
7394
7400
|
}
|
|
7395
|
-
class
|
|
7401
|
+
class Jf {
|
|
7396
7402
|
constructor(e = null) {
|
|
7397
7403
|
ze(this, "errors", []);
|
|
7398
7404
|
ze(this, "_value", null);
|
|
@@ -7476,29 +7482,29 @@ class Es {
|
|
|
7476
7482
|
});
|
|
7477
7483
|
}
|
|
7478
7484
|
}
|
|
7479
|
-
const
|
|
7485
|
+
const Qf = () => new Es(), xm = () => new Es();
|
|
7480
7486
|
window.addEventListener("error", function(t) {
|
|
7481
7487
|
return eo(t.error) || console.error(t.error), t.preventDefault(), !1;
|
|
7482
7488
|
});
|
|
7483
7489
|
window.addEventListener("unhandledrejection", function(t) {
|
|
7484
7490
|
return eo(t.reason) || console.error("Unhandled Rejection", t.reason), t.preventDefault(), !1;
|
|
7485
7491
|
});
|
|
7486
|
-
const
|
|
7492
|
+
const Lm = (t) => {
|
|
7487
7493
|
t.config.errorHandler = (e, n, r) => {
|
|
7488
7494
|
eo(e) || console.error("Vue Global Error Handler: ", { err: e, vm: n, info: r });
|
|
7489
7495
|
};
|
|
7490
|
-
}, eo = (t) => t instanceof Ps || t instanceof
|
|
7491
|
-
function
|
|
7496
|
+
}, eo = (t) => t instanceof Ps || t instanceof Jf ? (Qf().AlertErrorAsync(t.errors), !0) : !1;
|
|
7497
|
+
function em() {
|
|
7492
7498
|
return Gs(Ni);
|
|
7493
7499
|
}
|
|
7494
|
-
const xs = () =>
|
|
7500
|
+
const xs = () => em(), tm = { class: "font-percentage" }, yi = "--font-size-increment", nm = "tamanho-fonte", rm = /* @__PURE__ */ Ve({
|
|
7495
7501
|
__name: "FontSize",
|
|
7496
7502
|
setup(t) {
|
|
7497
7503
|
const e = ie(!1), n = ie(0), r = () => {
|
|
7498
7504
|
n.value = Rr(), e.value = !0;
|
|
7499
7505
|
}, o = () => {
|
|
7500
7506
|
e.value = !1;
|
|
7501
|
-
}, i = () => document.documentElement,
|
|
7507
|
+
}, i = () => document.documentElement, l = () => parseInt(
|
|
7502
7508
|
getComputedStyle(i()).getPropertyValue(
|
|
7503
7509
|
yi
|
|
7504
7510
|
) || "1"
|
|
@@ -7507,19 +7513,19 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7507
7513
|
yi,
|
|
7508
7514
|
g.toString()
|
|
7509
7515
|
), m.value = g);
|
|
7510
|
-
},
|
|
7516
|
+
}, a = () => {
|
|
7511
7517
|
s(m.value + 0.1);
|
|
7512
|
-
},
|
|
7518
|
+
}, u = () => {
|
|
7513
7519
|
s(m.value - 0.1);
|
|
7514
7520
|
}, d = () => {
|
|
7515
7521
|
s(1);
|
|
7516
7522
|
}, m = ie(1);
|
|
7517
7523
|
return qs(() => {
|
|
7518
|
-
localStorage.removeItem(
|
|
7524
|
+
localStorage.removeItem(nm);
|
|
7519
7525
|
}), xt(() => {
|
|
7520
|
-
m.value =
|
|
7526
|
+
m.value = l();
|
|
7521
7527
|
}), (g, w) => ($(), H(rt, null, [
|
|
7522
|
-
De(
|
|
7528
|
+
De(ut, {
|
|
7523
7529
|
button: !0,
|
|
7524
7530
|
size: "sm",
|
|
7525
7531
|
icon: "text_increase",
|
|
@@ -7533,15 +7539,15 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7533
7539
|
}, [
|
|
7534
7540
|
M("div", {
|
|
7535
7541
|
class: "icon",
|
|
7536
|
-
onClick:
|
|
7542
|
+
onClick: u
|
|
7537
7543
|
}),
|
|
7538
|
-
M("span",
|
|
7544
|
+
M("span", tm, Me(m.value.toLocaleString("pt-br", {
|
|
7539
7545
|
style: "percent",
|
|
7540
7546
|
maximumFractionDigits: 0
|
|
7541
7547
|
})), 1),
|
|
7542
7548
|
M("div", {
|
|
7543
7549
|
class: "icon add",
|
|
7544
|
-
onClick:
|
|
7550
|
+
onClick: a
|
|
7545
7551
|
}),
|
|
7546
7552
|
M("span", {
|
|
7547
7553
|
class: "redefinir",
|
|
@@ -7556,10 +7562,10 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7556
7562
|
], 64)) : se("", !0)
|
|
7557
7563
|
], 64));
|
|
7558
7564
|
}
|
|
7559
|
-
}),
|
|
7565
|
+
}), om = /* @__PURE__ */ Ft(rm, [["__scopeId", "data-v-af78ca17"]]), im = { class: "nav-menu-header" }, sm = { class: "nav-menu-inner-close" }, am = { class: "main-content" }, lm = { class: "menu-button" }, cm = { class: "page-title" }, um = { class: "action" }, dm = { id: "content" }, fm = {
|
|
7560
7566
|
key: 0,
|
|
7561
7567
|
id: "logging-out"
|
|
7562
|
-
},
|
|
7568
|
+
}, mm = { class: "info-fazenda" }, pm = { class: "font-bold" }, hm = { class: "info-endereco text-muted" }, gm = /* @__PURE__ */ Ve({
|
|
7563
7569
|
__name: "Main",
|
|
7564
7570
|
props: {
|
|
7565
7571
|
auth: {}
|
|
@@ -7570,17 +7576,17 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7570
7576
|
isMenuOpened: r,
|
|
7571
7577
|
pageTitle: o,
|
|
7572
7578
|
scrollY: i,
|
|
7573
|
-
ToggleMenu:
|
|
7579
|
+
ToggleMenu: l,
|
|
7574
7580
|
isDarkMode: s,
|
|
7575
|
-
ToggleTheme:
|
|
7576
|
-
CloseMenu:
|
|
7581
|
+
ToggleTheme: a,
|
|
7582
|
+
CloseMenu: u,
|
|
7577
7583
|
LogoutAsync: d,
|
|
7578
7584
|
Login: m,
|
|
7579
7585
|
isLoggingOut: g,
|
|
7580
7586
|
mainRef: w
|
|
7581
7587
|
} = xs(), k = ie(null), A = () => {
|
|
7582
7588
|
if (!k.value || !r.value) return !1;
|
|
7583
|
-
k.value.offsetWidth !== n &&
|
|
7589
|
+
k.value.offsetWidth !== n && u();
|
|
7584
7590
|
};
|
|
7585
7591
|
return xt(() => {
|
|
7586
7592
|
Xs().afterEach(() => {
|
|
@@ -7601,51 +7607,51 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7601
7607
|
ref: k,
|
|
7602
7608
|
class: Q({ "nav-menu-hidden": !oe(r) })
|
|
7603
7609
|
}, [
|
|
7604
|
-
M("div",
|
|
7610
|
+
M("div", im, [
|
|
7605
7611
|
v[0] || (v[0] = M("span", null, "Menu", -1)),
|
|
7606
|
-
M("div",
|
|
7607
|
-
De(
|
|
7612
|
+
M("div", sm, [
|
|
7613
|
+
De(ut, {
|
|
7608
7614
|
button: !0,
|
|
7609
7615
|
icon: "close",
|
|
7610
|
-
onClick: oe(
|
|
7616
|
+
onClick: oe(l)
|
|
7611
7617
|
}, null, 8, ["onClick"])
|
|
7612
7618
|
])
|
|
7613
7619
|
]),
|
|
7614
7620
|
fe(E.$slots, "nav-menu", {}, void 0, !0)
|
|
7615
7621
|
], 2),
|
|
7616
|
-
M("div",
|
|
7622
|
+
M("div", am, [
|
|
7617
7623
|
M("div", {
|
|
7618
7624
|
id: "top-bar",
|
|
7619
7625
|
class: Q({ "shadow-bottom": oe(i) > 72 })
|
|
7620
7626
|
}, [
|
|
7621
|
-
M("div",
|
|
7622
|
-
De(
|
|
7627
|
+
M("div", lm, [
|
|
7628
|
+
De(ut, {
|
|
7623
7629
|
button: !0,
|
|
7624
7630
|
icon: oe(r) ? "menu_open" : "menu",
|
|
7625
7631
|
tooltip: "Menu",
|
|
7626
|
-
onClick: oe(
|
|
7632
|
+
onClick: oe(l)
|
|
7627
7633
|
}, null, 8, ["icon", "onClick"])
|
|
7628
7634
|
]),
|
|
7629
|
-
M("div",
|
|
7635
|
+
M("div", cm, Me(oe(g) ? "Saindo..." : oe(o)), 1),
|
|
7630
7636
|
v[1] || (v[1] = M("span", { class: "sep" }, null, -1)),
|
|
7631
|
-
M("div",
|
|
7632
|
-
De(
|
|
7637
|
+
M("div", um, [
|
|
7638
|
+
De(ut, {
|
|
7633
7639
|
button: !0,
|
|
7634
7640
|
size: "sm",
|
|
7635
7641
|
icon: oe(s) ? "light_mode" : "dark_mode",
|
|
7636
7642
|
tooltip: oe(s) ? "Modo claro" : "Modo escuro",
|
|
7637
|
-
onClick: oe(
|
|
7643
|
+
onClick: oe(a)
|
|
7638
7644
|
}, null, 8, ["icon", "tooltip", "onClick"]),
|
|
7639
|
-
De(
|
|
7645
|
+
De(om),
|
|
7640
7646
|
e.auth ? ($(), H(rt, { key: 0 }, [
|
|
7641
|
-
e.auth.isAuthenticated ? ($(),
|
|
7647
|
+
e.auth.isAuthenticated ? ($(), ue(ut, {
|
|
7642
7648
|
key: 0,
|
|
7643
7649
|
button: !0,
|
|
7644
7650
|
size: "sm",
|
|
7645
7651
|
icon: "logout",
|
|
7646
7652
|
tooltip: "Sair",
|
|
7647
7653
|
onClick: oe(d)
|
|
7648
|
-
}, null, 8, ["onClick"])) : ($(),
|
|
7654
|
+
}, null, 8, ["onClick"])) : ($(), ue(ut, {
|
|
7649
7655
|
key: 1,
|
|
7650
7656
|
button: !0,
|
|
7651
7657
|
size: "sm",
|
|
@@ -7656,21 +7662,21 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7656
7662
|
], 64)) : se("", !0)
|
|
7657
7663
|
])
|
|
7658
7664
|
], 2),
|
|
7659
|
-
M("div",
|
|
7660
|
-
oe(g) ? ($(), H("div",
|
|
7665
|
+
M("div", dm, [
|
|
7666
|
+
oe(g) ? ($(), H("div", fm, [
|
|
7661
7667
|
De(ki)
|
|
7662
7668
|
])) : fe(E.$slots, "content", { key: 1 }, void 0, !0)
|
|
7663
7669
|
])
|
|
7664
7670
|
]),
|
|
7665
7671
|
M("footer", null, [
|
|
7666
7672
|
v[4] || (v[4] = M("div", { class: "logo-fazenda" }, null, -1)),
|
|
7667
|
-
M("div",
|
|
7668
|
-
M("span",
|
|
7673
|
+
M("div", mm, [
|
|
7674
|
+
M("span", pm, [
|
|
7669
7675
|
fe(E.$slots, "footer-nome-fazenda", {}, () => [
|
|
7670
7676
|
v[2] || (v[2] = ko(" SECRETARIA MUNICIPAL DA FAZENDA "))
|
|
7671
7677
|
], !0)
|
|
7672
7678
|
]),
|
|
7673
|
-
M("span",
|
|
7679
|
+
M("span", hm, [
|
|
7674
7680
|
fe(E.$slots, "footer-endereco-fazenda", {}, () => [
|
|
7675
7681
|
v[3] || (v[3] = ko(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))
|
|
7676
7682
|
], !0)
|
|
@@ -7679,7 +7685,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7679
7685
|
])
|
|
7680
7686
|
], 2));
|
|
7681
7687
|
}
|
|
7682
|
-
}),
|
|
7688
|
+
}), Om = /* @__PURE__ */ Ft(gm, [["__scopeId", "data-v-8d67809b"]]), $m = /* @__PURE__ */ Ve({
|
|
7683
7689
|
__name: "PageTitle",
|
|
7684
7690
|
props: {
|
|
7685
7691
|
title: {}
|
|
@@ -7754,7 +7760,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7754
7760
|
color: "{primary.color}"
|
|
7755
7761
|
}
|
|
7756
7762
|
}
|
|
7757
|
-
},
|
|
7763
|
+
}, Mm = {
|
|
7758
7764
|
semantic: {
|
|
7759
7765
|
disabled: {
|
|
7760
7766
|
opacity: "1"
|
|
@@ -7962,7 +7968,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7962
7968
|
}
|
|
7963
7969
|
},
|
|
7964
7970
|
skeleton: {
|
|
7965
|
-
background: "{surface.
|
|
7971
|
+
background: "{surface.700.color} !important",
|
|
7966
7972
|
animation: {
|
|
7967
7973
|
background: "{surface.100.color} !important"
|
|
7968
7974
|
}
|
|
@@ -8040,7 +8046,7 @@ class jn {
|
|
|
8040
8046
|
return new Promise((n) => setTimeout(n, e));
|
|
8041
8047
|
}
|
|
8042
8048
|
}
|
|
8043
|
-
const
|
|
8049
|
+
const Dm = (t) => {
|
|
8044
8050
|
const e = /* @__PURE__ */ new Set();
|
|
8045
8051
|
function n(r) {
|
|
8046
8052
|
const { name: o, children: i } = r;
|
|
@@ -8056,41 +8062,41 @@ const Om = (t) => {
|
|
|
8056
8062
|
e.add(o);
|
|
8057
8063
|
}
|
|
8058
8064
|
if (i && Array.isArray(i))
|
|
8059
|
-
for (const
|
|
8060
|
-
n(
|
|
8065
|
+
for (const l of i)
|
|
8066
|
+
n(l);
|
|
8061
8067
|
}
|
|
8062
8068
|
for (const r of t)
|
|
8063
8069
|
n(r);
|
|
8064
8070
|
};
|
|
8065
|
-
function
|
|
8071
|
+
function Rm() {
|
|
8066
8072
|
document.documentElement.classList.add("app-mounted");
|
|
8067
8073
|
}
|
|
8068
8074
|
export {
|
|
8069
8075
|
Ps as AppError,
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8076
|
+
Jf as AppResult,
|
|
8077
|
+
Am as ConfigAuth,
|
|
8078
|
+
Dm as EnsureUniqueRouteNames,
|
|
8079
|
+
Rm as RemovePreloader,
|
|
8080
|
+
Sm as SfButton,
|
|
8081
|
+
wm as SfContent,
|
|
8082
|
+
km as SfDrawer,
|
|
8083
|
+
ut as SfIcon,
|
|
8084
|
+
Om as SfMain,
|
|
8085
|
+
Cm as SfMessage,
|
|
8086
|
+
Im as SfNavMenu,
|
|
8087
|
+
$m as SfPageTitle,
|
|
8088
|
+
_m as SfTabNavigation,
|
|
8083
8089
|
ea as SfTooltip,
|
|
8084
|
-
|
|
8085
|
-
|
|
8090
|
+
Qf as UseAlert,
|
|
8091
|
+
xm as UseAlertService,
|
|
8086
8092
|
xs as UseAppInject,
|
|
8087
8093
|
gi as UseAuth,
|
|
8088
|
-
|
|
8089
|
-
|
|
8094
|
+
kf as UseConfirm,
|
|
8095
|
+
Tm as UseConfirmService,
|
|
8090
8096
|
jn as Utilities,
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8097
|
+
Em as _logger,
|
|
8098
|
+
Pm as configSF,
|
|
8099
|
+
Lm as globalErrorHandler,
|
|
8100
|
+
Mm as themePreset
|
|
8095
8101
|
};
|
|
8096
8102
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.js.map
|