1import{a as Ht,b as Wt}from"./chunk-WTJSDK3O.js";import{a as qe,b as Rt,c as It}from"./chunk-QZJIMTBK.js";import{a as Vt,b as Ft}from"./chunk-V2W2ZLTF.js";import{a as Et,c as kt,d as At,e as Dt}from"./chunk-PPOHRS2P.js";import{a as Ve,b as ae,c as Fe,d as Re,f as Ie,g as He,i as We,j as Qe,l as Le,m as Ne,o as Be,p as Tt,q as je,r as ue}from"./chunk-T3E3VQYU.js";import{a as Kt}from"./chunk-RN2BRY5F.js";import{a as wt,b as yt}from"./chunk-DM2MQ5UY.js";import"./chunk-LTN74VUE.js";import"./chunk-WU6SUA3N.js";import"./chunk-OBFO2RBE.js";import{d as Ce,e as ut,g as ht}from"./chunk-4GDQSJLX.js";import{a as pt,c as _t,d as gt,e as Ct}from"./chunk-P2GMN2GY.js";import{a as Ot}from"./chunk-KVYPR3UG.js";import{b as vt}from"./chunk-P6HKGQYJ.js";import"./chunk-ODKSKQTJ.js";import"./chunk-RTTLAZID.js";import"./chunk-BI73S6HZ.js";import{b as Mt,f as Pt}from"./chunk-33VDPD2B.js";import{a as bt,b as xt,c as St}from"./chunk-4GTUJA5P.js";import"./chunk-TESIDIKB.js";import"./chunk-VKC7SG3Z.js";import"./chunk-J5OYU5C6.js";import"./chunk-GQSHDFBS.js";import"./chunk-7VVJYYBM.js";import"./chunk-6GLZVJZR.js";import{c as V}from"./chunk-YMTZ6J4M.js";import{b as de,c as me}from"./chunk-55DMIJMU.js";import"./chunk-JGPPDIHW.js";import{a as ft}from"./chunk-G7GRAZFL.js";import{r as j}from"./chunk-PGJ7GA2M.js";import{d as Z,e as $,f as L,g as ee,i as te,k as ne}from"./chunk-7642NDYW.js";import"./chunk-CWWEHOH4.js";import{a as N}from"./chunk-Z5P7E5KU.js";import"./chunk-PBMIYZY2.js";import{a as pe,b as _e}from"./chunk-F4AWJDBN.js";import"./chunk-CYOQTCCM.js";import"./chunk-R24DQBOE.js";import"./chunk-NAKU7C7V.js";import{a as mt,c as Te,i as Ee,j as ke}from"./chunk-4THALPH6.js";import{l as B}from"./chunk-YZRCFPH2.js";import"./chunk-QOOP5RRT.js";import"./chunk-X4QKZLNZ.js";import{n as ie,q as oe}from"./chunk-HLYJEJFU.js";import"./chunk-MVDM5O6Z.js";import{T as Ae,U as De,x as J}from"./chunk-VSMFVPVK.js";import"./chunk-5C2ONQDF.js";import"./chunk-3H2TNTGS.js";import"./chunk-6ZG4NIHF.js";import"./chunk-B5NEAK4C.js";import{G as X,H as Oe,c as U,h as G,i as xe,k as Se,m as K,n as we,o as ce,u as st,v as ct,w as dt,y as ye,z as ve}from"./chunk-IJW7YFA5.js";import{F as be,J as lt,k as Me,r as rt,x as Pe}from"./chunk-JBARNFDN.js";import{$a as le,$b as ot,Db as Q,Fa as x,Fb as ge,Fc as se,Ib as s,Jb as O,Kb as R,N as nt,Rb as M,Sa as Y,Sb as P,Tb as b,Va as he,Wa as u,Xa as h,Za as it,_a as re,ab as m,ac as fe,bb as o,bc as at,cb as i,db as E,ga as a,hb as y,ib as v,kb as w,p,q as _,qb as S,r as Xe,s as Je,sa as f,tb as C,xb as k,yb as A,za as W,zb as D}from"./chunk-FBXDQBDK.js";import{ea as T,f as H,g as tt}from"./chunk-VOZAGDK7.js";import{a as I,h as Gt}from"./chunk-E5QWB6YB.js";var Jt=["eventTypeForm"];function Zt(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Name is required "),i())}function $t(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Short Name is required"),i())}function en(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Sort position is required"),i())}function tn(t,r){if(t&1){let e=w();o(0,"div",23)(1,"button",24),S("click",function(){p(e),C();let n=Q(7);return _(n.resetForm())}),s(2,"Reset Form"),i(),o(3,"button",25),S("click",function(){p(e);let n=C();return _(n.doAction())}),s(4),i()()}if(t&2){let e=C();a(4),O(e.action)}}var Nt=(()=>{class t{api;dialogRef;data;dialog;notify;_fuseConfigService;loading=!1;mode;isMobile=!1;event=[];local_data;action;btnActionText;_eventTypeForm;_unsubscribeAll;fuseConfig;constructor(e,l,n,c,g,d){this.api=e,this.dialogRef=l,this.data=n,this.dialog=c,this.notify=g,this._fuseConfigService=d,this._unsubscribeAll=new H,this.local_data=I({},n),this.action=this.local_data.action}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.api.get("Admin/editEventType/"+this.local_data._key,!0).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.local_data=I(I({},this.local_data),e)},error:e=>{this.notify.openToaster(e.error?e.error:"An error has occured","error")}})}onNoClick(){this.dialogRef.close()}doAction(){this._eventTypeForm.valid&&this.dialogRef.close({event:this.action,data:this.local_data})}closeDialog(){this.dialogRef.close({event:"Cancel"})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(l){return new(l||t)(f(N),f(Z),f($),f(L),f(j),f(B))};static \u0275cmp=W({type:t,selectors:[["event-type-form"]],viewQuery:function(l,n){if(l&1&&k(Jt,7),l&2){let c;A(c=D())&&(n._eventTypeForm=c.first)}},decls:38,vars:19,consts:[["eventTypeForm","ngForm"],[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16"],[1,"material-icons","link",3,"mat-dialog-close"],["mat-dialog-content","",2,"display","flex","flex-direction","column"],["novalidate","",3,"ngSubmit"],[2,"display","flex","flex-direction","row","
1justify-content","space-between","align-items","center","gap","20px"],[1,"form"],["color","accent"],["matInput","","placeholder","Name","id","name","name","name","ngControl","name","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"red-fg"],["matInput","","placeholder","Short Name","id","shortName","name","shortName","ngControl","shortName","required","",3,"ngModelChange","ngModel"],[1,"form",2,"display","flex","flex-direction","column","justify-content","space-between","align-items","start"],["color","accent",1,"mb-16"],["type","number","matInput","","placeholder","Sort Position","id","sortPos","name","sortPos","ngControl","sortPos","required","",3,"ngModelChange","ngModel"],[1,"form",2,"width","100%"],["color","accent","subscriptSizing","dynamic",1,"mb-16"],["type","number","min","0","matInput","","placeholder","RP Fee Override ($ per entry)","id","rpEntryFee","name","rpEntryFee","ngControl","rpEntryFee",3,"ngModelChange","ngModel"],["name","guestAllowed","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","isLeague","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","isLeagueWithIndvEntry","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","hqOnly","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","hidden","labelPosition","after",3,"ngModelChange","checked","ngModel"],[1,"text-right","mt-16","mr-12"],["mat-raised-button","",1,"grey-300","mx-16",3,"click"],["mat-raised-button","",1,"primary",2,"width","106px",3,"click"]],template:function(l,n){if(l&1){let c=w();o(0,"div",1)(1,"span",2),s(2),i(),o(3,"span",3),s(4," close "),i()(),o(5,"div",4)(6,"form",5,0),S("ngSubmit",function(){p(c);let d=Q(7);return _(d.valid)}),o(8,"div",6)(9,"div",7)(10,"mat-form-field",8)(11,"input",9),b("ngModelChange",function(d){return p(c),P(n.local_data.name,d)||(n.local_data.name=d),_(d)}),i(),u(12,Zt,2,0,"mat-hint",10),i()(),o(13,"div",7)(14,"mat-form-field",8)(15,"input",11),b("ngModelChange",function(d){return p(c),P(n.local_data.shortName,d)||(n.local_data.shortName=d),_(d)}),i(),u(16,$t,2,0,"mat-hint",10),i()()(),o(17,"div",12)(18,"div",7)(19,"mat-form-field",13)(20,"input",14),b("ngModelChange",function(d){return p(c),P(n.local_data.sortPos,d)||(n.local_data.sortPos=d),_(d)}),i(),u(21,en,2,0,"mat-hint",10),i()(),o(22,"div",15)(23,"mat-form-field",16)(24,"input",17),b("ngModelChange",function(d){return p(c),P(n.local_data.rpEntryFee,d)||(n.local_data.rpEntryFee=d),_(d)}),i(),o(25,"mat-hint"),s(26,"Individual entries only. Blank = site's standard fee. Applies on every site using this type."),i()()(),o(27,"mat-checkbox",18),b("ngModelChange",function(d){return p(c),P(n.local_data.guestAllowed,d)||(n.local_data.guestAllowed=d),_(d)}),s(28,"Guest Players are Allowed"),i(),o(29,"mat-checkbox",19),b("ngModelChange",function(d){return p(c),P(n.local_data.isLeague,d)||(n.local_data.isLeague=d),_(d)}),s(30,"League"),i(),o(31,"mat-checkbox",20),b("ngModelChange",function(d){return p(c),P(n.local_data.isLeagueWithIndvEntry,d)||(n.local_data.isLeagueWithIndvEntry=d),_(d)}),s(32,"League with Indv Entry"),i(),o(33,"mat-checkbox",21),b("ngModelChange",function(d){return p(c),P(n.local_data.hqOnly,d)||(n.local_data.hqOnly=d),_(d)}),s(34,"HQ Only"),i(),o(35,"mat-checkbox",22),b("ngModelChange",function(d){return p(c),P(n.local_data.hidden,d)||(n.local_data.hidden=d),_(d)}),s(36,"Hidden/Archived"),i()(),u(37,tn,5,1,"div",23),i()()}if(l&2){let c=Q(7);a(2),R("",n.local_data.action," Division Type"),a(9),M("ngModel",n.local_data.name),a(),h(c.invalid&&!n.local_data.name?12:-1),a(3),M("ngModel",n.local_data.shortName),a(),h(c.invalid&&!n.local_data.shortName?16:-1),a(4),M("ngModel",n.local_data.sortPos),a(),h(c.invalid&&!n.local_data.sortPos?21:-1),a(3),M("ngModel",n.local_data.rpEntryFee),a(3),m("checked",n.local_data.guestAllowed),M("ngModel",n.local_data.guestAllowed),a(2),m("checked",n.local_data.isLeague),M("ngModel",n.local_data.isLeague),a(2),m("checked",n.local_data.isLeagueWithIndvEntry),M("ngModel",n.local_data.isLeagueWithIndvEntry),a(2),m("checked",n.local_data.hqOnly),M("ngModel",n.local_data.hqOnly),a(2),m("checked",n.local_data.hidden),M("ngModel",n.local_data.hidden),a(2),h(c?37:-1)}},dependencies:[ne,ee,te,X,we,U,ce,G,xe,ve,ye,K,Se,Oe,ke,Ee,Te,_e,pe,me,de,oe,ie],styles:["#eventTypeDialog[_ngcontent-%COMP%] .custom-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{padding:0!important}#eventTypeDialog[_ngcontent-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0 5px!important}@media screen and (max-width:599px){#eventTypeDialog[_ngcontent-%COMP%] .custom-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{max-width:100%}#eventTypeDialog[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{max-width:100vw!important;padding:24px 0 24px 5px!important}#eventTypeDialog[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{right:-12px!important}}.close-button[_ngcontent-%COMP%]{float:right;top:-8px;right:-24px}.close-icon[_ngcontent-%COMP%]{transition:1s ease-in-out}.close-icon[_ngcontent-%COMP%]:hover{transform:rotate(180deg)}.mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0 0 0 10px!important}.mat-mdc-dialog-container[_ngcontent-%COMP%]{overflow:hidden}.form[_ngcontent-%COMP%]{display:flex;padding-top:6px}.mat-mdc-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{margin:0;overflow:hidden}.mat-mdc-dialog-container[_ngcontent-%COMP%]{padding:0 0 10px!important}.mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:10px!important}"]})}return t})();var an=["pointsForm"],rn=()=>["header-row-first-group","header-row-second-group"];function ln(t,r){t&1&&(o(0,"th",24),s(1,"Place Start"),i())}function sn(t,r){if(t&1){let e=w();o(0,"td",25)(1,"input",26),b("ngModelChange",function(n){let c=p(e).$implicit;return P(c.start,n)||(c.start=n),_(n)}),i()()}if(t&2){let e=r.$implicit;a(),m("value",e.start),M("ngModel",e.start)}}function cn(t,r){t&1&&(o(0,"th",24),s(1,"End"),i())}function dn(t,r){if(t&1){let e=w();o(0,"td",27)(1,"input",28),b("ngModelChange",function(n){let c=p(e).$implicit;return P(c.end,n)||(c.end=n),_(n)}),i()()}if(t&2){let e=r.$implicit;a(),m("value",e.end),M("ngModel",e.end)}}function mn(t,r){t&1&&(o(0,"th",24),s(1,"Point"),i())}function pn(t,r){if(t&1){let e=w();o(0,"td",25)(1,"input",29),b("ngModelChange",function(n){let c=p(e).$implicit;
1return P(c.point,n)||(c.point=n),_(n)}),i()()}if(t&2){let e=r.$implicit;a(),m("value",e.point),M("ngModel",e.point)}}function _n(t,r){t&1&&(o(0,"th",24),s(1,"Per Team Point"),i())}function gn(t,r){if(t&1){let e=w();o(0,"td",25)(1,"input",30),b("ngModelChange",function(n){let c=p(e).$implicit;return P(c.perTeamPoint,n)||(c.perTeamPoint=n),_(n)}),i()()}if(t&2){let e=r.$implicit;a(),m("value",e.perTeamPoint),M("ngModel",e.perTeamPoint)}}function Cn(t,r){t&1&&(o(0,"th",24),s(1,"Point per Win"),i())}function un(t,r){if(t&1){let e=w();o(0,"td",25)(1,"input",31),b("ngModelChange",function(n){let c=p(e).$implicit;return P(c.pointPerWin,n)||(c.pointPerWin=n),_(n)}),i()()}if(t&2){let e=r.$implicit;a(),m("value",e.pointPerWin),M("ngModel",e.pointPerWin)}}function hn(t,r){t&1&&(o(0,"th",24),s(1,"Point per Tie"),i())}function fn(t,r){if(t&1){let e=w();o(0,"td",25)(1,"input",32),b("ngModelChange",function(n){let c=p(e).$implicit;return P(c.pointPerTie,n)||(c.pointPerTie=n),_(n)}),i()()}if(t&2){let e=r.$implicit;a(),m("value",e.pointPerTie),M("ngModel",e.pointPerTie)}}function Mn(t,r){if(t&1&&(o(0,"th",33)(1,"strong"),s(2),i()()),t&2){let e=C();Y("colspan",2),a(2),O(e.local_data.name)}}function Pn(t,r){if(t&1){let e=w();o(0,"th",34)(1,"button",35),S("click",function(){p(e);let n=C();return _(n.addRow())}),o(2,"mat-icon"),s(3,"add"),i(),o(4,"span"),s(5,"Add New Row"),i()()()}t&2&&Y("colspan",4)}function bn(t,r){t&1&&E(0,"tr",36)}function xn(t,r){t&1&&E(0,"tr",37)}function Sn(t,r){t&1&&E(0,"tr",38)}var Bt=(()=>{class t{api;dialogRef;data;dialog;notify;cdr;breakpointObserver;_fuseConfigService;isMobile;points;local_data;event4editPoints;noData;newRowValues=[{start:null,end:null,point:null}];subject=new tt(this.newRowValues);typeID;_pointsForm;displayedColumns=["start","end","point","perTeamPoint","pointPerWin","pointPerTie"];dataSource;_unsubscribeAll;fuseConfig;constructor(e,l,n,c,g,d,F,q){this.api=e,this.dialogRef=l,this.data=n,this.dialog=c,this.notify=g,this.cdr=d,this.breakpointObserver=F,this._fuseConfigService=q,this._unsubscribeAll=new H,this.local_data=I({},n.data),this.typeID=this.local_data._key,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(z=>{this.isMobile=!!z.matches})}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.dataSource=new ue(this.local_data.points),this.noData=this.local_data.points.length===0,this.cdr.detectChanges()}onNoClick(){this.dialogRef.close()}doAction(){this.dialogRef.close({data:this.local_data})}addRow(){this.dataSource.data=[...this.dataSource.data,{start:null,end:null,point:null}]}loadingSavePoints=!1;savePoints(){let e={_key:this.typeID,points:this.dataSource.data};this.loadingSavePoints=!0,this.api.post("Admin/updateEventTypePoints",e,!0).pipe(T(this._unsubscribeAll)).subscribe({next:l=>{this.loadingSavePoints=!1,this.notify.openToaster("Points are saved","success"),this.dialogRef.close()},error:l=>{this.loadingSavePoints=!1,this.notify.openToaster(l.error?l.error:"An error has occured","error")}})}closeDialog(){this.dialogRef.close({event:"Cancel"})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(l){return new(l||t)(f(N),f(Z),f($),f(L),f(j),f(se),f(J),f(B))};static \u0275cmp=W({type:t,selectors:[["event-points"]],viewQuery:function(l,n){if(l&1&&k(an,7),l&2){let c;A(c=D())&&(n._pointsForm=c.first)}},inputs:{typeID:"typeID"},decls:37,vars:9,consts:[["table",""],[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16"],[1,"material-icons","link",3,"mat-dialog-close"],["mat-dialog-content",""],["mat-table","","recycleRows","",1,"w-100-p",2,"width","fit-content",3,"dataSource"],["matColumnDef","start"],["mat-header-cell","","class","center w-15-p",4,"matHeaderCellDef"],["mat-cell","","class","center","style","width: auto; text-align: center",4,"matCellDef"],["matColumnDef","end"],["mat-cell","","style","width: auto; text-align: center",4,"matCellDef"],["matColumnDef","point"],["matColumnDef","perTeamPoint"],["matColumnDef","pointPerWin"],["matColumnDef","pointPerTie"],["matColumnDef","header-row-first-group"],["mat-header-cell","","class","headerFirstRow",4,"matHeaderCellDef"],["matColumnDef","header-row-second-group"],["mat-header-cell","","class","headerSecondRow",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-header-row","","class","grey-300",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"text-center","mt-12"],["mat-raised-button","",1,"primary",3,"click","disabled"],["mat-header-cell","",1,"center","w-15-p"],["mat-cell","",1,"center",2,"width","auto","text-align","center"],["type","number","matInput","","placeholder","Start","name","start",2,"background-color","rgba(0, 0, 0, 0.04)",3,"ngModelChange","value","ngModel"],["mat-cell","",2,"width","auto","text-align","center"],["type","number","matInput","","placeholder","End","name","end",2,"background-color","rgba(0, 0, 0, 0.04)",3,"ngModelChange","value","ngModel"],["type","number","matInput","","placeholder","Points","name","point",2,"background-color","rgba(0, 0, 0, 0.04)",3,"ngModelChange","value","ngModel"],["type","number","matInput","","placeholder","Per Team Point","name","perTeamPoint",2,"background-color","rgba(0, 0, 0, 0.04)",3,"ngModelChange","value","ngModel"],["type","number","matInput","","placeholder","Per Team Point","name","pointPerWin",2,"background-color","rgba(0, 0, 0, 0.04)",3,"ngModelChange","value","ngModel"],["type","number","matInput","","placeholder","Per Team Point","name","pointPerTie",2,"background-color","rgba(0, 0, 0, 0.04)",3,"ngModelChange","value","ngModel"],["mat-header-cell","",1,"headerFirstRow"],["mat-header-cell","",1,"headerSecondRow"],["mat-button","","color","primary",1,"btn-sm","mat-stroked-button","mr-4",3,"click"],["mat-header-row",""],["mat-header-row","",1,"grey-300"],["mat-row",""]],template:function(l,n){if(l&1){let c=w();o(0,"div",1)(1,"span",2),s(2),i(),o(3,"span",3),s(4," close "),i()(),o(5,"div",4)(6,"div")(7,"table",5,0),y(9,6),x(10,ln,2,0,"th",7)(11,sn,2,2,"td",8),v(),y(12,9),x(13,cn,2,0,"th",7)(14,dn,2,2,"td",10),v(),y(15,11),x(16,mn,2,0,"th",7)(17,pn,2,2,"td",8),v(),y(18,12),x(19,_n,2,0,"th",7)(20,gn,2,2,"td",8),v(),y(21,13),x(22,Cn,2,0,"th",7)(23,un,2,2,"td",8),v(),y(24,14),x(25,hn,2,0,"th",7)(26,fn,2,2,"td",8),v(),y(27,15),x(28,Mn,3,2,"th",16),v(),y(29,17),x(30,Pn,6,1,"th",18),v(),x(31,bn,1,0,"tr",19)(32,xn,1,0,"tr",20)(33,Sn,1,0,"tr",21),i(),o(34,"div",22)(35,"button",23),S("click",function(){return p(c),_(n.savePoints())}),s(36," Save "),i()()()()}l&2&&(a(2),R("Edit Points - ",n.data.eventType),a(5),m("dataSource",n.dataSource),a(24),m("matHeaderRowDef",fe(8,rn)),a(),m("matHeaderRowDef",n.displayedColumns),a(),m("matRowDefColumns",n.displayedColumns),a(2),ge("spinner",n.loadingSavePoints),m("disabled",n.dataSource.data.length==0))},dependencies:[ne,ee,te,je,ae,Ve,Re,Qe,Ie,Fe,Le,He,We,Ne,Be,X,U,ce,G,K,_e,pe,oe,ie,De,Ae],styles:["#pointsDialog[_ngcontent-%COMP%] .custom-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{padding:0!important}#pointsDialog[_ngcontent-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0 5px!important}@media screen and (max-width:599px){#pointsDialog[_ngcontent-%COMP%] .custom-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{max-width:100%}#pointsDialog[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{max-width:100vw!important;padding:24px 0 24px 5px!important}#pointsDialog[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{right:-12px!important}}table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:100%;border:2px solid #ddd}th[_ngcontent-%COMP%]{background:#9ea1a985;height:40px}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{border:2px solid #ddd}tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#ededee85}td.mat-mdc-cell[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{border:1px solid #ddd}
1th.center[_ngcontent-%COMP%]{text-align:center}mat-footer-row[_ngcontent-%COMP%], mat-header-row[_ngcontent-%COMP%], mat-row[_ngcontent-%COMP%]{border-bottom-width:10px}.close-button[_ngcontent-%COMP%]{float:right;top:-8px;right:-24px}.close-icon[_ngcontent-%COMP%]{transition:1s ease-in-out}.close-icon[_ngcontent-%COMP%]:hover{transform:rotate(180deg)}.mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0 0 0 10px!important}.mat-mdc-dialog-container[_ngcontent-%COMP%]{overflow:hidden}.form[_ngcontent-%COMP%]{display:flex;padding-top:6px}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:center}.btn-addNewRow[_ngcontent-%COMP%]{line-height:30px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{margin:0;padding:10px 0!important;overflow-x:hidden;overflow-y:auto}.mat-mdc-dialog-container[_ngcontent-%COMP%]{padding:0 0 10px!important}.headerFirstRow[_ngcontent-%COMP%]{background-color:#fff;text-align:left!important}.headerSecondRow[_ngcontent-%COMP%]{background-color:#fff;text-align:right!important}@keyframes _ngcontent-%COMP%_rowSlideIn{0%{opacity:0;transform:translate(-550px);box-shadow:none}50%{opacity:.2;transform:translate(0);box-shadow:none}to{opacity:1;transform:translate(0)}}tr.mat-mdc-row[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rowSlideIn .7s ease forwards}"]})}return t})();var jt=Gt(Kt());var yn=["classForm"];function vn(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Required (Ex. 18-Under Gold)"),i())}function On(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Required (Ex. 18-Gold) "),i())}function Tn(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Required (Ex. 18G) "),i())}function En(t,r){t&1&&(o(0,"mat-hint",10),s(1,"Sort position is required "),i())}function kn(t,r){if(t&1){let e=w();o(0,"div",29)(1,"button",30),S("click",function(){p(e),C();let n=Q(8);return _(n.resetForm())}),s(2,"Reset Form"),i(),o(3,"button",31),S("click",function(){p(e);let n=C();return _(n.doAction())}),s(4),i()()}if(t&2){let e=C();a(4),O(e.action)}}var An={parse:{dateInput:"MMM/DD"},display:{dateInput:"MMM/DD",monthYearLabel:"MMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},qt=(()=>{class t{api;_membership;dialogRef;data;dialog;notify;breakpointObserver;datePipe;_fuseConfigService;loading=!1;isMobile=!1;class=[];local_data;action;classForm;formParams={};fuseConfig;chosenYearHandler(e){let l=this.formParams.ageDetermination.value;l.year(e.year()),this.formParams.ageDetermination.setValue(l)}chosenMonthHandler(e,l){let n=this.formParams.ageDetermination.value;n.month(e.month()),this.formParams.ageDetermination.setValue(n),l.close()}chosenDayHandler(e,l){let n=this.formParams.ageDetermination.value;n.day(e.day()),this.formParams.ageDetermination.setValue(n)}classID;_classForm;_unsubscribeAll;constructor(e,l,n,c,g,d,F,q,z){this.api=e,this._membership=l,this.dialogRef=n,this.data=c,this.dialog=g,this.notify=d,this.breakpointObserver=F,this.datePipe=q,this._fuseConfigService=z,this._unsubscribeAll=new H,this.local_data=I({},c),this.action=this.local_data.action}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.isMobile=this._membership.isMobileDevice,this.local_data.action=="Update"?this.api.get("Admin/editClassification/"+this.local_data._key,!0).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.formParams=e},error:e=>{this.notify.openToaster(e.error?e.error:"An error has occured","error")}}):localStorage.getItem(this.local_data.sport+"-ageDetermination")&&setTimeout(()=>{let e=localStorage.getItem(this.local_data.sport+"-ageDetermination");this.formParams&&(this.formParams.ageDetermination=(0,jt.default)(e).toISOString().split("T")[0])},500)}onNoClick(){this.dialogRef.close()}doAction(){this._classForm.valid&&(localStorage.setItem(this.local_data.sport+"-ageDetermination",this.formParams.ageDetermination),this.dialogRef.close({event:this.action,data:this.formParams,index:this.local_data.index}))}closeDialog(){this.dialogRef.close({event:"Cancel"})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(l){return new(l||t)(f(N),f(ft),f(Z),f($),f(L),f(j),f(J),f(Pe),f(B))};static \u0275cmp=W({type:t,selectors:[["hq-classForm"]],viewQuery:function(l,n){if(l&1&&k(yn,7),l&2){let c;A(c=D())&&(n._classForm=c.first)}},inputs:{classID:"classID"},features:[ot([Pe,{provide:xt,useClass:Wt,deps:[bt,Ht]},{provide:St,useValue:An}])],decls:71,vars:40,consts:[["classForm","ngForm"],["id","addClassification",1,"p-24",2,"display","flex","flex-direction","column"],[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16"],[1,"material-icons","link",3,"mat-dialog-close"],["mat-dialog-content","","id","classFormDialog",2,"display","flex","flex-direction","column"],["novalidate","",1,"mt-16",3,"ngSubmit"],["fxLayout","row wrap","fxLayout.lt-md","column","fxLayoutAlign.lt-md","center center","fxLayoutGap","10px"],[3,"ngClass"],["matInput","","name","name","ngControl","name","required","",1,"",3,"ngModelChange","ngModel"],[1,"red-fg"],["matInput","","name","shortName","ngControl","shortName","required","",3,"ngModelChange","ngModel"],["matInput","","name","abr","ngControl","abr","required","",1,"",3,"ngModelChange","ngModel"],["matInput","","type","number","name","sortPos","ngControl","sortPos","required","",1,"",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","name","minAge","ngControl","minAge",1,"",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","name","maxAge","ngControl","maxAge",1,"",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","name","minRosterCnt","ngControl","minRosterCnt","required","",1,"",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","name","maxRosterCnt","ngControl","maxRosterCnt",1,"",3,"ngModelChange","ngModel"],["matInput","","type","number","min","0","name","pitchingDistance","ngControl","pitchingDistance",1,"",3,"ngModelChange","ngModel"],["matInput","","placeholder","Override price (US$)","name","teamRegPrice","ngControl","teamRegPrice",1,"",3,"ngModelChange","ngModel"],["matInput","","placeholder","Group ID","name","group","ngControl","group",1,"",3,"ngModelChange","ngModel"],[1,"style-two"],[1,"chk-section"],["name","isYouth","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","isTeamClass","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","isEventClass","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","individual","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","gradeBased","labelPosition","after",3,"ngModelChange","checked","ngModel"],["name","hidden","labelPosition","after",3,"ngModelChange","checked","ngModel"],[1,"text-center","mt-16","mr-12"],["mat-raised-button","",1,"grey-300","mx-16",3,"click"],["mat-raised-button","",1,"primary",2,"width","106px",3,"click"]],template:function(l,n){if(l&1){let c=w();o(0,"div",1)(1,"div",2)(2,"span",3),s(3),i(),o(4,"span",4),s(5," close "),i()(),o(6,"div",5)(7,"form",6,0),S("ngSubmit",function(){p(c);let d=Q(8);return _(d.valid)}),o(9,"div",7)(10,"mat-form-field",8)(11,"mat-label"),s(12,"Name"),i(),o(13,"input",9),b("ngModelChange",function(d){return p(c),P(n.formParams.name,d)||(n.formParams.name=d),_(d)}),i(),u(14,vn,2,0,"mat-hint",10),i(),o(15,"mat-form-field",8)(16,"mat-label"),s(17,"Short Name (Bulk Team Creation Match)"),i(),o(18,"input",11),b("ngModelChange",function(d){return p(c),P(n.formParams.shortName,d)||(n.formParams.shortName=d),_(d)}),i(),u(19,On,2,0,"mat-hint",10),i(),o(20,"mat-form-field",8)(21,"mat-label"),s(22,"ABR"),i(),o(23,"input",12),b("ngModelChange",function(d){return p(c),P(n.formParams.abr,d)||(n.formParams.abr=d),_(d)}),i(),u(24,Tn,2,0,"mat-hint",10),i(),o(25,"mat-form-field",8)(26,"mat-label"),s(27,"Sort Position"),i(),o(28,"input",13),b("ngModelChange",function(d){return p(c),P(n.formParams.sortPos,d)||(n.formParams.sortPos=d),_(d)}),i(),u(29,En,2,0,"mat-hint",10),i(),o(30,"mat-form-field",8)(31,"mat-label"),s(32,"Min Age"),i(),o(33,"input",14),b("ngModelChange",function(d){return p(c),P(n.formParams.minAge,d)||(n.formParams.minAge=d),_(d)}),i()(),o(34,"mat-form-field",8)(35,"mat-label"),s(36,"Max Age"),i(),o(37,"input",15),b("ngModelChange",function(d){return p(c),P(n.formParams.maxAge,d)||(n.formParams.maxAge=d),_(d)}),i()(),o(38,"mat-form-field",8)(39,"mat-label"),s(40,"Min Roster Size"),i(),o(41,"input",16),b("ngModelChange",function(d){return p(c),P(n.formParams.minRosterCnt,d)||(n.formParams.minRosterCnt=d),_(d)}),i()(),o(42,"mat-form-field",8)(43,"mat-label"),s(44,"Max Roster Size"),i(),o(45,"input",17),b("ngModelChange",function(d){return p(c),P(n.formParams.maxRosterCnt,d)||(n.formParams.maxRosterCnt=d),_(d)}),i()(),o(46,"mat-form-field",8)(47,"mat-label"),s(48,"Pitching Distance (ft)"),i(),o(49,"input",18),b("ngModelChange",function(d){return p(c),P(n.formParams.pitchingDistance,d)||(n.formParams.pitchingDistance=d),_(d)}),i()(),o(50,"mat-form-field",8)(51,"input",19),b("ngModelChange",function(d){return p(c),P(n.formParams.teamRegPrice,d)||(n.formParams.teamRegPrice=d),_(d)}),i()(),o(52,"mat-form-field",8)(53,"mat-label"),s(54,"Grouped Class ID (for one roster one class)"),i(),o(55,"input",20),b("ngModelChange",function(d){return p(c),P(n.formParams.group,d)||(n.formParams.group=d),_(d)}
1),i()()(),E(56,"hr",21),o(57,"section",22)(58,"mat-checkbox",23),b("ngModelChange",function(d){return p(c),P(n.formParams.isYouth,d)||(n.formParams.isYouth=d),_(d)}),s(59," Youth Class"),i(),o(60,"mat-checkbox",24),b("ngModelChange",function(d){return p(c),P(n.formParams.isTeamClass,d)||(n.formParams.isTeamClass=d),_(d)}),s(61," Team Class"),i(),o(62,"mat-checkbox",25),b("ngModelChange",function(d){return p(c),P(n.formParams.isEventClass,d)||(n.formParams.isEventClass=d),_(d)}),s(63," Event Class"),i(),o(64,"mat-checkbox",26),b("ngModelChange",function(d){return p(c),P(n.formParams.individual,d)||(n.formParams.individual=d),_(d)}),s(65," Individual Class"),i(),o(66,"mat-checkbox",27),b("ngModelChange",function(d){return p(c),P(n.formParams.gradeBased,d)||(n.formParams.gradeBased=d),_(d)}),s(67," Grade Based"),i(),o(68,"mat-checkbox",28),b("ngModelChange",function(d){return p(c),P(n.formParams.hidden,d)||(n.formParams.hidden=d),_(d)}),s(69," Hidden/Archived"),i()(),u(70,kn,5,1,"div",29),i()()()}if(l&2){let c=Q(8);a(3),R("",n.local_data.action," Classification"),a(7),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.name),a(),h(n.formParams.invalid&&!n.formParams.name?14:-1),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.shortName),a(),h(n.formParams.invalid&&!n.formParams.shortName?19:-1),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.abr),a(),h(n.formParams.invalid&&!n.formParams.abr?24:-1),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.sortPos),a(),h(n.formParams.invalid&&!n.formParams.sortPos?29:-1),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.minAge),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.maxAge),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.minRosterCnt),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.maxRosterCnt),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.pitchingDistance),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(),M("ngModel",n.formParams.teamRegPrice),a(),m("ngClass",n.isMobile?"w-100-p":"w-45-p"),a(3),M("ngModel",n.formParams.group),a(3),m("checked",n.formParams.isYouth),M("ngModel",n.formParams.isYouth),a(2),m("checked",n.formParams.isTeamClass),M("ngModel",n.formParams.isTeamClass),a(2),m("checked",n.formParams.isEventClass),M("ngModel",n.formParams.isEventClass),a(2),m("checked",n.formParams.individual),M("ngModel",n.formParams.individual),a(2),m("checked",n.formParams.gradeBased),M("ngModel",n.formParams.gradeBased),a(2),m("checked",n.formParams.hidden),M("ngModel",n.formParams.hidden),a(2),h(c?70:-1)}},dependencies:[be,Me,ne,ee,te,X,we,U,ce,G,xe,ve,ye,K,Se,Oe,ke,Ee,mt,Te,_e,pe,me,de,oe,ie,Mt,Pt],styles:["#addClassification[_ngcontent-%COMP%] .chk-section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;height:60px;gap:5px}#addClassification[_ngcontent-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{margin:0;padding:0 4px}"]})}return t})();var Vn=["classForm"];function Fn(t,r){t&1&&(o(0,"div",4),E(1,"div",7)(2,"div",8)(3,"div",9),i())}function Rn(t,r){if(t&1&&(o(0,"th",11)(1,"span"),s(2),i()()),t&2){let e=r.$implicit;a(2),O(e.name)}}function In(t,r){if(t&1){let e=w();o(0,"td",11)(1,"mat-checkbox",13),S("click",function(n){return p(e),_(n.stopPropagation())})("change",function(){let n=p(e),c=n.$implicit,g=n.$index,d=C().$implicit,F=C(2);return _(F.setAllowed2(c,d._key,g))}),i()()}if(t&2){let e=r.$implicit;a(),m("checked",e.status)}}function Hn(t,r){if(t&1&&(o(0,"tr")(1,"td",12)(2,"span"),s(3),i()(),re(4,In,2,1,"td",11,he().trackClass,!0),i()),t&2){let e=r.$implicit;a(3),O(e.name),a(),le(e.allowed2)}}function Wn(t,r){if(t&1&&(o(0,"div",6)(1,"table",10)(2,"thead")(3,"tr")(4,"th",11),s(5,"Event Classes"),i(),o(6,"th",11),s(7,"\xA0"),i()(),o(8,"tr")(9,"th",11),s(10,"Team Classes"),i(),re(11,Rn,3,1,"th",11,he().trackClass,!0),i()(),o(13,"tbody"),re(14,Hn,6,1,"tr",null,he().trackClass,!0),i()()()),t&2){let e=C();a(4),Y("colspan",e.matrixData.events.length+2),a(7),le(e.matrixData.events),a(3),le(e.matrixData.teams)}}var zt=(()=>{class t{api;dialogRef;data;dialog;notify;ngxLoader;breakpointObserver;ngxService;_cdr;_fuseConfigService;sport;mode;
1matrixData=[];classes2show=[];l;local_data;action;fuseConfig;classID;getSelectedSport;_classForm;table;_unsubscribeAll;dataSourceAllowed2;displayedColumns=[];dataSource;isMobile;loader;constructor(e,l,n,c,g,d,F,q,z,Yt){this.api=e,this.dialogRef=l,this.data=n,this.dialog=c,this.notify=g,this.ngxLoader=d,this.breakpointObserver=F,this.ngxService=q,this._cdr=z,this._fuseConfigService=Yt,this._unsubscribeAll=new H,this.local_data=I({},n),this.action=this.local_data.action,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(Ut=>{this.isMobile=!!Ut.matches})}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.loader=!0,this.api.get("Admin/editAllowed2/"+this.local_data.sport+"/"+this.local_data.mode,!0).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.matrixData=e,this.loader=!1},error:e=>{this.notify.openAlertModal(e.error?e.error:"An error has occured",V.ERROR),this.loader=!1}})}setAllowed2(e,l,n){this.api.get("Admin/toggleAllowed2/"+this.local_data.mode+"/"+(e.status?"remove":"add")+"/"+l+"/"+this.matrixData.events[n]._key,!0).pipe(T(this._unsubscribeAll)).subscribe({next:c=>{e.status=!e.status,this._cdr.detectChanges()},error:c=>{this.notify.openAlertModal(c.error?c.error:"An error has occured",V.ERROR)}})}trackClass(e,l){return e._key}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(l){return new(l||t)(f(N),f(Z),f($),f(L),f(j),f(Ce),f(J),f(Ce),f(se),f(B))};static \u0275cmp=W({type:t,selectors:[["hq-allowed2Form"]],viewQuery:function(l,n){if(l&1&&(k(Vn,7),k(ae,7)),l&2){let c;A(c=D())&&(n._classForm=c.first),A(c=D())&&(n.table=c.first)}},inputs:{sport:"sport",mode:"mode",classID:"classID",getSelectedSport:"getSelectedSport"},decls:9,vars:3,consts:[[1,"allowed2"],[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16"],[1,"material-icons","link",3,"mat-dialog-close"],[1,"spinnerRound"],["mat-dialog-content","","fxLayout","column",1,"allowed2"],["id","dvAllowed2",1,"table-container"],[1,"bounce1"],[1,"bounce2"],[1,"bounce3"],[1,"table-allowed2","table","table-bordered","mx-auto"],[1,"text-center"],[2,"white-space","nowrap"],[3,"click","change","checked"]],template:function(l,n){l&1&&(o(0,"div",0)(1,"div",1)(2,"span",2),s(3),i(),o(4,"span",3),s(5," close "),i()(),u(6,Fn,4,0,"div",4),o(7,"div",5),u(8,Wn,16,1,"div",6),i()()),l&2&&(a(3),R("Allowed to ",n.local_data.mode),a(3),h(n.loader?6:-1),a(2),h(n.matrixData.teams?8:-1))},dependencies:[ne,ee,te,me,de],styles:['#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .thHButton[_ngcontent-%COMP%]{padding:0;vertical-align:bottom}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .thVButton[_ngcontent-%COMP%]{padding:0}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .hButton[_ngcontent-%COMP%]{margin:2px 0}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .vButton[_ngcontent-%COMP%]{margin:0 2px;min-width:27px}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .vButton.angleLeft.material-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%]{border-collapse:collapse}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%] th[_ngcontent-%COMP%], #allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{white-space:nowrap}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%] th[_ngcontent-%COMP%] span[_ngcontent-%COMP%], #allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;text-align:center}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .table-allowed2[_ngcontent-%COMP%] th[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{writing-mode:vertical-lr;text-align:left;padding:10px 5px 0}#allowed2Dialog[_ngcontent-%COMP%] #dvAllowed2[_ngcontent-%COMP%] .mat-checkbox-inner-container[_ngcontent-%COMP%]{width:20px!important;height:20px!important}.table-container[_ngcontent-%COMP%]{overflow:auto;width:100%;background:#fff;box-shadow:-13px 0 15px 6px #efefefc2 inset}.table-allowed2[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{table-layout:fixed;width:100%;border-collapse:collapse;border-spacing:0}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:12px!important}.table-allowed2[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{box-shadow:0 3px 3px #0000000d;position:sticky;top:-1px;background:#fff;z-index:11}.table-allowed2[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2){position:sticky;top:37px;border-bottom:1px solid #000;z-index:11}.table-allowed2[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{overflow:auto}.table-allowed2[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{background:#fff}.table-allowed2[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child:after, .table-allowed2[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:after{box-shadow:15px 0 15px -15px #0000000d inset;content:"";position:absolute;top:0;bottom:0;right:-15px;width:15px}.table-allowed2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, .table-allowed2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{position:sticky;left:0;background-color:#fff;z-index:9;border-right:2px solid #949495;border-right-style:dashed}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:after, table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child:after{box-shadow:15px 0 15px -15px #0000000d inset;border-left:2px solid #949495;border-left-style:dashed}.btn-4ways[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:20px;height:20px;line-height:20px}.material-icons.doubleUp[_ngcontent-%COMP%]{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.material-icons.doubleDown[_ngcontent-%COMP%]{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.mat-mdc-dialog-container[_ngcontent-%COMP%]{padding:0 0 10px!important}.mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0!important;margin:0!important}.allowed2[_ngcontent-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:auto;max-height:95vh}.spinnerRound[_ngcontent-%COMP%]{margin:40px auto;text-align:center}.spinnerRound[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:18px;height:18px;background-color:#bf1616;border-radius:100%;display:inline-block;-webkit-animation:_ngcontent-%COMP%_sk-bouncedelay 1.4s infinite ease-in-out both;animation:_ngcontent-%COMP%_sk-bouncedelay 1.4s infinite ease-in-out both}.spinnerRound[_ngcontent-%COMP%] .bounce1[_ngcontent-%COMP%]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinnerRound[_ngcontent-%COMP%] .bounce2[_ngcontent-%COMP%]{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes _ngcontent-%COMP%_sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes _ngcontent-%COMP%_sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}']})}return t})();var Qn=["paginatorClassData"],Ln=["filter"],Nn=t=>({width:t}),Bn=()=>[15,25,50,75,100],jn=(t,r)=>r._key;function qn(t,r){if(t&1&&(o(0,"option",18),s(1),i()),t&2){let e=C().$implicit;m("ngValue",e._key),a(),O(e.name)}
1}function zn(t,r){if(t&1&&u(0,qn,2,2,"option",18),t&2){let e=r.$implicit;h(e!=null&&e.name?0:-1)}}function Yn(t,r){if(t&1){let e=w();o(0,"button",53),S("click",function(){p(e);let n=C(5);return _(n.clearEventSearch())}),o(1,"mat-icon"),s(2,"close"),i()()}}function Un(t,r){if(t&1){let e=w();o(0,"div",46)(1,"div",48)(2,"div",49)(3,"mat-icon",50),s(4,"search"),i(),o(5,"input",51),S("ngModelChange",function(n){p(e);let c=C(4);return _(c.onEventSearchChange(n))}),i(),u(6,Yn,3,0,"button",52),i()()()}if(t&2){let e=C(4);a(5),m("ngModel",e.searchInput),a(),h(e.searchInput?6:-1)}}function Gn(t,r){if(t&1){let e=w();o(0,"button",53),S("click",function(){p(e);let n=C(5);return _(n.clearEventSearch())}),o(1,"mat-icon"),s(2,"close"),i()()}}function Kn(t,r){if(t&1){let e=w();o(0,"div",47)(1,"div",48)(2,"div",54)(3,"mat-icon",50),s(4,"search"),i(),o(5,"input",55),S("ngModelChange",function(n){p(e);let c=C(4);return _(c.onEventSearchChange(n))}),i(),u(6,Gn,3,0,"button",52),i()()()}if(t&2){let e=C(4);a(5),m("ngModel",e.searchInput),a(),h(e.searchInput?6:-1)}}function Xn(t,r){if(t&1&&(u(0,Un,7,2,"div",46),u(1,Kn,7,2,"div",47)),t&2){let e=C(3);h(e.isMobile?-1:0),a(),h(e.isMobile?1:-1)}}function Jn(t,r){t&1&&(o(0,"th",56),s(1,"Name"),i())}function Zn(t,r){if(t&1&&(o(0,"td",57),s(1),i()),t&2){let e=r.$implicit;a(),O(e.name)}}function $n(t,r){t&1&&(o(0,"th",58),s(1,"Has Show On"),i())}function ei(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.showOn)}}function ti(t,r){t&1&&(o(0,"th",58),s(1,"Has Hidden On"),i())}function ni(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.hiddenOn)}}function ii(t,r){if(t&1){let e=w();o(0,"th",60)(1,"button",61),S("click",function(){p(e);let n=C(3);return _(n.openDialog("Add",{},null))}),o(2,"mat-icon"),s(3,"add"),i(),o(4,"span"),s(5,"Add New"),i()()()}}function oi(t,r){t&1&&(o(0,"span"),s(1,"Edit"),i())}function ai(t,r){t&1&&(o(0,"mat-icon"),s(1,"edit"),i())}function ri(t,r){t&1&&(o(0,"span"),s(1,"Edit Points"),i())}function li(t,r){t&1&&(o(0,"mat-icon"),s(1,"dialpad"),i())}function si(t,r){t&1&&(o(0,"mat-icon",65),s(1,"arrow_drop_down"),i())}function ci(t,r){t&1&&(o(0,"span"),s(1,"Copy Points to"),i())}function di(t,r){t&1&&(o(0,"mat-icon"),s(1,"input"),i())}function mi(t,r){if(t&1){let e=w();o(0,"button",69),S("click",function(){p(e);let n=C().$implicit,c=C().$implicit,g=C(3);return _(g.copyPoints(n._key,c._key))}),s(1),i()}if(t&2){let e=C().$implicit;a(),O(e.name)}}function pi(t,r){if(t&1&&u(0,mi,2,1,"button",68),t&2){let e=r.$implicit,l=C().$implicit;h(e._key!=l._key?0:-1)}}function _i(t,r){t&1&&(o(0,"span"),s(1,"Hide"),i())}function gi(t,r){t&1&&(o(0,"mat-icon"),s(1,"visibility_off"),i())}function Ci(t,r){if(t&1){let e=w();o(0,"button",63),S("click",function(){p(e);let n=C().$implicit,c=C(3);return _(c.hideShowEventType(n,"hide"))}),u(1,_i,2,0,"span"),u(2,gi,2,0,"mat-icon"),i()}if(t&2){let e=C(4);m("ngClass",e.isMobile?"mat-icon-button red":"mat-raised-button red"),a(),h(e.isMobile?-1:1),a(),h(e.isMobile?2:-1)}}function ui(t,r){t&1&&(o(0,"span"),s(1,"Show"),i())}function hi(t,r){t&1&&(o(0,"mat-icon"),s(1,"visibility"),i())}function fi(t,r){if(t&1){let e=w();o(0,"button",63),S("click",function(){p(e);let n=C().$implicit,c=C(3);return _(c.hideShowEventType(n,"show"))}),u(1,ui,2,0,"span"),u(2,hi,2,0,"mat-icon"),i()}if(t&2){let e=C(4);m("ngClass",e.isMobile?"mat-icon-button green":"mat-raised-button green"),a(),h(e.isMobile?-1:1),a(),h(e.isMobile?2:-1)}}function Mi(t,r){t&1&&E(0,"img",67)}function Pi(t,r){if(t&1){let e=w();o(0,"td",62)(1,"button",63),S("click",function(){let n=p(e),c=n.$implicit,g=n.index,d=C(3);return _(d.openDialog("Update",c,g))}),u(2,oi,2,0,"span"),u(3,ai,2,0,"mat-icon"),i(),o(4,"button",63),S("click",function(){let n=p(e).$implicit,c=C(3);return _(c.editEventTypePoints(n))}),u(5,ri,2,0,"span"),u(6,li,2,0,"mat-icon"),i(),o(7,"button",64),u(8,si,2,0,"mat-icon",65),u(9,ci,2,0,"span"),u(10,di,2,0,"mat-icon"),i(),o(11,"mat-menu",null,1),re(13,pi,1,1,null,null,it),i(),u(15,Ci,3,3,"button",66),u(16,fi,3,3,"button",66),u(17,Mi,1,0,"img",67),i()}if(t&2){let e=r.$implicit,l=Q(12),n=C(3);a(),m("ngClass",n.isMobile?"mat-icon-button blue":"mat-raised-button blue"),a(),h(n.isMobile?-1:2),a(),h(n.isMobile?3:-1),a(),m("ngClass",n.isMobile?"mat-icon-button indigo":"mat-raised-button indigo"),a(),h(n.isMobile?-1:5),a(),h(n.isMobile?6:-1),a(),m("ngClass",n.isMobile?"mat-icon-button lime":"mat-raised-button lime")("matMenuTriggerFor",l),a(),h(n.isMobile?-1:8),a(),h(n.isMobile?-1:9),a(),h(n.isMobile?10:-1),a(3),le(n.dataSource4event.data),a(2),h(!e.loading&&!e.hidden?15:-1),a(),h(!e.loading&&e.hidden?16:-1),a(),h(e.loading?17:-1)}}function bi(t,r){t&1&&E(0,"tr",70)}function xi(t,r){if(t&1&&E(0,"tr",71),t&2){let e=r.$implicit,l=r.index;ge("row-even",l%2===0)("row-odd",l%2!==0)("row-hidden",e.hidden)}}function Si(t,r){if(t&1&&(o(0,"tr",72)(1,"td",73),s(2),i()()),t&2){let e=C(3);a(),Y("colspan",e.displayedColumns.length),a(),R("There are no event types for ",e.selectedSport.name,"!")}}function wi(t,r){if(t&1&&(E(0,"ngx-ui-loader",26),u(1,Xn,2,2),o(2,"div",30)(3,"div",31)(4,"table",32,0),y(6,33),x(7,Jn,2,0,"th",34)(8,Zn,2,1,"td",35),v(),y(9,36),x(10,$n,2,0,"th",37)(11,ei,2,1,"td",38),v(
1),y(12,39),x(13,ti,2,0,"th",37)(14,ni,2,1,"td",38),v(),y(15,40),x(16,ii,6,0,"th",41)(17,Pi,18,14,"td",42),v(),x(18,bi,1,0,"tr",43)(19,xi,1,6,"tr",44)(20,Si,3,2,"tr",45),i()()()),t&2){let e=C(2);m("loaderId","loader-hq-eventTypes")("fgsSize",75),a(),h((e.dataSource4event==null||e.dataSource4event.data==null?null:e.dataSource4event.data.length)>0?1:-1),a(3),m("dataSource",e.dataSource4event)("trackBy",e.trackEventType),a(14),m("matHeaderRowDef",e.displayedColumns),a(),m("matRowDefColumns",e.displayedColumns)}}function yi(t,r){if(t&1){let e=w();o(0,"button",53),S("click",function(){p(e);let n=C(5);return _(n.clearClassSearch())}),o(1,"mat-icon"),s(2,"close"),i()()}}function vi(t,r){if(t&1){let e=w();o(0,"div",46)(1,"div",48)(2,"div",49)(3,"mat-icon",50),s(4,"search"),i(),o(5,"input",78),S("ngModelChange",function(n){p(e);let c=C(4);return _(c.onClassSearchChange(n))}),i(),u(6,yi,3,0,"button",52),i()()()}if(t&2){let e=C(4);a(5),m("ngModel",e.searchInput4Class),a(),h(e.searchInput4Class?6:-1)}}function Oi(t,r){if(t&1){let e=w();o(0,"button",53),S("click",function(){p(e);let n=C(5);return _(n.clearClassSearch())}),o(1,"mat-icon"),s(2,"close"),i()()}}function Ti(t,r){if(t&1){let e=w();o(0,"div",47)(1,"div",48)(2,"div",54)(3,"mat-icon",50),s(4,"search"),i(),o(5,"input",79),S("ngModelChange",function(n){p(e);let c=C(4);return _(c.onClassSearchChange(n))}),i(),u(6,Oi,3,0,"button",52),i()()()}if(t&2){let e=C(4);a(5),m("ngModel",e.searchInput4Class),a(),h(e.searchInput4Class?6:-1)}}function Ei(t,r){if(t&1&&(u(0,vi,7,2,"div",46),u(1,Ti,7,2,"div",47)),t&2){let e=C(3);h(e.isMobile?-1:0),a(),h(e.isMobile?1:-1)}}function ki(t,r){t&1&&E(0,"mat-spinner")}function Ai(t,r){if(t&1&&(o(0,"div",74),u(1,ki,1,0,"mat-spinner"),i()),t&2){let e=C(3);a(),h(e.isLoadingResults?1:-1)}}function Di(t,r){t&1&&(o(0,"th",98),s(1,"Name"),i())}function Vi(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.name)}}function Fi(t,r){t&1&&(o(0,"th",98),s(1,"Short Name"),i())}function Ri(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.shortName)}}function Ii(t,r){t&1&&(o(0,"th",98),s(1,"Abr"),i())}function Hi(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.abr)}}function Wi(t,r){t&1&&(o(0,"th",98),s(1,"Min Age"),i())}function Qi(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.minAge)}}function Li(t,r){t&1&&(o(0,"th",98),s(1,"Max Age"),i())}function Ni(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.maxAge)}}function Bi(t,r){t&1&&(o(0,"th",98),s(1,"Roster Size"),i())}function ji(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.maxRosterCnt)}}function qi(t,r){t&1&&(o(0,"th",98),s(1,"Youth"),i())}function zi(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.isYouth)}}function Yi(t,r){t&1&&(o(0,"th",98),s(1,"Team Class"),i())}function Ui(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.isTeamClass)}}function Gi(t,r){t&1&&(o(0,"th",98),s(1,"Event Class"),i())}function Ki(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.isEventClass)}}function Xi(t,r){t&1&&(o(0,"th",98),s(1,"Override Price"),i())}function Ji(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.teamRegPrice)}}function Zi(t,r){t&1&&(o(0,"th",98),s(1,"Sort Pos"),i())}function $i(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.sortPos)}}function eo(t,r){t&1&&(o(0,"th",98),s(1,"Min Players"),i())}function to(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.minRosterCnt)}}function no(t,r){t&1&&(o(0,"th",98),s(1,"Grouped Class ID"),i())}function io(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.group)}}function oo(t,r){t&1&&(o(0,"th",98),s(1,"Has Show On"),i())}function ao(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.showOn)}}function ro(t,r){t&1&&(o(0,"th",98),s(1,"Has Hidden On"),i())}function lo(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e.hiddenOn)}}function so(t,r){t&1&&(o(0,"th",98),s(1,"Class Key"),i())}function co(t,r){if(t&1&&(o(0,"td",59),s(1),i()),t&2){let e=r.$implicit;a(),O(e._key)}}function mo(t,r){t&1&&(o(0,"span"),s(1,"Add New"),i())}function po(t,r){t&1&&(o(0,"mat-icon"),s(1,"playlist_add"),i())}function _o(t,r){t&1&&(o(0,"span"),s(1,"Allowed 2 Play"),i())}function go(t,r){t&1&&(o(0,"mat-icon"),s(1,"sports_baseball"),i())}function Co(t,r){t&1&&(o(0,"span"),s(1,"Allowed 2 Guest"),i())}function uo(t,r){t&1&&(o(0,"mat-icon"),s(1,"how_to_reg"),i())}function ho(t,r){if(t&1){let e=w();o(0,"th",99)(1,"div",100)(2,"button",101),S("click",function(){p(e);let n=C(4);return _(n.openDialog4class("Add",{},null))}),u(3,mo,2,0,"span"),u(4,po,2,0,"mat-icon"),i(),o(5,"button",101),S("click",function(){p(e);let n=C(4);return _(n.editClassAllowed("play"))}),u(6,_o,2,0,"span"),u(7,go,2,0,"mat-icon"),i(),o(8,"button",101),S("click",function(){p(e);let n=C(4);return _(n.editClassAllowed("guest"))}),u(9,Co,2,0,"span"),u(10,uo,2,0,"mat-icon"),i()()()}if(t&2){let e=C(4);a(3),h(e.isMobile?-1:3),a(),h(e.isMobile?4:-1),a(2),h(e.isMobile?-1:6),a(),h(e.isMobile?7:-1),a(2),h(e.isMobile?-1:9),a(),h(e.isMobile?10:-1)}}function fo(t,r){t&1&&(o(0,"span"),s(1,"Edit"),i())}function Mo(t,r){t&1&&(o(0,"mat-icon"),s(1,"edit"),i())}function Po(t,r){t&1&&(o(0,"span"),s(1,"Make it hidden"),i())}function bo(t,r){t&1&&(o(0,"mat-icon"),s(1,"visibility_off"),i())}function xo(t,r){if(t&1){let e=w();o(0,"button",106),S("click",function(){p(e);let n=C().$implicit,c=C(4);return _(c.hideShowClass(n,"hide"))}),u(1,Po,2,0,"span"),u(2,bo,2,0,"mat-icon"),i()}if(t&2){let e=C(5);a(),h(e.isMobile?-1:1),a(),h(e.isMobile?2:-1)}}function So(t,r){t&1&&(o(0,"span"),s(1,"Make it visible \xA0"),i())}function wo(t,r){t&1&&(o(0,"mat-icon"),s(1,"visibility"),i())}function yo(t,r){if(t&1){let e=w();o(0,"button",107),S("click",function(){p(e);let n=C().$implicit,c=C(4);return _(c.hideShowClass(n,"show"))}),u(1,So,2,0,"span"),u(2,wo,2,0,"mat-icon"),i()}if(t&2){let e=C(5);m("ngClass",e.isMobile?"mat-icon-button":"mat-raised-button"),a(),h(e.isMobile?-1:1),a(),h(e.isMobile?2:-1)}}function vo(t,r){t&1&&E(0,"img",67)}function Oo(t,r){if(t&1){let e=w();o(0,"td",102)(1,"button",103),S("click",function(){let n=p(e),c=n.$implicit,g=n.index,d=C(4);return _(d.openDialog4class("Update",c,g))}),u(2,fo,2,0,"span"),u(3,Mo,2,0,"mat-icon"),i(),u(4,xo,3,2,"button",104),u(5,yo,3,3,"button",105),u(6,vo,1,0,"img",67),i()}if(t&2){let e=r.$implicit,l=C(4);a(),m("ngClass",l.isMobile?"mat-icon-button":"mat-stroked-button primary-fg primary-border"),a(),h(l.isMobile?-1:2),a(),h(l.isMobile?3:-1),a(),h(!e.loading&&!e.hidden?4:-1),a(),h(!e.loading&&e.hidden?5:-1),a(),h(e.loading?6:-1)}}function To(t,r){t&1&&E(0,"tr",70)}function Eo(t,r){if(t&1&&E(0,"tr",71),t&2){let e=r.$implicit,l=r.index;ge("row-even",l%2===0)("row-odd",l%2!==0)("row-hidden",e.hidden)}}function ko(t,r){if(t&1&&(o(0,"tr",72)(1,"td",73),s(2),i()()),t&2){let e=C(4);a(),Y("colspan",e.displayedColumns4classes.length),a(),R("There are no classes for ",e.selectedSport.name,"!")}}function Ao(t,r){if(t&1&&(o(0,"div",75)(1,"div",31)(2,"table",80,0),y(4,81),x(5,Di,2,0,"th",82)(6,Vi,2,1,"td",38),v(
1),y(7,83),x(8,Fi,2,0,"th",82)(9,Ri,2,1,"td",38),v(),y(10,84),x(11,Ii,2,0,"th",82)(12,Hi,2,1,"td",38),v(),y(13,85),x(14,Wi,2,0,"th",82)(15,Qi,2,1,"td",38),v(),y(16,86),x(17,Li,2,0,"th",82)(18,Ni,2,1,"td",38),v(),y(19,87),x(20,Bi,2,0,"th",82)(21,ji,2,1,"td",38),v(),y(22,88),x(23,qi,2,0,"th",82)(24,zi,2,1,"td",38),v(),y(25,89),x(26,Yi,2,0,"th",82)(27,Ui,2,1,"td",38),v(),y(28,90),x(29,Gi,2,0,"th",82)(30,Ki,2,1,"td",38),v(),y(31,91),x(32,Xi,2,0,"th",82)(33,Ji,2,1,"td",38),v(),y(34,92),x(35,Zi,2,0,"th",82)(36,$i,2,1,"td",38),v(),y(37,93),x(38,eo,2,0,"th",82)(39,to,2,1,"td",38),v(),y(40,94),x(41,no,2,0,"th",82)(42,io,2,1,"td",38),v(),y(43,36),x(44,oo,2,0,"th",82)(45,ao,2,1,"td",38),v(),y(46,39),x(47,ro,2,0,"th",82)(48,lo,2,1,"td",38),v(),y(49,95),x(50,so,2,0,"th",82)(51,co,2,1,"td",38),v(),y(52,40),x(53,ho,11,6,"th",96)(54,Oo,7,6,"td",97),v(),x(55,To,1,0,"tr",43)(56,Eo,1,6,"tr",44)(57,ko,3,2,"tr",45),i()()()),t&2){let e=C(3);a(2),m("dataSource",e.classesDataSource),a(2),m("sticky",!e.isMobile),a(45),m("sticky",!e.isMobile),a(6),m("matHeaderRowDef",e.displayedColumns4classes),a(),m("matRowDefColumns",e.displayedColumns4classes)}}function Do(t,r){if(t&1&&(E(0,"ngx-ui-loader",26),u(1,Ei,2,2),u(2,Ai,2,1,"div",74),u(3,Ao,58,5,"div",75),o(4,"div",76),E(5,"mat-paginator",77,2),i(),E(7,"ngx-ui-loader",26)),t&2){let e=C(2);m("loaderId","loader-hq-clasification")("fgsSize",75),a(),h((e.classesDataSource==null||e.classesDataSource.data==null?null:e.classesDataSource.data.length)>0?1:-1),a(),h(e.isLoadingResults?2:-1),a(),h(e.classesDataSource?3:-1),a(),m("hidden",e.classesDataSource.filteredData.length<=4),a(),m("pageSize",e.isMobile?"5":"15")("length",e.classesDataSource.filteredData.length)("pageSizeOptions",fe(11,Bn)),a(2),m("loaderId","loader-allowed2")("fgsSize",75)}}function Vo(t,r){t&1&&(o(0,"div",25)(1,"mat-tab-group")(2,"mat-tab",27),x(3,wi,21,7,"ng-template",28),i(),o(4,"mat-tab",29),x(5,Do,8,12,"ng-template",28),i()()())}var Za=(()=>{class t{api;notify;ngxService;cdr;dialog;platform;_fuseConfigService;breakpointObserver;loading=!1;selectedSport=null;selectedSportKey=null;isMobile=!1;isBrowser=!1;isXS=!1;isTablet=!1;searchFields;sports=[];panelWidth;searchInput;searchInput4Class;panelminWidth;panelHeight;fuseConfig;displayedColumns=["name","showOn","hiddenOn","action"];displayedColumns4classes=["name","shortName","abr","minAge","maxAge","minRosterCnt","maxRosterCnt","isYouth","isTeamClass","isEventClass","teamRegPrice","sortPos","group","showOn","hiddenOn","_key","action"];dataSource4event;classesDataSource;isLoadingResults;set paginator(e){e&&(this.classesDataSource.paginator=e)}set sort(e){e&&(this.classesDataSource.sort=e)}filter;table;_unsubscribeAll;constructor(e,l,n,c,g,d,F,q){this.api=e,this.notify=l,this.ngxService=n,this.cdr=c,this.dialog=g,this.platform=d,this._fuseConfigService=F,this.breakpointObserver=q,this._unsubscribeAll=new H,this.isBrowser=lt(d),this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(z=>{this.isMobile=!!z.matches,this.isXS=!!z.matches})}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.ngxService.startLoader("loader-hq-setup"),this.ngxService.startLoader("loader-hq-eventTypes"),this.ngxService.startLoader("loader-hq-clasification"),this.getSports()}getSports(){this.api.get("Admin/getSports",!0).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.sports=e,this.ngxService.stopLoader("loader-hq-setup")},error:e=>{this.ngxService.stopLoader("loader-hq-setup"),this.notify.openAlertModal(e.error?e.error:"An error has occured",V.ERROR)}})}onSportChange(){if(!this.selectedSportKey){this.selectedSport=null;return}this.selectedSport=this.sports.find(e=>e._key===this.selectedSportKey)??null,this.selectedSport&&this.setSelectedSport()}clearSportSelection(){this.selectedSportKey=null,this.selectedSport=null,this.searchInput="",this.searchInput4Class=""}setSelectedSport(){this.dataSource4event=new ue(this.selectedSport.eventTypes),this.ngxService.stopLoader("loader-hq-eventTypes"),this.classesDataSource=new ue(this.selectedSport.classes),this.cdr.detectChanges(),this.ngxService.stopLoader("loader-hq-clasification"),setTimeout(()=>{this.classesDataSource.paginator=this.paginator},250)}hideShowEventType(e,l){this.hideShow("eventType",l,e)}hideShowClass(e,l){this.hideShow("class",l,e)}hideShow(e,l,n){n.loading=!0,this.api.get("Admin/"+l+"/"+e+"/"+n._key,!0).pipe(T(this._unsubscribeAll)).subscribe({next:c=>{n.loading=!1,n.hidden=!n.hidden,this.notify.openToaster((e=="class"?"Class":"Event Type")+" is "+(l=="show"?"restored":"hidden"),"success")},error:c=>{n.loading=!1,this.ngxService.stopLoader("loader-hq-setup"),this.notify.openAlertModal(c.error?c.error:"An error has occured",V.ERROR)}})}openDialog(e,l,n){l.action=e,l.index=n,this.dialog.open(Nt,{panelClass:"eventTypeDialog-custom-dialog-container",width:"400px",maxWidth:"95vw",height:"auto",maxHeight:"90vh",data:l}).afterClosed().subscribe(g=>{g&&(g.event=="Add"?this.addEvent(g.data):g.event=="Update"&&this.updateEvent(g.data,l))})}addEvent(e){e._key=null,e.sport=this.selectedSport._key,this.api.post("Admin/createEventType",e,!0).pipe(T(this._unsubscribeAll)).subscribe({next:l=>{e._key=l._key,this.dataSource4event.data.push(e),this.dataSource4event._updateChangeSubscription(),this.notify.openToaster("Event type is added","success")},error:l=>{this.notify.openAlertModal(l.error?l.error:"An error has occured",V.ERROR)}})}updateEvent(e,l){this.api.post("Admin/updateEventType",e,!0).pipe(T(this._unsubscribeAll)).subscribe({next:n=>{this.dataSource4event.data[e.index]=e,this.dataSource4event._updateChangeSubscription(),this.notify.openToaster("Event is updated","success"),l=e},error:n=>{this.notify.openAlertModal(n.error?n.error:"An error has occured",V.ERROR)}})}editEventTypePoints(e){this.panelminWidth=this.isMobile?"94vw":"70vw",this.api.get("Admin/editPoints/"+e._key,!0).pipe(T(this._unsubscribeAll)).subscribe({next:l=>{this.dialog.open(Bt,{panelClass:"pointsDialog-custom-dialog-container",width:"fit-content",maxWidth:"fit-content",minWidth:this.panelminWidth,height:"auto",maxHeight:"95vh",data:{data:l,eventType:e.name}}).afterClosed().subscribe(c=>{})},error:l=>{this.notify.openAlertModal(l.error?l.error:"An error has occured",V.ERROR)}})}openDialog4class(e,l,n){this.panelWidth=this.isMobile?"95vw":"40vw",l.action=e,l.index=n,l.sport=this.selectedSport._key,this.dialog.open(qt,{panelClass:"full-width-dialog",width:this.panelWidth,maxWidth:this.panelWidth,height:"auto",maxHeight:"95vh",data:l}).afterClosed().subscribe(g=>{g&&(g.event=="Add"?this.addClass(g.data):g.event=="Update"&&this.updateClass(g.data,n,l))})}addClass(e){this.isLoadingResults=!0,e._key=null,e.sport=this.selectedSport._key,this.api.post("Admin/createClassification",e,!0).pipe(T(this._unsubscribeAll)).subscribe({next:l=>
1{let n={sortPos:e.sortPos,name:e.name,hidden:e.hidden,teamRegPrice:e.teamRegPrice,shortName:e.shortName,abr:e.abr,minAge:e.minAge,maxAge:e.maxAge,minRosterCnt:e.minRosterCnt,maxRosterCnt:e.maxRosterCnt,isYouth:e.isYouth,isTeamClass:e.isTeamClass,isEventClass:e.isEventClass,group:e.group,_key:l._key};this.classesDataSource.data.push(n),this.classesDataSource.data.sort((c,g)=>c.sortPos<=g.sortPos?-1:1),this.classesDataSource._updateChangeSubscription(),this.notify.openToaster("Classification is added","success"),this.isLoadingResults=!1},error:l=>{this.isLoadingResults=!1,this.notify.openAlertModal(l.error?l.error:"An error has occured",V.ERROR)}})}updateClass(e,l,n){this.api.post("Admin/updateClassification",e,!0).pipe(T(this._unsubscribeAll)).subscribe({next:c=>{let g={sortPos:e.sortPos,name:e.name,hidden:e.hidden,teamRegPrice:e.teamRegPrice,shortName:e.shortName,abr:e.abr,minAge:e.minAge,maxAge:e.maxAge,minRosterCnt:e.minRosterCnt,maxRosterCnt:e.maxRosterCnt,isYouth:e.isYouth,isTeamClass:e.isTeamClass,isEventClass:e.isEventClass,group:e.group,_key:e._key},d=this.classesDataSource.data.indexOf(n);this.classesDataSource.data.splice(d,1,g),this.classesDataSource.data.sort((F,q)=>F.sortPos<=q.sortPos?-1:1),this.classesDataSource._updateChangeSubscription(),this.notify.openToaster("Updated","success")},error:c=>{this.notify.openAlertModal(c.error?c.error:"An error has occured",V.ERROR)}})}editClassAllowed(e){this.ngxService.startLoader("loader-allowed2");let l={sport:this.selectedSport._key,mode:e};this.panelWidth=this.isMobile?"100%":"90%",this.dialog.open(zt,{panelClass:"full-width-dialog",width:this.panelWidth,maxWidth:this.panelWidth,height:"95vh",maxHeight:"95vh",data:l}).afterClosed().subscribe(c=>{this.ngxService.stopLoader("loader-allowed2")})}copyPoints(e,l){this.api.post("Admin/copyPoints",{copyTo:e,copyFrom:l},!0).pipe(T(this._unsubscribeAll)).subscribe({next:n=>{this.notify.openToaster("The points are copied","success")},error:n=>{this.notify.openAlertModal(n.error?n.error:"An error has occured",V.ERROR)}})}onEventSearchChange(e){this.searchInput=e,this.dataSource4event&&this.applyFilter(this.dataSource4event,e)}clearEventSearch(){this.onEventSearchChange("")}onClassSearchChange(e){this.searchInput4Class=e,this.classesDataSource&&this.applyFilter(this.classesDataSource,e)}clearClassSearch(){this.onClassSearchChange("")}applyFilter(e,l){e.filter=(l??"").trim().toLowerCase(),e.paginator&&e.paginator.firstPage()}trackEventType(e,l){return l._key}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(l){return new(l||t)(f(N),f(j),f(Ce),f(se),f(L),f(nt),f(B),f(J))};static \u0275cmp=W({type:t,selectors:[["hq-page"]],viewQuery:function(l,n){if(l&1&&(k(Qn,5),k(qe,5),k(Ln,7),k(ae,5)),l&2){let c;A(c=D())&&(n.paginator=c.first),A(c=D())&&(n.sort=c.first),A(c=D())&&(n.filter=c.first),A(c=D())&&(n.table=c.first)}},decls:32,vars:10,consts:[["table",""],["menu","matMenu"],["paginatorClassData",""],["id","HQPage","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth"],["title","HQ Sport Setup","icon","feather",3,"hideBanner"],[1,"content","p-24","mx-auto",2,"min-height","800px",3,"ngStyle"],[1,"search-panel-wrap","mt-12","mx-auto"],[1,"search-panel"],[1,"search-eyebrow"],[1,"search-panel__card"],[1,"search-panel__header"],[1,"search-panel__title"],[1,"search-panel__hint"],[1,"search-panel__fields"],[1,"search-field"],["for","ss-sport",1,"search-field__label"],[1,"search-field__control"],["id","ss-sport","name","selectedSportKey",1,"search-field__input",3,"ngModelChange","ngModel"],[3,"ngValue"],["width","14","height","14","viewBox","0 0 14 14","fill","none","aria-hidden","true",1,"search-field__chevron"],["d","M3 5L7 9L11 5","stroke","currentColor","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],[1,"search-panel__actions"],["type","button",1,"search-clear-btn",3,"click","disabled"],["width","13","height","13","viewBox","0 0 13 13","fill","none","aria-hidden","true"],["d","M2 2L11 11M11 2L2 11","stroke","currentColor","stroke-width","1.6","stroke-linecap","round"],[1,"w-100-p","mt-12","mb-100","fuse-white"],[3,"loaderId","fgsSize"],["label","Division Types"],["matTabContent",""],["label","Classification"],[1,"approval-table-scroll-wrap"],[1,"approval-table-wrapper"],["mat-table","","recycleRows","","matSort","",1,"approval-table","w-100-
1p","sport-setup-event-types-table",3,"dataSource","trackBy"],["matColumnDef","name"],["mat-header-cell","","class","w-30-p",4,"matHeaderCellDef"],["mat-cell","","class","",4,"matCellDef"],["matColumnDef","showOn"],["mat-header-cell","","class","w-30-p pl-8",4,"matHeaderCellDef"],["mat-cell","","class","pl-8",4,"matCellDef"],["matColumnDef","hiddenOn"],["matColumnDef","action"],["mat-header-cell","","class","center sport-setup-action-header",4,"matHeaderCellDef"],["mat-cell","","class","center w-50-p sport-setup-event-actions",4,"matCellDef"],["mat-header-row","","class","approval-table-header-row",4,"matHeaderRowDef"],["mat-row","",3,"row-even","row-odd","row-hidden",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[1,"club-teams-desktop-toolbar","mt-4"],[1,"club-teams-mobile-toolbar","mt-4"],[1,"quick-search-toolbar__actions"],[1,"quick-search","quick-search--desktop"],[1,"quick-search__icon"],["type","search","placeholder","Quick search division types...","name","searchInputEventTypes",1,"quick-search__input",3,"ngModelChange","ngModel"],["type","button","aria-label","Clear search",1,"quick-search__clear"],["type","button","aria-label","Clear search",1,"quick-search__clear",3,"click"],[1,"quick-search"],["type","search","placeholder","Quick search...","name","searchInputEventTypesMobile",1,"quick-search__input",3,"ngModelChange","ngModel"],["mat-header-cell","",1,"w-30-p"],["mat-cell","",1,""],["mat-header-cell","",1,"w-30-p","pl-8"],["mat-cell","",1,"pl-8"],["mat-header-cell","",1,"center","sport-setup-action-header"],["mat-button","","color","",1,"btn-addNewField","mat-stroked-button","primary-fg","primary-border",3,"click"],["mat-cell","",1,"center","w-50-p","sport-setup-event-actions"],["mat-button","",1,"ml-8","btn-action",3,"click","ngClass"],["mat-button","","aria-label","Copy points to",1,"ml-8","btn-action",3,"ngClass","matMenuTriggerFor"],[1,"mr-4"],["mat-button","",1,"ml-8","btn-action",3,"ngClass"],["src","/assets/images/btn-loading.svg",1,"loading"],["mat-menu-item",""],["mat-menu-item","",3,"click"],["mat-header-row","",1,"approval-table-header-row"],["mat-row",""],[1,"mat-row"],[1,"mat-cell","pl-4"],[1,"loading-shade"],[1,"classesData","approval-table-scroll-wrap"],[3,"hidden"],["showFirstLastButtons","",3,"pageSize","length","pageSizeOptions"],["type","search","placeholder","Quick search classifications...","name","searchInput4Class",1,"quick-search__input",3,"ngModelChange","ngModel"],["type","search","placeholder","Quick search...","name","searchInput4ClassMobile",1,"quick-search__input",3,"ngModelChange","ngModel"],["mat-table","","recycleRows","","matSort","",1,"approval-table","sport-setup-classes-table",3,"dataSource"],["matColumnDef","name",3,"sticky"],["mat-header-cell","","class","w-30-p pl-8","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortName"],["matColumnDef","abr"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","maxRosterCnt"],["matColumnDef","isYouth"],["matColumnDef","isTeamClass"],["matColumnDef","isEventClass"],["matColumnDef","teamRegPrice"],["matColumnDef","sortPos"],["matColumnDef","minRosterCnt"],["matColumnDef","group"],["matColumnDef","_key",3,"sticky"],["mat-header-cell","","class","center nowrap sport-setup-action-header",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",1,"w-30-p","pl-8"],["mat-header-cell","",1,"center","nowrap","sport-setup-action-header"],[1,"sport-setup-class-header-actions"],["mat-button","",1,"primary",3,"click"],["mat-cell","",1,"center"],["mat-button","","color","",1,"btn-action","w-editPoints","btn-narrow",3,"click","ngClass"],["mat-button","",1,"btn-action","red","w-editPoints"],["mat-button","",1,"btn-action","w-editPoints","green",3,"ngClass"],["mat-button","",1,"btn-action","red","w-editPoints",3,"click"],["mat-button","",1,"btn-action","w-editPoints","green",3,"click","ngClass"]],template:function(l,n){l&1&&(o(0,"div",3),E(1,"page-header",4),o(2,"div",5)(3,"div",6)(4,"div",7)(5,"div",8),s(6,"SETUP FILTER PARAMETERS"),i(),o(7,"div",9)(8,"div",10)(9,"span",11),s(10,"HQ Sport Setup"),i(),o(11,"span",12),s(12,"Select a sport to manage division types and classes"),i()(),o(13,"div",13)(14,"div",14)(15,"label",15),s(16,"Sport"),i(),o(17,"div",16)(18,"select",17),b("ngModelChange",function(g){return P(n.selectedSportKey,g)||(n.selectedSportKey=g),g}),S("ngModelChange",function(){return n.onSportChange()}
1),o(19,"option",18),s(20,"Select a Sport"),i(),re(21,zn,1,1,null,null,jn),i(),Xe(),o(23,"svg",19),E(24,"path",20),i()()()(),Je(),o(25,"div",21)(26,"button",22),S("click",function(){return n.clearSportSelection()}),Xe(),o(27,"svg",23),E(28,"path",24),i(),s(29," Clear all "),i()()()()(),u(30,Vo,6,0,"div",25),Je(),E(31,"ngx-ui-loader",26),i()()),l&2&&(a(),m("hideBanner",!0),a(),m("ngStyle",at(8,Nn,n.fuseConfig.pageWidth&&!n.isMobile?n.fuseConfig.pageWidth+"%":"100%")),a(16),M("ngModel",n.selectedSportKey),a(),m("ngValue",null),a(2),le(n.sports),a(5),m("disabled",!n.selectedSportKey),a(4),h(n.selectedSport?30:-1),a(),m("loaderId","loader-hq-setup")("fgsSize",75))},dependencies:[be,Me,rt,Ot,vt,Dt,Et,kt,At,ht,ut,oe,ie,De,Ae,X,ct,dt,U,st,G,K,je,ae,Ve,Re,Qe,Ie,Fe,Le,He,We,Ne,Be,Tt,It,qe,Rt,Ct,_t,pt,gt,yt,wt,Ft,Vt],styles:['.club-teams-desktop-toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 0}.club-teams-desktop-toolbar[_ngcontent-%COMP%] .quick-search-toolbar__actions[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;flex-wrap:nowrap}.club-teams-mobile-toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:8px 8px 4px}.club-teams-mobile-toolbar[_ngcontent-%COMP%] .quick-search-toolbar__actions[_ngcontent-%COMP%]{align-items:stretch;flex-wrap:nowrap}.search-panel-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.search-panel[_ngcontent-%COMP%]{width:100%}.search-eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#1e3a5f;margin-bottom:10px;padding:0 4px;display:flex;align-items:center;gap:10px}.search-eyebrow[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:linear-gradient(to right,rgba(30,58,95,.18),transparent)}.search-panel__card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e4eaf2;border-radius:16px;padding:28px 32px 24px;box-shadow:0 1px 3px #0f1f350a,0 8px 32px #0f1f3512,0 0 0 1px #fffc inset}@media(max-width:599px){.search-panel__card[_ngcontent-%COMP%]{padding:20px 18px 18px;border-radius:12px}}.search-panel__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(30,58,95,.08)}.search-panel__title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:#1e3a5f;letter-spacing:.01em}.search-panel__hint[_ngcontent-%COMP%]{font-size:12px;color:#6c757d;font-weight:500}@media(max-width:599px){.search-panel__hint[_ngcontent-%COMP%]{display:none}}.search-panel__fields[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:14px 16px}.search-panel__fields[_ngcontent-%COMP%] .search-field[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.search-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;min-width:0}.search-field__label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#5a7a9e;padding-left:2px;margin:0}.search-field__control[_ngcontent-%COMP%]{position:relative}.search-field__input[_ngcontent-%COMP%]{appearance:none;-webkit-appearance:none;width:100%;height:44px;padding:0 40px 0 14px;font-size:14px;font-weight:500;color:#0f1f35;background:#f5f8fc;border:1.5px solid #dce6f0;border-radius:10px;cursor:pointer;outline:none;font-family:inherit;transition:border-color .18s,background .18s,box-shadow .18s}.search-field__input[_ngcontent-%COMP%]:hover{background:#eef3fb;border-color:#b3c8e0}.search-field__input[_ngcontent-%COMP%]:focus{background:#fff;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1a}.search-field__input[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.search-field__chevron[_ngcontent-%COMP%]{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:#7a9abd;transition:color .18s}.search-field__control[_ngcontent-%COMP%]:focus-within .search-field__chevron[_ngcontent-%COMP%]{color:#1e3a5f}.search-panel__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:18px;padding-top:14px;border-top:1px solid rgba(30,58,95,.08)}@media(max-width:599px){.search-panel__actions[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:stretch;gap:12px}}.search-clear-btn[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#7a9abd;background:none;border:none;cursor:pointer;padding:8px 4px;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:color .18s}.search-clear-btn[_ngcontent-%COMP%]:hover:not(:disabled){color:#1e3a5f}.search-clear-btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}#HQPage[_ngcontent-%COMP%]{width:100%}#HQPage[_ngcontent-%COMP%] .p-content[_ngcontent-%COMP%]{padding:0 24px;margin-top:12px}@media screen and (max-width:599px){#HQPage[_ngcontent-%COMP%] .p-content[_ngcontent-%COMP%]{padding:4px}}@media screen and (min-width:600px)and (max-width:959px){#HQPage[_ngcontent-%COMP%] .p-content[_ngcontent-%COMP%]{padding:4px}}#HQPage[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{padding:16px 4px!important}#HQPage[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{margin:0}#HQPage[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{text-align:center!important}#HQPage[_ngcontent-%COMP%] .center[_ngcontent-%COMP%] .mat-sort-header-container[_ngcontent-%COMP%]{justify-content:center!important}#HQPage[_ngcontent-%COMP%] .center.mat-mdc-header-cell[_ngcontent-%COMP%]{text-align:center!important}#HQPage[_ngcontent-%COMP%] .approval-table-scroll-wrap[_ngcontent-%COMP%]{min-width:0;max-width:100%}#HQPage[_ngcontent-%COMP%] .approval-table-wrapper[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;box-shadow:0 1px 4px #00000014;border:1px solid #eaecf0;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%]{border-collapse:collapse;font-family:Open Sans,Open Sans Condensed,sans-serif;font-size:14px}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .approval-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]{background:#eaecf0;white-space:nowrap;padding:8px 10px;border-bottom:2px solid #e0e0e0;border-right:1px solid #e0e0e0}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .approval-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:not(.sport-setup-action-header){font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#4a5568}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .approval-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] th.sport
1-setup-action-header[_ngcontent-%COMP%]{text-transform:none!important;letter-spacing:normal!important;font-weight:400!important;color:inherit!important;vertical-align:middle}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] th.sport-setup-action-header[_ngcontent-%COMP%] .mat-mdc-outlined-button.primary-fg[_ngcontent-%COMP%] .mdc-button__label[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] th.sport-setup-action-header[_ngcontent-%COMP%] .mat-mdc-outlined-button.primary-fg[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:inherit!important}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .sport-setup-class-header-actions[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;color:inherit}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .sport-setup-class-header-actions[_ngcontent-%COMP%] .mat-mdc-button[_ngcontent-%COMP%]{text-transform:none;font-size:13px;font-weight:600;letter-spacing:normal;white-space:nowrap}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .sport-setup-class-header-actions[_ngcontent-%COMP%] .mat-mdc-outlined-button.primary-fg[_ngcontent-%COMP%] .mdc-button__label[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .sport-setup-class-header-actions[_ngcontent-%COMP%] .mat-mdc-outlined-button.primary-fg[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] .sport-setup-class-header-actions[_ngcontent-%COMP%] .mat-mdc-button.primary-fg[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:inherit!important}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;border-right:1px solid #e0e0e0;border-bottom:1px solid rgb(234.2,234.2,234.2);vertical-align:middle}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] td.mat-mdc-cell.text-center[_ngcontent-%COMP%]{text-align:center!important}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] tr.mat-mdc-row.row-even[_ngcontent-%COMP%]:not(.row-hidden) td.mat-mdc-cell[_ngcontent-%COMP%]{background-color:#fff}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] tr.mat-mdc-row.row-odd[_ngcontent-%COMP%]:not(.row-hidden) td.mat-mdc-cell[_ngcontent-%COMP%]{background-color:#f9fafb}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] tr.mat-mdc-row.row-hidden[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{background-color:#fff3e0}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] tr.mat-mdc-row[_ngcontent-%COMP%]{transition:background-color .15s ease;min-height:48px;height:auto}#HQPage[_ngcontent-%COMP%] .approval-table[_ngcontent-%COMP%] tr.mat-mdc-row[_ngcontent-%COMP%]:not(.row-hidden):hover td.mat-mdc-cell[_ngcontent-%COMP%]{background-color:#eef2f7!important}#HQPage[_ngcontent-%COMP%] .mat-sort-header-arrow[_ngcontent-%COMP%]{color:#4a5568}#HQPage[_ngcontent-%COMP%] .btn-action[_ngcontent-%COMP%]{line-height:30px;margin-left:8px}#HQPage[_ngcontent-%COMP%] .sport-setup-event-actions[_ngcontent-%COMP%]{white-space:nowrap}#HQPage[_ngcontent-%COMP%] .sport-setup-event-actions[_ngcontent-%COMP%] .mat-mdc-button.blue[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-event-actions[_ngcontent-%COMP%] .mat-mdc-button.indigo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-event-actions[_ngcontent-%COMP%] .mat-mdc-button.red[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-event-actions[_ngcontent-%COMP%] .mat-mdc-button.green[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:inherit!important}#HQPage[_ngcontent-%COMP%] .sport-setup-event-actions[_ngcontent-%COMP%] .mat-mdc-button.lime[_ng
1content-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#fff!important}#HQPage[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:4px}#HQPage[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:4px}#HQPage[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:4px!important}#HQPage[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:4px}#HQPage[_ngcontent-%COMP%] .mat-mdc-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{min-width:80px}#HQPage[_ngcontent-%COMP%] .sport-setup-event-types-table.mat-mdc-table[_ngcontent-%COMP%]{width:100%;min-width:100%}#HQPage[_ngcontent-%COMP%] .sport-setup-event-types-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-event-types-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]{width:100%}#HQPage[_ngcontent-%COMP%] .sport-setup-event-types-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{flex:9rem;min-width:9rem}#HQPage[_ngcontent-%COMP%] .sport-setup-event-types-table[_ngcontent-%COMP%] .mat-column-action[_ngcontent-%COMP%]{flex:20rem;min-width:20rem}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table.mat-mdc-table[_ngcontent-%COMP%]{width:max-content;min-width:100%;max-width:none}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]{width:max-content;min-width:100%}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{flex:0 0 160px!important;min-width:160px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-shortName[_ngcontent-%COMP%]{flex:0 0 120px!important;min-width:120px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-abr[_ngcontent-%COMP%]{flex:0 0 72px!important;min-width:72px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-minAge[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-maxAge[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-maxRosterCnt[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-minRosterCnt[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-sortPos[_ngcontent-%COMP%]{flex:0 0 88px!important;min-width:88px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-isYouth[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-isTeamClass[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-isEventClass[_ngcontent-%COMP%]{flex:0 0 100px!important;min-width:100px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-teamRegPrice[_ngcontent-%COMP%]{flex:0 0 112px!important;min-width:112px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-group[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-showOn[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-hiddenOn[_ngcontent-%COMP%]{flex:0 0 120px!important;min-width:120px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-_key[_ngcontent-%COMP%]{flex:0 0 100px!important;min-width:100px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] .mat-column-action[_ngcontent-%COMP%]{flex:0 0 auto!important;min-width:420px!important}#HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%] th.sport
1-setup-action-header[_ngcontent-%COMP%]{padding:8px 12px!important}#HQPage[_ngcontent-%COMP%] .classesData[_ngcontent-%COMP%]{position:relative}#HQPage[_ngcontent-%COMP%] .loading-shade[_ngcontent-%COMP%]{position:absolute;inset:0 0 56px;background:#00000026;z-index:1;display:flex;align-items:center;justify-content:center}@media screen and (max-width:599px){#HQPage[_ngcontent-%COMP%] .sport-setup-event-types-table[_ngcontent-%COMP%], #HQPage[_ngcontent-%COMP%] .sport-setup-classes-table[_ngcontent-%COMP%]{border-collapse:separate!important;border-spacing:0}#HQPage[_ngcontent-%COMP%] .mat-column-filler[_ngcontent-%COMP%]{padding:0 8px;font-size:10px;text-align:center}#HQPage[_ngcontent-%COMP%] .mat-mdc-table-sticky-border-elem-left[_ngcontent-%COMP%]{border-right:1px solid #dcdddf}#HQPage[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, #HQPage[_ngcontent-%COMP%] td.mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{min-width:70px!important}}']})}return t})();export{Za as SportSetupComponent};
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.