1var ee=Object.defineProperty;var te=(l,r,t)=>r in l?ee(l,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[r]=t;var x=(l,r,t)=>te(l,typeof r!="symbol"?r+"":r,t);import{I as Y,N as P,S as D,J as v,V as H,K as se,L as N,M as S,U as G,O as Q,P as q,d as w,o as n,c as i,a as e,t as s,g as R,w as I,e as E,u as y,Q as J,p as m,r as L,T as re,A as j,f as _,W as ae,X as ne,Y as oe,Z as le,F as T,k as F,b as C,i as O,j as X,_ as V,$ as k,a0 as ie,a1 as de,a2 as ce,a3 as ue,B as fe,h as pe,a4 as me,a5 as M,v as he}from"./index-BRlEgfCl.js";import{G as ye}from"./PhArrowLeft.vue-DzABxcBw.js";import{_ as $e}from"./Layout.vue_vue_type_script_setup_true_lang-Dmg5kEs8.js";import{a as _e}from"./apiWebRefereeMyDetail-BskJYgHu.js";import{u as U}from"./formatters-CegVA5fI.js";import{u as ve,_ as we}from"./LocaleSwitcher.vue_vue_type_script_setup_true_lang-BYWN_9xX.js";import{u as ge}from"./useMatch-CqqRs247.js";import{u as be}from"./formatters-zQhhss-2.js";import"./Logo.vue_vue_type_script_setup_true_lang-BwpF6QV6.js";import"./isEmpty-CUg_v-LH.js";import"./dateTime-HpcSVMQW.js";const Z={id:{type:new P},day:{type:new D},label:{type:new D},time:{type:new D},matchNumber:{type:new D},placeId:{type:new P},walkOver:{type:new D},matchLength:{type:new D},paymentCzk:{type:new v},paymentEur:{type:new v},expectedPaymentCzk:{type:new v},expectedPaymentEur:{type:new v},secondRefereeFullName:{type:new D},homeTeamId:{type:new P},awayTeamId:{type:new P}};class A extends Y{constructor(){super(...arguments);x(this,"$fields",Z);x(this,"$validations",null)}get id(){return this.$get("id")}set id(t){this.$set("id",t)}get day(){return this.$get("day")}set day(t){this.$set("day",t)}get label(){return this.$get("label")}set label(t){this.$set("label",t)}get time(){return this.$get("time")}set time(t){this.$set("time",t)}get matchNumber(){return this.$get("matchNumber")}set matchNumber(t){this.$set("matchNumber",t)}get placeId(){return this.$get("placeId")}set placeId(t){this.$set("placeId",t)}get walkOver(){return this.$get("walkOver")}set walkOver(t){this.$set("walkOver",t)}get matchLength(){return this.$get("matchLength")}set matchLength(t){this.$set("matchLength",t)}get paymentCzk(){return this.$get("paymentCzk")}set paymentCzk(t){this.$set("paymentCzk",t)}get paymentEur(){return this.$get("paymentEur")}set paymentEur(t){this.$set("paymentEur",t)}get expectedPaymentCzk(){return this.$get("expectedPaymentCzk")}set expectedPaymentCzk(t){this.$set("expectedPaymentCzk",t)}get expectedPaymentEur(){return this.$get("expectedPaymentEur")}set expectedPaymentEur(t){this.$set("expectedPaymentEur",t)}get secondRefereeFullName(){return this.$get("secondRefereeFullName")}set secondRefereeFullName(t){this.$set("secondRefereeFullName",t)}get homeTeamId(){return this.$get("homeTeamId")}set homeTeamId(t){this.$set("homeTeamId",t)}get awayTeamId(){return this.$get("awayTeamId")}set awayTeamId(t){this.$set("awayTeamId",t)}}x(A,"$fields",Z),x(A,"$validations",null);class xe extends A{}const Re={name:"api.v1.web.referees.matches",method:"GET",path:"/api/v1/web/referees/{id}/matches",inputType:new H,outputTypes:{200:new se(new N(xe))},errorTypes:{401:new N(S),403:new N(S)},paramsType:new G,axios:Q},ke=q(Re),K={mealExpenses:{type:new v},travelExpenses:{type:new v},otherExpenses:{type:new v},otherExpensesNote:{type:new D},finishedMatchesReward:{type:new v},finishedMatchesWalkoverReward:{type:new v},computedReward:{type:new v}};class B extends Y{constructor(){super(...arguments);x(this,"$fields",K);x(this,"$validations",null)}get mealExpenses(){return this.$get("mealExpenses")}set mealExpenses(t){this.$set("mealExpenses",t)}get travelExpenses(){return this.$get("travelExpenses")}set travelExpenses(t){this.$set("travelExpenses",t)}get otherExpenses(){return this.$get("otherExpenses")}set otherExpenses(t){this.$set("otherExpenses",t)}get otherExpensesNote(){return this.$get("otherExpensesNote")}set otherExpensesNote(t){this.$set("otherExpensesNote",t)}get finishedMatchesReward(){return this.$get("finishedMatchesReward")}set finishedMatchesReward(t){this.$set("finishedMatchesReward",t)}get finishedMatchesWalkoverReward(){return this.$get("finishedMatchesWalkoverReward")}set finishedMatchesWalkoverReward(t){this.$set("finishedMatchesWalkoverReward",t)}
1get computedReward(){return this.$get("computedReward")}set computedReward(t){this.$set("computedReward",t)}}x(B,"$fields",K),x(B,"$validations",null);class De extends B{}const Ee={name:"api.web.referee.rewards-info",method:"GET",path:"/api/v1/web/referees/{id}/rewards",inputType:new H,outputTypes:{200:new N(De)},errorTypes:{401:new N(S),403:new N(S)},paramsType:new G,axios:Q},Ce=q(Ee),Te={class:"card p-6 pb-4 flex flex-col gap-2"},Ne={class:"font-bebas_neue text-2xl lg:text-3xl"},Ie={key:0,class:"flex-grow flex-col leading-7"},Pe={class:"flex justify-between"},Me={key:1},je={class:"flex justify-between"},Se={class:"flex justify-between"},Fe={key:0,class:"flex justify-between"},Le={key:1,class:"flex justify-between"},Ae={key:1},Be=w({__name:"RefereeCardAccommodation",props:{referee:{}},setup(l){const{dateFormat:r}=U();return(t,u)=>{const a=L("RouterLink");return n(),i("div",Te,[e("span",Ne,s(t.$t("refereeDetail.cards.accommodation.title")),1),t.referee.wantsAccommodation?(n(),i("div",Ie,[e("div",Pe,[e("div",null,s(t.$t("refereeDetail.cards.accommodation.hotel"))+": ",1),e("div",null,[t.referee.accommodationPlaceId?(n(),R(a,{key:0,to:{name:y(J).placeDetail,params:{id:t.referee.accommodationPlaceId}},class:"link"},{default:I(()=>{var c;return[E(s((c=t.referee.accommodationPlace)==null?void 0:c.nameByLocale(t.$i18n.locale)),1)]}),_:1},8,["to"])):(n(),i("span",Me,"â"))])]),e("div",je,[e("div",null,s(t.$t("refereeDetail.cards.accommodation.date"))+": ",1),e("div",null,s(y(r)(t.referee.arrivalDate))+" â "+s(y(r)(t.referee.departureDate)),1)]),e("div",Se,[e("div",null,s(t.$t("refereeDetail.cards.accommodation.nights"))+": ",1),e("div",null,s(t.referee.nights),1)]),t.referee.wantsSingleRoom?(n(),i("div",Fe,[e("div",null,s(t.$t("refereeDetail.cards.accommodation.wantsSingleRoom"))+": ",1),e("div",null,s(t.$t("form.inputs.boolean.true")),1)])):m("",!0),t.referee.accompanimentPersons&&t.referee.accompanimentPersons>0?(n(),i("div",Le,[e("div",null,s(t.$t("refereeDetail.cards.accommodation.accompanimentPersons"))+": ",1),e("div",null,s(t.referee.accompanimentPersons),1)])):m("",!0)])):(n(),i("div",Ae,s(t.$t("refereeDetail.cards.accommodation.notRequested")),1))])}}}),ze=()=>{const l=re(),{parseException:r}=ve(),t=j([]),u=async()=>{try{t.value=await ne()}catch(c){await l.toast(r(c).message,{type:oe.error})}},a=_(()=>ae(t.value,"id"));return{ensureReferees:u,referees:t,refereesById:a}},We={class:"card p-6 pb-4 flex flex-col gap-2"},Oe={class:"font-bebas_neue text-2xl lg:text-3xl"},Ue={class:"flex-grow flex-col leading-7"},Ve={class:"flex justify-between"},Ze={class:"flex justify-between"},Ke={key:0,class:"flex justify-between"},Ye={class:"flex justify-between"},He=w({__name:"RefereeCardAdditionalInfo",props:{referee:{}},setup(l){const r=l,{ensureReferees:t,refereesById:u}=ze();le(async()=>{await t()});const a=_(()=>u.value[r.referee.colleagueRefereeId]);return(c,h)=>{var o;return n(),i("div",We,[e("span",Oe,s(c.$t("refereeDetail.cards.additionalInfo.title")),1),e("div",Ue,[e("div",Ve,[e("div",null,s(c.$t("refereeDetail.cards.additionalInfo.colleagueReferee"))+": ",1),e("div",null,s(((o=a.value)==null?void 0:o.fullName)||"â"),1)]),e("div",Ze,[e("div",null,s(c.$t("refereeDetail.cards.additionalInfo.highestCompetition"))+": ",1),e("div",null,s(c.referee.highestCompetition),1)]),c.referee.refereeProjectId?(n(),i("div",Ke,[e("div",null,s(c.$t("refereeDetail.cards.additionalInfo.refereeProject"))+": ",1),e("div",null,s(c.referee.refereeProjectName),1)])):m("",!0),e("div",Ye,[e("div",null,s(c.$t("refereeDetail.cards.additionalInfo.tshirtSize"))+": ",1),e("div",null,s(c.referee.tshirtSize.code||"â"),1)])])])}}}),Ge={class:"card p-6 pb-4 flex flex-col gap-2"},Qe={class:"font-bebas_neue text-2xl lg:text-3xl"},qe={class:"flex-grow flex-col leading-7"},Je={class:"flex justify-between"},Xe={class:"flex justify-between"},et={class:"flex justify-between"},tt=w({__name:"RefereeCardContact",props:{referee:{}},setup(l){return(r,t)=>(n(),i("div",Ge,[e("span",Qe,s(r.$t("refereeDetail.cards.contact.title")),1),e("div",qe,[e("div",Je,[e("div",null,s(r.$t("refereeDetail.cards.contact.email"))+": ",1),e("div",null,s(r.referee.email||"â"),1)]),e("div",Xe,[e("div",null,s(r.$t("refereeDetail.cards.contact.phone"))+": ",1),e("div",null,s(r.referee.phone||"â"),1)]),e("div",et,[e("div",null,s(r.$t("refereeDetail.cards.contact.address"))+": ",1),e("div",null,s(r.referee.address||"â"),1)])])]))}}),st={class:"card p-6 pb-4 flex flex-col gap-2"},rt={class:"font-bebas_neue text-2xl lg:text-3xl"},at={class:"flex-grow flex-col leading-7"},nt={class:"w-full"},ot={class:"text-nowrap align-top"},lt={class:"text-right"},it={key:0,innerHTML:", "},dt=w({__name:"RefereeCardHalls",props:{referee:{}},setup(l){return(r,t)=>{const u=L("RouterLink");return n(),i("div",st,[e("span",rt,s(r.$t("refereeDetail.cards.halls.title")),1),e("div",at,[e("table",nt,[(n(!0),i(T,null,F(r.referee.refereeInHallsByDays.entries(),([a,c])=>(n(),i("tr",{key:`day-${a}`},[e("td",ot,s(r.$t("refereeDetail.cards.halls.day",{day:a})),1),e("td",lt,[(n(!0),i(T,null,F(c.entries(),([h,o])=>{var d;return n(),i(T,{key:`refereeInHall-${h}`},[C(u,{to:{name:y(J).placeDetail,params:{id:(d=o.place)==null?void 0:d.id}},class:"link"},{default:I(()=>[E(s(o.place.nameByLocale(r.$i18n.locale)),1)]),_:2},1032,["to"]),h!==c.length-1?(n(),i("span",it)):m("",!0)],64)}),128))])]))),128))])])])}}}),ct={class:"card p-6 pb-4 flex flex-col gap-2"},ut={class:"font-bebas_neue text-2xl lg:text-3xl"},ft={key:0,class:"text-tertiary"},pt={key:1,class:"flex-grow flex-col leading-7 overflow-x-auto"},mt={class:"w-full text-sm"},ht={class:"text-left text-tertiary border-b border-gray-200"},yt={class:"py-2 pr-2 font-normal"},$t={class:"py-2 pr-2 font-normal"},_t={class:"py-2 pr-2 font-normal"},vt={class:"py-2 pr-2 font-normal"},wt={class:"py-2 pr-2 font-normal"},gt={class:"py-2 pr-2 font-normal"},bt={class:"py-2 pr-2 font-normal"},xt={class:"py-2 pr-2 text-nowrap"},Rt={class:"py-2 pr-2 text-nowrap"},kt={class:"py-2 pr-2 text-nowrap"},Dt={class:"py-2 pr-2 text-nowrap"},Et={class:"py-2 pr-2"},Ct={key:0,class:"text-tertiary text-xs"},Tt={class:"py-2 pr-2"},Nt={class:"py-2 pr-2"},It=w({__name:"RefereeCardMatches",props:{matches:{}},setup(l){const r=O(),{getMatchFormattedDate:t}=ge(),{placesById:u,teamsById:a}=X(),c=o=>{const d=u[o];return(d==null?void 0:d.nameByLocale(r.locale.value))??"-"},h=o=>{const d=a[o];return(d==null?void 0:d.teamName)??"-"};return(o,d)=>(n(),i("div",ct,[e("span",ut,s(o.$t("refereeDetail.cards.matches.title")),1),o.matches.length===0?(n(),i("div",ft,s(o.$t("refereeDetail.cards.matches.noMatches")),1)):(n(),i("div",pt,[e("table",mt,[e("thead",null,[e("tr",ht,[e("th",yt,s(o.$t("refereeDetail.cards.matches.columns.day")),1),e("th",$t,s(o.$t("refereeDetail.cards.matches.columns.time")),1),e("th",_t,s(o.$t("refereeDetail.cards.matches.columns.hall")),1),e("th",vt,s(o.$t("refereeDetail.cards.matches.columns.matchNumber")),1),e("th",wt,s(o.$t("refereeDetail.cards.matches.columns.homeTeam")),1),e("th",gt,s(o.$t("refereeDetail.cards.matches.columns.awayTeam")),1),e("th",bt,s(o.$t("refereeDetail.cards.matches.columns.secondReferee")),1)])]),e("tbody",null,[(n(!0),i(T,null,F(o.matches,f=>(n(),i("tr",{key:f.id,class:"border-b border-gray-100"},[e("td",xt,s(y(t)(Number(f.day))??"â"),1),e("td",Rt,s(f.time),1),e("td",kt,s(c(f.placeId)),1),e("td",Dt,s(f.matchNumber),1),e("td",Et,[E(s(h(f.homeTeamId))+" ",1),f.walkOver?(n(),i("span",Ct," ("+s(o.$t("refereeDetail.cards.matches.walkover"))+") ",1)):m("",!0)]),e("td",Tt,s(h(f.awayTeamId)),1),e("td",Nt,s(f.secondRefereeFullName),1)]))),128))])])]))]))}}),Pt={class:"card p-6 pb-4 flex flex-col gap-2"},Mt={class:"font-bebas_neue text-2xl lg:text-3xl"},jt={class:"flex-grow flex-col leading-7"},St={class:"flex flex-wrap justify-between gap-x-4"},Ft={class:"ml-auto text-right"},Lt={key:0,class:"flex flex-wrap justify-between gap-x-4"},At={class:"ml-auto text-right"},Bt={class:"flex flex-wrap justify-between gap-x-4"},zt={class:"ml-auto text-right"},Wt={class:"flex flex-wrap justify-between gap-x-4"},Ot={class:"ml-auto text-right"},Ut={class:"flex flex-wrap justify-between gap-x-4"},Vt={class:"ml-auto text-right"},Zt={key:0,class:"flex flex-wrap justify-between gap-x-4"},Kt={class:"ml-auto text-right"},Yt={key:0},Ht=w({__name:"RefereeCardPaymentDetails",props:{referee:{}},setup(l){const r=l,{t,locale:u}=O(),a=X(),c=_(()=>r.referee.paymentType===V.CZK_PAYMENT),h=_(()=>r.referee.paymentType===V.FOREIGN_EUR_PAYMENT),o=_(()=>{if(!r.referee.accountNumber)return"â";const p=r.referee.accountPrefix?`${r.referee.accountPrefix}-`:"",$=r.referee.bankCode?`/${r.referee.bankCode}`:"";return`${p}${r.referee.accountNumber}${$}`}),d=_(()=>c.value?t("refereeDetail.cards.paymentDetails.paymentTypeOptions.czk"):h.value?t("refereeDetail.cards.paymentDetails.paymentTypeOptions.eur"):null),f=_(()=>{if(!h.value)return null;const p=[];r.referee.accountStreet&&p.push(r.referee.accountStreet);
1const $=[r.referee.accountZip,r.referee.accountCity].filter(Boolean).join(" ");if($&&p.push($),r.referee.accountCountryId){const g=a.countries.find(b=>b.id===r.referee.accountCountryId);g&&p.push(g.nameByLocale(u.value))}return p.length>0?p:null});return(p,$)=>(n(),i("div",Pt,[e("span",Mt,s(p.$t("refereeDetail.cards.paymentDetails.title")),1),e("div",jt,[e("div",St,[e("div",null,s(p.$t("refereeDetail.cards.paymentDetails.paymentType"))+": ",1),e("div",Ft,s(d.value||"â"),1)]),c.value?(n(),i("div",Lt,[e("div",null,s(p.$t("refereeDetail.cards.paymentDetails.accountNumber"))+":",1),e("div",At,s(o.value),1)])):m("",!0),h.value?(n(),i(T,{key:1},[e("div",Bt,[e("div",null,s(p.$t("refereeDetail.cards.paymentDetails.iban"))+":",1),e("div",zt,s(p.referee.iban||"â"),1)]),e("div",Wt,[e("div",null,s(p.$t("refereeDetail.cards.paymentDetails.bicOrSwiftCode"))+":",1),e("div",Ot,s(p.referee.bicOrSwiftCode||"â"),1)]),e("div",Ut,[e("div",null,s(p.$t("refereeDetail.cards.paymentDetails.accountHoldersName"))+":",1),e("div",Vt,s(p.referee.accountHoldersName||"â"),1)]),f.value?(n(),i("div",Zt,[e("div",null,s(p.$t("refereeDetail.cards.paymentDetails.address"))+":",1),e("div",Kt,[(n(!0),i(T,null,F(f.value,(g,b)=>(n(),i(T,{key:b},[E(s(g),1),b<f.value.length-1?(n(),i("br",Yt)):m("",!0)],64))),128))])])):m("",!0)],64)):m("",!0)])]))}}),Gt=()=>{const l=O();return{refereeRegistrationStateFormat:t=>{switch(t){case k.new:return l.t(`refereeDetail.state.${k.new}`);case k.approved:return l.t(`refereeDetail.state.${k.approved}`);case k.declined:return l.t(`refereeDetail.state.${k.declined}`)}}}},Qt=w({__name:"RefereeState",props:{referee:{}},setup(l){const r=l,{refereeRegistrationStateFormat:t}=Gt(),u=_(()=>({text:t(r.referee.registrationState),color:(()=>{switch(r.referee.registrationState){case k.approved:return"text-green-500";case k.declined:return"text-red-500";case k.new:return"text-orange-500"}})()}));return(a,c)=>(n(),i("div",{class:ie([u.value.color])},s(u.value.text),3))}}),qt={class:"card p-6 pb-4 flex flex-col gap-2"},Jt={class:"font-bebas_neue text-2xl lg:text-3xl"},Xt={class:"flex-grow flex-col leading-7"},es={class:"flex justify-between"},ts={class:"flex justify-between"},ss={class:"flex justify-between"},rs={class:"flex justify-between"},as=w({__name:"RefereeCardRegistration",props:{referee:{}},setup(l){const{canRefereeBeUpdated:r,refereeRegistrationCreateTill:t,refereeRegistrationUpdateTill:u}=de(),a=_(()=>u.value??t.value),{dateFormat:c}=U(),{refereeRoleFormat:h}=be();return(o,d)=>{const f=L("RouterLink");return n(),i("div",qt,[e("span",Jt,s(o.$t("refereeDetail.cards.registration.title")),1),e("div",Xt,[e("div",es,[e("div",null,s(o.$t("refereeDetail.cards.registration.registeredAt"))+": ",1),e("div",null,s(y(c)(o.referee.createdAt)),1)]),e("div",ts,[e("div",null,s(o.$t("refereeDetail.cards.registration.canBeUpdatedTill"))+": ",1),e("div",null,s(y(c)(a.value)),1)]),e("div",ss,[e("div",null,s(o.$t("refereeRegistration.fields.refereeRole"))+": ",1),e("div",null,s(y(h)(o.referee)),1)]),e("div",rs,[e("div",null,s(o.$t("clubRegistration.fields.registrationState"))+": ",1),C(Qt,{referee:o.referee},null,8,["referee"])])]),e("div",null,[y(r)?(n(),R(f,{key:0,class:"btn-primary px-2 xl:px-4",to:{name:y(ce).refereeRegistrationUpdate,params:{id:o.referee.id}}},{default:I(()=>[E(s(o.$t("refereeDetail.cards.registration.actions.update")),1)]),_:1},8,["to"])):m("",!0)])])}}});var z=(l=>(l.CZK="CZK",l.EUR="EUR",l))(z||{}
1),W=(l=>(l.CZK_PAYMENT="czk_payment",l.FOREIGN_EUR_PAYMENT="foreign_eur_payment",l))(W||{});function ns(l){return l===W.CZK_PAYMENT?z.CZK:l===W.FOREIGN_EUR_PAYMENT?z.EUR:""}const os={class:"card p-6 pb-4 flex flex-col gap-2"},ls={class:"font-bebas_neue text-2xl lg:text-3xl"},is={class:"flex-grow flex-col leading-7"},ds={key:0,class:"flex justify-between"},cs={key:1,class:"flex justify-between"},us={key:2,class:"flex justify-between"},fs={key:3,class:"flex justify-between"},ps={key:4,class:"flex justify-between"},ms={class:"flex items-center gap-1"},hs={class:"flex justify-between font-bold border-t mt-2 pt-2"},ys=w({__name:"RefereeCardRewards",props:{referee:{},rewards:{}},setup(l){const r=l,{currencyFormat:t}=U(),u=a=>a==null?"â":t(a,ns(r.referee.paymentType),{minimumFractionDigits:2,maximumFractionDigits:2});return(a,c)=>{var h,o,d,f,p,$,g;return n(),i("div",os,[e("span",ls,s(a.$t("refereeDetail.cards.rewards.title")),1),e("div",is,[(h=a.rewards)!=null&&h.finishedMatchesReward?(n(),i("div",ds,[e("div",null,s(a.$t("refereeDetail.cards.rewards.finishedMatchesReward"))+": ",1),e("div",null,s(u(a.rewards.finishedMatchesReward)),1)])):m("",!0),(o=a.rewards)!=null&&o.finishedMatchesWalkoverReward?(n(),i("div",cs,[e("div",null,s(a.$t("refereeDetail.cards.rewards.finishedMatchesWalkoverReward"))+": ",1),e("div",null,s(u(a.rewards.finishedMatchesWalkoverReward)),1)])):m("",!0),(d=a.rewards)!=null&&d.mealExpenses?(n(),i("div",us,[e("div",null,s(a.$t("refereeDetail.cards.rewards.mealExpenses"))+": ",1),e("div",null,s(u(a.rewards.mealExpenses)),1)])):m("",!0),(f=a.rewards)!=null&&f.travelExpenses?(n(),i("div",fs,[e("div",null,s(a.$t("refereeDetail.cards.rewards.travelExpenses"))+": ",1),e("div",null,s(u(a.rewards.travelExpenses)),1)])):m("",!0),(p=a.rewards)!=null&&p.otherExpenses?(n(),i("div",ps,[e("div",null,s(a.$t("refereeDetail.cards.rewards.otherExpenses"))+": ",1),e("div",ms,[($=a.rewards)!=null&&$.otherExpensesNote?(n(),R(we,{key:0,class:"mr-2"},{content:I(()=>{var b;return[E(s((b=a.rewards)==null?void 0:b.otherExpensesNote),1)]}),_:1})):m("",!0),E(" "+s(u(a.rewards.otherExpenses)),1)])])):m("",!0),e("div",hs,[e("div",null,s(a.$t("refereeDetail.cards.rewards.total"))+": ",1),e("div",null,s(u((g=a.rewards)==null?void 0:g.computedReward)),1)])])])}}}),$s={key:0,class:"container mx-auto px-4 py-1.5"},_s=["href","onClick"],vs={class:"font-bebas_neue text-4xl lg:text-5xl mb-1"},ws={class:"text-tertiary mb-3 xl:mb-6"},gs={class:"grid grid-cols-1 lg:grid-cols-3 gap-6 xl:gap-x-12 xl:gap-y-10 mb-10"},bs=!0,Fs=w({__name:"DetailPage",setup(l){const r=he(),{getEnumConfiguration:t}=ue(),u=_(()=>{var d;return parseInt((d=r.currentRoute.value.params)==null?void 0:d.refereeId)}),a=j(),c=j([]),h=j(),o=_(()=>{var d;return(d=t(M.personalZoneRefereeRewardsEnabled))==null?void 0:d.parsedValue});return fe(u,async d=>{if(d){a.value=await _e({params:{id:String(d)}});try{c.value=await ke({params:{id:String(d)}})}catch(f){console.error("Failed to fetch referee matches",f),c.value=[]}if(o.value)try{h.value=await Ce({params:{id:String(d)}})}catch(f){console.error("Failed to fetch referee rewards",f),h.value=void 0}}},{immediate:!0}),(d,f)=>{const p=L("router-link");return n(),R($e,null,{default:I(()=>{var $;return[a.value?(n(),i("div",$s,[C(p,{to:{name:y(me).dashboard},custom:"",replace:""},{default:I(({href:g,navigate:b})=>[e("a",{href:g,class:"link inline-flex items-center gap-2 mb-3",onClick:pe(xs=>b(),["prevent"])},[C(y(ye)),E(" "+s(d.$t("refereeDetail.back")),1)],8,_s)]),_:1},8,["to"]),e("h1",vs,s(d.$t("refereeDetail.title",{name:a.value.firstNameAndLastName})),1),e("div",ws,s(d.$t("refereeDetail.subTitle",{sex:d.$t(`refereeDetail.sex.${a.value.sex}`),birthYear:a.value.birthYear})),1),e("div",gs,[C(as,{referee:a.value},null,8,["referee"]),C(tt,{referee:a.value},null,8,["referee"]),C(He,{referee:a.value},null,8,["referee"]),y(t)(y(M).clubZoneShowRefereeAccommodation)?(n(),R(Be,{key:0,referee:a.value},null,8,["referee"])):m("",!0),y(t)(y(M).clubZoneShowRefereeInHalls)?(n(),R(dt,{key:1,referee:a.value},null,8,["referee"])):m("",!0),(($=y(t)(y(M).refereeBankAccountEnabled))==null?void 0:$.parsedValue)??!1?(n(),R(Ht,{key:2,referee:a.value}
1,null,8,["referee"])):m("",!0),bs?(n(),R(It,{key:3,matches:c.value,class:"lg:col-span-2"},null,8,["matches"])):m("",!0),o.value?(n(),R(ys,{key:4,referee:a.value,rewards:h.value,class:"lg:col-span-1 self-start"},null,8,["referee","rewards"])):m("",!0)])])):m("",!0)]}),_:1})}}});export{Fs as default};
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.