1import {P}from'./chunk-CT6ktbqh.js';import {u}from'./chunk-BHwc6ctI.js';import {I,ac as h,aa as $,a3 as Cb,T as Ti,b7 as Ee$1,S as Sj,k as dE,K,Q,s as sC,x as x_,bs as D_,Y as Yn,aC as zn,aD as Zn,N as Je$1,aE as Dt$1,R as Ln,aF as un,$ as $t,bF as M_,aH as N_,aB as S_,r as rs,n as ng,z as zw,G as Gu,J as JC,c as cg,a as aE,X as XC,p as pg,C as Cw,av as Ue$1,ax as t$1,ay as V,u as uw,L as Ld,g as gw,P as Pd,t as tg,o as Yu,i as _g,aS as fb,b8 as mg,y as yg,q as Tg,aT as hb,d as nw,f as rw,a0 as mI,a1 as vI,e as eg,aW as gb,aG as tw}from'./main-3RJV3SMM.js';var ue=(()=>{class i{http=I(Ue$1);apiUrl=`${t$1.apiUrl}/pool-assignment`;getDivisions(){return this.http.get(`${this.apiUrl}/divisions`)}getTeams(e){return this.http.get(`${this.apiUrl}/divisions/${e}/teams`)}previewTransfer(e){return this.http.post(`${this.apiUrl}/preview`,e)}executeTransfer(e){return this.http.post(`${this.apiUrl}/transfer`,e)}toggleTeamActive(e,t){return this.http.put(`${this.apiUrl}/teams/${e}/active`,{active:t})}updateTeamDivRank(e,t){return this.http.put(`${this.apiUrl}/teams/${e}/divrank`,{divRank:t})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var he=["sourceScroll"],be=["targetScroll"],ve=(i,d)=>d.label,Ce=(i,d)=>d.divId,j=(i,d)=>d.teamId,fe=(i,d)=>d.clubRepRegistrationId;function we(i,d){i&1&&(rs(0,"a",8),ng(1,"i",13),zw(2,"National Rankings "),Gu());}function Se(i,d){i&1&&(rs(0,"div",11)(1,"div",14)(2,"span",15),zw(3,"Loading..."),Gu()()());}function Te(i,d){if(i&1&&(ng(0,"span",37),rs(1,"span",38),zw(2),Gu(),zw(3),rs(4,"span",39),zw(5),Gu(),rs(6,"span",40),zw(7),fb(8,"number"),Gu()),i&2){let e=d,t=gw(2);mg("background",e.agegroupColor??"var(--bs-secondary-bg)"),yg("color-dot--empty",!e.agegroupColor),aE(2),Yu("",e.agegroupName,":"),aE(),Yu("",e.divName," "),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor)),aE(),Tg("",e.teamCount,"",e.maxTeams>0?"/"+e.maxTeams:""),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor))("opacity",.7),aE(),_g(hb(8,19,e.playerCount));}}function ke(i,d){i&1&&zw(0," Select an agegroup:division... ");}function ye(i,d){if(i&1){let e=uw();rs(0,"button",45),cg("click",function(){let n=Ld(e).$implicit,l=gw(4);return Pd(l.selectSourceDiv(n.divId))}),ng(1,"span",37),rs(2,"span",46),zw(3),Gu(),rs(4,"span",47),zw(5),Gu(),rs(6,"span",40),zw(7),fb(8,"number"),Gu()();}if(i&2){let e=d.$implicit,t=gw(4);yg("active",e.divId===t.sourceDivId())("disabled",e.divId===t.targetDivId()),tg("disabled",e.divId===t.targetDivId()),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)"),yg("color-dot--empty",!e.agegroupColor),aE(2),Tg("",e.divName,"",e.isDroppedTeams?" [Dropped]":""),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor)),aE(),Tg("",e.teamCount,"",e.maxTeams>0?"/"+e.maxTeams:""),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor))("opacity",.7),aE(),_g(hb(8,24,e.playerCount));}}function Pe(i,d){if(i&1&&(rs(0,"div",43),zw(1),Gu(),nw(2,ye,9,26,"button",44,Ce)),i&2){let e=d.$implicit;aE(),_g(e.label),aE(),rw(e.divisions);}}function De(i,d){if(i&1){let e=uw();rs(0,"div",41),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.closeDropdowns())}),Gu(),rs(1,"div",42),nw(2,Pe,4,1,null,null,ve),Gu();}if(i&2){let e=gw(2);aE(),mg("max-height",e.sourceDropdownMaxHeight(),"px"),aE(),rw(e.groupedDivisionOptions());}}function Me(i,d){if(i&1&&(rs(0,"div",26),ng(1,"div",48),Gu()),i&2){let e=gw(2);aE(),mg("width",e.capacityPercent(e.sourceDiv()),"%")("background",e.capacityColor(e.sourceDiv()));}}function Ie(i,d){if(i&1){let e=uw();rs(0,"input",49),cg("ngModelChange",function(n){Ld(e);let l=gw(2);return Pd(l.sourceFilter.set(n))}),Gu(),mI();}if(i&2){let e=gw(2);tg("ngModel",e.sourceFilter()),vI();}}function Ee(i,d){i&1&&ng(0,"span",62);}function Ae(i,d){i&1&&ng(0,"i",34);}function Oe(i,d){if(i&1&&(rs(0,"span",66),zw(1),Gu()),i&2){let e=gw().$implicit,t=gw(3);tg("title",t.getRankingTooltip(e)),aE(),_g(d);}}function Ve(i,d){i&1&&(rs(0,"span",67),zw(1,"\u2014"),Gu());}function Ne(i,d){if(i&1&&(rs(0,"option",72),zw(1),Gu()),i&2){let e=d.$implicit;tg("ngValue",e),aE(),_g(e);}}function Re(i,d){if(i&1){let e=uw();rs(0,"select",71),cg("ngModelChange",function(n){Ld(e);let l=gw(4);return Pd(l.editingDivRankValue.set(n))})("change",function(){Ld(e);let n=gw().$implicit,l=gw(3);return Pd(l.saveDivRankEdit(n))}),nw(1,Ne,2,2,"option",72,tw),Gu(),mI();}if(i&2){let e=gw(4);tg("ngModel",e.editingDivRankValue()),vI(),aE(),rw(e.sourceRankOptions());}}function Fe(i,d){if(i&1){let e=uw();rs(0,"span",73),cg("click",function(){Ld(e);let n=gw().$implicit,l=gw(3);return Pd(l.startDivRankEdit(n))}),zw(1),Gu();}if(i&2){let e=gw().$implicit;aE(),_g(e.divRank);}}function ze(i,d){if(i&1){let e=uw();
1rs(0,"tr")(1,"td",51)(2,"input",52),cg("change",function(){let n=Ld(e).$implicit,l=gw(3);return Pd(l.toggleSourceSelect(n.teamId))}),Gu()(),rs(3,"td",60),zw(4),Gu(),rs(5,"td",54)(6,"button",61),cg("click",function(){let n=Ld(e).$implicit,l=gw(3);return Pd(l.swapToTarget(n))}),JC(7,Ee,1,0,"span",62)(8,Ae,1,0,"i",34),Gu()(),rs(9,"td",63),zw(10),Gu(),rs(11,"td",64),zw(12),Gu(),rs(13,"td",64),zw(14),Gu(),rs(15,"td"),zw(16),Gu(),rs(17,"td",64),zw(18),fb(19,"date"),Gu(),rs(20,"td",65),JC(21,Oe,2,2,"span",66)(22,Ve,2,0,"span",67),Gu(),rs(23,"td",68),zw(24),Gu(),rs(25,"td",65),JC(26,Re,3,1,"select",69)(27,Fe,2,1,"span",70),Gu()();}if(i&2){let e,t=d.$implicit,n=d.$index,l=gw(3);yg("table-active",l.sourceSelected().has(t.teamId))("just-moved",l.justMovedIds().has(t.teamId))("text-body-tertiary",!t.active),eg("data-team-id",t.teamId),aE(2),tg("checked",l.sourceSelected().has(t.teamId)),aE(2),_g(n+1),aE(2),tg("disabled",!l.targetDivId()||l.swappingId()===t.teamId),aE(),XC(l.swappingId()===t.teamId?7:8),aE(3),_g(t.teamName),aE(2),_g(t.clubName),aE(2),_g(t.clubRepName),aE(2),_g(t.levelOfPlay),aE(2),_g(gb(19,19,t.registrationTs,"M/d/yy")),aE(3),XC((e=l.getNationalRank(t))?21:22,e),aE(3),_g(t.teamComments),aE(2),XC(l.editingDivRankTeamId()===t.teamId?26:27);}}function $e(i,d){if(i&1){let e=uw();rs(0,"div",29,0)(2,"table",50)(3,"thead")(4,"tr")(5,"th",51)(6,"input",52),cg("change",function(){Ld(e);let n=gw(2);return Pd(n.sourceSelected().size===n.sortedFilteredSourceTeams().length?n.deselectAllSource():n.selectAllSource())}),Gu()(),rs(7,"th",53),zw(8,"#"),Gu(),ng(9,"th",54),rs(10,"th",55),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","teamName"))}),zw(11," Team "),ng(12,"i",56),Gu(),rs(13,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","clubName"))}),zw(14," Club "),ng(15,"i",56),Gu(),rs(16,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","clubRepName"))}),zw(17," ClubRep "),ng(18,"i",56),Gu(),rs(19,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","levelOfPlay"))}),zw(20," LOP "),ng(21,"i",56),Gu(),rs(22,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","registrationTs"))}),zw(23," RegDate "),ng(24,"i",56),Gu(),rs(25,"th",58),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","nationalRankingData"))}),zw(26," Nat'l "),ng(27,"i",56),Gu(),rs(28,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","teamComments"))}),zw(29," Comments "),ng(30,"i",56),Gu(),rs(31,"th",58),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("source","divRank"))}),zw(32," Rank "),ng(33,"i",56),Gu()()(),rs(34,"tbody"),nw(35,ze,28,22,"tr",59,j),Gu()()();}if(i&2){let e=gw(2);aE(6),tg("checked",e.sourceSelected().size>0&&e.sourceSelected().size===e.sortedFilteredSourceTeams().length),aE(6),tg("ngClass",e.sortIcon("source","teamName")),aE(3),tg("ngClass",e.sortIcon("source","clubName")),aE(3),tg("ngClass",e.sortIcon("source","clubRepName")),aE(3),tg("ngClass",e.sortIcon("source","levelOfPlay")),aE(3),tg("ngClass",e.sortIcon("source","registrationTs")),aE(3),tg("ngClass",e.sortIcon("source","nationalRankingData")),aE(3),tg("ngClass",e.sortIcon("source","teamComments")),aE(3),tg("ngClass",e.sortIcon("source","divRank")),aE(2),rw(e.sortedFilteredSourceTeams());}}function je(i,d){i&1&&(rs(0,"div",30),ng(1,"i",74),zw(2," No teams in this division "),Gu());}function Le(i,d){i&1&&(rs(0,"div",30),ng(1,"i",75),zw(2," Select a source division "),Gu());}function Be(i,d){i&1&&ng(0,"span",33);}function He(i,d){if(i&1&&(ng(0,"span",37),rs(1,"span",38),zw(2),Gu(),zw(3),rs(4,"span",39),zw(5),Gu(),rs(6,"span",40),zw(7),fb(8,"number"),Gu()),i&2){let e=d,t=gw(2);mg("background",e.agegroupColor??"var(--bs-secondary-bg)"),yg("color-dot--empty",!e.agegroupColor),aE(2),Yu("",e.agegroupName,":"),aE(),Yu("",e.divName," "),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor)),aE(),Tg("",e.teamCount,"",e.maxTeams>0?"/"+e.maxTeams:""),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor))("opacity",.7),aE(),_g(hb(8,19,e.playerCount));}}function Ue(i,d){i&1&&zw(0," Select an agegroup:division... ");}function qe(i,d){if(i&1){let e=uw();rs(0,"button",45),cg("click",function(){let n=Ld(e).$implicit,l=gw(4);return Pd(l.selectTargetDiv(n.divId))}),ng(1,"span",37),rs(2,"span",46),zw(3),Gu(),rs(4,"span",47),zw(5),Gu(),rs(6,"span",40),zw(7),fb(8,"number"),Gu()();}if(i&2){let e=d.$implicit,t=gw(4);yg("active",e.divId===t.targetDivId())("disabled",e.divId===t.sourceDivId()),tg("disabled",e.divId===t.sourceDivId()),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)"),yg("color-dot--empty",!e.agegroupColor),aE(2),Tg("",e.divName,"",e.isDroppedTeams?" [Dropped
1]":""),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor)),aE(),Tg("",e.teamCount,"",e.maxTeams>0?"/"+e.maxTeams:""),aE(),mg("background",e.agegroupColor??"var(--bs-secondary-bg)")("color",t.contrastText(e.agegroupColor))("opacity",.7),aE(),_g(hb(8,24,e.playerCount));}}function Je(i,d){if(i&1&&(rs(0,"div",43),zw(1),Gu(),nw(2,qe,9,26,"button",44,Ce)),i&2){let e=d.$implicit;aE(),_g(e.label),aE(),rw(e.divisions);}}function Qe(i,d){if(i&1){let e=uw();rs(0,"div",41),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.closeDropdowns())}),Gu(),rs(1,"div",42),nw(2,Je,4,1,null,null,ve),Gu();}if(i&2){let e=gw(2);aE(),mg("max-height",e.targetDropdownMaxHeight(),"px"),aE(),rw(e.groupedDivisionOptions());}}function Ge(i,d){if(i&1&&(rs(0,"div",26),ng(1,"div",48),Gu()),i&2){let e=gw(2);aE(),mg("width",e.capacityPercent(e.targetDiv()),"%")("background",e.capacityColor(e.targetDiv()));}}function Ke(i,d){if(i&1){let e=uw();rs(0,"input",49),cg("ngModelChange",function(n){Ld(e);let l=gw(2);return Pd(l.targetFilter.set(n))}),Gu(),mI();}if(i&2){let e=gw(2);tg("ngModel",e.targetFilter()),vI();}}function We(i,d){i&1&&ng(0,"span",62);}function Xe(i,d){i&1&&ng(0,"i",35);}function Ye(i,d){if(i&1&&(rs(0,"span",66),zw(1),Gu()),i&2){let e=gw().$implicit,t=gw(3);tg("title",t.getRankingTooltip(e)),aE(),_g(d);}}function Ze(i,d){i&1&&(rs(0,"span",67),zw(1,"\u2014"),Gu());}function et(i,d){if(i&1&&(rs(0,"option",72),zw(1),Gu()),i&2){let e=d.$implicit;tg("ngValue",e),aE(),_g(e);}}function tt(i,d){if(i&1){let e=uw();rs(0,"select",71),cg("ngModelChange",function(n){Ld(e);let l=gw(4);return Pd(l.editingDivRankValue.set(n))})("change",function(){Ld(e);let n=gw().$implicit,l=gw(3);return Pd(l.saveDivRankEdit(n))}),nw(1,et,2,2,"option",72,tw),Gu(),mI();}if(i&2){let e=gw(4);tg("ngModel",e.editingDivRankValue()),vI(),aE(),rw(e.targetRankOptions());}}function nt(i,d){if(i&1){let e=uw();rs(0,"span",73),cg("click",function(){Ld(e);let n=gw().$implicit,l=gw(3);return Pd(l.startDivRankEdit(n))}),zw(1),Gu();}if(i&2){let e=gw().$implicit;aE(),_g(e.divRank);}}function it(i,d){if(i&1){let e=uw();rs(0,"tr")(1,"td",51)(2,"input",52),cg("change",function(){let n=Ld(e).$implicit,l=gw(3);return Pd(l.toggleTargetSelect(n.teamId))}),Gu()(),rs(3,"td",60),zw(4),Gu(),rs(5,"td",54)(6,"button",76),cg("click",function(){let n=Ld(e).$implicit,l=gw(3);return Pd(l.swapToSource(n))}),JC(7,We,1,0,"span",62)(8,Xe,1,0,"i",35),Gu()(),rs(9,"td",63),zw(10),Gu(),rs(11,"td",64),zw(12),Gu(),rs(13,"td",64),zw(14),Gu(),rs(15,"td"),zw(16),Gu(),rs(17,"td",64),zw(18),fb(19,"date"),Gu(),rs(20,"td",65),JC(21,Ye,2,2,"span",66)(22,Ze,2,0,"span",67),Gu(),rs(23,"td",68),zw(24),Gu(),rs(25,"td",65),JC(26,tt,3,1,"select",69)(27,nt,2,1,"span",70),Gu()();}if(i&2){let e,t=d.$implicit,n=d.$index,l=gw(3);yg("table-active",l.targetSelected().has(t.teamId))("just-moved",l.justMovedIds().has(t.teamId))("text-body-tertiary",!t.active),eg("data-team-id",t.teamId),aE(2),tg("checked",l.targetSelected().has(t.teamId)),aE(2),_g(n+1),aE(2),tg("disabled",!l.sourceDivId()||l.swappingId()===t.teamId),aE(),XC(l.swappingId()===t.teamId?7:8),aE(3),_g(t.teamName),aE(2),_g(t.clubName),aE(2),_g(t.clubRepName),aE(2),_g(t.levelOfPlay),aE(2),_g(gb(19,19,t.registrationTs,"M/d/yy")),aE(3),XC((e=l.getNationalRank(t))?21:22,e),aE(3),_g(t.teamComments),aE(2),XC(l.editingDivRankTeamId()===t.teamId?26:27);}}function ot(i,d){if(i&1){let e=uw();rs(0,"div",29,1)(2,"table",50)(3,"thead")(4,"tr")(5,"th",51)(6,"input",52),cg("change",function(){Ld(e);let n=gw(2);return Pd(n.targetSelected().size===n.sortedFilteredTargetTeams().length?n.deselectAllTarget():n.selectAllTarget())}),Gu()(),rs(7,"th",53),zw(8,"#"),Gu(),ng(9,"th",54),rs(10,"th",55),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","teamName"))}),zw(11," Team "),ng(12,"i",56),Gu(),rs(13,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","clubName"))}),zw(14," Club "),ng(15,"i",56),Gu(),rs(16,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","clubRepName"))}),zw(17," ClubRep "),ng(18,"i",56),Gu(),rs(19,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","levelOfPlay"))}),zw(20," LOP "),ng(21,"i",56),Gu(),rs(22,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","registrationTs"))}),zw(23," RegDate "),ng(24,"i",56),Gu(),rs(25,"th",58),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","nationalRankingData"))}),zw(26," Nat'l "),ng(27,"i",56),Gu(),rs(28,"th",57),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","teamComments"))}),zw(29," Comments "),ng(30,"i",56),Gu(),rs(31,"th",58),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.onSort("target","divRank"))}),zw(32," Rank "),ng(33,"i",56),Gu()()(),rs(34,"tbody"),nw(35,it,28,22,"tr",59,j),Gu()()();}if(i&2){let e=gw(2);aE(6),tg("checked",e.targetSelected().size>0&&e.targetSelected().size===e.sortedFilteredTargetTeams().length),aE(6),tg("ngClass",e.sortIcon("target","teamName")),aE(3),tg("ngClass",e.sortIcon("target","clubName")),aE(3),tg("ngClass",e.sortIcon("target","clubRepName")),aE(3),tg("ngClass",e.sortIcon("target","levelOfPlay")),aE(3),tg("ngClass",e.sortIcon("target","registrationTs")),aE(3),tg("ngClass",e.sortIcon("target","nationalRankingData")),aE(3),tg("ngClass",e.sortIcon("target","teamComments")),aE(3),tg("ngClass",e.sortIcon("target","divRank")),aE(2),rw(e.s
1ortedFilteredTargetTeams());}}function rt(i,d){i&1&&(rs(0,"div",30),ng(1,"i",74),zw(2," No teams in this division "),Gu());}function at(i,d){i&1&&(rs(0,"div",30),ng(1,"i",75),zw(2," Select a target division "),Gu());}function st(i,d){i&1&&ng(0,"span",33);}function lt(i,d){i&1&&ng(0,"i",87);}function ct(i,d){i&1&&ng(0,"i",88);}function dt(i,d){if(i&1&&(rs(0,"span",89),ng(1,"i",90),Gu()),i&2){let e=gw().$implicit;tg("title",e.warning);}}function mt(i,d){if(i&1&&(rs(0,"tr")(1,"td",64),zw(2),Gu(),rs(3,"td",65),JC(4,lt,1,0,"i",87)(5,ct,1,0,"i",88),Gu(),rs(6,"td",86),zw(7),fb(8,"currency"),Gu(),rs(9,"td",86),zw(10),fb(11,"currency"),Gu(),rs(12,"td",86),zw(13),fb(14,"currency"),Gu(),rs(15,"td"),JC(16,dt,2,1,"span",89),Gu()()),i&2){let e=d.$implicit,t=gw(4);aE(2),_g(e.teamName),aE(2),XC(t.movesRight(e.direction)?4:5),aE(3),_g(hb(8,11,e.currentFeeTotal)),aE(3),_g(hb(11,13,e.newFeeTotal)),aE(2),yg("text-danger",e.feeDelta>0)("text-success",e.feeDelta<0),aE(),Tg(" ",e.feeDelta>=0?"+":"","",hb(14,15,e.feeDelta)," "),aE(3),XC(e.warning?16:-1);}}function pt(i,d){if(i&1&&(rs(0,"div",80)(1,"table",85)(2,"thead")(3,"tr")(4,"th"),zw(5,"Team"),Gu(),rs(6,"th",65),zw(7,"Direction"),Gu(),rs(8,"th",86),zw(9,"Current Fee"),Gu(),rs(10,"th",86),zw(11,"New Fee"),Gu(),rs(12,"th",86),zw(13,"Delta"),Gu(),ng(14,"th"),Gu()(),rs(15,"tbody"),nw(16,mt,17,17,"tr",null,j),Gu()()()),i&2){let e=gw(3);aE(16),rw(e.transferPreview().teams);}}function _t(i,d){if(i&1&&(rs(0,"div",92)(1,"span"),zw(2),Gu(),rs(3,"span"),zw(4),fb(5,"currency"),fb(6,"currency"),rs(7,"span"),zw(8),fb(9,"currency"),Gu()()()),i&2){let e=d.$implicit;aE(2),_g(e.clubName),aE(2),Tg(" ",hb(5,9,e.currentTotal)," \u2192 ",hb(6,11,e.newTotal)," "),aE(3),yg("text-danger",e.delta>0)("text-success",e.delta<0),aE(),Tg(" (",e.delta>=0?"+":"","",hb(9,13,e.delta),") ");}}function gt(i,d){if(i&1&&(rs(0,"div",81)(1,"h6",91),zw(2,"Club Rep Impact"),Gu(),nw(3,_t,10,15,"div",92,fe),Gu()),i&2){let e=gw(3);aE(3),rw(e.transferPreview().clubRepImpacts);}}function ut(i,d){i&1&&ng(0,"span",33);}function vt(i,d){if(i&1){let e=uw();rs(0,"div",36)(1,"div",77)(2,"h6",78),zw(3,"Transfer Preview"),Gu(),rs(4,"button",79),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.cancelTransferPreview())}),Gu()(),JC(5,pt,18,0,"div",80),JC(6,gt,5,0,"div",81),rs(7,"div",82)(8,"button",83),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.cancelTransferPreview())}),zw(9,"Cancel"),Gu(),rs(10,"button",84),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.confirmTransfer())}),JC(11,ut,1,0,"span",33),zw(12," Confirm Transfer "),Gu()()();}if(i&2){let e=gw(2);aE(5),XC(e.transferPreview().teams.length>0?5:-1),aE(),XC(e.transferPreview().clubRepImpacts.length>0?6:-1),aE(4),tg("disabled",!e.canConfirmTransfer()),aE(),XC(e.isTransferring()?11:-1);}}function Ct(i,d){if(i&1){let e=uw();rs(0,"div",16)(1,"div",17)(2,"div",18)(3,"label",19)(4,"span"),zw(5,"Source Agegroup:Division"),Gu(),rs(6,"span",20)(7,"span",21),zw(8,"Key:"),Gu(),rs(9,"span",22),zw(10,"n/n"),Gu(),zw(11," teams/max "),rs(12,"span",23),zw(13,"n"),Gu(),zw(14," players "),Gu()(),rs(15,"div",24)(16,"button",25),cg("click",function(n){Ld(e);let l=gw();return Pd(l.toggleSourceDropdown(n))}),JC(17,Te,9,21)(18,ke,1,0),Gu(),JC(19,De,4,2),Gu(),JC(20,Me,2,4,"div",26),JC(21,Ie,1,1,"input",27),Gu(),rs(22,"div",28),JC(23,$e,37,9,"div",29)(24,je,3,0,"div",30)(25,Le,3,0,"div",30),Gu(),rs(26,"div",31)(27,"button",32),cg("click",function(){Ld(e);let n=gw();return Pd(n.moveSelectedToTarget())}),JC(28,Be,1,0,"span",33),zw(29," Move Selected "),ng(30,"i",34),zw(31),Gu()()(),rs(32,"div",17)(33,"div",18)(34,"label",19)(35,"span"),zw(36,"Target Agegroup:Division"),Gu(),rs(37,"span",20)(38,"span",21),zw(39,"Key:"),Gu(),rs(40,"span",22),zw(41,"n/n"),Gu(),zw(42," teams/max "),rs(43,"span",23),zw(44,"n"),Gu(),zw(45," players "),Gu()(),rs(46,"div",24)(47,"button",25),cg("click",function(n){Ld(e);let l=gw();return Pd(l.toggleTargetDropdown(n))}),JC(48,He,9,21)(49,Ue,1,0),Gu(),JC(50,Qe,4,2),Gu(),JC(51,Ge,2,4,"div",26),JC(52,Ke,1,1,"input",27),Gu(),rs(53,"div",28),JC(54,ot,37,9,"div",29)(55,rt,3,0,"div",30)(56,at,3,0,"div",30),Gu(),rs(57,"div",31)(58,"button",32),cg("click",function(){Ld(e);let n=gw();return Pd(n.moveSelectedToSource())}),JC(59,st,1,0,"span",33),ng(60,"i",35),zw(61),Gu()()()(),JC(62,vt,13,4,"div",36);}if(i&2){let e,t,n=gw();aE(17),XC((e=n.sourceDiv())?17:18,e),aE(2),XC(n.sourceDropdownOpen()?19:-1),aE(),XC(n.sourceDiv()&&n.sourceDiv().maxTeams>0?20:-1),aE(),XC(n.sourceTeams().length>0?21:-1),aE(2),XC(n.sourceDivId()&&n.sortedFilteredSourceTeams().length>0?23:n.sourceDivId()?24:25),aE(4),tg("disabled",n.sourceSelected().size===0||!n.targetDivId()||n.isLoadingPreview()),aE(),XC(n.isLoadingPreview()&&n.transferDirection()==="source-to-target"?28:-1),aE(3),Yu(" (",n.sourceSelected().size,") "),aE(17),XC((t=n.targetDiv())?48:49,t),aE(2),XC(n.targetDropdownOpen()?50:-1),aE(),XC(n.targetDiv()&&n.targetDiv().maxTeams>0?51:-1),aE(),XC(n.targetTeams().length>0?52:-1),aE(2),XC(n.targetDivId()&&n.sortedFilteredTargetTeams().length>0?54:n.targetDivId()?55:56),aE(4),tg("disabled",n.targetSelected().size===0||!n.sourceDivId()||n.isLoadingPreview()),aE(),XC(n.isLoadingPreview()&&n.transferDirection()==="target-to-source"?59:-1),aE(2),Yu(" Move Selected (",n.targetSelected().size,") "),aE(),XC(n.transferPreview()?62:-1);}}function xt(i,d){if(i&1){let e=uw();
1rs(0,"div",93),cg("click",function(){Ld(e);let n=gw();return Pd(n.closeDenyModal())}),rs(1,"div",94),cg("click",function(n){return n.stopPropagation()}),rs(2,"div",95)(3,"h5",96),ng(4,"i",97),zw(5,"Schedule in the way "),Gu(),rs(6,"button",98),cg("click",function(){Ld(e);let n=gw();return Pd(n.closeDenyModal())}),Gu()(),rs(7,"div",99)(8,"p",78),zw(9),Gu()(),rs(10,"div",100)(11,"button",101),cg("click",function(){Ld(e);let n=gw();return Pd(n.closeDenyModal())}),zw(12,"Got it"),Gu()()()();}i&2&&(aE(9),_g(d));}function ht(i,d){if(i&1&&(rs(0,"p")(1,"strong"),zw(2),Gu(),zw(3," is scheduled. Moving "),rs(4,"strong"),zw(5),Gu(),zw(6," out would leave its games with no team, so you can only do this by swapping a team back from "),rs(7,"strong"),zw(8),Gu(),zw(9,". "),Gu()),i&2){let e=gw(2);aE(2),_g(e.fromDivName),aE(3),_g(e.movingTeam.teamName),aE(3),_g(e.toDivName);}}function bt(i,d){if(i&1&&(rs(0,"p")(1,"strong"),zw(2),Gu(),zw(3," is scheduled. Its pairings were built without "),rs(4,"strong"),zw(5),Gu(),zw(6,", so it can only come in by taking the rank of a team that leaves \u2014 pick the team it replaces. "),Gu()),i&2){let e=gw(2);aE(2),_g(e.toDivName),aE(3),_g(e.movingTeam.teamName);}}function ft(i,d){if(i&1){let e=uw();rs(0,"div",99),JC(1,ht,10,3,"p")(2,bt,7,2,"p"),rs(3,"p",105),zw(4," The two teams trade places. Each takes the other's rank and plays the games already sitting in it, so both pools keep their size and every other team's schedule is untouched. "),Gu()(),rs(5,"div",100)(6,"button",106),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.closeSwapModal())}),zw(7,"Cancel"),Gu(),rs(8,"button",101),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.proceedToPicker())}),zw(9,"Choose a team to swap back"),Gu()();}if(i&2){let e=gw();aE(),XC(e.fromScheduled?1:2);}}function wt(i,d){if(i&1&&(rs(0,"span",116),zw(1),Gu()),i&2){let e=gw().$implicit;aE(),_g(e.clubName);}}function St(i,d){i&1&&ng(0,"i",117);}function Tt(i,d){if(i&1){let e=uw();rs(0,"button",113),cg("click",function(){let n=Ld(e).$implicit,l=gw(3);return Pd(l.chooseCounterTeam(n))}),rs(1,"span",114),zw(2),Gu(),rs(3,"span",115),zw(4),JC(5,wt,2,1,"span",116),Gu(),JC(6,St,1,0,"i",117),Gu();}if(i&2){let e=d.$implicit,t=gw(2);yg("selected",t.counterTeam?.teamId===e.teamId),eg("aria-checked",t.counterTeam?.teamId===e.teamId),aE(2),_g(e.divRank),aE(2),Yu(" ",e.teamName," "),aE(),XC(e.clubName?5:-1),aE(),XC(t.counterTeam?.teamId===e.teamId?6:-1);}}function kt(i,d){if(i&1&&(rs(0,"p",105),zw(1),Gu()),i&2){let e=gw(2);aE(),Yu(" ",e.toDivName," has no team available to swap back. ");}}function yt(i,d){if(i&1&&(rs(0,"div",110)(1,"div",118)(2,"strong"),zw(3),Gu(),ng(4,"i",119),zw(5),rs(6,"strong"),zw(7),Gu()(),rs(8,"div",118)(9,"strong"),zw(10),Gu(),ng(11,"i",119),zw(12),rs(13,"strong"),zw(14),Gu()(),rs(15,"div",120),zw(16,"All other ranks in both pools stay as they are."),Gu()()),i&2){let e=d,t=gw(2);aE(3),_g(t.movingTeam.teamName),aE(2),Yu(" ",t.toDivName,", rank "),aE(2),_g(e.divRank),aE(3),_g(e.teamName),aE(2),Yu(" ",t.fromDivName,", rank "),aE(2),_g(t.movingTeam.divRank);}}function Pt(i,d){i&1&&ng(0,"span",112);}function Dt(i,d){if(i&1){let e=uw();rs(0,"div",99)(1,"p",107),zw(2," Pick the team from "),rs(3,"strong"),zw(4),Gu(),zw(5," that moves to "),rs(6,"strong"),zw(7),Gu(),zw(8," in exchange for "),rs(9,"strong"),zw(10),Gu(),zw(11,". "),Gu(),rs(12,"div",108),nw(13,Tt,7,7,"button",109,j,false,kt,2,1,"p",105),Gu(),JC(16,yt,17,6,"div",110),Gu(),rs(17,"div",100)(18,"button",106),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.backToStatement())}),zw(19,"Back"),Gu(),rs(20,"button",111),cg("click",function(){Ld(e);let n=gw(2);return Pd(n.confirmSwap())}),JC(21,Pt,1,0,"span",112),zw(22," Swap "),Gu()();}if(i&2){let e,t=gw(),n=gw();aE(4),_g(t.toDivName),aE(3),_g(t.fromDivName),aE(3),_g(t.movingTeam.teamName),aE(3),rw(n.counterTeamCandidates()),aE(3),XC((e=t.counterTeam)?16:-1,e),aE(4),tg("disabled",!t.counterTeam||n.isTransferring()),aE(),XC(n.isTransferring()?21:-1);}}function Mt(i,d){if(i&1){let e=uw();
1rs(0,"div",93),cg("click",function(){Ld(e);let n=gw();return Pd(n.closeSwapModal())}),rs(1,"div",102),cg("click",function(n){return n.stopPropagation()}),rs(2,"div",95)(3,"h5",103),ng(4,"i",104),zw(5),Gu(),rs(6,"button",98),cg("click",function(){Ld(e);let n=gw();return Pd(n.closeSwapModal())}),Gu()(),JC(7,ft,10,1)(8,Dt,23,7),Gu()();}if(i&2){let e=d;aE(5),Yu(" ",e.stage==="statement"?"This has to be a swap":"Which team comes back?"," "),aE(2),XC(e.stage==="statement"?7:8);}}var Gt=(()=>{class i{poolService=I(ue);toast=I(h);jobService=I($);isLacrosseJob=Cb(()=>!!this.jobService.currentJob()?.usLaxNumberValidThroughDate);divisionOptions=Ti([]);groupedDivisionOptions=Cb(()=>this.groupByAgegroup(this.divisionOptions()));sourceDropdownOpen=Ti(false);targetDropdownOpen=Ti(false);sourceDropdownMaxHeight=Ti(null);targetDropdownMaxHeight=Ti(null);sourceDivId=Ti(null);sourceDiv=Cb(()=>this.divisionOptions().find(e=>e.divId===this.sourceDivId())??null);sourceTeams=Ti([]);sourceSelected=Ti(new Set);sourceFilter=Ti("");sourceSortCol=Ti(null);sourceSortDir=Ti(null);sortedFilteredSourceTeams=Cb(()=>this.sortTeams(this.filterTeams(this.sourceTeams(),this.sourceFilter()),this.sourceSortCol(),this.sourceSortDir()));targetDivId=Ti(null);targetDiv=Cb(()=>this.divisionOptions().find(e=>e.divId===this.targetDivId())??null);targetTeams=Ti([]);targetSelected=Ti(new Set);targetFilter=Ti("");targetSortCol=Ti(null);targetSortDir=Ti(null);sortedFilteredTargetTeams=Cb(()=>this.sortTeams(this.filterTeams(this.targetTeams(),this.targetFilter()),this.targetSortCol(),this.targetSortDir()));transferPreview=Ti(null);transferDirection=Ti("source-to-target");isLoadingPreview=Ti(false);isTransferring=Ti(false);swappingId=Ti(null);justMovedIds=Ti(new Set);injector=I(Ee$1);sourceScroll=Sj("sourceScroll");targetScroll=Sj("targetScroll");
1pendingScroll=null;canConfirmTransfer=Cb(()=>!!this.transferPreview()&&!this.isTransferring());swapModal=Ti(null);denyModal=Ti(null);counterTeamCandidates=Cb(()=>{let e=this.swapModal();if(!e)return [];let t=e.direction==="source-to-target"?this.targetTeams():this.sourceTeams();return ((e.direction==="source-to-target"?this.targetDiv():this.sourceDiv())?.isDroppedTeams?[...t]:t.filter(h=>h.active)).sort((h,S)=>h.divRank-S.divRank)});editingDivRankTeamId=Ti(null);editingDivRankValue=Ti(0);sourceRankOptions=Cb(()=>Array.from({length:this.sourceTeams().filter(e=>e.active).length},(e,t)=>t+1));targetRankOptions=Cb(()=>Array.from({length:this.targetTeams().filter(e=>e.active).length},(e,t)=>t+1));isLoading=Ti(false);constructor(){this.loadDivisionOptions();}toggleSourceDropdown(e){let t=!this.sourceDropdownOpen();t&&this.sourceDropdownMaxHeight.set(this.computeDropdownMaxHeight(e.currentTarget)),this.sourceDropdownOpen.set(t);}toggleTargetDropdown(e){let t=!this.targetDropdownOpen();t&&this.targetDropdownMaxHeight.set(this.computeDropdownMaxHeight(e.currentTarget)),this.targetDropdownOpen.set(t);}computeDropdownMaxHeight(e){let t=e.getBoundingClientRect().bottom,n=e.closest(".pool-assignment-container"),l=n?n.getBoundingClientRect().bottom:window.innerHeight;return Math.max(160,Math.floor(l-t-12))}selectSourceDiv(e){this.sourceDropdownOpen.set(false),this.onSourceDivChange(e);}selectTargetDiv(e){this.targetDropdownOpen.set(false),this.onTargetDivChange(e);}closeDropdowns(){this.sourceDropdownOpen.set(false),this.targetDropdownOpen.set(false);}contrastText=u;loadDivisionOptions(){this.isLoading.set(true),this.poolService.getDivisions().subscribe({next:e=>{this.divisionOptions.set(e),this.isLoading.set(false),!this.sourceDivId()&&e.length>0&&this.onSourceDivChange(e[0].divId);},error:e=>{this.toast.show(e?.error?.message||"Failed to load division options.","danger",4e3),this.isLoading.set(false);}});}onSourceDivChange(e){if(this.sourceDivId.set(e),this.justMovedIds.set(new Set),this.sourceSelected.set(new Set),this.sourceFilter.set(""),this.sourceSortCol.set(null),this.sourceSortDir.set(null),this.cancelTransferPreview(),!e){this.sourceTeams.set([]);return}this.loadTeams("source",e);}onTargetDivChange(e){if(this.targetDivId.set(e),this.justMovedIds.set(new Set),this.targetSelected.set(new Set),this.targetFilter.set(""),this.targetSortCol.set(null),this.targetSortDir.set(null),this.cancelTransferPreview(),!e){this.targetTeams.set([]);return}this.loadTeams("target",e);}loadTeams(e,t){this.poolService.getTeams(t).subscribe({next:n=>{if(e==="source"?this.sourceTeams.set(n):this.targetTeams.set(n),this.pendingScroll?.panel===e){let l=this.pendingScroll;this.pendingScroll=null,dE(()=>this.scrollToMovedRow(l.panel,l.teamId),{injector:this.injector});}},error:n=>{this.toast.show(n?.error?.message||"Failed to load teams.","danger",4e3);}});}onSort(e,t){let n=e==="source"?this.sourceSortCol():this.targetSortCol(),l=e==="source"?this.sourceSortDir():this.targetSortDir(),h;n!==t?h="asc":l==="asc"?h="desc":h=null,e==="source"?(this.sourceSortCol.set(h?t:null),this.sourceSortDir.set(h)):(this.targetSortCol.set(h?t:null),this.targetSortDir.set(h));}sortTeams(e,t,n){if(!t||!n)return e;let l=n==="asc"?1:-1;return t==="nationalRankingData"?[...e].sort((h,S)=>{let f=this.getNationalRank(h),k=this.getNationalRank(S);return f==null&&k==null?0:f==null?1:k==null?-1:(f-k)*l}):[...e].sort((h,S)=>{let f=h[t],k=S[t];return f==null&&k==null?0:f==null?1:k==null?-1:typeof f=="string"&&typeof k=="string"?f.localeCompare(k)*l:typeof f=="number"&&typeof k=="number"?(f-k)*l:typeof f=="boolean"&&typeof k=="boolean"?((f?1:0)-(k?1:0))*l:String(f).localeCompare(String(k))*l})}toggleSourceSelect(e){let t=new Set(this.sourceSelected());t.has(e)?t.delete(e):t.add(e),this.sourceSelected.set(t);}toggleTargetSelect(e){let t=new Set(this.targetSelected());t.has(e)?t.delete(e):t.add(e),this.targetSelected.set(t);}selectAllSource(){this.sourceSelected.set(new Set(this.sortedFilteredSourceTeams().map(e=>e.teamId)));}deselectAllSource(){this.sourceSelected.set(new Set);}selectAllTarget(){this.targetSelected.set(new Set(this.sortedFilteredTargetTeams().map(e=>e.teamId)));}deselectAllTarget(){this.targetSelected.set(new Set);}
1swapToTarget(e){if(!this.targetDivId()||!this.sourceDivId()){this.toast.show("Select a target division first.","warning");return}this.beginMove(e,"source-to-target");}swapToSource(e){if(!this.sourceDivId()||!this.targetDivId()){this.toast.show("Select a source division first.","warning");return}this.beginMove(e,"target-to-source");}beginMove(e,t){let n=t==="source-to-target"?this.sourceDiv():this.targetDiv(),l=t==="source-to-target"?this.targetDiv():this.sourceDiv();if(!n||!l)return;if(!n.isScheduled&&!l.isScheduled){this.swappingId.set(e.teamId),this.executeTransferDirect([e.teamId],[],n.divId,l.divId,false,e.teamName);return}let h=this.denialFor(n,l,1,1);if(h){this.denyModal.set(h);return}this.swapModal.set({stage:"statement",direction:t,movingTeam:e,fromDivName:n.divName,toDivName:l.divName,fromScheduled:n.isScheduled,counterTeam:null});}denialFor(e,t,n,l){if(!e.isScheduled&&!t.isScheduled||n===1&&l===1)return null;let h=e.isScheduled&&t.isScheduled,S=e.isScheduled?e.divName:t.divName,f=h?`${e.divName} and ${t.divName} are both scheduled`:`${S} is scheduled`,k=h?"break both schedules down first":`break down ${S}'s schedule first`;return `${f}, so a team can only cross that boundary as a one-for-one swap: the team coming the other way takes the departing team's rank and plays its games, which is what keeps the pairing matrix whole. Use the swap arrow on a team's row to pick the team it trades places with, or ${k}.`}proceedToPicker(){let e=this.swapModal();e&&this.swapModal.set(K(Q({},e),{stage:"picker"}));}backToStatement(){let e=this.swapModal();e&&this.swapModal.set(K(Q({},e),{stage:"statement",counterTeam:null}));}chooseCounterTeam(e){let t=this.swapModal();t&&this.swapModal.set(K(Q({},t),{counterTeam:e}));}closeSwapModal(){this.swapModal.set(null);}closeDenyModal(){this.denyModal.set(null);}confirmSwap(){let e=this.swapModal();if(!e?.counterTeam||this.isTransferring())return;let t=e.direction==="source-to-target"?this.sourceDivId():this.targetDivId(),n=e.direction==="source-to-target"?this.targetDivId():this.sourceDivId();this.isTransferring.set(true),this.poolService.executeTransfer({sourceTeamIds:[e.movingTeam.teamId],targetTeamIds:[e.counterTeam.teamId],sourceDivId:t,targetDivId:n,isSymmetricalSwap:true}).subscribe({next:l=>{this.toast.show(`${e.movingTeam.teamName} and ${e.counterTeam.teamName} swapped pools. ${l.message}`,"success",5e3),this.justMovedIds.set(new Set([e.movingTeam.teamId,e.counterTeam.teamId])),this.queueScrollToMoved([e.movingTeam.teamId],n),this.isTransferring.set(false),this.swapModal.set(null),this.reloadAfterTransfer();},error:l=>{this.toast.show(l?.error?.message||"Swap failed.","danger",6e3),this.isTransferring.set(false);}});}reloadAfterTransfer(){this.sourceSelected.set(new Set),this.targetSelected.set(new Set),this.sourceDivId()&&this.loadTeams("source",this.sourceDivId()),this.targetDivId()&&this.loadTeams("target",this.targetDivId()),this.poolService.getDivisions().subscribe({next:e=>this.divisionOptions.set(e)});}movesRight(e){return e==="source-to-target"==(this.transferDirection()==="source-to-target")}moveSelectedToTarget(){this.sourceSelected().size===0||!this.sourceDivId()||!this.targetDivId()||this.refuseBatchIfScheduled("source-to-target")||this.requestPreview("source-to-target");}moveSelectedToSource(){this.targetSelected().size===0||!this.targetDivId()||!this.sourceDivId()||this.refuseBatchIfScheduled("target-to-source")||this.requestPreview("target-to-source");}refuseBatchIfScheduled(e){let t=e==="source-to-target"?this.sourceDiv():this.targetDiv(),n=e==="source-to-target"?this.targetDiv():this.sourceDiv();if(!t||!n||!t.isScheduled&&!n.isScheduled)return false;let l=e==="source-to-target"?this.sourceSelected().size:this.targetSelected().size;return this.denyModal.set(this.denialFor(t,n,l,0)??"A schedule is involved. Use the swap arrow on a team's row to trade one team for one team."),true}requestPreview(e){this.isLoadingPreview.set(true),this.transferDirection.set(e);let t=Array.from(e==="source-to-target"?this.sourceSelected():this.targetSelected()),n=Array.from(e==="source-to-target"?this.targetSelected():this.sourceSelected()),l=e==="source-to-target"?this.sourceDivId():this.targetDivId(),h=e==="source-to-target"?this.targetDivId():this.sourceDivId();this.poolService.previewTransfer({sourceTeamIds:t,targetTeamIds:n,sourceDivId:l,targetDivId:h,isSymmetricalSwap:n.length>0}).subscribe({next:S=>{this.transferPreview.set(S),this.isLoadingPreview.set(false);},error:S=>{this.toast.show(S?.error?.message||"Failed to preview transfer.","danger",4e3),this.isLoadingPreview.set(false);}});}confirmTransfer(){if(!this.transferPreview())return;let t=this.transferDirection(),n=Array.from(t==="source-to-target"?this.sourceSelected():this.targetSelected()),l=Array.from(t==="source-to-target"?this.targetSelected():this.sourceSelected()),h=t==="source-to-target"?this.sourceDivId():this.targetDivId(),S=t==="source-to-target"?this.targetDivId():this.sourceDivId();this.isTransferring.set(true),this.poolService.executeTransfer({sourceTeamIds:n,targetTeamIds:l,sourceDivId:h,targetDivId:S,isSymmetricalSwap:l.length>0}).subscribe({next:f=>{this.toast.show(f.message,"success",4e3),this.justMovedIds.set(new Set([...n,...l])),this.queueScrollToMoved(n,S),this.isTransferring.set(false),this.transferPreview.set(null),this.reloadAfterTransfer();},error:f=>{this.toast.show(f?.error?.message||"Transfer failed.","danger",4e3),this.isTransferring.set(false);}});}executeTransferDirect(e,t,n,l,h,S){this.poolService.executeTransfer({sourceTeamIds:e,targetTeamIds:t,sourceDivId:n,targetDivId:l,isSymmetricalSwap:h}).subscribe({next:f=>{this.toast.show(S?`${S} moved. ${f.message}`:f.message,"success",3e3),this.justMovedIds.set(new Set([...e,...t])),this.queueScrollToMoved(e,l),this.swappingId.set(null),this.reloadAfterTransfer();},error:f=>{this.toast.show(f?.error?.message||"Transfer failed.","danger",4e3),this.swappingId.set(null);}});}cancelTransferPreview(){this.transferPreview.set(null),this.isLoadingPreview.set(false),this.swapModal.set(null),this.denyModal.set(null);}queueScrollToMoved(e,t){let n=e[0];n&&(this.pendingScroll={panel:t===this.targetDivId()?"target":"source",teamId:n});}scrollToMovedRow(e,t){(e==="source"?this.sourceScroll():this.targetScroll())?.nativeElement?.querySelector(`tr[data-team-id="${t}"]`)?.scrollIntoView({behavior:matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",block:"nearest"});}toggleActive(e){let t=!e.active;this.poolService.toggleTeamActive(e.teamId,t).subscribe({next:()=>{let n=l=>l.map(h=>h.teamId===e.teamId?K(Q({},h),{active:t}):h);this.sourceTeams.update(l=>n(l)),this.targetTeams.update(l=>n(l));},error:n=>{this.toast.show(n?.error?.message||"Failed to toggle active status.","danger",4e3);}});}startDivRankEdit(e){this.editingDivRankTeamId.set(e.teamId),this.editingDivRankValue.set(e.divRank);}saveDivRankEdit(e){let t=this.editingDivRankValue();if(t===e.divRank){this.editingDivRankTeamId.set(null);return}this.poolService.updateTeamDivRank(e.teamId,t).subscribe({next:n=>{this.editingDivRankTeamId.set(null),this.sourceDivId()&&this.loadTeams("source",this.sourceDivId()),this.targetDivId()&&this.loadTeams("target",this.targetDivId()),this.toast.show(n.message,n.gamesReseated>0?"success":"info",6e3);},error:n=>{this.toast.show(n?.error?.message||"Failed to update rank.","danger",4e3);}});}cancelDivRankEdit(){this.editingDivRankTeamId.set(null);}capacityPercent(e){return !e||e.maxTeams===0?0:Math.min(100,Math.round(e.teamCount/e.maxTeams*100))}capacityColor(e){let t=this.capacityPercent(e);return t>90?"var(--bs-danger)":t>75?"var(--bs-warning)":"var(--bs-success)"}sortIcon(e,t){let n=e==="source"?this.sourceSortCol():this.targetSortCol(),l=e==="source"?this.sourceSortDir():this.targetSortDir();return n!==t||!l?"bi-chevron-expand":l==="asc"?"bi-sort-up":"bi-sort-down"}filterTeams(e,t){if(!t.trim())return e;let n=t.toLowerCase();return e.filter(l=>l.teamName.toLowerCase().includes(n)||(l.clubName??"").toLowerCase().includes(n)||(l.clubRepName??"").toLowerCase().includes(n))}getNationalRank(e){if(!e.nationalRankingData)return null;try{return JSON.parse(e.nationalRankingData).rank??null}catch{return null}}getRankingTooltip(e){if(!e.nationalRankingData)return "";try{let t=JSON.parse(e.nationalRankingData),n=t.season?`${t.season}-${String((Number(t.season)+1)%100).padStart(2,"0")} season`:"season not recorded";return `${t.team} 2Rating: ${t.rating} | Record: ${t.record} 3AGD: ${t.agd} | Sched: ${t.sched} 4${n}`}catch{return ""}}groupByAgegroup(e){let t=new Map;for(let n of e){let l=n.agegroupName??"Other";t.has(l)||t.set(l,[]),t.get(l).push(n);}return Array.from(t.entries()).map(([n,l])=>({label:n,agegroupColor:l[0]?.agegroupColor??null,divisions:l}))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=sC({type:i,selectors:[["app-pool-assignment"]],viewQuery:function(t,n){t&1&&pg(n.sourceScroll,he,5)(n.targetScroll,be,5),t&2&&Cw(2);},decls:14,vars:4,consts:[["sourceScroll",""],["targetScroll",""],[1,"pool-assignment-container"],[1,"pool-header"],[1,"page-title"],["target","../../scheduling","routePath","pool-assignment"],[1,"bi","bi-people","page-title-icon"],[1,"d-flex","gap-2"],["routerLink","../../tools/uslax-rankings",1,"btn","btn-sm","btn-outline-primary"],["title","Refresh division options",1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"text-center","py-5"],[1,"pool-modal-backdrop"],[1,"bi","bi-trophy","me-1"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"pool-panels"],[1,"pool-panel"],[1,"panel-header"],[1,"form-label","fw-semibold","text-uppercase","small","mb-1","d-flex","align-items-center","justify-content-between","gap-2"],[1,"badge-legend","text-body-secondary"],[1,"fw-semibold"],[1,"badge-legend-chip"],[1,"badge-legend-chip","badge-legend-chip--muted"],[1,"pool-dropdown-wrapper"],[1,"pool-dropdown-trigger","form-select","form-select-sm","text-start",3,"click"],[1,"capacity-bar","mt-1"],["type","text","placeholder","Filter teams...",1,"form-control","form-control-sm","mt-2",3,"ngModel"],[1,"panel-body"],[1,"table-scroll-wrapper"],[1,"text-center","text-body-secondary","py-4"],[1,"panel-footer"],[1,"btn","btn-primary","btn-sm",3,"click","disabled"],[1,"spinner-border","spinner-border-sm","me-1"],[1,"bi","bi-arrow-right"],[1,"bi","bi-arrow-left"],[1,"transfer-preview-panel"],[1,"color-dot"],[1,"pool-trigger-agegroup"],["title","Teams / Max teams",1,"badge","rounded-pill","ms-1"],[1,"badge","rounded-pill"],[1,"pool-dropdown-backdrop",3,"click"],[1,"pool-dropdown-panel"],[1,"pool-dropdown-group-label"],[1,"pool-dropdown-item",3,"active","disabled"],[1,"pool-dropdown-item",3,"click","disabled"],[1,"pool-dropdown-name"],["title","Teams / Max teams",1,"badge","rounded-pill"],[1,"capacity-fill"],["type","text","placeholder","Filter teams...",1,"form-control","form-control-sm","mt-2",3,"ngModelChange","ngModel"],[1,"table","table-sm","table-hover","mb-0","pool-table"],[1,"col-check","frozen","frozen-0"],["type","checkbox",1,"form-check-input",3,"change","checked"],[1,"col-rownum","frozen","frozen-1"],[1,"col-swap","frozen","frozen-2"],[1,"col-name","frozen","frozen-3","sortable",3,"click"],[1,"bi",3,"ngClass"],[1,"sortable",3,"click"],[1,"sortable","text-center",3,"click"],[3,"table-active","just-moved","text-body-tertiary"],[1,"col-rownum","frozen","frozen-1","text-body-secondary"],["title","Move to target division",1,"btn","btn-sm","btn-outline-primary","swap-btn",3,"click","disabled"],[1,"spinner-border","spinner-border-sm"],[1,"col-name","frozen","frozen-3","text-nowrap"],[1,"text-nowrap"],[1,"text-center"],[1,"badge","bg-primary-subtle","text-primary-emphasis",3,"title"],[1,"text-body-tertiary"],[1,"col-comments"],[1,"form-select","form-select-sm","inline-rank-select",3,"ngModel"],["title","Click to edit rank",1,"editable-rank"],[1,"form-select","form-select-sm","inline-rank-select",3,"ngModelChange","change","ngModel"],[3,"ngValue"],["title","Click to edit rank",1,"editable-rank",3,"click"],[1,"bi","bi-inbox","fs-3","d-block","mb-1"],[1,"bi","bi-arrow-up-circle","fs-3","d-block","mb-1"],["title","Move to source division",1,"btn","btn-sm","btn-outline-primary","swap-btn",3,"click","disabled"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"mb-0"],["aria-label","Close",1,"btn-close","btn-close-sm",3,"click"],[1,"table-responsive"],[1,"club-rep-impact"],[1,"d-flex","justify-content-end","gap-2","mt-3"],[1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"btn","btn-sm","btn-primary",3,"click","disabled"],[1,"table","table-sm","mb-2"],[1,"text-end"],[1,"bi","bi-arrow-right","text-primary"],[1,"bi","bi-arrow-left","text-info"],[1,"badge","bg-warning-subtle","text-warning-emphasis",3,"title"],[1,"bi","bi-exclamation-triangle"],[1,"small","fw-semibold","text-uppercase","mb-1"],[1,"d-flex","justify-content-between","small"],[1,"pool-modal-backdrop",3,"click"],["role","alertdialog","aria-modal","true","aria-labelledby","deny-title",1,"pool-modal",3,"click"],[1,"pool-modal-header"],["id","deny-title",1,"mb-0"],["aria-hidden","true",1,"bi","bi-calendar-x","me-2"],["aria-label","Close",1,"btn-close",3,"click"],[1,"pool-modal-body"],[1,"pool-modal-footer"],[1,"btn","btn-primary",3,"click"],["role","dialog","aria-modal","true","aria-labelledby","swap-title",1,"pool-modal",3,"click"],["id","swap-title",1,"mb-0"],["aria-hidden","true",1,"bi","bi-arrow-left-right","me-2"],[1,"text-body-secondary","small","mb-0"],[1,"btn","btn-outline-secondary",3,"click"],[1,"small","text-body-secondary"],["role","radiogroup","aria-label","Team to swap back",1,"counter-team-list"],["type","button","role","radio",1,"counter-team-row",3,"selected"],["aria-live","polite",1,"swap-summary"],[1,"btn","btn-primary",3,"click","disabled"],["aria-hidden","true",1,"spinner-border","spinner-border-sm","me-1"],["type","button","role","radio",1,"counter-team-row",3,"click"],[1,"counter-rank"],[1,"counter-name"],[1,"counter-club"],["aria-hidden","true",1,"bi","bi-check-lg"],[1,"swap-summary-line"],["aria-hidden","true",1,"bi","bi-arrow-right","mx-1"],[1,"swap-summary-note"]],template:function(t,n){if(t&1&&(rs(0,"div",2)(1,"div",3)(2,"h2",4),ng(3,"app-checklist-back-link",5)(4,"i",6),zw(5," Team Pool Assignment"),Gu(),rs(6,"div",7),JC(7,we,3,0,"a",8),rs(8,"button",9),cg("click",function(){return n.loadDivisionOptions()}),ng(9,"i",10),Gu()()(),JC(10,Se,4,0,"div",11)(11,Ct,63,17),Gu(),JC(12,xt,13,1,"div",12),JC(13,Mt,9,2,"div",12)),t&2){let l,h;aE(7),XC(n.isLacrosseJob()?7:-1),aE(3),XC(n.isLoading()?10:11),aE(2),XC((l=n.denyModal())?12:-1,l),aE(),XC((h=n.swapModal())?13:-1,h);}},dependencies:[x_,D_,Yn,zn,Zn,Je$1,Dt$1,Ln,un,$t,P,M_,N_,S_],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;padding:var(--space-4)}.pool-assignment-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-3);height:calc(100vh - 200px)}.pool-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.pool-panels[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3);flex:1;min-height:0}.pool-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;border:1px solid var(--bs-border-color);border-radius:var(--bs-border-radius);background:var(--bs-body-bg);overflow:hidden}.panel-header[_ngcontent-%COMP%]{padding:var(--space-3);border-bottom:1px solid var(--bs-border-color);background:var(--bs-tertiary-bg)}.panel-body[_ngcontent-%COMP%]{flex:1;overflow:hidden;display:flex;flex-direction:column}.panel-footer[_ngcontent-%COMP%]{padding:var(--space-2) var(--space-3);border-top:1px solid var(--bs-border-color);display:flex;justify-content:flex-end}.table-scroll-wrapper[_ngcontent-%COMP%]{flex:1;overflow:auto;position:relative}.pool-table[_ngcontent-%COMP%]{white-space:nowrap;font-size:var(--font-size-sm)}.pool-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .pool-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:var(--space-1) var(--space-2);vertical-align:middle}.pool-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--font-size-xs);font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--bs-secondary-color);border-bottom-width:2px;position:sticky;top:0;background:var(--bs-body-bg);z-index:1}.frozen[_ngcontent-%COMP%]{position:sticky;z-index:2;backgro
4und-color:var(--bs-body-bg)}tr.table-active[_ngcontent-%COMP%] .frozen[_ngcontent-%COMP%]{background-color:var(--bs-body-bg);background-image:linear-gradient(var(--bs-table-active-bg),var(--bs-table-active-bg))}tr[_ngcontent-%COMP%]:hover .frozen[_ngcontent-%COMP%]{background-color:var(--bs-body-bg);background-image:linear-gradient(var(--bs-table-hover-bg),var(--bs-table-hover-bg))}tr.just-moved[_ngcontent-%COMP%] .frozen[_ngcontent-%COMP%]{background-color:var(--bs-body-bg);background-image:linear-gradient(color-mix(in srgb,var(--bs-warning) 18%,transparent),color-mix(in srgb,var(--bs-warning) 18%,transparent))}tr.just-moved[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{background-image:linear-gradient(color-mix(in srgb,var(--bs-warning) 18%,transparent),color-mix(in srgb,var(--bs-warning) 18%,transparent))}tr.just-moved[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{box-shadow:inset 3px 0 0 var(--bs-warning)}thead[_ngcontent-%COMP%] .frozen[_ngcontent-%COMP%]{z-index:3}.frozen-0[_ngcontent-%COMP%]{left:0}.frozen-1[_ngcontent-%COMP%]{left:32px}.frozen-2[_ngcontent-%COMP%]{left:64px}.frozen-3[_ngcontent-%COMP%]{left:104px;border-right:2px solid var(--bs-border-color)}.col-rownum[_ngcontent-%COMP%]{width:32px;min-width:32px;text-align:center;font-size:var(--font-size-xs)}.col-swap[_ngcontent-%COMP%]{width:40px;min-width:40px;text-align:center}.col-name[_ngcontent-%COMP%]{min-width:160px;max-width:220px;font-weight:500}.col-check[_ngcontent-%COMP%]{width:32px;min-width:32px;text-align:center}.col-comments[_ngcontent-%COMP%]{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.swap-btn[_ngcontent-%COMP%]{padding:0 var(--space-1);line-height:1.4;font-size:var(--font-size-xs);border-radius:var(--bs-border-radius-sm)}.swap-btn[_ngcontent-%COMP%] .spinner-border-sm[_ngcontent-%COMP%]{width:.75rem;height:.75rem}.sortable[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .15s ease}.sortable[_ngcontent-%COMP%]:hover{color:var(--bs-primary)}.sortable[_ngcontent-%COMP%] .bi[_ngcontent-%COMP%]{font-size:var(--font-size-2xs);opacity:.5;margin-left:2px}.sortable[_ngcontent-%COMP%]:hover .bi[_ngcontent-%COMP%]{opacity:.8}.capacity-bar[_ngcontent-%COMP%]{height:6px;border-radius:var(--radius-sm);background:var(--bs-secondary-bg)}.capacity-fill[_ngcontent-%COMP%]{height:100%;border-radius:var(--radius-sm);transition:width .3s ease}.inline-rank-select[_ngcontent-%COMP%]{width:64px;text-align:center;padding:var(--space-1);font-size:var(--font-size-sm)}.editable-rank[_ngcontent-%COMP%]{cursor:pointer;padding:var(--space-1) var(--space-1);border-radius:var(--bs-border-radius-sm);border:1px dashed transparent;transition:border-color .15s ease}.editable-rank[_ngcontent-%COMP%]:hover{border-color:var(--bs-primary)}.transfer-preview-panel[_ngcontent-%COMP%]{padding:var(--space-3);border:1px solid var(--bs-border-color);border-radius:var(--bs-border-radius);background:var(--bs-tertiary-bg)}.club-rep-impact[_ngcontent-%COMP%]{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--bs-border-color)}@media(max-width:767.98px){.pool-panels[_ngcontent-%COMP%]{grid-template-columns:1fr}.pool-panel[_ngcontent-%COMP%]{max-height:50vh}.pool-assignment-container[_ngcontent-%COMP%]{height:auto}}.pool-dropdown-wrapper[_ngcontent-%COMP%]{position:relative}.pool-dropdown-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-1);cursor:pointer}.pool-dropdown-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9}.pool-dropdown-panel[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;z-index:10;max-height:320px;overflow-y:auto;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:var(--space-1) 0}.pool-dropdown-group-label[_ngcontent-%COMP%]{padding:var(--space-1) var(--space-3);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);text-transform:uppercase;color:var(--bs-secondary-color);letter-spacing:.03em}.pool-dropdown-group-label[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid var(--bs-border-color);margin-top:var(--space-1);padding-top:var(--space-2)}.pool-dropdown-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-1) var(--space-3);border:none;background:none;font-size:var(--font-size-sm);color:var(--bs-body-color);cursor:pointer;text-align:start}.pool-dropdown-item[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bs-primary-bg-subtle)}.pool-dropdown-item.active[_ngcontent-%COMP%]{background:rgba(var(--bs-primary-rgb),.1);font-weight:var(--font-weight-medium)}.pool-dropdown-item[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}
4.pool-dropdown-name[_ngcontent-%COMP%]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pool-trigger-agegroup[_ngcontent-%COMP%]{color:var(--bs-secondary-color);font-weight:var(--font-weight-normal)}.badge-legend[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--font-size-xs);font-weight:var(--font-weight-normal);text-transform:none;letter-spacing:0;white-space:nowrap}.badge-legend-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:0 var(--space-2);border-radius:var(--radius-pill, 50rem);background:var(--bs-secondary-bg);color:var(--bs-secondary-color);font-weight:var(--font-weight-semibold)}.badge-legend-chip--muted[_ngcontent-%COMP%]{opacity:.7}.color-dot[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:1px solid var(--bs-border-color)}.color-dot--empty[_ngcontent-%COMP%]{border-style:dashed}.pool-modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1050;padding:var(--space-4)}.pool-modal[_ngcontent-%COMP%]{background:var(--bs-body-bg);color:var(--bs-body-color);border:1px solid var(--bs-border-color);border-radius:var(--radius-md);box-shadow:var(--shadow-xl);width:100%;max-width:32rem;max-height:calc(100vh - var(--space-8));display:flex;flex-direction:column;overflow:hidden}.pool-modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-4);border-bottom:1px solid var(--bs-border-color)}.pool-modal-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold)}.pool-modal-body[_ngcontent-%COMP%]{padding:var(--space-4);overflow-y:auto}.pool-modal-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.pool-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-4);border-top:1px solid var(--bs-border-color);background:var(--bs-tertiary-bg)}.counter-team-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-1);max-height:18rem;overflow-y:auto;margin-bottom:var(--space-3)}.counter-team-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:var(--radius-sm);color:var(--bs-body-color);text-align:left;transition:background-color .12s ease,border-color .12s ease}.counter-team-row[_ngcontent-%COMP%]:hover{background:var(--bs-table-hover-bg)}.counter-team-row[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:var(--shadow-focus)}.counter-team-row.selected[_ngcontent-%COMP%]{background:var(--bs-primary-bg-subtle);border-color:var(--bs-primary);font-weight:var(--font-weight-semibold)}.counter-rank[_ngcontent-%COMP%]{flex:0 0 auto;min-width:1.75rem;padding:0 var(--space-1);text-align:center;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--bs-secondary-color);background:var(--bs-secondary-bg);border-radius:var(--radius-pill)}.counter-name[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:var(--font-size-sm)}.counter-club[_ngcontent-%COMP%]{display:block;font-size:var(--font-size-2xs);font-weight:var(--font-weight-normal);color:var(--bs-secondary-color)}.swap-summary[_ngcontent-%COMP%]{padding:var(--space-3);background:var(--bs-primary-bg-subtle);border:1px solid var(--bs-primary);border-radius:var(--radius-sm);font-size:var(--font-size-sm)}.swap-summary-line[_ngcontent-%COMP%] + .swap-summary-line[_ngcontent-%COMP%]{margin-top:var(--space-1)}.swap-summary-note[_ngcontent-%COMP%]{margin-top:var(--space-2);font-size:var(--font-size-xs);color:var(--bs-secondary-color)}@media(prefers-reduced-motion:reduce){.counter-team-row[_ngcontent-%COMP%]{transition:none!important}}']})}return i})();export{Gt as PoolAssignmentComponent};
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.