@mjsz-vbr-elements/core 2.2.1 → 2.2.2
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.
- package/dist/{SeasonSelector-hqWIAEq6.js → AdditionalStandingsText-nuhfGhAD.js} +505 -460
- package/dist/columns.js +1 -1
- package/dist/components.js +18 -17
- package/dist/composables.js +39 -38
- package/dist/constants.js +1 -1
- package/dist/{convert-PMHuZhPy.js → convert-rWfB71vI.js} +2 -2
- package/dist/{datetime-EyEBo0-h.js → datetime--bMmvxSM.js} +16 -16
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +98 -96
- package/dist/{useSort-WcJ_BIws.js → useAdditionalText-hj0kZWr7.js} +246 -225
- package/dist/utils.js +4 -4
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.2 - 08/01/2024, 11:28:47
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { computed as A, withDirectives as fe, openBlock as y, createElementBlock as
|
|
9
|
-
import { f as
|
|
10
|
-
import {
|
|
11
|
-
import { LAZY_LOADING_STATE_DELAY as
|
|
12
|
-
import { i as
|
|
13
|
-
import { COLUMNS_SCHEDULE as
|
|
14
|
-
const
|
|
8
|
+
import { computed as A, withDirectives as fe, openBlock as y, 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 O, normalizeStyle as It, createVNode as C, Transition as ve, withCtx as T, createTextVNode as K, toDisplayString as x, createCommentVNode as $, toRefs as zt, renderList as tt, 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 nt, a as Pe, c as $e, j as Se, n as _e, i as ze, b as qt, u as Jt, w as Ae, h as Ge } from "./useAdditionalText-hj0kZWr7.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 { i as Re, W as Zt, U as yt } from "./convert-rWfB71vI.js";
|
|
13
|
+
import { COLUMNS_SCHEDULE as Ne } from "./columns.js";
|
|
14
|
+
const De = {
|
|
15
15
|
__name: "BaseSelect",
|
|
16
16
|
props: {
|
|
17
17
|
modelValue: {
|
|
@@ -21,10 +21,10 @@ const Ne = {
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
23
|
setup(t, { emit: e }) {
|
|
24
|
-
const o = t, n = e, a =
|
|
25
|
-
return (r, c) => fe((y(),
|
|
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((y(), w("select", {
|
|
26
26
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => s.value = f),
|
|
27
|
-
class: _([
|
|
27
|
+
class: _([m(a), "is-select"])
|
|
28
28
|
}, [
|
|
29
29
|
I(r.$slots, "default")
|
|
30
30
|
], 2)), [
|
|
@@ -32,7 +32,7 @@ const Ne = {
|
|
|
32
32
|
]);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
var
|
|
35
|
+
var Oe = /* @__PURE__ */ Yt(function(e, o, n) {
|
|
36
36
|
var a = {}, s;
|
|
37
37
|
o = o || {}, n = n || {};
|
|
38
38
|
for (s in o)
|
|
@@ -40,16 +40,16 @@ var Re = /* @__PURE__ */ Yt(function(e, o, n) {
|
|
|
40
40
|
for (s in n)
|
|
41
41
|
ft(s, n) && !ft(s, a) && (a[s] = n[s]);
|
|
42
42
|
return a;
|
|
43
|
-
}),
|
|
44
|
-
return
|
|
45
|
-
return
|
|
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
46
|
}, o, n);
|
|
47
|
-
}),
|
|
48
|
-
return
|
|
47
|
+
}), He = /* @__PURE__ */ Ce(function(e, o) {
|
|
48
|
+
return Me(function(n, a, s) {
|
|
49
49
|
return s;
|
|
50
50
|
}, e, o);
|
|
51
51
|
});
|
|
52
|
-
const
|
|
52
|
+
const Be = He, Fe = {
|
|
53
53
|
"aria-hidden": "true",
|
|
54
54
|
focusable: "false",
|
|
55
55
|
"data-prefix": "fas",
|
|
@@ -58,16 +58,16 @@ const Me = Oe, He = {
|
|
|
58
58
|
role: "img",
|
|
59
59
|
xmlns: "http://www.w3.org/2000/svg",
|
|
60
60
|
viewBox: "0 0 320 512"
|
|
61
|
-
},
|
|
61
|
+
}, je = /* @__PURE__ */ b("path", {
|
|
62
62
|
fill: "currentColor",
|
|
63
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),
|
|
65
|
-
|
|
64
|
+
}, null, -1), We = [
|
|
65
|
+
je
|
|
66
66
|
];
|
|
67
|
-
function
|
|
68
|
-
return y(),
|
|
67
|
+
function Ke(t, e) {
|
|
68
|
+
return y(), w("svg", Fe, We);
|
|
69
69
|
}
|
|
70
|
-
const Ot = { render:
|
|
70
|
+
const Ot = { render: Ke }, Ue = {
|
|
71
71
|
"aria-hidden": "true",
|
|
72
72
|
focusable: "false",
|
|
73
73
|
"data-prefix": "fas",
|
|
@@ -76,16 +76,16 @@ const Ot = { render: je }, We = {
|
|
|
76
76
|
role: "img",
|
|
77
77
|
xmlns: "http://www.w3.org/2000/svg",
|
|
78
78
|
viewBox: "0 0 320 512"
|
|
79
|
-
},
|
|
79
|
+
}, qe = /* @__PURE__ */ b("path", {
|
|
80
80
|
fill: "currentColor",
|
|
81
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),
|
|
83
|
-
|
|
82
|
+
}, null, -1), Je = [
|
|
83
|
+
qe
|
|
84
84
|
];
|
|
85
|
-
function
|
|
86
|
-
return y(),
|
|
85
|
+
function Ye(t, e) {
|
|
86
|
+
return y(), w("svg", Ue, Je);
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const Ze = { render: Ye }, Xe = {
|
|
89
89
|
"aria-hidden": "true",
|
|
90
90
|
focusable: "false",
|
|
91
91
|
"data-prefix": "fas",
|
|
@@ -94,16 +94,16 @@ const qe = { render: Je }, Ye = {
|
|
|
94
94
|
role: "img",
|
|
95
95
|
xmlns: "http://www.w3.org/2000/svg",
|
|
96
96
|
viewBox: "0 0 320 512"
|
|
97
|
-
},
|
|
97
|
+
}, Qe = /* @__PURE__ */ b("path", {
|
|
98
98
|
fill: "currentColor",
|
|
99
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),
|
|
101
|
-
|
|
100
|
+
}, null, -1), to = [
|
|
101
|
+
Qe
|
|
102
102
|
];
|
|
103
|
-
function
|
|
104
|
-
return y(),
|
|
103
|
+
function eo(t, e) {
|
|
104
|
+
return y(), w("svg", Xe, to);
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const oo = { render: eo };
|
|
107
107
|
function pt(t) {
|
|
108
108
|
return t.split("-")[1];
|
|
109
109
|
}
|
|
@@ -145,14 +145,14 @@ function Mt(t, e, o) {
|
|
|
145
145
|
}
|
|
146
146
|
return u;
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const no = async (t, e, o) => {
|
|
149
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),
|
|
150
|
+
let d = await r.getElementRects({ reference: t, floating: e, strategy: a }), { x: i, y: u } = Mt(d, n, f), p = n, l = {}, h = 0;
|
|
151
151
|
for (let g = 0; g < c.length; g++) {
|
|
152
|
-
const { name: v, fn: k } = c[g], { x: P, y:
|
|
153
|
-
i = P ?? i, u =
|
|
152
|
+
const { name: v, fn: k } = c[g], { x: P, y: S, data: B, reset: G } = await k({ x: i, y: u, initialPlacement: n, placement: p, strategy: a, middlewareData: l, rects: d, platform: r, elements: { reference: t, floating: e } });
|
|
153
|
+
i = P ?? i, u = S ?? u, l = { ...l, [v]: { ...l[v], ...B } }, G && h <= 50 && (h++, 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: i, y: u } = Mt(d, p, f)), g = -1);
|
|
154
154
|
}
|
|
155
|
-
return { x: i, y: u, placement:
|
|
155
|
+
return { x: i, y: u, placement: p, strategy: a, middlewareData: l };
|
|
156
156
|
};
|
|
157
157
|
function Xt(t) {
|
|
158
158
|
return typeof t != "number" ? function(e) {
|
|
@@ -165,48 +165,48 @@ function vt(t) {
|
|
|
165
165
|
async function Qt(t, e) {
|
|
166
166
|
var o;
|
|
167
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:
|
|
169
|
-
return { top: (v.top - B.top + h.top) /
|
|
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: p = !1, padding: l = 0 } = e, h = Xt(l), g = c[p ? 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)), S = 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) / S.y, bottom: (B.bottom - v.bottom + h.bottom) / S.y, left: (v.left - B.left + h.left) / S.x, right: (B.right - v.right + h.right) / S.x };
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const so = Math.min, ao = Math.max;
|
|
172
172
|
function St(t, e, o) {
|
|
173
|
-
return
|
|
173
|
+
return ao(t, so(e, o));
|
|
174
174
|
}
|
|
175
175
|
const Ht = (t) => ({ name: "arrow", options: t, async fn(e) {
|
|
176
176
|
const { element: o, padding: n = 0 } = t || {}, { x: a, y: s, placement: r, rects: c, platform: f, elements: d } = e;
|
|
177
177
|
if (o == null)
|
|
178
178
|
return {};
|
|
179
|
-
const i = Xt(n), u = { x: a, y: s },
|
|
179
|
+
const i = Xt(n), u = { x: a, y: s }, p = ht(r), l = At(p), h = await f.getDimensions(o), g = p === "y", v = g ? "top" : "left", k = g ? "bottom" : "right", P = g ? "clientHeight" : "clientWidth", S = c.reference[l] + c.reference[p] - u[p] - c.floating[l], B = u[p] - c.reference[p], G = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(o));
|
|
180
180
|
let j = G ? G[P] : 0;
|
|
181
181
|
j && await (f.isElement == null ? void 0 : f.isElement(G)) || (j = d.floating[P] || c.floating[l]);
|
|
182
|
-
const Z =
|
|
183
|
-
return { [
|
|
184
|
-
} }),
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
182
|
+
const Z = S / 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 { [p]: u[p] - (D ? F < X ? X - F : it - F : 0), data: { [p]: z, centerOffset: F - 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
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function io(t, e, o) {
|
|
191
191
|
o === void 0 && (o = !1);
|
|
192
192
|
const n = pt(t), a = ht(t), s = At(a);
|
|
193
193
|
let r = a === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
194
|
-
return e.reference[s] > e.floating[s] && (r =
|
|
194
|
+
return e.reference[s] > e.floating[s] && (r = bt(r)), { main: r, cross: bt(r) };
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const co = { start: "end", end: "start" };
|
|
197
197
|
function $t(t) {
|
|
198
|
-
return t.replace(/start|end/g, (e) =>
|
|
198
|
+
return t.replace(/start|end/g, (e) => co[e]);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const uo = function(t) {
|
|
201
201
|
return t === void 0 && (t = {}), { name: "flip", options: t, async fn(e) {
|
|
202
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:
|
|
204
|
-
const D =
|
|
203
|
+
const { placement: n, middlewareData: a, rects: s, initialPlacement: r, platform: c, elements: f } = e, { mainAxis: d = !0, crossAxis: i = !0, fallbackPlacements: u, fallbackStrategy: p = "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)), S = u || (k || !h ? [bt(r)] : function(z) {
|
|
204
|
+
const D = bt(z);
|
|
205
205
|
return [$t(z), D, $t(D)];
|
|
206
206
|
}(r));
|
|
207
|
-
u || l === "none" ||
|
|
207
|
+
u || l === "none" || S.push(...function(z, D, Q, U) {
|
|
208
208
|
const W = pt(z);
|
|
209
|
-
let
|
|
209
|
+
let R = function(ct, Tt, me) {
|
|
210
210
|
const Ct = ["left", "right"], Et = ["right", "left"], pe = ["top", "bottom"], he = ["bottom", "top"];
|
|
211
211
|
switch (ct) {
|
|
212
212
|
case "top":
|
|
@@ -219,12 +219,12 @@ const io = function(t) {
|
|
|
219
219
|
return [];
|
|
220
220
|
}
|
|
221
221
|
}(et(z), Q === "start", U);
|
|
222
|
-
return W && (
|
|
222
|
+
return W && (R = R.map((ct) => ct + "-" + W), D && (R = R.concat(R.map($t)))), R;
|
|
223
223
|
}(r, h, l, P));
|
|
224
|
-
const B = [r,
|
|
224
|
+
const B = [r, ...S], G = await Qt(e, g), j = [];
|
|
225
225
|
let Z = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
226
226
|
if (d && j.push(G[v]), i) {
|
|
227
|
-
const { main: z, cross: D } =
|
|
227
|
+
const { main: z, cross: D } = io(n, s, P);
|
|
228
228
|
j.push(G[z], G[D]);
|
|
229
229
|
}
|
|
230
230
|
if (Z = [...Z, { placement: n, overflows: j }], !j.every((z) => z <= 0)) {
|
|
@@ -234,10 +234,10 @@ const io = function(t) {
|
|
|
234
234
|
return { data: { index: z, overflows: Z }, reset: { placement: D } };
|
|
235
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
236
|
if (!Q)
|
|
237
|
-
switch (
|
|
237
|
+
switch (p) {
|
|
238
238
|
case "bestFit": {
|
|
239
239
|
var F;
|
|
240
|
-
const U = (F = Z.map((W) => [W.placement, W.overflows.filter((
|
|
240
|
+
const U = (F = Z.map((W) => [W.placement, W.overflows.filter((R) => R > 0).reduce((R, ct) => R + ct, 0)]).sort((W, R) => W[1] - R[1])[0]) == null ? void 0 : F[0];
|
|
241
241
|
U && (Q = U);
|
|
242
242
|
break;
|
|
243
243
|
}
|
|
@@ -249,65 +249,65 @@ const io = function(t) {
|
|
|
249
249
|
}
|
|
250
250
|
return {};
|
|
251
251
|
} };
|
|
252
|
-
},
|
|
252
|
+
}, mo = function(t) {
|
|
253
253
|
return t === void 0 && (t = 0), { name: "offset", options: t, async fn(e) {
|
|
254
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),
|
|
256
|
-
let { mainAxis: k, crossAxis: P, alignmentAxis:
|
|
257
|
-
return
|
|
255
|
+
const { placement: c, platform: f, elements: d } = s, i = await (f.isRTL == null ? void 0 : f.isRTL(d.floating)), u = et(c), p = 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: S } = typeof v == "number" ? { mainAxis: v, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...v };
|
|
257
|
+
return p && typeof S == "number" && (P = p === "end" ? -1 * S : S), l ? { x: P * g, y: k * h } : { x: k * h, y: P * g };
|
|
258
258
|
}(e, t);
|
|
259
259
|
return { x: o + a.x, y: n + a.y, data: a };
|
|
260
260
|
} };
|
|
261
261
|
};
|
|
262
|
-
function
|
|
262
|
+
function po(t) {
|
|
263
263
|
return t === "x" ? "y" : "x";
|
|
264
264
|
}
|
|
265
|
-
const
|
|
265
|
+
const ho = function(t) {
|
|
266
266
|
return t === void 0 && (t = {}), { name: "shift", options: t, async fn(e) {
|
|
267
267
|
const { x: o, y: n, placement: a } = e, { mainAxis: s = !0, crossAxis: r = !1, limiter: c = { fn: (v) => {
|
|
268
268
|
let { x: k, y: P } = v;
|
|
269
269
|
return { x: k, y: P };
|
|
270
|
-
} }, ...f } = t, d = { x: o, y: n }, i = await Qt(e, f), u = ht(et(a)),
|
|
271
|
-
let l = d[u], h = d[
|
|
270
|
+
} }, ...f } = t, d = { x: o, y: n }, i = await Qt(e, f), u = ht(et(a)), p = po(u);
|
|
271
|
+
let l = d[u], h = d[p];
|
|
272
272
|
if (s) {
|
|
273
273
|
const v = u === "y" ? "bottom" : "right";
|
|
274
274
|
l = St(l + i[u === "y" ? "top" : "left"], l, l - i[v]);
|
|
275
275
|
}
|
|
276
276
|
if (r) {
|
|
277
|
-
const v =
|
|
278
|
-
h = St(h + i[
|
|
277
|
+
const v = p === "y" ? "bottom" : "right";
|
|
278
|
+
h = St(h + i[p === "y" ? "top" : "left"], h, h - i[v]);
|
|
279
279
|
}
|
|
280
|
-
const g = c.fn({ ...e, [u]: l, [
|
|
280
|
+
const g = c.fn({ ...e, [u]: l, [p]: h });
|
|
281
281
|
return { ...g, data: { x: g.x - o, y: g.y - n } };
|
|
282
282
|
} };
|
|
283
283
|
};
|
|
284
|
-
function
|
|
284
|
+
function N(t) {
|
|
285
285
|
var e;
|
|
286
286
|
return ((e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
287
287
|
}
|
|
288
288
|
function M(t) {
|
|
289
|
-
return
|
|
289
|
+
return N(t).getComputedStyle(t);
|
|
290
290
|
}
|
|
291
291
|
function te(t) {
|
|
292
|
-
return t instanceof
|
|
292
|
+
return t instanceof N(t).Node;
|
|
293
293
|
}
|
|
294
294
|
function Y(t) {
|
|
295
295
|
return te(t) ? (t.nodeName || "").toLowerCase() : "";
|
|
296
296
|
}
|
|
297
297
|
function H(t) {
|
|
298
|
-
return t instanceof
|
|
298
|
+
return t instanceof N(t).HTMLElement;
|
|
299
299
|
}
|
|
300
300
|
function V(t) {
|
|
301
|
-
return t instanceof
|
|
301
|
+
return t instanceof N(t).Element;
|
|
302
302
|
}
|
|
303
303
|
function Bt(t) {
|
|
304
|
-
return typeof ShadowRoot > "u" ? !1 : t instanceof
|
|
304
|
+
return typeof ShadowRoot > "u" ? !1 : t instanceof N(t).ShadowRoot || t instanceof ShadowRoot;
|
|
305
305
|
}
|
|
306
306
|
function mt(t) {
|
|
307
307
|
const { overflow: e, overflowX: o, overflowY: n, display: a } = M(t);
|
|
308
308
|
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(a);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function fo(t) {
|
|
311
311
|
return ["table", "td", "th"].includes(Y(t));
|
|
312
312
|
}
|
|
313
313
|
function _t(t) {
|
|
@@ -320,23 +320,23 @@ function Gt() {
|
|
|
320
320
|
function xt(t) {
|
|
321
321
|
return ["html", "body", "#document"].includes(Y(t));
|
|
322
322
|
}
|
|
323
|
-
const Ft = Math.min, dt = Math.max,
|
|
323
|
+
const Ft = Math.min, dt = Math.max, wt = Math.round;
|
|
324
324
|
function ee(t) {
|
|
325
325
|
const e = M(t);
|
|
326
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 =
|
|
327
|
+
const a = H(t), s = a ? t.offsetWidth : o, r = a ? t.offsetHeight : n, c = wt(o) !== s || wt(n) !== r;
|
|
328
328
|
return c && (o = s, n = r), { width: o, height: n, fallback: c };
|
|
329
329
|
}
|
|
330
330
|
function oe(t) {
|
|
331
331
|
return V(t) ? t : t.contextElement;
|
|
332
332
|
}
|
|
333
333
|
const ne = { x: 1, y: 1 };
|
|
334
|
-
function
|
|
334
|
+
function at(t) {
|
|
335
335
|
const e = oe(t);
|
|
336
336
|
if (!H(e))
|
|
337
337
|
return ne;
|
|
338
338
|
const o = e.getBoundingClientRect(), { width: n, height: a, fallback: s } = ee(e);
|
|
339
|
-
let r = (s ?
|
|
339
|
+
let r = (s ? wt(o.width) : o.width) / n, c = (s ? wt(o.height) : o.height) / a;
|
|
340
340
|
return r && Number.isFinite(r) || (r = 1), c && Number.isFinite(c) || (c = 1), { x: r, y: c };
|
|
341
341
|
}
|
|
342
342
|
const jt = { x: 0, y: 0 };
|
|
@@ -344,74 +344,74 @@ function se(t, e, o) {
|
|
|
344
344
|
var n, a;
|
|
345
345
|
if (e === void 0 && (e = !0), !Gt())
|
|
346
346
|
return jt;
|
|
347
|
-
const s = t ?
|
|
347
|
+
const s = t ? N(t) : window;
|
|
348
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
349
|
}
|
|
350
350
|
function ot(t, e, o, n) {
|
|
351
351
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
352
352
|
const a = t.getBoundingClientRect(), s = oe(t);
|
|
353
353
|
let r = ne;
|
|
354
|
-
e && (n ? V(n) && (r =
|
|
354
|
+
e && (n ? V(n) && (r = at(n)) : r = at(t));
|
|
355
355
|
const c = se(s, o, n);
|
|
356
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
357
|
if (s) {
|
|
358
|
-
const
|
|
359
|
-
let h =
|
|
360
|
-
for (; h && n && l !==
|
|
361
|
-
const g =
|
|
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 =
|
|
358
|
+
const p = N(s), l = n && V(n) ? N(n) : n;
|
|
359
|
+
let h = p.frameElement;
|
|
360
|
+
for (; h && n && l !== p; ) {
|
|
361
|
+
const g = at(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 = N(h).frameElement;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
return vt({ width: i, height: u, x: f, y: d });
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function q(t) {
|
|
368
368
|
return ((te(t) ? t.ownerDocument : t.document) || window.document).documentElement;
|
|
369
369
|
}
|
|
370
370
|
function kt(t) {
|
|
371
371
|
return V(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
|
|
372
372
|
}
|
|
373
373
|
function ae(t) {
|
|
374
|
-
return ot(
|
|
374
|
+
return ot(q(t)).left + kt(t).scrollLeft;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function lt(t) {
|
|
377
377
|
if (Y(t) === "html")
|
|
378
378
|
return t;
|
|
379
|
-
const e = t.assignedSlot || t.parentNode || Bt(t) && t.host ||
|
|
379
|
+
const e = t.assignedSlot || t.parentNode || Bt(t) && t.host || q(t);
|
|
380
380
|
return Bt(e) ? e.host : e;
|
|
381
381
|
}
|
|
382
382
|
function re(t) {
|
|
383
|
-
const e =
|
|
383
|
+
const e = lt(t);
|
|
384
384
|
return xt(e) ? e.ownerDocument.body : H(e) && mt(e) ? e : re(e);
|
|
385
385
|
}
|
|
386
386
|
function ut(t, e) {
|
|
387
387
|
var o;
|
|
388
388
|
e === void 0 && (e = []);
|
|
389
|
-
const n = re(t), a = n === ((o = t.ownerDocument) == null ? void 0 : o.body), s =
|
|
389
|
+
const n = re(t), a = n === ((o = t.ownerDocument) == null ? void 0 : o.body), s = N(n);
|
|
390
390
|
return a ? e.concat(s, s.visualViewport || [], mt(n) ? n : []) : e.concat(n, ut(n));
|
|
391
391
|
}
|
|
392
392
|
function Wt(t, e, o) {
|
|
393
393
|
let n;
|
|
394
394
|
if (e === "viewport")
|
|
395
395
|
n = function(a, s) {
|
|
396
|
-
const r =
|
|
397
|
-
let d = c.clientWidth, i = c.clientHeight, u = 0,
|
|
396
|
+
const r = N(a), c = q(a), f = r.visualViewport;
|
|
397
|
+
let d = c.clientWidth, i = c.clientHeight, u = 0, p = 0;
|
|
398
398
|
if (f) {
|
|
399
399
|
d = f.width, i = f.height;
|
|
400
400
|
const l = Gt();
|
|
401
|
-
(!l || l && s === "fixed") && (u = f.offsetLeft,
|
|
401
|
+
(!l || l && s === "fixed") && (u = f.offsetLeft, p = f.offsetTop);
|
|
402
402
|
}
|
|
403
|
-
return { width: d, height: i, x: u, y:
|
|
403
|
+
return { width: d, height: i, x: u, y: p };
|
|
404
404
|
}(t, o);
|
|
405
405
|
else if (e === "document")
|
|
406
406
|
n = function(a) {
|
|
407
|
-
const s =
|
|
407
|
+
const s = q(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
408
|
let i = -r.scrollLeft + ae(a);
|
|
409
409
|
const u = -r.scrollTop;
|
|
410
410
|
return M(c).direction === "rtl" && (i += dt(s.clientWidth, c.clientWidth) - f), { width: f, height: d, x: i, y: u };
|
|
411
|
-
}(
|
|
411
|
+
}(q(t));
|
|
412
412
|
else if (V(e))
|
|
413
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) ?
|
|
414
|
+
const r = ot(a, !0, s === "fixed"), c = r.top + a.clientTop, f = r.left + a.clientLeft, d = H(a) ? at(a) : { x: 1, y: 1 };
|
|
415
415
|
return { width: a.clientWidth * d.x, height: a.clientHeight * d.y, x: f * d.x, y: c * d.y };
|
|
416
416
|
}(e, o);
|
|
417
417
|
else {
|
|
@@ -421,31 +421,31 @@ function Wt(t, e, o) {
|
|
|
421
421
|
return vt(n);
|
|
422
422
|
}
|
|
423
423
|
function le(t, e) {
|
|
424
|
-
const o =
|
|
424
|
+
const o = lt(t);
|
|
425
425
|
return !(o === e || !V(o) || xt(o)) && (M(o).position === "fixed" || le(o, e));
|
|
426
426
|
}
|
|
427
427
|
function Kt(t, e) {
|
|
428
428
|
return H(t) && M(t).position !== "fixed" ? e ? e(t) : t.offsetParent : null;
|
|
429
429
|
}
|
|
430
430
|
function Ut(t, e) {
|
|
431
|
-
const o =
|
|
431
|
+
const o = N(t);
|
|
432
432
|
if (!H(t))
|
|
433
433
|
return o;
|
|
434
434
|
let n = Kt(t, e);
|
|
435
|
-
for (; n &&
|
|
435
|
+
for (; n && fo(n) && M(n).position === "static"; )
|
|
436
436
|
n = Kt(n, e);
|
|
437
437
|
return n && (Y(n) === "html" || Y(n) === "body" && M(n).position === "static" && !_t(n)) ? o : n || function(a) {
|
|
438
|
-
let s =
|
|
438
|
+
let s = lt(a);
|
|
439
439
|
for (; H(s) && !xt(s); ) {
|
|
440
440
|
if (_t(s))
|
|
441
441
|
return s;
|
|
442
|
-
s =
|
|
442
|
+
s = lt(s);
|
|
443
443
|
}
|
|
444
444
|
return null;
|
|
445
445
|
}(t) || o;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
const n = H(e), a =
|
|
447
|
+
function go(t, e, o) {
|
|
448
|
+
const n = H(e), a = q(e), s = o === "fixed", r = ot(t, !0, s, e);
|
|
449
449
|
let c = { scrollLeft: 0, scrollTop: 0 };
|
|
450
450
|
const f = { x: 0, y: 0 };
|
|
451
451
|
if (n || !n && !s)
|
|
@@ -456,20 +456,20 @@ function ho(t, e, o) {
|
|
|
456
456
|
a && (f.x = ae(a));
|
|
457
457
|
return { x: r.left + c.scrollLeft - f.x, y: r.top + c.scrollTop - f.y, width: r.width, height: r.height };
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const yo = { getClippingRect: function(t) {
|
|
460
460
|
let { element: e, boundary: o, rootBoundary: n, strategy: a } = t;
|
|
461
461
|
const s = o === "clippingAncestors" ? function(d, i) {
|
|
462
462
|
const u = i.get(d);
|
|
463
463
|
if (u)
|
|
464
464
|
return u;
|
|
465
|
-
let
|
|
465
|
+
let p = ut(d).filter((v) => V(v) && Y(v) !== "body"), l = null;
|
|
466
466
|
const h = M(d).position === "fixed";
|
|
467
|
-
let g = h ?
|
|
467
|
+
let g = h ? lt(d) : d;
|
|
468
468
|
for (; V(g) && !xt(g); ) {
|
|
469
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)) ?
|
|
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)) ? p = p.filter((P) => P !== g) : l = v, g = lt(g);
|
|
471
471
|
}
|
|
472
|
-
return i.set(d,
|
|
472
|
+
return i.set(d, p), p;
|
|
473
473
|
}(e, this._c) : [].concat(o), r = [...s, n], c = r[0], f = r.reduce((d, i) => {
|
|
474
474
|
const u = Wt(e, i, a);
|
|
475
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;
|
|
@@ -477,67 +477,67 @@ const fo = { getClippingRect: function(t) {
|
|
|
477
477
|
return { width: f.right - f.left, height: f.bottom - f.top, x: f.left, y: f.top };
|
|
478
478
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
|
|
479
479
|
let { rect: e, offsetParent: o, strategy: n } = t;
|
|
480
|
-
const a = H(o), s =
|
|
480
|
+
const a = H(o), s = q(o);
|
|
481
481
|
if (o === s)
|
|
482
482
|
return e;
|
|
483
483
|
let r = { scrollLeft: 0, scrollTop: 0 }, c = { x: 1, y: 1 };
|
|
484
484
|
const f = { x: 0, y: 0 };
|
|
485
485
|
if ((a || !a && n !== "fixed") && ((Y(o) !== "body" || mt(s)) && (r = kt(o)), H(o))) {
|
|
486
486
|
const d = ot(o);
|
|
487
|
-
c =
|
|
487
|
+
c = at(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
|
|
488
488
|
}
|
|
489
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
490
|
}, isElement: V, getDimensions: function(t) {
|
|
491
491
|
return ee(t);
|
|
492
|
-
}, getOffsetParent: Ut, getDocumentElement:
|
|
492
|
+
}, getOffsetParent: Ut, getDocumentElement: q, getScale: at, async getElementRects(t) {
|
|
493
493
|
let { reference: e, floating: o, strategy: n } = t;
|
|
494
494
|
const a = this.getOffsetParent || Ut, s = this.getDimensions;
|
|
495
|
-
return { reference:
|
|
495
|
+
return { reference: go(e, await a(o), n), floating: { x: 0, y: 0, ...await s(o) } };
|
|
496
496
|
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => M(t).direction === "rtl" };
|
|
497
|
-
function
|
|
497
|
+
function vo(t, e, o, n) {
|
|
498
498
|
n === void 0 && (n = {});
|
|
499
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((
|
|
501
|
-
const l = !V(
|
|
502
|
-
!a || c && !l ||
|
|
500
|
+
f.forEach((p) => {
|
|
501
|
+
const l = !V(p) && p.toString().includes("V");
|
|
502
|
+
!a || c && !l || p.addEventListener("scroll", o, { passive: !0 }), s && p.addEventListener("resize", o);
|
|
503
503
|
});
|
|
504
504
|
let d, i = null;
|
|
505
505
|
r && (i = new ResizeObserver(() => {
|
|
506
506
|
o();
|
|
507
507
|
}), V(t) && !c && i.observe(t), V(t) || !t.contextElement || c || i.observe(t.contextElement), i.observe(e));
|
|
508
508
|
let u = c ? ot(t) : null;
|
|
509
|
-
return c && function
|
|
509
|
+
return c && function p() {
|
|
510
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(
|
|
511
|
+
!u || l.x === u.x && l.y === u.y && l.width === u.width && l.height === u.height || o(), u = l, d = requestAnimationFrame(p);
|
|
512
512
|
}(), o(), () => {
|
|
513
|
-
var
|
|
513
|
+
var p;
|
|
514
514
|
f.forEach((l) => {
|
|
515
515
|
a && l.removeEventListener("scroll", o), s && l.removeEventListener("resize", o);
|
|
516
|
-
}), (
|
|
516
|
+
}), (p = i) == null || p.disconnect(), i = null, c && cancelAnimationFrame(d);
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
const
|
|
520
|
-
const n = /* @__PURE__ */ new Map(), a = { platform:
|
|
521
|
-
return
|
|
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
522
|
};
|
|
523
|
-
function
|
|
524
|
-
const s = E(null), r = E(null), c = E(null), f = E(null), d = E(null), i = E(null), u = E(null),
|
|
525
|
-
!s.value || !r.value ||
|
|
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), f = E(null), d = E(null), i = E(null), u = E(null), p = E(o ?? "absolute"), l = E(null), h = () => {
|
|
525
|
+
!s.value || !r.value || bo(s.value, r.value, {
|
|
526
526
|
middleware: t,
|
|
527
527
|
placement: e,
|
|
528
528
|
strategy: o
|
|
529
529
|
}).then((v) => {
|
|
530
|
-
c.value = v.x, f.value = v.y,
|
|
530
|
+
c.value = v.x, f.value = v.y, p.value = v.strategy, d.value = v.middlewareData.arrow.x, i.value = v.middlewareData.arrow.y, u.value = v.placement;
|
|
531
531
|
});
|
|
532
532
|
};
|
|
533
533
|
Lt(
|
|
534
534
|
() => ({
|
|
535
|
-
reference:
|
|
536
|
-
floating:
|
|
537
|
-
append:
|
|
535
|
+
reference: m(s),
|
|
536
|
+
floating: m(r),
|
|
537
|
+
append: m(n)
|
|
538
538
|
}),
|
|
539
539
|
({ floating: v, append: k }) => {
|
|
540
|
-
k &&
|
|
540
|
+
k && Re(v, k), h();
|
|
541
541
|
},
|
|
542
542
|
{ flush: "post" }
|
|
543
543
|
), Lt(
|
|
@@ -546,7 +546,7 @@ function vo({ middleware: t, placement: e = null, strategy: o, append: n, enable
|
|
|
546
546
|
if (!(!s.value || !r.value)) {
|
|
547
547
|
if (!v)
|
|
548
548
|
return g();
|
|
549
|
-
l.value =
|
|
549
|
+
l.value = vo(s.value, r.value, h, {});
|
|
550
550
|
}
|
|
551
551
|
},
|
|
552
552
|
{ flush: "post" }
|
|
@@ -563,11 +563,11 @@ function vo({ middleware: t, placement: e = null, strategy: o, append: n, enable
|
|
|
563
563
|
placement: u,
|
|
564
564
|
reference: s,
|
|
565
565
|
floating: r,
|
|
566
|
-
strategy:
|
|
566
|
+
strategy: p,
|
|
567
567
|
update: h
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const xo = (t) => {
|
|
571
571
|
const { element: e, padding: o } = t;
|
|
572
572
|
return {
|
|
573
573
|
name: "arrow",
|
|
@@ -576,7 +576,7 @@ const wo = (t) => {
|
|
|
576
576
|
return ye(e) ? e.value != null ? Ht({ element: e.value, padding: o }).fn(n) : {} : e ? Ht({ element: e, padding: o }).fn(n) : {};
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
|
-
},
|
|
579
|
+
}, ko = ["data-placement"], ie = {
|
|
580
580
|
__name: "FloatingPanel",
|
|
581
581
|
props: {
|
|
582
582
|
disabled: {
|
|
@@ -605,41 +605,41 @@ const wo = (t) => {
|
|
|
605
605
|
}
|
|
606
606
|
},
|
|
607
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 } =
|
|
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 } = wo({
|
|
609
609
|
placement: e.placement,
|
|
610
|
-
middleware: [
|
|
610
|
+
middleware: [uo(), ho({ padding: 5 }), mo(e.offset), xo({ element: n, padding: 5 })],
|
|
611
611
|
append: A(() => e.appendTo),
|
|
612
612
|
enabled: o
|
|
613
|
-
}),
|
|
613
|
+
}), p = () => {
|
|
614
614
|
e.disabled || o.value || (o.value = !0);
|
|
615
615
|
}, l = (v) => {
|
|
616
616
|
o.value && v && (o.value = !1);
|
|
617
617
|
}, h = (v) => {
|
|
618
618
|
d.value = v;
|
|
619
619
|
}, g = {
|
|
620
|
-
mouseenter:
|
|
620
|
+
mouseenter: p,
|
|
621
621
|
mouseleave: l,
|
|
622
|
-
focus:
|
|
622
|
+
focus: p,
|
|
623
623
|
blur: l
|
|
624
624
|
};
|
|
625
|
-
return
|
|
625
|
+
return ke(i, (v) => {
|
|
626
626
|
var k;
|
|
627
627
|
(k = d.value) != null && k.contains(v.target) || l();
|
|
628
|
-
}), (v, k) => (y(),
|
|
628
|
+
}), (v, k) => (y(), w(O, null, [
|
|
629
629
|
I(v.$slots, "default", {
|
|
630
630
|
setRef: h,
|
|
631
|
-
show:
|
|
631
|
+
show: p,
|
|
632
632
|
hide: l,
|
|
633
633
|
events: g
|
|
634
634
|
}),
|
|
635
|
-
|
|
635
|
+
b("div", {
|
|
636
636
|
ref_key: "floating",
|
|
637
637
|
ref: i,
|
|
638
|
-
"data-placement":
|
|
638
|
+
"data-placement": m(f),
|
|
639
639
|
style: It({
|
|
640
|
-
position:
|
|
641
|
-
top:
|
|
642
|
-
left:
|
|
640
|
+
position: m(u),
|
|
641
|
+
top: m(s) ? `${m(s)}px` : "",
|
|
642
|
+
left: m(a) ? `${m(a)}px` : ""
|
|
643
643
|
})
|
|
644
644
|
}, [
|
|
645
645
|
C(ve, {
|
|
@@ -647,31 +647,31 @@ const wo = (t) => {
|
|
|
647
647
|
mode: "out-in"
|
|
648
648
|
}, {
|
|
649
649
|
default: T(() => [
|
|
650
|
-
o.value ? (y(),
|
|
650
|
+
o.value ? (y(), w("div", {
|
|
651
651
|
key: 0,
|
|
652
652
|
class: _(["floating-content", [`is-${e.theme}`]])
|
|
653
653
|
}, [
|
|
654
654
|
I(v.$slots, "content", { close: l }, () => [
|
|
655
655
|
K(x(t.content), 1)
|
|
656
656
|
]),
|
|
657
|
-
|
|
657
|
+
b("div", {
|
|
658
658
|
ref_key: "arrowRef",
|
|
659
659
|
ref: n,
|
|
660
660
|
class: "is-arrow",
|
|
661
661
|
style: It({
|
|
662
|
-
position:
|
|
663
|
-
top:
|
|
664
|
-
left:
|
|
662
|
+
position: m(u),
|
|
663
|
+
top: m(c) ? `${m(c)}px` : "",
|
|
664
|
+
left: m(r) ? `${m(r)}px` : ""
|
|
665
665
|
})
|
|
666
666
|
}, null, 4)
|
|
667
|
-
], 2)) :
|
|
667
|
+
], 2)) : $("", !0)
|
|
668
668
|
]),
|
|
669
669
|
_: 3
|
|
670
670
|
})
|
|
671
|
-
], 12,
|
|
671
|
+
], 12, ko)
|
|
672
672
|
], 64));
|
|
673
673
|
}
|
|
674
|
-
},
|
|
674
|
+
}, To = ["onMouseenter", "onMouseleave", "onFocus", "onBlur", "onClick", "onKeydown", "tabindex"], Po = { key: 0 }, $o = ["colspan"], So = { key: 1 }, _o = ["colspan"], ce = {
|
|
675
675
|
__name: "DataTable",
|
|
676
676
|
props: {
|
|
677
677
|
columns: {
|
|
@@ -697,87 +697,87 @@ const wo = (t) => {
|
|
|
697
697
|
},
|
|
698
698
|
emits: ["sort"],
|
|
699
699
|
setup(t, { emit: e }) {
|
|
700
|
-
const o = t, { isLoading: n, appendTo: a } = zt(o), s =
|
|
701
|
-
|
|
700
|
+
const o = t, { isLoading: n, appendTo: a } = zt(o), s = Te(n, { delay: Le }), r = e, { t: c } = nt(), f = J("table"), d = A(() => o.columns), i = A(() => Object.keys(o.columns).length), u = (p, l) => {
|
|
701
|
+
p.sortOrders && r("sort", { target: l, orders: p.sortOrders });
|
|
702
702
|
};
|
|
703
|
-
return (
|
|
704
|
-
class: _(
|
|
703
|
+
return (p, l) => (y(), w("table", {
|
|
704
|
+
class: _(m(f))
|
|
705
705
|
}, [
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
(y(!0),
|
|
706
|
+
b("thead", null, [
|
|
707
|
+
b("tr", null, [
|
|
708
|
+
(y(!0), w(O, null, tt(d.value, (h, g) => (y(), L(ie, {
|
|
709
709
|
key: g,
|
|
710
710
|
placement: "top",
|
|
711
711
|
content: h.tooltip,
|
|
712
712
|
disabled: !h.tooltip,
|
|
713
|
-
"append-to":
|
|
713
|
+
"append-to": m(a)
|
|
714
714
|
}, {
|
|
715
715
|
default: T(({ setRef: v, show: k, hide: P }) => [
|
|
716
|
-
|
|
716
|
+
b("th", {
|
|
717
717
|
ref_for: !0,
|
|
718
718
|
ref: v,
|
|
719
719
|
class: _([
|
|
720
720
|
[h.class],
|
|
721
721
|
{
|
|
722
|
-
"is-active": g === t.sort.sortTarget && t.sort.orders[0].direction !==
|
|
722
|
+
"is-active": g === t.sort.sortTarget && t.sort.orders[0].direction !== m(Pt),
|
|
723
723
|
"is-sortable": h.sortOrders,
|
|
724
|
-
"is-desc": g === t.sort.sortTarget && t.sort.orders[0].direction ===
|
|
725
|
-
"is-asc": g === t.sort.sortTarget && t.sort.orders[0].direction ===
|
|
724
|
+
"is-desc": g === t.sort.sortTarget && t.sort.orders[0].direction === m(Nt),
|
|
725
|
+
"is-asc": g === t.sort.sortTarget && t.sort.orders[0].direction === m(Dt)
|
|
726
726
|
}
|
|
727
727
|
]),
|
|
728
728
|
onMouseenter: k,
|
|
729
729
|
onMouseleave: P,
|
|
730
730
|
onFocus: k,
|
|
731
731
|
onBlur: P,
|
|
732
|
-
onClick: (
|
|
732
|
+
onClick: (S) => u(h, g),
|
|
733
733
|
onKeydown: [
|
|
734
|
-
Vt(
|
|
735
|
-
Vt(
|
|
734
|
+
Vt(rt((S) => u(h, g), ["prevent"]), ["space"]),
|
|
735
|
+
Vt(rt((S) => u(h, g), ["prevent"]), ["enter"])
|
|
736
736
|
],
|
|
737
737
|
tabindex: h.sortOrders ? 0 : -1,
|
|
738
738
|
role: "button"
|
|
739
739
|
}, [
|
|
740
|
-
I(
|
|
740
|
+
I(p.$slots, `header-${g}`, { column: h }, () => [
|
|
741
741
|
K(x(h.label), 1)
|
|
742
742
|
]),
|
|
743
|
-
h.sortOrders && g !== t.sort.sortTarget ? (y(), L(
|
|
743
|
+
h.sortOrders && g !== t.sort.sortTarget ? (y(), L(m(Ot), {
|
|
744
744
|
key: 0,
|
|
745
745
|
class: "is-icon-sort"
|
|
746
|
-
})) :
|
|
747
|
-
g === t.sort.sortTarget && t.sort.orders[0].direction ===
|
|
746
|
+
})) : $("", !0),
|
|
747
|
+
g === t.sort.sortTarget && t.sort.orders[0].direction === m(Pt) ? (y(), L(m(Ot), {
|
|
748
748
|
key: 1,
|
|
749
749
|
class: "is-icon-sort"
|
|
750
|
-
})) :
|
|
751
|
-
g === t.sort.sortTarget && t.sort.orders[0].direction ===
|
|
750
|
+
})) : $("", !0),
|
|
751
|
+
g === t.sort.sortTarget && t.sort.orders[0].direction === m(Nt) ? (y(), L(m(Ze), {
|
|
752
752
|
key: 2,
|
|
753
753
|
class: "is-icon-sort"
|
|
754
|
-
})) :
|
|
755
|
-
g === t.sort.sortTarget && t.sort.orders[0].direction ===
|
|
754
|
+
})) : $("", !0),
|
|
755
|
+
g === t.sort.sortTarget && t.sort.orders[0].direction === m(Dt) ? (y(), L(m(oo), {
|
|
756
756
|
key: 3,
|
|
757
757
|
class: "is-icon-sort"
|
|
758
|
-
})) :
|
|
759
|
-
], 42,
|
|
758
|
+
})) : $("", !0)
|
|
759
|
+
], 42, To)
|
|
760
760
|
]),
|
|
761
761
|
_: 2
|
|
762
762
|
}, 1032, ["content", "disabled", "append-to"]))), 128))
|
|
763
763
|
])
|
|
764
764
|
]),
|
|
765
|
-
|
|
766
|
-
(y(!0),
|
|
765
|
+
b("tbody", null, [
|
|
766
|
+
(y(!0), w(O, null, tt(o.rows, (h, g) => (y(), w("tr", {
|
|
767
767
|
key: g,
|
|
768
768
|
class: _(h.rowClasses)
|
|
769
769
|
}, [
|
|
770
|
-
(y(!0),
|
|
770
|
+
(y(!0), w(O, null, tt(d.value, (v, k) => (y(), w("td", {
|
|
771
771
|
key: k,
|
|
772
772
|
class: _([
|
|
773
773
|
[v.class],
|
|
774
774
|
{
|
|
775
|
-
"is-active": k === t.sort.sortTarget && t.sort.orders[0].direction !==
|
|
775
|
+
"is-active": k === t.sort.sortTarget && t.sort.orders[0].direction !== m(Pt),
|
|
776
776
|
"is-zero": h[k] == 0
|
|
777
777
|
}
|
|
778
778
|
])
|
|
779
779
|
}, [
|
|
780
|
-
I(
|
|
780
|
+
I(p.$slots, `cell-${k}`, {
|
|
781
781
|
row: h,
|
|
782
782
|
prop: k
|
|
783
783
|
}, () => [
|
|
@@ -786,27 +786,27 @@ const wo = (t) => {
|
|
|
786
786
|
], 2))), 128))
|
|
787
787
|
], 2))), 128))
|
|
788
788
|
]),
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
I(
|
|
793
|
-
K(x(
|
|
789
|
+
m(s) && t.rows.length === 0 ? (y(), w("tfoot", Po, [
|
|
790
|
+
b("tr", null, [
|
|
791
|
+
b("td", { colspan: i.value }, [
|
|
792
|
+
I(p.$slots, "loading", {}, () => [
|
|
793
|
+
K(x(m(c)("common.loading")), 1)
|
|
794
794
|
])
|
|
795
|
-
], 8,
|
|
795
|
+
], 8, $o)
|
|
796
796
|
])
|
|
797
|
-
])) :
|
|
798
|
-
t.rows.length === 0 && !
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
I(
|
|
802
|
-
K(x(
|
|
797
|
+
])) : $("", !0),
|
|
798
|
+
t.rows.length === 0 && !m(n) && !m(s) ? (y(), w("tfoot", So, [
|
|
799
|
+
b("tr", null, [
|
|
800
|
+
b("td", { colspan: i.value }, [
|
|
801
|
+
I(p.$slots, "empty", {}, () => [
|
|
802
|
+
K(x(m(c)("common.noData")), 1)
|
|
803
803
|
])
|
|
804
|
-
], 8,
|
|
804
|
+
], 8, _o)
|
|
805
805
|
])
|
|
806
|
-
])) :
|
|
806
|
+
])) : $("", !0)
|
|
807
807
|
], 2));
|
|
808
808
|
}
|
|
809
|
-
},
|
|
809
|
+
}, zo = {
|
|
810
810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
811
811
|
viewBox: "0 0 24 24",
|
|
812
812
|
fill: "none",
|
|
@@ -814,25 +814,25 @@ const wo = (t) => {
|
|
|
814
814
|
"stroke-width": "2",
|
|
815
815
|
"stroke-linecap": "round",
|
|
816
816
|
"stroke-linejoin": "round"
|
|
817
|
-
},
|
|
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
818
|
x1: "12",
|
|
819
819
|
y1: "9",
|
|
820
820
|
x2: "12",
|
|
821
821
|
y2: "13"
|
|
822
|
-
}, null, -1),
|
|
822
|
+
}, null, -1), Co = /* @__PURE__ */ b("line", {
|
|
823
823
|
x1: "12",
|
|
824
824
|
y1: "17",
|
|
825
825
|
x2: "12.01",
|
|
826
826
|
y2: "17"
|
|
827
|
-
}, null, -1),
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
827
|
+
}, null, -1), Eo = [
|
|
828
|
+
Ao,
|
|
829
|
+
Go,
|
|
830
|
+
Co
|
|
831
831
|
];
|
|
832
|
-
function
|
|
833
|
-
return y(),
|
|
832
|
+
function Lo(t, e) {
|
|
833
|
+
return y(), w("svg", zo, Eo);
|
|
834
834
|
}
|
|
835
|
-
const
|
|
835
|
+
const Io = { render: Lo }, Es = {
|
|
836
836
|
__name: "ErrorNotice",
|
|
837
837
|
props: {
|
|
838
838
|
error: {
|
|
@@ -841,36 +841,36 @@ const Eo = { render: Co }, _s = {
|
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
843
|
setup(t) {
|
|
844
|
-
const e = t, { t: o, hasTranlation: n } =
|
|
844
|
+
const e = t, { t: o, hasTranlation: n } = nt(), a = J("error-notice"), s = A(() => {
|
|
845
845
|
var r;
|
|
846
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
847
|
});
|
|
848
|
-
return (r, c) => (y(),
|
|
849
|
-
class: _(
|
|
848
|
+
return (r, c) => (y(), w("div", {
|
|
849
|
+
class: _(m(a))
|
|
850
850
|
}, [
|
|
851
|
-
C(
|
|
851
|
+
C(m(Io), {
|
|
852
852
|
class: "icon",
|
|
853
853
|
width: "20",
|
|
854
854
|
height: "20"
|
|
855
855
|
}),
|
|
856
|
-
|
|
856
|
+
b("span", null, x(s.value), 1)
|
|
857
857
|
], 2));
|
|
858
858
|
}
|
|
859
|
-
},
|
|
859
|
+
}, Ls = {
|
|
860
860
|
__name: "ErrorProvider",
|
|
861
861
|
setup(t) {
|
|
862
|
-
const { message: e, hasError: o, error: n } =
|
|
862
|
+
const { message: e, hasError: o, error: n } = Pe();
|
|
863
863
|
return (a, s) => I(a.$slots, "default", {
|
|
864
|
-
message:
|
|
865
|
-
error:
|
|
866
|
-
hasError:
|
|
864
|
+
message: m(e),
|
|
865
|
+
error: m(n),
|
|
866
|
+
hasError: m(o)
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
-
},
|
|
869
|
+
}, Vo = {
|
|
870
870
|
"undefined-column": "A(z) {column} oszlop nem létezik!",
|
|
871
871
|
"invalid-season-name": "Érvénytelen szezon név",
|
|
872
872
|
"api-key-not-found": "API Kulcs nem megfelelő"
|
|
873
|
-
},
|
|
873
|
+
}, Ro = {
|
|
874
874
|
loading: "Töltődés...",
|
|
875
875
|
noData: "Nincs megjeleníthető adat",
|
|
876
876
|
selectTimezone: "*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",
|
|
@@ -881,7 +881,18 @@ const Eo = { render: Co }, _s = {
|
|
|
881
881
|
all: "Mind",
|
|
882
882
|
report: "Jegyzőkönyv",
|
|
883
883
|
video: "Videó"
|
|
884
|
-
},
|
|
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 = {
|
|
885
896
|
blank: "#",
|
|
886
897
|
team: {
|
|
887
898
|
short: "Csapat",
|
|
@@ -1203,7 +1214,7 @@ const Eo = { render: Co }, _s = {
|
|
|
1203
1214
|
short: "#",
|
|
1204
1215
|
tooltip: "Végeredmény típusa"
|
|
1205
1216
|
}
|
|
1206
|
-
},
|
|
1217
|
+
}, Oo = {
|
|
1207
1218
|
data: {
|
|
1208
1219
|
localTime: "Helyszín szerinti idő"
|
|
1209
1220
|
},
|
|
@@ -1252,16 +1263,17 @@ const Eo = { render: Co }, _s = {
|
|
|
1252
1263
|
Végeredmény: "Végeredmény",
|
|
1253
1264
|
Szétlövés: "Szétlövés"
|
|
1254
1265
|
}
|
|
1255
|
-
},
|
|
1256
|
-
errors:
|
|
1257
|
-
common:
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1266
|
+
}, Mo = {
|
|
1267
|
+
errors: Vo,
|
|
1268
|
+
common: Ro,
|
|
1269
|
+
additionalText: No,
|
|
1270
|
+
table: Do,
|
|
1271
|
+
game: Oo
|
|
1272
|
+
}, Ho = {
|
|
1261
1273
|
"undefined-column": "The {column} column is not exists!",
|
|
1262
1274
|
"invalid-season-name": "Invalid season name",
|
|
1263
1275
|
"api-key-not-found": "API Key not found"
|
|
1264
|
-
},
|
|
1276
|
+
}, Bo = {
|
|
1265
1277
|
loading: "Loading...",
|
|
1266
1278
|
noData: "No data to display",
|
|
1267
1279
|
selectTimezone: "*All times are displayed according to your computer's time zone ({timezone}). Change: ",
|
|
@@ -1272,7 +1284,18 @@ const Eo = { render: Co }, _s = {
|
|
|
1272
1284
|
all: "All",
|
|
1273
1285
|
report: "Report Sheet",
|
|
1274
1286
|
video: "Video"
|
|
1275
|
-
},
|
|
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 = {
|
|
1276
1299
|
blank: "#",
|
|
1277
1300
|
team: {
|
|
1278
1301
|
short: "Team",
|
|
@@ -1594,7 +1617,7 @@ const Eo = { render: Co }, _s = {
|
|
|
1594
1617
|
short: "#",
|
|
1595
1618
|
tooltip: "Result Type"
|
|
1596
1619
|
}
|
|
1597
|
-
},
|
|
1620
|
+
}, Wo = {
|
|
1598
1621
|
data: {
|
|
1599
1622
|
localTime: "Game local time"
|
|
1600
1623
|
},
|
|
@@ -1642,17 +1665,18 @@ const Eo = { render: Co }, _s = {
|
|
|
1642
1665
|
Végeredmény: "Game Completed",
|
|
1643
1666
|
Szétlövés: "Shoot Out"
|
|
1644
1667
|
}
|
|
1645
|
-
},
|
|
1646
|
-
errors:
|
|
1647
|
-
common:
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1668
|
+
}, Ko = {
|
|
1669
|
+
errors: Ho,
|
|
1670
|
+
common: Bo,
|
|
1671
|
+
additionalText: Fo,
|
|
1672
|
+
table: jo,
|
|
1673
|
+
game: Wo
|
|
1674
|
+
}, Uo = (t, e) => {
|
|
1651
1675
|
const o = t.__vccOpts || t;
|
|
1652
1676
|
for (const [n, a] of e)
|
|
1653
1677
|
o[n] = a;
|
|
1654
1678
|
return o;
|
|
1655
|
-
},
|
|
1679
|
+
}, qo = be({
|
|
1656
1680
|
props: {
|
|
1657
1681
|
locale: {
|
|
1658
1682
|
type: String,
|
|
@@ -1664,7 +1688,7 @@ const Eo = { render: Co }, _s = {
|
|
|
1664
1688
|
}
|
|
1665
1689
|
},
|
|
1666
1690
|
setup(t) {
|
|
1667
|
-
const e =
|
|
1691
|
+
const e = Be({ hu: Mo, en: Ko }, t.messages), { translate: o } = $e({
|
|
1668
1692
|
locale: A(() => t.locale),
|
|
1669
1693
|
messages: e
|
|
1670
1694
|
});
|
|
@@ -1673,10 +1697,10 @@ const Eo = { render: Co }, _s = {
|
|
|
1673
1697
|
};
|
|
1674
1698
|
}
|
|
1675
1699
|
});
|
|
1676
|
-
function
|
|
1700
|
+
function Jo(t, e, o, n, a, s) {
|
|
1677
1701
|
return I(t.$slots, "default", { t: t.translate });
|
|
1678
1702
|
}
|
|
1679
|
-
const
|
|
1703
|
+
const Is = /* @__PURE__ */ Uo(qo, [["render", Jo]]), Yo = ["src"], Zo = ["src", "title"], st = /* @__PURE__ */ Object.assign({
|
|
1680
1704
|
inheritAttrs: !1
|
|
1681
1705
|
}, {
|
|
1682
1706
|
__name: "Image",
|
|
@@ -1695,35 +1719,35 @@ const As = /* @__PURE__ */ Fo(jo, [["render", Wo]]), Ko = ["src"], Uo = ["src",
|
|
|
1695
1719
|
}
|
|
1696
1720
|
},
|
|
1697
1721
|
setup(t) {
|
|
1698
|
-
const e = t, { defaultSrc: o } = zt(e), n = E({ src: e.src }), { error: a, isReady: s } =
|
|
1699
|
-
return (r, c) => (y(),
|
|
1700
|
-
|
|
1722
|
+
const e = t, { defaultSrc: o } = zt(e), n = E({ src: e.src }), { error: a, isReady: s } = Se(n, { resetOnExecute: !1, shallow: !1 });
|
|
1723
|
+
return (r, c) => (y(), w(O, null, [
|
|
1724
|
+
m(a) && m(o) ? (y(), w("img", {
|
|
1701
1725
|
key: 0,
|
|
1702
|
-
src:
|
|
1726
|
+
src: m(o),
|
|
1703
1727
|
class: _(["is-loaded is-default", r.$attrs.class])
|
|
1704
|
-
}, null, 10,
|
|
1705
|
-
|
|
1728
|
+
}, null, 10, Yo)) : $("", !0),
|
|
1729
|
+
m(a) ? $("", !0) : (y(), w("img", {
|
|
1706
1730
|
key: 1,
|
|
1707
1731
|
src: n.value.src,
|
|
1708
|
-
class: _([r.$attrs.class, { "is-loaded":
|
|
1732
|
+
class: _([r.$attrs.class, { "is-loaded": m(s) }]),
|
|
1709
1733
|
title: e.title
|
|
1710
|
-
}, null, 10,
|
|
1734
|
+
}, null, 10, Zo))
|
|
1711
1735
|
], 64));
|
|
1712
1736
|
}
|
|
1713
|
-
}),
|
|
1737
|
+
}), Xo = { style: { "text-align": "center" } }, de = {
|
|
1714
1738
|
__name: "LoadingIndicator",
|
|
1715
1739
|
setup(t) {
|
|
1716
|
-
const { t: e } =
|
|
1717
|
-
return (o, n) => (y(),
|
|
1740
|
+
const { t: e } = nt();
|
|
1741
|
+
return (o, n) => (y(), w("div", Xo, x(m(e)("common.loading")), 1));
|
|
1718
1742
|
}
|
|
1719
1743
|
};
|
|
1720
|
-
function
|
|
1721
|
-
const s = A(() => Math.ceil(
|
|
1722
|
-
const i =
|
|
1723
|
-
let l = Math.max(i -
|
|
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 i = m(t) - 1, u = Array.from({ length: s.value }, (h, g) => g + 1), p = Math.floor(n / 2);
|
|
1747
|
+
let l = Math.max(i - p, 0);
|
|
1724
1748
|
return l + n >= s.value && (l = Math.max(s.value - n, 0)), u.slice(l, l + n);
|
|
1725
1749
|
}), c = (i) => {
|
|
1726
|
-
const u =
|
|
1750
|
+
const u = m(t) + i;
|
|
1727
1751
|
d(u) && a(u);
|
|
1728
1752
|
}, f = (i) => {
|
|
1729
1753
|
d(i) && a(i);
|
|
@@ -1736,7 +1760,7 @@ function qo({ currentPage: t, itemsPerPage: e = 20, totalItems: o, rangeLength:
|
|
|
1736
1760
|
pageStep: c
|
|
1737
1761
|
};
|
|
1738
1762
|
}
|
|
1739
|
-
const
|
|
1763
|
+
const tn = {
|
|
1740
1764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1741
1765
|
viewBox: "0 0 24 24",
|
|
1742
1766
|
fill: "none",
|
|
@@ -1744,13 +1768,13 @@ const Yo = {
|
|
|
1744
1768
|
"stroke-width": "2",
|
|
1745
1769
|
"stroke-linecap": "round",
|
|
1746
1770
|
"stroke-linejoin": "round"
|
|
1747
|
-
},
|
|
1748
|
-
|
|
1771
|
+
}, en = /* @__PURE__ */ b("polyline", { points: "15 18 9 12 15 6" }, null, -1), on = [
|
|
1772
|
+
en
|
|
1749
1773
|
];
|
|
1750
|
-
function
|
|
1751
|
-
return y(),
|
|
1774
|
+
function nn(t, e) {
|
|
1775
|
+
return y(), w("svg", tn, on);
|
|
1752
1776
|
}
|
|
1753
|
-
const
|
|
1777
|
+
const sn = { render: nn }, an = {
|
|
1754
1778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1755
1779
|
viewBox: "0 0 24 24",
|
|
1756
1780
|
fill: "none",
|
|
@@ -1758,21 +1782,21 @@ const tn = { render: Qo }, en = {
|
|
|
1758
1782
|
"stroke-width": "2",
|
|
1759
1783
|
"stroke-linecap": "round",
|
|
1760
1784
|
"stroke-linejoin": "round"
|
|
1761
|
-
},
|
|
1762
|
-
|
|
1785
|
+
}, rn = /* @__PURE__ */ b("polyline", { points: "9 18 15 12 9 6" }, null, -1), ln = [
|
|
1786
|
+
rn
|
|
1763
1787
|
];
|
|
1764
|
-
function
|
|
1765
|
-
return y(),
|
|
1788
|
+
function cn(t, e) {
|
|
1789
|
+
return y(), w("svg", an, ln);
|
|
1766
1790
|
}
|
|
1767
|
-
const
|
|
1791
|
+
const dn = { render: cn }, un = ["disabled"], mn = ["disabled"], pn = {
|
|
1768
1792
|
key: 1,
|
|
1769
1793
|
class: "is-disabled"
|
|
1770
|
-
},
|
|
1794
|
+
}, hn = ["disabled", "onClick"], fn = {
|
|
1771
1795
|
key: 2,
|
|
1772
1796
|
class: "is-disabled"
|
|
1773
|
-
},
|
|
1774
|
-
|
|
1775
|
-
],
|
|
1797
|
+
}, gn = /* @__PURE__ */ b("span", null, "...", -1), yn = [
|
|
1798
|
+
gn
|
|
1799
|
+
], vn = ["disabled"], bn = ["disabled"], Vs = {
|
|
1776
1800
|
__name: "Paginator",
|
|
1777
1801
|
props: {
|
|
1778
1802
|
page: {
|
|
@@ -1804,71 +1828,71 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
1804
1828
|
},
|
|
1805
1829
|
emits: ["change"],
|
|
1806
1830
|
setup(t, { emit: e }) {
|
|
1807
|
-
const o = t, n = e, a =
|
|
1831
|
+
const o = t, n = e, a = J("paginator"), { page: s, pageCount: r, range: c, goTo: f, pageStep: d } = Qo({
|
|
1808
1832
|
currentPage: A(() => o.page),
|
|
1809
1833
|
totalItems: A(() => o.totalItems),
|
|
1810
1834
|
itemsPerPage: o.itemsPerPage,
|
|
1811
1835
|
rangeLength: o.rangeLength,
|
|
1812
1836
|
update: (i) => n("change", i)
|
|
1813
1837
|
});
|
|
1814
|
-
return (i, u) =>
|
|
1838
|
+
return (i, u) => m(r) > 1 ? (y(), w("div", {
|
|
1815
1839
|
key: 0,
|
|
1816
|
-
class: _(
|
|
1840
|
+
class: _(m(a))
|
|
1817
1841
|
}, [
|
|
1818
|
-
|
|
1842
|
+
b("button", {
|
|
1819
1843
|
type: "button",
|
|
1820
|
-
disabled:
|
|
1821
|
-
onClick: u[0] || (u[0] = (
|
|
1844
|
+
disabled: m(s) === 1,
|
|
1845
|
+
onClick: u[0] || (u[0] = (p) => m(d)(-1))
|
|
1822
1846
|
}, [
|
|
1823
1847
|
I(i.$slots, "prev", {}, () => [
|
|
1824
|
-
C(
|
|
1848
|
+
C(m(sn), { class: "icon paginator-left" })
|
|
1825
1849
|
])
|
|
1826
|
-
], 8,
|
|
1827
|
-
t.isCompact ?
|
|
1850
|
+
], 8, un),
|
|
1851
|
+
t.isCompact ? $("", !0) : (y(), w("button", {
|
|
1828
1852
|
key: 0,
|
|
1829
1853
|
type: "button",
|
|
1830
|
-
disabled:
|
|
1831
|
-
onClick: u[1] || (u[1] = (
|
|
1832
|
-
}, "1", 8,
|
|
1833
|
-
t.isCompact ?
|
|
1834
|
-
(y(!0),
|
|
1854
|
+
disabled: m(s) === 1,
|
|
1855
|
+
onClick: u[1] || (u[1] = (p) => m(f)(1))
|
|
1856
|
+
}, "1", 8, mn)),
|
|
1857
|
+
t.isCompact ? $("", !0) : (y(), w("div", pn, "...")),
|
|
1858
|
+
(y(!0), w(O, null, tt(m(c), (p) => (y(), w("button", {
|
|
1835
1859
|
type: "button",
|
|
1836
|
-
key:
|
|
1837
|
-
class: _({ "is-active":
|
|
1838
|
-
disabled:
|
|
1839
|
-
onClick: (l) =>
|
|
1840
|
-
}, x(
|
|
1841
|
-
t.isCompact ?
|
|
1842
|
-
t.isCompact ?
|
|
1860
|
+
key: p,
|
|
1861
|
+
class: _({ "is-active": p === m(s) }),
|
|
1862
|
+
disabled: p === m(s),
|
|
1863
|
+
onClick: (l) => m(f)(p)
|
|
1864
|
+
}, x(p), 11, hn))), 128)),
|
|
1865
|
+
t.isCompact ? $("", !0) : (y(), w("div", fn, yn)),
|
|
1866
|
+
t.isCompact ? $("", !0) : (y(), w("button", {
|
|
1843
1867
|
key: 3,
|
|
1844
1868
|
type: "button",
|
|
1845
|
-
disabled:
|
|
1846
|
-
onClick: u[2] || (u[2] = (
|
|
1847
|
-
}, x(
|
|
1848
|
-
|
|
1869
|
+
disabled: m(s) === m(r),
|
|
1870
|
+
onClick: u[2] || (u[2] = (p) => m(f)(m(r)))
|
|
1871
|
+
}, x(m(r)), 9, vn)),
|
|
1872
|
+
b("button", {
|
|
1849
1873
|
type: "button",
|
|
1850
|
-
disabled:
|
|
1851
|
-
onClick: u[3] || (u[3] =
|
|
1874
|
+
disabled: m(s) === m(r),
|
|
1875
|
+
onClick: u[3] || (u[3] = rt((p) => m(d)(1), ["prevent"]))
|
|
1852
1876
|
}, [
|
|
1853
1877
|
I(i.$slots, "next", {}, () => [
|
|
1854
|
-
C(
|
|
1878
|
+
C(m(dn), { class: "icon paginator-left" })
|
|
1855
1879
|
])
|
|
1856
|
-
], 8,
|
|
1857
|
-
], 2)) :
|
|
1880
|
+
], 8, bn)
|
|
1881
|
+
], 2)) : $("", !0);
|
|
1858
1882
|
}
|
|
1859
1883
|
}, ue = {
|
|
1860
1884
|
__name: "ResponsiveTable",
|
|
1861
1885
|
setup(t) {
|
|
1862
|
-
const e = E(null), o =
|
|
1863
|
-
return (n, a) => (y(),
|
|
1886
|
+
const e = E(null), o = J("table-responsive");
|
|
1887
|
+
return (n, a) => (y(), w("div", {
|
|
1864
1888
|
ref_key: "el",
|
|
1865
1889
|
ref: e,
|
|
1866
|
-
class: _(
|
|
1890
|
+
class: _(m(o))
|
|
1867
1891
|
}, [
|
|
1868
1892
|
I(n.$slots, "default", { el: e.value })
|
|
1869
1893
|
], 2));
|
|
1870
1894
|
}
|
|
1871
|
-
},
|
|
1895
|
+
}, wn = ["onClick"], Rs = {
|
|
1872
1896
|
__name: "TimezoneSelector",
|
|
1873
1897
|
props: {
|
|
1874
1898
|
locale: {
|
|
@@ -1882,38 +1906,38 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
1882
1906
|
},
|
|
1883
1907
|
emits: ["change"],
|
|
1884
1908
|
setup(t, { emit: e }) {
|
|
1885
|
-
const o = t, n = e, { t: a } =
|
|
1909
|
+
const o = t, n = e, { t: a } = nt(), s = J("timezone-selector"), r = A(() => gt(/* @__PURE__ */ new Date(), null, o.locale)), c = Ee(), f = A(() => Array.from(Ie.values()).map((i) => ({
|
|
1886
1910
|
...i,
|
|
1887
1911
|
isActive: gt(/* @__PURE__ */ new Date(), o.currentZone, o.locale) === gt(/* @__PURE__ */ new Date(), i.timezone, o.locale),
|
|
1888
1912
|
zoneOffsetName: gt(/* @__PURE__ */ new Date(), i.timezone, o.locale)
|
|
1889
1913
|
}))), d = (i) => n("change", i);
|
|
1890
|
-
return (i, u) => (y(),
|
|
1891
|
-
class: _(
|
|
1914
|
+
return (i, u) => (y(), w("div", {
|
|
1915
|
+
class: _(m(s))
|
|
1892
1916
|
}, [
|
|
1893
|
-
C(
|
|
1917
|
+
C(m(ze), {
|
|
1894
1918
|
path: "common.selectTimezone",
|
|
1895
1919
|
tag: "span"
|
|
1896
1920
|
}, {
|
|
1897
1921
|
timezone: T(() => [
|
|
1898
|
-
|
|
1922
|
+
b("a", {
|
|
1899
1923
|
href: "#",
|
|
1900
|
-
onClick: u[0] || (u[0] =
|
|
1924
|
+
onClick: u[0] || (u[0] = rt((p) => d(m(c)), ["prevent"]))
|
|
1901
1925
|
}, x(r.value), 1)
|
|
1902
1926
|
]),
|
|
1903
1927
|
_: 1
|
|
1904
1928
|
}),
|
|
1905
|
-
(y(!0),
|
|
1906
|
-
key:
|
|
1929
|
+
(y(!0), w(O, null, tt(f.value, (p) => (y(), w("a", {
|
|
1930
|
+
key: p.countryLabelKey,
|
|
1907
1931
|
href: "#",
|
|
1908
|
-
class: _({ "is-active":
|
|
1909
|
-
onClick:
|
|
1910
|
-
}, x(
|
|
1932
|
+
class: _({ "is-active": p.isActive }),
|
|
1933
|
+
onClick: rt((l) => d(p.timezone), ["prevent"])
|
|
1934
|
+
}, x(m(a)(`common.${p.countryLabelKey}`)) + " (" + x(p.zoneOffsetName) + ") ", 11, wn))), 128))
|
|
1911
1935
|
], 2));
|
|
1912
1936
|
}
|
|
1913
|
-
},
|
|
1937
|
+
}, xn = { class: "is-portrait-image" }, kn = { class: "is-team-name-long" }, Tn = { class: "is-team-name-short" }, Pn = { class: "is-team-name-long" }, $n = { class: "is-team-name-short" }, Sn = { class: "is-team-name-long" }, _n = { class: "is-team-name-short" }, zn = ["href"], An = { class: "is-team-name-long" }, Gn = { class: "is-team-name-short" }, Cn = ["href"], En = {
|
|
1914
1938
|
key: 0,
|
|
1915
1939
|
class: "is-text-dark"
|
|
1916
|
-
},
|
|
1940
|
+
}, Ln = ["href", "target"], Ns = {
|
|
1917
1941
|
__name: "StatisticsTable",
|
|
1918
1942
|
props: {
|
|
1919
1943
|
columns: {
|
|
@@ -1973,7 +1997,7 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
1973
1997
|
},
|
|
1974
1998
|
emits: ["sort"],
|
|
1975
1999
|
setup(t, { emit: e }) {
|
|
1976
|
-
const o = t, { columns: n, hideColumns: a } = zt(o), s = e, { onError: r } =
|
|
2000
|
+
const o = t, { columns: n, hideColumns: a } = zt(o), s = e, { onError: r } = qt(), { columns: c, error: f } = Jt(
|
|
1977
2001
|
n,
|
|
1978
2002
|
a,
|
|
1979
2003
|
A(() => ({
|
|
@@ -1988,33 +2012,33 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
1988
2012
|
);
|
|
1989
2013
|
const d = (i) => s("sort", i);
|
|
1990
2014
|
return (i, u) => (y(), L(ue, null, {
|
|
1991
|
-
default: T(({ el:
|
|
2015
|
+
default: T(({ el: p }) => [
|
|
1992
2016
|
C(ce, {
|
|
1993
|
-
columns:
|
|
2017
|
+
columns: m(c),
|
|
1994
2018
|
sort: o.sort,
|
|
1995
2019
|
rows: o.rows,
|
|
1996
2020
|
"is-loading": t.isLoading,
|
|
1997
|
-
"append-to": t.appendTo ||
|
|
2021
|
+
"append-to": t.appendTo || p,
|
|
1998
2022
|
onSort: d
|
|
1999
|
-
},
|
|
2023
|
+
}, we({
|
|
2000
2024
|
"cell-index": T(({ row: l }) => [
|
|
2001
|
-
|
|
2025
|
+
b("span", {
|
|
2002
2026
|
class: _(l.indexClass)
|
|
2003
2027
|
}, x(l.index), 3)
|
|
2004
2028
|
]),
|
|
2005
2029
|
"cell-playerPortrait": T(({ row: l }) => [
|
|
2006
|
-
|
|
2007
|
-
(y(), L(
|
|
2030
|
+
b("div", xn, [
|
|
2031
|
+
(y(), L(st, {
|
|
2008
2032
|
key: l.player.playerId,
|
|
2009
2033
|
src: l.player.picture,
|
|
2010
|
-
"default-src":
|
|
2034
|
+
"default-src": m(Ve)
|
|
2011
2035
|
}, null, 8, ["src", "default-src"]))
|
|
2012
2036
|
])
|
|
2013
2037
|
]),
|
|
2014
2038
|
"cell-teamLogo": T(({ row: l }) => {
|
|
2015
2039
|
var h, g;
|
|
2016
2040
|
return [
|
|
2017
|
-
(y(), L(
|
|
2041
|
+
(y(), L(st, {
|
|
2018
2042
|
class: "is-logo-image",
|
|
2019
2043
|
key: ((h = l.team) == null ? void 0 : h.id) ?? l.id,
|
|
2020
2044
|
src: (g = l.team) == null ? void 0 : g.logo
|
|
@@ -2024,7 +2048,7 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2024
2048
|
"cell-homeTeamLogo": T(({ row: l }) => {
|
|
2025
2049
|
var h, g;
|
|
2026
2050
|
return [
|
|
2027
|
-
(y(), L(
|
|
2051
|
+
(y(), L(st, {
|
|
2028
2052
|
class: "is-logo-image is-right",
|
|
2029
2053
|
key: (h = l.homeTeam) == null ? void 0 : h.id,
|
|
2030
2054
|
src: (g = l.homeTeam) == null ? void 0 : g.logo
|
|
@@ -2034,7 +2058,7 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2034
2058
|
"cell-awayTeamLogo": T(({ row: l }) => {
|
|
2035
2059
|
var h, g;
|
|
2036
2060
|
return [
|
|
2037
|
-
(y(), L(
|
|
2061
|
+
(y(), L(st, {
|
|
2038
2062
|
class: "is-logo-image is-right",
|
|
2039
2063
|
key: (h = l.awayTeam) == null ? void 0 : h.id,
|
|
2040
2064
|
src: (g = l.awayTeam) == null ? void 0 : g.logo
|
|
@@ -2044,22 +2068,22 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2044
2068
|
"cell-teamName": T(({ row: l }) => {
|
|
2045
2069
|
var h, g;
|
|
2046
2070
|
return [
|
|
2047
|
-
|
|
2048
|
-
|
|
2071
|
+
b("span", kn, x((h = l.team) == null ? void 0 : h.longName), 1),
|
|
2072
|
+
b("span", Tn, x((g = l.team) == null ? void 0 : g.shortName), 1)
|
|
2049
2073
|
];
|
|
2050
2074
|
}),
|
|
2051
2075
|
"cell-homeTeamName": T(({ row: l }) => {
|
|
2052
2076
|
var h, g;
|
|
2053
2077
|
return [
|
|
2054
|
-
|
|
2055
|
-
|
|
2078
|
+
b("span", Pn, x((h = l.homeTeam) == null ? void 0 : h.longName), 1),
|
|
2079
|
+
b("span", $n, x((g = l.homeTeam) == null ? void 0 : g.shortName), 1)
|
|
2056
2080
|
];
|
|
2057
2081
|
}),
|
|
2058
2082
|
"cell-awayTeamName": T(({ row: l }) => {
|
|
2059
2083
|
var h, g;
|
|
2060
2084
|
return [
|
|
2061
|
-
|
|
2062
|
-
|
|
2085
|
+
b("span", Sn, x((h = l.awayTeam) == null ? void 0 : h.longName), 1),
|
|
2086
|
+
b("span", _n, x((g = l.awayTeam) == null ? void 0 : g.shortName), 1)
|
|
2063
2087
|
];
|
|
2064
2088
|
}),
|
|
2065
2089
|
"cell-location": T(({ row: l }) => {
|
|
@@ -2069,12 +2093,12 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2069
2093
|
];
|
|
2070
2094
|
}),
|
|
2071
2095
|
"cell-gameResult": T(({ row: l }) => [
|
|
2072
|
-
l.gameStatus === 0 ? (y(),
|
|
2096
|
+
l.gameStatus === 0 ? (y(), w("span", En, "-:-")) : (y(), w("a", {
|
|
2073
2097
|
key: 1,
|
|
2074
2098
|
href: t.externalGameResolver(l),
|
|
2075
2099
|
target: t.externalGameResolverTarget,
|
|
2076
2100
|
class: _({ "is-text-dark": l.gameStatus !== 1, "is-text-accent": l.gameStatus === 1 })
|
|
2077
|
-
}, x(l.homeTeamScore) + ":" + x(l.awayTeamScore), 11,
|
|
2101
|
+
}, x(l.homeTeamScore) + ":" + x(l.awayTeamScore), 11, Ln))
|
|
2078
2102
|
]),
|
|
2079
2103
|
loading: T(() => [
|
|
2080
2104
|
C(de)
|
|
@@ -2086,13 +2110,13 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2086
2110
|
fn: T(({ row: l }) => {
|
|
2087
2111
|
var h, g;
|
|
2088
2112
|
return [
|
|
2089
|
-
|
|
2113
|
+
b("a", {
|
|
2090
2114
|
href: t.externalTeamResolver(l),
|
|
2091
2115
|
target: "_blank"
|
|
2092
2116
|
}, [
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
], 8,
|
|
2117
|
+
b("span", An, x((h = l.team) == null ? void 0 : h.longName), 1),
|
|
2118
|
+
b("span", Gn, x((g = l.team) == null ? void 0 : g.shortName), 1)
|
|
2119
|
+
], 8, zn)
|
|
2096
2120
|
];
|
|
2097
2121
|
}),
|
|
2098
2122
|
key: "0"
|
|
@@ -2100,10 +2124,10 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2100
2124
|
t.isPlayerLinked ? {
|
|
2101
2125
|
name: "cell-name",
|
|
2102
2126
|
fn: T(({ row: l }) => [
|
|
2103
|
-
|
|
2127
|
+
b("a", {
|
|
2104
2128
|
href: t.externalPlayerResolver(l),
|
|
2105
2129
|
target: "_blank"
|
|
2106
|
-
}, x(l.name), 9,
|
|
2130
|
+
}, x(l.name), 9, Cn)
|
|
2107
2131
|
]),
|
|
2108
2132
|
key: "1"
|
|
2109
2133
|
} : void 0
|
|
@@ -2112,7 +2136,7 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2112
2136
|
_: 1
|
|
2113
2137
|
}));
|
|
2114
2138
|
}
|
|
2115
|
-
},
|
|
2139
|
+
}, In = {
|
|
2116
2140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2117
2141
|
viewBox: "0 0 24 24",
|
|
2118
2142
|
fill: "none",
|
|
@@ -2120,32 +2144,32 @@ const an = { render: sn }, rn = ["disabled"], ln = ["disabled"], cn = {
|
|
|
2120
2144
|
"stroke-width": "2",
|
|
2121
2145
|
"stroke-linecap": "round",
|
|
2122
2146
|
"stroke-linejoin": "round"
|
|
2123
|
-
},
|
|
2147
|
+
}, Vn = /* @__PURE__ */ b("rect", {
|
|
2124
2148
|
x: "2",
|
|
2125
2149
|
y: "3",
|
|
2126
2150
|
width: "20",
|
|
2127
2151
|
height: "14",
|
|
2128
2152
|
rx: "2",
|
|
2129
2153
|
ry: "2"
|
|
2130
|
-
}, null, -1),
|
|
2154
|
+
}, null, -1), Rn = /* @__PURE__ */ b("line", {
|
|
2131
2155
|
x1: "8",
|
|
2132
2156
|
y1: "21",
|
|
2133
2157
|
x2: "16",
|
|
2134
2158
|
y2: "21"
|
|
2135
|
-
}, null, -1),
|
|
2159
|
+
}, null, -1), Nn = /* @__PURE__ */ b("line", {
|
|
2136
2160
|
x1: "12",
|
|
2137
2161
|
y1: "17",
|
|
2138
2162
|
x2: "12",
|
|
2139
2163
|
y2: "21"
|
|
2140
|
-
}, null, -1),
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2164
|
+
}, null, -1), Dn = [
|
|
2165
|
+
Vn,
|
|
2166
|
+
Rn,
|
|
2167
|
+
Nn
|
|
2144
2168
|
];
|
|
2145
|
-
function
|
|
2146
|
-
return y(),
|
|
2169
|
+
function On(t, e) {
|
|
2170
|
+
return y(), w("svg", In, Dn);
|
|
2147
2171
|
}
|
|
2148
|
-
const
|
|
2172
|
+
const Mn = { render: On }, Hn = {
|
|
2149
2173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2150
2174
|
viewBox: "0 0 24 24",
|
|
2151
2175
|
fill: "none",
|
|
@@ -2153,27 +2177,27 @@ const Nn = { render: Vn }, Rn = {
|
|
|
2153
2177
|
"stroke-width": "2",
|
|
2154
2178
|
"stroke-linecap": "round",
|
|
2155
2179
|
"stroke-linejoin": "round"
|
|
2156
|
-
},
|
|
2180
|
+
}, Bn = /* @__PURE__ */ b("circle", {
|
|
2157
2181
|
cx: "12",
|
|
2158
2182
|
cy: "12",
|
|
2159
2183
|
r: "1"
|
|
2160
|
-
}, null, -1),
|
|
2184
|
+
}, null, -1), Fn = /* @__PURE__ */ b("circle", {
|
|
2161
2185
|
cx: "12",
|
|
2162
2186
|
cy: "5",
|
|
2163
2187
|
r: "1"
|
|
2164
|
-
}, null, -1),
|
|
2188
|
+
}, null, -1), jn = /* @__PURE__ */ b("circle", {
|
|
2165
2189
|
cx: "12",
|
|
2166
2190
|
cy: "19",
|
|
2167
2191
|
r: "1"
|
|
2168
|
-
}, null, -1),
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2192
|
+
}, null, -1), Wn = [
|
|
2193
|
+
Bn,
|
|
2194
|
+
Fn,
|
|
2195
|
+
jn
|
|
2172
2196
|
];
|
|
2173
|
-
function
|
|
2174
|
-
return y(),
|
|
2197
|
+
function Kn(t, e) {
|
|
2198
|
+
return y(), w("svg", Hn, Wn);
|
|
2175
2199
|
}
|
|
2176
|
-
const
|
|
2200
|
+
const Un = { render: Kn }, qn = {
|
|
2177
2201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2178
2202
|
viewBox: "0 0 24 24",
|
|
2179
2203
|
fill: "none",
|
|
@@ -2181,21 +2205,21 @@ const Fn = { render: Bn }, jn = {
|
|
|
2181
2205
|
"stroke-width": "2",
|
|
2182
2206
|
"stroke-linecap": "round",
|
|
2183
2207
|
"stroke-linejoin": "round"
|
|
2184
|
-
},
|
|
2208
|
+
}, Jn = /* @__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), Yn = /* @__PURE__ */ b("rect", {
|
|
2185
2209
|
x: "8",
|
|
2186
2210
|
y: "2",
|
|
2187
2211
|
width: "8",
|
|
2188
2212
|
height: "4",
|
|
2189
2213
|
rx: "1",
|
|
2190
2214
|
ry: "1"
|
|
2191
|
-
}, null, -1),
|
|
2192
|
-
|
|
2193
|
-
|
|
2215
|
+
}, null, -1), Zn = [
|
|
2216
|
+
Jn,
|
|
2217
|
+
Yn
|
|
2194
2218
|
];
|
|
2195
|
-
function
|
|
2196
|
-
return y(),
|
|
2219
|
+
function Xn(t, e) {
|
|
2220
|
+
return y(), w("svg", qn, Zn);
|
|
2197
2221
|
}
|
|
2198
|
-
const
|
|
2222
|
+
const Qn = { render: Xn }, ts = {
|
|
2199
2223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2200
2224
|
viewBox: "0 0 24 24",
|
|
2201
2225
|
fill: "none",
|
|
@@ -2203,26 +2227,26 @@ const qn = { render: Jn }, Yn = {
|
|
|
2203
2227
|
"stroke-width": "2",
|
|
2204
2228
|
"stroke-linecap": "round",
|
|
2205
2229
|
"stroke-linejoin": "round"
|
|
2206
|
-
},
|
|
2207
|
-
|
|
2208
|
-
|
|
2230
|
+
}, es = /* @__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), os = /* @__PURE__ */ b("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1), ns = [
|
|
2231
|
+
es,
|
|
2232
|
+
os
|
|
2209
2233
|
];
|
|
2210
|
-
function
|
|
2211
|
-
return y(),
|
|
2234
|
+
function ss(t, e) {
|
|
2235
|
+
return y(), w("svg", ts, ns);
|
|
2212
2236
|
}
|
|
2213
|
-
const
|
|
2237
|
+
const as = { render: ss }, rs = { class: "is-team-name-long" }, ls = { class: "is-team-name-short" }, is = { class: "is-team-name-long" }, cs = { class: "is-team-name-short" }, ds = {
|
|
2214
2238
|
key: 0,
|
|
2215
2239
|
class: "is-text-dark"
|
|
2216
|
-
},
|
|
2240
|
+
}, us = ["href", "target"], ms = {
|
|
2217
2241
|
key: 0,
|
|
2218
2242
|
class: "label"
|
|
2219
|
-
},
|
|
2243
|
+
}, ps = {
|
|
2220
2244
|
key: 1,
|
|
2221
2245
|
class: "label"
|
|
2222
|
-
},
|
|
2246
|
+
}, hs = {
|
|
2223
2247
|
key: 2,
|
|
2224
2248
|
class: "label"
|
|
2225
|
-
},
|
|
2249
|
+
}, fs = { key: 1 }, gs = ["onClick", "onFocus", "onBlur"], ys = { class: "is-dropdown-menu" }, vs = ["href", "target"], bs = { key: 0 }, ws = ["href"], Ds = {
|
|
2226
2250
|
__name: "ScheduleTable",
|
|
2227
2251
|
props: {
|
|
2228
2252
|
rows: {
|
|
@@ -2251,14 +2275,14 @@ const es = { render: ts }, os = { class: "is-team-name-long" }, ns = { class: "i
|
|
|
2251
2275
|
}
|
|
2252
2276
|
},
|
|
2253
2277
|
setup(t) {
|
|
2254
|
-
const e = t, o = E(null), { onError: n } =
|
|
2255
|
-
|
|
2278
|
+
const e = t, o = E(null), { onError: n } = qt(), { columns: a, error: s } = Jt(
|
|
2279
|
+
Ne,
|
|
2256
2280
|
A(() => e.hideColumns),
|
|
2257
2281
|
A(() => ({
|
|
2258
2282
|
offsetName: e.offsetName
|
|
2259
2283
|
}))
|
|
2260
2284
|
);
|
|
2261
|
-
|
|
2285
|
+
Ae(
|
|
2262
2286
|
s,
|
|
2263
2287
|
() => n(
|
|
2264
2288
|
new Zt(yt.message, {
|
|
@@ -2270,53 +2294,53 @@ const es = { render: ts }, os = { class: "is-team-name-long" }, ns = { class: "i
|
|
|
2270
2294
|
immediate: !0
|
|
2271
2295
|
}
|
|
2272
2296
|
);
|
|
2273
|
-
const { t: r } =
|
|
2274
|
-
return (c, f) => (y(),
|
|
2297
|
+
const { t: r } = nt();
|
|
2298
|
+
return (c, f) => (y(), w(O, null, [
|
|
2275
2299
|
C(ue, null, {
|
|
2276
2300
|
default: T(({ el: d }) => [
|
|
2277
2301
|
C(ce, {
|
|
2278
|
-
columns:
|
|
2302
|
+
columns: m(a),
|
|
2279
2303
|
rows: e.rows,
|
|
2280
2304
|
"is-loading": t.isLoading,
|
|
2281
2305
|
"append-to": o.value || d
|
|
2282
2306
|
}, {
|
|
2283
2307
|
"cell-homeTeamName": T(({ row: i }) => [
|
|
2284
|
-
|
|
2285
|
-
|
|
2308
|
+
b("span", rs, x(i.homeTeam.longName), 1),
|
|
2309
|
+
b("span", ls, x(i.homeTeam.shortName), 1)
|
|
2286
2310
|
]),
|
|
2287
2311
|
"cell-awayTeamName": T(({ row: i }) => [
|
|
2288
|
-
|
|
2289
|
-
|
|
2312
|
+
b("span", is, x(i.awayTeam.longName), 1),
|
|
2313
|
+
b("span", cs, x(i.awayTeam.shortName), 1)
|
|
2290
2314
|
]),
|
|
2291
2315
|
"cell-homeTeamLogo": T(({ row: i }) => [
|
|
2292
|
-
(y(), L(
|
|
2316
|
+
(y(), L(st, {
|
|
2293
2317
|
class: "is-logo-image is-right",
|
|
2294
2318
|
key: i.homeTeam.id,
|
|
2295
2319
|
src: i.homeTeam.logo
|
|
2296
2320
|
}, null, 8, ["src"]))
|
|
2297
2321
|
]),
|
|
2298
2322
|
"cell-awayTeamLogo": T(({ row: i }) => [
|
|
2299
|
-
(y(), L(
|
|
2323
|
+
(y(), L(st, {
|
|
2300
2324
|
class: "is-logo-image is-right",
|
|
2301
2325
|
key: i.awayTeam.id,
|
|
2302
2326
|
src: i.awayTeam.logo
|
|
2303
2327
|
}, null, 8, ["src"]))
|
|
2304
2328
|
]),
|
|
2305
2329
|
"cell-gameResult": T(({ row: i }) => [
|
|
2306
|
-
i.gameStatus === 0 ? (y(),
|
|
2330
|
+
i.gameStatus === 0 ? (y(), w("span", ds, "-:-")) : (y(), w("a", {
|
|
2307
2331
|
key: 1,
|
|
2308
2332
|
href: t.externalGameResolver(i.gameId),
|
|
2309
2333
|
target: t.externalGameResolverTarget,
|
|
2310
2334
|
class: _({ "is-text-dark": i.gameStatus !== 1, "is-text-accent": i.gameStatus === 1 })
|
|
2311
|
-
}, x(i.homeTeamScore) + ":" + x(i.awayTeamScore), 11,
|
|
2335
|
+
}, x(i.homeTeamScore) + ":" + x(i.awayTeamScore), 11, us))
|
|
2312
2336
|
]),
|
|
2313
2337
|
"cell-gameResultType": T(({ row: i }) => [
|
|
2314
|
-
i.isOvertime ? (y(),
|
|
2315
|
-
i.isShootout ? (y(),
|
|
2316
|
-
i.seriesStandings ? (y(),
|
|
2338
|
+
i.isOvertime ? (y(), w("span", ms, x(m(r)("common.overtimeShort")), 1)) : $("", !0),
|
|
2339
|
+
i.isShootout ? (y(), w("span", ps, x(m(r)("common.shootoutShort")), 1)) : $("", !0),
|
|
2340
|
+
i.seriesStandings ? (y(), w("span", hs, x(i.seriesStandings), 1)) : $("", !0)
|
|
2317
2341
|
]),
|
|
2318
2342
|
"cell-broadcast": T(({ row: i }) => [
|
|
2319
|
-
i.broadcast ? (y(), L(
|
|
2343
|
+
i.broadcast ? (y(), L(m(Mn), { key: 0 })) : (y(), w("span", fs))
|
|
2320
2344
|
]),
|
|
2321
2345
|
"cell-location": T(({ row: i }) => {
|
|
2322
2346
|
var u;
|
|
@@ -2331,38 +2355,38 @@ const es = { render: ts }, os = { class: "is-team-name-long" }, ns = { class: "i
|
|
|
2331
2355
|
theme: "content",
|
|
2332
2356
|
"append-to": d
|
|
2333
2357
|
}, {
|
|
2334
|
-
default: T(({ setRef: u, show:
|
|
2335
|
-
|
|
2358
|
+
default: T(({ setRef: u, show: p, hide: l }) => [
|
|
2359
|
+
b("button", {
|
|
2336
2360
|
ref: u,
|
|
2337
|
-
onClick:
|
|
2338
|
-
onFocus:
|
|
2361
|
+
onClick: rt(p, ["stop"]),
|
|
2362
|
+
onFocus: p,
|
|
2339
2363
|
onBlur: l
|
|
2340
2364
|
}, [
|
|
2341
|
-
C(
|
|
2342
|
-
], 40,
|
|
2365
|
+
C(m(Un))
|
|
2366
|
+
], 40, gs)
|
|
2343
2367
|
]),
|
|
2344
2368
|
content: T(() => [
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2369
|
+
b("ul", ys, [
|
|
2370
|
+
b("li", null, [
|
|
2371
|
+
b("a", {
|
|
2348
2372
|
href: t.externalGameResolver(i.gameId),
|
|
2349
2373
|
class: "is-dropdown-item",
|
|
2350
2374
|
target: t.externalGameResolverTarget
|
|
2351
2375
|
}, [
|
|
2352
|
-
C(
|
|
2353
|
-
K(" " + x(
|
|
2354
|
-
], 8,
|
|
2376
|
+
C(m(Qn), { width: "14" }),
|
|
2377
|
+
K(" " + x(m(r)("common.report")), 1)
|
|
2378
|
+
], 8, vs)
|
|
2355
2379
|
]),
|
|
2356
|
-
i.video ? (y(),
|
|
2357
|
-
|
|
2380
|
+
i.video ? (y(), w("li", bs, [
|
|
2381
|
+
b("a", {
|
|
2358
2382
|
href: i.video,
|
|
2359
2383
|
class: "is-dropdown-item",
|
|
2360
2384
|
target: "_blank"
|
|
2361
2385
|
}, [
|
|
2362
|
-
C(
|
|
2363
|
-
K(" " + x(
|
|
2364
|
-
], 8,
|
|
2365
|
-
])) :
|
|
2386
|
+
C(m(as), { width: "14" }),
|
|
2387
|
+
K(" " + x(m(r)("common.video")), 1)
|
|
2388
|
+
], 8, ws)
|
|
2389
|
+
])) : $("", !0)
|
|
2366
2390
|
])
|
|
2367
2391
|
]),
|
|
2368
2392
|
_: 2
|
|
@@ -2376,13 +2400,13 @@ const es = { render: ts }, os = { class: "is-team-name-long" }, ns = { class: "i
|
|
|
2376
2400
|
]),
|
|
2377
2401
|
_: 1
|
|
2378
2402
|
}),
|
|
2379
|
-
|
|
2403
|
+
b("div", {
|
|
2380
2404
|
ref_key: "tooltipContainer",
|
|
2381
2405
|
ref: o
|
|
2382
2406
|
}, null, 512)
|
|
2383
2407
|
], 64));
|
|
2384
2408
|
}
|
|
2385
|
-
},
|
|
2409
|
+
}, xs = { class: "g-row g-gap-normal is-mb-5" }, ks = ["value"], Ts = { key: 0 }, Ps = ["onClick"], Os = {
|
|
2386
2410
|
__name: "SeasonSelector",
|
|
2387
2411
|
props: {
|
|
2388
2412
|
seasons: {
|
|
@@ -2408,7 +2432,7 @@ const es = { render: ts }, os = { class: "is-team-name-long" }, ns = { class: "i
|
|
|
2408
2432
|
},
|
|
2409
2433
|
emits: ["onChangeSeason", "onChangeSection"],
|
|
2410
2434
|
setup(t, { emit: e }) {
|
|
2411
|
-
const o = t, n = e, { t: a } =
|
|
2435
|
+
const o = t, n = e, { t: a } = nt(), s = A({
|
|
2412
2436
|
get() {
|
|
2413
2437
|
return o.championshipId;
|
|
2414
2438
|
},
|
|
@@ -2419,52 +2443,73 @@ const es = { render: ts }, os = { class: "is-team-name-long" }, ns = { class: "i
|
|
|
2419
2443
|
function r(c) {
|
|
2420
2444
|
n("onChangeSection", c);
|
|
2421
2445
|
}
|
|
2422
|
-
return (c, f) => (y(),
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2446
|
+
return (c, f) => (y(), w(O, null, [
|
|
2447
|
+
b("div", xs, [
|
|
2448
|
+
b("div", null, [
|
|
2449
|
+
b("label", {
|
|
2426
2450
|
for: "season",
|
|
2427
|
-
class: _(
|
|
2428
|
-
}, x(
|
|
2429
|
-
C(
|
|
2451
|
+
class: _(m(J)("label"))
|
|
2452
|
+
}, x(m(a)("selection.season")), 3),
|
|
2453
|
+
C(De, {
|
|
2430
2454
|
id: "season",
|
|
2431
2455
|
modelValue: s.value,
|
|
2432
2456
|
"onUpdate:modelValue": f[0] || (f[0] = (d) => s.value = d)
|
|
2433
2457
|
}, {
|
|
2434
2458
|
default: T(() => [
|
|
2435
|
-
(y(!0),
|
|
2459
|
+
(y(!0), w(O, null, tt(t.seasons, (d) => (y(), w("option", {
|
|
2436
2460
|
key: d.championshipId,
|
|
2437
2461
|
value: d.championshipId
|
|
2438
|
-
}, x(d.seasonName), 9,
|
|
2462
|
+
}, x(d.seasonName), 9, ks))), 128))
|
|
2439
2463
|
]),
|
|
2440
2464
|
_: 1
|
|
2441
2465
|
}, 8, ["modelValue"])
|
|
2442
2466
|
]),
|
|
2443
2467
|
I(c.$slots, "default")
|
|
2444
2468
|
]),
|
|
2445
|
-
t.isSectionSelectionDisabled ?
|
|
2446
|
-
(y(!0),
|
|
2469
|
+
t.isSectionSelectionDisabled ? $("", !0) : (y(), w("div", Ts, [
|
|
2470
|
+
(y(!0), w(O, null, tt(t.sections, (d) => (y(), w("button", {
|
|
2447
2471
|
key: d.phaseId,
|
|
2448
2472
|
onClick: (i) => r(d),
|
|
2449
|
-
class: _([
|
|
2450
|
-
}, x(d.sectionName), 11,
|
|
2473
|
+
class: _([m(J)("tab-button"), { "is-active": d.sectionId === t.sectionId }])
|
|
2474
|
+
}, x(d.sectionName), 11, Ps))), 128))
|
|
2451
2475
|
]))
|
|
2452
2476
|
], 64));
|
|
2453
2477
|
}
|
|
2478
|
+
}, $s = ["textContent"], Ms = {
|
|
2479
|
+
__name: "AdditionalStandingsText",
|
|
2480
|
+
props: {
|
|
2481
|
+
rows: {
|
|
2482
|
+
type: Array,
|
|
2483
|
+
default: () => []
|
|
2484
|
+
},
|
|
2485
|
+
additionalKey: {
|
|
2486
|
+
type: String,
|
|
2487
|
+
required: !0
|
|
2488
|
+
}
|
|
2489
|
+
},
|
|
2490
|
+
setup(t) {
|
|
2491
|
+
const e = t, o = xe(e, "rows"), { t: n } = nt(), { isVisible: a, text: s } = Ge(o, e.additionalKey, n);
|
|
2492
|
+
return (r, c) => m(a) ? (y(), w("div", {
|
|
2493
|
+
key: 0,
|
|
2494
|
+
class: "is-text-xs is-text-light is-mt-5 is-mb-5",
|
|
2495
|
+
textContent: x(m(s))
|
|
2496
|
+
}, null, 8, $s)) : $("", !0);
|
|
2497
|
+
}
|
|
2454
2498
|
};
|
|
2455
2499
|
export {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2500
|
+
Is as I,
|
|
2501
|
+
st as _,
|
|
2502
|
+
Vs as a,
|
|
2459
2503
|
ce as b,
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2504
|
+
De as c,
|
|
2505
|
+
Es as d,
|
|
2506
|
+
Ls as e,
|
|
2507
|
+
Ds as f,
|
|
2464
2508
|
ie as g,
|
|
2465
|
-
|
|
2466
|
-
|
|
2509
|
+
Os as h,
|
|
2510
|
+
Ns as i,
|
|
2467
2511
|
ue as j,
|
|
2468
2512
|
de as k,
|
|
2469
|
-
|
|
2513
|
+
Rs as l,
|
|
2514
|
+
Ms as m
|
|
2470
2515
|
};
|