1import{s as o,M as h}from"./index-DazxfFOG.js";import{d as j,E as i,f as C,bm as N,b as B,j as f,l as e,q as a,c as b,F as I,y as S,H as c,aa as k,p as y,A as u,R as v,aO as R,aP as w,a6 as D,k as $,aK as A}from"./vendor-vuetify-U1i-P9xV.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="37859e05-7e9b-4c35-aca5-06ab554c8d53",t._sentryDebugIdIdentifier="sentry-dbid-37859e05-7e9b-4c35-aca5-06ab554c8d53")}catch{}const V={class:""},Y={class:""},G={class:"d-flex align-center justify-start"},P={class:""},z={class:""},F={class:""},W={class:"total-row"},Z={class:"font-weight-bold text-primary"},E=20,Et=j({__name:"ActiveContractsTable",props:{tableData:{},currency:{},salaryMode:{},isReport:{type:Boolean}},setup(t){const r=t,d=v(()=>Object.values(r.tableData).reduce((g,s)=>g+(s.base.annual[r.salaryMode][r.currency]||0),0));return(g,s)=>(i(),C(N,{class:B({"base-table":!t.isReport,"base-pdf-table":t.isReport})},{default:f(()=>[e("thead",null,[e("tr",null,[s[0]||(s[0]=e("th",null,"Season",-1)),s[1]||(s[1]=e("th",null,"Team",-1)),e("th",null,a(t.salaryMode==="gross"?"Gross":"Net P/W"),1),e("th",null,a(t.salaryMode==="gross"?"Gross":"Net P/Y"),1),s[2]||(s[2]=e("th",null,"Age",-1))])]),e("tbody",null,[(i(!0),b(I,null,S(t.tableData,(l,n)=>(i(),b("tr",{key:n},[e("td",V,a(l.season),1),e("td",Y,[e("div",G,[c(k,{width:E,height:E,class:"mr-1",inline:"",src:l?.club?.image},null,8,["src"]),y(" "+a(l?.club?.name),1)])]),e("td",P,a(u(o).price(l.base.weekly[t.salaryMode][t.currency],{currency:t.currency})),1),e("td",z,a(u(o).price(l.base.annual[t.salaryMode][t.currency],{currency:t.currency})),1),e("td",F,a(l.age),1)]))),128)),e("tr",W,[s[3]||(s[3]=e("td",{class:"font-weight-bold"},"Total:",-1)),s[4]||(s[4]=e("td",null,null,-1)),s[5]||(s[5]=e("td",null,null,-1)),e("td",Z,a(u(o).price(d.value,{currency:t.currency})),1),s[6]||(s[6]=e("td",null,null,-1))])])]),_:1},8,["class"]))}}),L={class:""},q={class:""},H={class:"d-flex align-center justify-start"},K={class:""},J={class:"d-flex align-center justify-start"},Q={class:""},U={class:""},X={class:""},p={class:""},_={class:"total-row"},tt={class:"font-weight-bold text-primary"},et={class:"font-weight-bold text-primary"},M=20,Ot=j({__name:"ArchiveContractsTable",props:{tableData:{},currency:{},salaryMode:{},isReport:{type:Boolean}},setup(t){const r=t,d=v(()=>Object.values(r.tableData).reduce((s,l)=>s+(l.base.annual[r.salaryMode][r.currency]||0),0)),g=v(()=>Object.values(r.tableData).reduce((s,l)=>s+(l.base.adj[r.salaryMode][r.currency]||0),0));return(s,l)=>(i(),C(N,{class:B({"base-table":!t.isReport,"base-pdf-table":t.isReport})},{default:f(()=>[e("thead",null,[e("tr",null,[l[0]||(l[0]=e("th",null,"Season",-1)),l[1]||(l[1]=e("th",null,"Team",-1)),l[2]||(l[2]=e("th",null,"League",-1)),e("th",null,a((t.salaryMode==="gross"?"Gross":"Net")+" P/W"),1),e("th",null,a((t.salaryMode==="gross"?"Gross":"Net")+" P/Y"),1),e("th",null,a("Adj. "+(t.salaryMode==="gross"?"Gross":"Net")),1),l[3]||(l[3]=e("th",null,"Age",-1))])]),e("tbody",null,[(i(!0),b(I,null,S(t.tableData,(n,x)=>(i(),b("tr",{key:x},[e("td",L,a(n.season),1),e("td",q,[e("div",H,[c(k,{width:M,height:M,class:"mr-1",inline:"",src:n?.club?.image},null,8,["src"]),y(" "+a(n?.club?.name),1)])]),e("td",K,[e("div",J,[c(k,{width:M,height:M,class:"mr-1",inline:"",src:n?.league?.image},null,8,["src"]),y(" "+a(n?.league?.name),1)])]),e("td",Q,a(u(o).price(n.base.weekly[t.salaryMode][t.currency],{currency:t.currency})),1),e("td",U,a(u(o).price(n.base.annual[t.salaryMode][t.currency],{currency:t.currency})),1),e("td",X,a(u(o).price(n.base.adj[t.salaryMode][t.currency],{currency:t.currency})),1),e("td",p,a(n.age),1)]))),128)),e("tr",_,[l[4]||(l[4]=e("td",{class:"font-weight-bold"},"Total:",-1)),l[5]||(l[5]=e("td",null,null,-1)),l[6]||(l[6]=e("td",null,null,-1)),l[7]||(l[7]=e("td",null,null,-1)),e("td",tt,a(u(o).price(d.value,{currency:t.currency})),1),e("td",et,a(u(o).price(g.value,{currency:t.currency})),1),l[8]||(l[8]=e("td",null,null,-1))])])]),_:1},8,["class"]))}}),lt={class:"d-flex flex-column ga-4 flex-grow-1"},st={class:"tx-header-2 d-flex"},at={class:"tx-header-2 d-flex"},nt={class:"tx-subtitle-2 d-flex mb-4"},rt={class:"d-flex"},ut={class:"tx-subtitle-3 ml-auto"},ot={key:0,class:"d-flex"},ct={class:"tx-subtitle-3 ml-auto"},dt={key:0,class:"tx-subtitle-3"},it={class:"d-flex align-center justify-space-between"},yt={class:"tx-subtitle-1 text-primary ml-1"},bt={class:"tx-subtitle-2 d-flex mb-4"},ft={class:"d-flex"},gt={class:"tx-subtitle-3 ml-auto"},xt={key:0,class:"d-flex"},vt={class:"tx-subtitle-3 ml-auto"},mt={key:0,class:"tx-subtitle-3"},ht={class:"d-flex align-center justify-space-between"},wt={class:"tx-subtitle-1 text-primary ml-1"}
1,Vt=j({__name:"CurrentContractTable",props:{tableData:{},currency:{},salaryMode:{},isReport:{type:Boolean}},setup(t){const r=t,d=v(()=>r.isReport?"grey1":"grey3");return(g,s)=>(i(),b("div",lt,[c(R,{"no-gutters":"",class:"ga-4"},{default:f(()=>[c(w,{class:"pa-4 block d-flex flex-column justify-space-between"},{default:f(()=>[e("div",st,[y(a(t.tableData.signed)+" ",1),c(D,{class:"ml-auto",color:d.value,size:"28",icon:u(h).fountainPenTip},null,8,["color","icon"])]),s[0]||(s[0]=e("div",{class:"text-grey1"},"Signed",-1))]),_:1}),c(w,{class:"pa-4 block d-flex flex-column justify-space-between"},{default:f(()=>[e("div",at,[y(a(t.tableData.expiration)+" ",1),c(D,{class:"ml-auto",color:d.value,size:"28",icon:u(h).calendarRemove},null,8,["color","icon"])]),s[1]||(s[1]=e("div",{class:"text-grey1"},"Expiration",-1))]),_:1})]),_:1}),c(R,{"no-gutters":"",class:"ga-4"},{default:f(()=>[c(w,{class:"pa-4 block d-flex flex-column justify-space-between avoid-break"},{default:f(()=>[e("div",nt,[s[2]||(s[2]=y(" Weekly ",-1)),c(D,{class:"ml-auto",color:d.value,size:"24",icon:u(h).calendarWeek},null,8,["color","icon"])]),e("div",null,[e("div",rt,[s[3]||(s[3]=y(" Base: ",-1)),e("span",ut,a(u(o).price(t.tableData.base.weekly[t.salaryMode][t.currency],{currency:t.currency})),1)]),t.tableData.bonus?(i(),b("div",ot,[s[4]||(s[4]=y(" Bonus: ",-1)),e("span",ct,a(u(o).price(t.tableData.bonus.weekly[t.salaryMode][t.currency],{currency:t.currency})),1)])):$("",!0)]),t.tableData.bonus?(i(),b("div",dt,[c(A,{class:"my-3 mt-auto"}),e("div",it,[s[5]||(s[5]=e("div",null,"Total:",-1)),e("div",yt,a(u(o).price((t.tableData.bonus.weekly[t.salaryMode][t.currency]??0)+(t.tableData.base.weekly[t.salaryMode][t.currency]??0),{currency:t.currency})),1)])])):$("",!0)]),_:1}),c(w,{class:"pa-4 block d-flex flex-column justify-space-between avoid-break"},{default:f(()=>[e("div",bt,[s[6]||(s[6]=y(" Annual ",-1)),c(D,{class:"ml-auto",color:d.value,size:"24",icon:u(h).calendar},null,8,["color","icon"])]),e("div",null,[e("div",ft,[s[7]||(s[7]=y(" Base: ",-1)),e("span",gt,a(u(o).price(t.tableData.base.annual[t.salaryMode][t.currency],{currency:t.currency})),1)]),t.tableData.bonus?(i(),b("div",xt,[s[8]||(s[8]=y(" Bonus: ",-1)),e("span",vt,a(u(o).price(t.tableData.bonus.annual[t.salaryMode][t.currency],{currency:t.currency})),1)])):$("",!0)]),t.tableData.bonus?(i(),b("div",mt,[c(A,{class:"my-3 mt-auto"}),e("div",ht,[s[9]||(s[9]=e("div",null,"Total:",-1)),e("div",wt,a(u(o).price((t.tableData.bonus.annual[t.salaryMode][t.currency]??0)+(t.tableData.base.annual[t.salaryMode][t.currency]??0),{currency:t.currency})),1)])])):$("",!0)]),_:1})]),_:1})]))}}),Dt={class:""},$t={class:""},Mt={class:"d-flex align-center justify-start"},kt={class:""},jt={class:""},Tt={class:""},Ct={class:""},Nt={class:""},Bt={class:"total-row"},It={class:"font-weight-bold text-primary"},O=20,Yt=j({__name:"ExtensionsContractsTable",props:{tableData:{},currency:{},salaryMode:{},isReport:{type:Boolean}},setup(t){const r=t;function d(s,l){if(!s||!l)return 0;const n=new Date(s).getFullYear();return new Date(l).getFullYear()-n}const g=v(()=>Object.values(r.tableData).reduce((s,l)=>s+(l.base.annual[r.salaryMode][r.currency]||0)*d(l.signed,l.expiration),0));return(s,l)=>(i(),C(N,{class:B({"base-table":!t.isReport,"base-pdf-table":t.isReport})},{default:f(()=>[e("thead",null,[e("tr",null,[l[0]||(l[0]=e("th",null,"Season",-1)),l[1]||(l[1]=e("th",null,"Team",-1)),l[2]||(l[2]=e("th",null,"Signed",-1)),e("th",null,a((t.salaryMode==="gross"?"Gross":"Net")+" P/Y"),1),e("th",null,a("Total "+(t.salaryMode==="gross"?"Gross":"Net")),1),l[3]||(l[3]=e("th",null,"Years",-1)),l[4]||(l[4]=e("th",null,"Expiration",-1))])]),e("tbody",null,[(i(!0),b(I,null,S(t.tableData,(n,x)=>(i(),b("tr",{key:x},[e("td",Dt,a(n.season),1),e("td",$t,[e("div",Mt,[c(k,{width:O,height:O,class:"mr-1",inline:"",src:n?.club?.image},null,8,["src"]),y(" "+a(n?.club?.name),1)])]),e("td",kt,a(n.signed),1),e("td",jt,a(u(o).price(n.base.annual[t.salaryMode][t.currency],{currency:t.currency})),1),e("td",Tt,a(u(o).price((n.base.annual[t.salaryMode][t.currency]??0)*d(n.signed,n.expiration),{currency:t.currency})),1),e("td",Ct,a(d(n.signed,n.expiration)),1),e("td",Nt,a(n.expiration),1)]))),128)),e("tr",Bt,[l[5]||
1(l[5]=e("td",{class:"font-weight-bold"},"Total:",-1)),l[6]||(l[6]=e("td",null,null,-1)),l[7]||(l[7]=e("td",null,null,-1)),l[8]||(l[8]=e("td",null,null,-1)),e("td",It,a(u(o).price(g.value,{currency:t.currency})),1),l[9]||(l[9]=e("td",null,null,-1))])])]),_:1},8,["class"]))}});function Gt(t,r,d){return{chartData:v(()=>{if(!t.value)return;const s=[...Object.values(t.value.contracts.active),...Object.values(t.value.contracts.archive)].sort((m,T)=>m.season.localeCompare(T.season)),l=[],n=[],x=[];return s.forEach(m=>{l.push(m.season);const T=m.base.annual[d.value][r.value];n.push(T),x.push(m.club?.name)}),{labels:l,datasets:[{data:n}]}})}}export{Vt as _,Et as a,Ot as b,Yt as c,Gt as u}; 2//# sourceMappingURL=useSalaryData-DSFK9hAv.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.