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