@dcrackel/hematournamentui 1.0.105 → 1.0.106

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.
@@ -29490,14 +29490,12 @@ const ND = /* @__PURE__ */ ke(XT, [["render", sR]]), lR = {
29490
29490
  ].filter((r) => !(r in n));
29491
29491
  return t.length ? (console.warn(`Invalid event object: Missing fields: ${t.join(", ")}`), !1) : !0;
29492
29492
  }
29493
- },
29494
- mode: {
29495
- type: String,
29496
- required: !0,
29497
- validator: (n) => ["Planning", "Preparation", "Live", "Complete"].includes(n)
29498
29493
  }
29499
29494
  },
29500
29495
  computed: {
29496
+ mode() {
29497
+ return this.event.Status;
29498
+ },
29501
29499
  poolSize() {
29502
29500
  return this.event.PoolSize || 0;
29503
29501
  },
@@ -29545,7 +29543,7 @@ function wR(n, e, t, r, i, o) {
29545
29543
  }, null, 8, ["text"]),
29546
29544
  uR
29547
29545
  ]),
29548
- t.mode === "planning" ? (Q(), x("section", dR, [
29546
+ o.mode === "planning" ? (Q(), x("section", dR, [
29549
29547
  M("div", gR, [
29550
29548
  k(s, {
29551
29549
  "icon-name": "fa-lightbulb-on",
@@ -29569,7 +29567,7 @@ function wR(n, e, t, r, i, o) {
29569
29567
  })
29570
29568
  ])
29571
29569
  ])) : Y("", !0),
29572
- t.mode === "preparation" ? (Q(), x("section", pR, [
29570
+ o.mode === "preparation" ? (Q(), x("section", pR, [
29573
29571
  M("div", hR, [
29574
29572
  k(s, {
29575
29573
  "icon-name": "fa-ballot-check",
@@ -29593,7 +29591,7 @@ function wR(n, e, t, r, i, o) {
29593
29591
  })
29594
29592
  ])
29595
29593
  ])) : Y("", !0),
29596
- t.mode === "live" ? (Q(), x("section", CR, [
29594
+ o.mode === "live" ? (Q(), x("section", CR, [
29597
29595
  M("div", ER, [
29598
29596
  k(s, {
29599
29597
  "icon-name": "fa-play",
@@ -29647,7 +29645,7 @@ function wR(n, e, t, r, i, o) {
29647
29645
  ])
29648
29646
  ])
29649
29647
  ])) : Y("", !0),
29650
- t.mode === "planning" || t.mode === "preparation" ? (Q(), x("section", yR, [
29648
+ o.mode === "planning" || o.mode === "preparation" ? (Q(), x("section", yR, [
29651
29649
  k(l, {
29652
29650
  recommended: 7,
29653
29651
  count: o.poolSize,
@@ -29958,11 +29956,6 @@ const qR = /* @__PURE__ */ ke(UR, [["render", jR]]), YR = {
29958
29956
  type: Array,
29959
29957
  default: () => []
29960
29958
  },
29961
- mode: {
29962
- type: String,
29963
- required: !0,
29964
- validator: (n) => ["planning", "preparation", "live", "results", "de", "completed"].includes(n)
29965
- },
29966
29959
  staff: {
29967
29960
  type: Array,
29968
29961
  default: () => []
@@ -29986,6 +29979,9 @@ const qR = /* @__PURE__ */ ke(UR, [["render", jR]]), YR = {
29986
29979
  console.log(`mode: ${this.mode}`);
29987
29980
  },
29988
29981
  computed: {
29982
+ mode() {
29983
+ return this.event.Status;
29984
+ },
29989
29985
  shouldShowButtons() {
29990
29986
  return this.filteredPools.length > 1 && this.mode !== "completed";
29991
29987
  },
@@ -30073,12 +30069,11 @@ function _R(n, e, t, r, i, o) {
30073
30069
  onTabMenuClick: o.handleTabMenuClick
30074
30070
  }, null, 8, ["tabs", "onTabMenuClick"]),
30075
30071
  k(s, {
30076
- mode: t.mode,
30077
30072
  event: t.event,
30078
30073
  "onUpdate:poolSize": o.handlePoolSizeChange,
30079
30074
  "onUpdate:numberOfRings": o.handleNumberOfRings,
30080
30075
  "onReset:pool": o.handlePoolReset
30081
- }, null, 8, ["mode", "event", "onUpdate:poolSize", "onUpdate:numberOfRings", "onReset:pool"]),
30076
+ }, null, 8, ["event", "onUpdate:poolSize", "onUpdate:numberOfRings", "onReset:pool"]),
30082
30077
  this.event.Flights > 1 ? (Q(), ve(a, {
30083
30078
  key: 0,
30084
30079
  currentTab: i.selectedFlight,
@@ -30100,7 +30095,7 @@ function _R(n, e, t, r, i, o) {
30100
30095
  directorName: o.getDirectorName(u.Staff),
30101
30096
  pool: u.participants,
30102
30097
  staff: t.staff,
30103
- mode: t.mode,
30098
+ mode: o.mode,
30104
30099
  onSwapFencers: o.swapFencers,
30105
30100
  "onUpdate:setDirector": o.setDirector,
30106
30101
  "onRemove:fencer": o.handleRemoveFencer,