1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[29027],{29027:(D,d,i)=>{i.r(d),i.d(d,{CompetitionManagerAdminModule:()=>X});var o=i(72200),h=i(49189),c=i(38132),l=i(68324),p=i(69915),u=i(68010),v=i(39652),g=i(60152),b=i(25615),f=i(13961),t=i(73664),C=i(91029),M=i(18594),x=i(82966),L=i(13779);const S=(a,r,e,n)=>({topbar:a,bread:r,topbread:e,remo:n}),k=(a,r,e)=>({topbar:a,bread:r,topbread:e});function U(a,r){1&a&&(t.j41(0,"div",2),t.nrm(1,"app-skeleton-block"),t.k0s())}function I(a,r){if(1&a&&(t.j41(0,"div",3),t.nrm(1,"iframe",4),t.nI1(2,"safe"),t.k0s()),2&a){const e=t.XpG();t.Y8G("ngClass",t.ziG(6,S,e.topbar,e.bread,e.topbread,e.isRemo)),t.R7$(),t.Y8G("src",t.i5U(2,3,e.currentIframe,"resourceUrl"),t.f$h)("ngClass",t.sMw(11,k,e.topbar,e.bread,e.topbread))}}let T=(()=>{class a{_activatedRoute;_clubMenu;_breadCrumbs;_clubsService;_apiLeveradeService;_authService;_appService;globalVars;currentLink;tokenLoaded=!1;loading;get currentIframe(){let e=this._clubMenu.getLinkIframe(this.currentLink);return this.tokenLoaded?e+(e.includes("?")?`&third-party-session-id=${this._authService.iframeToken}`:`?third-party-session-id=${this._authService.iframeToken}`):""}get topbar(){return this._clubsService.isTopBar()&&!this._breadCrumbs.hasBreadcrumbs()}get bread(){return this._breadCrumbs.hasBreadcrumbs()&&this._clubsService.onlyBread()}get topbread(){return this._breadCrumbs.hasBreadcrumbs()&&this._clubsService.isTopBar()}_subscription=new f.yU;constructor(e,n,s,P,G,R,$,A){this._activatedRoute=e,this._clubMenu=n,this._breadCrumbs=s,this._clubsService=P,this._apiLeveradeService=G,this._authService=R,this._appService=$,this.globalVars=A,this._subscription.add(this._appService.subscribe("reloadIframe",()=>{this.loading=!0,this._clubMenu.falseIframe="",this.tokenLoaded=!1,this.currentLink="",setTimeout(()=>{this.currentLink=this._activatedRoute.snapshot.params?.cmLink,this.loadData()},250)})),this._subscription.add(this._activatedRoute.paramMap.subscribe(B=>{this.loading=!0,this.tokenLoaded=!1,this.currentLink=B.get("cmLink"),this.loadData()}))}loadData(){this.globalVars.navbarTop.title="module.mng.admin_iframes."+this.currentLink,this._clubMenu.iframes?.some(e=>e.id===this.currentLink)?this._authService.iframeToken?(this.loading=!1,this.tokenLoaded=!0):this._apiLeveradeService.getUserToken(this._authService.getId()).subscribe(e=>{this.loading=!1,this._authService.iframeToken=e.token,this.tokenLoaded=!0}):this.globalVars.routeForbidden()}ngOnDestroy(){this._subscription.unsubscribe()}static \u0275fac=function(n){return new(n||a)(t.rXU(C.nX),t.rXU(v.$),t.rXU(M.E),t.rXU(g.X),t.rXU(l.w),t.rXU(u.u),t.rXU(p.d),t.rXU(b.Y))};static \u0275cmp=t.VBU({type:a,selectors:[["app-competition-manager-admin"]],standalone:!1,decls:2,vars:2,consts:[["class","loading-container",4,"ngIf"],["class","admin-dashboard white",3,"ngClass",4,"ngIf"],[1,"loading-container"],[1,"admin-dashboard","white",3,"ngClass"],["name","clupik",3,"src","ngClass"]],template:function(n,s){1&n&&t.DNE(0,U,2,0,"div",0)(1,I,3,15,"div",1),2&n&&(t.Y8G("ngIf",s.loading),t.R7$(),t.Y8G("ngIf",!s.loading))},dependencies:[o.YU,o.bT,x.K,L.m],styles:["iframe[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - var(--admin-nav-top) - 24px)}iframe.topbar[_ngcontent-%COMP%]{min-height:calc(100vh - var(--admin-nav-top) - 48px - 24px)}@media (max-width: 991px){iframe.topbar[_ngcontent-%COMP%]{min-height:calc(100vh - var(--main-nav-top))}}iframe.topbread[_ngcontent-%COMP%]{min-height:calc(100vh - var(--admin-nav-top) - 48px - 57px - 24px)}@media (max-width: 991px){iframe.topbread[_ngcontent-%COMP%]{min-height:calc(100vh - var(--main-nav-top) - 57px - 24px)}}iframe.bread[_ngcontent-%COMP%]{min-height:calc(100vh - 57px - var(--admin-nav-top) - 24px)}@media (max-width: 991px){iframe.bread[_ngcontent-%COMP%]{padding-top:var(--main-nav-top);min-height:calc(100vh - 81px)}}.admin-dashboard[_ngcontent-%COMP%]{padding:24px}.admin-dashboard.remo[_ngcontent-%COMP%]{padding:0}.loading-container[_ngcontent-%COMP%]{padding:24px 24px 0;background-color:#fff;height:100%}"]})}return a})();var m=i(2615);const y=[{path:":cmLink",component:T}];let O=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=t.$C({type:a});
1static \u0275inj=m.G2t({imports:[c.iI.forChild(y),c.iI]})}return a})(),X=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=t.$C({type:a});static \u0275inj=m.G2t({imports:[o.MD,h.G,O]})}return a})()}}]);
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.