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