@luizleon/sf.prefeiturasp.vuecomponents 5.0.5 → 5.0.7
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 +1041 -1040
- 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/dist/types/index.d.ts +2 -15
- package/dist/types/index.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,89 +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:
|
|
3816
|
-
path: s.path,
|
|
3817
|
-
params: s.params ?? {},
|
|
3818
|
-
query: s.query ?? {}
|
|
3819
|
-
},
|
|
3815
|
+
to: a.to,
|
|
3820
3816
|
custom: ""
|
|
3821
3817
|
}, {
|
|
3822
|
-
default: It(({ navigate:
|
|
3818
|
+
default: It(({ navigate: d, isActive: m }) => [
|
|
3823
3819
|
M("a", {
|
|
3824
3820
|
class: Q([
|
|
3825
3821
|
"item-menu",
|
|
3826
3822
|
{
|
|
3827
|
-
"sf-ripple": !
|
|
3828
|
-
disabled:
|
|
3823
|
+
"sf-ripple": !a.disabled,
|
|
3824
|
+
disabled: a.disabled
|
|
3829
3825
|
}
|
|
3830
3826
|
]),
|
|
3831
|
-
"data-active":
|
|
3832
|
-
|
|
3833
|
-
onClick: wr((m) => n(s, c), ["prevent"])
|
|
3827
|
+
"data-active": m,
|
|
3828
|
+
onClick: wr((g) => n(a, d), ["prevent"])
|
|
3834
3829
|
}, [
|
|
3835
|
-
|
|
3836
|
-
M("span",
|
|
3837
|
-
|
|
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)
|
|
3838
3835
|
]),
|
|
3839
3836
|
_: 2
|
|
3840
|
-
}, 1032, ["to"])) : typeof
|
|
3837
|
+
}, 1032, ["to"])) : typeof a.command == "function" ? ($(), H("span", {
|
|
3841
3838
|
key: 1,
|
|
3842
3839
|
class: Q([
|
|
3843
3840
|
"item-menu",
|
|
3844
|
-
{ "sf-ripple": !
|
|
3841
|
+
{ "sf-ripple": !a.disabled, disabled: a.disabled }
|
|
3845
3842
|
]),
|
|
3846
|
-
onClick: wr((
|
|
3843
|
+
onClick: wr((d) => r(d, a), ["stop"])
|
|
3847
3844
|
}, [
|
|
3848
|
-
|
|
3849
|
-
M("span",
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
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)),
|
|
3854
3855
|
M("span", {
|
|
3855
3856
|
class: Q([
|
|
3856
3857
|
"material-symbols-outlined arrow",
|
|
3857
|
-
{ "--expand":
|
|
3858
|
+
{ "--expand": u }
|
|
3858
3859
|
])
|
|
3859
3860
|
}, " chevron_right ", 2)
|
|
3860
3861
|
]))
|
|
@@ -3864,8 +3865,8 @@ const nu = { class: "panel-menu-wrapper" }, ru = ["data-active", "href", "onClic
|
|
|
3864
3865
|
]);
|
|
3865
3866
|
};
|
|
3866
3867
|
}
|
|
3867
|
-
}),
|
|
3868
|
-
class
|
|
3868
|
+
}), Im = /* @__PURE__ */ Ft(fc, [["__scopeId", "data-v-4510e33e"]]), Ni = Symbol();
|
|
3869
|
+
class mc {
|
|
3869
3870
|
get storedTheme() {
|
|
3870
3871
|
return localStorage.getItem("color-scheme");
|
|
3871
3872
|
}
|
|
@@ -3894,7 +3895,7 @@ class cu {
|
|
|
3894
3895
|
localStorage.removeItem("color-scheme");
|
|
3895
3896
|
}
|
|
3896
3897
|
}
|
|
3897
|
-
const Zt = new
|
|
3898
|
+
const Zt = new mc(), Ui = "SweetAlert2:", pc = (t) => {
|
|
3898
3899
|
const e = [];
|
|
3899
3900
|
for (let n = 0; n < t.length; n++)
|
|
3900
3901
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
@@ -3903,10 +3904,10 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
3903
3904
|
console.warn(`${Ui} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3904
3905
|
}, Lt = (t) => {
|
|
3905
3906
|
console.error(`${Ui} ${t}`);
|
|
3906
|
-
}, qo = [],
|
|
3907
|
+
}, qo = [], hc = (t) => {
|
|
3907
3908
|
qo.includes(t) || (qo.push(t), Oe(t));
|
|
3908
|
-
},
|
|
3909
|
-
|
|
3909
|
+
}, gc = (t, e) => {
|
|
3910
|
+
hc(
|
|
3910
3911
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
3911
3912
|
);
|
|
3912
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 = {
|
|
@@ -3997,7 +3998,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
3997
3998
|
didClose: void 0,
|
|
3998
3999
|
didDestroy: void 0,
|
|
3999
4000
|
scrollbarPadding: !0
|
|
4000
|
-
},
|
|
4001
|
+
}, yc = [
|
|
4001
4002
|
"allowEscapeKey",
|
|
4002
4003
|
"allowOutsideClick",
|
|
4003
4004
|
"background",
|
|
@@ -4041,7 +4042,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4041
4042
|
"title",
|
|
4042
4043
|
"titleText",
|
|
4043
4044
|
"willClose"
|
|
4044
|
-
],
|
|
4045
|
+
], bc = {}, vc = [
|
|
4045
4046
|
"allowOutsideClick",
|
|
4046
4047
|
"allowEnterKey",
|
|
4047
4048
|
"backdrop",
|
|
@@ -4051,20 +4052,20 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4051
4052
|
"returnFocus",
|
|
4052
4053
|
"heightAuto",
|
|
4053
4054
|
"keydownListenerCapture"
|
|
4054
|
-
], 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) => {
|
|
4055
4056
|
Hi(t) || Oe(`Unknown parameter "${t}"`);
|
|
4056
|
-
},
|
|
4057
|
-
|
|
4058
|
-
},
|
|
4059
|
-
Tr(t) &&
|
|
4060
|
-
},
|
|
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) => {
|
|
4061
4062
|
!t.backdrop && t.allowOutsideClick && Oe('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4062
4063
|
for (const e in t)
|
|
4063
|
-
|
|
4064
|
-
},
|
|
4064
|
+
wc(e), t.toast && _c(e), Sc(e);
|
|
4065
|
+
}, Cc = "swal2-", Fi = (t) => {
|
|
4065
4066
|
const e = {};
|
|
4066
4067
|
for (const n in t)
|
|
4067
|
-
e[t[n]] =
|
|
4068
|
+
e[t[n]] = Cc + t[n];
|
|
4068
4069
|
return e;
|
|
4069
4070
|
}, h = Fi([
|
|
4070
4071
|
"container",
|
|
@@ -4136,10 +4137,10 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4136
4137
|
"icon-info",
|
|
4137
4138
|
"icon-question",
|
|
4138
4139
|
"icon-error"
|
|
4139
|
-
]),
|
|
4140
|
+
]), cn = Fi(["success", "warning", "info", "question", "error"]), _e = () => document.body.querySelector(`.${h.container}`), kn = (t) => {
|
|
4140
4141
|
const e = _e();
|
|
4141
4142
|
return e ? e.querySelector(t) : null;
|
|
4142
|
-
}, 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 = `
|
|
4143
4144
|
a[href],
|
|
4144
4145
|
area[href],
|
|
4145
4146
|
input:not([disabled]),
|
|
@@ -4160,11 +4161,11 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4160
4161
|
).sort((n, r) => {
|
|
4161
4162
|
const o = parseInt(n.getAttribute("tabindex")), i = parseInt(r.getAttribute("tabindex"));
|
|
4162
4163
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
4163
|
-
}), e = Ne(te().querySelectorAll(
|
|
4164
|
+
}), e = Ne(te().querySelectorAll(Tc)).filter(
|
|
4164
4165
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
4165
4166
|
);
|
|
4166
|
-
return
|
|
4167
|
-
}, 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 = {
|
|
4168
4169
|
previousBodyPadding: null
|
|
4169
4170
|
}, we = (t, e) => {
|
|
4170
4171
|
if (t.textContent = "", e) {
|
|
@@ -4183,12 +4184,12 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4183
4184
|
if (!t.classList.contains(n[r]))
|
|
4184
4185
|
return !1;
|
|
4185
4186
|
return !0;
|
|
4186
|
-
},
|
|
4187
|
+
}, Pc = (t, e) => {
|
|
4187
4188
|
Ne(t.classList).forEach((n) => {
|
|
4188
|
-
!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);
|
|
4189
4190
|
});
|
|
4190
4191
|
}, je = (t, e, n) => {
|
|
4191
|
-
if (
|
|
4192
|
+
if (Pc(t, e), e.customClass && e.customClass[n]) {
|
|
4192
4193
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
4193
4194
|
return Oe(
|
|
4194
4195
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
@@ -4232,7 +4233,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4232
4233
|
for (let r = 0; r < n.length; r++)
|
|
4233
4234
|
if (mt(n[r], e))
|
|
4234
4235
|
return n[r];
|
|
4235
|
-
},
|
|
4236
|
+
}, un = (t, e, n) => {
|
|
4236
4237
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? t.style[e] = typeof n == "number" ? `${n}px` : n : t.style.removeProperty(e);
|
|
4237
4238
|
}, me = (t, e = "flex") => {
|
|
4238
4239
|
t.style.display = e;
|
|
@@ -4243,7 +4244,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4243
4244
|
o && (o.style[n] = r);
|
|
4244
4245
|
}, Qn = (t, e, n) => {
|
|
4245
4246
|
e ? me(t, n) : Se(t);
|
|
4246
|
-
}, 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) => {
|
|
4247
4248
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), r = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
4248
4249
|
return n > 0 || r > 0;
|
|
4249
4250
|
}, Yr = (t, e = !1) => {
|
|
@@ -4251,21 +4252,21 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4251
4252
|
Be(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
4252
4253
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
4253
4254
|
}, 10));
|
|
4254
|
-
},
|
|
4255
|
+
}, xc = () => {
|
|
4255
4256
|
const t = Zn(), e = parseInt(window.getComputedStyle(t).width);
|
|
4256
4257
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
4257
4258
|
const n = parseInt(window.getComputedStyle(t).width), r = e / n * 100;
|
|
4258
4259
|
t.style.removeProperty("transition"), t.style.width = `${r}%`;
|
|
4259
|
-
}, Xi = () => typeof window > "u" || typeof document > "u",
|
|
4260
|
+
}, Xi = () => typeof window > "u" || typeof document > "u", Lc = 100, j = {}, Oc = () => {
|
|
4260
4261
|
j.previousActiveElement && j.previousActiveElement.focus ? (j.previousActiveElement.focus(), j.previousActiveElement = null) : document.body && document.body.focus();
|
|
4261
|
-
},
|
|
4262
|
+
}, $c = (t) => new Promise((e) => {
|
|
4262
4263
|
if (!t)
|
|
4263
4264
|
return e();
|
|
4264
4265
|
const n = window.scrollX, r = window.scrollY;
|
|
4265
4266
|
j.restoreFocusTimeout = setTimeout(() => {
|
|
4266
|
-
|
|
4267
|
-
},
|
|
4268
|
-
}),
|
|
4267
|
+
Oc(), e();
|
|
4268
|
+
}, Lc), window.scrollTo(n, r);
|
|
4269
|
+
}), Mc = `
|
|
4269
4270
|
<div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
|
|
4270
4271
|
<button type="button" class="${h.close}"></button>
|
|
4271
4272
|
<ul class="${h["progress-steps"]}"></ul>
|
|
@@ -4298,7 +4299,7 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4298
4299
|
<div class="${h["timer-progress-bar"]}"></div>
|
|
4299
4300
|
</div>
|
|
4300
4301
|
</div>
|
|
4301
|
-
`.replace(/(^|\n)\s*/g, ""),
|
|
4302
|
+
`.replace(/(^|\n)\s*/g, ""), Dc = () => {
|
|
4302
4303
|
const t = _e();
|
|
4303
4304
|
return t ? (t.remove(), ot(
|
|
4304
4305
|
[document.documentElement, document.body],
|
|
@@ -4306,33 +4307,33 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4306
4307
|
), !0) : !1;
|
|
4307
4308
|
}, St = () => {
|
|
4308
4309
|
j.currentInstance.resetValidationMessage();
|
|
4309
|
-
},
|
|
4310
|
-
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),
|
|
4311
|
-
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 = () => {
|
|
4312
4313
|
St(), o.value = r.value;
|
|
4313
4314
|
}, r.onchange = () => {
|
|
4314
4315
|
St(), r.nextSibling.value = r.value;
|
|
4315
4316
|
};
|
|
4316
|
-
},
|
|
4317
|
+
}, Bc = (t) => typeof t == "string" ? document.querySelector(t) : t, Nc = (t) => {
|
|
4317
4318
|
const e = te();
|
|
4318
4319
|
e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true");
|
|
4319
|
-
},
|
|
4320
|
+
}, Uc = (t) => {
|
|
4320
4321
|
window.getComputedStyle(t).direction === "rtl" && q(_e(), h.rtl);
|
|
4321
|
-
},
|
|
4322
|
-
const e =
|
|
4322
|
+
}, Hc = (t) => {
|
|
4323
|
+
const e = Dc();
|
|
4323
4324
|
if (Xi()) {
|
|
4324
4325
|
Lt("SweetAlert2 requires document to initialize");
|
|
4325
4326
|
return;
|
|
4326
4327
|
}
|
|
4327
4328
|
const n = document.createElement("div");
|
|
4328
|
-
n.className = h.container, e && q(n, h["no-transition"]), we(n,
|
|
4329
|
-
const r =
|
|
4330
|
-
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();
|
|
4331
4332
|
}, Xr = (t, e) => {
|
|
4332
|
-
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ?
|
|
4333
|
-
},
|
|
4334
|
-
t.jquery ?
|
|
4335
|
-
},
|
|
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) => {
|
|
4336
4337
|
if (t.textContent = "", 0 in e)
|
|
4337
4338
|
for (let n = 0; n in e; n++)
|
|
4338
4339
|
t.appendChild(e[n].cloneNode(!0));
|
|
@@ -4351,20 +4352,20 @@ const Zt = new cu(), Ui = "SweetAlert2:", du = (t) => {
|
|
|
4351
4352
|
if (Object.prototype.hasOwnProperty.call(e, n) && typeof t.style[n] < "u")
|
|
4352
4353
|
return e[n];
|
|
4353
4354
|
return !1;
|
|
4354
|
-
})(),
|
|
4355
|
+
})(), Vc = () => {
|
|
4355
4356
|
const t = document.createElement("div");
|
|
4356
4357
|
t.className = h["scrollbar-measure"], document.body.appendChild(t);
|
|
4357
4358
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
4358
4359
|
return document.body.removeChild(t), e;
|
|
4359
|
-
},
|
|
4360
|
+
}, Kc = (t, e) => {
|
|
4360
4361
|
const n = In(), r = Vt();
|
|
4361
|
-
!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");
|
|
4362
4363
|
};
|
|
4363
|
-
function
|
|
4364
|
+
function zc(t, e, n) {
|
|
4364
4365
|
const r = Xe(), o = wt(), i = At();
|
|
4365
|
-
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)));
|
|
4366
4367
|
}
|
|
4367
|
-
function
|
|
4368
|
+
function Wc(t, e, n, r) {
|
|
4368
4369
|
if (!r.buttonsStyling)
|
|
4369
4370
|
return ot([t, e, n], h.styled);
|
|
4370
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"]));
|
|
@@ -4372,33 +4373,33 @@ function Vu(t, e, n, r) {
|
|
|
4372
4373
|
function dr(t, e, n) {
|
|
4373
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`]);
|
|
4374
4375
|
}
|
|
4375
|
-
function
|
|
4376
|
+
function Gc(t, e) {
|
|
4376
4377
|
typeof e == "string" ? t.style.background = e : e || q([document.documentElement, document.body], h["no-backdrop"]);
|
|
4377
4378
|
}
|
|
4378
|
-
function
|
|
4379
|
+
function qc(t, e) {
|
|
4379
4380
|
e in h ? q(t, h[e]) : (Oe('The "position" parameter is not valid, defaulting to "center"'), q(t, h.center));
|
|
4380
4381
|
}
|
|
4381
|
-
function
|
|
4382
|
+
function Yc(t, e) {
|
|
4382
4383
|
if (e && typeof e == "string") {
|
|
4383
4384
|
const n = `grow-${e}`;
|
|
4384
4385
|
n in h && q(t, h[n]);
|
|
4385
4386
|
}
|
|
4386
4387
|
}
|
|
4387
|
-
const
|
|
4388
|
+
const Xc = (t, e) => {
|
|
4388
4389
|
const n = _e();
|
|
4389
|
-
n && (
|
|
4390
|
+
n && (Gc(n, e.backdrop), qc(n, e.position), Yc(n, e.grow), je(n, e, "container"));
|
|
4390
4391
|
}, F = {
|
|
4391
4392
|
awaitingPromise: /* @__PURE__ */ new WeakMap(),
|
|
4392
4393
|
promise: /* @__PURE__ */ new WeakMap(),
|
|
4393
4394
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
4394
4395
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
4395
|
-
},
|
|
4396
|
+
}, Zc = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Jc = (t, e) => {
|
|
4396
4397
|
const n = te(), r = F.innerParams.get(t), o = !r || e.input !== r.input;
|
|
4397
|
-
|
|
4398
|
-
const
|
|
4399
|
-
|
|
4400
|
-
}), e.input && (o &&
|
|
4401
|
-
},
|
|
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) => {
|
|
4402
4403
|
if (!xe[t.input])
|
|
4403
4404
|
return Lt(
|
|
4404
4405
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
@@ -4407,19 +4408,19 @@ const Gu = (t, e) => {
|
|
|
4407
4408
|
me(n), setTimeout(() => {
|
|
4408
4409
|
Gi(n);
|
|
4409
4410
|
});
|
|
4410
|
-
},
|
|
4411
|
+
}, eu = (t) => {
|
|
4411
4412
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
4412
4413
|
const n = t.attributes[e].name;
|
|
4413
4414
|
["type", "value", "style"].includes(n) || t.removeAttribute(n);
|
|
4414
4415
|
}
|
|
4415
|
-
},
|
|
4416
|
+
}, tu = (t, e) => {
|
|
4416
4417
|
const n = qr(te(), t);
|
|
4417
4418
|
if (n) {
|
|
4418
|
-
|
|
4419
|
+
eu(n);
|
|
4419
4420
|
for (const r in e)
|
|
4420
4421
|
n.setAttribute(r, e[r]);
|
|
4421
4422
|
}
|
|
4422
|
-
},
|
|
4423
|
+
}, nu = (t) => {
|
|
4423
4424
|
const e = Zi(t.input);
|
|
4424
4425
|
t.customClass && q(e, t.customClass.input);
|
|
4425
4426
|
}, Zr = (t, e) => {
|
|
@@ -4472,16 +4473,16 @@ xe.textarea = (t, e) => {
|
|
|
4472
4473
|
}
|
|
4473
4474
|
}), t;
|
|
4474
4475
|
};
|
|
4475
|
-
const
|
|
4476
|
+
const ru = (t, e) => {
|
|
4476
4477
|
const n = zn();
|
|
4477
|
-
je(n, e, "htmlContainer"), e.html ? (Xr(e.html, n), me(n, "block")) : e.text ? (n.textContent = e.text, me(n, "block")) : Se(n),
|
|
4478
|
-
},
|
|
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) => {
|
|
4479
4480
|
const n = Wi();
|
|
4480
4481
|
Qn(n, e.footer), e.footer && Xr(e.footer, n), je(n, e, "footer");
|
|
4481
|
-
},
|
|
4482
|
+
}, iu = (t, e) => {
|
|
4482
4483
|
const n = zr();
|
|
4483
4484
|
we(n, e.closeButtonHtml), je(n, e, "closeButton"), Qn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
4484
|
-
},
|
|
4485
|
+
}, su = (t, e) => {
|
|
4485
4486
|
const n = F.innerParams.get(t), r = Cn();
|
|
4486
4487
|
if (n && e.icon === n.icon) {
|
|
4487
4488
|
Jo(r, e), Zo(r, e);
|
|
@@ -4489,34 +4490,34 @@ const ec = (t, e) => {
|
|
|
4489
4490
|
}
|
|
4490
4491
|
if (!e.icon && !e.iconHtml)
|
|
4491
4492
|
return Se(r);
|
|
4492
|
-
if (e.icon && Object.keys(
|
|
4493
|
+
if (e.icon && Object.keys(cn).indexOf(e.icon) === -1)
|
|
4493
4494
|
return Lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Se(r);
|
|
4494
4495
|
me(r), Jo(r, e), Zo(r, e), q(r, e.showClass.icon);
|
|
4495
4496
|
}, Zo = (t, e) => {
|
|
4496
|
-
for (const n in
|
|
4497
|
-
e.icon !== n && ot(t,
|
|
4498
|
-
q(t,
|
|
4499
|
-
},
|
|
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 = () => {
|
|
4500
4501
|
const t = te(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
4501
4502
|
for (let r = 0; r < n.length; r++)
|
|
4502
4503
|
n[r].style.backgroundColor = e;
|
|
4503
|
-
},
|
|
4504
|
+
}, lu = `
|
|
4504
4505
|
<div class="swal2-success-circular-line-left"></div>
|
|
4505
4506
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
4506
4507
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
4507
4508
|
<div class="swal2-success-circular-line-right"></div>
|
|
4508
|
-
`,
|
|
4509
|
+
`, cu = `
|
|
4509
4510
|
<span class="swal2-x-mark">
|
|
4510
4511
|
<span class="swal2-x-mark-line-left"></span>
|
|
4511
4512
|
<span class="swal2-x-mark-line-right"></span>
|
|
4512
4513
|
</span>
|
|
4513
4514
|
`, Jo = (t, e) => {
|
|
4514
|
-
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({
|
|
4515
4516
|
question: "?",
|
|
4516
4517
|
warning: "!",
|
|
4517
4518
|
info: "i"
|
|
4518
4519
|
}[e.icon]));
|
|
4519
|
-
},
|
|
4520
|
+
}, uu = (t, e) => {
|
|
4520
4521
|
if (e.iconColor) {
|
|
4521
4522
|
t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
|
|
4522
4523
|
for (const n of [
|
|
@@ -4528,47 +4529,47 @@ const ec = (t, e) => {
|
|
|
4528
4529
|
Yo(t, n, "backgroundColor", e.iconColor);
|
|
4529
4530
|
Yo(t, ".swal2-success-ring", "borderColor", e.iconColor);
|
|
4530
4531
|
}
|
|
4531
|
-
}, Qo = (t) => `<div class="${h["icon-content"]}">${t}</div>`,
|
|
4532
|
+
}, Qo = (t) => `<div class="${h["icon-content"]}">${t}</div>`, du = (t, e) => {
|
|
4532
4533
|
const n = Ki();
|
|
4533
4534
|
if (!e.imageUrl)
|
|
4534
4535
|
return Se(n);
|
|
4535
|
-
me(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt),
|
|
4536
|
-
},
|
|
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) => {
|
|
4537
4538
|
const e = document.createElement("li");
|
|
4538
4539
|
return q(e, h["progress-step"]), we(e, t), e;
|
|
4539
|
-
},
|
|
4540
|
+
}, mu = (t) => {
|
|
4540
4541
|
const e = document.createElement("li");
|
|
4541
4542
|
return q(e, h["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e;
|
|
4542
|
-
},
|
|
4543
|
+
}, pu = (t, e) => {
|
|
4543
4544
|
const n = zi();
|
|
4544
4545
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
4545
4546
|
return Se(n);
|
|
4546
4547
|
me(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Oe(
|
|
4547
4548
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
4548
4549
|
), e.progressSteps.forEach((r, o) => {
|
|
4549
|
-
const i =
|
|
4550
|
+
const i = fu(r);
|
|
4550
4551
|
if (n.appendChild(i), o === e.currentProgressStep && q(i, h["active-progress-step"]), o !== e.progressSteps.length - 1) {
|
|
4551
|
-
const
|
|
4552
|
-
n.appendChild(
|
|
4552
|
+
const l = mu(e);
|
|
4553
|
+
n.appendChild(l);
|
|
4553
4554
|
}
|
|
4554
4555
|
});
|
|
4555
|
-
},
|
|
4556
|
+
}, hu = (t, e) => {
|
|
4556
4557
|
const n = Vi();
|
|
4557
4558
|
Qn(n, e.title || e.titleText, "block"), e.title && Xr(e.title, n), e.titleText && (n.innerText = e.titleText), je(n, e, "title");
|
|
4558
|
-
},
|
|
4559
|
+
}, gu = (t, e) => {
|
|
4559
4560
|
const n = _e(), r = te();
|
|
4560
|
-
e.toast ? (
|
|
4561
|
-
},
|
|
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) => {
|
|
4562
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}`]);
|
|
4563
4564
|
}, Ji = (t, e) => {
|
|
4564
|
-
|
|
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());
|
|
4565
4566
|
}, Kt = Object.freeze({
|
|
4566
4567
|
cancel: "cancel",
|
|
4567
4568
|
backdrop: "backdrop",
|
|
4568
4569
|
close: "close",
|
|
4569
4570
|
esc: "esc",
|
|
4570
4571
|
timer: "timer"
|
|
4571
|
-
}),
|
|
4572
|
+
}), bu = () => {
|
|
4572
4573
|
Ne(document.body.children).forEach((e) => {
|
|
4573
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"));
|
|
4574
4575
|
});
|
|
@@ -4576,56 +4577,56 @@ const ec = (t, e) => {
|
|
|
4576
4577
|
Ne(document.body.children).forEach((e) => {
|
|
4577
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");
|
|
4578
4579
|
});
|
|
4579
|
-
}, es = ["swal-title", "swal-html", "swal-footer"],
|
|
4580
|
+
}, es = ["swal-title", "swal-html", "swal-footer"], vu = (t) => {
|
|
4580
4581
|
const e = typeof t.template == "string" ? document.querySelector(t.template) : t.template;
|
|
4581
4582
|
if (!e)
|
|
4582
4583
|
return {};
|
|
4583
4584
|
const n = e.content;
|
|
4584
|
-
return
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
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)
|
|
4591
4592
|
);
|
|
4592
|
-
},
|
|
4593
|
+
}, wu = (t) => {
|
|
4593
4594
|
const e = {};
|
|
4594
4595
|
return Ne(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
4595
4596
|
Pt(n, ["name", "value"]);
|
|
4596
4597
|
const r = n.getAttribute("name"), o = n.getAttribute("value");
|
|
4597
4598
|
typeof Ut[r] == "boolean" && o === "false" && (e[r] = !1), typeof Ut[r] == "object" && (e[r] = JSON.parse(o));
|
|
4598
4599
|
}), e;
|
|
4599
|
-
},
|
|
4600
|
+
}, _u = (t) => {
|
|
4600
4601
|
const e = {};
|
|
4601
4602
|
return Ne(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
4602
4603
|
Pt(n, ["type", "color", "aria-label"]);
|
|
4603
4604
|
const r = n.getAttribute("type");
|
|
4604
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"));
|
|
4605
4606
|
}), e;
|
|
4606
|
-
},
|
|
4607
|
+
}, Su = (t) => {
|
|
4607
4608
|
const e = {}, n = t.querySelector("swal-image");
|
|
4608
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;
|
|
4609
|
-
},
|
|
4610
|
+
}, ku = (t) => {
|
|
4610
4611
|
const e = {}, n = t.querySelector("swal-icon");
|
|
4611
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;
|
|
4612
|
-
},
|
|
4613
|
+
}, Cu = (t) => {
|
|
4613
4614
|
const e = {}, n = t.querySelector("swal-input");
|
|
4614
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")));
|
|
4615
4616
|
const r = t.querySelectorAll("swal-input-option");
|
|
4616
4617
|
return r.length && (e.inputOptions = {}, Ne(r).forEach((o) => {
|
|
4617
4618
|
Pt(o, ["value"]);
|
|
4618
|
-
const i = o.getAttribute("value"),
|
|
4619
|
-
e.inputOptions[i] =
|
|
4619
|
+
const i = o.getAttribute("value"), l = o.innerHTML;
|
|
4620
|
+
e.inputOptions[i] = l;
|
|
4620
4621
|
})), e;
|
|
4621
|
-
},
|
|
4622
|
+
}, Iu = (t, e) => {
|
|
4622
4623
|
const n = {};
|
|
4623
4624
|
for (const r in e) {
|
|
4624
4625
|
const o = e[r], i = t.querySelector(o);
|
|
4625
4626
|
i && (Pt(i, []), n[o.replace(/^swal-/, "")] = i.innerHTML.trim());
|
|
4626
4627
|
}
|
|
4627
4628
|
return n;
|
|
4628
|
-
},
|
|
4629
|
+
}, Tu = (t) => {
|
|
4629
4630
|
const e = es.concat([
|
|
4630
4631
|
"swal-param",
|
|
4631
4632
|
"swal-button",
|
|
@@ -4649,23 +4650,23 @@ const ec = (t, e) => {
|
|
|
4649
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"),
|
|
4650
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")
|
|
4651
4652
|
};
|
|
4652
|
-
function
|
|
4653
|
+
function Au(t) {
|
|
4653
4654
|
t.inputValidator || Object.keys(ei).forEach((e) => {
|
|
4654
4655
|
t.input === e && (t.inputValidator = ei[e]);
|
|
4655
4656
|
});
|
|
4656
4657
|
}
|
|
4657
|
-
function
|
|
4658
|
+
function Pu(t) {
|
|
4658
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");
|
|
4659
4660
|
}
|
|
4660
|
-
function
|
|
4661
|
-
|
|
4661
|
+
function Eu(t) {
|
|
4662
|
+
Au(t), t.showLoaderOnConfirm && !t.preConfirm && Oe(
|
|
4662
4663
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
4663
4664
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
4664
4665
|
https://sweetalert2.github.io/#ajax-request`
|
|
4665
|
-
),
|
|
4666
|
-
`).join("<br />")),
|
|
4666
|
+
), Pu(t), typeof t.title == "string" && (t.title = t.title.split(`
|
|
4667
|
+
`).join("<br />")), Hc(t);
|
|
4667
4668
|
}
|
|
4668
|
-
class
|
|
4669
|
+
class xu {
|
|
4669
4670
|
constructor(e, n) {
|
|
4670
4671
|
this.callback = e, this.remaining = n, this.running = !1, this.start();
|
|
4671
4672
|
}
|
|
@@ -4686,58 +4687,58 @@ class Ac {
|
|
|
4686
4687
|
return this.running;
|
|
4687
4688
|
}
|
|
4688
4689
|
}
|
|
4689
|
-
const
|
|
4690
|
-
Ht.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (Ht.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Ht.previousBodyPadding +
|
|
4691
|
-
},
|
|
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 = () => {
|
|
4692
4693
|
Ht.previousBodyPadding !== null && (document.body.style.paddingRight = `${Ht.previousBodyPadding}px`, Ht.previousBodyPadding = null);
|
|
4693
|
-
},
|
|
4694
|
+
}, $u = () => {
|
|
4694
4695
|
if (// @ts-ignore
|
|
4695
4696
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !mt(document.body, h.iosfix)) {
|
|
4696
4697
|
const e = document.body.scrollTop;
|
|
4697
|
-
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();
|
|
4698
4699
|
}
|
|
4699
|
-
},
|
|
4700
|
+
}, Mu = () => {
|
|
4700
4701
|
const t = navigator.userAgent, e = !!t.match(/iPad/i) || !!t.match(/iPhone/i), n = !!t.match(/WebKit/i);
|
|
4701
4702
|
e && n && !t.match(/CriOS/i) && te().scrollHeight > window.innerHeight - 44 && (_e().style.paddingBottom = "44px");
|
|
4702
|
-
},
|
|
4703
|
+
}, Du = () => {
|
|
4703
4704
|
const t = _e();
|
|
4704
4705
|
let e;
|
|
4705
4706
|
t.ontouchstart = (n) => {
|
|
4706
|
-
e =
|
|
4707
|
+
e = Ru(n);
|
|
4707
4708
|
}, t.ontouchmove = (n) => {
|
|
4708
4709
|
e && (n.preventDefault(), n.stopPropagation());
|
|
4709
4710
|
};
|
|
4710
|
-
},
|
|
4711
|
+
}, Ru = (t) => {
|
|
4711
4712
|
const e = t.target, n = _e();
|
|
4712
|
-
return
|
|
4713
|
+
return Bu(t) || Nu(t) ? !1 : e === n || !Xo(n) && e.tagName !== "INPUT" && // #1603
|
|
4713
4714
|
e.tagName !== "TEXTAREA" && // #2266
|
|
4714
4715
|
!(Xo(zn()) && // #1944
|
|
4715
4716
|
zn().contains(e));
|
|
4716
|
-
},
|
|
4717
|
+
}, Bu = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Nu = (t) => t.touches && t.touches.length > 1, Uu = () => {
|
|
4717
4718
|
if (mt(document.body, h.iosfix)) {
|
|
4718
4719
|
const t = parseInt(document.body.style.top, 10);
|
|
4719
4720
|
ot(document.body, h.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
4720
4721
|
}
|
|
4721
|
-
}, ts = 10,
|
|
4722
|
+
}, ts = 10, Hu = (t) => {
|
|
4722
4723
|
const e = _e(), n = te();
|
|
4723
4724
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
4724
4725
|
const o = window.getComputedStyle(document.body).overflowY;
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
}, 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"]);
|
|
4728
4729
|
}, ns = (t) => {
|
|
4729
4730
|
const e = te();
|
|
4730
4731
|
if (t.target !== e)
|
|
4731
4732
|
return;
|
|
4732
4733
|
const n = _e();
|
|
4733
4734
|
e.removeEventListener(vn, ns), n.style.overflowY = "auto";
|
|
4734
|
-
},
|
|
4735
|
+
}, ju = (t, e) => {
|
|
4735
4736
|
vn && Yi(e) ? (t.style.overflowY = "hidden", e.addEventListener(vn, ns)) : t.style.overflowY = "auto";
|
|
4736
|
-
},
|
|
4737
|
-
|
|
4737
|
+
}, Fu = (t, e, n) => {
|
|
4738
|
+
$u(), e && n !== "hidden" && Lu(), setTimeout(() => {
|
|
4738
4739
|
t.scrollTop = 0;
|
|
4739
4740
|
});
|
|
4740
|
-
},
|
|
4741
|
+
}, Vu = (t, e, n) => {
|
|
4741
4742
|
q(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), me(e, "grid"), setTimeout(() => {
|
|
4742
4743
|
q(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
4743
4744
|
}, ts), q([document.documentElement, document.body], h.shown), n.heightAuto && n.backdrop && !n.toast && q([document.documentElement, document.body], h["height-auto"]);
|
|
@@ -4745,60 +4746,60 @@ const Pc = () => {
|
|
|
4745
4746
|
let e = te();
|
|
4746
4747
|
e || new Et(), e = te();
|
|
4747
4748
|
const n = Vt();
|
|
4748
|
-
Jn() ? Se(Cn()) :
|
|
4749
|
-
},
|
|
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) => {
|
|
4750
4751
|
const n = In(), r = Vt();
|
|
4751
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);
|
|
4752
|
-
},
|
|
4753
|
-
e.input === "select" || e.input === "radio" ?
|
|
4754
|
-
},
|
|
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) => {
|
|
4755
4756
|
const n = t.getInput();
|
|
4756
4757
|
if (!n)
|
|
4757
4758
|
return null;
|
|
4758
4759
|
switch (e.input) {
|
|
4759
4760
|
case "checkbox":
|
|
4760
|
-
return
|
|
4761
|
+
return Gu(n);
|
|
4761
4762
|
case "radio":
|
|
4762
|
-
return
|
|
4763
|
+
return qu(n);
|
|
4763
4764
|
case "file":
|
|
4764
|
-
return
|
|
4765
|
+
return Yu(n);
|
|
4765
4766
|
default:
|
|
4766
4767
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
4767
4768
|
}
|
|
4768
|
-
},
|
|
4769
|
-
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);
|
|
4770
4771
|
Vr(e.inputOptions) || Kr(e.inputOptions) ? (jt(Xe()), Sn(e.inputOptions).then((o) => {
|
|
4771
4772
|
t.hideLoading(), r(o);
|
|
4772
4773
|
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : Lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
4773
|
-
},
|
|
4774
|
+
}, Zu = (t, e) => {
|
|
4774
4775
|
const n = t.getInput();
|
|
4775
4776
|
Se(n), Sn(e.inputValue).then((r) => {
|
|
4776
4777
|
n.value = e.input === "number" ? parseFloat(r) || 0 : `${r}`, me(n), n.focus(), t.hideLoading();
|
|
4777
4778
|
}).catch((r) => {
|
|
4778
4779
|
Lt(`Error in inputValue promise: ${r}`), n.value = "", me(n), n.focus(), t.hideLoading();
|
|
4779
4780
|
});
|
|
4780
|
-
},
|
|
4781
|
+
}, Ju = {
|
|
4781
4782
|
select: (t, e, n) => {
|
|
4782
|
-
const r = bt(t, h.select), o = (i,
|
|
4783
|
-
const
|
|
4784
|
-
|
|
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);
|
|
4785
4786
|
};
|
|
4786
4787
|
e.forEach((i) => {
|
|
4787
|
-
const
|
|
4788
|
+
const l = i[0], s = i[1];
|
|
4788
4789
|
if (Array.isArray(s)) {
|
|
4789
|
-
const
|
|
4790
|
-
|
|
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]));
|
|
4791
4792
|
} else
|
|
4792
|
-
o(r, s,
|
|
4793
|
+
o(r, s, l);
|
|
4793
4794
|
}), r.focus();
|
|
4794
4795
|
},
|
|
4795
4796
|
radio: (t, e, n) => {
|
|
4796
4797
|
const r = bt(t, h.radio);
|
|
4797
4798
|
e.forEach((i) => {
|
|
4798
|
-
const
|
|
4799
|
-
|
|
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);
|
|
4800
4801
|
const d = document.createElement("span");
|
|
4801
|
-
we(d, s), d.className = h.label,
|
|
4802
|
+
we(d, s), d.className = h.label, u.appendChild(a), u.appendChild(d), r.appendChild(u);
|
|
4802
4803
|
});
|
|
4803
4804
|
const o = r.querySelectorAll("input");
|
|
4804
4805
|
o.length && o[0].focus();
|
|
@@ -4818,25 +4819,25 @@ function ni() {
|
|
|
4818
4819
|
if (!t)
|
|
4819
4820
|
return;
|
|
4820
4821
|
const e = F.domCache.get(this);
|
|
4821
|
-
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;
|
|
4822
4823
|
}
|
|
4823
|
-
const
|
|
4824
|
+
const Qu = (t) => {
|
|
4824
4825
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
4825
|
-
e.length ? me(e[0], "inline-block") :
|
|
4826
|
+
e.length ? me(e[0], "inline-block") : Ec() && Se(t.actions);
|
|
4826
4827
|
};
|
|
4827
|
-
function
|
|
4828
|
+
function ed(t) {
|
|
4828
4829
|
const e = F.innerParams.get(t || this), n = F.domCache.get(t || this);
|
|
4829
4830
|
return n ? qr(n.popup, e.input) : null;
|
|
4830
4831
|
}
|
|
4831
4832
|
const wn = {
|
|
4832
4833
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
4833
4834
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
4834
|
-
},
|
|
4835
|
+
}, td = () => Be(te()), rs = () => Xe() && Xe().click(), nd = () => wt() && wt().click(), rd = () => At() && At().click(), os = (t) => {
|
|
4835
4836
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
4836
4837
|
capture: t.keydownListenerCapture
|
|
4837
4838
|
}), t.keydownHandlerAdded = !1);
|
|
4838
|
-
},
|
|
4839
|
-
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, {
|
|
4840
4841
|
capture: e.keydownListenerCapture
|
|
4841
4842
|
}), e.keydownHandlerAdded = !0);
|
|
4842
4843
|
}, Pr = (t, e, n) => {
|
|
@@ -4844,16 +4845,16 @@ const wn = {
|
|
|
4844
4845
|
if (r.length)
|
|
4845
4846
|
return e = e + n, e === r.length ? e = 0 : e === -1 && (e = r.length - 1), r[e].focus();
|
|
4846
4847
|
te().focus();
|
|
4847
|
-
}, is = ["ArrowRight", "ArrowDown"],
|
|
4848
|
+
}, is = ["ArrowRight", "ArrowDown"], id = ["ArrowLeft", "ArrowUp"], sd = (t, e, n) => {
|
|
4848
4849
|
const r = F.innerParams.get(t);
|
|
4849
|
-
r && (e.isComposing || e.keyCode === 229 || (r.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ?
|
|
4850
|
-
},
|
|
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) => {
|
|
4851
4852
|
if (Yn(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
4852
4853
|
if (["textarea", "file"].includes(n.input))
|
|
4853
4854
|
return;
|
|
4854
4855
|
rs(), e.preventDefault();
|
|
4855
4856
|
}
|
|
4856
|
-
},
|
|
4857
|
+
}, ld = (t, e) => {
|
|
4857
4858
|
const n = t.target, r = Wr();
|
|
4858
4859
|
let o = -1;
|
|
4859
4860
|
for (let i = 0; i < r.length; i++)
|
|
@@ -4862,40 +4863,40 @@ const wn = {
|
|
|
4862
4863
|
break;
|
|
4863
4864
|
}
|
|
4864
4865
|
t.shiftKey ? Pr(e, o, -1) : Pr(e, o, 1), t.stopPropagation(), t.preventDefault();
|
|
4865
|
-
},
|
|
4866
|
+
}, cd = (t) => {
|
|
4866
4867
|
const e = Xe(), n = wt(), r = At();
|
|
4867
4868
|
if (![e, n, r].includes(document.activeElement))
|
|
4868
4869
|
return;
|
|
4869
4870
|
const o = is.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
4870
4871
|
let i = document.activeElement;
|
|
4871
|
-
for (let
|
|
4872
|
+
for (let l = 0; l < In().children.length; l++) {
|
|
4872
4873
|
if (i = i[o], !i)
|
|
4873
4874
|
return;
|
|
4874
4875
|
if (Be(i) && i instanceof HTMLButtonElement)
|
|
4875
4876
|
break;
|
|
4876
4877
|
}
|
|
4877
4878
|
i instanceof HTMLButtonElement && i.focus();
|
|
4878
|
-
},
|
|
4879
|
+
}, ud = (t, e, n) => {
|
|
4879
4880
|
Yn(e.allowEscapeKey) && (t.preventDefault(), n(Kt.esc));
|
|
4880
4881
|
};
|
|
4881
4882
|
function ss(t, e, n, r) {
|
|
4882
|
-
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();
|
|
4883
4884
|
}
|
|
4884
|
-
function
|
|
4885
|
+
function dd() {
|
|
4885
4886
|
ot(
|
|
4886
4887
|
[document.documentElement, document.body],
|
|
4887
4888
|
[h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]
|
|
4888
4889
|
);
|
|
4889
4890
|
}
|
|
4890
4891
|
function Dn(t) {
|
|
4891
|
-
t =
|
|
4892
|
-
const e = wn.swalPromiseResolve.get(this), n =
|
|
4892
|
+
t = hd(t);
|
|
4893
|
+
const e = wn.swalPromiseResolve.get(this), n = md(this);
|
|
4893
4894
|
this.isAwaitingPromise() ? t.isDismissed || (An(this), e(t)) : n && e(t);
|
|
4894
4895
|
}
|
|
4895
|
-
function
|
|
4896
|
+
function fd() {
|
|
4896
4897
|
return !!F.awaitingPromise.get(this);
|
|
4897
4898
|
}
|
|
4898
|
-
const
|
|
4899
|
+
const md = (t) => {
|
|
4899
4900
|
const e = te();
|
|
4900
4901
|
if (!e)
|
|
4901
4902
|
return !1;
|
|
@@ -4904,15 +4905,15 @@ const cd = (t) => {
|
|
|
4904
4905
|
return !1;
|
|
4905
4906
|
ot(e, n.showClass.popup), q(e, n.hideClass.popup);
|
|
4906
4907
|
const r = _e();
|
|
4907
|
-
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;
|
|
4908
4909
|
};
|
|
4909
|
-
function
|
|
4910
|
+
function pd(t) {
|
|
4910
4911
|
const e = wn.swalPromiseReject.get(this);
|
|
4911
4912
|
An(this), e && e(t);
|
|
4912
4913
|
}
|
|
4913
4914
|
const An = (t) => {
|
|
4914
4915
|
t.isAwaitingPromise() && (F.awaitingPromise.delete(t), F.innerParams.get(t) || t._destroy());
|
|
4915
|
-
},
|
|
4916
|
+
}, hd = (t) => typeof t > "u" ? {
|
|
4916
4917
|
isConfirmed: !1,
|
|
4917
4918
|
isDenied: !1,
|
|
4918
4919
|
isDismissed: !0
|
|
@@ -4923,10 +4924,10 @@ const An = (t) => {
|
|
|
4923
4924
|
isDismissed: !1
|
|
4924
4925
|
},
|
|
4925
4926
|
t
|
|
4926
|
-
),
|
|
4927
|
+
), gd = (t, e, n) => {
|
|
4927
4928
|
const r = _e(), o = vn && Yi(e);
|
|
4928
|
-
typeof n.willClose == "function" && n.willClose(e), o ?
|
|
4929
|
-
},
|
|
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) => {
|
|
4930
4931
|
j.swalCloseEventFinishedCallback = ss.bind(
|
|
4931
4932
|
null,
|
|
4932
4933
|
t,
|
|
@@ -4957,40 +4958,40 @@ function ls(t, e) {
|
|
|
4957
4958
|
} else
|
|
4958
4959
|
t.disabled = e;
|
|
4959
4960
|
}
|
|
4960
|
-
function
|
|
4961
|
+
function bd() {
|
|
4961
4962
|
as(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
4962
4963
|
}
|
|
4963
|
-
function
|
|
4964
|
+
function vd() {
|
|
4964
4965
|
as(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
4965
4966
|
}
|
|
4966
|
-
function
|
|
4967
|
+
function wd() {
|
|
4967
4968
|
return ls(this.getInput(), !1);
|
|
4968
4969
|
}
|
|
4969
|
-
function
|
|
4970
|
+
function _d() {
|
|
4970
4971
|
return ls(this.getInput(), !0);
|
|
4971
4972
|
}
|
|
4972
|
-
function
|
|
4973
|
+
function Sd(t) {
|
|
4973
4974
|
const e = F.domCache.get(this), n = F.innerParams.get(this);
|
|
4974
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);
|
|
4975
4976
|
const r = this.getInput();
|
|
4976
4977
|
r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", h["validation-message"]), Gi(r), q(r, h.inputerror));
|
|
4977
4978
|
}
|
|
4978
|
-
function
|
|
4979
|
+
function kd() {
|
|
4979
4980
|
const t = F.domCache.get(this);
|
|
4980
4981
|
t.validationMessage && Se(t.validationMessage);
|
|
4981
4982
|
const e = this.getInput();
|
|
4982
4983
|
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), ot(e, h.inputerror));
|
|
4983
4984
|
}
|
|
4984
|
-
function
|
|
4985
|
+
function Cd() {
|
|
4985
4986
|
return F.domCache.get(this).progressSteps;
|
|
4986
4987
|
}
|
|
4987
|
-
function
|
|
4988
|
+
function Id(t) {
|
|
4988
4989
|
const e = te(), n = F.innerParams.get(this);
|
|
4989
4990
|
if (!e || mt(e, n.hideClass.popup))
|
|
4990
4991
|
return Oe(
|
|
4991
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."
|
|
4992
4993
|
);
|
|
4993
|
-
const r =
|
|
4994
|
+
const r = Td(t), o = Object.assign({}, n, r);
|
|
4994
4995
|
Ji(this, o), F.innerParams.set(this, o), Object.defineProperties(this, {
|
|
4995
4996
|
params: {
|
|
4996
4997
|
value: Object.assign({}, this.params, t),
|
|
@@ -4999,7 +5000,7 @@ function Sd(t) {
|
|
|
4999
5000
|
}
|
|
5000
5001
|
});
|
|
5001
5002
|
}
|
|
5002
|
-
const
|
|
5003
|
+
const Td = (t) => {
|
|
5003
5004
|
const e = {};
|
|
5004
5005
|
return Object.keys(t).forEach((n) => {
|
|
5005
5006
|
ji(n) ? e[n] = t[n] : Oe(
|
|
@@ -5009,49 +5010,49 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
5009
5010
|
);
|
|
5010
5011
|
}), e;
|
|
5011
5012
|
};
|
|
5012
|
-
function
|
|
5013
|
+
function Ad() {
|
|
5013
5014
|
const t = F.domCache.get(this), e = F.innerParams.get(this);
|
|
5014
5015
|
if (!e) {
|
|
5015
|
-
|
|
5016
|
+
cs(this);
|
|
5016
5017
|
return;
|
|
5017
5018
|
}
|
|
5018
|
-
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);
|
|
5019
5020
|
}
|
|
5020
|
-
const
|
|
5021
|
-
|
|
5022
|
-
},
|
|
5021
|
+
const Pd = (t) => {
|
|
5022
|
+
cs(t), delete t.params, delete j.keydownHandler, delete j.keydownTarget, delete j.currentInstance;
|
|
5023
|
+
}, cs = (t) => {
|
|
5023
5024
|
t.isAwaitingPromise() ? (fr(F, t), F.awaitingPromise.set(t, !0)) : (fr(wn, t), fr(F, t));
|
|
5024
5025
|
}, fr = (t, e) => {
|
|
5025
5026
|
for (const n in t)
|
|
5026
5027
|
t[n].delete(e);
|
|
5027
|
-
},
|
|
5028
|
+
}, us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5028
5029
|
__proto__: null,
|
|
5029
|
-
_destroy:
|
|
5030
|
+
_destroy: Ad,
|
|
5030
5031
|
close: Dn,
|
|
5031
5032
|
closeModal: Dn,
|
|
5032
5033
|
closePopup: Dn,
|
|
5033
5034
|
closeToast: Dn,
|
|
5034
|
-
disableButtons:
|
|
5035
|
-
disableInput:
|
|
5035
|
+
disableButtons: vd,
|
|
5036
|
+
disableInput: _d,
|
|
5036
5037
|
disableLoading: ni,
|
|
5037
|
-
enableButtons:
|
|
5038
|
-
enableInput:
|
|
5039
|
-
getInput:
|
|
5040
|
-
getProgressSteps:
|
|
5038
|
+
enableButtons: bd,
|
|
5039
|
+
enableInput: wd,
|
|
5040
|
+
getInput: ed,
|
|
5041
|
+
getProgressSteps: Cd,
|
|
5041
5042
|
handleAwaitingPromise: An,
|
|
5042
5043
|
hideLoading: ni,
|
|
5043
|
-
isAwaitingPromise:
|
|
5044
|
-
rejectPromise:
|
|
5045
|
-
resetValidationMessage:
|
|
5046
|
-
showValidationMessage:
|
|
5047
|
-
update:
|
|
5048
|
-
}, 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) => {
|
|
5049
5050
|
const e = F.innerParams.get(t);
|
|
5050
5051
|
t.disableButtons(), e.input ? ds(t, "confirm") : Qr(t, !0);
|
|
5051
|
-
},
|
|
5052
|
+
}, xd = (t) => {
|
|
5052
5053
|
const e = F.innerParams.get(t);
|
|
5053
5054
|
t.disableButtons(), e.returnInputValueOnDeny ? ds(t, "deny") : Jr(t, !1);
|
|
5054
|
-
},
|
|
5055
|
+
}, Ld = (t, e) => {
|
|
5055
5056
|
t.disableButtons(), e(Kt.cancel);
|
|
5056
5057
|
}, ds = (t, e) => {
|
|
5057
5058
|
const n = F.innerParams.get(t);
|
|
@@ -5059,9 +5060,9 @@ const Id = (t) => {
|
|
|
5059
5060
|
return Lt(
|
|
5060
5061
|
`The "input" parameter is needed to be set when using returnInputValueOn${Fr(e)}`
|
|
5061
5062
|
);
|
|
5062
|
-
const r =
|
|
5063
|
-
n.inputValidator ?
|
|
5064
|
-
},
|
|
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) => {
|
|
5065
5066
|
const r = F.innerParams.get(t);
|
|
5066
5067
|
t.disableInput(), Promise.resolve().then(
|
|
5067
5068
|
() => Sn(r.inputValidator(e, r.validationMessage))
|
|
@@ -5086,28 +5087,28 @@ const Id = (t) => {
|
|
|
5086
5087
|
).then((o) => {
|
|
5087
5088
|
Be(Xn()) || o === !1 ? (t.hideLoading(), An(t)) : oi(t, typeof o > "u" ? e : o);
|
|
5088
5089
|
}).catch((o) => fs(t || void 0, o))) : oi(t, e);
|
|
5089
|
-
},
|
|
5090
|
-
F.innerParams.get(t).toast ?
|
|
5091
|
-
},
|
|
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) => {
|
|
5092
5093
|
e.popup.onclick = () => {
|
|
5093
5094
|
const r = F.innerParams.get(t);
|
|
5094
|
-
r && (
|
|
5095
|
+
r && (Dd(r) || r.timer || r.input) || n(Kt.close);
|
|
5095
5096
|
};
|
|
5096
|
-
},
|
|
5097
|
+
}, Dd = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
5097
5098
|
let Wn = !1;
|
|
5098
|
-
const
|
|
5099
|
+
const Rd = (t) => {
|
|
5099
5100
|
t.popup.onmousedown = () => {
|
|
5100
5101
|
t.container.onmouseup = function(e) {
|
|
5101
5102
|
t.container.onmouseup = void 0, e.target === t.container && (Wn = !0);
|
|
5102
5103
|
};
|
|
5103
5104
|
};
|
|
5104
|
-
},
|
|
5105
|
+
}, Bd = (t) => {
|
|
5105
5106
|
t.container.onmousedown = () => {
|
|
5106
5107
|
t.popup.onmouseup = function(e) {
|
|
5107
5108
|
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (Wn = !0);
|
|
5108
5109
|
};
|
|
5109
5110
|
};
|
|
5110
|
-
},
|
|
5111
|
+
}, Nd = (t, e, n) => {
|
|
5111
5112
|
e.container.onclick = (r) => {
|
|
5112
5113
|
const o = F.innerParams.get(t);
|
|
5113
5114
|
if (Wn) {
|
|
@@ -5116,18 +5117,18 @@ const $d = (t) => {
|
|
|
5116
5117
|
}
|
|
5117
5118
|
r.target === e.container && Yn(o.allowOutsideClick) && n(Kt.backdrop);
|
|
5118
5119
|
};
|
|
5119
|
-
},
|
|
5120
|
+
}, Ud = (t) => typeof t == "object" && t.jquery, ii = (t) => t instanceof Element || Ud(t), Hd = (t) => {
|
|
5120
5121
|
const e = {};
|
|
5121
5122
|
return typeof t[0] == "object" && !ii(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, r) => {
|
|
5122
5123
|
const o = t[r];
|
|
5123
5124
|
typeof o == "string" || ii(o) ? e[n] = o : o !== void 0 && Lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`);
|
|
5124
5125
|
}), e;
|
|
5125
5126
|
};
|
|
5126
|
-
function
|
|
5127
|
+
function jd(...t) {
|
|
5127
5128
|
const e = this;
|
|
5128
5129
|
return new e(...t);
|
|
5129
5130
|
}
|
|
5130
|
-
function
|
|
5131
|
+
function Fd(t) {
|
|
5131
5132
|
class e extends this {
|
|
5132
5133
|
_main(r, o) {
|
|
5133
5134
|
return super._main(r, Object.assign({}, t, o));
|
|
@@ -5135,29 +5136,29 @@ function Ud(t) {
|
|
|
5135
5136
|
}
|
|
5136
5137
|
return e;
|
|
5137
5138
|
}
|
|
5138
|
-
const
|
|
5139
|
+
const Vd = () => j.timeout && j.timeout.getTimerLeft(), ms = () => {
|
|
5139
5140
|
if (j.timeout)
|
|
5140
|
-
return
|
|
5141
|
+
return xc(), j.timeout.stop();
|
|
5141
5142
|
}, ps = () => {
|
|
5142
5143
|
if (j.timeout) {
|
|
5143
5144
|
const t = j.timeout.start();
|
|
5144
5145
|
return Yr(t), t;
|
|
5145
5146
|
}
|
|
5146
|
-
},
|
|
5147
|
+
}, Kd = () => {
|
|
5147
5148
|
const t = j.timeout;
|
|
5148
5149
|
return t && (t.running ? ms() : ps());
|
|
5149
|
-
},
|
|
5150
|
+
}, zd = (t) => {
|
|
5150
5151
|
if (j.timeout) {
|
|
5151
5152
|
const e = j.timeout.increase(t);
|
|
5152
5153
|
return Yr(e, !0), e;
|
|
5153
5154
|
}
|
|
5154
|
-
},
|
|
5155
|
+
}, Wd = () => j.timeout && j.timeout.isRunning();
|
|
5155
5156
|
let si = !1;
|
|
5156
5157
|
const Er = {};
|
|
5157
|
-
function
|
|
5158
|
-
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);
|
|
5159
5160
|
}
|
|
5160
|
-
const
|
|
5161
|
+
const qd = (t) => {
|
|
5161
5162
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
5162
5163
|
for (const n in Er) {
|
|
5163
5164
|
const r = e.getAttribute(n);
|
|
@@ -5166,15 +5167,15 @@ const zd = (t) => {
|
|
|
5166
5167
|
return;
|
|
5167
5168
|
}
|
|
5168
5169
|
}
|
|
5169
|
-
},
|
|
5170
|
+
}, Yd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5170
5171
|
__proto__: null,
|
|
5171
|
-
argsToParams:
|
|
5172
|
-
bindClickHandler:
|
|
5173
|
-
clickCancel:
|
|
5172
|
+
argsToParams: Hd,
|
|
5173
|
+
bindClickHandler: Gd,
|
|
5174
|
+
clickCancel: rd,
|
|
5174
5175
|
clickConfirm: rs,
|
|
5175
|
-
clickDeny:
|
|
5176
|
+
clickDeny: nd,
|
|
5176
5177
|
enableLoading: jt,
|
|
5177
|
-
fire:
|
|
5178
|
+
fire: jd,
|
|
5178
5179
|
getActions: In,
|
|
5179
5180
|
getCancelButton: At,
|
|
5180
5181
|
getCloseButton: zr,
|
|
@@ -5186,25 +5187,25 @@ const zd = (t) => {
|
|
|
5186
5187
|
getHtmlContainer: zn,
|
|
5187
5188
|
getIcon: Cn,
|
|
5188
5189
|
getImage: Ki,
|
|
5189
|
-
getInputLabel:
|
|
5190
|
+
getInputLabel: Ic,
|
|
5190
5191
|
getLoader: Vt,
|
|
5191
5192
|
getPopup: te,
|
|
5192
|
-
getTimerLeft:
|
|
5193
|
+
getTimerLeft: Vd,
|
|
5193
5194
|
getTimerProgressBar: Zn,
|
|
5194
5195
|
getTitle: Vi,
|
|
5195
5196
|
getValidationMessage: Xn,
|
|
5196
|
-
increaseTimer:
|
|
5197
|
+
increaseTimer: zd,
|
|
5197
5198
|
isDeprecatedParameter: Tr,
|
|
5198
|
-
isLoading:
|
|
5199
|
-
isTimerRunning:
|
|
5199
|
+
isLoading: Ac,
|
|
5200
|
+
isTimerRunning: Wd,
|
|
5200
5201
|
isUpdatableParameter: ji,
|
|
5201
5202
|
isValidParameter: Hi,
|
|
5202
|
-
isVisible:
|
|
5203
|
-
mixin:
|
|
5203
|
+
isVisible: td,
|
|
5204
|
+
mixin: Fd,
|
|
5204
5205
|
resumeTimer: ps,
|
|
5205
5206
|
showLoading: jt,
|
|
5206
5207
|
stopTimer: ms,
|
|
5207
|
-
toggleTimer:
|
|
5208
|
+
toggleTimer: Kd
|
|
5208
5209
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5209
5210
|
let xr;
|
|
5210
5211
|
class zt {
|
|
@@ -5225,11 +5226,11 @@ class zt {
|
|
|
5225
5226
|
F.promise.set(this, r);
|
|
5226
5227
|
}
|
|
5227
5228
|
_main(e, n = {}) {
|
|
5228
|
-
|
|
5229
|
-
const r =
|
|
5230
|
-
|
|
5231
|
-
const o =
|
|
5232
|
-
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);
|
|
5233
5234
|
}
|
|
5234
5235
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
5235
5236
|
then(e) {
|
|
@@ -5239,17 +5240,17 @@ class zt {
|
|
|
5239
5240
|
return F.promise.get(this).finally(e);
|
|
5240
5241
|
}
|
|
5241
5242
|
}
|
|
5242
|
-
const
|
|
5243
|
-
const i = (
|
|
5244
|
-
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 });
|
|
5245
5246
|
};
|
|
5246
|
-
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(() => {
|
|
5247
5248
|
e.container.scrollTop = 0;
|
|
5248
5249
|
});
|
|
5249
|
-
}),
|
|
5250
|
-
const n =
|
|
5250
|
+
}), Zd = (t, e) => {
|
|
5251
|
+
const n = vu(t), r = Object.assign({}, Ut, e, n, t);
|
|
5251
5252
|
return r.showClass = Object.assign({}, Ut.showClass, r.showClass), r.hideClass = Object.assign({}, Ut.hideClass, r.hideClass), r;
|
|
5252
|
-
},
|
|
5253
|
+
}, Jd = (t) => {
|
|
5253
5254
|
const e = {
|
|
5254
5255
|
popup: te(),
|
|
5255
5256
|
container: _e(),
|
|
@@ -5263,25 +5264,25 @@ const Gd = (t, e, n) => new Promise((r, o) => {
|
|
|
5263
5264
|
progressSteps: zi()
|
|
5264
5265
|
};
|
|
5265
5266
|
return F.domCache.set(t, e), e;
|
|
5266
|
-
},
|
|
5267
|
+
}, Qd = (t, e, n) => {
|
|
5267
5268
|
const r = Zn();
|
|
5268
|
-
Se(r), e.timer && (t.timeout = new
|
|
5269
|
+
Se(r), e.timer && (t.timeout = new xu(() => {
|
|
5269
5270
|
n("timer"), delete t.timeout;
|
|
5270
5271
|
}, e.timer), e.timerProgressBar && (me(r), je(r, e, "timerProgressBar"), setTimeout(() => {
|
|
5271
5272
|
t.timeout && t.timeout.running && Yr(e.timer);
|
|
5272
5273
|
})));
|
|
5273
|
-
},
|
|
5274
|
+
}, ef = (t, e) => {
|
|
5274
5275
|
if (!e.toast) {
|
|
5275
5276
|
if (!Yn(e.allowEnterKey))
|
|
5276
|
-
return
|
|
5277
|
-
|
|
5277
|
+
return nf();
|
|
5278
|
+
tf(t, e) || Pr(e, -1, 1);
|
|
5278
5279
|
}
|
|
5279
|
-
},
|
|
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 = () => {
|
|
5280
5281
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
5281
5282
|
};
|
|
5282
|
-
Object.assign(zt.prototype,
|
|
5283
|
-
Object.assign(zt,
|
|
5284
|
-
Object.keys(
|
|
5283
|
+
Object.assign(zt.prototype, us);
|
|
5284
|
+
Object.assign(zt, Yd);
|
|
5285
|
+
Object.keys(us).forEach((t) => {
|
|
5285
5286
|
zt[t] = function(...e) {
|
|
5286
5287
|
if (xr)
|
|
5287
5288
|
return xr[t](...e);
|
|
@@ -5295,9 +5296,9 @@ Et.default = Et;
|
|
|
5295
5296
|
const {
|
|
5296
5297
|
entries: hs,
|
|
5297
5298
|
setPrototypeOf: ai,
|
|
5298
|
-
isFrozen:
|
|
5299
|
-
getPrototypeOf:
|
|
5300
|
-
getOwnPropertyDescriptor:
|
|
5299
|
+
isFrozen: rf,
|
|
5300
|
+
getPrototypeOf: of,
|
|
5301
|
+
getOwnPropertyDescriptor: sf
|
|
5301
5302
|
} = Object;
|
|
5302
5303
|
let {
|
|
5303
5304
|
freeze: Ae,
|
|
@@ -5319,7 +5320,7 @@ Lr || (Lr = function(e, n, r) {
|
|
|
5319
5320
|
Or || (Or = function(e, n) {
|
|
5320
5321
|
return new e(...n);
|
|
5321
5322
|
});
|
|
5322
|
-
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);
|
|
5323
5324
|
function Ue(t) {
|
|
5324
5325
|
return function(e) {
|
|
5325
5326
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -5327,7 +5328,7 @@ function Ue(t) {
|
|
|
5327
5328
|
return Lr(t, e, r);
|
|
5328
5329
|
};
|
|
5329
5330
|
}
|
|
5330
|
-
function
|
|
5331
|
+
function cf(t) {
|
|
5331
5332
|
return function() {
|
|
5332
5333
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
5333
5334
|
n[r] = arguments[r];
|
|
@@ -5342,13 +5343,13 @@ function z(t, e) {
|
|
|
5342
5343
|
let o = e[r];
|
|
5343
5344
|
if (typeof o == "string") {
|
|
5344
5345
|
const i = n(o);
|
|
5345
|
-
i !== o && (
|
|
5346
|
+
i !== o && (rf(e) || (e[r] = i), o = i);
|
|
5346
5347
|
}
|
|
5347
5348
|
t[o] = !0;
|
|
5348
5349
|
}
|
|
5349
5350
|
return t;
|
|
5350
5351
|
}
|
|
5351
|
-
function
|
|
5352
|
+
function uf(t) {
|
|
5352
5353
|
for (let e = 0; e < t.length; e++)
|
|
5353
5354
|
Ge(t, e) || (t[e] = null);
|
|
5354
5355
|
return t;
|
|
@@ -5356,44 +5357,44 @@ function af(t) {
|
|
|
5356
5357
|
function kt(t) {
|
|
5357
5358
|
const e = gs(null);
|
|
5358
5359
|
for (const [n, r] of hs(t))
|
|
5359
|
-
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);
|
|
5360
5361
|
return e;
|
|
5361
5362
|
}
|
|
5362
5363
|
function tn(t, e) {
|
|
5363
5364
|
for (; t !== null; ) {
|
|
5364
|
-
const r =
|
|
5365
|
+
const r = sf(t, e);
|
|
5365
5366
|
if (r) {
|
|
5366
5367
|
if (r.get)
|
|
5367
5368
|
return Ue(r.get);
|
|
5368
5369
|
if (typeof r.value == "function")
|
|
5369
5370
|
return Ue(r.value);
|
|
5370
5371
|
}
|
|
5371
|
-
t =
|
|
5372
|
+
t = of(t);
|
|
5372
5373
|
}
|
|
5373
5374
|
function n() {
|
|
5374
5375
|
return null;
|
|
5375
5376
|
}
|
|
5376
5377
|
return n;
|
|
5377
5378
|
}
|
|
5378
|
-
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(
|
|
5379
5380
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
5380
5381
|
// eslint-disable-line no-useless-escape
|
|
5381
|
-
),
|
|
5382
|
+
), bf = Fe(/^(?:\w+script|data):/i), vf = Fe(
|
|
5382
5383
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
5383
5384
|
// eslint-disable-line no-control-regex
|
|
5384
|
-
), bs = Fe(/^html$/i),
|
|
5385
|
+
), bs = Fe(/^html$/i), wf = Fe(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
5385
5386
|
var pi = /* @__PURE__ */ Object.freeze({
|
|
5386
5387
|
__proto__: null,
|
|
5387
|
-
MUSTACHE_EXPR:
|
|
5388
|
-
ERB_EXPR:
|
|
5389
|
-
TMPLIT_EXPR:
|
|
5390
|
-
DATA_ATTR:
|
|
5391
|
-
ARIA_ATTR:
|
|
5388
|
+
MUSTACHE_EXPR: mf,
|
|
5389
|
+
ERB_EXPR: pf,
|
|
5390
|
+
TMPLIT_EXPR: hf,
|
|
5391
|
+
DATA_ATTR: gf,
|
|
5392
|
+
ARIA_ATTR: yf,
|
|
5392
5393
|
IS_ALLOWED_URI: ys,
|
|
5393
|
-
IS_SCRIPT_OR_DATA:
|
|
5394
|
-
ATTR_WHITESPACE:
|
|
5394
|
+
IS_SCRIPT_OR_DATA: bf,
|
|
5395
|
+
ATTR_WHITESPACE: vf,
|
|
5395
5396
|
DOCTYPE_NAME: bs,
|
|
5396
|
-
CUSTOM_ELEMENT:
|
|
5397
|
+
CUSTOM_ELEMENT: wf
|
|
5397
5398
|
});
|
|
5398
5399
|
const nn = {
|
|
5399
5400
|
element: 1,
|
|
@@ -5411,9 +5412,9 @@ const nn = {
|
|
|
5411
5412
|
documentFragment: 11,
|
|
5412
5413
|
notation: 12
|
|
5413
5414
|
// Deprecated
|
|
5414
|
-
},
|
|
5415
|
+
}, _f = function() {
|
|
5415
5416
|
return typeof window > "u" ? null : window;
|
|
5416
|
-
},
|
|
5417
|
+
}, Sf = function(e, n) {
|
|
5417
5418
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
5418
5419
|
return null;
|
|
5419
5420
|
let r = null;
|
|
@@ -5422,11 +5423,11 @@ const nn = {
|
|
|
5422
5423
|
const i = "dompurify" + (r ? "#" + r : "");
|
|
5423
5424
|
try {
|
|
5424
5425
|
return e.createPolicy(i, {
|
|
5425
|
-
createHTML(
|
|
5426
|
-
return
|
|
5426
|
+
createHTML(l) {
|
|
5427
|
+
return l;
|
|
5427
5428
|
},
|
|
5428
|
-
createScriptURL(
|
|
5429
|
-
return
|
|
5429
|
+
createScriptURL(l) {
|
|
5430
|
+
return l;
|
|
5430
5431
|
}
|
|
5431
5432
|
});
|
|
5432
5433
|
} catch {
|
|
@@ -5434,7 +5435,7 @@ const nn = {
|
|
|
5434
5435
|
}
|
|
5435
5436
|
};
|
|
5436
5437
|
function vs() {
|
|
5437
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
5438
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _f();
|
|
5438
5439
|
const e = (D) => vs(D);
|
|
5439
5440
|
if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== nn.document)
|
|
5440
5441
|
return e.isSupported = !1, e;
|
|
@@ -5443,16 +5444,16 @@ function vs() {
|
|
|
5443
5444
|
} = t;
|
|
5444
5445
|
const r = n, o = r.currentScript, {
|
|
5445
5446
|
DocumentFragment: i,
|
|
5446
|
-
HTMLTemplateElement:
|
|
5447
|
+
HTMLTemplateElement: l,
|
|
5447
5448
|
Node: s,
|
|
5448
|
-
Element:
|
|
5449
|
-
NodeFilter:
|
|
5449
|
+
Element: a,
|
|
5450
|
+
NodeFilter: u,
|
|
5450
5451
|
NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
5451
5452
|
HTMLFormElement: m,
|
|
5452
5453
|
DOMParser: g,
|
|
5453
5454
|
trustedTypes: w
|
|
5454
|
-
} = t, k =
|
|
5455
|
-
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") {
|
|
5456
5457
|
const D = n.createElement("template");
|
|
5457
5458
|
D.content && D.content.ownerDocument && (n = D.content.ownerDocument);
|
|
5458
5459
|
}
|
|
@@ -5479,8 +5480,8 @@ function vs() {
|
|
|
5479
5480
|
} = pi;
|
|
5480
5481
|
let {
|
|
5481
5482
|
IS_ALLOWED_URI: He
|
|
5482
|
-
} = pi,
|
|
5483
|
-
const p = z({}, [...
|
|
5483
|
+
} = pi, c = null;
|
|
5484
|
+
const p = z({}, [...ui, ...pr, ...hr, ...gr, ...di]);
|
|
5484
5485
|
let b = null;
|
|
5485
5486
|
const T = z({}, [...fi, ...yr, ...mi, ...Bn]);
|
|
5486
5487
|
let y = Object.seal(gs(null, {
|
|
@@ -5514,45 +5515,45 @@ function vs() {
|
|
|
5514
5515
|
const Os = z({}, [xn, Ln, at], mr);
|
|
5515
5516
|
let Gt = null;
|
|
5516
5517
|
const $s = ["application/xhtml+xml", "text/html"], Ms = "text/html";
|
|
5517
|
-
let
|
|
5518
|
+
let ce = null, Rt = null;
|
|
5518
5519
|
const Ds = n.createElement("form"), ao = function(f) {
|
|
5519
5520
|
return f instanceof RegExp || f instanceof Function;
|
|
5520
5521
|
}, or = function() {
|
|
5521
5522
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5522
5523
|
if (!(Rt && Rt === f)) {
|
|
5523
5524
|
if ((!f || typeof f != "object") && (f = {}), f = kt(f), Gt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5524
|
-
$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(
|
|
5525
5526
|
kt(so),
|
|
5526
5527
|
// eslint-disable-line indent
|
|
5527
5528
|
f.ADD_URI_SAFE_ATTR,
|
|
5528
5529
|
// eslint-disable-line indent
|
|
5529
|
-
|
|
5530
|
+
ce
|
|
5530
5531
|
// eslint-disable-line indent
|
|
5531
5532
|
) : so, oo = Ge(f, "ADD_DATA_URI_TAGS") ? z(
|
|
5532
5533
|
kt(io),
|
|
5533
5534
|
// eslint-disable-line indent
|
|
5534
5535
|
f.ADD_DATA_URI_TAGS,
|
|
5535
5536
|
// eslint-disable-line indent
|
|
5536
|
-
|
|
5537
|
+
ce
|
|
5537
5538
|
// eslint-disable-line indent
|
|
5538
|
-
) : 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) {
|
|
5539
5540
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5540
5541
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5541
5542
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
5542
5543
|
throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5543
5544
|
U = f.TRUSTED_TYPES_POLICY, Y = U.createHTML("");
|
|
5544
5545
|
} else
|
|
5545
|
-
U === void 0 && (U =
|
|
5546
|
+
U === void 0 && (U = Sf(w, o)), U !== null && typeof Y == "string" && (Y = U.createHTML(""));
|
|
5546
5547
|
Ae && Ae(f), Rt = f;
|
|
5547
5548
|
}
|
|
5548
|
-
}, 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) {
|
|
5549
5550
|
let I = R(f);
|
|
5550
5551
|
(!I || !I.tagName) && (I = {
|
|
5551
5552
|
namespaceURI: Dt,
|
|
5552
5553
|
tagName: "template"
|
|
5553
5554
|
});
|
|
5554
5555
|
const O = Un(f.tagName), ne = Un(I.tagName);
|
|
5555
|
-
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;
|
|
5556
5557
|
}, et = function(f) {
|
|
5557
5558
|
Jt(e.removed, {
|
|
5558
5559
|
element: f
|
|
@@ -5590,7 +5591,7 @@ function vs() {
|
|
|
5590
5591
|
if (st)
|
|
5591
5592
|
f = "<remove></remove>" + f;
|
|
5592
5593
|
else {
|
|
5593
|
-
const de =
|
|
5594
|
+
const de = ci(f, /^[\r\n\t ]+/);
|
|
5594
5595
|
O = de && de[0];
|
|
5595
5596
|
}
|
|
5596
5597
|
Gt === "application/xhtml+xml" && Dt === at && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
@@ -5614,7 +5615,7 @@ function vs() {
|
|
|
5614
5615
|
f.ownerDocument || f,
|
|
5615
5616
|
f,
|
|
5616
5617
|
// eslint-disable-next-line no-bitwise
|
|
5617
|
-
|
|
5618
|
+
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
5618
5619
|
null
|
|
5619
5620
|
);
|
|
5620
5621
|
}, ho = function(f) {
|
|
@@ -5629,13 +5630,13 @@ function vs() {
|
|
|
5629
5630
|
let I = null;
|
|
5630
5631
|
if (lt("beforeSanitizeElements", f, null), ho(f))
|
|
5631
5632
|
return et(f), !0;
|
|
5632
|
-
const O =
|
|
5633
|
+
const O = ce(f.nodeName);
|
|
5633
5634
|
if (lt("uponSanitizeElement", f, {
|
|
5634
5635
|
tagName: O,
|
|
5635
|
-
allowedTags:
|
|
5636
|
+
allowedTags: c
|
|
5636
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))
|
|
5637
5638
|
return et(f), !0;
|
|
5638
|
-
if (!
|
|
5639
|
+
if (!c[O] || P[O]) {
|
|
5639
5640
|
if (!P[O] && vo(O) && (y.tagNameCheck instanceof RegExp && Ce(y.tagNameCheck, O) || y.tagNameCheck instanceof Function && y.tagNameCheck(O)))
|
|
5640
5641
|
return !1;
|
|
5641
5642
|
if (er && !Mt[O]) {
|
|
@@ -5650,7 +5651,7 @@ function vs() {
|
|
|
5650
5651
|
}
|
|
5651
5652
|
return et(f), !0;
|
|
5652
5653
|
}
|
|
5653
|
-
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) => {
|
|
5654
5655
|
I = Qt(I, ne, " ");
|
|
5655
5656
|
}), f.textContent !== I && (Jt(e.removed, {
|
|
5656
5657
|
element: f.cloneNode()
|
|
@@ -5671,7 +5672,7 @@ function vs() {
|
|
|
5671
5672
|
) return !1;
|
|
5672
5673
|
} else if (!tr[I]) {
|
|
5673
5674
|
if (!Ce(He, Qt(O, Qe, ""))) {
|
|
5674
|
-
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])) {
|
|
5675
5676
|
if (!(x && !Ce(Je, Qt(O, Qe, "")))) {
|
|
5676
5677
|
if (O)
|
|
5677
5678
|
return !1;
|
|
@@ -5683,7 +5684,7 @@ function vs() {
|
|
|
5683
5684
|
}
|
|
5684
5685
|
return !0;
|
|
5685
5686
|
}, vo = function(f) {
|
|
5686
|
-
return f !== "annotation-xml" &&
|
|
5687
|
+
return f !== "annotation-xml" && ci(f, _t);
|
|
5687
5688
|
}, wo = function(f) {
|
|
5688
5689
|
lt("beforeSanitizeAttributes", f, null);
|
|
5689
5690
|
const {
|
|
@@ -5703,8 +5704,8 @@ function vs() {
|
|
|
5703
5704
|
name: de,
|
|
5704
5705
|
namespaceURI: Ee,
|
|
5705
5706
|
value: tt
|
|
5706
|
-
} = ve, qt =
|
|
5707
|
-
let ke = de === "value" ? tt :
|
|
5707
|
+
} = ve, qt = ce(de);
|
|
5708
|
+
let ke = de === "value" ? tt : lf(tt);
|
|
5708
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)) {
|
|
5709
5710
|
On(de, f);
|
|
5710
5711
|
continue;
|
|
@@ -5718,7 +5719,7 @@ function vs() {
|
|
|
5718
5719
|
V && Rn([J, he, ge], (So) => {
|
|
5719
5720
|
ke = Qt(ke, So, " ");
|
|
5720
5721
|
});
|
|
5721
|
-
const _o =
|
|
5722
|
+
const _o = ce(f.nodeName);
|
|
5722
5723
|
if (bo(_o, qt, ke)) {
|
|
5723
5724
|
if (no && (qt === "id" || qt === "name") && (On(de, f), ke = Ls + ke), U && typeof w == "object" && typeof w.getAttributeType == "function" && !Ee)
|
|
5724
5725
|
switch (w.getAttributeType(_o, qt)) {
|
|
@@ -5757,8 +5758,8 @@ function vs() {
|
|
|
5757
5758
|
return D;
|
|
5758
5759
|
if (be || or(f), e.removed = [], typeof D == "string" && (Wt = !1), Wt) {
|
|
5759
5760
|
if (D.nodeName) {
|
|
5760
|
-
const tt =
|
|
5761
|
-
if (!
|
|
5761
|
+
const tt = ce(D.nodeName);
|
|
5762
|
+
if (!c[tt] || P[tt])
|
|
5762
5763
|
throw en("root node is forbidden and cannot be sanitized in-place");
|
|
5763
5764
|
}
|
|
5764
5765
|
} else if (D instanceof s)
|
|
@@ -5785,7 +5786,7 @@ function vs() {
|
|
|
5785
5786
|
return (b.shadowroot || b.shadowrootmode) && (ve = X.call(r, ve, !0)), ve;
|
|
5786
5787
|
}
|
|
5787
5788
|
let Ee = ye ? I.outerHTML : I.innerHTML;
|
|
5788
|
-
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 + `>
|
|
5789
5790
|
` + Ee), V && Rn([J, he, ge], (tt) => {
|
|
5790
5791
|
Ee = Qt(Ee, tt, " ");
|
|
5791
5792
|
}), U && En ? U.createHTML(Ee) : Ee;
|
|
@@ -5796,7 +5797,7 @@ function vs() {
|
|
|
5796
5797
|
Rt = null, be = !1;
|
|
5797
5798
|
}, e.isValidAttribute = function(D, f, I) {
|
|
5798
5799
|
Rt || or({});
|
|
5799
|
-
const O =
|
|
5800
|
+
const O = ce(D), ne = ce(f);
|
|
5800
5801
|
return bo(O, ne, I);
|
|
5801
5802
|
}, e.addHook = function(D, f) {
|
|
5802
5803
|
typeof f == "function" && (B[D] = B[D] || [], Jt(B[D], f));
|
|
@@ -5836,12 +5837,12 @@ class _s {
|
|
|
5836
5837
|
});
|
|
5837
5838
|
}
|
|
5838
5839
|
}
|
|
5839
|
-
const
|
|
5840
|
-
function
|
|
5840
|
+
const kf = () => new _s(), Tm = () => new _s();
|
|
5841
|
+
function Cf(t) {
|
|
5841
5842
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
5842
5843
|
}
|
|
5843
5844
|
function Ss(t, ...e) {
|
|
5844
|
-
if (!
|
|
5845
|
+
if (!Cf(t))
|
|
5845
5846
|
throw new Error("Uint8Array expected");
|
|
5846
5847
|
if (e.length > 0 && !e.includes(t.length))
|
|
5847
5848
|
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
@@ -5852,7 +5853,7 @@ function hi(t, e = !0) {
|
|
|
5852
5853
|
if (e && t.finished)
|
|
5853
5854
|
throw new Error("Hash#digest() has already been called");
|
|
5854
5855
|
}
|
|
5855
|
-
function
|
|
5856
|
+
function If(t, e) {
|
|
5856
5857
|
Ss(t);
|
|
5857
5858
|
const n = e.outputLen;
|
|
5858
5859
|
if (t.length < n)
|
|
@@ -5861,32 +5862,32 @@ function Sf(t, e) {
|
|
|
5861
5862
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5862
5863
|
const br = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), nt = (t, e) => t << 32 - e | t >>> e;
|
|
5863
5864
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
5864
|
-
function
|
|
5865
|
+
function Tf(t) {
|
|
5865
5866
|
if (typeof t != "string")
|
|
5866
5867
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
5867
5868
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
5868
5869
|
}
|
|
5869
5870
|
function ks(t) {
|
|
5870
|
-
return typeof t == "string" && (t =
|
|
5871
|
+
return typeof t == "string" && (t = Tf(t)), Ss(t), t;
|
|
5871
5872
|
}
|
|
5872
|
-
class
|
|
5873
|
+
class Af {
|
|
5873
5874
|
// Safe version that clones internal state
|
|
5874
5875
|
clone() {
|
|
5875
5876
|
return this._cloneInto();
|
|
5876
5877
|
}
|
|
5877
5878
|
}
|
|
5878
|
-
function
|
|
5879
|
+
function Pf(t) {
|
|
5879
5880
|
const e = (r) => t().update(ks(r)).digest(), n = t();
|
|
5880
5881
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
5881
5882
|
}
|
|
5882
|
-
function
|
|
5883
|
+
function Ef(t, e, n, r) {
|
|
5883
5884
|
if (typeof t.setBigUint64 == "function")
|
|
5884
5885
|
return t.setBigUint64(e, n, r);
|
|
5885
|
-
const o = BigInt(32), i = BigInt(4294967295),
|
|
5886
|
-
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);
|
|
5887
5888
|
}
|
|
5888
|
-
const
|
|
5889
|
-
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 {
|
|
5890
5891
|
constructor(e, n, r, o) {
|
|
5891
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);
|
|
5892
5893
|
}
|
|
@@ -5895,33 +5896,33 @@ class Ef extends Cf {
|
|
|
5895
5896
|
const { view: n, buffer: r, blockLen: o } = this;
|
|
5896
5897
|
e = ks(e);
|
|
5897
5898
|
const i = e.length;
|
|
5898
|
-
for (let
|
|
5899
|
-
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);
|
|
5900
5901
|
if (s === o) {
|
|
5901
|
-
const
|
|
5902
|
-
for (; o <= i -
|
|
5903
|
-
this.process(
|
|
5902
|
+
const a = br(e);
|
|
5903
|
+
for (; o <= i - l; l += o)
|
|
5904
|
+
this.process(a, l);
|
|
5904
5905
|
continue;
|
|
5905
5906
|
}
|
|
5906
|
-
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);
|
|
5907
5908
|
}
|
|
5908
5909
|
return this.length += e.length, this.roundClean(), this;
|
|
5909
5910
|
}
|
|
5910
5911
|
digestInto(e) {
|
|
5911
|
-
hi(this),
|
|
5912
|
+
hi(this), If(e, this), this.finished = !0;
|
|
5912
5913
|
const { buffer: n, view: r, blockLen: o, isLE: i } = this;
|
|
5913
|
-
let { pos:
|
|
5914
|
-
n[
|
|
5915
|
-
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++)
|
|
5916
5917
|
n[m] = 0;
|
|
5917
|
-
|
|
5918
|
-
const s = br(e),
|
|
5919
|
-
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)
|
|
5920
5921
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
5921
|
-
const
|
|
5922
|
-
if (
|
|
5922
|
+
const u = a / 4, d = this.get();
|
|
5923
|
+
if (u > d.length)
|
|
5923
5924
|
throw new Error("_sha2: outputLen bigger than state");
|
|
5924
|
-
for (let m = 0; m <
|
|
5925
|
+
for (let m = 0; m < u; m++)
|
|
5925
5926
|
s.setUint32(4 * m, d[m], i);
|
|
5926
5927
|
}
|
|
5927
5928
|
digest() {
|
|
@@ -5932,11 +5933,11 @@ class Ef extends Cf {
|
|
|
5932
5933
|
}
|
|
5933
5934
|
_cloneInto(e) {
|
|
5934
5935
|
e || (e = new this.constructor()), e.set(...this.get());
|
|
5935
|
-
const { blockLen: n, buffer: r, length: o, finished: i, destroyed:
|
|
5936
|
-
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;
|
|
5937
5938
|
}
|
|
5938
5939
|
}
|
|
5939
|
-
const
|
|
5940
|
+
const $f = /* @__PURE__ */ new Uint32Array([
|
|
5940
5941
|
1116352408,
|
|
5941
5942
|
1899447441,
|
|
5942
5943
|
3049323471,
|
|
@@ -6011,17 +6012,17 @@ const xf = /* @__PURE__ */ new Uint32Array([
|
|
|
6011
6012
|
528734635,
|
|
6012
6013
|
1541459225
|
|
6013
6014
|
]), ht = /* @__PURE__ */ new Uint32Array(64);
|
|
6014
|
-
class
|
|
6015
|
+
class Mf extends Of {
|
|
6015
6016
|
constructor() {
|
|
6016
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;
|
|
6017
6018
|
}
|
|
6018
6019
|
get() {
|
|
6019
|
-
const { A: e, B: n, C: r, D: o, E: i, F:
|
|
6020
|
-
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];
|
|
6021
6022
|
}
|
|
6022
6023
|
// prettier-ignore
|
|
6023
|
-
set(e, n, r, o, i,
|
|
6024
|
-
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;
|
|
6025
6026
|
}
|
|
6026
6027
|
process(e, n) {
|
|
6027
6028
|
for (let m = 0; m < 16; m++, n += 4)
|
|
@@ -6030,12 +6031,12 @@ class Lf extends Ef {
|
|
|
6030
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;
|
|
6031
6032
|
ht[m] = A + ht[m - 7] + k + ht[m - 16] | 0;
|
|
6032
6033
|
}
|
|
6033
|
-
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;
|
|
6034
6035
|
for (let m = 0; m < 64; m++) {
|
|
6035
|
-
const g = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), w = d + g +
|
|
6036
|
-
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;
|
|
6037
6038
|
}
|
|
6038
|
-
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);
|
|
6039
6040
|
}
|
|
6040
6041
|
roundClean() {
|
|
6041
6042
|
ht.fill(0);
|
|
@@ -6044,17 +6045,17 @@ class Lf extends Ef {
|
|
|
6044
6045
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
6045
6046
|
}
|
|
6046
6047
|
}
|
|
6047
|
-
const
|
|
6048
|
+
const Df = /* @__PURE__ */ Pf(() => new Mf());
|
|
6048
6049
|
class an extends Error {
|
|
6049
6050
|
}
|
|
6050
6051
|
an.prototype.name = "InvalidTokenError";
|
|
6051
|
-
function
|
|
6052
|
+
function Rf(t) {
|
|
6052
6053
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
6053
6054
|
let r = n.charCodeAt(0).toString(16).toUpperCase();
|
|
6054
6055
|
return r.length < 2 && (r = "0" + r), "%" + r;
|
|
6055
6056
|
}));
|
|
6056
6057
|
}
|
|
6057
|
-
function
|
|
6058
|
+
function Bf(t) {
|
|
6058
6059
|
let e = t.replace(/-/g, "+").replace(/_/g, "/");
|
|
6059
6060
|
switch (e.length % 4) {
|
|
6060
6061
|
case 0:
|
|
@@ -6069,7 +6070,7 @@ function Mf(t) {
|
|
|
6069
6070
|
throw new Error("base64 string is not of the correct length");
|
|
6070
6071
|
}
|
|
6071
6072
|
try {
|
|
6072
|
-
return
|
|
6073
|
+
return Rf(e);
|
|
6073
6074
|
} catch {
|
|
6074
6075
|
return atob(e);
|
|
6075
6076
|
}
|
|
@@ -6083,7 +6084,7 @@ function vr(t, e) {
|
|
|
6083
6084
|
throw new an(`Invalid token specified: missing part #${n + 1}`);
|
|
6084
6085
|
let o;
|
|
6085
6086
|
try {
|
|
6086
|
-
o =
|
|
6087
|
+
o = Bf(r);
|
|
6087
6088
|
} catch (i) {
|
|
6088
6089
|
throw new an(`Invalid token specified: invalid base64 for part #${n + 1} (${i.message})`);
|
|
6089
6090
|
}
|
|
@@ -6108,24 +6109,24 @@ function Cs(t) {
|
|
|
6108
6109
|
interval: 5
|
|
6109
6110
|
};
|
|
6110
6111
|
e.didInitialize = !1;
|
|
6111
|
-
for (var
|
|
6112
|
-
(
|
|
6113
|
-
var
|
|
6114
|
-
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) {
|
|
6115
6116
|
if (e.didInitialize)
|
|
6116
6117
|
throw new Error(
|
|
6117
6118
|
"A 'Keycloak' instance can only be initialized once."
|
|
6118
6119
|
);
|
|
6119
6120
|
e.didInitialize = !0, e.authenticated = !1, o = _t();
|
|
6120
6121
|
var p = ["default", "cordova", "cordova-native"];
|
|
6121
|
-
if (
|
|
6122
|
-
if (typeof
|
|
6123
|
-
if (
|
|
6124
|
-
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;
|
|
6125
6126
|
else
|
|
6126
6127
|
throw "Invalid value for responseMode";
|
|
6127
|
-
if (
|
|
6128
|
-
switch (
|
|
6128
|
+
if (c.flow) {
|
|
6129
|
+
switch (c.flow) {
|
|
6129
6130
|
case "standard":
|
|
6130
6131
|
e.responseType = "code";
|
|
6131
6132
|
break;
|
|
@@ -6138,17 +6139,17 @@ function Cs(t) {
|
|
|
6138
6139
|
default:
|
|
6139
6140
|
throw "Invalid value for flow";
|
|
6140
6141
|
}
|
|
6141
|
-
e.flow =
|
|
6142
|
+
e.flow = c.flow;
|
|
6142
6143
|
}
|
|
6143
|
-
if (
|
|
6144
|
-
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)
|
|
6145
6146
|
throw new TypeError(
|
|
6146
|
-
`Invalid value for pkceMethod', expected 'S256' or false but got ${
|
|
6147
|
+
`Invalid value for pkceMethod', expected 'S256' or false but got ${c.pkceMethod}.`
|
|
6147
6148
|
);
|
|
6148
|
-
e.pkceMethod =
|
|
6149
|
+
e.pkceMethod = c.pkceMethod;
|
|
6149
6150
|
} else
|
|
6150
6151
|
e.pkceMethod = "S256";
|
|
6151
|
-
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;
|
|
6152
6153
|
}
|
|
6153
6154
|
e.responseMode || (e.responseMode = "fragment"), e.responseType || (e.responseType = "code", e.flow = "standard");
|
|
6154
6155
|
var b = X(), T = X();
|
|
@@ -6160,7 +6161,7 @@ function Cs(t) {
|
|
|
6160
6161
|
var y = R();
|
|
6161
6162
|
function P() {
|
|
6162
6163
|
var L = function(V) {
|
|
6163
|
-
V || (N.prompt = "none"),
|
|
6164
|
+
V || (N.prompt = "none"), c && c.locale && (N.locale = c.locale), e.login(N).then(function() {
|
|
6164
6165
|
T.setSuccess();
|
|
6165
6166
|
}).catch(function(Pe) {
|
|
6166
6167
|
T.setError(Pe);
|
|
@@ -6182,7 +6183,7 @@ function Cs(t) {
|
|
|
6182
6183
|
};
|
|
6183
6184
|
window.addEventListener("message", ye);
|
|
6184
6185
|
}, N = {};
|
|
6185
|
-
switch (
|
|
6186
|
+
switch (c.onLoad) {
|
|
6186
6187
|
case "check-sso":
|
|
6187
6188
|
i.enable ? J().then(function() {
|
|
6188
6189
|
ge().then(function(V) {
|
|
@@ -6211,10 +6212,10 @@ function Cs(t) {
|
|
|
6211
6212
|
}).catch(function(x) {
|
|
6212
6213
|
T.setError(x);
|
|
6213
6214
|
});
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6215
|
+
c ? c.token && c.refreshToken ? (Y(
|
|
6216
|
+
c.token,
|
|
6217
|
+
c.refreshToken,
|
|
6218
|
+
c.idToken
|
|
6218
6219
|
), i.enable ? J().then(function() {
|
|
6219
6220
|
ge().then(function(x) {
|
|
6220
6221
|
x ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), he()) : T.setSuccess();
|
|
@@ -6224,8 +6225,8 @@ function Cs(t) {
|
|
|
6224
6225
|
}) : e.updateToken(-1).then(function() {
|
|
6225
6226
|
e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
|
|
6226
6227
|
}).catch(function(x) {
|
|
6227
|
-
e.onAuthError && e.onAuthError(),
|
|
6228
|
-
})) :
|
|
6228
|
+
e.onAuthError && e.onAuthError(), c.onLoad ? P() : T.setError(x);
|
|
6229
|
+
})) : c.onLoad ? P() : T.setSuccess() : T.setSuccess();
|
|
6229
6230
|
}
|
|
6230
6231
|
function C() {
|
|
6231
6232
|
var L = X(), x = function() {
|
|
@@ -6243,63 +6244,63 @@ function Cs(t) {
|
|
|
6243
6244
|
}), y.catch(function(L) {
|
|
6244
6245
|
b.setError(L);
|
|
6245
6246
|
}), b.promise;
|
|
6246
|
-
}, e.login = function(
|
|
6247
|
-
return n.login(
|
|
6247
|
+
}, e.login = function(c) {
|
|
6248
|
+
return n.login(c);
|
|
6248
6249
|
};
|
|
6249
|
-
function m(
|
|
6250
|
+
function m(c) {
|
|
6250
6251
|
var p = null, b = window.crypto || window.msCrypto;
|
|
6251
6252
|
if (b && b.getRandomValues && window.Uint8Array)
|
|
6252
|
-
return p = new Uint8Array(
|
|
6253
|
-
p = new Array(
|
|
6253
|
+
return p = new Uint8Array(c), b.getRandomValues(p), p;
|
|
6254
|
+
p = new Array(c);
|
|
6254
6255
|
for (var T = 0; T < p.length; T++)
|
|
6255
6256
|
p[T] = Math.floor(256 * Math.random());
|
|
6256
6257
|
return p;
|
|
6257
6258
|
}
|
|
6258
|
-
function g(
|
|
6259
|
+
function g(c) {
|
|
6259
6260
|
return w(
|
|
6260
|
-
|
|
6261
|
+
c,
|
|
6261
6262
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
6262
6263
|
);
|
|
6263
6264
|
}
|
|
6264
|
-
function w(
|
|
6265
|
-
for (var b = m(
|
|
6265
|
+
function w(c, p) {
|
|
6266
|
+
for (var b = m(c), T = new Array(c), y = 0; y < c; y++)
|
|
6266
6267
|
T[y] = p.charCodeAt(b[y] % p.length);
|
|
6267
6268
|
return String.fromCharCode.apply(null, T);
|
|
6268
6269
|
}
|
|
6269
|
-
function k(
|
|
6270
|
-
if (
|
|
6270
|
+
function k(c, p) {
|
|
6271
|
+
if (c !== "S256")
|
|
6271
6272
|
throw new TypeError(
|
|
6272
|
-
`Invalid value for 'pkceMethod', expected 'S256' but got '${
|
|
6273
|
+
`Invalid value for 'pkceMethod', expected 'S256' but got '${c}'.`
|
|
6273
6274
|
);
|
|
6274
|
-
const b =
|
|
6275
|
-
return
|
|
6275
|
+
const b = Df(p);
|
|
6276
|
+
return Nf(b).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
6276
6277
|
}
|
|
6277
|
-
function A(
|
|
6278
|
+
function A(c) {
|
|
6278
6279
|
var p = {
|
|
6279
6280
|
id_token: {
|
|
6280
|
-
acr:
|
|
6281
|
+
acr: c
|
|
6281
6282
|
}
|
|
6282
6283
|
};
|
|
6283
6284
|
return JSON.stringify(p);
|
|
6284
6285
|
}
|
|
6285
|
-
e.createLoginUrl = function(
|
|
6286
|
-
var p = pe(), b = pe(), T = n.redirectUri(
|
|
6286
|
+
e.createLoginUrl = function(c) {
|
|
6287
|
+
var p = pe(), b = pe(), T = n.redirectUri(c), y = {
|
|
6287
6288
|
state: p,
|
|
6288
6289
|
nonce: b,
|
|
6289
6290
|
redirectUri: encodeURIComponent(T),
|
|
6290
|
-
loginOptions:
|
|
6291
|
+
loginOptions: c
|
|
6291
6292
|
};
|
|
6292
|
-
|
|
6293
|
+
c && c.prompt && (y.prompt = c.prompt);
|
|
6293
6294
|
var P;
|
|
6294
|
-
|
|
6295
|
-
var _ =
|
|
6295
|
+
c && c.action == "register" ? P = e.endpoints.register() : P = e.endpoints.authorize();
|
|
6296
|
+
var _ = c && c.scope || e.scope;
|
|
6296
6297
|
_ ? _.indexOf("openid") === -1 && (_ = "openid " + _) : _ = "openid";
|
|
6297
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(_);
|
|
6298
|
-
if (
|
|
6299
|
-
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);
|
|
6300
6301
|
C += "&claims=" + encodeURIComponent(L);
|
|
6301
6302
|
}
|
|
6302
|
-
if ((
|
|
6303
|
+
if ((c && c.acrValues || e.acrValues) && (C += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6303
6304
|
var x = g(96);
|
|
6304
6305
|
y.pkceCodeVerifier = x;
|
|
6305
6306
|
var N = k(
|
|
@@ -6309,66 +6310,66 @@ function Cs(t) {
|
|
|
6309
6310
|
C += "&code_challenge=" + N, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6310
6311
|
}
|
|
6311
6312
|
return o.add(y), C;
|
|
6312
|
-
}, e.logout = function(
|
|
6313
|
-
return n.logout(
|
|
6314
|
-
}, e.createLogoutUrl = function(
|
|
6315
|
-
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")
|
|
6316
6317
|
return e.endpoints.logout();
|
|
6317
|
-
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));
|
|
6318
6319
|
return e.idToken && (b += "&id_token_hint=" + encodeURIComponent(e.idToken)), b;
|
|
6319
|
-
}, e.register = function(
|
|
6320
|
-
return n.register(
|
|
6321
|
-
}, e.createRegisterUrl = function(
|
|
6322
|
-
return
|
|
6323
|
-
}, 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) {
|
|
6324
6325
|
var p = E(), b = void 0;
|
|
6325
|
-
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;
|
|
6326
6327
|
}, e.accountManagement = function() {
|
|
6327
6328
|
return n.accountManagement();
|
|
6328
|
-
}, e.hasRealmRole = function(
|
|
6329
|
+
}, e.hasRealmRole = function(c) {
|
|
6329
6330
|
var p = e.realmAccess;
|
|
6330
|
-
return !!p && p.roles.indexOf(
|
|
6331
|
-
}, e.hasResourceRole = function(
|
|
6331
|
+
return !!p && p.roles.indexOf(c) >= 0;
|
|
6332
|
+
}, e.hasResourceRole = function(c, p) {
|
|
6332
6333
|
if (!e.resourceAccess)
|
|
6333
6334
|
return !1;
|
|
6334
6335
|
var b = e.resourceAccess[p || e.clientId];
|
|
6335
|
-
return !!b && b.roles.indexOf(
|
|
6336
|
+
return !!b && b.roles.indexOf(c) >= 0;
|
|
6336
6337
|
}, e.loadUserProfile = function() {
|
|
6337
|
-
var
|
|
6338
|
-
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);
|
|
6339
6340
|
var b = X();
|
|
6340
6341
|
return p.onreadystatechange = function() {
|
|
6341
6342
|
p.readyState == 4 && (p.status == 200 ? (e.profile = JSON.parse(p.responseText), b.setSuccess(e.profile)) : b.setError());
|
|
6342
6343
|
}, p.send(), b.promise;
|
|
6343
6344
|
}, e.loadUserInfo = function() {
|
|
6344
|
-
var
|
|
6345
|
-
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);
|
|
6346
6347
|
var b = X();
|
|
6347
6348
|
return p.onreadystatechange = function() {
|
|
6348
6349
|
p.readyState == 4 && (p.status == 200 ? (e.userInfo = JSON.parse(p.responseText), b.setSuccess(e.userInfo)) : b.setError());
|
|
6349
6350
|
}, p.send(), b.promise;
|
|
6350
|
-
}, e.isTokenExpired = function(
|
|
6351
|
+
}, e.isTokenExpired = function(c) {
|
|
6351
6352
|
if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
|
|
6352
6353
|
throw "Not authenticated";
|
|
6353
6354
|
if (e.timeSkew == null)
|
|
6354
|
-
return
|
|
6355
|
+
return u(
|
|
6355
6356
|
"[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"
|
|
6356
6357
|
), !0;
|
|
6357
6358
|
var p = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
|
|
6358
|
-
if (
|
|
6359
|
-
if (isNaN(
|
|
6359
|
+
if (c) {
|
|
6360
|
+
if (isNaN(c))
|
|
6360
6361
|
throw "Invalid minValidity";
|
|
6361
|
-
p -=
|
|
6362
|
+
p -= c;
|
|
6362
6363
|
}
|
|
6363
6364
|
return p < 0;
|
|
6364
|
-
}, e.updateToken = function(
|
|
6365
|
+
}, e.updateToken = function(c) {
|
|
6365
6366
|
var p = X();
|
|
6366
6367
|
if (!e.refreshToken)
|
|
6367
6368
|
return p.setError(), p.promise;
|
|
6368
|
-
|
|
6369
|
+
c = c || 5;
|
|
6369
6370
|
var b = function() {
|
|
6370
6371
|
var y = !1;
|
|
6371
|
-
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)
|
|
6372
6373
|
p.setSuccess(!1);
|
|
6373
6374
|
else {
|
|
6374
6375
|
var P = "grant_type=refresh_token&refresh_token=" + e.refreshToken, _ = e.endpoints.token();
|
|
@@ -6382,7 +6383,7 @@ function Cs(t) {
|
|
|
6382
6383
|
C.onreadystatechange = function() {
|
|
6383
6384
|
if (C.readyState == 4)
|
|
6384
6385
|
if (C.status == 200) {
|
|
6385
|
-
|
|
6386
|
+
u("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
6386
6387
|
var x = JSON.parse(C.responseText);
|
|
6387
6388
|
Y(
|
|
6388
6389
|
x.access_token,
|
|
@@ -6421,32 +6422,32 @@ function Cs(t) {
|
|
|
6421
6422
|
function v() {
|
|
6422
6423
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
6423
6424
|
}
|
|
6424
|
-
function S(
|
|
6425
|
-
var b =
|
|
6426
|
-
if (
|
|
6427
|
-
|
|
6428
|
-
|
|
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
|
|
6429
6430
|
), T) {
|
|
6430
6431
|
if (y != "none")
|
|
6431
|
-
if (
|
|
6432
|
-
e.login(
|
|
6432
|
+
if (c.error_description && c.error_description === "authentication_expired")
|
|
6433
|
+
e.login(c.loginOptions);
|
|
6433
6434
|
else {
|
|
6434
6435
|
var _ = {
|
|
6435
6436
|
error: T,
|
|
6436
|
-
error_description:
|
|
6437
|
+
error_description: c.error_description
|
|
6437
6438
|
};
|
|
6438
6439
|
e.onAuthError && e.onAuthError(_), p && p.setError(_);
|
|
6439
6440
|
}
|
|
6440
6441
|
else
|
|
6441
6442
|
p && p.setSuccess();
|
|
6442
6443
|
return;
|
|
6443
|
-
} else e.flow != "standard" && (
|
|
6444
|
+
} else e.flow != "standard" && (c.access_token || c.id_token) && N(c.access_token, null, c.id_token, !0);
|
|
6444
6445
|
if (e.flow != "implicit" && b) {
|
|
6445
6446
|
var C = "code=" + b + "&grant_type=authorization_code", L = e.endpoints.token(), x = new XMLHttpRequest();
|
|
6446
6447
|
x.open("POST", L, !0), x.setRequestHeader(
|
|
6447
6448
|
"Content-type",
|
|
6448
6449
|
"application/x-www-form-urlencoded"
|
|
6449
|
-
), 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() {
|
|
6450
6451
|
if (x.readyState == 4)
|
|
6451
6452
|
if (x.status == 200) {
|
|
6452
6453
|
var V = JSON.parse(x.responseText);
|
|
@@ -6461,10 +6462,10 @@ function Cs(t) {
|
|
|
6461
6462
|
}, x.send(C);
|
|
6462
6463
|
}
|
|
6463
6464
|
function N(V, Pe, ye, be) {
|
|
6464
|
-
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());
|
|
6465
6466
|
}
|
|
6466
6467
|
}
|
|
6467
|
-
function R(
|
|
6468
|
+
function R(c) {
|
|
6468
6469
|
var p = X(), b;
|
|
6469
6470
|
t ? typeof t == "string" && (b = t) : b = "keycloak.json";
|
|
6470
6471
|
function T(x) {
|
|
@@ -6567,16 +6568,16 @@ function Cs(t) {
|
|
|
6567
6568
|
}
|
|
6568
6569
|
return p.promise;
|
|
6569
6570
|
}
|
|
6570
|
-
function U(
|
|
6571
|
-
return
|
|
6571
|
+
function U(c) {
|
|
6572
|
+
return c.status == 0 && c.responseText && c.responseURL.startsWith("file:");
|
|
6572
6573
|
}
|
|
6573
|
-
function Y(
|
|
6574
|
-
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),
|
|
6575
|
-
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(
|
|
6576
6577
|
"[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"
|
|
6577
6578
|
), e.onTokenExpired)) {
|
|
6578
6579
|
var y = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
6579
|
-
|
|
6580
|
+
u(
|
|
6580
6581
|
"[KEYCLOAK] Token expires in " + Math.round(y / 1e3) + " s"
|
|
6581
6582
|
), y <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(
|
|
6582
6583
|
e.onTokenExpired,
|
|
@@ -6587,19 +6588,19 @@ function Cs(t) {
|
|
|
6587
6588
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
6588
6589
|
}
|
|
6589
6590
|
function pe() {
|
|
6590
|
-
var
|
|
6591
|
-
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] = "-";
|
|
6592
6593
|
var b = p.join("");
|
|
6593
6594
|
return b;
|
|
6594
6595
|
}
|
|
6595
|
-
function ae(
|
|
6596
|
-
var p = $e(
|
|
6596
|
+
function ae(c) {
|
|
6597
|
+
var p = $e(c);
|
|
6597
6598
|
if (p) {
|
|
6598
6599
|
var b = o.get(p.state);
|
|
6599
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;
|
|
6600
6601
|
}
|
|
6601
6602
|
}
|
|
6602
|
-
function $e(
|
|
6603
|
+
function $e(c) {
|
|
6603
6604
|
var p;
|
|
6604
6605
|
switch (e.flow) {
|
|
6605
6606
|
case "standard":
|
|
@@ -6641,15 +6642,15 @@ function Cs(t) {
|
|
|
6641
6642
|
break;
|
|
6642
6643
|
}
|
|
6643
6644
|
p.push("error"), p.push("error_description"), p.push("error_uri");
|
|
6644
|
-
var b =
|
|
6645
|
-
if (e.responseMode === "query" && b !== -1 ? (y =
|
|
6646
|
-
|
|
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(
|
|
6647
6648
|
b + 1,
|
|
6648
|
-
T !== -1 ? T :
|
|
6649
|
+
T !== -1 ? T : c.length
|
|
6649
6650
|
),
|
|
6650
6651
|
p
|
|
6651
|
-
), P.paramsString !== "" && (y += "?" + P.paramsString), T !== -1 && (y +=
|
|
6652
|
-
|
|
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),
|
|
6653
6654
|
p
|
|
6654
6655
|
), P.paramsString !== "" && (y += "#" + P.paramsString)), P && P.oauthParams) {
|
|
6655
6656
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
@@ -6659,8 +6660,8 @@ function Cs(t) {
|
|
|
6659
6660
|
return P.oauthParams.newUrl = y, P.oauthParams;
|
|
6660
6661
|
}
|
|
6661
6662
|
}
|
|
6662
|
-
function le(
|
|
6663
|
-
for (var b =
|
|
6663
|
+
function le(c, p) {
|
|
6664
|
+
for (var b = c.split("&"), T = {
|
|
6664
6665
|
paramsString: "",
|
|
6665
6666
|
oauthParams: {}
|
|
6666
6667
|
}, y = 0; y < b.length; y++) {
|
|
@@ -6670,19 +6671,19 @@ function Cs(t) {
|
|
|
6670
6671
|
return T;
|
|
6671
6672
|
}
|
|
6672
6673
|
function X() {
|
|
6673
|
-
var
|
|
6674
|
+
var c = {
|
|
6674
6675
|
setSuccess: function(p) {
|
|
6675
|
-
|
|
6676
|
+
c.resolve(p);
|
|
6676
6677
|
},
|
|
6677
6678
|
setError: function(p) {
|
|
6678
|
-
|
|
6679
|
+
c.reject(p);
|
|
6679
6680
|
}
|
|
6680
6681
|
};
|
|
6681
|
-
return
|
|
6682
|
-
|
|
6683
|
-
}),
|
|
6682
|
+
return c.promise = new Promise(function(p, b) {
|
|
6683
|
+
c.resolve = p, c.reject = b;
|
|
6684
|
+
}), c;
|
|
6684
6685
|
}
|
|
6685
|
-
function B(
|
|
6686
|
+
function B(c, p, b) {
|
|
6686
6687
|
var T = null, y = new Promise(function(P, _) {
|
|
6687
6688
|
T = setTimeout(function() {
|
|
6688
6689
|
_({
|
|
@@ -6690,23 +6691,23 @@ function Cs(t) {
|
|
|
6690
6691
|
});
|
|
6691
6692
|
}, p);
|
|
6692
6693
|
});
|
|
6693
|
-
return Promise.race([
|
|
6694
|
+
return Promise.race([c, y]).finally(
|
|
6694
6695
|
function() {
|
|
6695
6696
|
clearTimeout(T);
|
|
6696
6697
|
}
|
|
6697
6698
|
);
|
|
6698
6699
|
}
|
|
6699
6700
|
function J() {
|
|
6700
|
-
var
|
|
6701
|
+
var c = X();
|
|
6701
6702
|
if (!i.enable || i.iframe)
|
|
6702
|
-
return
|
|
6703
|
+
return c.setSuccess(), c.promise;
|
|
6703
6704
|
var p = document.createElement("iframe");
|
|
6704
6705
|
i.iframe = p, p.onload = function() {
|
|
6705
6706
|
var y = e.endpoints.authorize();
|
|
6706
6707
|
y.charAt(0) === "/" ? i.iframeOrigin = v() : i.iframeOrigin = y.substring(
|
|
6707
6708
|
0,
|
|
6708
6709
|
y.indexOf("/", 8)
|
|
6709
|
-
),
|
|
6710
|
+
), c.setSuccess();
|
|
6710
6711
|
};
|
|
6711
6712
|
var b = e.endpoints.checkSessionIframe();
|
|
6712
6713
|
p.setAttribute("src", b), p.setAttribute(
|
|
@@ -6725,28 +6726,28 @@ function Cs(t) {
|
|
|
6725
6726
|
}
|
|
6726
6727
|
}
|
|
6727
6728
|
};
|
|
6728
|
-
return window.addEventListener("message", T, !1),
|
|
6729
|
+
return window.addEventListener("message", T, !1), c.promise;
|
|
6729
6730
|
}
|
|
6730
6731
|
function he() {
|
|
6731
6732
|
i.enable && e.token && setTimeout(function() {
|
|
6732
|
-
ge().then(function(
|
|
6733
|
-
|
|
6733
|
+
ge().then(function(c) {
|
|
6734
|
+
c && he();
|
|
6734
6735
|
});
|
|
6735
6736
|
}, i.interval * 1e3);
|
|
6736
6737
|
}
|
|
6737
6738
|
function ge() {
|
|
6738
|
-
var
|
|
6739
|
+
var c = X();
|
|
6739
6740
|
if (i.iframe && i.iframeOrigin) {
|
|
6740
6741
|
var p = e.clientId + " " + (e.sessionId ? e.sessionId : "");
|
|
6741
|
-
i.callbackList.push(
|
|
6742
|
+
i.callbackList.push(c);
|
|
6742
6743
|
var b = i.iframeOrigin;
|
|
6743
6744
|
i.callbackList.length == 1 && i.iframe.contentWindow.postMessage(p, b);
|
|
6744
6745
|
} else
|
|
6745
|
-
|
|
6746
|
-
return
|
|
6746
|
+
c.setSuccess();
|
|
6747
|
+
return c.promise;
|
|
6747
6748
|
}
|
|
6748
6749
|
function Ze() {
|
|
6749
|
-
var
|
|
6750
|
+
var c = X();
|
|
6750
6751
|
if (i.enable || e.silentCheckSsoRedirectUri) {
|
|
6751
6752
|
var p = document.createElement("iframe");
|
|
6752
6753
|
p.setAttribute(
|
|
@@ -6764,19 +6765,19 @@ function Cs(t) {
|
|
|
6764
6765
|
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
6765
6766
|
|
|
6766
6767
|
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`
|
|
6767
|
-
), 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()));
|
|
6768
6769
|
};
|
|
6769
6770
|
window.addEventListener("message", b, !1);
|
|
6770
6771
|
} else
|
|
6771
|
-
|
|
6772
|
+
c.setSuccess();
|
|
6772
6773
|
return B(
|
|
6773
|
-
|
|
6774
|
+
c.promise,
|
|
6774
6775
|
e.messageReceiveTimeout,
|
|
6775
6776
|
"Timeout when waiting for 3rd party check iframe message."
|
|
6776
6777
|
);
|
|
6777
6778
|
}
|
|
6778
|
-
function it(
|
|
6779
|
-
if (!
|
|
6779
|
+
function it(c) {
|
|
6780
|
+
if (!c || c == "default")
|
|
6780
6781
|
return {
|
|
6781
6782
|
login: function(_) {
|
|
6782
6783
|
return window.location.assign(e.createLoginUrl(_)), X().promise;
|
|
@@ -6827,7 +6828,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6827
6828
|
return _ && _.redirectUri ? _.redirectUri : e.redirectUri ? e.redirectUri : location.href;
|
|
6828
6829
|
}
|
|
6829
6830
|
};
|
|
6830
|
-
if (
|
|
6831
|
+
if (c == "cordova") {
|
|
6831
6832
|
i.enable = !1;
|
|
6832
6833
|
var p = function(_, C, L) {
|
|
6833
6834
|
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
|
|
@@ -6928,7 +6929,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6928
6929
|
}
|
|
6929
6930
|
};
|
|
6930
6931
|
}
|
|
6931
|
-
if (
|
|
6932
|
+
if (c == "cordova-native")
|
|
6932
6933
|
return i.enable = !1, {
|
|
6933
6934
|
login: function(_) {
|
|
6934
6935
|
var C = X(), L = e.createLoginUrl(_);
|
|
@@ -6963,13 +6964,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6963
6964
|
return _ && _.redirectUri ? _.redirectUri : e.redirectUri ? e.redirectUri : "http://localhost";
|
|
6964
6965
|
}
|
|
6965
6966
|
};
|
|
6966
|
-
throw "invalid adapter type: " +
|
|
6967
|
+
throw "invalid adapter type: " + c;
|
|
6967
6968
|
}
|
|
6968
6969
|
var Je = function() {
|
|
6969
6970
|
if (!(this instanceof Je))
|
|
6970
6971
|
return new Je();
|
|
6971
6972
|
localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
|
|
6972
|
-
var
|
|
6973
|
+
var c = this;
|
|
6973
6974
|
function p() {
|
|
6974
6975
|
for (var b = (/* @__PURE__ */ new Date()).getTime(), T = 0; T < localStorage.length; T++) {
|
|
6975
6976
|
var y = localStorage.key(T);
|
|
@@ -6985,12 +6986,12 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6985
6986
|
}
|
|
6986
6987
|
}
|
|
6987
6988
|
}
|
|
6988
|
-
|
|
6989
|
+
c.get = function(b) {
|
|
6989
6990
|
if (b) {
|
|
6990
6991
|
var T = "kc-callback-" + b, y = localStorage.getItem(T);
|
|
6991
6992
|
return y && (localStorage.removeItem(T), y = JSON.parse(y)), p(), y;
|
|
6992
6993
|
}
|
|
6993
|
-
},
|
|
6994
|
+
}, c.add = function(b) {
|
|
6994
6995
|
p();
|
|
6995
6996
|
var T = "kc-callback-" + b.state;
|
|
6996
6997
|
b.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(T, JSON.stringify(b));
|
|
@@ -6998,20 +6999,20 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6998
6999
|
}, Qe = function() {
|
|
6999
7000
|
if (!(this instanceof Qe))
|
|
7000
7001
|
return new Qe();
|
|
7001
|
-
var
|
|
7002
|
-
|
|
7002
|
+
var c = this;
|
|
7003
|
+
c.get = function(y) {
|
|
7003
7004
|
if (y) {
|
|
7004
7005
|
var P = b("kc-callback-" + y);
|
|
7005
7006
|
if (T("kc-callback-" + y, "", p(-100)), P)
|
|
7006
7007
|
return JSON.parse(P);
|
|
7007
7008
|
}
|
|
7008
|
-
},
|
|
7009
|
+
}, c.add = function(y) {
|
|
7009
7010
|
T(
|
|
7010
7011
|
"kc-callback-" + y.state,
|
|
7011
7012
|
JSON.stringify(y),
|
|
7012
7013
|
p(60)
|
|
7013
7014
|
);
|
|
7014
|
-
},
|
|
7015
|
+
}, c.removeItem = function(y) {
|
|
7015
7016
|
T(y, "", p(-100));
|
|
7016
7017
|
};
|
|
7017
7018
|
var p = function(y) {
|
|
@@ -7037,17 +7038,17 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
7037
7038
|
}
|
|
7038
7039
|
return new Qe();
|
|
7039
7040
|
}
|
|
7040
|
-
function He(
|
|
7041
|
+
function He(c) {
|
|
7041
7042
|
return function() {
|
|
7042
|
-
e.enableLogging &&
|
|
7043
|
+
e.enableLogging && c.apply(console, Array.prototype.slice.call(arguments));
|
|
7043
7044
|
};
|
|
7044
7045
|
}
|
|
7045
7046
|
}
|
|
7046
|
-
function
|
|
7047
|
+
function Nf(t) {
|
|
7047
7048
|
const e = String.fromCodePoint(...t);
|
|
7048
7049
|
return btoa(e);
|
|
7049
7050
|
}
|
|
7050
|
-
class
|
|
7051
|
+
class Uf {
|
|
7051
7052
|
constructor(e) {
|
|
7052
7053
|
ze(this, "oidc");
|
|
7053
7054
|
ze(this, "isAuthenticated", !1);
|
|
@@ -7076,52 +7077,52 @@ class Rf {
|
|
|
7076
7077
|
}
|
|
7077
7078
|
}
|
|
7078
7079
|
let Is;
|
|
7079
|
-
function
|
|
7080
|
-
Is = new
|
|
7080
|
+
function Am(t) {
|
|
7081
|
+
Is = new Uf(t);
|
|
7081
7082
|
}
|
|
7082
7083
|
const gi = () => Is;
|
|
7083
|
-
function
|
|
7084
|
+
function Hf(t) {
|
|
7084
7085
|
return zs() ? (Ws(t), !0) : !1;
|
|
7085
7086
|
}
|
|
7086
|
-
const
|
|
7087
|
+
const jf = typeof window < "u" && typeof document < "u";
|
|
7087
7088
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7088
|
-
function
|
|
7089
|
+
function Ff(t) {
|
|
7089
7090
|
return Dr();
|
|
7090
7091
|
}
|
|
7091
|
-
function
|
|
7092
|
+
function Vf(t) {
|
|
7092
7093
|
return Array.isArray(t) ? t : [t];
|
|
7093
7094
|
}
|
|
7094
|
-
function
|
|
7095
|
-
|
|
7095
|
+
function Kf(t, e = !0, n) {
|
|
7096
|
+
Ff() ? xt(t, n) : e ? t() : wi(t);
|
|
7096
7097
|
}
|
|
7097
|
-
const Ts =
|
|
7098
|
+
const Ts = jf ? window : void 0;
|
|
7098
7099
|
function Nt(t) {
|
|
7099
7100
|
var e;
|
|
7100
7101
|
const n = Si(t);
|
|
7101
7102
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
7102
7103
|
}
|
|
7103
|
-
function
|
|
7104
|
+
function zf() {
|
|
7104
7105
|
const t = ie(!1), e = Dr();
|
|
7105
7106
|
return e && xt(() => {
|
|
7106
7107
|
t.value = !0;
|
|
7107
7108
|
}, e), t;
|
|
7108
7109
|
}
|
|
7109
|
-
function
|
|
7110
|
-
const e =
|
|
7110
|
+
function Wf(t) {
|
|
7111
|
+
const e = zf();
|
|
7111
7112
|
return Ie(() => (e.value, !!t()));
|
|
7112
7113
|
}
|
|
7113
|
-
function
|
|
7114
|
+
function Gf(t, e, n = {}) {
|
|
7114
7115
|
const { window: r = Ts, ...o } = n;
|
|
7115
7116
|
let i;
|
|
7116
|
-
const
|
|
7117
|
+
const l = Wf(() => r && "ResizeObserver" in r), s = () => {
|
|
7117
7118
|
i && (i.disconnect(), i = void 0);
|
|
7118
|
-
},
|
|
7119
|
+
}, a = Ie(() => {
|
|
7119
7120
|
const m = Si(t);
|
|
7120
7121
|
return Array.isArray(m) ? m.map((g) => Nt(g)) : [Nt(m)];
|
|
7121
|
-
}),
|
|
7122
|
-
|
|
7122
|
+
}), u = dn(
|
|
7123
|
+
a,
|
|
7123
7124
|
(m) => {
|
|
7124
|
-
if (s(),
|
|
7125
|
+
if (s(), l.value && r) {
|
|
7125
7126
|
i = new ResizeObserver(e);
|
|
7126
7127
|
for (const g of m)
|
|
7127
7128
|
g && i.observe(g, o);
|
|
@@ -7129,18 +7130,18 @@ function Kf(t, e, n = {}) {
|
|
|
7129
7130
|
},
|
|
7130
7131
|
{ immediate: !0, flush: "post" }
|
|
7131
7132
|
), d = () => {
|
|
7132
|
-
s(),
|
|
7133
|
+
s(), u();
|
|
7133
7134
|
};
|
|
7134
|
-
return
|
|
7135
|
-
isSupported:
|
|
7135
|
+
return Hf(d), {
|
|
7136
|
+
isSupported: l,
|
|
7136
7137
|
stop: d
|
|
7137
7138
|
};
|
|
7138
7139
|
}
|
|
7139
|
-
function
|
|
7140
|
+
function qf(t, e = { width: 0, height: 0 }, n = {}) {
|
|
7140
7141
|
const { window: r = Ts, box: o = "content-box" } = n, i = Ie(() => {
|
|
7141
7142
|
var m, g;
|
|
7142
7143
|
return (g = (m = Nt(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
7143
|
-
}),
|
|
7144
|
+
}), l = ie(e.width), s = ie(e.height), { stop: a } = Gf(
|
|
7144
7145
|
t,
|
|
7145
7146
|
([m]) => {
|
|
7146
7147
|
const g = o === "border-box" ? m.borderBoxSize : o === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
|
|
@@ -7148,44 +7149,44 @@ function zf(t, e = { width: 0, height: 0 }, n = {}) {
|
|
|
7148
7149
|
const w = Nt(t);
|
|
7149
7150
|
if (w) {
|
|
7150
7151
|
const k = w.getBoundingClientRect();
|
|
7151
|
-
|
|
7152
|
+
l.value = k.width, s.value = k.height;
|
|
7152
7153
|
}
|
|
7153
7154
|
} else if (g) {
|
|
7154
|
-
const w =
|
|
7155
|
-
|
|
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);
|
|
7156
7157
|
} else
|
|
7157
|
-
|
|
7158
|
+
l.value = m.contentRect.width, s.value = m.contentRect.height;
|
|
7158
7159
|
},
|
|
7159
7160
|
n
|
|
7160
7161
|
);
|
|
7161
|
-
|
|
7162
|
+
Kf(() => {
|
|
7162
7163
|
const m = Nt(t);
|
|
7163
|
-
m && (
|
|
7164
|
+
m && (l.value = "offsetWidth" in m ? m.offsetWidth : e.width, s.value = "offsetHeight" in m ? m.offsetHeight : e.height);
|
|
7164
7165
|
});
|
|
7165
|
-
const
|
|
7166
|
+
const u = dn(
|
|
7166
7167
|
() => Nt(t),
|
|
7167
7168
|
(m) => {
|
|
7168
|
-
|
|
7169
|
+
l.value = m ? e.width : 0, s.value = m ? e.height : 0;
|
|
7169
7170
|
}
|
|
7170
7171
|
);
|
|
7171
7172
|
function d() {
|
|
7172
|
-
|
|
7173
|
+
a(), u();
|
|
7173
7174
|
}
|
|
7174
7175
|
return {
|
|
7175
|
-
width:
|
|
7176
|
+
width: l,
|
|
7176
7177
|
height: s,
|
|
7177
7178
|
stop: d
|
|
7178
7179
|
};
|
|
7179
7180
|
}
|
|
7180
|
-
var
|
|
7181
|
-
function
|
|
7181
|
+
var Yf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7182
|
+
function Xf(t) {
|
|
7182
7183
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7183
7184
|
}
|
|
7184
7185
|
var As = { exports: {} };
|
|
7185
7186
|
(function(t) {
|
|
7186
7187
|
(function(e, n) {
|
|
7187
7188
|
t.exports ? t.exports = n() : e.log = n();
|
|
7188
|
-
})(
|
|
7189
|
+
})(Yf, function() {
|
|
7189
7190
|
var e = function() {
|
|
7190
7191
|
}, n = "undefined", r = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), o = [
|
|
7191
7192
|
"trace",
|
|
@@ -7193,7 +7194,7 @@ var As = { exports: {} };
|
|
|
7193
7194
|
"info",
|
|
7194
7195
|
"warn",
|
|
7195
7196
|
"error"
|
|
7196
|
-
], i = {},
|
|
7197
|
+
], i = {}, l = null;
|
|
7197
7198
|
function s(A, E) {
|
|
7198
7199
|
var v = A[E];
|
|
7199
7200
|
if (typeof v.bind == "function")
|
|
@@ -7206,11 +7207,11 @@ var As = { exports: {} };
|
|
|
7206
7207
|
};
|
|
7207
7208
|
}
|
|
7208
7209
|
}
|
|
7209
|
-
function
|
|
7210
|
+
function a() {
|
|
7210
7211
|
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
7211
7212
|
}
|
|
7212
|
-
function
|
|
7213
|
-
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;
|
|
7214
7215
|
}
|
|
7215
7216
|
function d() {
|
|
7216
7217
|
for (var A = this.getLevel(), E = 0; E < o.length; E++) {
|
|
@@ -7226,7 +7227,7 @@ var As = { exports: {} };
|
|
|
7226
7227
|
};
|
|
7227
7228
|
}
|
|
7228
7229
|
function g(A, E, v) {
|
|
7229
|
-
return
|
|
7230
|
+
return u(A) || m.apply(this, arguments);
|
|
7230
7231
|
}
|
|
7231
7232
|
function w(A, E) {
|
|
7232
7233
|
var v = this, S, R, U, Y = "loglevel";
|
|
@@ -7301,34 +7302,34 @@ var As = { exports: {} };
|
|
|
7301
7302
|
}, v.disableAll = function(B) {
|
|
7302
7303
|
v.setLevel(v.levels.SILENT, B);
|
|
7303
7304
|
}, v.rebuild = function() {
|
|
7304
|
-
if (
|
|
7305
|
+
if (l !== v && (S = le(l.getLevel())), d.call(v), l === v)
|
|
7305
7306
|
for (var B in i)
|
|
7306
7307
|
i[B].rebuild();
|
|
7307
7308
|
}, S = le(
|
|
7308
|
-
|
|
7309
|
+
l ? l.getLevel() : "WARN"
|
|
7309
7310
|
);
|
|
7310
7311
|
var X = ae();
|
|
7311
7312
|
X != null && (U = le(X)), d.call(v);
|
|
7312
7313
|
}
|
|
7313
|
-
|
|
7314
|
+
l = new w(), l.getLogger = function(E) {
|
|
7314
7315
|
if (typeof E != "symbol" && typeof E != "string" || E === "")
|
|
7315
7316
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
7316
7317
|
var v = i[E];
|
|
7317
7318
|
return v || (v = i[E] = new w(
|
|
7318
7319
|
E,
|
|
7319
|
-
|
|
7320
|
+
l.methodFactory
|
|
7320
7321
|
)), v;
|
|
7321
7322
|
};
|
|
7322
7323
|
var k = typeof window !== n ? window.log : void 0;
|
|
7323
|
-
return
|
|
7324
|
-
return typeof window !== n && window.log ===
|
|
7325
|
-
},
|
|
7324
|
+
return l.noConflict = function() {
|
|
7325
|
+
return typeof window !== n && window.log === l && (window.log = k), l;
|
|
7326
|
+
}, l.getLoggers = function() {
|
|
7326
7327
|
return i;
|
|
7327
|
-
},
|
|
7328
|
+
}, l.default = l, l;
|
|
7328
7329
|
});
|
|
7329
7330
|
})(As);
|
|
7330
|
-
var
|
|
7331
|
-
const Hn = /* @__PURE__ */
|
|
7331
|
+
var Zf = As.exports;
|
|
7332
|
+
const Hn = /* @__PURE__ */ Xf(Zf), Pm = {
|
|
7332
7333
|
install(t, e) {
|
|
7333
7334
|
const n = e ?? {};
|
|
7334
7335
|
Hn.setDefaultLevel(
|
|
@@ -7339,7 +7340,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7339
7340
|
"--nav-menu-width",
|
|
7340
7341
|
`${r}px`
|
|
7341
7342
|
);
|
|
7342
|
-
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);
|
|
7343
7344
|
t.provide(Ni, {
|
|
7344
7345
|
navMenuWidth: r,
|
|
7345
7346
|
isMenuOpened: o,
|
|
@@ -7353,14 +7354,14 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7353
7354
|
o.value = !1;
|
|
7354
7355
|
},
|
|
7355
7356
|
scrollY: i,
|
|
7356
|
-
pageTitle:
|
|
7357
|
-
isDarkMode:
|
|
7357
|
+
pageTitle: a,
|
|
7358
|
+
isDarkMode: l,
|
|
7358
7359
|
ToggleTheme: () => Zt.Toggle(),
|
|
7359
7360
|
EnableDarkMode: () => Zt.EnableDarkMode(),
|
|
7360
7361
|
EnableLightMode: () => Zt.EnableLightMode(),
|
|
7361
7362
|
ClearStoredTheme: () => Zt.ClearStoredTheme(),
|
|
7362
7363
|
LogoutAsync: async () => {
|
|
7363
|
-
const g =
|
|
7364
|
+
const g = kf(), { oidc: w } = gi();
|
|
7364
7365
|
await g.ConfirmAsync(
|
|
7365
7366
|
"Deseja realmente sair da sua conta?"
|
|
7366
7367
|
) && (s.value = !0, await new Promise((A) => setTimeout(A, 1e3)), w.logout({ redirectUri: window.location.origin }));
|
|
@@ -7370,7 +7371,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7370
7371
|
g.login();
|
|
7371
7372
|
},
|
|
7372
7373
|
isLoggingOut: s,
|
|
7373
|
-
mainRef:
|
|
7374
|
+
mainRef: u,
|
|
7374
7375
|
mainWidth: d,
|
|
7375
7376
|
isMainXs: Ie(() => d.value <= 384),
|
|
7376
7377
|
isMainSm: Ie(() => d.value > 384),
|
|
@@ -7380,7 +7381,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7380
7381
|
isMain2Xl: Ie(() => d.value > 1536),
|
|
7381
7382
|
isMain3Xl: Ie(() => d.value > 1920)
|
|
7382
7383
|
}), new MutationObserver(() => {
|
|
7383
|
-
|
|
7384
|
+
l.value = document.documentElement.classList.contains("dark");
|
|
7384
7385
|
}).observe(document.documentElement, {
|
|
7385
7386
|
attributes: !0,
|
|
7386
7387
|
attributeFilter: ["class"]
|
|
@@ -7388,7 +7389,7 @@ const Hn = /* @__PURE__ */ Gf(qf), Im = {
|
|
|
7388
7389
|
i.value = document.documentElement.scrollTop;
|
|
7389
7390
|
}), Zt.SetInitialTheme();
|
|
7390
7391
|
}
|
|
7391
|
-
},
|
|
7392
|
+
}, Em = Hn;
|
|
7392
7393
|
class Ps extends Error {
|
|
7393
7394
|
constructor(n = []) {
|
|
7394
7395
|
const r = Array.isArray(n) ? n : [n];
|
|
@@ -7397,7 +7398,7 @@ class Ps extends Error {
|
|
|
7397
7398
|
this.errors = r;
|
|
7398
7399
|
}
|
|
7399
7400
|
}
|
|
7400
|
-
class
|
|
7401
|
+
class Jf {
|
|
7401
7402
|
constructor(e = null) {
|
|
7402
7403
|
ze(this, "errors", []);
|
|
7403
7404
|
ze(this, "_value", null);
|
|
@@ -7481,29 +7482,29 @@ class Es {
|
|
|
7481
7482
|
});
|
|
7482
7483
|
}
|
|
7483
7484
|
}
|
|
7484
|
-
const
|
|
7485
|
+
const Qf = () => new Es(), xm = () => new Es();
|
|
7485
7486
|
window.addEventListener("error", function(t) {
|
|
7486
7487
|
return eo(t.error) || console.error(t.error), t.preventDefault(), !1;
|
|
7487
7488
|
});
|
|
7488
7489
|
window.addEventListener("unhandledrejection", function(t) {
|
|
7489
7490
|
return eo(t.reason) || console.error("Unhandled Rejection", t.reason), t.preventDefault(), !1;
|
|
7490
7491
|
});
|
|
7491
|
-
const
|
|
7492
|
+
const Lm = (t) => {
|
|
7492
7493
|
t.config.errorHandler = (e, n, r) => {
|
|
7493
7494
|
eo(e) || console.error("Vue Global Error Handler: ", { err: e, vm: n, info: r });
|
|
7494
7495
|
};
|
|
7495
|
-
}, eo = (t) => t instanceof Ps || t instanceof
|
|
7496
|
-
function
|
|
7496
|
+
}, eo = (t) => t instanceof Ps || t instanceof Jf ? (Qf().AlertErrorAsync(t.errors), !0) : !1;
|
|
7497
|
+
function em() {
|
|
7497
7498
|
return Gs(Ni);
|
|
7498
7499
|
}
|
|
7499
|
-
const xs = () =>
|
|
7500
|
+
const xs = () => em(), tm = { class: "font-percentage" }, yi = "--font-size-increment", nm = "tamanho-fonte", rm = /* @__PURE__ */ Ve({
|
|
7500
7501
|
__name: "FontSize",
|
|
7501
7502
|
setup(t) {
|
|
7502
7503
|
const e = ie(!1), n = ie(0), r = () => {
|
|
7503
7504
|
n.value = Rr(), e.value = !0;
|
|
7504
7505
|
}, o = () => {
|
|
7505
7506
|
e.value = !1;
|
|
7506
|
-
}, i = () => document.documentElement,
|
|
7507
|
+
}, i = () => document.documentElement, l = () => parseInt(
|
|
7507
7508
|
getComputedStyle(i()).getPropertyValue(
|
|
7508
7509
|
yi
|
|
7509
7510
|
) || "1"
|
|
@@ -7512,19 +7513,19 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7512
7513
|
yi,
|
|
7513
7514
|
g.toString()
|
|
7514
7515
|
), m.value = g);
|
|
7515
|
-
},
|
|
7516
|
+
}, a = () => {
|
|
7516
7517
|
s(m.value + 0.1);
|
|
7517
|
-
},
|
|
7518
|
+
}, u = () => {
|
|
7518
7519
|
s(m.value - 0.1);
|
|
7519
7520
|
}, d = () => {
|
|
7520
7521
|
s(1);
|
|
7521
7522
|
}, m = ie(1);
|
|
7522
7523
|
return qs(() => {
|
|
7523
|
-
localStorage.removeItem(
|
|
7524
|
+
localStorage.removeItem(nm);
|
|
7524
7525
|
}), xt(() => {
|
|
7525
|
-
m.value =
|
|
7526
|
+
m.value = l();
|
|
7526
7527
|
}), (g, w) => ($(), H(rt, null, [
|
|
7527
|
-
De(
|
|
7528
|
+
De(ut, {
|
|
7528
7529
|
button: !0,
|
|
7529
7530
|
size: "sm",
|
|
7530
7531
|
icon: "text_increase",
|
|
@@ -7538,15 +7539,15 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7538
7539
|
}, [
|
|
7539
7540
|
M("div", {
|
|
7540
7541
|
class: "icon",
|
|
7541
|
-
onClick:
|
|
7542
|
+
onClick: u
|
|
7542
7543
|
}),
|
|
7543
|
-
M("span",
|
|
7544
|
+
M("span", tm, Me(m.value.toLocaleString("pt-br", {
|
|
7544
7545
|
style: "percent",
|
|
7545
7546
|
maximumFractionDigits: 0
|
|
7546
7547
|
})), 1),
|
|
7547
7548
|
M("div", {
|
|
7548
7549
|
class: "icon add",
|
|
7549
|
-
onClick:
|
|
7550
|
+
onClick: a
|
|
7550
7551
|
}),
|
|
7551
7552
|
M("span", {
|
|
7552
7553
|
class: "redefinir",
|
|
@@ -7561,10 +7562,10 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7561
7562
|
], 64)) : se("", !0)
|
|
7562
7563
|
], 64));
|
|
7563
7564
|
}
|
|
7564
|
-
}),
|
|
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 = {
|
|
7565
7566
|
key: 0,
|
|
7566
7567
|
id: "logging-out"
|
|
7567
|
-
},
|
|
7568
|
+
}, mm = { class: "info-fazenda" }, pm = { class: "font-bold" }, hm = { class: "info-endereco text-muted" }, gm = /* @__PURE__ */ Ve({
|
|
7568
7569
|
__name: "Main",
|
|
7569
7570
|
props: {
|
|
7570
7571
|
auth: {}
|
|
@@ -7575,17 +7576,17 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7575
7576
|
isMenuOpened: r,
|
|
7576
7577
|
pageTitle: o,
|
|
7577
7578
|
scrollY: i,
|
|
7578
|
-
ToggleMenu:
|
|
7579
|
+
ToggleMenu: l,
|
|
7579
7580
|
isDarkMode: s,
|
|
7580
|
-
ToggleTheme:
|
|
7581
|
-
CloseMenu:
|
|
7581
|
+
ToggleTheme: a,
|
|
7582
|
+
CloseMenu: u,
|
|
7582
7583
|
LogoutAsync: d,
|
|
7583
7584
|
Login: m,
|
|
7584
7585
|
isLoggingOut: g,
|
|
7585
7586
|
mainRef: w
|
|
7586
7587
|
} = xs(), k = ie(null), A = () => {
|
|
7587
7588
|
if (!k.value || !r.value) return !1;
|
|
7588
|
-
k.value.offsetWidth !== n &&
|
|
7589
|
+
k.value.offsetWidth !== n && u();
|
|
7589
7590
|
};
|
|
7590
7591
|
return xt(() => {
|
|
7591
7592
|
Xs().afterEach(() => {
|
|
@@ -7606,51 +7607,51 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7606
7607
|
ref: k,
|
|
7607
7608
|
class: Q({ "nav-menu-hidden": !oe(r) })
|
|
7608
7609
|
}, [
|
|
7609
|
-
M("div",
|
|
7610
|
+
M("div", im, [
|
|
7610
7611
|
v[0] || (v[0] = M("span", null, "Menu", -1)),
|
|
7611
|
-
M("div",
|
|
7612
|
-
De(
|
|
7612
|
+
M("div", sm, [
|
|
7613
|
+
De(ut, {
|
|
7613
7614
|
button: !0,
|
|
7614
7615
|
icon: "close",
|
|
7615
|
-
onClick: oe(
|
|
7616
|
+
onClick: oe(l)
|
|
7616
7617
|
}, null, 8, ["onClick"])
|
|
7617
7618
|
])
|
|
7618
7619
|
]),
|
|
7619
7620
|
fe(E.$slots, "nav-menu", {}, void 0, !0)
|
|
7620
7621
|
], 2),
|
|
7621
|
-
M("div",
|
|
7622
|
+
M("div", am, [
|
|
7622
7623
|
M("div", {
|
|
7623
7624
|
id: "top-bar",
|
|
7624
7625
|
class: Q({ "shadow-bottom": oe(i) > 72 })
|
|
7625
7626
|
}, [
|
|
7626
|
-
M("div",
|
|
7627
|
-
De(
|
|
7627
|
+
M("div", lm, [
|
|
7628
|
+
De(ut, {
|
|
7628
7629
|
button: !0,
|
|
7629
7630
|
icon: oe(r) ? "menu_open" : "menu",
|
|
7630
7631
|
tooltip: "Menu",
|
|
7631
|
-
onClick: oe(
|
|
7632
|
+
onClick: oe(l)
|
|
7632
7633
|
}, null, 8, ["icon", "onClick"])
|
|
7633
7634
|
]),
|
|
7634
|
-
M("div",
|
|
7635
|
+
M("div", cm, Me(oe(g) ? "Saindo..." : oe(o)), 1),
|
|
7635
7636
|
v[1] || (v[1] = M("span", { class: "sep" }, null, -1)),
|
|
7636
|
-
M("div",
|
|
7637
|
-
De(
|
|
7637
|
+
M("div", um, [
|
|
7638
|
+
De(ut, {
|
|
7638
7639
|
button: !0,
|
|
7639
7640
|
size: "sm",
|
|
7640
7641
|
icon: oe(s) ? "light_mode" : "dark_mode",
|
|
7641
7642
|
tooltip: oe(s) ? "Modo claro" : "Modo escuro",
|
|
7642
|
-
onClick: oe(
|
|
7643
|
+
onClick: oe(a)
|
|
7643
7644
|
}, null, 8, ["icon", "tooltip", "onClick"]),
|
|
7644
|
-
De(
|
|
7645
|
+
De(om),
|
|
7645
7646
|
e.auth ? ($(), H(rt, { key: 0 }, [
|
|
7646
|
-
e.auth.isAuthenticated ? ($(),
|
|
7647
|
+
e.auth.isAuthenticated ? ($(), ue(ut, {
|
|
7647
7648
|
key: 0,
|
|
7648
7649
|
button: !0,
|
|
7649
7650
|
size: "sm",
|
|
7650
7651
|
icon: "logout",
|
|
7651
7652
|
tooltip: "Sair",
|
|
7652
7653
|
onClick: oe(d)
|
|
7653
|
-
}, null, 8, ["onClick"])) : ($(),
|
|
7654
|
+
}, null, 8, ["onClick"])) : ($(), ue(ut, {
|
|
7654
7655
|
key: 1,
|
|
7655
7656
|
button: !0,
|
|
7656
7657
|
size: "sm",
|
|
@@ -7661,21 +7662,21 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7661
7662
|
], 64)) : se("", !0)
|
|
7662
7663
|
])
|
|
7663
7664
|
], 2),
|
|
7664
|
-
M("div",
|
|
7665
|
-
oe(g) ? ($(), H("div",
|
|
7665
|
+
M("div", dm, [
|
|
7666
|
+
oe(g) ? ($(), H("div", fm, [
|
|
7666
7667
|
De(ki)
|
|
7667
7668
|
])) : fe(E.$slots, "content", { key: 1 }, void 0, !0)
|
|
7668
7669
|
])
|
|
7669
7670
|
]),
|
|
7670
7671
|
M("footer", null, [
|
|
7671
7672
|
v[4] || (v[4] = M("div", { class: "logo-fazenda" }, null, -1)),
|
|
7672
|
-
M("div",
|
|
7673
|
-
M("span",
|
|
7673
|
+
M("div", mm, [
|
|
7674
|
+
M("span", pm, [
|
|
7674
7675
|
fe(E.$slots, "footer-nome-fazenda", {}, () => [
|
|
7675
7676
|
v[2] || (v[2] = ko(" SECRETARIA MUNICIPAL DA FAZENDA "))
|
|
7676
7677
|
], !0)
|
|
7677
7678
|
]),
|
|
7678
|
-
M("span",
|
|
7679
|
+
M("span", hm, [
|
|
7679
7680
|
fe(E.$slots, "footer-endereco-fazenda", {}, () => [
|
|
7680
7681
|
v[3] || (v[3] = ko(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))
|
|
7681
7682
|
], !0)
|
|
@@ -7684,7 +7685,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7684
7685
|
])
|
|
7685
7686
|
], 2));
|
|
7686
7687
|
}
|
|
7687
|
-
}),
|
|
7688
|
+
}), Om = /* @__PURE__ */ Ft(gm, [["__scopeId", "data-v-8d67809b"]]), $m = /* @__PURE__ */ Ve({
|
|
7688
7689
|
__name: "PageTitle",
|
|
7689
7690
|
props: {
|
|
7690
7691
|
title: {}
|
|
@@ -7759,7 +7760,7 @@ const xs = () => Zf(), Jf = { class: "font-percentage" }, yi = "--font-size-incr
|
|
|
7759
7760
|
color: "{primary.color}"
|
|
7760
7761
|
}
|
|
7761
7762
|
}
|
|
7762
|
-
},
|
|
7763
|
+
}, Mm = {
|
|
7763
7764
|
semantic: {
|
|
7764
7765
|
disabled: {
|
|
7765
7766
|
opacity: "1"
|
|
@@ -8045,7 +8046,7 @@ class jn {
|
|
|
8045
8046
|
return new Promise((n) => setTimeout(n, e));
|
|
8046
8047
|
}
|
|
8047
8048
|
}
|
|
8048
|
-
const
|
|
8049
|
+
const Dm = (t) => {
|
|
8049
8050
|
const e = /* @__PURE__ */ new Set();
|
|
8050
8051
|
function n(r) {
|
|
8051
8052
|
const { name: o, children: i } = r;
|
|
@@ -8061,41 +8062,41 @@ const Om = (t) => {
|
|
|
8061
8062
|
e.add(o);
|
|
8062
8063
|
}
|
|
8063
8064
|
if (i && Array.isArray(i))
|
|
8064
|
-
for (const
|
|
8065
|
-
n(
|
|
8065
|
+
for (const l of i)
|
|
8066
|
+
n(l);
|
|
8066
8067
|
}
|
|
8067
8068
|
for (const r of t)
|
|
8068
8069
|
n(r);
|
|
8069
8070
|
};
|
|
8070
|
-
function
|
|
8071
|
+
function Rm() {
|
|
8071
8072
|
document.documentElement.classList.add("app-mounted");
|
|
8072
8073
|
}
|
|
8073
8074
|
export {
|
|
8074
8075
|
Ps as AppError,
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
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,
|
|
8088
8089
|
ea as SfTooltip,
|
|
8089
|
-
|
|
8090
|
-
|
|
8090
|
+
Qf as UseAlert,
|
|
8091
|
+
xm as UseAlertService,
|
|
8091
8092
|
xs as UseAppInject,
|
|
8092
8093
|
gi as UseAuth,
|
|
8093
|
-
|
|
8094
|
-
|
|
8094
|
+
kf as UseConfirm,
|
|
8095
|
+
Tm as UseConfirmService,
|
|
8095
8096
|
jn as Utilities,
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8097
|
+
Em as _logger,
|
|
8098
|
+
Pm as configSF,
|
|
8099
|
+
Lm as globalErrorHandler,
|
|
8100
|
+
Mm as themePreset
|
|
8100
8101
|
};
|
|
8101
8102
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.js.map
|