@mjsz-vbr-elements/core 2.9.1 → 2.11.0

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.
@@ -0,0 +1,2378 @@
1
+ /**
2
+ * name: @mjsz-vbr-elements/core
3
+ * version: v2.11.0 - 14/01/2025, 16:53:44
4
+ * (c) 2025
5
+ * description: Data visualization for MJSZ VBR
6
+ * author: Ákos Stegner <akos.stegner@gmail.com>
7
+ */
8
+ import { computed as _, ref as I, watch as Gt, getCurrentScope as Pe, onScopeDispose as ke, unref as m, getCurrentInstance as Ae, onMounted as Se, defineComponent as ee, onUnmounted as ze, h as Oe, toRef as _e, openBlock as v, createElementBlock as w, toDisplayString as x, createCommentVNode as S, withDirectives as Ie, normalizeClass as O, renderSlot as L, vModelSelect as $e, createElementVNode as b, isRef as Ce, Fragment as D, normalizeStyle as jt, createVNode as G, Transition as Ge, withCtx as k, createTextVNode as M, toRefs as Nt, renderList as tt, createBlock as R, withKeys as Wt, withModifiers as it, createSlots as Ee } from "vue";
9
+ import { n as Re, e as X, u as Le, g as Y, o as Ne, f as Ve, b as De, d as Me, j as He, c as oe, a as ne, w as Be, i as Fe } from "./useSort-fVNzrwPD.js";
10
+ import { LAZY_LOADING_STATE_DELAY as je, SORT_STATE_ORIGINAL as _t, SORT_STATE_DESCEND as Kt, SORT_STATE_ASCEND as qt, DEFAULT_PORTRAIT_IMAGE_URL as We, AVAILABLE_TIMEZONES_BY_COUNTRY as Ke } from "./constants.js";
11
+ import { J as se, K as vt, z as Jt, C as qe, o as wt, g as Je } from "./datetime-DTVWbsTz.js";
12
+ import { COLUMNS_SCHEDULE as Ue } from "./columns.js";
13
+ import { m as Ye, W as re, U as Tt } from "./errors-1KEdp4yb.js";
14
+ function Ze(t) {
15
+ return Pe() ? (ke(t), !0) : !1;
16
+ }
17
+ function ie(t) {
18
+ return typeof t == "function" ? t() : m(t);
19
+ }
20
+ const Xe = typeof window < "u" && typeof document < "u";
21
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
22
+ const Qe = (t) => t != null, It = () => {
23
+ };
24
+ function $t(t) {
25
+ var e;
26
+ const o = ie(t);
27
+ return (e = o == null ? void 0 : o.$el) != null ? e : o;
28
+ }
29
+ const to = Xe ? window : void 0;
30
+ function eo() {
31
+ const t = I(!1);
32
+ return Ae() && Se(() => {
33
+ t.value = !0;
34
+ }), t;
35
+ }
36
+ function oo(t) {
37
+ const e = eo();
38
+ return _(() => (e.value, !!t()));
39
+ }
40
+ function no(t, e, o = {}) {
41
+ const {
42
+ root: n,
43
+ rootMargin: r = "0px",
44
+ threshold: s = 0.1,
45
+ window: i = to,
46
+ immediate: c = !0
47
+ } = o, f = oo(() => i && "IntersectionObserver" in i), u = _(() => {
48
+ const a = ie(t);
49
+ return (Array.isArray(a) ? a : [a]).map($t).filter(Qe);
50
+ });
51
+ let l = It;
52
+ const d = I(c), h = f.value ? Gt(
53
+ () => [u.value, $t(n), d.value],
54
+ ([a, y]) => {
55
+ if (l(), !d.value || !a.length)
56
+ return;
57
+ const g = new IntersectionObserver(
58
+ e,
59
+ {
60
+ root: $t(y),
61
+ rootMargin: r,
62
+ threshold: s
63
+ }
64
+ );
65
+ a.forEach((T) => T && g.observe(T)), l = () => {
66
+ g.disconnect(), l = It;
67
+ };
68
+ },
69
+ { immediate: c, flush: "post" }
70
+ ) : It, p = () => {
71
+ l(), h(), d.value = !1;
72
+ };
73
+ return Ze(p), {
74
+ isSupported: f,
75
+ isActive: d,
76
+ pause() {
77
+ l(), d.value = !1;
78
+ },
79
+ resume() {
80
+ d.value = !0;
81
+ },
82
+ stop: p
83
+ };
84
+ }
85
+ const Ws = ee({
86
+ name: "FetchMoreObserver",
87
+ props: ["as", "options"],
88
+ emits: ["intersect"],
89
+ setup(t, { slots: e, emit: o }) {
90
+ const n = I(null), { stop: r } = no(
91
+ n,
92
+ ([{ isIntersecting: s }]) => {
93
+ s && o("intersect");
94
+ },
95
+ t.options
96
+ );
97
+ return ze(r), () => {
98
+ if (e.default)
99
+ return Oe(t.as || "div", { ref: n }, e.default());
100
+ };
101
+ }
102
+ });
103
+ var so = /* @__PURE__ */ se(function(e, o, n) {
104
+ var r = {}, s;
105
+ o = o || {}, n = n || {};
106
+ for (s in o)
107
+ vt(s, o) && (r[s] = vt(s, n) ? e(s, o[s], n[s]) : o[s]);
108
+ for (s in n)
109
+ vt(s, n) && !vt(s, r) && (r[s] = n[s]);
110
+ return r;
111
+ }), ro = /* @__PURE__ */ se(function t(e, o, n) {
112
+ return so(function(r, s, i) {
113
+ return Jt(s) && Jt(i) ? t(e, s, i) : e(r, s, i);
114
+ }, o, n);
115
+ }), io = /* @__PURE__ */ qe(function(e, o) {
116
+ return ro(function(n, r, s) {
117
+ return s;
118
+ }, e, o);
119
+ });
120
+ function ao({ currentPage: t, itemsPerPage: e = 20, totalItems: o, rangeLength: n = 5, update: r = Re }) {
121
+ const s = _(() => Math.ceil(m(o) / e)), i = _(() => {
122
+ const l = m(t) - 1, d = Array.from({ length: s.value }, (a, y) => y + 1), h = Math.floor(n / 2);
123
+ let p = Math.max(l - h, 0);
124
+ return p + n >= s.value && (p = Math.max(s.value - n, 0)), d.slice(p, p + n);
125
+ }), c = (l) => {
126
+ const d = m(t) + l;
127
+ u(d) && r(d);
128
+ }, f = (l) => {
129
+ u(l) && r(l);
130
+ };
131
+ function u(l) {
132
+ return l <= s.value && l > 0;
133
+ }
134
+ return {
135
+ page: t,
136
+ range: i,
137
+ pageCount: s,
138
+ goTo: f,
139
+ pageStep: c
140
+ };
141
+ }
142
+ const lo = ["textContent"], Ks = {
143
+ __name: "AdditionalStandingsText",
144
+ props: {
145
+ rows: {
146
+ type: Array,
147
+ default: () => []
148
+ },
149
+ additionalKey: {
150
+ type: String,
151
+ required: !0
152
+ }
153
+ },
154
+ setup(t) {
155
+ const e = t, o = _e(e, "rows"), { t: n, locale: r } = X(), { isVisible: s, text: i } = Le(o, e.additionalKey, n, r);
156
+ return (c, f) => m(s) ? (v(), w("div", {
157
+ key: 0,
158
+ class: "is-text-xs is-text-light is-mt-5 is-mb-5",
159
+ textContent: x(m(i))
160
+ }, null, 8, lo)) : S("", !0);
161
+ }
162
+ }, co = {
163
+ __name: "BaseSelect",
164
+ props: {
165
+ modelValue: {
166
+ type: [String, Number],
167
+ default: null
168
+ }
169
+ },
170
+ emits: ["update:modelValue"],
171
+ setup(t, { emit: e }) {
172
+ const o = t, n = e, r = Y("base-input"), s = _({ get: () => o.modelValue, set: (i) => n("update:modelValue", i) });
173
+ return (i, c) => Ie((v(), w("select", {
174
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => s.value = f),
175
+ class: O(["is-select", [m(r)]])
176
+ }, [
177
+ L(i.$slots, "default")
178
+ ], 2)), [
179
+ [$e, s.value]
180
+ ]);
181
+ }
182
+ }, uo = {
183
+ "aria-hidden": "true",
184
+ focusable: "false",
185
+ "data-prefix": "fas",
186
+ "data-icon": "sort",
187
+ class: "svg-inline--fa fa-sort fa-w-10",
188
+ role: "img",
189
+ xmlns: "http://www.w3.org/2000/svg",
190
+ viewBox: "0 0 320 512"
191
+ };
192
+ function mo(t, e) {
193
+ return v(), w("svg", uo, e[0] || (e[0] = [
194
+ b("path", {
195
+ fill: "currentColor",
196
+ d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"
197
+ }, null, -1)
198
+ ]));
199
+ }
200
+ const Ut = { render: mo }, fo = {
201
+ "aria-hidden": "true",
202
+ focusable: "false",
203
+ "data-prefix": "fas",
204
+ "data-icon": "sort-down",
205
+ class: "svg-inline--fa fa-sort-down fa-w-10",
206
+ role: "img",
207
+ xmlns: "http://www.w3.org/2000/svg",
208
+ viewBox: "0 0 320 512"
209
+ };
210
+ function po(t, e) {
211
+ return v(), w("svg", fo, e[0] || (e[0] = [
212
+ b("path", {
213
+ fill: "currentColor",
214
+ d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"
215
+ }, null, -1)
216
+ ]));
217
+ }
218
+ const ho = { render: po }, go = {
219
+ "aria-hidden": "true",
220
+ focusable: "false",
221
+ "data-prefix": "fas",
222
+ "data-icon": "sort-up",
223
+ class: "svg-inline--fa fa-sort-up fa-w-10",
224
+ role: "img",
225
+ xmlns: "http://www.w3.org/2000/svg",
226
+ viewBox: "0 0 320 512"
227
+ };
228
+ function yo(t, e) {
229
+ return v(), w("svg", go, e[0] || (e[0] = [
230
+ b("path", {
231
+ fill: "currentColor",
232
+ d: "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"
233
+ }, null, -1)
234
+ ]));
235
+ }
236
+ const vo = { render: yo }, at = Math.min, et = Math.max, xt = Math.round, bt = Math.floor, K = (t) => ({
237
+ x: t,
238
+ y: t
239
+ }), wo = {
240
+ left: "right",
241
+ right: "left",
242
+ bottom: "top",
243
+ top: "bottom"
244
+ }, bo = {
245
+ start: "end",
246
+ end: "start"
247
+ };
248
+ function Et(t, e, o) {
249
+ return et(t, at(e, o));
250
+ }
251
+ function ht(t, e) {
252
+ return typeof t == "function" ? t(e) : t;
253
+ }
254
+ function ot(t) {
255
+ return t.split("-")[0];
256
+ }
257
+ function gt(t) {
258
+ return t.split("-")[1];
259
+ }
260
+ function ae(t) {
261
+ return t === "x" ? "y" : "x";
262
+ }
263
+ function Vt(t) {
264
+ return t === "y" ? "height" : "width";
265
+ }
266
+ function At(t) {
267
+ return ["top", "bottom"].includes(ot(t)) ? "y" : "x";
268
+ }
269
+ function Dt(t) {
270
+ return ae(At(t));
271
+ }
272
+ function To(t, e, o) {
273
+ o === void 0 && (o = !1);
274
+ const n = gt(t), r = Dt(t), s = Vt(r);
275
+ let i = r === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
276
+ return e.reference[s] > e.floating[s] && (i = Pt(i)), [i, Pt(i)];
277
+ }
278
+ function xo(t) {
279
+ const e = Pt(t);
280
+ return [Rt(t), e, Rt(e)];
281
+ }
282
+ function Rt(t) {
283
+ return t.replace(/start|end/g, (e) => bo[e]);
284
+ }
285
+ function Po(t, e, o) {
286
+ const n = ["left", "right"], r = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
287
+ switch (t) {
288
+ case "top":
289
+ case "bottom":
290
+ return o ? e ? r : n : e ? n : r;
291
+ case "left":
292
+ case "right":
293
+ return e ? s : i;
294
+ default:
295
+ return [];
296
+ }
297
+ }
298
+ function ko(t, e, o, n) {
299
+ const r = gt(t);
300
+ let s = Po(ot(t), o === "start", n);
301
+ return r && (s = s.map((i) => i + "-" + r), e && (s = s.concat(s.map(Rt)))), s;
302
+ }
303
+ function Pt(t) {
304
+ return t.replace(/left|right|bottom|top/g, (e) => wo[e]);
305
+ }
306
+ function Ao(t) {
307
+ return {
308
+ top: 0,
309
+ right: 0,
310
+ bottom: 0,
311
+ left: 0,
312
+ ...t
313
+ };
314
+ }
315
+ function le(t) {
316
+ return typeof t != "number" ? Ao(t) : {
317
+ top: t,
318
+ right: t,
319
+ bottom: t,
320
+ left: t
321
+ };
322
+ }
323
+ function kt(t) {
324
+ const {
325
+ x: e,
326
+ y: o,
327
+ width: n,
328
+ height: r
329
+ } = t;
330
+ return {
331
+ width: n,
332
+ height: r,
333
+ top: o,
334
+ left: e,
335
+ right: e + n,
336
+ bottom: o + r,
337
+ x: e,
338
+ y: o
339
+ };
340
+ }
341
+ function Yt(t, e, o) {
342
+ let {
343
+ reference: n,
344
+ floating: r
345
+ } = t;
346
+ const s = At(e), i = Dt(e), c = Vt(i), f = ot(e), u = s === "y", l = n.x + n.width / 2 - r.width / 2, d = n.y + n.height / 2 - r.height / 2, h = n[c] / 2 - r[c] / 2;
347
+ let p;
348
+ switch (f) {
349
+ case "top":
350
+ p = {
351
+ x: l,
352
+ y: n.y - r.height
353
+ };
354
+ break;
355
+ case "bottom":
356
+ p = {
357
+ x: l,
358
+ y: n.y + n.height
359
+ };
360
+ break;
361
+ case "right":
362
+ p = {
363
+ x: n.x + n.width,
364
+ y: d
365
+ };
366
+ break;
367
+ case "left":
368
+ p = {
369
+ x: n.x - r.width,
370
+ y: d
371
+ };
372
+ break;
373
+ default:
374
+ p = {
375
+ x: n.x,
376
+ y: n.y
377
+ };
378
+ }
379
+ switch (gt(e)) {
380
+ case "start":
381
+ p[i] -= h * (o && u ? -1 : 1);
382
+ break;
383
+ case "end":
384
+ p[i] += h * (o && u ? -1 : 1);
385
+ break;
386
+ }
387
+ return p;
388
+ }
389
+ const So = async (t, e, o) => {
390
+ const {
391
+ placement: n = "bottom",
392
+ strategy: r = "absolute",
393
+ middleware: s = [],
394
+ platform: i
395
+ } = o, c = s.filter(Boolean), f = await (i.isRTL == null ? void 0 : i.isRTL(e));
396
+ let u = await i.getElementRects({
397
+ reference: t,
398
+ floating: e,
399
+ strategy: r
400
+ }), {
401
+ x: l,
402
+ y: d
403
+ } = Yt(u, n, f), h = n, p = {}, a = 0;
404
+ for (let y = 0; y < c.length; y++) {
405
+ const {
406
+ name: g,
407
+ fn: T
408
+ } = c[y], {
409
+ x: P,
410
+ y: A,
411
+ data: $,
412
+ reset: z
413
+ } = await T({
414
+ x: l,
415
+ y: d,
416
+ initialPlacement: n,
417
+ placement: h,
418
+ strategy: r,
419
+ middlewareData: p,
420
+ rects: u,
421
+ platform: i,
422
+ elements: {
423
+ reference: t,
424
+ floating: e
425
+ }
426
+ });
427
+ l = P ?? l, d = A ?? d, p = {
428
+ ...p,
429
+ [g]: {
430
+ ...p[g],
431
+ ...$
432
+ }
433
+ }, z && a <= 50 && (a++, typeof z == "object" && (z.placement && (h = z.placement), z.rects && (u = z.rects === !0 ? await i.getElementRects({
434
+ reference: t,
435
+ floating: e,
436
+ strategy: r
437
+ }) : z.rects), {
438
+ x: l,
439
+ y: d
440
+ } = Yt(u, h, f)), y = -1);
441
+ }
442
+ return {
443
+ x: l,
444
+ y: d,
445
+ placement: h,
446
+ strategy: r,
447
+ middlewareData: p
448
+ };
449
+ };
450
+ async function ce(t, e) {
451
+ var o;
452
+ e === void 0 && (e = {});
453
+ const {
454
+ x: n,
455
+ y: r,
456
+ platform: s,
457
+ rects: i,
458
+ elements: c,
459
+ strategy: f
460
+ } = t, {
461
+ boundary: u = "clippingAncestors",
462
+ rootBoundary: l = "viewport",
463
+ elementContext: d = "floating",
464
+ altBoundary: h = !1,
465
+ padding: p = 0
466
+ } = ht(e, t), a = le(p), g = c[h ? d === "floating" ? "reference" : "floating" : d], T = kt(await s.getClippingRect({
467
+ element: (o = await (s.isElement == null ? void 0 : s.isElement(g))) == null || o ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
468
+ boundary: u,
469
+ rootBoundary: l,
470
+ strategy: f
471
+ })), P = d === "floating" ? {
472
+ ...i.floating,
473
+ x: n,
474
+ y: r
475
+ } : i.reference, A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), $ = await (s.isElement == null ? void 0 : s.isElement(A)) ? await (s.getScale == null ? void 0 : s.getScale(A)) || {
476
+ x: 1,
477
+ y: 1
478
+ } : {
479
+ x: 1,
480
+ y: 1
481
+ }, z = kt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
482
+ elements: c,
483
+ rect: P,
484
+ offsetParent: A,
485
+ strategy: f
486
+ }) : P);
487
+ return {
488
+ top: (T.top - z.top + a.top) / $.y,
489
+ bottom: (z.bottom - T.bottom + a.bottom) / $.y,
490
+ left: (T.left - z.left + a.left) / $.x,
491
+ right: (z.right - T.right + a.right) / $.x
492
+ };
493
+ }
494
+ const zo = (t) => ({
495
+ name: "arrow",
496
+ options: t,
497
+ async fn(e) {
498
+ const {
499
+ x: o,
500
+ y: n,
501
+ placement: r,
502
+ rects: s,
503
+ platform: i,
504
+ elements: c,
505
+ middlewareData: f
506
+ } = e, {
507
+ element: u,
508
+ padding: l = 0
509
+ } = ht(t, e) || {};
510
+ if (u == null)
511
+ return {};
512
+ const d = le(l), h = {
513
+ x: o,
514
+ y: n
515
+ }, p = Dt(r), a = Vt(p), y = await i.getDimensions(u), g = p === "y", T = g ? "top" : "left", P = g ? "bottom" : "right", A = g ? "clientHeight" : "clientWidth", $ = s.reference[a] + s.reference[p] - h[p] - s.floating[a], z = h[p] - s.reference[p], F = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
516
+ let C = F ? F[A] : 0;
517
+ (!C || !await (i.isElement == null ? void 0 : i.isElement(F))) && (C = c.floating[A] || s.floating[a]);
518
+ const Q = $ / 2 - z / 2, ut = C / 2 - y[a] / 2 - 1, dt = at(d[T], ut), mt = at(d[P], ut), V = dt, ft = C - y[a] - mt, E = C / 2 - y[a] / 2 + Q, j = Et(V, E, ft), W = !f.arrow && gt(r) != null && E !== j && s.reference[a] / 2 - (E < V ? dt : mt) - y[a] / 2 < 0, U = W ? E < V ? E - V : E - ft : 0;
519
+ return {
520
+ [p]: h[p] + U,
521
+ data: {
522
+ [p]: j,
523
+ centerOffset: E - j - U,
524
+ ...W && {
525
+ alignmentOffset: U
526
+ }
527
+ },
528
+ reset: W
529
+ };
530
+ }
531
+ }), Oo = function(t) {
532
+ return t === void 0 && (t = {}), {
533
+ name: "flip",
534
+ options: t,
535
+ async fn(e) {
536
+ var o, n;
537
+ const {
538
+ placement: r,
539
+ middlewareData: s,
540
+ rects: i,
541
+ initialPlacement: c,
542
+ platform: f,
543
+ elements: u
544
+ } = e, {
545
+ mainAxis: l = !0,
546
+ crossAxis: d = !0,
547
+ fallbackPlacements: h,
548
+ fallbackStrategy: p = "bestFit",
549
+ fallbackAxisSideDirection: a = "none",
550
+ flipAlignment: y = !0,
551
+ ...g
552
+ } = ht(t, e);
553
+ if ((o = s.arrow) != null && o.alignmentOffset)
554
+ return {};
555
+ const T = ot(r), P = ot(c) === c, A = await (f.isRTL == null ? void 0 : f.isRTL(u.floating)), $ = h || (P || !y ? [Pt(c)] : xo(c));
556
+ !h && a !== "none" && $.push(...ko(c, y, a, A));
557
+ const z = [c, ...$], F = await ce(e, g), C = [];
558
+ let Q = ((n = s.flip) == null ? void 0 : n.overflows) || [];
559
+ if (l && C.push(F[T]), d) {
560
+ const V = To(r, i, A);
561
+ C.push(F[V[0]], F[V[1]]);
562
+ }
563
+ if (Q = [...Q, {
564
+ placement: r,
565
+ overflows: C
566
+ }], !C.every((V) => V <= 0)) {
567
+ var ut, dt;
568
+ const V = (((ut = s.flip) == null ? void 0 : ut.index) || 0) + 1, ft = z[V];
569
+ if (ft)
570
+ return {
571
+ data: {
572
+ index: V,
573
+ overflows: Q
574
+ },
575
+ reset: {
576
+ placement: ft
577
+ }
578
+ };
579
+ let E = (dt = Q.filter((j) => j.overflows[0] <= 0).sort((j, W) => j.overflows[1] - W.overflows[1])[0]) == null ? void 0 : dt.placement;
580
+ if (!E)
581
+ switch (p) {
582
+ case "bestFit": {
583
+ var mt;
584
+ const j = (mt = Q.map((W) => [W.placement, W.overflows.filter((U) => U > 0).reduce((U, xe) => U + xe, 0)]).sort((W, U) => W[1] - U[1])[0]) == null ? void 0 : mt[0];
585
+ j && (E = j);
586
+ break;
587
+ }
588
+ case "initialPlacement":
589
+ E = c;
590
+ break;
591
+ }
592
+ if (r !== E)
593
+ return {
594
+ reset: {
595
+ placement: E
596
+ }
597
+ };
598
+ }
599
+ return {};
600
+ }
601
+ };
602
+ };
603
+ async function _o(t, e) {
604
+ const {
605
+ placement: o,
606
+ platform: n,
607
+ elements: r
608
+ } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), i = ot(o), c = gt(o), f = At(o) === "y", u = ["left", "top"].includes(i) ? -1 : 1, l = s && f ? -1 : 1, d = ht(e, t);
609
+ let {
610
+ mainAxis: h,
611
+ crossAxis: p,
612
+ alignmentAxis: a
613
+ } = typeof d == "number" ? {
614
+ mainAxis: d,
615
+ crossAxis: 0,
616
+ alignmentAxis: null
617
+ } : {
618
+ mainAxis: 0,
619
+ crossAxis: 0,
620
+ alignmentAxis: null,
621
+ ...d
622
+ };
623
+ return c && typeof a == "number" && (p = c === "end" ? a * -1 : a), f ? {
624
+ x: p * l,
625
+ y: h * u
626
+ } : {
627
+ x: h * u,
628
+ y: p * l
629
+ };
630
+ }
631
+ const Io = function(t) {
632
+ return t === void 0 && (t = 0), {
633
+ name: "offset",
634
+ options: t,
635
+ async fn(e) {
636
+ var o, n;
637
+ const {
638
+ x: r,
639
+ y: s,
640
+ placement: i,
641
+ middlewareData: c
642
+ } = e, f = await _o(e, t);
643
+ return i === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
644
+ x: r + f.x,
645
+ y: s + f.y,
646
+ data: {
647
+ ...f,
648
+ placement: i
649
+ }
650
+ };
651
+ }
652
+ };
653
+ }, $o = function(t) {
654
+ return t === void 0 && (t = {}), {
655
+ name: "shift",
656
+ options: t,
657
+ async fn(e) {
658
+ const {
659
+ x: o,
660
+ y: n,
661
+ placement: r
662
+ } = e, {
663
+ mainAxis: s = !0,
664
+ crossAxis: i = !1,
665
+ limiter: c = {
666
+ fn: (g) => {
667
+ let {
668
+ x: T,
669
+ y: P
670
+ } = g;
671
+ return {
672
+ x: T,
673
+ y: P
674
+ };
675
+ }
676
+ },
677
+ ...f
678
+ } = ht(t, e), u = {
679
+ x: o,
680
+ y: n
681
+ }, l = await ce(e, f), d = At(ot(r)), h = ae(d);
682
+ let p = u[h], a = u[d];
683
+ if (s) {
684
+ const g = h === "y" ? "top" : "left", T = h === "y" ? "bottom" : "right", P = p + l[g], A = p - l[T];
685
+ p = Et(P, p, A);
686
+ }
687
+ if (i) {
688
+ const g = d === "y" ? "top" : "left", T = d === "y" ? "bottom" : "right", P = a + l[g], A = a - l[T];
689
+ a = Et(P, a, A);
690
+ }
691
+ const y = c.fn({
692
+ ...e,
693
+ [h]: p,
694
+ [d]: a
695
+ });
696
+ return {
697
+ ...y,
698
+ data: {
699
+ x: y.x - o,
700
+ y: y.y - n
701
+ }
702
+ };
703
+ }
704
+ };
705
+ };
706
+ function St() {
707
+ return typeof window < "u";
708
+ }
709
+ function ct(t) {
710
+ return ue(t) ? (t.nodeName || "").toLowerCase() : "#document";
711
+ }
712
+ function N(t) {
713
+ var e;
714
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
715
+ }
716
+ function J(t) {
717
+ var e;
718
+ return (e = (ue(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
719
+ }
720
+ function ue(t) {
721
+ return St() ? t instanceof Node || t instanceof N(t).Node : !1;
722
+ }
723
+ function H(t) {
724
+ return St() ? t instanceof Element || t instanceof N(t).Element : !1;
725
+ }
726
+ function q(t) {
727
+ return St() ? t instanceof HTMLElement || t instanceof N(t).HTMLElement : !1;
728
+ }
729
+ function Zt(t) {
730
+ return !St() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof N(t).ShadowRoot;
731
+ }
732
+ function yt(t) {
733
+ const {
734
+ overflow: e,
735
+ overflowX: o,
736
+ overflowY: n,
737
+ display: r
738
+ } = B(t);
739
+ return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(r);
740
+ }
741
+ function Co(t) {
742
+ return ["table", "td", "th"].includes(ct(t));
743
+ }
744
+ function zt(t) {
745
+ return [":popover-open", ":modal"].some((e) => {
746
+ try {
747
+ return t.matches(e);
748
+ } catch {
749
+ return !1;
750
+ }
751
+ });
752
+ }
753
+ function Mt(t) {
754
+ const e = Ht(), o = H(t) ? B(t) : t;
755
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
756
+ }
757
+ function Go(t) {
758
+ let e = Z(t);
759
+ for (; q(e) && !lt(e); ) {
760
+ if (Mt(e))
761
+ return e;
762
+ if (zt(e))
763
+ return null;
764
+ e = Z(e);
765
+ }
766
+ return null;
767
+ }
768
+ function Ht() {
769
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
770
+ }
771
+ function lt(t) {
772
+ return ["html", "body", "#document"].includes(ct(t));
773
+ }
774
+ function B(t) {
775
+ return N(t).getComputedStyle(t);
776
+ }
777
+ function Ot(t) {
778
+ return H(t) ? {
779
+ scrollLeft: t.scrollLeft,
780
+ scrollTop: t.scrollTop
781
+ } : {
782
+ scrollLeft: t.scrollX,
783
+ scrollTop: t.scrollY
784
+ };
785
+ }
786
+ function Z(t) {
787
+ if (ct(t) === "html")
788
+ return t;
789
+ const e = (
790
+ // Step into the shadow DOM of the parent of a slotted node.
791
+ t.assignedSlot || // DOM Element detected.
792
+ t.parentNode || // ShadowRoot detected.
793
+ Zt(t) && t.host || // Fallback.
794
+ J(t)
795
+ );
796
+ return Zt(e) ? e.host : e;
797
+ }
798
+ function de(t) {
799
+ const e = Z(t);
800
+ return lt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : q(e) && yt(e) ? e : de(e);
801
+ }
802
+ function pt(t, e, o) {
803
+ var n;
804
+ e === void 0 && (e = []), o === void 0 && (o = !0);
805
+ const r = de(t), s = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i = N(r);
806
+ if (s) {
807
+ const c = Lt(i);
808
+ return e.concat(i, i.visualViewport || [], yt(r) ? r : [], c && o ? pt(c) : []);
809
+ }
810
+ return e.concat(r, pt(r, [], o));
811
+ }
812
+ function Lt(t) {
813
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
814
+ }
815
+ function me(t) {
816
+ const e = B(t);
817
+ let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
818
+ const r = q(t), s = r ? t.offsetWidth : o, i = r ? t.offsetHeight : n, c = xt(o) !== s || xt(n) !== i;
819
+ return c && (o = s, n = i), {
820
+ width: o,
821
+ height: n,
822
+ $: c
823
+ };
824
+ }
825
+ function Bt(t) {
826
+ return H(t) ? t : t.contextElement;
827
+ }
828
+ function rt(t) {
829
+ const e = Bt(t);
830
+ if (!q(e))
831
+ return K(1);
832
+ const o = e.getBoundingClientRect(), {
833
+ width: n,
834
+ height: r,
835
+ $: s
836
+ } = me(e);
837
+ let i = (s ? xt(o.width) : o.width) / n, c = (s ? xt(o.height) : o.height) / r;
838
+ return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
839
+ x: i,
840
+ y: c
841
+ };
842
+ }
843
+ const Eo = /* @__PURE__ */ K(0);
844
+ function fe(t) {
845
+ const e = N(t);
846
+ return !Ht() || !e.visualViewport ? Eo : {
847
+ x: e.visualViewport.offsetLeft,
848
+ y: e.visualViewport.offsetTop
849
+ };
850
+ }
851
+ function Ro(t, e, o) {
852
+ return e === void 0 && (e = !1), !o || e && o !== N(t) ? !1 : e;
853
+ }
854
+ function nt(t, e, o, n) {
855
+ e === void 0 && (e = !1), o === void 0 && (o = !1);
856
+ const r = t.getBoundingClientRect(), s = Bt(t);
857
+ let i = K(1);
858
+ e && (n ? H(n) && (i = rt(n)) : i = rt(t));
859
+ const c = Ro(s, o, n) ? fe(s) : K(0);
860
+ let f = (r.left + c.x) / i.x, u = (r.top + c.y) / i.y, l = r.width / i.x, d = r.height / i.y;
861
+ if (s) {
862
+ const h = N(s), p = n && H(n) ? N(n) : n;
863
+ let a = h, y = Lt(a);
864
+ for (; y && n && p !== a; ) {
865
+ const g = rt(y), T = y.getBoundingClientRect(), P = B(y), A = T.left + (y.clientLeft + parseFloat(P.paddingLeft)) * g.x, $ = T.top + (y.clientTop + parseFloat(P.paddingTop)) * g.y;
866
+ f *= g.x, u *= g.y, l *= g.x, d *= g.y, f += A, u += $, a = N(y), y = Lt(a);
867
+ }
868
+ }
869
+ return kt({
870
+ width: l,
871
+ height: d,
872
+ x: f,
873
+ y: u
874
+ });
875
+ }
876
+ function Ft(t, e) {
877
+ const o = Ot(t).scrollLeft;
878
+ return e ? e.left + o : nt(J(t)).left + o;
879
+ }
880
+ function pe(t, e, o) {
881
+ o === void 0 && (o = !1);
882
+ const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - (o ? 0 : (
883
+ // RTL <body> scrollbar.
884
+ Ft(t, n)
885
+ )), s = n.top + e.scrollTop;
886
+ return {
887
+ x: r,
888
+ y: s
889
+ };
890
+ }
891
+ function Lo(t) {
892
+ let {
893
+ elements: e,
894
+ rect: o,
895
+ offsetParent: n,
896
+ strategy: r
897
+ } = t;
898
+ const s = r === "fixed", i = J(n), c = e ? zt(e.floating) : !1;
899
+ if (n === i || c && s)
900
+ return o;
901
+ let f = {
902
+ scrollLeft: 0,
903
+ scrollTop: 0
904
+ }, u = K(1);
905
+ const l = K(0), d = q(n);
906
+ if ((d || !d && !s) && ((ct(n) !== "body" || yt(i)) && (f = Ot(n)), q(n))) {
907
+ const p = nt(n);
908
+ u = rt(n), l.x = p.x + n.clientLeft, l.y = p.y + n.clientTop;
909
+ }
910
+ const h = i && !d && !s ? pe(i, f, !0) : K(0);
911
+ return {
912
+ width: o.width * u.x,
913
+ height: o.height * u.y,
914
+ x: o.x * u.x - f.scrollLeft * u.x + l.x + h.x,
915
+ y: o.y * u.y - f.scrollTop * u.y + l.y + h.y
916
+ };
917
+ }
918
+ function No(t) {
919
+ return Array.from(t.getClientRects());
920
+ }
921
+ function Vo(t) {
922
+ const e = J(t), o = Ot(t), n = t.ownerDocument.body, r = et(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = et(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
923
+ let i = -o.scrollLeft + Ft(t);
924
+ const c = -o.scrollTop;
925
+ return B(n).direction === "rtl" && (i += et(e.clientWidth, n.clientWidth) - r), {
926
+ width: r,
927
+ height: s,
928
+ x: i,
929
+ y: c
930
+ };
931
+ }
932
+ function Do(t, e) {
933
+ const o = N(t), n = J(t), r = o.visualViewport;
934
+ let s = n.clientWidth, i = n.clientHeight, c = 0, f = 0;
935
+ if (r) {
936
+ s = r.width, i = r.height;
937
+ const u = Ht();
938
+ (!u || u && e === "fixed") && (c = r.offsetLeft, f = r.offsetTop);
939
+ }
940
+ return {
941
+ width: s,
942
+ height: i,
943
+ x: c,
944
+ y: f
945
+ };
946
+ }
947
+ function Mo(t, e) {
948
+ const o = nt(t, !0, e === "fixed"), n = o.top + t.clientTop, r = o.left + t.clientLeft, s = q(t) ? rt(t) : K(1), i = t.clientWidth * s.x, c = t.clientHeight * s.y, f = r * s.x, u = n * s.y;
949
+ return {
950
+ width: i,
951
+ height: c,
952
+ x: f,
953
+ y: u
954
+ };
955
+ }
956
+ function Xt(t, e, o) {
957
+ let n;
958
+ if (e === "viewport")
959
+ n = Do(t, o);
960
+ else if (e === "document")
961
+ n = Vo(J(t));
962
+ else if (H(e))
963
+ n = Mo(e, o);
964
+ else {
965
+ const r = fe(t);
966
+ n = {
967
+ x: e.x - r.x,
968
+ y: e.y - r.y,
969
+ width: e.width,
970
+ height: e.height
971
+ };
972
+ }
973
+ return kt(n);
974
+ }
975
+ function he(t, e) {
976
+ const o = Z(t);
977
+ return o === e || !H(o) || lt(o) ? !1 : B(o).position === "fixed" || he(o, e);
978
+ }
979
+ function Ho(t, e) {
980
+ const o = e.get(t);
981
+ if (o)
982
+ return o;
983
+ let n = pt(t, [], !1).filter((c) => H(c) && ct(c) !== "body"), r = null;
984
+ const s = B(t).position === "fixed";
985
+ let i = s ? Z(t) : t;
986
+ for (; H(i) && !lt(i); ) {
987
+ const c = B(i), f = Mt(i);
988
+ !f && c.position === "fixed" && (r = null), (s ? !f && !r : !f && c.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || yt(i) && !f && he(t, i)) ? n = n.filter((l) => l !== i) : r = c, i = Z(i);
989
+ }
990
+ return e.set(t, n), n;
991
+ }
992
+ function Bo(t) {
993
+ let {
994
+ element: e,
995
+ boundary: o,
996
+ rootBoundary: n,
997
+ strategy: r
998
+ } = t;
999
+ const i = [...o === "clippingAncestors" ? zt(e) ? [] : Ho(e, this._c) : [].concat(o), n], c = i[0], f = i.reduce((u, l) => {
1000
+ const d = Xt(e, l, r);
1001
+ return u.top = et(d.top, u.top), u.right = at(d.right, u.right), u.bottom = at(d.bottom, u.bottom), u.left = et(d.left, u.left), u;
1002
+ }, Xt(e, c, r));
1003
+ return {
1004
+ width: f.right - f.left,
1005
+ height: f.bottom - f.top,
1006
+ x: f.left,
1007
+ y: f.top
1008
+ };
1009
+ }
1010
+ function Fo(t) {
1011
+ const {
1012
+ width: e,
1013
+ height: o
1014
+ } = me(t);
1015
+ return {
1016
+ width: e,
1017
+ height: o
1018
+ };
1019
+ }
1020
+ function jo(t, e, o) {
1021
+ const n = q(e), r = J(e), s = o === "fixed", i = nt(t, !0, s, e);
1022
+ let c = {
1023
+ scrollLeft: 0,
1024
+ scrollTop: 0
1025
+ };
1026
+ const f = K(0);
1027
+ if (n || !n && !s)
1028
+ if ((ct(e) !== "body" || yt(r)) && (c = Ot(e)), n) {
1029
+ const h = nt(e, !0, s, e);
1030
+ f.x = h.x + e.clientLeft, f.y = h.y + e.clientTop;
1031
+ } else r && (f.x = Ft(r));
1032
+ const u = r && !n && !s ? pe(r, c) : K(0), l = i.left + c.scrollLeft - f.x - u.x, d = i.top + c.scrollTop - f.y - u.y;
1033
+ return {
1034
+ x: l,
1035
+ y: d,
1036
+ width: i.width,
1037
+ height: i.height
1038
+ };
1039
+ }
1040
+ function Ct(t) {
1041
+ return B(t).position === "static";
1042
+ }
1043
+ function Qt(t, e) {
1044
+ if (!q(t) || B(t).position === "fixed")
1045
+ return null;
1046
+ if (e)
1047
+ return e(t);
1048
+ let o = t.offsetParent;
1049
+ return J(t) === o && (o = o.ownerDocument.body), o;
1050
+ }
1051
+ function ge(t, e) {
1052
+ const o = N(t);
1053
+ if (zt(t))
1054
+ return o;
1055
+ if (!q(t)) {
1056
+ let r = Z(t);
1057
+ for (; r && !lt(r); ) {
1058
+ if (H(r) && !Ct(r))
1059
+ return r;
1060
+ r = Z(r);
1061
+ }
1062
+ return o;
1063
+ }
1064
+ let n = Qt(t, e);
1065
+ for (; n && Co(n) && Ct(n); )
1066
+ n = Qt(n, e);
1067
+ return n && lt(n) && Ct(n) && !Mt(n) ? o : n || Go(t) || o;
1068
+ }
1069
+ const Wo = async function(t) {
1070
+ const e = this.getOffsetParent || ge, o = this.getDimensions, n = await o(t.floating);
1071
+ return {
1072
+ reference: jo(t.reference, await e(t.floating), t.strategy),
1073
+ floating: {
1074
+ x: 0,
1075
+ y: 0,
1076
+ width: n.width,
1077
+ height: n.height
1078
+ }
1079
+ };
1080
+ };
1081
+ function Ko(t) {
1082
+ return B(t).direction === "rtl";
1083
+ }
1084
+ const qo = {
1085
+ convertOffsetParentRelativeRectToViewportRelativeRect: Lo,
1086
+ getDocumentElement: J,
1087
+ getClippingRect: Bo,
1088
+ getOffsetParent: ge,
1089
+ getElementRects: Wo,
1090
+ getClientRects: No,
1091
+ getDimensions: Fo,
1092
+ getScale: rt,
1093
+ isElement: H,
1094
+ isRTL: Ko
1095
+ };
1096
+ function ye(t, e) {
1097
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1098
+ }
1099
+ function Jo(t, e) {
1100
+ let o = null, n;
1101
+ const r = J(t);
1102
+ function s() {
1103
+ var c;
1104
+ clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
1105
+ }
1106
+ function i(c, f) {
1107
+ c === void 0 && (c = !1), f === void 0 && (f = 1), s();
1108
+ const u = t.getBoundingClientRect(), {
1109
+ left: l,
1110
+ top: d,
1111
+ width: h,
1112
+ height: p
1113
+ } = u;
1114
+ if (c || e(), !h || !p)
1115
+ return;
1116
+ const a = bt(d), y = bt(r.clientWidth - (l + h)), g = bt(r.clientHeight - (d + p)), T = bt(l), A = {
1117
+ rootMargin: -a + "px " + -y + "px " + -g + "px " + -T + "px",
1118
+ threshold: et(0, at(1, f)) || 1
1119
+ };
1120
+ let $ = !0;
1121
+ function z(F) {
1122
+ const C = F[0].intersectionRatio;
1123
+ if (C !== f) {
1124
+ if (!$)
1125
+ return i();
1126
+ C ? i(!1, C) : n = setTimeout(() => {
1127
+ i(!1, 1e-7);
1128
+ }, 1e3);
1129
+ }
1130
+ C === 1 && !ye(u, t.getBoundingClientRect()) && i(), $ = !1;
1131
+ }
1132
+ try {
1133
+ o = new IntersectionObserver(z, {
1134
+ ...A,
1135
+ // Handle <iframe>s
1136
+ root: r.ownerDocument
1137
+ });
1138
+ } catch {
1139
+ o = new IntersectionObserver(z, A);
1140
+ }
1141
+ o.observe(t);
1142
+ }
1143
+ return i(!0), s;
1144
+ }
1145
+ function Uo(t, e, o, n) {
1146
+ n === void 0 && (n = {});
1147
+ const {
1148
+ ancestorScroll: r = !0,
1149
+ ancestorResize: s = !0,
1150
+ elementResize: i = typeof ResizeObserver == "function",
1151
+ layoutShift: c = typeof IntersectionObserver == "function",
1152
+ animationFrame: f = !1
1153
+ } = n, u = Bt(t), l = r || s ? [...u ? pt(u) : [], ...pt(e)] : [];
1154
+ l.forEach((T) => {
1155
+ r && T.addEventListener("scroll", o, {
1156
+ passive: !0
1157
+ }), s && T.addEventListener("resize", o);
1158
+ });
1159
+ const d = u && c ? Jo(u, o) : null;
1160
+ let h = -1, p = null;
1161
+ i && (p = new ResizeObserver((T) => {
1162
+ let [P] = T;
1163
+ P && P.target === u && p && (p.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
1164
+ var A;
1165
+ (A = p) == null || A.observe(e);
1166
+ })), o();
1167
+ }), u && !f && p.observe(u), p.observe(e));
1168
+ let a, y = f ? nt(t) : null;
1169
+ f && g();
1170
+ function g() {
1171
+ const T = nt(t);
1172
+ y && !ye(y, T) && o(), y = T, a = requestAnimationFrame(g);
1173
+ }
1174
+ return o(), () => {
1175
+ var T;
1176
+ l.forEach((P) => {
1177
+ r && P.removeEventListener("scroll", o), s && P.removeEventListener("resize", o);
1178
+ }), d == null || d(), (T = p) == null || T.disconnect(), p = null, f && cancelAnimationFrame(a);
1179
+ };
1180
+ }
1181
+ const Yo = Io, Zo = $o, Xo = Oo, te = zo, Qo = (t, e, o) => {
1182
+ const n = /* @__PURE__ */ new Map(), r = {
1183
+ platform: qo,
1184
+ ...o
1185
+ }, s = {
1186
+ ...r.platform,
1187
+ _c: n
1188
+ };
1189
+ return So(t, e, {
1190
+ ...r,
1191
+ platform: s
1192
+ });
1193
+ };
1194
+ function tn({ middleware: t, placement: e = null, strategy: o, append: n, enabled: r }) {
1195
+ const s = I(null), i = I(null), c = I(null), f = I(null), u = I(null), l = I(null), d = I(null), h = I(o ?? "absolute"), p = I(null), a = () => {
1196
+ !s.value || !i.value || Qo(s.value, i.value, {
1197
+ middleware: t,
1198
+ placement: e,
1199
+ strategy: o
1200
+ }).then((g) => {
1201
+ c.value = g.x, f.value = g.y, h.value = g.strategy, u.value = g.middlewareData.arrow.x, l.value = g.middlewareData.arrow.y, d.value = g.placement;
1202
+ });
1203
+ };
1204
+ Gt(
1205
+ () => ({
1206
+ reference: m(s),
1207
+ floating: m(i),
1208
+ append: m(n)
1209
+ }),
1210
+ ({ floating: g, append: T }) => {
1211
+ T && Ye(g, T), a();
1212
+ },
1213
+ { flush: "post" }
1214
+ ), Gt(
1215
+ r,
1216
+ (g) => {
1217
+ if (!(!s.value || !i.value)) {
1218
+ if (!g)
1219
+ return y();
1220
+ p.value = Uo(s.value, i.value, a, {});
1221
+ }
1222
+ },
1223
+ { flush: "post" }
1224
+ );
1225
+ function y() {
1226
+ var g;
1227
+ (g = p.value) == null || g.call(p), p.value = null;
1228
+ }
1229
+ return {
1230
+ x: c,
1231
+ y: f,
1232
+ arrowX: u,
1233
+ arrowY: l,
1234
+ placement: d,
1235
+ reference: s,
1236
+ floating: i,
1237
+ strategy: h,
1238
+ update: a
1239
+ };
1240
+ }
1241
+ function en(t) {
1242
+ const { element: e, padding: o } = t;
1243
+ return {
1244
+ name: "arrow",
1245
+ options: t,
1246
+ fn(n) {
1247
+ return Ce(e) ? e.value != null ? te({ element: e.value, padding: o }).fn(n) : {} : e ? te({ element: e, padding: o }).fn(n) : {};
1248
+ }
1249
+ };
1250
+ }
1251
+ const on = ["data-placement"], ve = {
1252
+ __name: "FloatingPanel",
1253
+ props: {
1254
+ disabled: {
1255
+ type: Boolean,
1256
+ default: !1
1257
+ },
1258
+ placement: {
1259
+ type: String,
1260
+ default: "bottom"
1261
+ },
1262
+ theme: {
1263
+ type: String,
1264
+ default: "tooltip"
1265
+ },
1266
+ content: {
1267
+ type: String,
1268
+ default: ""
1269
+ },
1270
+ appendTo: {
1271
+ type: [Object, String],
1272
+ default: "body"
1273
+ },
1274
+ offset: {
1275
+ type: Number,
1276
+ default: 2
1277
+ }
1278
+ },
1279
+ setup(t) {
1280
+ const e = t, o = I(!1), n = I(null), { x: r, y: s, arrowX: i, arrowY: c, placement: f, reference: u, floating: l, strategy: d } = tn({
1281
+ placement: e.placement,
1282
+ middleware: [Xo(), Zo({ padding: 5 }), Yo(e.offset), en({ element: n, padding: 5 })],
1283
+ append: _(() => e.appendTo),
1284
+ enabled: o
1285
+ });
1286
+ function h() {
1287
+ e.disabled || o.value || (o.value = !0);
1288
+ }
1289
+ function p(g) {
1290
+ o.value && g && (o.value = !1);
1291
+ }
1292
+ function a(g) {
1293
+ u.value = g;
1294
+ }
1295
+ const y = {
1296
+ mouseenter: h,
1297
+ mouseleave: p,
1298
+ focus: h,
1299
+ blur: p
1300
+ };
1301
+ return Ne(l, (g) => {
1302
+ var T;
1303
+ (T = u.value) != null && T.contains(g.target) || p();
1304
+ }), (g, T) => (v(), w(D, null, [
1305
+ L(g.$slots, "default", {
1306
+ setRef: a,
1307
+ show: h,
1308
+ hide: p,
1309
+ events: y
1310
+ }),
1311
+ b("div", {
1312
+ ref_key: "floating",
1313
+ ref: l,
1314
+ "data-placement": m(f),
1315
+ style: jt({
1316
+ position: m(d),
1317
+ top: m(s) ? `${m(s)}px` : "",
1318
+ left: m(r) ? `${m(r)}px` : ""
1319
+ })
1320
+ }, [
1321
+ G(Ge, {
1322
+ name: "transition-fade",
1323
+ mode: "out-in"
1324
+ }, {
1325
+ default: k(() => [
1326
+ o.value ? (v(), w("div", {
1327
+ key: 0,
1328
+ class: O(["floating-content", [[`is-${e.theme}`]]])
1329
+ }, [
1330
+ L(g.$slots, "content", { close: p }, () => [
1331
+ M(x(t.content), 1)
1332
+ ]),
1333
+ b("div", {
1334
+ ref_key: "arrowRef",
1335
+ ref: n,
1336
+ class: "is-arrow",
1337
+ style: jt({
1338
+ position: m(d),
1339
+ top: m(c) ? `${m(c)}px` : "",
1340
+ left: m(i) ? `${m(i)}px` : ""
1341
+ })
1342
+ }, null, 4)
1343
+ ], 2)) : S("", !0)
1344
+ ]),
1345
+ _: 3
1346
+ })
1347
+ ], 12, on)
1348
+ ], 64));
1349
+ }
1350
+ }, nn = ["tabindex", "onMouseenter", "onMouseleave", "onFocus", "onBlur", "onClick", "onKeydown"], sn = { key: 0 }, rn = ["colspan"], an = { key: 1 }, ln = ["colspan"], we = {
1351
+ __name: "DataTable",
1352
+ props: {
1353
+ columns: {
1354
+ type: Object,
1355
+ default: () => ({})
1356
+ },
1357
+ rows: {
1358
+ type: Array,
1359
+ default: () => []
1360
+ },
1361
+ sort: {
1362
+ type: Object,
1363
+ default: () => ({})
1364
+ },
1365
+ isLoading: {
1366
+ type: Boolean,
1367
+ default: !1
1368
+ },
1369
+ appendTo: {
1370
+ type: [Object, String],
1371
+ default: null
1372
+ }
1373
+ },
1374
+ emits: ["sort"],
1375
+ setup(t, { emit: e }) {
1376
+ const o = t, n = e, { isLoading: r, appendTo: s } = Nt(o), i = Ve(r, { delay: je }), { t: c } = X(), f = Y("table"), u = _(() => o.columns), l = _(() => Object.keys(o.columns).length);
1377
+ function d(h, p) {
1378
+ h.sortOrders && n("sort", { target: p, orders: h.sortOrders });
1379
+ }
1380
+ return (h, p) => (v(), w("table", {
1381
+ class: O(m(f))
1382
+ }, [
1383
+ b("thead", null, [
1384
+ b("tr", null, [
1385
+ (v(!0), w(D, null, tt(u.value, (a, y) => (v(), R(ve, {
1386
+ key: y,
1387
+ placement: "top",
1388
+ content: a.tooltip,
1389
+ disabled: !a.tooltip,
1390
+ "append-to": m(s)
1391
+ }, {
1392
+ default: k(({ setRef: g, show: T, hide: P }) => [
1393
+ b("th", {
1394
+ ref_for: !0,
1395
+ ref: g,
1396
+ class: O([
1397
+ [a.class],
1398
+ {
1399
+ "is-active": y === t.sort.sortTarget && t.sort.orders[0].direction !== m(_t),
1400
+ "is-sortable": a.sortOrders,
1401
+ "is-desc": y === t.sort.sortTarget && t.sort.orders[0].direction === m(Kt),
1402
+ "is-asc": y === t.sort.sortTarget && t.sort.orders[0].direction === m(qt)
1403
+ }
1404
+ ]),
1405
+ tabindex: a.sortOrders ? 0 : -1,
1406
+ role: "button",
1407
+ onMouseenter: T,
1408
+ onMouseleave: P,
1409
+ onFocus: T,
1410
+ onBlur: P,
1411
+ onClick: (A) => d(a, y),
1412
+ onKeydown: [
1413
+ Wt(it((A) => d(a, y), ["prevent"]), ["space"]),
1414
+ Wt(it((A) => d(a, y), ["prevent"]), ["enter"])
1415
+ ]
1416
+ }, [
1417
+ L(h.$slots, `header-${y}`, { column: a }, () => [
1418
+ M(x(a.label), 1)
1419
+ ]),
1420
+ a.sortOrders && y !== t.sort.sortTarget ? (v(), R(m(Ut), {
1421
+ key: 0,
1422
+ class: "is-icon-sort"
1423
+ })) : S("", !0),
1424
+ y === t.sort.sortTarget && t.sort.orders[0].direction === m(_t) ? (v(), R(m(Ut), {
1425
+ key: 1,
1426
+ class: "is-icon-sort"
1427
+ })) : S("", !0),
1428
+ y === t.sort.sortTarget && t.sort.orders[0].direction === m(Kt) ? (v(), R(m(ho), {
1429
+ key: 2,
1430
+ class: "is-icon-sort"
1431
+ })) : S("", !0),
1432
+ y === t.sort.sortTarget && t.sort.orders[0].direction === m(qt) ? (v(), R(m(vo), {
1433
+ key: 3,
1434
+ class: "is-icon-sort"
1435
+ })) : S("", !0)
1436
+ ], 42, nn)
1437
+ ]),
1438
+ _: 2
1439
+ }, 1032, ["content", "disabled", "append-to"]))), 128))
1440
+ ])
1441
+ ]),
1442
+ b("tbody", null, [
1443
+ (v(!0), w(D, null, tt(o.rows, (a, y) => (v(), w("tr", {
1444
+ key: y,
1445
+ class: O(a.rowClasses)
1446
+ }, [
1447
+ (v(!0), w(D, null, tt(u.value, (g, T) => (v(), w("td", {
1448
+ key: T,
1449
+ class: O([
1450
+ [g.class],
1451
+ {
1452
+ "is-active": T === t.sort.sortTarget && t.sort.orders[0].direction !== m(_t),
1453
+ "is-zero": a[T] === 0 || a[T] === "00:00"
1454
+ }
1455
+ ])
1456
+ }, [
1457
+ L(h.$slots, `cell-${T}`, {
1458
+ row: a,
1459
+ prop: T
1460
+ }, () => [
1461
+ M(x(a[T]), 1)
1462
+ ])
1463
+ ], 2))), 128))
1464
+ ], 2))), 128))
1465
+ ]),
1466
+ m(i) && t.rows.length === 0 ? (v(), w("tfoot", sn, [
1467
+ b("tr", null, [
1468
+ b("td", { colspan: l.value }, [
1469
+ L(h.$slots, "loading", {}, () => [
1470
+ M(x(m(c)("common.loading")), 1)
1471
+ ])
1472
+ ], 8, rn)
1473
+ ])
1474
+ ])) : S("", !0),
1475
+ t.rows.length === 0 && !m(r) && !m(i) ? (v(), w("tfoot", an, [
1476
+ b("tr", null, [
1477
+ b("td", { colspan: l.value }, [
1478
+ L(h.$slots, "empty", {}, () => [
1479
+ M(x(m(c)("common.noData")), 1)
1480
+ ])
1481
+ ], 8, ln)
1482
+ ])
1483
+ ])) : S("", !0)
1484
+ ], 2));
1485
+ }
1486
+ }, cn = {
1487
+ xmlns: "http://www.w3.org/2000/svg",
1488
+ viewBox: "0 0 24 24",
1489
+ fill: "none",
1490
+ stroke: "currentColor",
1491
+ "stroke-width": "2",
1492
+ "stroke-linecap": "round",
1493
+ "stroke-linejoin": "round"
1494
+ };
1495
+ function un(t, e) {
1496
+ return v(), w("svg", cn, e[0] || (e[0] = [
1497
+ b("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1),
1498
+ b("line", {
1499
+ x1: "12",
1500
+ y1: "9",
1501
+ x2: "12",
1502
+ y2: "13"
1503
+ }, null, -1),
1504
+ b("line", {
1505
+ x1: "12",
1506
+ y1: "17",
1507
+ x2: "12.01",
1508
+ y2: "17"
1509
+ }, null, -1)
1510
+ ]));
1511
+ }
1512
+ const dn = { render: un }, qs = {
1513
+ __name: "ErrorNotice",
1514
+ props: {
1515
+ error: {
1516
+ type: Object,
1517
+ default: () => ({})
1518
+ }
1519
+ },
1520
+ setup(t) {
1521
+ const e = t, { t: o, hasTranslation: n } = X(), r = Y("error-notice"), s = _(() => {
1522
+ var i;
1523
+ return n(`errors.${e.error.key}`) ? o(`errors.${e.error.key}`, e.error.cause) : `${e.error.key}: ${(i = e.error) == null ? void 0 : i.message}`;
1524
+ });
1525
+ return (i, c) => (v(), w("div", {
1526
+ class: O(m(r))
1527
+ }, [
1528
+ G(m(dn), {
1529
+ class: "icon",
1530
+ width: "20",
1531
+ height: "20"
1532
+ }),
1533
+ b("span", null, x(s.value), 1)
1534
+ ], 2));
1535
+ }
1536
+ }, Js = {
1537
+ __name: "ErrorProvider",
1538
+ setup(t) {
1539
+ const { message: e, hasError: o, error: n } = De();
1540
+ return (r, s) => L(r.$slots, "default", {
1541
+ message: m(e),
1542
+ error: m(n),
1543
+ hasError: m(o)
1544
+ });
1545
+ }
1546
+ }, mn = { "undefined-column": "The {column} column is not exists!", "invalid-season-name": "Invalid season name", "api-key-not-found": "API Key not found" }, fn = { loading: "Loading...", noData: "No data to display", selectTimezone: "*All times are displayed according to your computer's time zone ({timezone}). Change: ", hungary: "Hungary", romania: "Romania", shootoutShort: "SO", overtimeShort: "OT", all: "All", report: "Report Sheet", video: "Video" }, pn = { inheritedPoints: { prependix: "", content: "{team} has {points} extra point(s)", appendix: "based on its results in the previous championship phase." }, penaltyPoints: { prependix: "* ", content: "{points} point(s) deducted from team {team}", appendix: "based on the decision of the Disciplinary Committee." } }, hn = { blank: "#", team: { short: "Team", tooltip: "Team name" }, game: { short: "GP", tooltip: "Game Played" }, wins: { short: "W", tooltip: "Wins" }, draw: { short: "D", tooltip: "Draw" }, otw: { short: "OTW", tooltip: "Overtime Wins" }, sow: { short: "SOW", tooltip: "Shoot Out Wins" }, sol: { short: "SOL", tooltip: "Shoot Out Losses" }, otl: { short: "OTL", tooltip: "Overtime Losses" }, losses: { short: "L", tooltip: "Losses" }, goalFor: { short: "GF", tooltip: "Goals For" }, goalAgainst: { short: "GA", tooltip: "Goals Against" }, goalDiff: { short: "GD", tooltip: "Goal Differential" }, points: { short: "P", tooltip: "Points" }, name: { short: "Name", tooltip: "Player name" }, goals: { short: "G", tooltip: "Goals" }, assists: { short: "A", tooltip: "Assists" }, plusMinus: { short: "+/-", tooltip: "Plus/Minus" }, sog: { short: "S", tooltip: "Shots on Goal" }, sogPercent: { short: "S%", tooltip: "Shooting percentage" }, gameName: { short: "#", tooltip: "Game name" }, gameDate: { short: "Date", tooltip: "Scheduled Date" }, gameDateTime: { short: "*Time ({offsetName})", tooltip: "Scheduled Time (Offset Name)" }, homeTeam: { short: "Home", tooltip: "Home Team" }, awayTeam: { short: "Away", tooltip: "Away Team" }, location: { short: "Location", tooltip: "Game Location" }, broadcast: { short: "Broadcast", tooltip: "Television Broadcast" }, minorPenalties: { short: "MINOR", tooltip: "Penalties Minor" }, majorPenalties: { short: "MAJOR", tooltip: "Penalties Major" }, misconducts: { short: "MISC", tooltip: "Penalties Misconduct" }, gameMisconducts: { short: "GA-MI", tooltip: "Penalties Game Misconduct" }, matchPenalties: { short: "MATCH", tooltip: "Penalties Match" }, pim: { short: "PIM", tooltip: "Penalty Minutes" }, pimPerGame: { short: "PIM/G", tooltip: "Penalty Minutes per Game" }, gpgk: { short: "GP", tooltip: "Games Played" }, gpi: { short: "GPI", tooltip: "Games Played In" }, toi: { short: "TOI", tooltip: "Time On Ice" }, toiPercent: { short: "TOI%", tooltip: "Time On Ice as Percentage" }, ga: { short: "GA", tooltip: "Goals Against" }, gaa: { short: "GAA", tooltip: "Goals Against Average" }, sa: { short: "SA", tooltip: "Shots Against" }, svs: { short: "SVS", tooltip: "Saves" }, svsPercent: { short: "SV%", tooltip: "Save Percentage" }, homeHeader: { short: "Home:", tooltip: "" }, awayHeader: { short: "Away:", tooltip: "" }, totalHeader: { short: "Total:", tooltip: "" }, homeGame: { short: "GP", tooltip: "Home Games Played" }, awayGame: { short: "GP", tooltip: "Away Games Played" }, totalGame: { short: "GP", tooltip: "Total Games Played" }, homeAttendance: { short: "Att", tooltip: "Home Attendance" }, awayAttendance: { short: "Att", tooltip: "Away Attendance" }, totalAttendance: { short: "Att", tooltip: "Total Attendance" }, homeAttendanceAvg: { short: "Avg", tooltip: "Home Average Attendance" }, awayAttendanceAvg: { short: "Avg", tooltip: "Away Average Attendance" }, totalAttendanceAvg: { short: "Avg", tooltip: "Total Average Attendance" }, powerplayDisadvantages: { short: "DVG", tooltip: "Disadvantages (Number of Times Shorthanded)" }, dvgTime: { short: "DVG-T", tooltip: "Disadvantages Time" }, dvgTimePP1: { short: "DVG-T PP1", tooltip: "Disadvantages Time (Period of PP1)" }, dvgTimePP2: { short: "DVG-T PP2", tooltip: "Disadvantages Time (Period of PP2)" }, ppga: { short: "PPGA", tooltip: "Powerplay Goals Against" }, shgf: { short: "SHGF", tooltip: "Shorthanded Goals For" }, pkPercent: { short: "PK%", tooltip: "Penalty Killing Percentage" }, adv: { short: "ADV", tooltip: "Advantages (Times on Powerplay)" }, advTime: { short: "ADV-T", tooltip: "Advantages Time (Period of Powerplay)" }, advTimePP1: { short: "ADV-T PP1", tooltip: "Advantages Time (Period of PP1)" }, advTimePP2: { short: "ADV-T PP2", tooltip: "Advantages Time (Period of PP2)" }, ppgf: { short: "PPGF", tooltip: "Powerplay Goals For" }, shga: { short: "SHGA", tooltip: "Shorthanded Goals Against" }, ppPercent: { short: "PP%", tooltip: "Powerplay Percentage" }, gfgp: { short: "GF/GP", tooltip: "Szerzett gólátlag" }, gagp: { short: "GA/GP", tooltip: "Kapott gólátlag" }, sogp: { short: "Shots/GP", tooltip: "Átlagos lövésszám" }, sagp: { short: "SA/GP", tooltip: "Shots Against per Game" }, jerseyNumber: { short: "#", tooltip: "Jersey Number" }, row: { short: "Row", tooltip: "Row" }, position: { short: "Position", tooltip: "Position" }, teamOfficials: { short: "Team officials", tooltip: "Team officials" }, score: { short: "Score", tooltip: "Actual Game Score" }, opponent: { short: "Opponent", tooltip: "Opponent" }, result: { short: "Result", tooltip: "Result" }, resultType: { short: "#", tooltip: "Result Type" }, atoi: { short: "ATOI", tooltip: "Average Time On Ice" }, shf: { short: "SHF", tooltip: "Shifts" }, ashf: { short: "ASHF", tooltip: "Average Shifts" }, eqToi: { short: "EQ-TOI", tooltip: "Time On Ice in Equal" }, pp1Toi: { short: "PP1-TOI", tooltip: "Time On Ice in PowerPlay 1" }, pp2Toi: { short: "PP2-TOI", tooltip: "Time On Ice in PowerPlay 2" }, sh1Toi: { short: "SH1-TOI", tooltip: "Time On Ice in Shorthanded 1" }, sh2Toi: { short: "SH2-TOI", tooltip: "Time On Ice in Shorthanded 2" }, eqAToi: { short: "EQ-A-TOI", tooltip: "Average Time On Ice in Equal" }, pp1AToi: { short: "PP1-A-TOI", tooltip: "Average Time On Ice in PowerPlay 1" }, pp2AToi: { short: "PP2-A-TOI", tooltip: "Average Time On Ice in PowerPlay 2" }, sh1AToi: { short: "SH1-A-TOI", tooltip: "Average Time On Ice in Shorthanded 1" }, sh2AToi: { short: "SH2-A-TOI", tooltip: "Average Time On Ice in Shorthanded 2" }, role: { short: "Role", tooltip: "Role" } }, gn = { data: { localTime: "Game local time" }, status: { jury: "Jury result", delayed: "Game delayed" }, period: { wu: "Preparation", pre: "Preparation Ended", p1: "First Period", p1_int: "First Period Ended", p2: "Second Period", p2_int: "Second Period Ended", p3: "Third Period", p3_int: "Third Period Ended", p4: "Fourth Period", p4_int: "Fourth Period Ended", p5: "Fifth Period", p5_int: "Fifth Period Ended", p6: "Sixth Period", p6_int: "Sixth Period Ended", ot: "Overtime", ot_int: "Overtime Ended", so: "Shoot Out", so_int: "Shoot Out Ended", end: "Game Ended", Bemelegítés: "Warm-up", "Bemelegítés vége": "Warm-up End", "1. harmad": "First period", "1. harmad vége": "First period End", "2. harmad": "Second period", "2. harmad vége": "Second period End", "3. harmad": "Third period", "3. harmad vége": "Third period End", "4. harmad": "IV. period", "4. harmad vége": "IV. period End", "5. harmad": "V. period", "5. harmad vége": "V. period End", "6. harmad": "VI. period", "6. harmad vége": "VI. period End", Hosszabbítás: "Overtime", "Hosszabbítás vége": "Overtime End", Büntetőlövések: "Penalty Shot", Végeredmény: "Game Completed", Szétlövés: "Shoot Out" } }, yn = {
1547
+ errors: mn,
1548
+ common: fn,
1549
+ additionalText: pn,
1550
+ table: hn,
1551
+ game: gn
1552
+ }, vn = { "undefined-column": "A(z) {column} oszlop nem létezik!", "invalid-season-name": "Érvénytelen szezon név", "api-key-not-found": "API Kulcs nem megfelelő" }, wn = { loading: "Töltődés...", noData: "Nincs megjeleníthető adat", selectTimezone: "*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ", hungary: "Magyarország", romania: "Románia", shootoutShort: "SO", overtimeShort: "OT", all: "Mind", report: "Jegyzőkönyv", video: "Videó" }, bn = { inheritedPoints: { prependix: "A megelőző bajnokság szakaszban elért eredménye alapján", content: "{team} csapata {points}", appendix: "többletponttal rendelkezik." }, penaltyPoints: { prependix: "* Fegyelmi Bizottság döntése alapján:", content: "{team} csapatától {points} pont", appendix: "levonva." } }, Tn = { blank: "#", team: { short: "Csapat", tooltip: "Csapatnév" }, game: { short: "GP", tooltip: "Mérkőzésszám" }, wins: { short: "W", tooltip: "Győzelem" }, draw: { short: "D", tooltip: "Döntetlen" }, otw: { short: "OTW", tooltip: "Győzelem Hosszabbításban" }, sow: { short: "SOW", tooltip: "Győzelem Szétlövésben" }, sol: { short: "SOL", tooltip: "Vereség Szétlövésben" }, otl: { short: "OTL", tooltip: "Vereség Hosszabbításban" }, losses: { short: "L", tooltip: "Vereség" }, goalFor: { short: "GF", tooltip: "Szerzett Gól" }, goalAgainst: { short: "GA", tooltip: "Kapott Gól" }, goalDiff: { short: "GD", tooltip: "Gólkülönbség" }, name: { short: "Név", tooltip: "Játékosnév" }, goals: { short: "G", tooltip: "Gólok" }, assists: { short: "A", tooltip: "Gólpasszok" }, points: { short: "P", tooltip: "Pontok" }, plusMinus: { short: "+/-", tooltip: "Plussz/Minusz" }, sog: { short: "S", tooltip: "Lövések" }, sogPercent: { short: "S%", tooltip: "Lövés Hatékonyság" }, gameName: { short: "#", tooltip: "Mérkőzés Sorszáma" }, gameDate: { short: "Dátum", tooltip: "Mérkőzés Dátuma" }, gameDateTime: { short: "*Idő ({offsetName})", tooltip: "Mérkőzés kezdési ideje (Zóna neve)" }, homeTeam: { short: "Hazai", tooltip: "Hazai Csapat" }, awayTeam: { short: "Vendég", tooltip: "Vendég Csapat" }, location: { short: "Helyszín", tooltip: "Mérkőzés Helyszíne" }, broadcast: { short: "TV", tooltip: "TV Közvetítés" }, minorPenalties: { short: "MINOR", tooltip: "Kisbüntetés (2p)" }, majorPenalties: { short: "MAJOR", tooltip: "Büntetés (5p)" }, misconducts: { short: "MISC", tooltip: "Fegyelmi büntetés (10p)" }, gameMisconducts: { short: "GA-MI", tooltip: "Fegyelmi büntetés (20p)" }, matchPenalties: { short: "MATCH", tooltip: "Végleges kiállítások (25p)" }, pim: { short: "BÜP", tooltip: "Büntetés Percek" }, pimPerGame: { short: "BÜP/M", tooltip: "Mérkőzésenkénti Büntetés Percek" }, gpgk: { short: "GP", tooltip: "Mérkőzésre Nevezve" }, gpi: { short: "GPI", tooltip: "Mérkőzésen Játszott" }, toi: { short: "TOI", tooltip: "Jégen Töltött Idő" }, toiPercent: { short: "TOI%", tooltip: "Jégen Töltött Idő Százalék" }, ga: { short: "GA", tooltip: "Kapott Gól" }, gaa: { short: "GAA", tooltip: "Kapott Gólátlag" }, sa: { short: "SA", tooltip: "Kapott Lövés" }, svs: { short: "SVS", tooltip: "Védett Lövés" }, svsPercent: { short: "VH%", tooltip: "Védés Hatékonyság" }, homeHeader: { short: "Hazai:", tooltip: "" }, awayHeader: { short: "Vendég:", tooltip: "" }, totalHeader: { short: "Összes:", tooltip: "" }, homeGame: { short: "M", tooltip: "Hazai Mérkőzés" }, awayGame: { short: "M", tooltip: "Vendég Mérkőzés" }, totalGame: { short: "M", tooltip: "Összes Mérkőzés" }, homeAttendance: { short: "Nézőszám", tooltip: "Hazai Néző" }, awayAttendance: { short: "Nézőszám", tooltip: "Vendég Néző" }, totalAttendance: { short: "Nézőszám", tooltip: "Összes Néző" }, homeAttendanceAvg: { short: "Átlag", tooltip: "Hazi Néző Átlag" }, awayAttendanceAvg: { short: "Átlag", tooltip: "Vendég Néző Átlag" }, totalAttendanceAvg: { short: "Átlag", tooltip: "Összes Néző Átlag" }, powerplayDisadvantages: { short: "DVG", tooltip: "Emberhátrányok" }, dvgTime: { short: "DVG-T", tooltip: "Emberhátrányban Töltött Idő" }, dvgTimePP1: { short: "DVG-T PP1", tooltip: "Szimpla emberhátrányban töltött idő" }, dvgTimePP2: { short: "DVG-T PP2", tooltip: "Kettős emberhátrányban töltött idő" }, ppga: { short: "PPGA", tooltip: "Emberhátrányban kapott gólok" }, shgf: { short: "SHGF", tooltip: "Emberhátrányban szerzett gól" }, pkPercent: { short: "PK%", tooltip: "Emberhátrány kivédekezés" }, adv: { short: "ADV", tooltip: "Emberelőnyök száma" }, advTime: { short: "ADV-T", tooltip: "Emberelőnyben töltött idő" }, advTimePP1: { short: "ADV-T PP1", tooltip: "Szimpla emberelőnyben töltött idő" }, advTimePP2: { short: "ADV-T PP2", tooltip: "Kettős emberelőnyben töltött idő" }, ppgf: { short: "PPGF", tooltip: "Emberelőnyben szerzett gólok" }, shga: { short: "SHGA", tooltip: "Emberelőnyben kapott gólok" }, ppPercent: { short: "PP%", tooltip: "Emberelőny kihasználás" }, gfgp: { short: "GF/GP", tooltip: "Szerzett gólátlag" }, gagp: { short: "GA/GP", tooltip: "Kapott gólátlag" }, sogp: { short: "Shots/GP", tooltip: "Átlagos lövésszám" }, sagp: { short: "SA/GP", tooltip: "Átlagos kapott lövésszám" }, jerseyNumber: { short: "#", tooltip: "Mezszám" }, row: { short: "Sor", tooltip: "Sor" }, position: { short: "Po", tooltip: "Poszt" }, teamOfficials: { short: "Hivatalos Személyek", tooltip: "Hivatalos Személyek" }, score: { short: "Eredmény", tooltip: "Aktuális eredmény" }, opponent: { short: "Ellenfél", tooltip: "Ellenfél" }, result: { short: "Eredmény", tooltip: "Végeredmény" }, resultType: { short: "#", tooltip: "Végeredmény típusa" }, atoi: { short: "ATOI", tooltip: "Átlagos jégen töltött idő" }, shf: { short: "SHF", tooltip: "Jégre lépések száma" }, ashf: { short: "ASHF", tooltip: "Jégre lépések száma átlagosan" }, eqToi: { short: "EQ-TOI", tooltip: "Jégen töltött idő azonos létszámban" }, pp1Toi: { short: "PP1-TOI", tooltip: "Jégen töltött idő egyszeres emberelőnyben" }, pp2Toi: { short: "PP2-TOI", tooltip: "Jégen töltött idő kétszeres emberelőnyben" }, sh1Toi: { short: "SH1-TOI", tooltip: "Jégen töltött idő egyszeres emberhátrányban" }, sh2Toi: { short: "SH2-TOI", tooltip: "Jégen töltött idő kétszeres emberhátrányban" }, eqAToi: { short: "EQ-A-TOI", tooltip: "Átlagos jégen töltött idő azonos létszámban" }, pp1AToi: { short: "PP1-A-TOI", tooltip: "Átlagos jégen töltött idő egyszeres emberelőnyben" }, pp2AToi: { short: "PP2-A-TOI", tooltip: "Átlagos jégen töltött idő kétszeres emberelőnyben" }, sh1AToi: { short: "SH1-A-TOI", tooltip: "Átlagos jégen töltött idő egyszeres emberhátrányban" }, sh2AToi: { short: "SH2-A-TOI", tooltip: "Átlagos jégen töltött idő kétszeres emberhátrányban" }, role: { short: "Szerep", tooltip: "Szerep" } }, xn = { data: { localTime: "Helyszín szerinti idő" }, status: { jury: "Versenybíróság", delayed: "Elhalasztva" }, period: { wu: "Bemelegítés", pre: "Bemelegítés vége", p1: "I. játékrész", p1_int: "I. játékrész vége", p2: "II. játékrész", p2_int: "II. játékrész vége", p3: "III. játékrész", p3_int: "III. játékrész vége", p4: "IV. játékrész", p4_int: "IV. játékrész vége", p5: "V. játékrész", p5_int: "V. játékrész vége", p6: "VI. játékrész", p6_int: "VI. játékrész vége", ot: "Hosszabbítás", ot_int: "Hosszabbítás vége", so: "Szétlövés", so_int: "Szétlövés vége", end: "Végeredmény", Bemelegítés: "Bemelegítés", "Bemelegítés vége": "Bemelegítés Vége", "1. harmad": "I. harmad", "1. harmad vége": "I. harmad Vége", "2. harmad": "II. harmad", "2. harmad vége": "II. harmad Vége", "3. harmad": "III. harmad", "3. harmad vége": "III. harmad Vége", "4. harmad": "IV. harmad", "4. harmad vége": "IV. harmad Vége", "5. harmad": "V. harmad", "5. harmad vége": "V. harmad Vége", "6. harmad": "VI. harmad", "6. harmad vége": "VI. harmad Vége", Hosszabbítás: "Hosszabbítás", "Hosszabbítás vége": "Hosszabbítás vége", Büntetők: "Szétlövés", "Büntetők vége": "Szétlövés vége", Végeredmény: "Végeredmény", Szétlövés: "Szétlövés" } }, Pn = {
1553
+ errors: vn,
1554
+ common: wn,
1555
+ additionalText: bn,
1556
+ table: Tn,
1557
+ game: xn
1558
+ }, kn = (t, e) => {
1559
+ const o = t.__vccOpts || t;
1560
+ for (const [n, r] of e)
1561
+ o[n] = r;
1562
+ return o;
1563
+ }, An = ee({
1564
+ props: {
1565
+ locale: {
1566
+ type: String,
1567
+ default: "hu"
1568
+ },
1569
+ messages: {
1570
+ type: Object,
1571
+ default: () => ({})
1572
+ }
1573
+ },
1574
+ setup(t) {
1575
+ const e = io({ hu: Pn, en: yn }, t.messages), { translate: o } = Me({
1576
+ locale: _(() => t.locale),
1577
+ messages: e
1578
+ });
1579
+ return {
1580
+ translate: o
1581
+ };
1582
+ }
1583
+ });
1584
+ function Sn(t, e, o, n, r, s) {
1585
+ return L(t.$slots, "default", { t: t.translate });
1586
+ }
1587
+ const Us = /* @__PURE__ */ kn(An, [["render", Sn]]), zn = ["src"], On = ["src", "title"], st = /* @__PURE__ */ Object.assign({
1588
+ inheritAttrs: !1
1589
+ }, {
1590
+ __name: "Image",
1591
+ props: {
1592
+ src: {
1593
+ type: String,
1594
+ default: ""
1595
+ },
1596
+ title: {
1597
+ type: String,
1598
+ default: ""
1599
+ },
1600
+ defaultSrc: {
1601
+ type: String,
1602
+ default: ""
1603
+ }
1604
+ },
1605
+ setup(t) {
1606
+ const e = t, { defaultSrc: o } = Nt(e), n = I({ src: e.src }), { error: r, isReady: s } = He(n, { resetOnExecute: !1, shallow: !1 });
1607
+ return (i, c) => (v(), w(D, null, [
1608
+ m(r) && m(o) ? (v(), w("img", {
1609
+ key: 0,
1610
+ src: m(o),
1611
+ class: O(["is-loaded is-default", [i.$attrs.class]])
1612
+ }, null, 10, zn)) : S("", !0),
1613
+ m(r) ? S("", !0) : (v(), w("img", {
1614
+ key: 1,
1615
+ src: n.value.src,
1616
+ class: O([i.$attrs.class, { "is-loaded": m(s) }]),
1617
+ title: e.title,
1618
+ loading: "lazy"
1619
+ }, null, 10, On))
1620
+ ], 64));
1621
+ }
1622
+ }), _n = { style: { "text-align": "center" } }, be = {
1623
+ __name: "LoadingIndicator",
1624
+ setup(t) {
1625
+ const { t: e } = X();
1626
+ return (o, n) => (v(), w("div", _n, x(m(e)("common.loading")), 1));
1627
+ }
1628
+ }, In = {
1629
+ xmlns: "http://www.w3.org/2000/svg",
1630
+ viewBox: "0 0 24 24",
1631
+ fill: "none",
1632
+ stroke: "currentColor",
1633
+ "stroke-width": "2",
1634
+ "stroke-linecap": "round",
1635
+ "stroke-linejoin": "round"
1636
+ };
1637
+ function $n(t, e) {
1638
+ return v(), w("svg", In, e[0] || (e[0] = [
1639
+ b("polyline", { points: "15 18 9 12 15 6" }, null, -1)
1640
+ ]));
1641
+ }
1642
+ const Cn = { render: $n }, Gn = {
1643
+ xmlns: "http://www.w3.org/2000/svg",
1644
+ viewBox: "0 0 24 24",
1645
+ fill: "none",
1646
+ stroke: "currentColor",
1647
+ "stroke-width": "2",
1648
+ "stroke-linecap": "round",
1649
+ "stroke-linejoin": "round"
1650
+ };
1651
+ function En(t, e) {
1652
+ return v(), w("svg", Gn, e[0] || (e[0] = [
1653
+ b("polyline", { points: "9 18 15 12 9 6" }, null, -1)
1654
+ ]));
1655
+ }
1656
+ const Rn = { render: En }, Ln = ["disabled"], Nn = ["disabled"], Vn = {
1657
+ key: 1,
1658
+ class: "is-disabled"
1659
+ }, Dn = ["disabled", "onClick"], Mn = {
1660
+ key: 2,
1661
+ class: "is-disabled"
1662
+ }, Hn = ["disabled"], Bn = ["disabled"], Ys = {
1663
+ __name: "Paginator",
1664
+ props: {
1665
+ page: {
1666
+ type: Number,
1667
+ required: !1,
1668
+ default: 0,
1669
+ validator: (t) => t >= 0
1670
+ },
1671
+ itemsPerPage: {
1672
+ type: Number,
1673
+ required: !1,
1674
+ default: 10,
1675
+ validator: (t) => t > 0
1676
+ },
1677
+ totalItems: {
1678
+ type: Number,
1679
+ required: !0,
1680
+ validator: (t) => t >= 0
1681
+ },
1682
+ rangeLength: {
1683
+ type: Number,
1684
+ default: 3,
1685
+ validator: (t) => t >= 2
1686
+ },
1687
+ isCompact: {
1688
+ type: Boolean,
1689
+ default: !1
1690
+ }
1691
+ },
1692
+ emits: ["change"],
1693
+ setup(t, { emit: e }) {
1694
+ const o = t, n = e, r = Y("paginator"), { page: s, pageCount: i, range: c, goTo: f, pageStep: u } = ao({
1695
+ currentPage: _(() => o.page),
1696
+ totalItems: _(() => o.totalItems),
1697
+ itemsPerPage: o.itemsPerPage,
1698
+ rangeLength: o.rangeLength,
1699
+ update: (l) => n("change", l)
1700
+ });
1701
+ return (l, d) => m(i) > 1 ? (v(), w("div", {
1702
+ key: 0,
1703
+ class: O(m(r))
1704
+ }, [
1705
+ b("button", {
1706
+ type: "button",
1707
+ disabled: m(s) === 1,
1708
+ onClick: d[0] || (d[0] = (h) => m(u)(-1))
1709
+ }, [
1710
+ L(l.$slots, "prev", {}, () => [
1711
+ G(m(Cn), { class: "icon paginator-left" })
1712
+ ])
1713
+ ], 8, Ln),
1714
+ t.isCompact ? S("", !0) : (v(), w("button", {
1715
+ key: 0,
1716
+ type: "button",
1717
+ disabled: m(s) === 1,
1718
+ onClick: d[1] || (d[1] = (h) => m(f)(1))
1719
+ }, " 1 ", 8, Nn)),
1720
+ t.isCompact ? S("", !0) : (v(), w("div", Vn, " ... ")),
1721
+ (v(!0), w(D, null, tt(m(c), (h) => (v(), w("button", {
1722
+ key: h,
1723
+ type: "button",
1724
+ class: O({ "is-active": h === m(s) }),
1725
+ disabled: h === m(s),
1726
+ onClick: (p) => m(f)(h)
1727
+ }, x(h), 11, Dn))), 128)),
1728
+ t.isCompact ? S("", !0) : (v(), w("div", Mn, d[4] || (d[4] = [
1729
+ b("span", null, "...", -1)
1730
+ ]))),
1731
+ t.isCompact ? S("", !0) : (v(), w("button", {
1732
+ key: 3,
1733
+ type: "button",
1734
+ disabled: m(s) === m(i),
1735
+ onClick: d[2] || (d[2] = (h) => m(f)(m(i)))
1736
+ }, x(m(i)), 9, Hn)),
1737
+ b("button", {
1738
+ type: "button",
1739
+ disabled: m(s) === m(i),
1740
+ onClick: d[3] || (d[3] = it((h) => m(u)(1), ["prevent"]))
1741
+ }, [
1742
+ L(l.$slots, "next", {}, () => [
1743
+ G(m(Rn), { class: "icon paginator-left" })
1744
+ ])
1745
+ ], 8, Bn)
1746
+ ], 2)) : S("", !0);
1747
+ }
1748
+ }, Te = {
1749
+ __name: "ResponsiveTable",
1750
+ setup(t) {
1751
+ const e = I(null), o = Y("table-responsive");
1752
+ return (n, r) => (v(), w("div", {
1753
+ ref_key: "el",
1754
+ ref: e,
1755
+ class: O(m(o))
1756
+ }, [
1757
+ L(n.$slots, "default", { el: e.value })
1758
+ ], 2));
1759
+ }
1760
+ }, Fn = {
1761
+ xmlns: "http://www.w3.org/2000/svg",
1762
+ viewBox: "0 0 24 24",
1763
+ fill: "none",
1764
+ stroke: "currentColor",
1765
+ "stroke-width": "2",
1766
+ "stroke-linecap": "round",
1767
+ "stroke-linejoin": "round"
1768
+ };
1769
+ function jn(t, e) {
1770
+ return v(), w("svg", Fn, e[0] || (e[0] = [
1771
+ b("rect", {
1772
+ x: "2",
1773
+ y: "3",
1774
+ width: "20",
1775
+ height: "14",
1776
+ rx: "2",
1777
+ ry: "2"
1778
+ }, null, -1),
1779
+ b("line", {
1780
+ x1: "8",
1781
+ y1: "21",
1782
+ x2: "16",
1783
+ y2: "21"
1784
+ }, null, -1),
1785
+ b("line", {
1786
+ x1: "12",
1787
+ y1: "17",
1788
+ x2: "12",
1789
+ y2: "21"
1790
+ }, null, -1)
1791
+ ]));
1792
+ }
1793
+ const Wn = { render: jn }, Kn = {
1794
+ xmlns: "http://www.w3.org/2000/svg",
1795
+ viewBox: "0 0 24 24",
1796
+ fill: "none",
1797
+ stroke: "currentColor",
1798
+ "stroke-width": "2",
1799
+ "stroke-linecap": "round",
1800
+ "stroke-linejoin": "round"
1801
+ };
1802
+ function qn(t, e) {
1803
+ return v(), w("svg", Kn, e[0] || (e[0] = [
1804
+ b("circle", {
1805
+ cx: "12",
1806
+ cy: "12",
1807
+ r: "1"
1808
+ }, null, -1),
1809
+ b("circle", {
1810
+ cx: "12",
1811
+ cy: "5",
1812
+ r: "1"
1813
+ }, null, -1),
1814
+ b("circle", {
1815
+ cx: "12",
1816
+ cy: "19",
1817
+ r: "1"
1818
+ }, null, -1)
1819
+ ]));
1820
+ }
1821
+ const Jn = { render: qn }, Un = {
1822
+ xmlns: "http://www.w3.org/2000/svg",
1823
+ viewBox: "0 0 24 24",
1824
+ fill: "none",
1825
+ stroke: "currentColor",
1826
+ "stroke-width": "2",
1827
+ "stroke-linecap": "round",
1828
+ "stroke-linejoin": "round"
1829
+ };
1830
+ function Yn(t, e) {
1831
+ return v(), w("svg", Un, e[0] || (e[0] = [
1832
+ b("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }, null, -1),
1833
+ b("rect", {
1834
+ x: "8",
1835
+ y: "2",
1836
+ width: "8",
1837
+ height: "4",
1838
+ rx: "1",
1839
+ ry: "1"
1840
+ }, null, -1)
1841
+ ]));
1842
+ }
1843
+ const Zn = { render: Yn }, Xn = {
1844
+ xmlns: "http://www.w3.org/2000/svg",
1845
+ viewBox: "0 0 24 24",
1846
+ fill: "none",
1847
+ stroke: "currentColor",
1848
+ "stroke-width": "2",
1849
+ "stroke-linecap": "round",
1850
+ "stroke-linejoin": "round"
1851
+ };
1852
+ function Qn(t, e) {
1853
+ return v(), w("svg", Xn, e[0] || (e[0] = [
1854
+ b("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1),
1855
+ b("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1)
1856
+ ]));
1857
+ }
1858
+ const ts = { render: Qn }, es = { class: "is-team-name-long" }, os = { class: "is-team-name-short" }, ns = { class: "is-team-name-long" }, ss = { class: "is-team-name-short" }, rs = {
1859
+ key: 0,
1860
+ class: "is-text-dark"
1861
+ }, is = ["href", "target"], as = {
1862
+ key: 0,
1863
+ class: "label"
1864
+ }, ls = {
1865
+ key: 1,
1866
+ class: "label"
1867
+ }, cs = {
1868
+ key: 2,
1869
+ class: "label"
1870
+ }, us = { key: 1 }, ds = ["onClick", "onFocus", "onBlur"], ms = { class: "is-dropdown-menu" }, fs = ["href", "target"], ps = { key: 0 }, hs = ["href"], Zs = {
1871
+ __name: "ScheduleTable",
1872
+ props: {
1873
+ rows: {
1874
+ type: Array,
1875
+ default: () => []
1876
+ },
1877
+ isLoading: {
1878
+ type: Boolean,
1879
+ deafult: !1
1880
+ },
1881
+ hideColumns: {
1882
+ type: String,
1883
+ default: ""
1884
+ },
1885
+ offsetName: {
1886
+ type: String,
1887
+ default: ""
1888
+ },
1889
+ externalGameResolver: {
1890
+ type: Function,
1891
+ required: !0
1892
+ },
1893
+ externalGameResolverTarget: {
1894
+ type: String,
1895
+ default: "_blank"
1896
+ }
1897
+ },
1898
+ setup(t) {
1899
+ const e = t, o = I(null), { onError: n } = oe(), { columns: r, error: s } = ne(
1900
+ Ue,
1901
+ _(() => e.hideColumns),
1902
+ _(() => ({
1903
+ offsetName: e.offsetName
1904
+ }))
1905
+ );
1906
+ Be(
1907
+ s,
1908
+ () => n(
1909
+ new re(Tt.message, {
1910
+ ...Tt.options,
1911
+ cause: { column: s.value }
1912
+ })
1913
+ ),
1914
+ {
1915
+ immediate: !0
1916
+ }
1917
+ );
1918
+ const { t: i } = X();
1919
+ return (c, f) => (v(), w(D, null, [
1920
+ G(Te, null, {
1921
+ default: k(({ el: u }) => [
1922
+ G(we, {
1923
+ columns: m(r),
1924
+ rows: e.rows,
1925
+ "is-loading": t.isLoading,
1926
+ "append-to": o.value || u
1927
+ }, {
1928
+ "cell-homeTeamName": k(({ row: l }) => [
1929
+ b("span", es, x(l.homeTeam.longName), 1),
1930
+ b("span", os, x(l.homeTeam.shortName), 1)
1931
+ ]),
1932
+ "cell-awayTeamName": k(({ row: l }) => [
1933
+ b("span", ns, x(l.awayTeam.longName), 1),
1934
+ b("span", ss, x(l.awayTeam.shortName), 1)
1935
+ ]),
1936
+ "cell-homeTeamLogo": k(({ row: l }) => [
1937
+ (v(), R(st, {
1938
+ key: l.homeTeam.id,
1939
+ class: "is-logo-image is-right",
1940
+ src: l.homeTeam.logo
1941
+ }, null, 8, ["src"]))
1942
+ ]),
1943
+ "cell-awayTeamLogo": k(({ row: l }) => [
1944
+ (v(), R(st, {
1945
+ key: l.awayTeam.id,
1946
+ class: "is-logo-image is-right",
1947
+ src: l.awayTeam.logo
1948
+ }, null, 8, ["src"]))
1949
+ ]),
1950
+ "cell-gameResult": k(({ row: l }) => [
1951
+ l.gameStatus === 0 ? (v(), w("span", rs, "-:-")) : (v(), w("a", {
1952
+ key: 1,
1953
+ href: t.externalGameResolver(l.gameId),
1954
+ target: t.externalGameResolverTarget,
1955
+ class: O({ "is-text-dark": l.gameStatus !== 1, "is-text-accent": l.gameStatus === 1 })
1956
+ }, x(l.homeTeamScore) + ":" + x(l.awayTeamScore), 11, is))
1957
+ ]),
1958
+ "cell-gameResultType": k(({ row: l }) => [
1959
+ l.isOvertime ? (v(), w("span", as, x(m(i)("common.overtimeShort")), 1)) : S("", !0),
1960
+ l.isShootout ? (v(), w("span", ls, x(m(i)("common.shootoutShort")), 1)) : S("", !0),
1961
+ l.seriesStandings ? (v(), w("span", cs, x(l.seriesStandings), 1)) : S("", !0)
1962
+ ]),
1963
+ "cell-broadcast": k(({ row: l }) => [
1964
+ l.broadcast ? (v(), R(m(Wn), { key: 0 })) : (v(), w("span", us))
1965
+ ]),
1966
+ "cell-location": k(({ row: l }) => {
1967
+ var d;
1968
+ return [
1969
+ M(x(((d = l.location) == null ? void 0 : d.locationName) ?? ""), 1)
1970
+ ];
1971
+ }),
1972
+ "cell-more": k(({ row: l }) => [
1973
+ G(ve, {
1974
+ offset: 2,
1975
+ placement: "left",
1976
+ theme: "content",
1977
+ "append-to": u
1978
+ }, {
1979
+ default: k(({ setRef: d, show: h, hide: p }) => [
1980
+ b("button", {
1981
+ ref: d,
1982
+ onClick: it(h, ["stop"]),
1983
+ onFocus: h,
1984
+ onBlur: p
1985
+ }, [
1986
+ G(m(Jn))
1987
+ ], 40, ds)
1988
+ ]),
1989
+ content: k(() => [
1990
+ b("ul", ms, [
1991
+ b("li", null, [
1992
+ b("a", {
1993
+ href: t.externalGameResolver(l.gameId),
1994
+ class: "is-dropdown-item",
1995
+ target: t.externalGameResolverTarget
1996
+ }, [
1997
+ G(m(Zn), { width: "14" }),
1998
+ M(" " + x(m(i)("common.report")), 1)
1999
+ ], 8, fs)
2000
+ ]),
2001
+ l.video ? (v(), w("li", ps, [
2002
+ b("a", {
2003
+ href: l.video,
2004
+ class: "is-dropdown-item",
2005
+ target: "_blank"
2006
+ }, [
2007
+ G(m(ts), { width: "14" }),
2008
+ M(" " + x(m(i)("common.video")), 1)
2009
+ ], 8, hs)
2010
+ ])) : S("", !0)
2011
+ ])
2012
+ ]),
2013
+ _: 2
2014
+ }, 1032, ["append-to"])
2015
+ ]),
2016
+ loading: k(() => [
2017
+ G(be)
2018
+ ]),
2019
+ _: 2
2020
+ }, 1032, ["columns", "rows", "is-loading", "append-to"])
2021
+ ]),
2022
+ _: 1
2023
+ }),
2024
+ b("div", {
2025
+ ref_key: "tooltipContainer",
2026
+ ref: o
2027
+ }, null, 512)
2028
+ ], 64));
2029
+ }
2030
+ }, gs = { class: "g-row g-gap-normal is-mb-5" }, ys = ["value"], vs = { key: 0 }, ws = ["onClick"], Xs = {
2031
+ __name: "SeasonSelector",
2032
+ props: {
2033
+ seasons: {
2034
+ type: Array,
2035
+ default: () => []
2036
+ },
2037
+ championshipId: {
2038
+ type: Number,
2039
+ default: 0
2040
+ },
2041
+ sections: {
2042
+ type: Array,
2043
+ default: () => []
2044
+ },
2045
+ sectionId: {
2046
+ type: Number,
2047
+ default: 0
2048
+ },
2049
+ isSectionSelectionDisabled: {
2050
+ type: Boolean,
2051
+ default: !1
2052
+ }
2053
+ },
2054
+ emits: ["onChangeSeason", "onChangeSection"],
2055
+ setup(t, { emit: e }) {
2056
+ const o = t, n = e, { t: r } = X(), s = _({
2057
+ get() {
2058
+ return o.championshipId;
2059
+ },
2060
+ set(c) {
2061
+ n("onChangeSeason", c);
2062
+ }
2063
+ });
2064
+ function i(c) {
2065
+ n("onChangeSection", c);
2066
+ }
2067
+ return (c, f) => (v(), w(D, null, [
2068
+ b("div", gs, [
2069
+ b("div", null, [
2070
+ b("label", {
2071
+ for: "season",
2072
+ class: O(m(Y)("label"))
2073
+ }, x(m(r)("selection.season")), 3),
2074
+ G(co, {
2075
+ id: "season",
2076
+ modelValue: s.value,
2077
+ "onUpdate:modelValue": f[0] || (f[0] = (u) => s.value = u)
2078
+ }, {
2079
+ default: k(() => [
2080
+ (v(!0), w(D, null, tt(t.seasons, (u) => (v(), w("option", {
2081
+ key: u.championshipId,
2082
+ value: u.championshipId
2083
+ }, x(u.seasonName), 9, ys))), 128))
2084
+ ]),
2085
+ _: 1
2086
+ }, 8, ["modelValue"])
2087
+ ]),
2088
+ L(c.$slots, "default")
2089
+ ]),
2090
+ t.isSectionSelectionDisabled ? S("", !0) : (v(), w("div", vs, [
2091
+ (v(!0), w(D, null, tt(t.sections, (u) => (v(), w("button", {
2092
+ key: u.phaseId,
2093
+ class: O([m(Y)("tab-button"), { "is-active": u.sectionId === t.sectionId }]),
2094
+ onClick: (l) => i(u)
2095
+ }, x(u.sectionName), 11, ws))), 128))
2096
+ ]))
2097
+ ], 64));
2098
+ }
2099
+ }, bs = { class: "is-portrait-image" }, Ts = ["href"], xs = { class: "is-team-name-long" }, Ps = { class: "is-team-name-short" }, ks = { class: "is-team-name-long" }, As = { key: 0 }, Ss = { class: "is-team-name-short" }, zs = { key: 0 }, Os = { class: "is-team-name-long" }, _s = { class: "is-team-name-short" }, Is = { class: "is-team-name-long" }, $s = { class: "is-team-name-short" }, Cs = ["href"], Gs = {
2100
+ key: 0,
2101
+ class: "is-text-dark"
2102
+ }, Es = ["href", "target"], Rs = {
2103
+ key: 0,
2104
+ class: "label"
2105
+ }, Ls = {
2106
+ key: 1,
2107
+ class: "label"
2108
+ }, Ns = {
2109
+ key: 2,
2110
+ class: "label"
2111
+ }, Qs = {
2112
+ __name: "StatisticsTable",
2113
+ props: {
2114
+ columns: {
2115
+ type: Object,
2116
+ required: !0
2117
+ },
2118
+ rows: {
2119
+ type: Array,
2120
+ default: () => []
2121
+ },
2122
+ isLoading: {
2123
+ type: Boolean,
2124
+ deafult: !1
2125
+ },
2126
+ hideColumns: {
2127
+ type: String,
2128
+ default: ""
2129
+ },
2130
+ sort: {
2131
+ type: Object,
2132
+ default: () => ({})
2133
+ },
2134
+ externalTeamResolver: {
2135
+ type: Function,
2136
+ required: !0
2137
+ },
2138
+ externalPlayerResolver: {
2139
+ type: Function,
2140
+ default: () => {
2141
+ }
2142
+ },
2143
+ externalGameResolver: {
2144
+ type: Function,
2145
+ default: () => {
2146
+ }
2147
+ },
2148
+ externalGameResolverTarget: {
2149
+ type: String,
2150
+ default: "_self"
2151
+ },
2152
+ isTeamLinked: {
2153
+ type: Boolean,
2154
+ default: !1
2155
+ },
2156
+ isPlayerLinked: {
2157
+ type: Boolean,
2158
+ default: !1
2159
+ },
2160
+ appendTo: {
2161
+ type: [Object, String],
2162
+ default: null
2163
+ },
2164
+ offsetName: {
2165
+ type: String,
2166
+ default: ""
2167
+ }
2168
+ },
2169
+ emits: ["sort"],
2170
+ setup(t, { emit: e }) {
2171
+ const o = t, n = e, { columns: r, hideColumns: s } = Nt(o), { onError: i } = oe(), { t: c } = X(), { columns: f, error: u } = ne(
2172
+ r,
2173
+ s,
2174
+ _(() => ({
2175
+ offsetName: o.offsetName
2176
+ }))
2177
+ );
2178
+ u.value && i(
2179
+ new re(Tt.message, {
2180
+ ...Tt.options,
2181
+ cause: { column: u.value }
2182
+ })
2183
+ );
2184
+ const l = (d) => n("sort", d);
2185
+ return (d, h) => (v(), R(Te, null, {
2186
+ default: k(({ el: p }) => [
2187
+ G(we, {
2188
+ columns: m(f),
2189
+ sort: o.sort,
2190
+ rows: o.rows,
2191
+ "is-loading": t.isLoading,
2192
+ "append-to": t.appendTo || p,
2193
+ onSort: l
2194
+ }, Ee({
2195
+ "cell-index": k(({ row: a }) => [
2196
+ b("span", {
2197
+ class: O(a.indexClass)
2198
+ }, x(a.index), 3)
2199
+ ]),
2200
+ "cell-playerPortrait": k(({ row: a }) => [
2201
+ b("div", bs, [
2202
+ (v(), R(st, {
2203
+ key: a.player.playerId,
2204
+ src: a.player.picture,
2205
+ "default-src": m(We)
2206
+ }, null, 8, ["src", "default-src"]))
2207
+ ])
2208
+ ]),
2209
+ "cell-teamLogo": k(({ row: a }) => {
2210
+ var y, g;
2211
+ return [
2212
+ (v(), R(st, {
2213
+ key: ((y = a.team) == null ? void 0 : y.id) ?? a.id,
2214
+ class: "is-logo-image",
2215
+ src: (g = a.team) == null ? void 0 : g.logo
2216
+ }, null, 8, ["src"]))
2217
+ ];
2218
+ }),
2219
+ "cell-homeTeamLogo": k(({ row: a }) => {
2220
+ var y, g;
2221
+ return [
2222
+ (v(), R(st, {
2223
+ key: (y = a.homeTeam) == null ? void 0 : y.id,
2224
+ class: "is-logo-image is-right",
2225
+ src: (g = a.homeTeam) == null ? void 0 : g.logo
2226
+ }, null, 8, ["src"]))
2227
+ ];
2228
+ }),
2229
+ "cell-awayTeamLogo": k(({ row: a }) => {
2230
+ var y, g;
2231
+ return [
2232
+ (v(), R(st, {
2233
+ key: (y = a.awayTeam) == null ? void 0 : y.id,
2234
+ class: "is-logo-image is-right",
2235
+ src: (g = a.awayTeam) == null ? void 0 : g.logo
2236
+ }, null, 8, ["src"]))
2237
+ ];
2238
+ }),
2239
+ "cell-teamName": k(({ row: a }) => {
2240
+ var y, g, T, P;
2241
+ return [
2242
+ t.isTeamLinked ? (v(), w("a", {
2243
+ key: 0,
2244
+ href: t.externalTeamResolver(a),
2245
+ target: "_blank"
2246
+ }, [
2247
+ b("span", xs, x((y = a.team) == null ? void 0 : y.longName), 1),
2248
+ b("span", Ps, x((g = a.team) == null ? void 0 : g.shortName), 1)
2249
+ ], 8, Ts)) : (v(), w(D, { key: 1 }, [
2250
+ b("span", ks, [
2251
+ M(x((T = a.team) == null ? void 0 : T.longName) + " ", 1),
2252
+ a.penaltyPoints ? (v(), w("span", As, h[0] || (h[0] = [
2253
+ b("sup", null, "*", -1)
2254
+ ]))) : S("", !0)
2255
+ ]),
2256
+ b("span", Ss, [
2257
+ M(x((P = a.team) == null ? void 0 : P.shortName) + " ", 1),
2258
+ a.penaltyPoints ? (v(), w("span", zs, h[1] || (h[1] = [
2259
+ b("sup", null, "*", -1)
2260
+ ]))) : S("", !0)
2261
+ ])
2262
+ ], 64))
2263
+ ];
2264
+ }),
2265
+ "cell-homeTeamName": k(({ row: a }) => {
2266
+ var y, g;
2267
+ return [
2268
+ b("span", Os, x((y = a.homeTeam) == null ? void 0 : y.longName), 1),
2269
+ b("span", _s, x((g = a.homeTeam) == null ? void 0 : g.shortName), 1)
2270
+ ];
2271
+ }),
2272
+ "cell-awayTeamName": k(({ row: a }) => {
2273
+ var y, g;
2274
+ return [
2275
+ b("span", Is, x((y = a.awayTeam) == null ? void 0 : y.longName), 1),
2276
+ b("span", $s, x((g = a.awayTeam) == null ? void 0 : g.shortName), 1)
2277
+ ];
2278
+ }),
2279
+ "cell-location": k(({ row: a }) => {
2280
+ var y;
2281
+ return [
2282
+ M(x(((y = a.location) == null ? void 0 : y.locationName) ?? ""), 1)
2283
+ ];
2284
+ }),
2285
+ "cell-gameResult": k(({ row: a }) => [
2286
+ a.gameStatus === 0 ? (v(), w("span", Gs, "-:-")) : (v(), w("a", {
2287
+ key: 1,
2288
+ href: t.externalGameResolver(a),
2289
+ target: t.externalGameResolverTarget,
2290
+ class: O({ "is-text-dark": a.gameStatus !== 1, "is-text-accent": a.gameStatus === 1 })
2291
+ }, x(a.homeTeamScore) + ":" + x(a.awayTeamScore), 11, Es))
2292
+ ]),
2293
+ "cell-gameResultType": k(({ row: a }) => [
2294
+ a.isOvertime ? (v(), w("span", Rs, x(m(c)("common.overtimeShort")), 1)) : S("", !0),
2295
+ a.isShootout ? (v(), w("span", Ls, x(m(c)("common.shootoutShort")), 1)) : S("", !0),
2296
+ a.seriesStandings ? (v(), w("span", Ns, x(a.seriesStandings), 1)) : S("", !0)
2297
+ ]),
2298
+ loading: k(() => [
2299
+ G(be)
2300
+ ]),
2301
+ _: 2
2302
+ }, [
2303
+ t.isPlayerLinked ? {
2304
+ name: "cell-name",
2305
+ fn: k(({ row: a }) => [
2306
+ b("a", {
2307
+ href: t.externalPlayerResolver(a),
2308
+ target: "_blank"
2309
+ }, x(a.name), 9, Cs)
2310
+ ]),
2311
+ key: "0"
2312
+ } : void 0
2313
+ ]), 1032, ["columns", "sort", "rows", "is-loading", "append-to"])
2314
+ ]),
2315
+ _: 1
2316
+ }));
2317
+ }
2318
+ }, Vs = ["onClick"], tr = {
2319
+ __name: "TimezoneSelector",
2320
+ props: {
2321
+ locale: {
2322
+ type: String,
2323
+ default: "hu"
2324
+ },
2325
+ currentZone: {
2326
+ type: String,
2327
+ required: !0
2328
+ }
2329
+ },
2330
+ emits: ["change"],
2331
+ setup(t, { emit: e }) {
2332
+ const o = t, n = e, { t: r } = X(), s = Y("timezone-selector"), i = _(() => wt(/* @__PURE__ */ new Date(), null, o.locale)), c = Je(), f = _(() => Array.from(Ke.values()).map((l) => ({
2333
+ ...l,
2334
+ isActive: wt(/* @__PURE__ */ new Date(), o.currentZone, o.locale) === wt(/* @__PURE__ */ new Date(), l.timezone, o.locale),
2335
+ zoneOffsetName: wt(/* @__PURE__ */ new Date(), l.timezone, o.locale)
2336
+ }))), u = (l) => n("change", l);
2337
+ return (l, d) => (v(), w("div", {
2338
+ class: O(m(s))
2339
+ }, [
2340
+ G(m(Fe), {
2341
+ path: "common.selectTimezone",
2342
+ tag: "span"
2343
+ }, {
2344
+ timezone: k(() => [
2345
+ b("a", {
2346
+ href: "#",
2347
+ onClick: d[0] || (d[0] = it((h) => u(m(c)), ["prevent"]))
2348
+ }, x(i.value), 1)
2349
+ ]),
2350
+ _: 1
2351
+ }),
2352
+ (v(!0), w(D, null, tt(f.value, (h) => (v(), w("a", {
2353
+ key: h.countryLabelKey,
2354
+ href: "#",
2355
+ class: O({ "is-active": h.isActive }),
2356
+ onClick: it((p) => u(h.timezone), ["prevent"])
2357
+ }, x(m(r)(`common.${h.countryLabelKey}`)) + " (" + x(h.zoneOffsetName) + ") ", 11, Vs))), 128))
2358
+ ], 2));
2359
+ }
2360
+ };
2361
+ export {
2362
+ Us as I,
2363
+ Ks as _,
2364
+ co as a,
2365
+ we as b,
2366
+ qs as c,
2367
+ Js as d,
2368
+ Ws as e,
2369
+ ve as f,
2370
+ st as g,
2371
+ be as h,
2372
+ Ys as i,
2373
+ Te as j,
2374
+ Zs as k,
2375
+ Xs as l,
2376
+ Qs as m,
2377
+ tr as n
2378
+ };