@dcrackel/hematournamentui 1.0.561 → 1.0.563
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.
|
@@ -35207,7 +35207,7 @@ const Jp = /* @__PURE__ */ se(tL, [["render", rL]]), oL = {
|
|
|
35207
35207
|
};
|
|
35208
35208
|
},
|
|
35209
35209
|
mounted() {
|
|
35210
|
-
this.timeLeft =
|
|
35210
|
+
this.timeLeft = this.startTime(), this.determineCountingDirection();
|
|
35211
35211
|
},
|
|
35212
35212
|
computed: {
|
|
35213
35213
|
RingName() {
|
|
@@ -35218,10 +35218,7 @@ const Jp = /* @__PURE__ */ se(tL, [["render", rL]]), oL = {
|
|
|
35218
35218
|
return Array.isArray(this.eventRules) && !this.showPenaltyConfirmationBox && (this.eventRules.some((t) => t.Rules.RuleName === "PoolNumOfPasses") || this.eventRules.some((t) => t.Rules.RuleName === "DENumOfPasses"));
|
|
35219
35219
|
},
|
|
35220
35220
|
showTimerBox() {
|
|
35221
|
-
return this.eventRules.some((t) => t.Rules.RuleName.
|
|
35222
|
-
},
|
|
35223
|
-
startTime() {
|
|
35224
|
-
return this.localBout.TimeLeft || 90;
|
|
35221
|
+
return Array.isArray(this.eventRules) && !this.showPenaltyConfirmationBox && (this.eventRules.some((t) => t.Rules.RuleName === "PoolTime") || this.eventRules.some((t) => t.Rules.RuleName === "DETime"));
|
|
35225
35222
|
},
|
|
35226
35223
|
showHandShotCounterBox() {
|
|
35227
35224
|
return Array.isArray(this.eventRules) && this.eventRules.some((t) => t.Rules.RuleName === "CountHandshots" && t.RuleValue === "true");
|
|
@@ -35244,11 +35241,20 @@ const Jp = /* @__PURE__ */ se(tL, [["render", rL]]), oL = {
|
|
|
35244
35241
|
}
|
|
35245
35242
|
},
|
|
35246
35243
|
methods: {
|
|
35244
|
+
startTime() {
|
|
35245
|
+
if (this.localBout.DEBoutId) {
|
|
35246
|
+
const e = Array.isArray(this.eventRules) ? this.eventRules.find((n) => n.Rules.RuleName === "DETime") : null;
|
|
35247
|
+
return e ? parseInt(e.RuleValue) : 180;
|
|
35248
|
+
}
|
|
35249
|
+
const t = Array.isArray(this.eventRules) ? this.eventRules.find((e) => e.Rules.RuleName === "PoolTime") : null;
|
|
35250
|
+
return t ? parseInt(t.RuleValue) : 180;
|
|
35251
|
+
},
|
|
35247
35252
|
determineCountingDirection() {
|
|
35248
35253
|
if (Array.isArray(this.eventRules)) {
|
|
35249
35254
|
const t = this.eventRules.find((e) => e.Rules.RuleName === "PoolScoreDirection");
|
|
35250
35255
|
this.isCountingUp = t ? t.RuleValue === "true" : !0;
|
|
35251
35256
|
}
|
|
35257
|
+
Array.isArray(this.eventRules) || (this.isCountingUp = !0);
|
|
35252
35258
|
},
|
|
35253
35259
|
toggleTimer() {
|
|
35254
35260
|
this.timerRunning ? clearInterval(this.timerInterval) : this.timerInterval = setInterval(() => {
|
|
@@ -35262,7 +35268,7 @@ const Jp = /* @__PURE__ */ se(tL, [["render", rL]]), oL = {
|
|
|
35262
35268
|
clearInterval(this.timerInterval), this.timerRunning = !1, this.emitBout();
|
|
35263
35269
|
},
|
|
35264
35270
|
submitBout() {
|
|
35265
|
-
this.stopTimer(), this.$emit("submit:bout", this.localBout);
|
|
35271
|
+
this.showSubmit && (this.stopTimer(), this.$emit("submit:bout", this.localBout));
|
|
35266
35272
|
},
|
|
35267
35273
|
handleCloseModal() {
|
|
35268
35274
|
this.showPenaltyModal = !1;
|
|
@@ -35287,13 +35293,6 @@ const Jp = /* @__PURE__ */ se(tL, [["render", rL]]), oL = {
|
|
|
35287
35293
|
const t = this.isCountingUp ? this.localBout.Score1 === this.maxPoints || this.localBout.Score2 === this.maxPoints : this.localBout.Score1 === 0 || this.localBout.Score2 === 0, e = this.localBout.TimeLeft === 0, n = this.localBout.CurrentPass === this.maxPasses - 1;
|
|
35288
35294
|
this.showPassesBox && (this.showSubmit = n || t), this.showTimerBox && (this.showSubmit = e || t), !this.showPassesBox && !this.showTimerBox && (this.showSubmit = !0), this.localBout.Score1 === this.localBout.Score2 && this.isDoubleElimination() && (this.showSubmit = !1), this.$emit("update:bout", this.localBout);
|
|
35289
35295
|
},
|
|
35290
|
-
setCountingDirection() {
|
|
35291
|
-
if (Array.isArray(this.eventRules)) {
|
|
35292
|
-
const t = this.eventRules.find((e) => e.Rules.RuleName === "PoolScoreDirection");
|
|
35293
|
-
this.isCountingUp = t ? t.RuleValue : !0;
|
|
35294
|
-
}
|
|
35295
|
-
Array.isArray(this.eventRules) || (this.isCountingUp = !0);
|
|
35296
|
-
},
|
|
35297
35296
|
isDoubleElimination() {
|
|
35298
35297
|
return this.localBout.RoundLabel;
|
|
35299
35298
|
},
|
|
@@ -35329,13 +35328,13 @@ function sL(t, e, n, r, o, i) {
|
|
|
35329
35328
|
bout: o.localBout,
|
|
35330
35329
|
hostingClubColors: n.hostingClubColors,
|
|
35331
35330
|
maxScore: parseInt(i.maxPoints),
|
|
35332
|
-
isCountingUp:
|
|
35331
|
+
isCountingUp: o.isCountingUp,
|
|
35333
35332
|
showHandShotCounterBox: i.showHandShotCounterBox,
|
|
35334
35333
|
"onPenalty:open": i.openPenaltyModal,
|
|
35335
35334
|
"onUpdate:Score": i.updateScore1,
|
|
35336
35335
|
"onUpdate:HandShotValue": i.updateHandShot1
|
|
35337
|
-
}, null, 8, ["bout", "hostingClubColors", "maxScore", "showHandShotCounterBox", "onPenalty:open", "onUpdate:Score", "onUpdate:HandShotValue"]),
|
|
35338
|
-
i.showTimerBox
|
|
35336
|
+
}, null, 8, ["bout", "hostingClubColors", "maxScore", "isCountingUp", "showHandShotCounterBox", "onPenalty:open", "onUpdate:Score", "onUpdate:HandShotValue"]),
|
|
35337
|
+
i.showTimerBox ? (C(), ne(a, {
|
|
35339
35338
|
key: 0,
|
|
35340
35339
|
timeLeft: o.timeLeft,
|
|
35341
35340
|
running: o.timerRunning,
|
|
@@ -35343,7 +35342,7 @@ function sL(t, e, n, r, o, i) {
|
|
|
35343
35342
|
onStartPause: i.toggleTimer,
|
|
35344
35343
|
onAdjustTime: i.adjustTime
|
|
35345
35344
|
}, null, 8, ["timeLeft", "running", "ringName", "onStartPause", "onAdjustTime"])) : b("", !0),
|
|
35346
|
-
i.showPassesBox
|
|
35345
|
+
i.showPassesBox ? (C(), ne(l, {
|
|
35347
35346
|
key: 1,
|
|
35348
35347
|
bout: o.localBout,
|
|
35349
35348
|
maxPasses: parseInt(i.maxPasses),
|
|
@@ -35355,12 +35354,12 @@ function sL(t, e, n, r, o, i) {
|
|
|
35355
35354
|
bout: o.localBout,
|
|
35356
35355
|
hostingClubColors: n.hostingClubColors,
|
|
35357
35356
|
maxScore: parseInt(i.maxPoints),
|
|
35358
|
-
isCountingUp:
|
|
35357
|
+
isCountingUp: o.isCountingUp,
|
|
35359
35358
|
showHandShotCounterBox: i.showHandShotCounterBox,
|
|
35360
35359
|
"onPenalty:open": i.openPenaltyModal,
|
|
35361
35360
|
"onUpdate:Score": i.updateScore2,
|
|
35362
35361
|
"onUpdate:HandShotValue": i.updateHandShot2
|
|
35363
|
-
}, null, 8, ["bout", "hostingClubColors", "maxScore", "showHandShotCounterBox", "onPenalty:open", "onUpdate:Score", "onUpdate:HandShotValue"]),
|
|
35362
|
+
}, null, 8, ["bout", "hostingClubColors", "maxScore", "isCountingUp", "showHandShotCounterBox", "onPenalty:open", "onUpdate:Score", "onUpdate:HandShotValue"]),
|
|
35364
35363
|
p("div", iL, [
|
|
35365
35364
|
h(u, {
|
|
35366
35365
|
label: "Submit",
|