1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2439bdd0-0c07-5071-87a3-950647c88f8d")}catch(e){}}(); 3import{a as me,b as ke}from"./chunk-M5E33PEE.js";import{a as de,b as we}from"./chunk-RIFL3OOI.js";import"./chunk-XPIB65IW.js";import"./chunk-XKGQNJCS.js";import{a as le,b as be,c as Ne,d as ye}from"./chunk-SRAGS2CS.js";import{c as pe,d as $e}from"./chunk-6FZMM2M6.js";import{c as _e,d as De}from"./chunk-WHEOPMQJ.js";import"./chunk-YU2S3RPY.js";import{a as ce,b as xe}from"./chunk-TWV7R3YO.js";import{c as Ae,d as Ge}from"./chunk-QAGHCC2P.js";import{a as se,b as Le}from"./chunk-INDKUAVD.js";import"./chunk-TVFHHFVI.js";import"./chunk-VG5COUZO.js";import{c as ae,d as ve}from"./chunk-O7EIQKZI.js";import"./chunk-HZ3FYHNN.js";import"./chunk-BXHIM4XB.js";import"./chunk-LIY5Z5DX.js";import{c as re,d as he}from"./chunk-SEPG6I5E.js";import"./chunk-HCJKPTGM.js";import"./chunk-XES6EBUH.js";import"./chunk-7IZ7IQFS.js";import"./chunk-U2AYKEFN.js";import"./chunk-7OBMBINE.js";import{Da as ie,Ea as Te}from"./chunk-VAXTQMJG.js";import"./chunk-A7N55BD2.js";import{D as oe,E as Re,j as ne,k as fe}from"./chunk-X4TOIQZ5.js";import"./chunk-6CAXAEVI.js";import"./chunk-GNDBXVBS.js";import"./chunk-K7DQ2BDA.js";import{c as q,d as Ie,i as Z,j as Me,o as ee,p as Ee,w as te,x as ue}from"./chunk-TTQKVDQ7.js";import"./chunk-XU2EZIUM.js";import"./chunk-OWUVXM77.js";import"./chunk-LSLVPR72.js";import"./chunk-XPG54CHE.js";import"./chunk-JWWDLNIS.js";import"./chunk-Z2XXL3OC.js";import{E as Ce,s as j}from"./chunk-44QRKRNY.js";import"./chunk-QAM7USJC.js";import"./chunk-QCMZCTJ7.js";import"./chunk-3HOIF7UE.js";import"./chunk-NHBFTOZL.js";import"./chunk-SX3LWQYR.js";import{n as H,o as W,p as Y}from"./chunk-63XPFYYJ.js";import"./chunk-NDUJ7JZN.js";import{j as T,u as ge}from"./chunk-AA5DU7ME.js";import"./chunk-KWRIU4RP.js";import{T as K,U as Pe}from"./chunk-H7BNAZPX.js";import"./chunk-SUGUVUND.js";import{C as Se,u as z,y as B,z as Q}from"./chunk-RTQW647K.js";import"./chunk-UY2AHKUP.js";import"./chunk-LADI2IVP.js";import"./chunk-U3IAJHAB.js";import"./chunk-YA4WYHG7.js";import{Ca as M,Db as i,Fc as C,Gd as P,Hd as f,Ia as S,Id as J,Ja as g,Lc as N,Qc as I,Sc as p,Ub as y,Zb as G,_b as $,ad as V,fd as A,gd as O,hd as u,ke as X,mc as d,oc as m,qc as w,rc as k,sc as U,tc as l,uc as r,vc as o,wc as E,wd as F}from"./chunk-7WH55ISQ.js";import"./chunk-HEWAIBKK.js";import"./chunk-VWJE3CXY.js";import{e as Oe}from"./chunk-XN77Q2IT.js";function Ue(n,a){if(n&1&&(r(0,"tbody",15)(1,"tr",23)(2,"td",24)(3,"span"),N(4,8),o()()()()),n&2){let e=p(),_=V(6);i(2),l("colSpan",e.resolveColSpan(_));}}function Ve(n,a){if(n&1){let e=C();r(0,"span",29),I("click",function(){let t=S(e),s=p(3);return g(s.select(t));}),A(1),o();}n&2&&(i(),O(a.name));}function Fe(n,a){if(n&1){let e=C();r(0,"span",29),I("click",function(){let t=S(e),s=p(3);return g(s.select(t));}),A(1),o();}n&2&&(i(),O(a.name));}function Je(n,a){if(n&1&&(A(0),P(1,"dateTime")),n&2){let e=p().$implicit;u(" , ",J(1,1,e.organisation.subscriptionValidUntil,"DateOnly")," ");}}function Xe(n,a){if(n&1){let e=C();r(0,"tr",26),I("click",function(){let t=S(e).$implicit,s=p(2);return g(s.select(t.organisation));}),r(1,"td"),A(2),o(),r(3,"td"),A(4),o(),r(5,"td"),E(6,"rs-flag-icon",27),A(7),P(8,"countryName"),o(),r(9,"td"),d(10,Ve,2,1,"span",28),o(),r(11,"td"),d(12,Fe,2,1,"span",28),o(),r(13,"td"),A(14),P(15,"rosterSubscription"),d(16,Je,2,4),o()();}if(n&2){let e,_,t=a.$implicit,s=p(2);i(2),O(t.organisation.name),i(2),O(t.membersCount),i(2),l("ccIso3",t.organisation.address.countryCode),i(),u("\xA0",f(8,8,t.organisation.address.countryCode)),i(3),m((e=t.parent)?10:-1,e),i(2),m((_=t.governingOrg)?12:-1,_),i(2),u("",f(15,10,t.organisation.subscription)," "),i(2),m(t.organisation.subscription!==s.RosterSubscription.None?16:-1);}}function ze(n,a){if(n&1&&(r(0,"tbody",15),$(1,Xe,17,12,"tr",25),o()),n&2){let e=p();i(),l("cdkVirtualForOf",e.items);}}function Be(n,a){if(n&1&&(r(0,"rs-select-option",21),A(1),P(2,"rosterSubscription"),o()),n&2){let e=a.$implicit;l("value",e),i(),O(f(2,2,e));}}function Qe(n,a){if(n&1){let e=C();r(0,"button",30),I("click",function(){S(e);let t=p();return g(t.create());}),N(1,9),o();}}var Mt,je=Oe(()=>{Se();X();ge();Y();Ce();$e();Me();Ee();Ie();ue();De();Ge();ke();he();Re();Pe();be();Le();we();ve();xe();Te();ye();fe();X();Y();Mt=(()=>{class n extends pe{constructor(){super(),this.organisationService=M(ce),this.dialogViewerService=M(ae),this.sportEventsService=M(ie),this.RosterSubscription=K,this.selected=null,this.countryCtrl=new T(null),this.subsCtrl=new T(null);}get linkWindowScroll(){return!0;}get itemSize(){return 66;}get textFilterQueryParam(){return"ut";}
3get csvSnapshotOpts(){throw new Error("not supported");}ngOnInit(){super.ngOnInit(),this.countryCtrl.valueChanges.pipe(this.takeUntilDestroyed()).subscribe(e=>{this.filter.country=e??void 0,this.filterChanged();}),this.subsCtrl.valueChanges.pipe(this.takeUntilDestroyed()).subscribe(e=>{this.filter.subscription=e??void 0,this.filterChanged();}),this.organisationService.organisations$.pipe(this.takeUntilDestroyed()).subscribe(e=>{this.items=e,this.cd.markForCheck();});}ngAfterViewInit(){super.ngAfterViewInit(),this.startListening();}processSearchResponse(e){super.processSearchResponse(e),this.organisationService.setOrganisations(this.items);}select(e){this.viewOrganisation(e.organisationIdPk);}create(){this.viewOrganisation(0);}viewOrganisation(e){this.dialogViewerService.viewOrganisation(e);}searchUrl(){return"/api/admin/organisation/search";}createFilter(){return le();}fromJson(e){return se.fromJson(e,this.locationService);}static{this.ɵfac=function(_){return new(_||n)();};}static{this.ɵcmp=y({type:n,selectors:[["rs-organisation-panel"]],features:[F([{provide:j,useValue:{subscriptSizing:"dynamic"}}]),G],decls:33,vars:13,consts:()=>{let e;e="Organizations";let _;_="Subscription";let t;t="Organization";let s;s="Members";let R;R="Country";let h;h="Parent";let D;D="Governing";let v;v="Subscription";let b;b="Subscription";let L;L="No organizations meet your search criteria.";let x;return x="Create new organization ",[["headRow",""],t,s,R,h,D,v,b,L,x,[1,"rs-sec-nav-shadow"],["rsVpStickyOffset","",3,"maxBufferPx","minBufferPx","itemSize"],[2,"padding","24px"],[1,"rs-mat-table-compat"],[1,"rs-outline-top"],[1,"rs-outline-bottom"],["navHeader",e,3,"toggleAllEnabled"],["bgColor","off-white",3,"autoFocus","formControlCompat"],["bgColor","off-white",3,"countryFormControlIso3","withLabel"],["bgColor","off-white"],["placeholder",_,3,"formControlCompat"],[3,"value"],["mat-stroked-button","","color","primary"],[2,"height","100px"],[1,"search-info-head",2,"text-align","center",3,"colSpan"],["class","item-row",3,"click",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"item-row",3,"click"],[3,"ccIso3"],[1,"text-link"],[1,"text-link",3,"click"],["mat-stroked-button","","color","primary",3,"click"]];},template:function(_,t){_&1&&(E(0,"div",10),r(1,"cdk-virtual-scroll-viewport",11)(2,"div",12)(3,"table",13)(4,"thead",14)(5,"tr",null,0)(7,"th"),N(8,1),o(),r(9,"th"),N(10,2),o(),r(11,"th"),N(12,3),o(),r(13,"th"),N(14,4),o(),r(15,"th"),N(16,5),o(),r(17,"th"),N(18,6),o()()(),d(19,Ue,5,1,"tbody",15),d(20,ze,2,1,"tbody",15),o()()(),r(21,"rs-secondary-nav-panel",16),E(22,"rs-search-box-mk2",17)(23,"rs-country-select-mk3",18),r(24,"rs-form-field-compat",19)(25,"rs-form-field-label"),N(26,7),o(),r(27,"rs-select-base",20)(28,"rs-select-option",21),A(29,"Any"),o(),k(30,Be,3,4,"rs-select-option",21,w),o()(),d(32,Qe,2,0,"button",22),o()),_&2&&(i(),l("maxBufferPx",2e3)("minBufferPx",400)("itemSize",t.itemSize),i(18),m(!t.loaded||t.items.length===0?19:-1),i(),m(t.loaded?20:-1),i(),l("toggleAllEnabled",!1),i(),l("autoFocus",!0)("formControlCompat",t.searchCtrl),i(),l("countryFormControlIso3",t.countryCtrl)("withLabel",!0),i(4),l("formControlCompat",t.subsCtrl),i(),l("value",void 0),i(2),U(t.ts.RosterSubscriptions),i(2),m(t.uis.isAdmin()?32:-1));},dependencies:[B,z,Q,re,de,Ae,_e,te,q,ee,Z,W,H,me,ne,oe,Ne],styles:[`[_nghost-%COMP%]{position:relative;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:flex-start}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{position:fixed;top:64px;left:296px;height:calc(100vh - 64px);width:calc(100% - 296px);overflow-y:hidden!important;overflow-x:visible!important}table[_ngcontent-%COMP%]{table-layout:fixed}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:50%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] rs-athlete-avatar[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] rs-athlete-avatar[_ngcontent-%COMP%]{margin-right:12px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky;z-index:1;text-align:left}.no-results[_ngcontent-%COMP%]{height:100px!important;text-align:center;vertical-align:middle;line-height:1.5}.clear-filters[_ngcontent-%COMP%]{margin-bottom:16px}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:#f9f9f9} 4/*# sourceMappingURL=entity-manager-GMSMDYQQ.css.map */`,`table[_ngcontent-%COMP%]{max-width:1050px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:15.5%;white-space:normal}.item-row[_ngcontent-%COMP%]:hover{cursor:pointer}.item-row[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:#f9f9f9} 5/*# sourceMappingURL=organisation-panel.component-G25RQ3OJ.css.map */`],changeDetection:0});}}return n;})();});je();
5export{Mt as OrganisationPanelComponent};/**i18n:98cd60948f00bf3240ebfd0e064bf0123c90f4a120e09300fa6f8d092a2b7bea*///# sourceMappingURL=chunk-X4GHQE35.js.map 6//# debugId=2439bdd0-0c07-5071-87a3-950647c88f8d
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.