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