@dcrackel/hematournamentui 1.0.667 → 1.0.669
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.
|
@@ -12296,6 +12296,10 @@ const Bq = /* @__PURE__ */ oe(ty, [["render", Ay]]), cy = {
|
|
|
12296
12296
|
nightMode: {
|
|
12297
12297
|
type: Boolean,
|
|
12298
12298
|
default: !1
|
|
12299
|
+
},
|
|
12300
|
+
isCountingBackwardsMaxScore: {
|
|
12301
|
+
type: Number,
|
|
12302
|
+
default: 0
|
|
12299
12303
|
}
|
|
12300
12304
|
},
|
|
12301
12305
|
data() {
|
|
@@ -12324,14 +12328,16 @@ const Bq = /* @__PURE__ */ oe(ty, [["render", Ay]]), cy = {
|
|
|
12324
12328
|
methods: {
|
|
12325
12329
|
getScore(t, e) {
|
|
12326
12330
|
const n = this.bouts.find(
|
|
12327
|
-
(
|
|
12331
|
+
(u) => u.Person1Id === t && u.Person2Id === e || u.Person1Id === e && u.Person2Id === t
|
|
12328
12332
|
);
|
|
12329
|
-
if (n)
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
+
if (!n || n.Status === "Scheduled")
|
|
12334
|
+
return "";
|
|
12335
|
+
const r = n.Score1, i = n.Score2, o = this.isCountingBackwardsMaxScore, a = o > 0 ? o - r : r, l = o > 0 ? o - i : i, c = (o > 0 ? r < i : r > i) ? n.Person1Id : n.Person2Id;
|
|
12336
|
+
if (n.Status === "Completed") {
|
|
12337
|
+
const u = t === n.Person1Id ? a : l, g = t === c === !this.isCountingBackwardsMaxScore ? "W" : "L";
|
|
12338
|
+
return `${u}${g}`;
|
|
12333
12339
|
}
|
|
12334
|
-
return
|
|
12340
|
+
return t === n.Person1Id ? a : l;
|
|
12335
12341
|
},
|
|
12336
12342
|
getBoutClass(t, e) {
|
|
12337
12343
|
const n = this.bouts.find((r) => r.Person1Id === t && r.Person2Id === e || r.Person1Id === e && r.Person2Id === t);
|
|
@@ -37481,7 +37487,10 @@ function iF(t, e, n, r, i, o) {
|
|
|
37481
37487
|
class: "hidden md:block"
|
|
37482
37488
|
}, null, 8, ["currentSelection", "onUpdate:selection", "connectedToServer"]),
|
|
37483
37489
|
i.viewName === "Pool Grid" ? (p(), I("section", U7, [
|
|
37484
|
-
h(A, {
|
|
37490
|
+
h(A, {
|
|
37491
|
+
bouts: i.localBouts,
|
|
37492
|
+
isCountingBackwardsMaxScore: o.isCountingBackwardsMaxScore
|
|
37493
|
+
}, null, 8, ["bouts", "isCountingBackwardsMaxScore"])
|
|
37485
37494
|
])) : v("", !0),
|
|
37486
37495
|
f("section", null, [
|
|
37487
37496
|
o.remainingBoutsCount > 0 ? (p(), I("section", G7, [
|