1import{a as z}from"./chunk-SCIVQKOP.js";import"./chunk-E2YS6YEX.js";import{a as T,e as F}from"./chunk-G3MMWKJF.js";import{Ab as a,Cc as E,Gc as Y,Hb as R,Ib as D,Kb as c,Lb as m,Ma as i,Mb as I,Qa as k,S as g,X as v,Y as b,Ya as S,cc as u,gc as p,hb as h,ia as f,ib as s,jb as d,kb as N,mb as w,nb as y,ob as C,pb as l,qb as r,rb as P,wb as M,yb as O}from"./chunk-ASGIIALJ.js";var V=(t,o)=>o.id;function j(t,o){if(t&1&&(l(0,"option",12),c(1),r()),t&2){let e=o.$implicit,n=a(3);C("value",e.id)("selected",e.id===n.selectedYear()),i(),m(e.label)}}function B(t,o){if(t&1){let e=M();l(0,"select",11),O("change",function(_){v(e);let x=a(2);return b(x.onYearChange(_))}),w(1,j,2,3,"option",12,V),r()}if(t&2){let e=a(2);h("aria-label",e.labels.selectYear),i(),y(e.availableYears())}}function $(t,o){if(t&1&&P(0,"img",18),t&2){let e=a().$implicit,n=a(2);R("object-position",(e.photo==null?null:e.photo.position)||null),C("ngSrc",(e.photo==null?null:e.photo.src)||n.fallbackPhoto())("alt",(e.photo==null?null:e.photo.alt)||e.name)}}function K(t,o){if(t&1&&(l(0,"span",16),c(1),r()),t&2){let e=a().$implicit;i(),m(e.role)}}
1function H(t,o){if(t&1&&(l(0,"p",17),c(1),r()),t&2){let e=a().$implicit;i(),m(e.bio)}}function A(t,o){if(t&1&&(l(0,"li",9)(1,"span",13),s(2,$,1,4,"img",14),r(),l(3,"h3",15),c(4),r(),s(5,K,2,1,"span",16),s(6,H,2,1,"p",17),r()),t&2){let e=o.$implicit,n=a(2);i(2),d(e.photo!=null&&e.photo.src||n.fallbackPhoto()?2:-1),i(2),m(e.name),i(),d(e.role?5:-1),i(),d(e.bio?6:-1)}}function G(t,o){if(t&1){let e=M();l(0,"div",10)(1,"button",19),O("click",function(){v(e);let _=a(2);return b(_.toggleExpanded())}),c(2),r()()}if(t&2){let e=a(2);i(),h("aria-expanded",e.isExpanded()),i(),I(" ",e.isExpanded()?e.labels.showLess:e.labels.viewFullList," ")}}function U(t,o){if(t&1&&(l(0,"section",1)(1,"div",2)(2,"div",3)(3,"div",4),P(4,"span",5),l(5,"h2",6),c(6),r()(),s(7,B,3,1,"select",7),r(),l(8,"ul",8),w(9,A,7,4,"li",9,N),r(),s(11,G,3,2,"div",10),r()()),t&2){let e=a();D("profile-row--cards",e.variant()==="cards"),i(6),m(e.title()),i(),d(e.yearSelector()&&e.availableYears().length?7:-1),i(2),y(e.visibleItems()),i(2),d(e.hasMore()?11:-1)}}var L=class t{title=p("");dataKey=p("profile-row");variant=p("cards");limit=p(4);yearSelector=p(!1);fallbackPhoto=p("");labels=F(g(T));content=g(z);http=g(Y);expanded=f(!1);availableYears=f([]);selectedYear=f(null);yearItems=f([]);yearDataLoaded=f(!1);items=u(()=>this.yearDataLoaded()?this.yearItems():this.content.data()?.[this.dataKey()]?.items??[]);visibleItems=u(()=>this.expanded()?this.items():this.items().slice(0,this.limit()));hasMore=u(()=>this.items().length>this.limit());isExpanded=this.expanded.asReadonly();constructor(){k(()=>{this.yearSelector()&&this.loadYears()})}toggleExpanded(){this.expanded.update(o=>!o)}onYearChange(o){let e=Number(o.target.value);this.selectedYear.set(e),this.expanded.set(!1),this.loadBearers(e)}loadYears(){this.http.get("/api/leadership/years").subscribe({next:o=>{let e=o.years??[];if(this.availableYears.set(e),e.length){let n=new Date().getFullYear(),_=e.find(x=>x.id===n)?.id??e[0].id;this.selectedYear.set(_),this.loadBearers(_)}}})}loadBearers(o){this.http.get("/api/leadership/bearers",{params:{year:String(o)}}).subscribe({next:e=>{this.yearItems.set(e.items??[]),this.yearDataLoaded.set(!0)}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-profile-row"]],hostVars:2,hostBindings:function(e,n){e&2&&D("profile-row--cards",n.variant()==="cards")},inputs:{title:[1,"title"],dataKey:[1,"dataKey"],variant:[1,"variant"],limit:[1,"limit"],yearSelector:[1,"yearSelector"],fallbackPhoto:[1,"fallbackPhoto"]},decls:1,vars:1,consts:[[1,"profile-row",3,"profile-row--cards"],[1,"profile-row"],[1,"profile-row__inner"],[1,"profile-row__head"],[1,"profile-row__heading"],["aria-hidden","true",1,"profile-row__rule"],[1,"profile-row__title"],[1,"profile-row__year-select"],[1,"profile-row__list"],[1,"profile-row__cell"],[1,"profile-row__footer"],[1,"profile-row__year-select",3,"change"],[3,"value","selected"],[1,"profile-row__photo"],["fill","",3,"ngSrc","alt","object-position"],[1,"profile-row__name"],[1,"profile-row__role"],[1,"profile-row__bio"],["fill","",3,"ngSrc","alt"],["type","button",1,"profile-row__toggle",3,"click"]],template:function(e,n){e&1&&s(0,U,12,5,"section",0),e&2&&d(n.items().length?0:-1)},dependencies:[E],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;margin-top:32px}.profile-row__inner[_ngcontent-%COMP%]{max-width:1440px;margin-inline:auto;padding-inline:var(--space-xxl)}@media(min-width:768px){.profile-row__inner[_ngcontent-%COMP%]{padding-inline:var(--space-xxl)}}.profile-row__head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-xl)}.profile-row__heading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-md)}.profile-row__footer[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:var(--space-xl)}.profile-row__rule[_ngcontent-%COMP%]{display:block;width:48px;height:2px;background:var(--color-text);flex-shrink:0}.profile-row__title[_ngcontent-%COMP%]{margin:0;font-family:var(--font-heading);font-weight:700;font-size:30px;line-height:1.2;color:var(--color-text)}.profile-row__toggle[_ngcontent-%COMP%]{flex-shrink:0;padding:var(--space-sm) var(--space-lg);border:1px solid var(--color-border-strong, var(--color-border));border-radius:var(--radius-pill);background:none;font-family:var(--font-body);font-weight:500;font-size:14px;color:var(--color-text);white-space:nowrap;cursor:pointer}.profile-row__toggle[_ngcontent-%COMP%]:hover, .profile-row__toggle[_ngcontent-%COMP%]:focus-visible{background:var(--color-surface)}.profile-row__year-select[_ngcontent-%COMP%]{flex-shrink:0;padding:var(--space-sm) var(--space-lg);border:1px solid var(--color-border-strong, var(--color-border));border-radius:var(--radius-pill);background:none;font-family:var(--font-body);font-weight:500;font-size:14px;color:var(--color-text);cursor:pointer;outline:none}.profile-row__year-select[_ngcontent-%COMP%]:focus-visible{background:var(--color-surface)}.profile-row__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-xl);margin:0;padding:0;list-style:none}.profile-row__cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-xs);min-width:0}.profile-row__photo[_ngcontent-%COMP%]{position:relative;display:block;box-sizing:border-box;aspect-ratio:4/5;border-radius:var(--radius-xl, var(--radius-lg));overflow:hidden;background:var(--color-border);border:1px solid var(--color-border)}.profile-row__photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover;filter:grayscale(1);transition:filter .25s ease}.profile-row__cell[_ngcontent-%COMP%]:hover .profile-row__photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .profile-row__cell[_ngcontent-%COMP%]:focus-within .profile-row__photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:grayscale(0)}.profile-row__name[_ngcontent-%COMP%]{margin:var(--space-sm) 0 0;font-family:var(--font-body);font-weight:700;font-size:20px;line-height:1.4;color:var(--color-text)}.profile-row__role[_ngcontent-%COMP%]{font-family:var(--font-body);font-weight:600;font-size:14px;line-height:1.4;letter-spacing:.05em;text-transform:uppercase;color:var(--color-text)}.profile-row__bio[_ngcontent-%COMP%]{margin:0;font-family:var(--font-body);font-size:14px;line-height:1.4;color:var(--color-text-muted)}@media(max-width:1023.98px){.profile-row__list[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media(max-width:599.98px){.profile-row__list[_ngcontent-%COMP%]{grid-template-columns:1fr}.profile-row__heading[_ngcontent-%COMP%]{align-items:flex-start}.profile-row__rule[_ngcontent-%COMP%]{width:24px;margin-top:.6em}.profile-row__title[_ngcontent-%COMP%]{font-size:22px}}'],changeDetection:0})};export{L as ProfileRow};
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.