1import{g as w,h as ee,k as te,l as ne}from"./chunk-62EANYOJ.js";import"./chunk-QEMXCHRL.js";import"./chunk-YQXOG3UL.js";import"./chunk-5H3H3SZO.js";import"./chunk-ZACAFQTT.js";import"./chunk-56B2UA7C.js";import"./chunk-AE4UQ6QO.js";import"./chunk-EJYSSWKW.js";import"./chunk-L5VOFC7U.js";import{b as Z}from"./chunk-7J5XKBZY.js";import{Ab as O,Ac as b,Ad as q,Hc as X,Ia as e,Ib as E,Oa as _,Tb as S,Ua as C,Ub as $,Ve as J,W as A,Xb as d,Yb as g,Za as N,Zb as h,_a as R,bg as K,cg as Q,ec as U,fc as y,gc as T,jc as V,lb as f,nc as p,ob as M,oc as c,pf as D,q as L,qb as P,rb as k,sb as W,tb as j,tf as I,ua as F,ub as v,vb as z,vc as x,wb as H,we as G,xb as B,yb as r,zb as s,zd as Y}from"./chunk-A5E7OECT.js";import"./chunk-IAXSR7V4.js";function se(i,t){if(i&1&&d(0),i&2){E();let m=T(5);h(" ",m," ")}}function de(i,t){if(i&1&&d(0),i&2){E();let m=T(6);h(" ",m," ")}}function pe(i,t){if(i&1&&d(0),i&2){E();let m=T(7);h(" ",m," ")}}function ce(i,t){if(i&1&&(r(0,"div",0)(1,"label",7),d(2),p(3,"b04Translate"),s(),r(4,"div",8),U(5)(6)(7),r(8,"span",9),p(9,"b04Translate"),M(10,se,1,1),s(),r(11,"span",10),p(12,"b04Translate"),M(13,de,1,1),s(),r(14,"span",11),p(15,"b04Translate"),M(16,pe,1,1),s()()()),i&2){let m=t.$implicit;e(2),g(c(3,13,m.label)),e(3);let n=y(m.record==null?null:m.record.matchesWon);e();let o=y(m.record==null?null:m.record.matchesTied);e();let a=y(m.record==null?null:m.record.matchesLost);e(),S("--progress",n),f("aria-label",n+" "+c(9,18,"WINS")),e(2),P(n?10:-1),e(),S("--progress",o),f("aria-label",o+" "+c(12,20,"DRAWS")),e(2),P(o?13:-1),e(),S("--progress",a),f("aria-label",a+" "+c(15,22,"LOSSES")),e(2),P(a?16:-1)}}var oe=(()=>{let t=class t{constructor(){this.stats=b(),this.statsRecords=x(()=>{let n=this.stats();return[{label:"OVERALL_STATS",record:n==null?void 0:n.overallRecord},{label:"HOME_BALANCE",record:n==null?void 0:n.homeRecord},{label:"AWAY_BALANCE",record:n==null?void 0:n.awayRecord}]})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=C({type:t,selectors:[["b04-team-stats-performance"]],hostAttrs:[1,"d-block"],inputs:{stats:[1,"stats"]},decls:18,vars:9,consts:[[1,"progress-container","mb-xxs"],[1,"legend-row","mt-xs"],[1,"d-flex","flex-row","align-items-center"],[1,"legend-dot","border","border-on-surface","bg-primary"],[1,"px-xxs","text-uppercase"],[1,"legend-dot","border","border-on-surface","bg-light"],[1,"legend-dot","border","border-on-surface","bg-dark"],[1,"h4","m-0","fs-lg"],[1,"progress-line","border","border-on-surface","border-1"],[1,"bg-primary","text-light"],[1,"bg-light","text-dark"],[1,"bg-dark","text-light"]],template:function(o,a){o&1&&(W(0,ce,17,24,"div",0,k),r(2,"div",1)(3,"span",2),O(4,"span",3),r(5,"span",4),d(6),p(7,"b04Translate"),s()(),r(8,"span",2),O(9,"span",5),r(10,"span",4),d(11),p(12,"b04Translate"),s()(),r(13,"span",2),O(14,"span",6),r(15,"span",4),d(16),p(17,"b04Translate"),s()()()),o&2&&(j(a.statsRecords()),e(6),g(c(7,3,"WINS")),e(5),g(c(12,5,"DRAWS")),e(5),g(c(17,7,"LOSSES")))},dependencies:[I,D],styles:[".progress-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;line-height:1;text-transform:uppercase}.progress-line[_ngcontent-%COMP%]{display:flex;flex-direction:row;height:25px;box-sizing:content-box;text-align:center}.progress-line[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;flex:var(--progress, 0) var(--progress, 0) auto;height:25px;line-height:25px;font-weight:700;padding-top:1px;transition:.3s flex ease-in-out}.legend-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;white-space:nowrap;max-width:500px}.legend-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;height:25px;line-height:25px;font-weight:700;padding-top:1px}.legend-dot[_ngcontent-%COMP%]{display:inline-block;width:25px;height:25px}"],changeDetection:0});let i=t;return i})();var ae=(()=>{let t=class t{constructor(){this.placement=b(),this.points=b(),this.difference=b()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=C({type:t,selectors:[["b04-team-stats-placement"]],inputs:{placement:[1,"placement"],points:[1,"points"],difference:[1,"difference"]},decls:19,vars:21,consts:[["data-testid","placement",1,"item","placement-item","border","border-4","border-control","bg-primary","text-light"],[1,"label"],["data-testid","points",1,"item","points-item","border","border-4","border-on-surface","bg-light","text-dark"],["data-testid","difference",1,"item","diff-item","border","border-4","border-on-surface","bg-dark","text-light"],[1,"item","points-label-item","ps-sm","pe-sm"],[1,"item","diff-label-item","ps-sm","pe-sm"]],template:function(o,a){o&1&&(r(0,"div",0),p(1,"b04Translate"),r(2,"span",1),d(3),p(4,"b04Translate"),s(),r(5,"span"),d(6),s()(),r(7,"div",2),p(8,"b04Translate"),d(9),s(),r(10,"div",3),p(11,"b04Translate"),d(12),s(),r(13,"div",4),d(14),p(15,"b04Translate"),s(),r(16,"div",5),d(17),p(18,"b04Translate"),s()),o&2&&(f("aria-label",a.placement()+" "+c(1,9,"FIXTURE_PLACE")),e(3),g(c(4,11,"FIXTURE_PLACE")),e(3),g(a.placement()),e(),f("aria-label",a.points+" "+c(8,13,"POINTS")),e(2),h(" ",a.points(),"\n"),e(
1),f("aria-label",a.difference+" "+c(11,15,"DIFFERENCE")),e(2),h(" ",a.difference(),"\n"),e(2),g(c(15,17,"POINTS")),e(3),g(c(18,19,"DIFFERENCE")))},dependencies:[I,D],styles:['[_nghost-%COMP%]{display:grid;grid-template-columns:minmax(135px,150px) minmax(90px,110px) auto;grid-template-rows:minmax(80px,1fr) minmax(80px,1fr);row-gap:4px;column-gap:4px;grid-template-areas:"placement points points-label" "placement diff diff-label";font-weight:700;font-size:24px;line-height:1;text-transform:uppercase}[_nghost-%COMP%] .placement-item[_ngcontent-%COMP%]{grid-area:placement;font-size:96px}[_nghost-%COMP%] .placement-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:34px}[_nghost-%COMP%] .points-item[_ngcontent-%COMP%]{grid-area:points;font-size:55px}[_nghost-%COMP%] .diff-item[_ngcontent-%COMP%]{grid-area:diff;font-size:55px}[_nghost-%COMP%] .points-label-item[_ngcontent-%COMP%]{grid-area:points-label}[_nghost-%COMP%] .diff-label-item[_ngcontent-%COMP%]{grid-area:diff-label}[_nghost-%COMP%] .placement-item[_ngcontent-%COMP%], [_nghost-%COMP%] .points-item[_ngcontent-%COMP%], [_nghost-%COMP%] .diff-item[_ngcontent-%COMP%]{justify-self:stretch;align-self:stretch;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:4px}[_nghost-%COMP%] .points-label-item[_ngcontent-%COMP%], [_nghost-%COMP%] .diff-label-item[_ngcontent-%COMP%]{justify-self:stretch;align-self:stretch;display:flex;align-items:center}'],changeDetection:0});let i=t;return i})();var Ue=(()=>{let t=class t extends K{constructor(n,o,a){super(),this.scs=n,this.cdRef=o,this.api=a,this.competitionId=x(()=>{var l;return(l=this.config())==null?void 0:l.competitionId}),this.competitionId$=Y(this.competitionId),this.stats$=this.competitionId$.pipe(A(l=>this.fetchStandings(l))),this.stats=q(this.stats$),this.placement=x(()=>{var l;return String(((l=this.stats())==null?void 0:l.standing)||"")}),this.points=x(()=>{var l,u;return String((u=(l=this.stats())==null?void 0:l.points)!=null?u:"")}),this.goalDifference=x(()=>{var l,u;return String((u=(l=this.stats())==null?void 0:l.goalDifference)!=null?u:"")}),this.scs.connect(this)}ngOnChanges(){this.cdRef.markForCheck()}fetchStandings(n){return n==null?L(null):this.api.withHeaders(Z.common()).getTeamStatisticsByCompetitionId({competitionId:n}).pipe(G())}};t.\u0275fac=function(o){return new(o||t)(_(w,2),_(X),_(J))},t.\u0275cmp=C({type:t,selectors:[["b04-section-team-statistics"]],hostVars:2,hostBindings:function(o,a){o&2&&$("b04-section",!0)},features:[V([w.for(()=>t)]),N([Q]),R,F],decls:5,vars:5,consts:[[3,"data"],[1,"stats-content"],[1,"border-2","border-light","border-end",3,"placement","points","difference"],[3,"stats"]],template:function(o,a){o&1&&(B(0,"b04-section-background")(1,"b04-section-header",0),z(2,"div",1),B(3,"b04-team-stats-placement",2)(4,"b04-team-stats-performance",3),H()),o&2&&(e(),v("data",a.headerInfo()),e(2),v("placement",a.placement())("points",a.points())("difference",a.goalDifference()),e(),v("stats",a.stats()))},dependencies:[ne,te,ee,ae,oe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%]{display:flex}@media(max-width:991.98px){[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%] b04-team-stats-placement[_ngcontent-%COMP%]{flex:none;padding-right:0;margin-left:auto;margin-right:auto;border-right-width:0!important;margin-bottom:25px}[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%] b04-team-stats-performance[_ngcontent-%COMP%]{flex:none;padding-left:0}}@media(min-width:992px){[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%]{flex-direction:row;align-items:stretch}[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%] b04-team-stats-placement[_ngcontent-%COMP%]{flex:2}[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%] b04-team-stats-performance[_ngcontent-%COMP%]{flex:3;padding-left:25px}}@media(min-width:1200px){[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%] b04-team-stats-placement[_ngcontent-%COMP%]{padding-right:75px}[_nghost-%COMP%] .stats-content[_ngcontent-%COMP%] b04-team-stats-performance[_ngcontent-%COMP%]{padding-left:75px}}"],changeDetection:0});let i=t;return i})();export{Ue as TeamStatisticsComponent};
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.