1import{$a as _,Ad as g,Fa as c,Fb as x,Ib as e,Ka as d,Le as L,Ma as p,U as D,ad as S,bb as y,cc as l,d as z,di as C,fa as E,ga as k,gb as f,hb as r,ib as s,jb as a,pj as b,qb as U,sb as M,tb as A,yd as v}from"./chunk-45UQS2YE.js";var I=()=>["/admin/dashboard"],O=()=>["/player-dashboard"],B=()=>["/dashboard"];function R(t,i){t&1&&(e(0,` 2 `),a(1,"img",4),e(2,` 3 `))}function V(t,i){t&1&&(e(0,` 4 `),a(1,"img",5),e(2,` 5 `))}function $(t,i){t&1&&(e(0,` 6 `),a(1,"img",6),e(2,` 7 `))}function N(t,i){t&1&&(e(0,` 8 `),a(1,"img",7),e(2,` 9 `))}function W(t,i){t&1&&(e(0,` 10 `),a(1,"img",7),e(2,` 11 `))}function Y(t,i){t&1&&(e(0,` 12 `),a(1,"img",4),e(2,` 13 `))}function H(t,i){if(t&1){let h=U();e(0,` 14 `),r(1,"p",8)(2,"a",9),M("click",function(){E(h);let o=A();return k(o.returnToApp())}),e(3,` 15 Return to app `),a(4,"i",10),e(5,` 16 `),s()(),e(6,` 17 `)}}function K(t,i){if(t&1&&(e(0,` 18 `),r(1,"p",8)(2,"a",11),e(3,` 19 Return to dashboard `),a(4,"i",10),e(5,` 20 `),s()(),e(6,` 21 `)),t&2){let h=A();c(2),f("routerLink",h.isAdmin?l(1,I):h.isPlayer?l(2,O):l(3,B))}}var se=(()=>{let i=class i{constructor(n,o){this.authorizeService=n,this.siteDataService=o,this.isMobileUser=!1,this.sport=L,this.returnToAppUrl="com.sprocketsports.team://dashboard",this.unsubscribe$=new z}get isAdminSide(){return this.siteDataService.isAdmin}ngOnInit(){this.isMobileUser=this.siteDataService.isMobileUser||this.isMobileSessionStored(),this.isMobileUser&&this.returnToApp(),this.authorizeService.getUser().subscribe(n=>{this.isAdmin=n&&this.authorizeService.isAdmin(n.role),this.isPlayer=n&&this.authorizeService.isPlayer(n.role)}),this.siteDataService.getClubSettings().pipe(D(this.unsubscribe$)).subscribe(n=>{this.sportID=n.club?.sport?.sportID}),this.siteDataService.hideSiteLoader()}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}returnToApp(){window.location.href=this.returnToAppUrl}isMobileSessionStored(){try{return sessionStorage.getItem("mobileAppUser")==="true"}catch(n){return!1}}};i.\u0275fac=function(o){return new(o||i)(d(C),d(b))},i.\u0275cmp=p({type:i,selectors:[["app-unauthorized-content"]],decls:30,vars:4,consts:[[1,"row"],[1,"col-md-12",2,"text-align","center"],[1,"blocked-image"],[1,"my-5"],["src","/assets/img/blocked/soccer.jpg"],["src","/assets/img/blocked/hockey.jpg"],["src","/assets/img/blocked/volleyball.jpg"],["src","/assets/img/blocked/BASEBALL.jpg"],[1,"mb-5"],[2,"cursor","pointer",3,"click"],[1,"fa-regular","fa-arrow-right"],[3,"routerLink"]],template:function(o,m){if(o&1&&(r(0,"main"),e(1,` 22 `),r(2,"div"),e(3,` 23 `),r(4,"div",0),e(5,` 24 `),r(6,"div",1),e(7,` 25 `),r(8,"div",2),e(9,` 26 `),_(10,R,3,0)(11,V,3,0)(12,$,3,0)(13,N,3,0)(14,W,3,0)(15,Y,3,0),e(16,` 27 `),s(),e(17,` 28 `),r(18,"h1",3),e(19,"Blocked!"),s(),e(20,` 29 `),r(21,"p"),e(22,"We're sorry, you don't currently have access to this page. "),s(),e(23,` 30 `),_(24,H,7,0)(25,K,7,4),s(),e(26,` 31 `),s(),e(27,` 32 `),s(),e(28,` 33 `),s(),e(29,` 34`)),o&2){let u;c(2),x("container",!m.isAdminSide),c(8),y((u=m.sportID)===m.sport.SOCCER?10:u===m.sport.HOCKEY?11:u===m.sport.VOLLEYBALL?12:u===m.sport.BASEBALL?13:u===m.sport.SOFTBALL?14:15),c(14),y(m.isMobileUser?24:25)}},dependencies:[S,g,v],styles:[".blocked-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;margin-top:2rem}"]});let t=i;return t})();var q=()=>["/admin/dashboard"],G=()=>["/player-dashboard"],J=()=>["/dashboard"],w=(()=>{let i=class i{constructor(n,o){this.authorizeService=n,this.siteDataService=o}get isAdminSide(){return this.siteDataService.isAdmin}ngOnInit(){this.authorizeService.getUser().subscribe(n=>{this.isAdmin=n&&this.authorizeService.isAdmin(n.role),this.isPlayer=n&&this.authorizeService.isPlayer(n.role)}
34),this.siteDataService.hideSiteLoader()}};i.\u0275fac=function(o){return new(o||i)(d(C),d(b))},i.\u0275cmp=p({type:i,selectors:[["app-not-found-content"]],decls:30,vars:6,consts:[[1,"row"],[1,"col-md-12",2,"text-align","center"],["src","/assets/img/404.jpg","alt","",1,"ml-2"],[3,"routerLink"]],template:function(o,m){o&1&&(r(0,"main"),e(1,` 35 `),r(2,"div"),e(3,` 36 `),r(4,"div",0),e(5,` 37 `),r(6,"div",1),e(7,` 38 `),a(8,"br")(9,"br")(10,"br"),e(11,` 39 `),a(12,"img",2),e(13,` 40 `),r(14,"h1"),e(15,"Page Not Found"),s(),e(16,` 41 `),r(17,"p"),e(18,"We're sorry, the page you are looking for could not be found."),s(),e(19,` 42 `),r(20,"p"),e(21,"Click "),r(22,"a",3),e(23,"here"),s(),e(24,` 43 to return to 44 your dashboard.`),s(),e(25,` 45 `),s(),e(26,` 46 `),s(),e(27,` 47 `),s(),e(28,` 48`),s(),e(29,` 49`)),o&2&&(c(2),x("container",!m.isAdminSide),c(20),f("routerLink",m.isAdmin?l(3,q):m.isPlayer?l(4,G):l(5,J)))},dependencies:[S,g,v],encapsulation:2});let t=i;return t})();var he=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["ng-component"]],standalone:!1,decls:2,vars:0,template:function(o,m){o&1&&(a(0,"app-not-found-content"),e(1,` 50`))},dependencies:[w],encapsulation:2});let t=i;return t})();export{se as a,w as b,he as c};
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.