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