@dcrackel/hematournamentui 1.0.540 → 1.0.542
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/HemaTournamentUI-lib.es.js +154 -142
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/mocks/getPenaltiesByEvent.js +3 -3
- package/src/stories/Molecules/Boxes/BoutBoxes/ScoreBox/ScoreBox.vue +1 -1
- package/src/stories/Molecules/Modals/ConfirmModal/ConfirmModal.vue +3 -3
- package/src/stories/Molecules/Modals/PenaltyModal/PenaltyModal.vue +2 -1
- package/src/stories/Organisms/Cards/Director/DirectorCard.vue +3 -0
- package/src/stories/Organisms/Cards/PenaltyCard/PenaltyCard.vue +1 -1
- package/src/stories/Organisms/Cards/PenaltyFencerCard/PenaltyFencerCard.vue +6 -3
- package/src/stories/Templates/EventManagement/Penalties/PenaltyReport.vue +6 -1
- package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +1 -0
|
@@ -34343,7 +34343,7 @@ function cz(t, e, n, r, o, i) {
|
|
|
34343
34343
|
const uz = /* @__PURE__ */ oe(sz, [["render", cz]]), dz = {
|
|
34344
34344
|
name: "ScoreBox",
|
|
34345
34345
|
components: { BaseIcon: qe, BaseText: Be, HandshotCounterBox: uz },
|
|
34346
|
-
emits: ["penalty:open", "update:Score", "update:HandShotValue"],
|
|
34346
|
+
emits: ["penalty:open", "update:Score", "update:HandShotValue", "open-report"],
|
|
34347
34347
|
props: {
|
|
34348
34348
|
fencer1: {
|
|
34349
34349
|
type: Boolean,
|
|
@@ -34830,11 +34830,11 @@ function eL(t, e, n, r, o, i) {
|
|
|
34830
34830
|
const A = w("BaseIcon"), a = w("BaseText"), l = w("BaseButton");
|
|
34831
34831
|
return n.show ? (C(), I("div", {
|
|
34832
34832
|
key: 0,
|
|
34833
|
-
class: "fixed inset-0 bg-secondary bg-opacity-50
|
|
34833
|
+
class: "fixed inset-0 bg-secondary bg-opacity-50 flex items-center justify-center z-20",
|
|
34834
34834
|
onClick: e[1] || (e[1] = (...c) => i.close && i.close(...c))
|
|
34835
34835
|
}, [
|
|
34836
34836
|
p("div", {
|
|
34837
|
-
class: "
|
|
34837
|
+
class: "p-5 border w-11/12 md:w-96 shadow-lg rounded-md bg-neutral",
|
|
34838
34838
|
onClick: e[0] || (e[0] = it(() => {
|
|
34839
34839
|
}, ["stop"]))
|
|
34840
34840
|
}, [
|
|
@@ -34883,7 +34883,7 @@ function eL(t, e, n, r, o, i) {
|
|
|
34883
34883
|
p("div", $z, [
|
|
34884
34884
|
h(l, {
|
|
34885
34885
|
label: n.cancelText,
|
|
34886
|
-
selected:
|
|
34886
|
+
selected: !0,
|
|
34887
34887
|
size: "sm",
|
|
34888
34888
|
type: "primary",
|
|
34889
34889
|
onButtonClick: i.cancel,
|
|
@@ -34908,6 +34908,7 @@ function eL(t, e, n, r, o, i) {
|
|
|
34908
34908
|
const tL = /* @__PURE__ */ oe(Wz, [["render", eL]]), nL = {
|
|
34909
34909
|
name: "PenaltyCard",
|
|
34910
34910
|
components: { ConfirmModal: tL, BaseIcon: qe, BaseButton: He, BaseText: Be },
|
|
34911
|
+
emits: ["penalty:remove", "penalty:add", "penalty:update", "toggleFlag"],
|
|
34911
34912
|
props: {
|
|
34912
34913
|
fencer1: {
|
|
34913
34914
|
type: Boolean,
|
|
@@ -35033,7 +35034,7 @@ const tL = /* @__PURE__ */ oe(Wz, [["render", eL]]), nL = {
|
|
|
35033
35034
|
this.blackCardToggle = !1, this.currentNote = "";
|
|
35034
35035
|
},
|
|
35035
35036
|
getFlagIcon(t) {
|
|
35036
|
-
switch (
|
|
35037
|
+
switch (t) {
|
|
35037
35038
|
case "Yellow":
|
|
35038
35039
|
return "fa-cards-blank";
|
|
35039
35040
|
case "Red":
|
|
@@ -35258,8 +35259,9 @@ function dL(t, e, n, r, o, i) {
|
|
|
35258
35259
|
], 64);
|
|
35259
35260
|
}
|
|
35260
35261
|
const gL = /* @__PURE__ */ oe(nL, [["render", dL]]), hL = {
|
|
35261
|
-
name: "
|
|
35262
|
+
name: "PenaltyModal",
|
|
35262
35263
|
components: { BaseText: Be, PenaltyCard: gL, BaseIcon: qe },
|
|
35264
|
+
emits: ["update:closeModal", "penalty:remove", "penalty:add", "penalty:update"],
|
|
35263
35265
|
props: {
|
|
35264
35266
|
show: {
|
|
35265
35267
|
type: Boolean,
|
|
@@ -35341,6 +35343,7 @@ const Vp = /* @__PURE__ */ oe(hL, [["render", fL]]), CL = {
|
|
|
35341
35343
|
PassesBox: Vz,
|
|
35342
35344
|
ScoreBox: wz
|
|
35343
35345
|
},
|
|
35346
|
+
emits: ["penalty:remove", "penalty:add", "penalty:update", "submit:bout", "update:bout"],
|
|
35344
35347
|
props: {
|
|
35345
35348
|
eventRules: {
|
|
35346
35349
|
type: Array,
|
|
@@ -35452,11 +35455,11 @@ const Vp = /* @__PURE__ */ oe(hL, [["render", fL]]), CL = {
|
|
|
35452
35455
|
},
|
|
35453
35456
|
handleUpdatePenalty(t) {
|
|
35454
35457
|
const e = this.preparePenalty(t, t.fencer1);
|
|
35455
|
-
this.$emit("penalty:update", e);
|
|
35458
|
+
this.$emit("penalty:update", e), this.showPenaltyModal = !1;
|
|
35456
35459
|
},
|
|
35457
35460
|
handleAddPenalty(t) {
|
|
35458
35461
|
const e = this.preparePenalty(t, t.fencer1);
|
|
35459
|
-
this.$emit("penalty:add", e);
|
|
35462
|
+
this.$emit("penalty:add", e), this.showPenaltyModal = !1;
|
|
35460
35463
|
},
|
|
35461
35464
|
handleRemovePenalty(t) {
|
|
35462
35465
|
t.BoutId = this.localBout.BoutId, t.EventId = this.localBout.EventId, this.$emit("penalty:remove", t);
|
|
@@ -36127,6 +36130,7 @@ const _p = /* @__PURE__ */ oe(YL, [["render", uF]]), dF = {
|
|
|
36127
36130
|
ToggleHeader: LA,
|
|
36128
36131
|
EditEventsTopMenu: Cn
|
|
36129
36132
|
},
|
|
36133
|
+
emits: ["update:bout", "tab:menu-click", "submit:bout", "update:directing-bout", "penalty:update", "penalty:add", "penalty:remove"],
|
|
36130
36134
|
props: {
|
|
36131
36135
|
bouts: {
|
|
36132
36136
|
type: Array,
|
|
@@ -39690,18 +39694,18 @@ function _q(t, e, n, r, o, i) {
|
|
|
39690
39694
|
])
|
|
39691
39695
|
]);
|
|
39692
39696
|
}
|
|
39693
|
-
const $q = /* @__PURE__ */ oe(Vq, [["render", _q]]),
|
|
39697
|
+
const $q = /* @__PURE__ */ oe(Vq, [["render", _q]]), eY = {
|
|
39694
39698
|
name: "PersonManagementSkeleton"
|
|
39695
|
-
},
|
|
39696
|
-
|
|
39699
|
+
}, tY = { class: "flex" }, nY = /* @__PURE__ */ As('<div class="rounded-lg p-9 bg-neutral w-full animate-pulse"><div class="w-full flex flex-row justify-center mb-4"><div class="h-8 bg-dropdownSelect rounded w-20"></div></div><div class="w-full flex-row justify-center mb-4 flex drop-shadow"><div class="w-32 h-32 border-2 border-dashed rounded-full bg-dropdownSelect"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-32 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-24 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-24 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-28 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-20 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="border-b border-dropdownSelect mt-6"><div class="h-6 bg-dropdownSelect rounded w-36 mb-2"></div></div><div class="my-4 w-full"><div class="h-16 bg-dropdownSelect rounded w-full mb-4"></div><div class="h-8 bg-dropdownSelect rounded w-1/2 mb-2"></div><div class="h-8 bg-dropdownSelect rounded w-1/2"></div></div><div class="flex flex-row justify-end mt-8"><div class="h-10 bg-dropdownSelect rounded w-full"></div></div></div>', 1), rY = [
|
|
39700
|
+
nY
|
|
39697
39701
|
];
|
|
39698
|
-
function
|
|
39699
|
-
return C(), I("section",
|
|
39702
|
+
function oY(t, e, n, r, o, i) {
|
|
39703
|
+
return C(), I("section", tY, rY);
|
|
39700
39704
|
}
|
|
39701
|
-
const
|
|
39705
|
+
const iY = /* @__PURE__ */ oe(eY, [["render", oY]]), sY = {
|
|
39702
39706
|
name: "PersonManagement",
|
|
39703
39707
|
components: {
|
|
39704
|
-
PersonManagementSkeleton:
|
|
39708
|
+
PersonManagementSkeleton: iY,
|
|
39705
39709
|
PeopleColumn: $q,
|
|
39706
39710
|
FindOrAddPerson: PA,
|
|
39707
39711
|
BaseInput: _t,
|
|
@@ -39851,28 +39855,28 @@ const i2 = /* @__PURE__ */ oe(e2, [["render", o2]]), s2 = {
|
|
|
39851
39855
|
this.$emit("delete:person", this.person);
|
|
39852
39856
|
}
|
|
39853
39857
|
}
|
|
39854
|
-
},
|
|
39858
|
+
}, AY = { key: 0 }, aY = {
|
|
39855
39859
|
key: 1,
|
|
39856
39860
|
class: "flex"
|
|
39857
|
-
},
|
|
39861
|
+
}, lY = { key: 0 }, cY = { class: "rounded-lg p-9 bg-neutral w-full" }, uY = { class: "w-full flex flex-row justify-center mb-4" }, dY = { class: "w-full flex-row justify-center mb-4 flex drop-shadow" }, gY = { class: "flex flex-col mb-4" }, hY = { class: "flex flex-col mb-4" }, pY = { class: "flex flex-col mb-4" }, fY = { class: "flex flex-col mb-4" }, CY = { class: "flex flex-col mb-4" }, mY = { class: "border-b border-dropdownSelect mt-6" }, IY = { class: "my-4 w-full" }, BY = {
|
|
39858
39862
|
key: 0,
|
|
39859
39863
|
class: "mt-8"
|
|
39860
|
-
},
|
|
39861
|
-
function
|
|
39864
|
+
}, EY = { class: "flex flex-col mb-4 mt-4" }, QY = { class: "flex flex-row justify-end mt-8" };
|
|
39865
|
+
function vY(t, e, n, r, o, i) {
|
|
39862
39866
|
const A = w("PersonManagementSkeleton"), a = w("PeopleColumn"), l = w("BaseText"), c = w("ImageCropper"), u = w("TitledInput"), d = w("DropDownMenu"), g = w("Toggle"), f = w("BaseButton");
|
|
39863
39867
|
return C(), I(ae, null, [
|
|
39864
|
-
n.loading ? (C(), I("section",
|
|
39868
|
+
n.loading ? (C(), I("section", AY, [
|
|
39865
39869
|
h(A)
|
|
39866
39870
|
])) : b("", !0),
|
|
39867
|
-
n.loading ? b("", !0) : (C(), I("section",
|
|
39868
|
-
n.userLevel === "Admin" ? (C(), I("div",
|
|
39871
|
+
n.loading ? b("", !0) : (C(), I("section", aY, [
|
|
39872
|
+
n.userLevel === "Admin" ? (C(), I("div", lY, [
|
|
39869
39873
|
h(a, {
|
|
39870
39874
|
persons: n.people,
|
|
39871
39875
|
"onUpdate:selectedFencer": i.handlePersonClick
|
|
39872
39876
|
}, null, 8, ["persons", "onUpdate:selectedFencer"])
|
|
39873
39877
|
])) : b("", !0),
|
|
39874
|
-
p("div",
|
|
39875
|
-
p("div",
|
|
39878
|
+
p("div", cY, [
|
|
39879
|
+
p("div", uY, [
|
|
39876
39880
|
h(l, {
|
|
39877
39881
|
color: "primaryHighlight",
|
|
39878
39882
|
size: "2xl",
|
|
@@ -39880,7 +39884,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39880
39884
|
weight: "normal"
|
|
39881
39885
|
})
|
|
39882
39886
|
]),
|
|
39883
|
-
p("div",
|
|
39887
|
+
p("div", dY, [
|
|
39884
39888
|
h(c, {
|
|
39885
39889
|
urlToImage: i.getImageURL,
|
|
39886
39890
|
uploadImageName: n.uploadImageName,
|
|
@@ -39898,7 +39902,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39898
39902
|
"onUpdate:url": i.handleProfilePicUpdate
|
|
39899
39903
|
}, null, 8, ["urlToImage", "uploadImageName", "uploadServer", "imageServer", "customClass", "onUpdate:url"])
|
|
39900
39904
|
]),
|
|
39901
|
-
p("div",
|
|
39905
|
+
p("div", gY, [
|
|
39902
39906
|
h(u, {
|
|
39903
39907
|
inputValue: o.person.DisplayName,
|
|
39904
39908
|
placeholder: "Enter Display Name",
|
|
@@ -39906,7 +39910,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39906
39910
|
"onUpdate:value": i.updateDisplayName
|
|
39907
39911
|
}, null, 8, ["inputValue", "onUpdate:value"])
|
|
39908
39912
|
]),
|
|
39909
|
-
p("div",
|
|
39913
|
+
p("div", hY, [
|
|
39910
39914
|
h(u, {
|
|
39911
39915
|
inputValue: i.getLegalName,
|
|
39912
39916
|
placeholder: "Enter Your Legal Name",
|
|
@@ -39914,7 +39918,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39914
39918
|
"onUpdate:value": i.updateLegalName
|
|
39915
39919
|
}, null, 8, ["inputValue", "onUpdate:value"])
|
|
39916
39920
|
]),
|
|
39917
|
-
p("div",
|
|
39921
|
+
p("div", pY, [
|
|
39918
39922
|
h(l, {
|
|
39919
39923
|
text: "Club Name",
|
|
39920
39924
|
size: "sm",
|
|
@@ -39930,7 +39934,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39930
39934
|
dropDownWidth: "w-full"
|
|
39931
39935
|
}, null, 8, ["label", "items", "selectedItem", "onUpdate:selectedItem"])
|
|
39932
39936
|
]),
|
|
39933
|
-
p("div",
|
|
39937
|
+
p("div", fY, [
|
|
39934
39938
|
h(l, {
|
|
39935
39939
|
text: "Preferred Pronouns",
|
|
39936
39940
|
size: "sm",
|
|
@@ -39946,7 +39950,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39946
39950
|
dropDownWidth: "w-full"
|
|
39947
39951
|
}, null, 8, ["label", "items", "selectedItem", "onUpdate:selectedItem"])
|
|
39948
39952
|
]),
|
|
39949
|
-
p("div",
|
|
39953
|
+
p("div", CY, [
|
|
39950
39954
|
h(u, {
|
|
39951
39955
|
inputValue: i.getEmail ? i.getEmail : "",
|
|
39952
39956
|
placeholder: "Enter Your Email",
|
|
@@ -39954,7 +39958,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39954
39958
|
"onUpdate:value": i.handleEmailUpdate
|
|
39955
39959
|
}, null, 8, ["inputValue", "onUpdate:value"])
|
|
39956
39960
|
]),
|
|
39957
|
-
p("div",
|
|
39961
|
+
p("div", mY, [
|
|
39958
39962
|
h(l, {
|
|
39959
39963
|
color: "quinary",
|
|
39960
39964
|
size: "sm",
|
|
@@ -39963,7 +39967,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
39963
39967
|
"data-testid": "text-registration"
|
|
39964
39968
|
})
|
|
39965
39969
|
]),
|
|
39966
|
-
p("div",
|
|
39970
|
+
p("div", IY, [
|
|
39967
39971
|
h(l, {
|
|
39968
39972
|
color: "quinary",
|
|
39969
39973
|
size: "sm",
|
|
@@ -39985,14 +39989,14 @@ function v2(t, e, n, r, o, i) {
|
|
|
39985
39989
|
"onUpdate:checked": i.changeShareData
|
|
39986
39990
|
}, null, 8, ["onUpdate:checked"])
|
|
39987
39991
|
]),
|
|
39988
|
-
n.userLevel === "Admin" ? (C(), I("div",
|
|
39992
|
+
n.userLevel === "Admin" ? (C(), I("div", BY, [
|
|
39989
39993
|
h(u, {
|
|
39990
39994
|
inputValue: i.getHemaRatingsId ? i.getHemaRatingsId : "",
|
|
39991
39995
|
placeholder: "HEMA Rating ID",
|
|
39992
39996
|
title: "HEMA Rating ID",
|
|
39993
39997
|
"onUpdate:value": i.handleHemaRatingId
|
|
39994
39998
|
}, null, 8, ["inputValue", "onUpdate:value"]),
|
|
39995
|
-
p("div",
|
|
39999
|
+
p("div", EY, [
|
|
39996
40000
|
h(l, {
|
|
39997
40001
|
text: "Preferred Pronouns",
|
|
39998
40002
|
size: "sm",
|
|
@@ -40009,7 +40013,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
40009
40013
|
}, null, 8, ["label", "items", "selectedItem", "onUpdate:selectedItem"])
|
|
40010
40014
|
])
|
|
40011
40015
|
])) : b("", !0),
|
|
40012
|
-
p("div",
|
|
40016
|
+
p("div", QY, [
|
|
40013
40017
|
n.userLevel === "Admin" ? (C(), ne(f, {
|
|
40014
40018
|
key: 0,
|
|
40015
40019
|
class: "mr-8",
|
|
@@ -40032,7 +40036,7 @@ function v2(t, e, n, r, o, i) {
|
|
|
40032
40036
|
]))
|
|
40033
40037
|
], 64);
|
|
40034
40038
|
}
|
|
40035
|
-
const b8 = /* @__PURE__ */ oe(
|
|
40039
|
+
const b8 = /* @__PURE__ */ oe(sY, [["render", vY]]), wY = {
|
|
40036
40040
|
name: "ClubCard",
|
|
40037
40041
|
components: { BaseIcon: qe, BaseText: Be },
|
|
40038
40042
|
props: {
|
|
@@ -40053,18 +40057,18 @@ const b8 = /* @__PURE__ */ oe(s2, [["render", v2]]), w2 = {
|
|
|
40053
40057
|
this.$emit("update:click");
|
|
40054
40058
|
}
|
|
40055
40059
|
}
|
|
40056
|
-
},
|
|
40060
|
+
}, yY = { class: "w-9 h-9 rounded-md overflow-hidden" }, bY = {
|
|
40057
40061
|
key: 0,
|
|
40058
40062
|
class: "w-14 h-14 bg-dropdownSelect flex items-center justify-center"
|
|
40059
|
-
},
|
|
40060
|
-
function
|
|
40063
|
+
}, xY = ["src"], DY = { class: "flex-1 ml-4" }, SY = { class: "flex" };
|
|
40064
|
+
function kY(t, e, n, r, o, i) {
|
|
40061
40065
|
const A = w("BaseText");
|
|
40062
40066
|
return C(), I("section", {
|
|
40063
40067
|
class: "bg-poolSetup flex items-center p-2 shadow rounded-lg",
|
|
40064
40068
|
onClick: e[0] || (e[0] = (...a) => i.handleClick && i.handleClick(...a))
|
|
40065
40069
|
}, [
|
|
40066
|
-
p("div",
|
|
40067
|
-
n.clubImage ? b("", !0) : (C(), I("div",
|
|
40070
|
+
p("div", yY, [
|
|
40071
|
+
n.clubImage ? b("", !0) : (C(), I("div", bY, [
|
|
40068
40072
|
h(A, {
|
|
40069
40073
|
text: "",
|
|
40070
40074
|
size: "sm",
|
|
@@ -40076,10 +40080,10 @@ function k2(t, e, n, r, o, i) {
|
|
|
40076
40080
|
src: n.clubImage,
|
|
40077
40081
|
alt: "Fencer Portrait",
|
|
40078
40082
|
class: "w-full h-full object-cover"
|
|
40079
|
-
}, null, 8,
|
|
40083
|
+
}, null, 8, xY)
|
|
40080
40084
|
]),
|
|
40081
|
-
p("div",
|
|
40082
|
-
p("p",
|
|
40085
|
+
p("div", DY, [
|
|
40086
|
+
p("p", SY, [
|
|
40083
40087
|
h(A, {
|
|
40084
40088
|
text: n.clubName,
|
|
40085
40089
|
size: "sm",
|
|
@@ -40090,10 +40094,10 @@ function k2(t, e, n, r, o, i) {
|
|
|
40090
40094
|
])
|
|
40091
40095
|
]);
|
|
40092
40096
|
}
|
|
40093
|
-
const
|
|
40097
|
+
const MY = /* @__PURE__ */ oe(wY, [["render", kY]]), OY = {
|
|
40094
40098
|
name: "PeopleColumn",
|
|
40095
40099
|
components: {
|
|
40096
|
-
ClubCard:
|
|
40100
|
+
ClubCard: MY,
|
|
40097
40101
|
PoolFencerCard: cc,
|
|
40098
40102
|
BaseText: Be,
|
|
40099
40103
|
BaseInput: _t,
|
|
@@ -40126,11 +40130,11 @@ const M2 = /* @__PURE__ */ oe(w2, [["render", k2]]), O2 = {
|
|
|
40126
40130
|
this.$emit("update:selectedClub", t);
|
|
40127
40131
|
}
|
|
40128
40132
|
}
|
|
40129
|
-
},
|
|
40130
|
-
function
|
|
40133
|
+
}, TY = { class: "w-96 p-4" }, RY = { class: "mb-4 px-4" }, PY = { class: "overflow-y-auto h-[800px]" };
|
|
40134
|
+
function zY(t, e, n, r, o, i) {
|
|
40131
40135
|
const A = w("TitledInput"), a = w("ClubCard");
|
|
40132
|
-
return C(), I("div",
|
|
40133
|
-
p("div",
|
|
40136
|
+
return C(), I("div", TY, [
|
|
40137
|
+
p("div", RY, [
|
|
40134
40138
|
h(A, {
|
|
40135
40139
|
inputValue: o.searchTerm,
|
|
40136
40140
|
placeholder: "Enter Name to Search",
|
|
@@ -40138,7 +40142,7 @@ function z2(t, e, n, r, o, i) {
|
|
|
40138
40142
|
"onUpdate:value": i.updateDisplayName
|
|
40139
40143
|
}, null, 8, ["inputValue", "onUpdate:value"])
|
|
40140
40144
|
]),
|
|
40141
|
-
p("div",
|
|
40145
|
+
p("div", PY, [
|
|
40142
40146
|
p("ul", null, [
|
|
40143
40147
|
(C(!0), I(ae, null, Qe(i.filteredClubs, (l) => (C(), I("li", {
|
|
40144
40148
|
key: l.ClubId,
|
|
@@ -40155,20 +40159,20 @@ function z2(t, e, n, r, o, i) {
|
|
|
40155
40159
|
])
|
|
40156
40160
|
]);
|
|
40157
40161
|
}
|
|
40158
|
-
const
|
|
40162
|
+
const LY = /* @__PURE__ */ oe(OY, [["render", zY]]), FY = {
|
|
40159
40163
|
name: "ClubManagementSkeleton"
|
|
40160
|
-
},
|
|
40161
|
-
|
|
40164
|
+
}, NY = { class: "flex" }, HY = /* @__PURE__ */ As('<div class="rounded-lg p-9 bg-neutral w-full animate-pulse"><div class="w-full flex flex-row justify-center mb-4"><div class="h-8 bg-dropdownSelect rounded w-1/4"></div></div><div class="w-full flex-row justify-center mb-4 flex drop-shadow"><div class="w-32 h-32 border-2 border-dashed rounded-full bg-dropdownSelect"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-24 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-28 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-24 mb-2"></div><div class="h-64 bg-dropdownSelect rounded"></div></div><div class="flex flex-col mb-4"><div class="h-6 bg-dropdownSelect rounded w-24 mb-2"></div><div class="h-10 bg-dropdownSelect rounded"></div></div><div class="flex flex-row justify-end mt-8"><div class="h-10 bg-dropdownSelect rounded w-full"></div></div></div>', 1), qY = [
|
|
40165
|
+
HY
|
|
40162
40166
|
];
|
|
40163
|
-
function
|
|
40164
|
-
return C(), I("section",
|
|
40167
|
+
function YY(t, e, n, r, o, i) {
|
|
40168
|
+
return C(), I("section", NY, qY);
|
|
40165
40169
|
}
|
|
40166
|
-
const
|
|
40170
|
+
const jY = /* @__PURE__ */ oe(FY, [["render", YY]]), KY = {
|
|
40167
40171
|
name: "ClubManagement",
|
|
40168
40172
|
emits: ["submit:club", "addNewAddress", "delete:club", "update:selectedClub"],
|
|
40169
40173
|
components: {
|
|
40170
|
-
ClubManagementSkeleton:
|
|
40171
|
-
ClubColumn:
|
|
40174
|
+
ClubManagementSkeleton: jY,
|
|
40175
|
+
ClubColumn: LY,
|
|
40172
40176
|
BaseText: Be,
|
|
40173
40177
|
ImageCropper: gs,
|
|
40174
40178
|
TitledInput: xn,
|
|
@@ -40274,25 +40278,25 @@ const j2 = /* @__PURE__ */ oe(F2, [["render", Y2]]), K2 = {
|
|
|
40274
40278
|
this.$emit("delete:club", this.club);
|
|
40275
40279
|
}
|
|
40276
40280
|
}
|
|
40277
|
-
},
|
|
40281
|
+
}, UY = { key: 0 }, GY = {
|
|
40278
40282
|
key: 1,
|
|
40279
40283
|
class: "flex"
|
|
40280
|
-
},
|
|
40281
|
-
function
|
|
40284
|
+
}, JY = { key: 0 }, VY = { class: "rounded-lg p-9 bg-neutral w-full" }, WY = { class: "w-full flex flex-row justify-center mb-4" }, XY = { class: "w-full flex-row justify-center mb-4 flex drop-shadow" }, ZY = { class: "flex flex-col mb-4" }, _Y = { class: "flex flex-col mb-4" }, $Y = { class: "flex flex-col mb-4" }, e2 = { class: "flex flex-col mb-4" }, t2 = { class: "flex flex-row justify-end mt-8" };
|
|
40285
|
+
function n2(t, e, n, r, o, i) {
|
|
40282
40286
|
const A = w("ClubManagementSkeleton"), a = w("ClubColumn"), l = w("BaseText"), c = w("ImageCropper"), u = w("TitledInput"), d = w("TextBoxEditor"), g = w("FindLocation"), f = w("BaseButton");
|
|
40283
40287
|
return C(), I(ae, null, [
|
|
40284
|
-
n.loading ? (C(), I("section",
|
|
40288
|
+
n.loading ? (C(), I("section", UY, [
|
|
40285
40289
|
h(A)
|
|
40286
40290
|
])) : b("", !0),
|
|
40287
|
-
n.loading ? b("", !0) : (C(), I("section",
|
|
40288
|
-
n.userLevel === "Admin" ? (C(), I("div",
|
|
40291
|
+
n.loading ? b("", !0) : (C(), I("section", GY, [
|
|
40292
|
+
n.userLevel === "Admin" ? (C(), I("div", JY, [
|
|
40289
40293
|
h(a, {
|
|
40290
40294
|
clubs: n.clubs,
|
|
40291
40295
|
"onUpdate:selectedClub": i.handleClubClick
|
|
40292
40296
|
}, null, 8, ["clubs", "onUpdate:selectedClub"])
|
|
40293
40297
|
])) : b("", !0),
|
|
40294
|
-
p("div",
|
|
40295
|
-
p("div",
|
|
40298
|
+
p("div", VY, [
|
|
40299
|
+
p("div", WY, [
|
|
40296
40300
|
h(l, {
|
|
40297
40301
|
color: "primaryHighlight",
|
|
40298
40302
|
size: "2xl",
|
|
@@ -40300,7 +40304,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40300
40304
|
weight: "normal"
|
|
40301
40305
|
})
|
|
40302
40306
|
]),
|
|
40303
|
-
p("div",
|
|
40307
|
+
p("div", XY, [
|
|
40304
40308
|
h(c, {
|
|
40305
40309
|
urlToImage: i.getImageURL,
|
|
40306
40310
|
uploadImageName: n.uploadImageName,
|
|
@@ -40318,7 +40322,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40318
40322
|
"onUpdate:url": i.handleProfilePicUpdate
|
|
40319
40323
|
}, null, 8, ["urlToImage", "uploadImageName", "uploadServer", "imageServer", "customClass", "onUpdate:url"])
|
|
40320
40324
|
]),
|
|
40321
|
-
p("div",
|
|
40325
|
+
p("div", ZY, [
|
|
40322
40326
|
h(u, {
|
|
40323
40327
|
inputValue: o.club.Name,
|
|
40324
40328
|
placeholder: "Enter Club Name",
|
|
@@ -40326,7 +40330,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40326
40330
|
"onUpdate:value": i.updateName
|
|
40327
40331
|
}, null, 8, ["inputValue", "onUpdate:value"])
|
|
40328
40332
|
]),
|
|
40329
|
-
p("div",
|
|
40333
|
+
p("div", _Y, [
|
|
40330
40334
|
h(u, {
|
|
40331
40335
|
inputValue: o.club.ShortName,
|
|
40332
40336
|
placeholder: "Enter Short Name",
|
|
@@ -40334,7 +40338,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40334
40338
|
"onUpdate:value": i.updateShortName
|
|
40335
40339
|
}, null, 8, ["inputValue", "onUpdate:value"])
|
|
40336
40340
|
]),
|
|
40337
|
-
p("div", $
|
|
40341
|
+
p("div", $Y, [
|
|
40338
40342
|
h(l, {
|
|
40339
40343
|
color: "primaryHighlight",
|
|
40340
40344
|
size: "sm",
|
|
@@ -40348,7 +40352,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40348
40352
|
"onUpdate:editorContent": i.handleEditorUpdate
|
|
40349
40353
|
}, null, 8, ["initialContent", "onUpdate:editorContent"])
|
|
40350
40354
|
]),
|
|
40351
|
-
p("div",
|
|
40355
|
+
p("div", e2, [
|
|
40352
40356
|
h(l, {
|
|
40353
40357
|
text: "Address",
|
|
40354
40358
|
size: "sm",
|
|
@@ -40363,7 +40367,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40363
40367
|
onUpdateLocation: i.handleAddressUpdate
|
|
40364
40368
|
}, null, 8, ["locations", "placeholder", "onUpdate:addNewAddress", "onUpdateLocation"])
|
|
40365
40369
|
]),
|
|
40366
|
-
p("div",
|
|
40370
|
+
p("div", t2, [
|
|
40367
40371
|
n.userLevel === "Admin" ? (C(), ne(f, {
|
|
40368
40372
|
key: 0,
|
|
40369
40373
|
class: "mr-8",
|
|
@@ -40386,7 +40390,7 @@ function nY(t, e, n, r, o, i) {
|
|
|
40386
40390
|
]))
|
|
40387
40391
|
], 64);
|
|
40388
40392
|
}
|
|
40389
|
-
const x8 = /* @__PURE__ */ oe(
|
|
40393
|
+
const x8 = /* @__PURE__ */ oe(KY, [["render", n2]]), r2 = {
|
|
40390
40394
|
name: "TournamentAssignments",
|
|
40391
40395
|
components: { BaseIcon: qe, BaseText: Be, BaseButton: He },
|
|
40392
40396
|
props: {
|
|
@@ -40505,20 +40509,20 @@ const x8 = /* @__PURE__ */ oe(K2, [["render", nY]]), rY = {
|
|
|
40505
40509
|
this.$emit("refreshAssignments");
|
|
40506
40510
|
}
|
|
40507
40511
|
}
|
|
40508
|
-
},
|
|
40512
|
+
}, o2 = { class: "w-full md:p-4" }, i2 = { class: "w-full flex justify-between" }, s2 = { class: "flex" }, A2 = {
|
|
40509
40513
|
key: 0,
|
|
40510
40514
|
class: "text-center mt-10"
|
|
40511
|
-
},
|
|
40515
|
+
}, a2 = { key: 1 }, l2 = { class: "flex mr-4 md:mr-0" }, c2 = { class: "hidden md:flex w-14 h-20 flex-col pt-5" }, u2 = ["src"], d2 = { class: "w-full flex flex-col h-14 justify-end md:ml-2" }, g2 = { class: "w-full flex ml-2 justify-between border-b" }, h2 = { class: "md:ml-14 md:-mt-2 w-full mt-2" }, p2 = { class: "flex-grow flex justify-between items-center bg-poolSetup px-4 py-2 rounded-lg" }, f2 = { class: "flex items-center space-x-4" }, C2 = { class: "hidden md:flex" }, m2 = { class: "w-12 md:flex bg-poolSetup ml-2 px-4 py-2 rounded-lg" }, I2 = {
|
|
40512
40516
|
key: 0,
|
|
40513
40517
|
class: "w-12 ml-1"
|
|
40514
|
-
},
|
|
40518
|
+
}, B2 = {
|
|
40515
40519
|
key: 1,
|
|
40516
40520
|
class: "w-12 ml-1"
|
|
40517
40521
|
};
|
|
40518
|
-
function
|
|
40522
|
+
function E2(t, e, n, r, o, i) {
|
|
40519
40523
|
const A = w("BaseText"), a = w("BaseButton"), l = w("BaseIcon");
|
|
40520
|
-
return C(), I("div",
|
|
40521
|
-
p("div",
|
|
40524
|
+
return C(), I("div", o2, [
|
|
40525
|
+
p("div", i2, [
|
|
40522
40526
|
h(A, {
|
|
40523
40527
|
text: "Assignments",
|
|
40524
40528
|
color: "primary",
|
|
@@ -40527,7 +40531,7 @@ function EY(t, e, n, r, o, i) {
|
|
|
40527
40531
|
weight: "bold",
|
|
40528
40532
|
class: "pt-2"
|
|
40529
40533
|
}),
|
|
40530
|
-
p("div",
|
|
40534
|
+
p("div", s2, [
|
|
40531
40535
|
h(a, {
|
|
40532
40536
|
iconName: "fa-arrow-rotate-right",
|
|
40533
40537
|
iconLeft: !0,
|
|
@@ -40554,7 +40558,7 @@ function EY(t, e, n, r, o, i) {
|
|
|
40554
40558
|
}, null, 8, ["selected"])
|
|
40555
40559
|
])
|
|
40556
40560
|
]),
|
|
40557
|
-
i.filteredAssignments.length === 0 ? (C(), I("div",
|
|
40561
|
+
i.filteredAssignments.length === 0 ? (C(), I("div", A2, [
|
|
40558
40562
|
h(A, {
|
|
40559
40563
|
text: "No Current Assignments",
|
|
40560
40564
|
color: "secondary",
|
|
@@ -40562,21 +40566,21 @@ function EY(t, e, n, r, o, i) {
|
|
|
40562
40566
|
weight: "normal"
|
|
40563
40567
|
})
|
|
40564
40568
|
])) : b("", !0),
|
|
40565
|
-
i.filteredAssignments.length > 0 ? (C(), I("section",
|
|
40569
|
+
i.filteredAssignments.length > 0 ? (C(), I("section", a2, [
|
|
40566
40570
|
(C(!0), I(ae, null, Qe(i.filteredAssignments, (c) => (C(), I("div", {
|
|
40567
40571
|
key: c.TournamentId,
|
|
40568
40572
|
class: "mb-6"
|
|
40569
40573
|
}, [
|
|
40570
|
-
p("div",
|
|
40571
|
-
p("div",
|
|
40574
|
+
p("div", l2, [
|
|
40575
|
+
p("div", c2, [
|
|
40572
40576
|
p("img", {
|
|
40573
40577
|
src: i.getTournamentArtworkURL(c),
|
|
40574
40578
|
alt: "Tournament Artwork",
|
|
40575
40579
|
class: "w-14 h-14 rounded-lg object-cover"
|
|
40576
|
-
}, null, 8,
|
|
40580
|
+
}, null, 8, u2)
|
|
40577
40581
|
]),
|
|
40578
|
-
p("div",
|
|
40579
|
-
p("div",
|
|
40582
|
+
p("div", d2, [
|
|
40583
|
+
p("div", g2, [
|
|
40580
40584
|
h(A, {
|
|
40581
40585
|
text: c.Name,
|
|
40582
40586
|
color: "primary",
|
|
@@ -40593,13 +40597,13 @@ function EY(t, e, n, r, o, i) {
|
|
|
40593
40597
|
])
|
|
40594
40598
|
])
|
|
40595
40599
|
]),
|
|
40596
|
-
p("div",
|
|
40600
|
+
p("div", h2, [
|
|
40597
40601
|
(C(!0), I(ae, null, Qe(c.Events, (u) => (C(), I("section", {
|
|
40598
40602
|
key: u.EventId,
|
|
40599
40603
|
class: "md:pl-4 mb-2 flex md:w-11/12"
|
|
40600
40604
|
}, [
|
|
40601
|
-
p("div",
|
|
40602
|
-
p("div",
|
|
40605
|
+
p("div", p2, [
|
|
40606
|
+
p("div", f2, [
|
|
40603
40607
|
h(l, {
|
|
40604
40608
|
iconName: i.getRoleIcon(u),
|
|
40605
40609
|
iconStyle: i.getIconStyle(u),
|
|
@@ -40614,7 +40618,7 @@ function EY(t, e, n, r, o, i) {
|
|
|
40614
40618
|
class: "text-xs md:text-sm"
|
|
40615
40619
|
}, null, 8, ["text"])
|
|
40616
40620
|
]),
|
|
40617
|
-
p("span",
|
|
40621
|
+
p("span", C2, [
|
|
40618
40622
|
h(A, {
|
|
40619
40623
|
text: i.formatEventDate(u.Date, u.StartTime),
|
|
40620
40624
|
color: "primary",
|
|
@@ -40624,7 +40628,7 @@ function EY(t, e, n, r, o, i) {
|
|
|
40624
40628
|
}, null, 8, ["text"])
|
|
40625
40629
|
])
|
|
40626
40630
|
]),
|
|
40627
|
-
p("div",
|
|
40631
|
+
p("div", m2, [
|
|
40628
40632
|
h(l, {
|
|
40629
40633
|
iconName: i.getStatusIcon(u),
|
|
40630
40634
|
size: "md",
|
|
@@ -40632,7 +40636,7 @@ function EY(t, e, n, r, o, i) {
|
|
|
40632
40636
|
class: ee(i.getIconClass(u))
|
|
40633
40637
|
}, null, 8, ["iconName", "class"])
|
|
40634
40638
|
]),
|
|
40635
|
-
i.shouldShowButton(u) && o.showCurrent ? (C(), I("div",
|
|
40639
|
+
i.shouldShowButton(u) && o.showCurrent ? (C(), I("div", I2, [
|
|
40636
40640
|
i.shouldShowButton(u) ? (C(), ne(a, {
|
|
40637
40641
|
key: 0,
|
|
40638
40642
|
iconName: "fa-right-from-line",
|
|
@@ -40644,14 +40648,14 @@ function EY(t, e, n, r, o, i) {
|
|
|
40644
40648
|
class: "h-10 w-10 pr-4"
|
|
40645
40649
|
}, null, 8, ["onButtonClick"])) : b("", !0)
|
|
40646
40650
|
])) : b("", !0),
|
|
40647
|
-
!i.shouldShowButton(u) && o.showCurrent ? (C(), I("span",
|
|
40651
|
+
!i.shouldShowButton(u) && o.showCurrent ? (C(), I("span", B2)) : b("", !0)
|
|
40648
40652
|
]))), 128))
|
|
40649
40653
|
])
|
|
40650
40654
|
]))), 128))
|
|
40651
40655
|
])) : b("", !0)
|
|
40652
40656
|
]);
|
|
40653
40657
|
}
|
|
40654
|
-
const D8 = /* @__PURE__ */ oe(
|
|
40658
|
+
const D8 = /* @__PURE__ */ oe(r2, [["render", E2]]), Q2 = {
|
|
40655
40659
|
name: "PenaltyFencerCard",
|
|
40656
40660
|
components: { BaseButton: He, BaseIcon: qe, BaseText: Be },
|
|
40657
40661
|
emits: ["handleConfirmRemoval", "penalty:removal"],
|
|
@@ -40676,13 +40680,13 @@ const D8 = /* @__PURE__ */ oe(rY, [["render", EY]]), QY = {
|
|
|
40676
40680
|
Yellow: "fa-square",
|
|
40677
40681
|
Red: "fa-square",
|
|
40678
40682
|
Black: "fa-square",
|
|
40679
|
-
Medical: "fa-
|
|
40683
|
+
Medical: "fa-truck-medical"
|
|
40680
40684
|
},
|
|
40681
40685
|
penaltyColors: {
|
|
40682
40686
|
Yellow: "gold",
|
|
40683
40687
|
Red: "red",
|
|
40684
40688
|
Black: "black",
|
|
40685
|
-
Medical: "
|
|
40689
|
+
Medical: "orange"
|
|
40686
40690
|
}
|
|
40687
40691
|
};
|
|
40688
40692
|
},
|
|
@@ -40705,6 +40709,9 @@ const D8 = /* @__PURE__ */ oe(rY, [["render", EY]]), QY = {
|
|
|
40705
40709
|
}
|
|
40706
40710
|
},
|
|
40707
40711
|
methods: {
|
|
40712
|
+
shouldShowConfirmButton(t) {
|
|
40713
|
+
return (t.PenaltyType === "Black" || t.PenaltyType === "Medical") && !t.Confirmed;
|
|
40714
|
+
},
|
|
40708
40715
|
toggleDetails() {
|
|
40709
40716
|
this.localShowDetails = !this.localShowDetails;
|
|
40710
40717
|
},
|
|
@@ -40712,29 +40719,29 @@ const D8 = /* @__PURE__ */ oe(rY, [["render", EY]]), QY = {
|
|
|
40712
40719
|
t.PersonId = this.personPenalties.PersonId, this.$emit("penalty:removal", t);
|
|
40713
40720
|
}
|
|
40714
40721
|
}
|
|
40715
|
-
},
|
|
40722
|
+
}, v2 = { class: "hidden md:block mr-4" }, w2 = {
|
|
40716
40723
|
key: 0,
|
|
40717
40724
|
class: "w-9 h-9 rounded-xl bg-dropdownSelect flex items-center justify-center"
|
|
40718
|
-
},
|
|
40725
|
+
}, y2 = ["src"], b2 = { class: "flex flex-col w-1/2 md:w-4/12 justify-start" }, x2 = { class: "flex flex-row ml-auto space-x-4" }, D2 = {
|
|
40719
40726
|
key: 0,
|
|
40720
40727
|
class: "flex items-center"
|
|
40721
|
-
},
|
|
40728
|
+
}, S2 = {
|
|
40722
40729
|
key: 1,
|
|
40723
40730
|
class: "flex items-center"
|
|
40724
|
-
},
|
|
40731
|
+
}, k2 = {
|
|
40725
40732
|
key: 2,
|
|
40726
40733
|
class: "flex items-center ml-2"
|
|
40727
|
-
},
|
|
40734
|
+
}, M2 = {
|
|
40728
40735
|
key: 3,
|
|
40729
40736
|
class: "flex items-center ml-2"
|
|
40730
|
-
},
|
|
40737
|
+
}, O2 = { class: "ml-4" }, T2 = {
|
|
40731
40738
|
key: 0,
|
|
40732
40739
|
class: "border-t border-dropdownSelect md:p-3"
|
|
40733
|
-
},
|
|
40740
|
+
}, R2 = { class: "flex flex-row justify-between" }, P2 = { class: "flex flex-row" }, z2 = { class: "flex flex-row" }, L2 = { class: "flex flex-col md:flex-row justify-between my-1" }, F2 = { class: "flex flex-row" }, N2 = { class: "flex flex-row" }, H2 = {
|
|
40734
40741
|
key: 0,
|
|
40735
40742
|
class: "md:-mt-5 mx-auto"
|
|
40736
40743
|
};
|
|
40737
|
-
function
|
|
40744
|
+
function q2(t, e, n, r, o, i) {
|
|
40738
40745
|
const A = w("BaseText"), a = w("BaseIcon"), l = w("BaseButton");
|
|
40739
40746
|
return C(), I(ae, null, [
|
|
40740
40747
|
n.personPenalties ? (C(), I("div", {
|
|
@@ -40742,8 +40749,8 @@ function qY(t, e, n, r, o, i) {
|
|
|
40742
40749
|
class: "flex items-center border-b border-dropdownSelect bg-white hover:border-bright px-4 py-4",
|
|
40743
40750
|
onClick: e[0] || (e[0] = (...c) => i.toggleDetails && i.toggleDetails(...c))
|
|
40744
40751
|
}, [
|
|
40745
|
-
p("div",
|
|
40746
|
-
i.portraitURL ? b("", !0) : (C(), I("div",
|
|
40752
|
+
p("div", v2, [
|
|
40753
|
+
i.portraitURL ? b("", !0) : (C(), I("div", w2, [
|
|
40747
40754
|
h(A, {
|
|
40748
40755
|
text: "",
|
|
40749
40756
|
size: "sm",
|
|
@@ -40756,9 +40763,9 @@ function qY(t, e, n, r, o, i) {
|
|
|
40756
40763
|
src: i.portraitURL,
|
|
40757
40764
|
alt: "Portrait",
|
|
40758
40765
|
class: "w-9 h-9 rounded-xl"
|
|
40759
|
-
}, null, 8,
|
|
40766
|
+
}, null, 8, y2)) : b("", !0)
|
|
40760
40767
|
]),
|
|
40761
|
-
p("div",
|
|
40768
|
+
p("div", b2, [
|
|
40762
40769
|
h(A, {
|
|
40763
40770
|
text: n.personPenalties.DisplayName,
|
|
40764
40771
|
size: "md",
|
|
@@ -40767,8 +40774,8 @@ function qY(t, e, n, r, o, i) {
|
|
|
40767
40774
|
class: "text-sm md:text-lg"
|
|
40768
40775
|
}, null, 8, ["text"])
|
|
40769
40776
|
]),
|
|
40770
|
-
p("div",
|
|
40771
|
-
i.yellowCardCount > 0 ? (C(), I("div",
|
|
40777
|
+
p("div", x2, [
|
|
40778
|
+
i.yellowCardCount > 0 ? (C(), I("div", D2, [
|
|
40772
40779
|
h(a, {
|
|
40773
40780
|
"icon-name": "fa-square",
|
|
40774
40781
|
size: "lg",
|
|
@@ -40782,7 +40789,7 @@ function qY(t, e, n, r, o, i) {
|
|
|
40782
40789
|
class: "ml-2"
|
|
40783
40790
|
}, null, 8, ["text"])
|
|
40784
40791
|
])) : b("", !0),
|
|
40785
|
-
i.redCardCount > 0 ? (C(), I("div",
|
|
40792
|
+
i.redCardCount > 0 ? (C(), I("div", S2, [
|
|
40786
40793
|
h(a, {
|
|
40787
40794
|
"icon-name": "fa-square",
|
|
40788
40795
|
size: "lg",
|
|
@@ -40796,14 +40803,14 @@ function qY(t, e, n, r, o, i) {
|
|
|
40796
40803
|
class: "ml-2"
|
|
40797
40804
|
}, null, 8, ["text"])
|
|
40798
40805
|
])) : b("", !0),
|
|
40799
|
-
i.blackCardCount > 0 ? (C(), I("div",
|
|
40806
|
+
i.blackCardCount > 0 ? (C(), I("div", k2, [
|
|
40800
40807
|
h(a, {
|
|
40801
40808
|
"icon-name": "fa-square",
|
|
40802
40809
|
size: "lg",
|
|
40803
40810
|
color: "black"
|
|
40804
40811
|
})
|
|
40805
40812
|
])) : b("", !0),
|
|
40806
|
-
i.medicalCount > 0 ? (C(), I("div",
|
|
40813
|
+
i.medicalCount > 0 ? (C(), I("div", M2, [
|
|
40807
40814
|
h(a, {
|
|
40808
40815
|
"icon-name": "fa-plus-circle",
|
|
40809
40816
|
size: "lg",
|
|
@@ -40811,7 +40818,7 @@ function qY(t, e, n, r, o, i) {
|
|
|
40811
40818
|
})
|
|
40812
40819
|
])) : b("", !0)
|
|
40813
40820
|
]),
|
|
40814
|
-
p("button",
|
|
40821
|
+
p("button", O2, [
|
|
40815
40822
|
h(a, {
|
|
40816
40823
|
"icon-name": "fa-chevron-down",
|
|
40817
40824
|
size: "lg",
|
|
@@ -40822,13 +40829,13 @@ function qY(t, e, n, r, o, i) {
|
|
|
40822
40829
|
])) : b("", !0),
|
|
40823
40830
|
h(cn, { name: "fade-in-down" }, {
|
|
40824
40831
|
default: Oe(() => [
|
|
40825
|
-
o.localShowDetails ? (C(), I("div",
|
|
40832
|
+
o.localShowDetails ? (C(), I("div", T2, [
|
|
40826
40833
|
(C(!0), I(ae, null, Qe(n.personPenalties.Penalties, (c) => (C(), I("div", {
|
|
40827
40834
|
key: c.BoutId,
|
|
40828
40835
|
class: "flex flex-col p-2 border-b my-2"
|
|
40829
40836
|
}, [
|
|
40830
|
-
p("div",
|
|
40831
|
-
p("div",
|
|
40837
|
+
p("div", R2, [
|
|
40838
|
+
p("div", P2, [
|
|
40832
40839
|
h(a, {
|
|
40833
40840
|
"icon-name": o.penaltyIcons[c.PenaltyType],
|
|
40834
40841
|
size: "md",
|
|
@@ -40842,7 +40849,7 @@ function qY(t, e, n, r, o, i) {
|
|
|
40842
40849
|
class: "-mt-0.5 ml-2 text-sm md:text-md"
|
|
40843
40850
|
}, null, 8, ["text"])
|
|
40844
40851
|
]),
|
|
40845
|
-
p("div",
|
|
40852
|
+
p("div", z2, [
|
|
40846
40853
|
h(A, {
|
|
40847
40854
|
text: n.eventName,
|
|
40848
40855
|
size: "sm",
|
|
@@ -40866,8 +40873,8 @@ function qY(t, e, n, r, o, i) {
|
|
|
40866
40873
|
}, null, 8, ["text"])
|
|
40867
40874
|
])
|
|
40868
40875
|
]),
|
|
40869
|
-
p("div",
|
|
40870
|
-
p("div",
|
|
40876
|
+
p("div", L2, [
|
|
40877
|
+
p("div", F2, [
|
|
40871
40878
|
h(A, {
|
|
40872
40879
|
text: "Notes:",
|
|
40873
40880
|
size: "sm",
|
|
@@ -40884,7 +40891,7 @@ function qY(t, e, n, r, o, i) {
|
|
|
40884
40891
|
class: "ml-2"
|
|
40885
40892
|
}, null, 8, ["text"])) : b("", !0)
|
|
40886
40893
|
]),
|
|
40887
|
-
p("div",
|
|
40894
|
+
p("div", N2, [
|
|
40888
40895
|
h(A, {
|
|
40889
40896
|
text: "Issued By:",
|
|
40890
40897
|
size: "sm",
|
|
@@ -40901,7 +40908,7 @@ function qY(t, e, n, r, o, i) {
|
|
|
40901
40908
|
}, null, 8, ["text"])
|
|
40902
40909
|
])
|
|
40903
40910
|
]),
|
|
40904
|
-
|
|
40911
|
+
i.shouldShowConfirmButton(c) ? (C(), I("div", H2, [
|
|
40905
40912
|
h(l, {
|
|
40906
40913
|
label: "Confirm Removal of Fencer",
|
|
40907
40914
|
size: "sm",
|
|
@@ -40917,7 +40924,7 @@ function qY(t, e, n, r, o, i) {
|
|
|
40917
40924
|
})
|
|
40918
40925
|
], 64);
|
|
40919
40926
|
}
|
|
40920
|
-
const
|
|
40927
|
+
const Y2 = /* @__PURE__ */ oe(Q2, [["render", q2], ["__scopeId", "data-v-507c44cb"]]), j2 = {
|
|
40921
40928
|
name: "PenaltySummary",
|
|
40922
40929
|
components: { BaseText: Be, EventStatusBox: gi },
|
|
40923
40930
|
props: {
|
|
@@ -40968,12 +40975,12 @@ const YY = /* @__PURE__ */ oe(QY, [["render", qY], ["__scopeId", "data-v-ce4912d
|
|
|
40968
40975
|
return !isNaN(t) && t !== null && t !== void 0;
|
|
40969
40976
|
}
|
|
40970
40977
|
}
|
|
40971
|
-
},
|
|
40972
|
-
function
|
|
40978
|
+
}, K2 = { class: "flex flex-col md:flex-row md:bg-poolSetup py-1 px-2 md:px-4 md:rounded-xl justify-between md:shadow md:border border-dropdownSelect" }, U2 = { class: "hidden md:flex flex-col pt-2" }, G2 = { class: "flex flex-row space-x-4 items-center" };
|
|
40979
|
+
function J2(t, e, n, r, o, i) {
|
|
40973
40980
|
var l;
|
|
40974
40981
|
const A = w("BaseText"), a = w("EventStatusBox");
|
|
40975
|
-
return C(), I("div",
|
|
40976
|
-
p("section",
|
|
40982
|
+
return C(), I("div", K2, [
|
|
40983
|
+
p("section", U2, [
|
|
40977
40984
|
h(A, {
|
|
40978
40985
|
text: ((l = n.event) == null ? void 0 : l.EventName) || "Unknown Event",
|
|
40979
40986
|
size: "",
|
|
@@ -40982,7 +40989,7 @@ function JY(t, e, n, r, o, i) {
|
|
|
40982
40989
|
class: "text-sm md:text-lg"
|
|
40983
40990
|
}, null, 8, ["text"])
|
|
40984
40991
|
]),
|
|
40985
|
-
p("section",
|
|
40992
|
+
p("section", G2, [
|
|
40986
40993
|
h(a, {
|
|
40987
40994
|
"status-count": i.safeYellowCards,
|
|
40988
40995
|
"status-label": "Yellow",
|
|
@@ -41006,13 +41013,14 @@ function JY(t, e, n, r, o, i) {
|
|
|
41006
41013
|
])
|
|
41007
41014
|
]);
|
|
41008
41015
|
}
|
|
41009
|
-
const
|
|
41010
|
-
components: { PenaltySummary:
|
|
41016
|
+
const V2 = /* @__PURE__ */ oe(j2, [["render", J2]]), W2 = {
|
|
41017
|
+
components: { PenaltySummary: V2, BaseText: Be, EditEventsTopMenu: Cn, PenaltyFencerCard: Y2 },
|
|
41011
41018
|
emits: ["tab:menu-click", "penalty:removal"],
|
|
41012
41019
|
props: {
|
|
41013
41020
|
event: {
|
|
41014
41021
|
type: Object,
|
|
41015
|
-
required: !0
|
|
41022
|
+
required: !0,
|
|
41023
|
+
default: () => ({})
|
|
41016
41024
|
},
|
|
41017
41025
|
penalties: {
|
|
41018
41026
|
type: Array,
|
|
@@ -41026,11 +41034,15 @@ const VY = /* @__PURE__ */ oe(jY, [["render", JY]]), WY = {
|
|
|
41026
41034
|
data() {
|
|
41027
41035
|
return {
|
|
41028
41036
|
emptyDesertIcon: Vt,
|
|
41037
|
+
windowWidth: window.innerWidth,
|
|
41029
41038
|
detailsVisible: {},
|
|
41030
41039
|
tabs: ir
|
|
41031
41040
|
};
|
|
41032
41041
|
},
|
|
41033
41042
|
computed: {
|
|
41043
|
+
isMobile() {
|
|
41044
|
+
return this.windowWidth <= 748;
|
|
41045
|
+
},
|
|
41034
41046
|
totalYellowCards() {
|
|
41035
41047
|
return Array.isArray(this.penalties) ? this.penalties.reduce((t, e) => t + (Array.isArray(e == null ? void 0 : e.Penalties) ? e.Penalties.filter((n) => (n == null ? void 0 : n.PenaltyType) === "Yellow").length : 0), 0) : 0;
|
|
41036
41048
|
},
|
|
@@ -41052,19 +41064,19 @@ const VY = /* @__PURE__ */ oe(jY, [["render", JY]]), WY = {
|
|
|
41052
41064
|
console.log(t), this.$emit("penalty:removal", t);
|
|
41053
41065
|
}
|
|
41054
41066
|
}
|
|
41055
|
-
},
|
|
41067
|
+
}, X2 = /* @__PURE__ */ p("div", { class: "md:p-4" }, null, -1), Z2 = {
|
|
41056
41068
|
key: 0,
|
|
41057
41069
|
class: "mb-10"
|
|
41058
|
-
},
|
|
41070
|
+
}, _2 = {
|
|
41059
41071
|
key: 1,
|
|
41060
41072
|
class: "mb-10"
|
|
41061
|
-
}, $
|
|
41073
|
+
}, $2 = ["src"], e8 = { class: "flex justify-center" };
|
|
41062
41074
|
function t8(t, e, n, r, o, i) {
|
|
41063
41075
|
const A = w("EditEventsTopMenu"), a = w("PenaltySummary"), l = w("PenaltyFencerCard"), c = w("BaseText");
|
|
41064
41076
|
return C(), I("section", null, [
|
|
41065
41077
|
h(A, {
|
|
41066
41078
|
currentTab: "Penalties",
|
|
41067
|
-
tabs: o.tabs(n.role,
|
|
41079
|
+
tabs: o.tabs(n.role, i.isMobile),
|
|
41068
41080
|
onTabMenuClick: i.handleTabMenuClick
|
|
41069
41081
|
}, null, 8, ["tabs", "onTabMenuClick"]),
|
|
41070
41082
|
h(a, {
|
|
@@ -41074,8 +41086,8 @@ function t8(t, e, n, r, o, i) {
|
|
|
41074
41086
|
blackCards: i.totalBlackCards,
|
|
41075
41087
|
medicalCalls: i.totalMedicalCalls
|
|
41076
41088
|
}, null, 8, ["event", "yellowCards", "redCards", "blackCards", "medicalCalls"]),
|
|
41077
|
-
|
|
41078
|
-
n.penalties.length > 0 ? (C(), I("div",
|
|
41089
|
+
X2,
|
|
41090
|
+
n.penalties.length > 0 ? (C(), I("div", Z2, [
|
|
41079
41091
|
(C(!0), I(ae, null, Qe(n.penalties, (u, d) => (C(), I("div", { key: d }, [
|
|
41080
41092
|
h(l, {
|
|
41081
41093
|
eventName: "This is a event",
|
|
@@ -41084,12 +41096,12 @@ function t8(t, e, n, r, o, i) {
|
|
|
41084
41096
|
}, null, 8, ["personPenalties", "onPenalty:removal"])
|
|
41085
41097
|
]))), 128))
|
|
41086
41098
|
])) : b("", !0),
|
|
41087
|
-
!Array.isArray(n.penalties) || n.penalties.length === 0 ? (C(), I("div",
|
|
41099
|
+
!Array.isArray(n.penalties) || n.penalties.length === 0 ? (C(), I("div", _2, [
|
|
41088
41100
|
p("img", {
|
|
41089
41101
|
alt: "Small desert scene with wind blowing.",
|
|
41090
41102
|
class: "w-60 mt-8 mx-auto",
|
|
41091
41103
|
src: o.emptyDesertIcon
|
|
41092
|
-
}, null, 8, $
|
|
41104
|
+
}, null, 8, $2),
|
|
41093
41105
|
p("div", e8, [
|
|
41094
41106
|
h(c, {
|
|
41095
41107
|
color: "primaryHighlight",
|
|
@@ -41102,7 +41114,7 @@ function t8(t, e, n, r, o, i) {
|
|
|
41102
41114
|
])) : b("", !0)
|
|
41103
41115
|
]);
|
|
41104
41116
|
}
|
|
41105
|
-
const S8 = /* @__PURE__ */ oe(
|
|
41117
|
+
const S8 = /* @__PURE__ */ oe(W2, [["render", t8]]);
|
|
41106
41118
|
export {
|
|
41107
41119
|
l8 as AddTournamentPageOne,
|
|
41108
41120
|
c8 as AddTournamentPageTwo,
|