1import { _ as __unplugin_components_2, a as __unplugin_components_3, b as __unplugin_components_4 } from "./race_time-D3GvaKL1.js"; 2import { d as defineComponent, B as useI18n, C as useRouter, c as computed, k as createBlock, f as openBlock, q as withCtx, g as createBaseVNode, s as renderSlot, E as createTextVNode, y as toDisplayString, u as unref, m as createVNode, e as createElementBlock, F as Fragment } from "./index-Ce8AJZqk.js"; 3import { E as ElBreadcrumb, a as ElBreadcrumbItem } from "./breadcrumb-item-Dr49TyBa.js"; 4import PageDetailLayout from "./PageDetailLayout-Bj0e18i1.js"; 5import { a as COMPETITION_SEASON_BANNER_IMAGE } from "./competitionSeason-CwXkjx2V.js"; 6const _hoisted_1 = { class: "text-#fff" }; 7const _hoisted_2 = { class: "text-#fff" }; 8const _hoisted_3 = { class: "competition-season-banner flex flex-col mt-34" }; 9const _hoisted_4 = { class: "inline-flex items-center gap-8 w-fit px-16 py-6 rounded-full border border-solid border-#01f3ff80 text-14 text-#01F3FF bg-#01f3ff1a leading-20 mb-16" }; 10const _hoisted_5 = { class: "text-24px font-600 text-#fff leading-33 mb-12" }; 11const _hoisted_6 = { class: "text-#6AF8FF text-20 font-400" }; 12const _hoisted_7 = { class: "competition-season-banner__meta flex items-center gap-40 flex-wrap mt-30" }; 13const _hoisted_8 = { class: "flex items-center gap-8 text-14 text-#fff leading-20" }; 14const _hoisted_9 = { class: "opacity-80" }; 15const _hoisted_10 = { class: "text-16" }; 16const _hoisted_11 = { class: "flex items-center gap-8 text-#fff leading-20" }; 17const _hoisted_12 = { class: "text-14 opacity-80" }; 18const _hoisted_13 = { class: "text-14" }; 19const _hoisted_14 = { class: "text-24 font-600" }; 20const _hoisted_15 = { class: "flex items-center gap-8 text-14 text-#fff leading-20" }; 21const _hoisted_16 = { class: "opacity-80" }; 22const _hoisted_17 = { class: "text-16" }; 23const _hoisted_18 = { class: "box-border relative z-1 mx-auto px-44 py-30 border border-solid border-#FFFFFF rounded-8" }; 24const _sfc_main = /* @__PURE__ */ defineComponent({ 25 __name: "CompetitionSeasonLayout", 26 props: { 27 loading: { type: Boolean, default: false }, 28 pageMode: { default: "register" }, 29 headerInfo: { default: () => ({}) } 30 }, 31 setup(__props) { 32 const props = __props; 33 const { t } = useI18n(); 34 const router = useRouter(); 35 const displayCompetitionTime = computed(() => { 36 var _a; 37 const raceTime = (_a = props.headerInfo) == null ? void 0 : _a.race_time; 38 if (raceTime !== void 0 && raceTime !== null && raceTime !== "") { 39 return String(raceTime); 40 } 41 return t("registration.competitionTimeValue"); 42 }); 43 const displayPrizeAmount = computed(() => { 44 var _a; 45 const prizeAmount = (_a = props.headerInfo) == null ? void 0 : _a.prize_amount; 46 if (prizeAmount !== void 0 && prizeAmount !== null && prizeAmount !== "" && prizeAmount !== 0) { 47 return String(prizeAmount); 48 } 49 return t("registration.prizePoolAmount"); 50 }); 51 const displayOrganizer = computed(() => { 52 var _a; 53 return ((_a = props.headerInfo) == null ? void 0 : _a.org) || t("registration.organizerValue"); 54 }); 55 return (_ctx, _cache) => { 56 const _component_el_breadcrumb_item = ElBreadcrumbItem; 57 const _component_el_breadcrumb = ElBreadcrumb; 58 const _component_icon_svg_race_time = __unplugin_components_2; 59 const _component_icon_svg_prize_amount = __unplugin_components_3; 60 const _component_icon_svg_org = __unplugin_components_4; 61 return openBlock(), createBlock(PageDetailLayout, { 62 loading: __props.loading, 63 "banner-image": unref(COMPETITION_SEASON_BANNER_IMAGE), 64 "content-class": "" 65 }, { 66 breadcrumb: withCtx(() => [ 67 createVNode(_component_el_breadcrumb, { 68 separator: "/", 69 class: "mt-34" 70 }, { 71 default: withCtx(() => [ 72 createVNode(_component_el_breadcrumb_item, null, { 73 default: withCtx(() => [ 74 createBaseVNode("span", { 75 class: "cursor-pointer text-#fff", 76 onClick: _cache[0] || (_cache[0] = ($event) => unref(router).push("/Home")) 77 }
77, toDisplayString(unref(t)("common.home")), 1) 78 ]), 79 _: 1 80 }), 81 createVNode(_component_el_breadcrumb_item, null, { 82 default: withCtx(() => [ 83 createBaseVNode("span", { 84 class: "cursor-pointer text-#fff", 85 onClick: _cache[1] || (_cache[1] = ($event) => unref(router).push("/events")) 86 }, toDisplayString(unref(t)("common.events")), 1) 87 ]), 88 _: 1 89 }), 90 __props.pageMode === "register" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 91 createVNode(_component_el_breadcrumb_item, null, { 92 default: withCtx(() => [ 93 createBaseVNode("span", { 94 class: "cursor-pointer text-#fff", 95 onClick: _cache[2] || (_cache[2] = ($event) => unref(router).push({ path: "/events", query: { tab: "competition" } })) 96 }, toDisplayString(unref(t)("registration.breadcrumbCompetition")), 1) 97 ]), 98 _: 1 99 }), 100 createVNode(_component_el_breadcrumb_item, null, { 101 default: withCtx(() => [ 102 createBaseVNode("span", _hoisted_1, toDisplayString(unref(t)("registration.seasonName")), 1) 103 ]), 104 _: 1 105 }) 106 ], 64)) : (openBlock(), createBlock(_component_el_breadcrumb_item, { key: 1 }, { 107 default: withCtx(() => [ 108 createBaseVNode("span", _hoisted_2, toDisplayString(unref(t)("myEvent.pageTitle")), 1) 109 ]), 110 _: 1 111 })) 112 ]), 113 _: 1 114 }) 115 ]), 116 banner: withCtx(() => [ 117 createBaseVNode("div", _hoisted_3, [ 118 createBaseVNode("div", _hoisted_4, [ 119 _cache[3] || (_cache[3] = createBaseVNode("span", { class: "w-6 h-6 rounded-full bg-#01F3FF flex-shrink-0" }, null, -1)), 120 createTextVNode(" " + toDisplayString(unref(t)("registration.seasonBadge")), 1) 121 ]), 122 createBaseVNode("div", _hoisted_5, [ 123 createTextVNode(toDisplayString(unref(t)("registration.competitionTitle")) + " ", 1), 124 createBaseVNode("span", _hoisted_6, "ã" + toDisplayString(unref(t)("registration.seasonName")) + "ã", 1) 125 ]), 126 createBaseVNode("div", _hoisted_7, [ 127 createBaseVNode("div", _hoisted_8, [ 128 createVNode(_component_icon_svg_race_time), 129 createBaseVNode("span", _hoisted_9, toDisplayString(unref(t)("registration.competitionTimeLabel")), 1), 130 createBaseVNode("span", _hoisted_10, toDisplayString(unref(displayCompetitionTime)), 1) 131 ]), 132 createBaseVNode("div", _hoisted_11, [ 133 createVNode(_component_icon_svg_prize_amount), 134 createBaseVNode("span", _hoisted_12, toDisplayString(unref(t)("registration.prizePoolLabel")), 1), 135 createBaseVNode("span", _hoisted_13, toDisplayString(unref(t)("registration.prizePoolUnit")), 1), 136 createBaseVNode("span", _hoisted_14, toDisplayString(unref(displayPrizeAmount)), 1) 137 ]), 138 createBaseVNode("div", _hoisted_15, [ 139 createVNode(_component_icon_svg_org), 140 createBaseVNode("span", _hoisted_16, toDisplayString(unref(t)("registration.organizerLabel")), 1), 141 createBaseVNode("span", _hoisted_17, toDisplayString(unref(displayOrganizer)), 1) 142 ]) 143 ]) 144 ]) 145 ]), 146 default: withCtx(() => [ 147 createBaseVNode("div", _hoisted_18, [ 148 renderSlot(_ctx.$slots, "default") 149 ]) 150 ]), 151 _: 3 152 }, 8, ["loading", "banner-image"]); 153 }; 154 } 155}); 156export { 157 _sfc_main as _ 158}; 159//# sourceMappingURL=CompetitionSeasonLayout.vue_vue_type_script_setup_true_lang-c76dkHMa.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.