PageSourceSearch

https://www.fundacioneuskadi.eus/5546.f671a115d8012740.js

js fundacioneuskadi.eus collected 2026-10-02 20:37:22 UTC 35,013 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5546],{5546:(L,S,i)=>{i.r(S),i.d(S,{CompetitionManagerModule:()=>me});var s=i(61479),y=i(38132),h=i(10467),I=i(26532),b=i(9074),T=i(69915),B=i(68010),F=i(60152),A=i(59960),$=i(50433),f=i(45312),m=i(25615),v=i(13961),k=i(96354),_=i(28707),V=i(18530),j=i(5964),z=i(59434),d=i(2615);let R=(()=>{class n{camera;globalVars;handler=new V.B;constructor(e,o){this.camera=e,this.globalVars=o}setOptions(e,o){return{quality:50,destinationType:this.camera.DestinationType.DATA_URL,sourceType:e,encodingType:this.camera.EncodingType.JPEG,mediaType:this.camera.MediaType.PICTURE,correctOrientation:!0,saveToPhotoAlbum:o}}takePhoto(e){if(f.c.app){const a=this.setOptions(this.camera.PictureSourceType.CAMERA,!0);this.camera.getPicture(a).then(r=>{this.broadcast("receiveFiles",r)},r=>{console.log(r)})}else{let o=document.createElement("input");o.type="file",o.accept="image/*",o.capture=e?"":"environment",o.onchange=a=>{this.broadcast("receiveFiles",a.target.files)},o.click()}}getPhotoFromLibrary(){if(f.c.app){const o=this.setOptions(this.camera.PictureSourceType.SAVEDPHOTOALBUM,!1);this.camera.getPicture(o).then(a=>{this.broadcast("receiveFiles",a)},a=>{console.log(a)})}else{let e=document.createElement("input");e.type="file",e.accept="image/png,image/jpeg",e.onchange=o=>{this.broadcast("receiveFiles",o.target.files)},e.click()}}broadcast(e,o=null){this.handler.next({type:e,payload:o})}subscribe(e,o){return this.handler.pipe((0,j.p)(a=>a.type===e),(0,k.T)(a=>a.payload)).subscribe(o)}static \u0275fac=function(o){return new(o||n)(d.KVO(z.i7),d.KVO(m.Y))};static \u0275prov=d.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var t=i(73664),H=i(15449),U=i(68018);function Y(n,l){if(1&n){const e=t.RV6();t.j41(0,"app-list-item",8),t.nI1(1,"translate"),t.bIt("click",function(){d.eBV(e);const a=t.XpG();return d.Njj(a.photo())}),t.k0s()}2&n&&t.BMQ("aria-label",t.bMT(1,1,"global.common.take_photo"))}let N=(()=>{class n{globalVars;_camera;constructor(e,o){this.globalVars=e,this._camera=o}photo(){this._camera.takePhoto(this.globalVars.desktop),this.globalVars.closeModal()}images(){this._camera.getPhotoFromLibrary(),this.globalVars.closeModal()}static \u0275fac=function(o){return new(o||n)(t.rXU(m.Y),t.rXU(R))};static \u0275cmp=t.VBU({type:n,selectors:[["app-cm-capture-options"]],standalone:!1,decls:11,vars:7,consts:[[1,"cm-captures"],[1,"modal-down-inner"],[1,"modal-down-header"],[1,"heading-text","h3","center"],[1,"captures"],[1,"modal_down_fix"],["mainTitle","global.common.take_photo","iconLeft","fa-light fa-camera"],["mainTitle","global.common.gallery_select","iconLeft","fa-light fa-images",3,"click"],["mainTitle","global.common.take_photo","iconLeft","fa-light fa-camera",3,"click"]],template:function(o,a){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",4)(7,"div",5),t.nVh(8,Y,2,3,"app-list-item",6),t.j41(9,"app-list-item",7),t.nI1(10,"translate"),t.bIt("click",function(){return a.images()}
1),t.k0s()()()()()),2&o&&(t.R7$(4),t.JRh(t.bMT(5,3,"global.common.add")),t.R7$(4),t.vxM(a.globalVars.responsive?8:-1),t.R7$(),t.BMQ("aria-label",t.bMT(10,5,"global.common.gallery_select")))},dependencies:[H.P,U.D9],styles:[".captures[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-height:60dvh;overflow:scroll}.captures[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.captures[_ngcontent-%COMP%]   app-list-item[_ngcontent-%COMP%]{display:block;width:100%}"]})}return n})();var W=i(6961),Z=i(19735),J=i(69415);let K=(()=>{class n{waitArray=["module.confirm_modal.wait_title","module.confirm_modal.wait_title_desc"];modalTitle="module.confirm_modal.wait_title";image="file-searching";static \u0275fac=function(o){return new(o||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-clupik-wait"]],inputs:{waitArray:"waitArray",modalTitle:"modalTitle",image:"image"},standalone:!1,decls:2,vars:8,consts:[[3,"modalTitle","hasButtons","hasMainButton","hasSecondaryButton"],[3,"size","svgImage","textArray","noButton"]],template:function(o,a){1&o&&(t.j41(0,"app-clupik-modal",0),t.nrm(1,"app-empty-space",1),t.k0s()),2&o&&(t.Y8G("modalTitle",a.modalTitle)("hasButtons",!1)("hasMainButton",!1)("hasSecondaryButton",!1),t.R7$(),t.Y8G("size","sm")("svgImage",a.image)("textArray",a.waitArray)("noButton",!0))},dependencies:[Z.$,J.p],encapsulation:2})}return n})();var Q=i(39652),q=i(52538),tt=i(54586),et=i(94474),G=i(75281),x=i(72200),X=i(91029),nt=i(20362),ot=i(83065),it=i(7571),at=i(82291);const u=n=>({value:n}),st=n=>({bold:n}),P=(n,l)=>l.title;function lt(n,l){1&n&&t.eu8(0)}function rt(n,l){if(1&n&&t.DNE(0,lt,1,0,"ng-container",2),2&n){const e=t.XpG().$implicit;t.XpG(3);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function ct(n,l){1&n&&t.nVh(0,rt,1,4,"ng-container"),2&n&&t.vxM(l.$implicit?0:-1)}function mt(n,l){if(1&n&&t.Z7z(0,ct,1,1,null,null,P),2&n){const e=t.XpG(2);t.Dyx(e.items)}}function dt(n,l){1&n&&t.eu8(0)}function pt(n,l){if(1&n&&t.DNE(0,dt,1,0,"ng-container",2),2&n){const e=t.XpG(2).$implicit;t.XpG(4);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function gt(n,l){if(1&n&&t.nVh(0,pt,1,4,"ng-container"),2&n){const e=t.XpG();t.vxM(e.$implicit&&0===e.$index?0:-1)}}function ht(n,l){1&n&&t.eu8(0)}function ut(n,l){if(1&n&&t.DNE(0,ht,1,0,"ng-container",2),2&n){const e=t.XpG(2).$implicit;t.XpG(4);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function Ct(n,l){if(1&n&&t.nVh(0,ut,1,4,"ng-container"),2&n){const e=t.XpG(),a=e.$index;t.vxM(!e.$implicit||0!==a&&1!==a?-1:0)}}function ft(n,l){if(1&n&&(t.nVh(0,gt,1,1),t.nVh(1,Ct,1,1)),2&n){const e=t.XpG(4);t.vxM(e.hasOnlyTwoElements?0:-1),t.R7$(),t.vxM(e.hasOnlyTwoElements?-1:1)}}function vt(n,l){1&n&&t.eu8(0)}function _t(n,l){if(1&n&&t.DNE(0,vt,1,0,"ng-container",2),2&n){const e=t.XpG(2).$implicit;t.XpG(4);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function Mt(n,l){if(1&n&&t.nVh(0,_t,1,4,"ng-container"),2&n){const e=t.XpG();t.vxM(e.$implicit&&1===e.$index?0:-1)}}function bt(n,l){1&n&&t.eu8(0)}function xt(n,l){if(1&n&&t.DNE(0,bt,1,0,"ng-container",2),2&n){const e=t.XpG(2).$implicit;t.XpG(4);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function Pt(n,l){if(1&n&&t.nVh(0,xt,1,4,"ng-container"),2&n){const e=t.XpG(),a=e.$index;t.vxM(!e.$implicit||2!==a&&3!==a?-1:0)}}function Ot(n,l){if(1&n&&(t.nVh(0,Mt,1,1),t.nVh(1,Pt,1,1)),2&n){const e=t.XpG(4);t.vxM(e.hasOnlyTwoElements?0:-1),t.R7$(),t.vxM(e.hasOnlyTwoElements?-1:1)}}function St(n,l){if(1&n){const e=t.RV6();t.Z7z(0,ft,2,2,null,null,P),t.j41(2,"div",3)(3,"div",4)(4,"div",5),t.bIt("click",function(){d.eBV(e);const a=t.XpG(3);return d.Njj(a.plusAction())}),t.nrm(5,"i",6),t.k0s()()(),t.Z7z(6,Ot,2,2,null,null,P)}if(2&n){const e=t.XpG(3);t.Dyx(e.items),t.R7$(6),t.Dyx(e.items)}}function yt(n,l){1&n&&t.eu8(0)}function Tt(n,l){if(1&n&&t.DNE(0,yt,1,0,"ng-container",2),2&n){const e=t.XpG().$implicit;t.XpG(4);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function Bt(n,l){if(1&n&&t.nVh(0,Tt,1,4,"ng-container"),2&n){const o=l.$index;t.vxM(!l.$implicit||0!==o&&1!==o?-1:0)}}function Ft(n,l){1&n&&t.eu8(0)}function At(n,l){if(1&n&&t.DNE(0,Ft,1,0,"ng-container",2),2&n){const e=t.XpG().$implicit;t.XpG(4);const o=t.sdS(2);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,u,e))}}function $t(n,l){if(1&n&&t.nVh(0,At,1,4,"ng-container"),2&n){const o=l.$index;t.vxM(!l.$implicit||2!==o&&3!==o?-1:0)}}function kt(n,l){if(1&n&&(t.j41(0,"div",7),t.Z7z(1,Bt,1,1,null,null,P),t.k0s(),t.j41(3,"div",3)(4,"div",4)(5,"div",8),t.nrm(6,"i",6),t.k0s()()(),t.j41(7,"div",9),t.Z7z(8,$t,1,1,null,null,P),t.k0s()),2&n){const e=t.XpG(3);t.R7$(),t.Dyx(e.items),t.R7$(7),t.Dyx(e.items)}}function Dt(n,l){if(1&n&&(t.nVh(0,St,8,0),t.nVh(1,kt,10,0)),2&n){const e=t.XpG(2);t.vxM(e.has3Elements?-1:0),t.R7$(),t.vxM(e.has3Elements?1:-1)}}function It(n,l){if(1&n&&(t.j41(0,"div",1),t.nVh(1,mt,2,0),t.nVh(2,Dt,2,2),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.vxM(e.hasActions?-1:1),t.R7$(),t.vxM(e.hasActions?2:-1)}}function Vt(n,l){if(1&n){const e=t.RV6();t.j41(0,"div",10),t.nI1(1,"translate"),t.bIt("click",function(){const a=d.eBV(e).value,r=t.XpG
1();return d.Njj(r.action(a))}),t.j41(2,"div",4)(3,"div",11),t.nrm(4,"i",12),t.k0s(),t.j41(5,"div",13),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()}if(2&n){const e=l.value;t.BMQ("aria-label",t.bMT(1,4,"navigation.menu_action")),t.R7$(4),t.Y8G("className",e.active?"fa-solid fa-"+e.icon:"fa-light fa-"+e.icon),t.R7$(),t.Y8G("ngClass",t.eq3(8,st,null==e?null:e.active)),t.R7$(),t.JRh(t.bMT(7,6,null==e?null:e.title))}}let Xt=(()=>{class n{appService;globalVars;_history;_router;_apiMenuService;_clubService;_modalCtrl;_cmService;_authService;_subscription=new v.yU;hasActions=!1;get items(){return this._cmService.menuItems}get hasOnlyTwoElements(){return 2===this._cmService.menuItems.length}get has3Elements(){return 3===this._cmService.menuItems.length}constructor(e,o,a,r,p,C,g,O,w){this.appService=e,this.globalVars=o,this._history=a,this._router=r,this._apiMenuService=p,this._clubService=C,this._modalCtrl=g,this._cmService=O,this._authService=w,this.hasActions=this._cmService.isFishingApp,this._subscription.add(this._router.events.subscribe(D=>{D instanceof X.wF&&(this.globalVars.scrollToDivId("competition-manager",!0),this.setActives(D.urlAfterRedirects))})),this._subscription.add(this._cmService.subscribe("finishMenu",()=>this.setActives(this._router.url)))}ngOnInit(){this.hasActions=this._cmService.isFishingApp}ngAfterViewInit(){this.hasActions=this._cmService.isFishingApp}ngOnDestroy(){this._subscription.unsubscribe()}setActives(e){this.items.forEach(a=>a.active=!1);let o=null;e===`/${this._clubService.getLanguageInUseCode()}`||"/"===e?o=this.items.find(a=>"/"===a.url||a.url===`/${this._clubService.getLanguageInUseCode()}`):(e.includes(`/${this._clubService.getLanguageInUseCode()}/`)&&(e=e.split(`/${this._clubService.getLanguageInUseCode()}`)[1]),o=this.items.find(a=>"/"!==a.url&&e.includes(a.url)),"more"===o?.description&&(o=this.items.find(a=>"home"===a.description))),!o&&e.includes("/user/profile")&&(o=this.items.find(a=>"home"===a.description)),o&&(o.active=!0)}action(e){e.url?(this.setActives(e.url),this._history.reset(),this._history.showAppFooter=!0,this.globalVars.clupikNavigate(e.url)):this.openMore(e.title)}plusAction(){this._cmService.broadcast("capture")}openMore(e){var o=this;return(0,h.A)(function*(){yield(yield o._modalCtrl.create({...o.globalVars.modalConfigDesktop,component:at.i,componentProps:{mainTitle:e}})).present()})()}static \u0275fac=function(o){return new(o||n)(t.rXU(T.d),t.rXU(m.Y),t.rXU(A.C),t.rXU(X.Ix),t.rXU(b.Z),t.rXU(F.X),t.rXU(G.ModalController),t.rXU($.y),t.rXU(B.u))};static \u0275cmp=t.VBU({type:n,selectors:[["competition-manager-bottom-bar"]],standalone:!1,decls:3,vars:1,consts:[["menuItem",""],[1,"competition-manager-bottom-bar"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"plus-actions"],[1,"content"],["preventDoubleClick","",1,"plus-button",3,"click"],[1,"fa-regular","fa-plus"],[1,"left"],[1,"plus-button"],[1,"right"],["role","button","tabindex","0",1,"navbar-item",3,"click"],[1,"navbar-icon"],[3,"className"],[1,"text","sm","center","semibold",3,"ngClass"]],template:function(o,a){1&o&&(t.nVh(0,It,3,2,"div",1),t.DNE(1,Vt,8,10,"ng-template",null,0,t.C5r)),2&o&&t.vxM(null!=a.items&&a.items.length?0:-1)},dependencies:[x.YU,x.T3,U.D9],styles:[".competition-manager-bottom-bar[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap;background-color:var(--navbar-menu-bg-color);padding:0 6px;padding-bottom:var(--ion-safe-area-bottom, 0);position:fixed;left:0;right:0;bottom:0;z-index:998;border-top:.5px solid var(--navbar-menu-text)}.competition-manager-bottom-bar.android[_ngcontent-%COMP%], .competition-manager-bottom-bar.old-ios[_ngcontent-%COMP%]{padding-bottom:calc(var(--module) / 2)}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%], .competition-manager-bottom-bar[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1 0 0}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .plus-actions[_ngcontent-%COMP%]{flex:1 0 0}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .plus-actions[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .plus-actions[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .plus-button[_ngcontent-%COMP%]{position:absolute;top:-16px;background-color:var(--link-color);display:flex;align-items:center;justify-content:center;border-radius:100px;width:68px;min-width:68px;max-width:68px;height:68px;min-height:68px;max-height:68px}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .plus-actions[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .plus-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:26px;line-height:26px;color:#fff}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .navbar-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1 0 0}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .navbar-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;padding:12px 0 6px;flex-direction:column;align-items:center;gap:6px}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .navbar-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .navbar-icon[_ngcontent-%COMP%]{width:var(--module);height:var(--module);display:flex;flex-direction:column;align-items:center;justify-content:center}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .navbar-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .navbar-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:20px;line-height:var(--module);color:var(--navbar-menu-text)}.competition-manager-bottom-bar[_ngcontent-%COMP%]   .navbar-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--navbar-menu-text);white-space:nowrap}.clupik-bottom-navbar.md[_ngcontent-%COMP%]{padding-bottom:calc(var(--module) / 2)}"]})}return n})();var wt=i(63777),Rt=i(62611),Ut=i(24791);const Gt=n=>({"ion-content":n}),Et=n=>({"public-web-fix":n}),Lt=n=>({"navbar-bottom-fix":n});function jt(n,l){1&n&&t.nrm(0,"app-simple-nav",3),2&n&&t.Y8G("hasActions",!0)}function zt(n,l){1&n&&t.nrm(0,"app-main-nav",4),2&n&&t.Y8G("isAdminPanel",!1)}function Ht(n,l){if(1&n&&(t.j41(0,"div",0),t.nVh(1,jt,1,1,"app-simple-nav",3)(2,zt,1,1,"app-main-nav",4),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.vxM(e.isWebInactive||!e.hasMenu?1:2)}}function Yt(n,l){1&n&&(t.j41(0,"div",6),t.nrm(1,"app-competition-manager-menu"),t.k0s())}function Nt(n,l){1&n&&t.nrm(0,"competition-manager-bottom-bar")}function Wt(n,l){if(1&n&&(t.j41(0,"div",1)(1,"div",5),t.nVh(2,Yt,2,0,"div",6),t.j41(3,"div",7)(4,"div",8),t.nrm(5,"router-outlet"),t.k0s()(),t.nVh(6,Nt,1,0,"competition-manager-bottom-bar"),t.k0s()()),2&n){const e=t.XpG();t.Y8G("ngClass",t.eq3(7,Gt,e.globalVars.responsive)),t.R7$(),t.Y8G("ngClass",t.eq3(9,Et,e.globalVars.desktop&&!e.isWebInactive)),t.R7$(),t.vxM(e.showMenu?2:-1),t.R7$(),t.Aen("--bottom-height:"+e.bottomHeight+"px"),t.Y8G("ngClass",t.eq3(11,Lt,e.
1showAppFooter)),t.R7$(3),t.vxM(e.showAppFooter?6:-1)}}function Zt(n,l){1&n&&t.nrm(0,"app-skeleton-default")}function Jt(n,l){if(1&n&&t.nrm(0,"app-image-photo-swipe",2),2&n){const e=t.XpG();t.Y8G("images",e.imagesModal)("indexImage",e.imagePointer)}}let Kt=(()=>{class n{globalVars;_history;_apiCMService;_cmService;_clubsService;_authService;_modalService;_modalCtrl;_appService;_apiMenuService;_translate;_camera;_clubMenu;_gamesService;mainProfile$=null;_subscription=new v.yU;token="";get hasMenu(){return this._apiMenuService.hasPrivateMenu}tokenLoaded=!1;get url(){return this.tokenLoaded?`${f.c.mng.iframeHost}/${this._clubsService.getLanguageInUseCode()}/registration-webview?redirectToDashboard=true&manager=${this.leveradeId}&target=profile&owned=true&third-party-session-id=${this.token}`:""}get leveradeId(){return this._clubsService.getClubData()?.leveradeFederationId}get showAppFooter(){return this.globalVars.responsive&&this._history.showAppFooter&&this._clubMenu.appLinks?.length>0&&!this._cmService.isCurrentProfileCanceled}bottomHeight=64;get isSadmin(){return this._authService.isSuperAdmin()}get isWebInactive(){if(!this._clubsService.hasActiveModule("web"))return!0;const e=this._clubsService.getWebModuleConfig();return"public"!=e.visibility&&("hidden"==e.visibility||"private"!=e.visibility)}get showMenu(){return["public","private"].includes(this._clubsService.getClubData().clubWebConfig.visibility)}imagesModal;imagePointer;openModalWindow=!1;constructor(e,o,a,r,p,C,g,O,w,D,de,pe,ge,he){this.globalVars=e,this._history=o,this._apiCMService=a,this._cmService=r,this._clubsService=p,this._authService=C,this._modalService=g,this._modalCtrl=O,this._appService=w,this._apiMenuService=D,this._translate=de,this._camera=pe,this._clubMenu=ge,this._gamesService=he,this._appService.setIsUserPage(!0),!this._authService.hasRole(["FED"])&&this._authService.hasSomeRole(["SDM","ADM","EDI"])&&this.globalVars.clupikNavigate("/forbidden"),this.getSeasons(),this.loadMenu(),this._subscription.add(this._appService.subscribe("openImageModal",M=>{this.openModalWindow=M.open,this.imagesModal=M.imagesModal,this.imagePointer=M.imagePointer})),this._subscription.add(this._cmService.subscribe("newProfile",()=>{this._cmService.profiles=[],this.getProfiles()})),this._subscription.add(this._cmService.subscribe("capture",()=>{this.capture()})),this._subscription.add(this._cmService.subscribe("changeProfile",()=>{this._cmService.currentFederation=null,this._cmService.federations=[],this.getFederations()})),this._subscription.add(this._appService.subscribe("changeLanguage",M=>this.loadMenu())),this._subscription.add(this._camera.subscribe("receiveFiles",M=>this.processFiles(M)))}ngAfterViewInit(){this.mainProfile$=this._cmService._mainProfile$.pipe((0,k.T)(e=>(e&&(this.loadMenu(),this.token=this._cmService.token,this.tokenLoaded=!0,this._cmService.isFishingApp&&this.getFishes()),e)))}getFishes(){var o,e=this;this._apiCMService.getFishes().subscribe({next:(o=(0,h.A)(function*(a){let r=[];for(let p=0;p<a.length;p++){let C=a[p],g=yield e._translate.getTranslation("module.fish."+C);r.push({code:C,name:g})}e._cmService.fishes=r}),function(r){return o.apply(this,arguments)})})}loadMenu(e=this._clubsService.getLanguageInUse().id){this._apiMenuService.getAppPrivateMenu(e).subscribe(o=>{let a=o.menu.filter(r=>"publish"!==r.url);this._cmService.menuItems=a.map(r=>({title:r.title,icon:r.icon,description:r.description,active:!1,url:"more"!==r.description?r.url===`/${this._clubsService.getLanguageInUseCode()}`?"/user/profile":r.url:"",new:!1})),this._cmService.broadcast("finishMenu"),setTimeout(()=>{this.calculate()},500)})}getDisciplines(){this._apiCMService.getDisciplines(this._clubsService.getClubData()?.leveradeFederationId).subscribe({next:e=>{this._cmService.disciplines=e.data.map(o=>(o.name="module.mng.disciplines."+o.attributes.name,o)),this.getData()},error:e=>console.error(e)})}currentSeasons=[];getSeasons(){this._apiCMService.getSeasons(this._clubsService.getClubData()?.leveradeFederationId).subscribe({next:e=>{this._cmService.seasons=e.data.filter(a=>null==a.attributes.canceled);const o=this.globalVars.getMoment();this.currentSeasons=this._cmService.seasons.filter(a=>o().isBetween(o(a.attributes.start_date),o(a.attributes.end_date))),this.currentSeasons.length?(this.currentSeasons.sort((a,r)=>a.order-r.order),this._cmService.currentSeason=this.currentSeasons[0]):(this.currentSeasons=[this._cmService.seasons[0]],this._cmService.currentSeason=this._cmService.seasons[0]),this.getDisciplines()},error:e=>console.error(e)})}getProfiles(){this._apiCMService.getProfiles(this._clubsService.getClubData()?.leveradeFederationId).subscribe({next:e=>{this._cmService.profiles=e.data,this._cmService.manager=e.included,this.getCMroles(),this.getFederations(),this._cmService.broadcast("updateProfiles")},error:e=>console.error(e)})}getCMroles(){this._apiCMService.getCMroles().subscribe({next:e=>{this._cmService.resolveFederationDelegateRole(e)},error:e=>console.error(e)})}getData(){this._apiCMService.getProfiles(this._clubsService.getClubData()?.leveradeFederationId).subscribe({next:e=>{e.data.length?(this._cmService.profiles=e.data,this._cmService.mainProfile=this._cmService.getStorageCurrentFed()?e.data.find(o=>o.id===this._cmService.getStorageCurrentFed().id):e.data[0],this.getFederations(),this.getCMroles(),this._cmService.manager=e.included):(this._clubsService.hasModuleOn("completeManager"),this.createProfiles())},error:e=>console.error(e)})}createProfiles(){var e=this;return(0,h.A)(function*(){const o=tt.i;let a=yield e._modalService.openModal({component:o,modalSize:"full",data:{targetUrl:e.url,title:"module.mng.common.new_profile",endRegexUrl:"/home",onIframeEvent:(r,p,C)=>{if(p.data){let g=p.data;if("string"==typeof g)try{g=JSON.parse(g)}catch(O){return console.error(O),!1}if(null!=g.success)return!0}}},options:{}});a.data&&e.getData(),a.data||(e._clubsService.hasModuleOn("completeManager")?e.globalVars.clupikNavigate(`/${e._clubsService.getLanguageInUseCode()}`):e.logout())})()}logout(){var e=this;return(0,h.A)(function*(){const o=yield e._modalCtrl.create({...e.globalVars.desktop?{...e.globalVars.modalConfigDesktop}:{...e.globalVars.modalConfig},component:_.q});yield o.present(),(yield o.onWillDismiss()).data||e.getData()})()}getFederations(){this._apiCMService.getProfileManagers(this._cmService.mainProfile?.id).subscribe({next:e=>{this._cmService.federations=e.data.map(o=>this._cmService.parseFederation(o))}})}calculate(){if(this.globalVars.responsive){let e=document.querySelector(".competition-manager-bottom-bar");e&&(this.bottomHeight=e.clientHeight),0===this._clubMenu.appLinks?.length&&(this.bottomHeight=0),this._cmService.broadcast("receiveHeight",this.bottomHeight)}}goToCaptureEdit(e){this._history.setCurrent(),this._history.showAppFooter=!1,this.globalVars.clupikNavigate(`/user/captures/fish/${e}/modify`),this._modalCtrl.dismiss(null,"","waitmodal")}openWait(){var e=this;return(0,h.A)(function*(){yield e._modalService.openModal({component:K,modalSize:"no-padding",data:{w
1aitArray:["module.specie.uploading","module.specie.uploading_desc"],image:"photos"},options:{backdropDismiss:!1,id:"waitmodal"}})})()}capture(){var e=this;return(0,h.A)(function*(){yield(yield e._modalCtrl.create({...e.globalVars.modalConfig,component:N})).present()})()}processFiles(e){if(this.openWait(),f.c.app)this.postPicture(e);else{const o=new FileReader;o.readAsDataURL(e.item(0)),o.addEventListener("load",a=>{let r=a.target.result;r=r.split("base64,")[1],this.postPicture(r)})}}postPicture(e){this._apiCMService.getInfoFromPicture({image:e},this._authService.getId()).subscribe({next:o=>{let a={id:o.id,name:this._cmService.fishName(o.code),code:o.code,size:o.size,coordinates:o.metadata?.coordinates,speciesState:o.speciesLabel,sizeState:o.sizeLabel,fish:o.info.url[0]};this._cmService.provisionalCapture=a,this.goToCaptureEdit(a.id)},error:o=>{console.error("Error geting info from picture"),this._appService.broadcast("showAlert",{state:"danger",mainTitle:"",autoHide:!1})}})}ngOnDestroy(){this._appService.setIsUserPage(!1)}static \u0275fac=function(o){return new(o||n)(t.rXU(m.Y),t.rXU(A.C),t.rXU(I.y),t.rXU($.y),t.rXU(F.X),t.rXU(B.u),t.rXU(et.M),t.rXU(G.ModalController),t.rXU(T.d),t.rXU(b.Z),t.rXU(W.T),t.rXU(R),t.rXU(Q.$),t.rXU(q.T))};static \u0275cmp=t.VBU({type:n,selectors:[["app-competition-manager"]],standalone:!1,decls:6,vars:5,consts:[[1,"ion-header"],[3,"ngClass"],[3,"images","indexImage"],[3,"hasActions"],[3,"isAdminPanel"],[1,"competition-manager-content",3,"ngClass"],[1,"menu"],["id","competition-manager",1,"main-content",3,"ngClass"],[1,"desktop-content"]],template:function(o,a){1&o&&(t.nVh(0,Ht,3,1,"div",0),t.nrm(1,"app-clupik-slide-alert"),t.nVh(2,Wt,7,13,"div",1),t.nI1(3,"async"),t.vZN(4,Zt,1,0,"app-skeleton-default"),t.nVh(5,Jt,1,2,"app-image-photo-swipe",2)),2&o&&(t.vxM(a.globalVars.desktop?0:-1),t.R7$(2),t.vxM(t.bMT(3,3,a.mainProfile$)?2:4),t.R7$(3),t.vxM(a.openModalWindow?5:-1))},dependencies:[x.YU,X.n3,nt.c,ot.V,it.P,Xt,wt.r,Rt.E,Ut.D,x.Jj],styles:["[_nghost-%COMP%]{position:relative}@media (max-width: 991px){.ion-content[_ngcontent-%COMP%]{padding-top:var(--main-nav-top)}.ion-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}.competition-manager-content[_ngcontent-%COMP%]{min-height:calc(100dvh - var(--main-nav-top));max-height:calc(100dvh - var(--main-nav-top));display:flex;padding:0}.competition-manager-content.public-web-fix[_ngcontent-%COMP%], .competition-manager-content.public-web-fix[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{min-height:calc(100dvh - 110px);max-height:calc(100dvh - 110px)}@media (max-width: 991px){.competition-manager-content[_ngcontent-%COMP%]{margin-bottom:0}.competition-manager-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}.competition-manager-content[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{z-index:0;min-height:0;max-height:calc(100dvh - var(--main-nav-top));width:320px;min-width:320px;max-width:320px}@media (max-width: 991px){.competition-manager-content[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{display:none}}.competition-manager-content[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{flex-grow:1;z-index:0;overflow:scroll;min-height:calc(100dvh - var(--main-nav-top));max-height:calc(100dvh - var(--main-nav-top));background:var(--base-extra-light-grey, #f5f6f8)}@media (min-width: 992px){.competition-manager-content[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .desktop-content[_ngcontent-%COMP%]{max-width:550px;margin:0 auto;padding-top:24px;padding-bottom:24px}}@media (max-width: 991px){.competition-manager-content[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .desktop-content[_ngcontent-%COMP%]{height:100%}}.competition-manager-content[_ngcontent-%COMP%]   .main-content.navbar-bottom-fix[_ngcontent-%COMP%]{min-height:calc(100dvh - var(--main-nav-top) - var(--bottom-height));max-height:calc(100dvh - var(--main-nav-top) - var(--bottom-height))}.competition-manager-content[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (max-width: 991px){.competition-manager-content[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{width:100%;border-left:none;min-height:0}}"]})}return n})();var c=i(56640),E=i(33888);const Qt=[{path:"",component:Kt,data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],loadChildren:()=>Promise.all([i.e(20050),i.e(52840),i.e(6713),i.e(76445),i.e(51447),i.e(72076),i.e(23844)]).then(i.bind(i,23844)).then(n=>n.CompetitionManagerProfileModule)},{path:"competition",data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],loadChildren:()=>i.e(71792).then(i.bind(i,71792)).then(n=>n.CompetitionManagerCompetitionModule)},{path:"licenses",data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],loadChildren:()=>Promise.all([i.e(6713),i.e(76445),i.e(78410)]).then(i.bind(i,78410)).then(n=>n.CompetitionManagerLicensesModule)},{path:"captures",data:{rolesAllowed:["JUD"],module:"fishDetection",fedKeys:["capturas"]},canLoad:[c.Cj,c.pH],canActivate:[c.pH,E.O],loadChildren:()=>i.e(10162).then(i.bind(i,10162)).then(n=>n.CompetitionManagerCapturesModule)},{path:"digital-record",data:{rolesAllowed:["JUD","COA"],module:"digitalRecord"},canLoad:[c.Cj,c.pH],canActivate:[c.pH],loadChildren:()=>i.e(34111).then(i.bind(i,34111)).then(n=>n.CompetitionManagerDigitalRecordModule)},{path:"game-reports",data:{rolesAllowed:["FDL"],module:"gameReports"},loadChildren:()=>i.e(77249).then(i.bind(i,77249)).then(n=>n.GAME_REPORTS_ROUTES)}
1,{path:"licenses/:licenseId",data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],loadChildren:()=>Promise.all([i.e(6713),i.e(33515)]).then(i.bind(i,33515)).then(n=>n.CompetitionManagerLicensesSingleModule)},{path:"events",data:{rolesAllowed:["FED"],fedKeys:["eventos"]},canLoad:[c.pH],canActivate:[c.pH,E.O],loadChildren:()=>i.e(9482).then(i.bind(i,9482)).then(n=>n.CompetitionManagerPublicEventsModule)},{path:"payments",data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],loadChildren:()=>Promise.all([i.e(72076),i.e(13645)]).then(i.bind(i,13645)).then(n=>n.CompetitionManagerPaymentsModule)},{path:"payments/list",data:{rolesAllowed:["FED"]},canLoad:[c.pH],canActivate:[c.pH],loadChildren:()=>Promise.all([i.e(72076),i.e(98256)]).then(i.bind(i,98256)).then(n=>n.CompetitionManagerPaymentsListModule)}]}];let qt=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=t.$C({type:n});static \u0275inj=d.G2t({imports:[y.iI.forChild(Qt),y.iI]})}return n})();var te=i(27972),ee=i(7266),ne=i(39830),oe=i(21867),ie=i(62470),ae=i(66124),se=i(16173),le=i(49189),re=i(59760);let ce=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=t.$C({type:n});static \u0275inj=d.G2t({imports:[x.MD,le.G,ae.M,ie.k,oe.v,se.J,re.w]})}return n})(),me=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=t.$C({type:n});static \u0275inj=d.G2t({imports:[ce,s.O,te.M,ee.b,ne.L,qt]})}return n})()},20362:(L,S,i)=>{i.d(S,{c:()=>f});var s=i(73664),y=i(72200);const h=m=>({white:m}),I=()=>[1,2,3],b=()=>[1,2],T=()=>[1,2,3,4];function B(m,v){1&m&&s.nrm(0,"div",2)}function F(m,v){1&m&&s.nrm(0,"div",2)}function A(m,v){1&m&&s.nrm(0,"div",2)}function $(m,v){1&m&&s.nrm(0,"div",2)}let f=(()=>{class m{whiteBkg=!1;reduced=!1;constructor(){}ngOnInit(){}static \u0275fac=function(_){return new(_||m)};static \u0275cmp=s.VBU({type:m,selectors:[["app-skeleton-default"]],inputs:{whiteBkg:"whiteBkg",reduced:"reduced"},standalone:!1,decls:13,vars:15,consts:[[1,"skeleton-default",3,"ngClass"],[1,"skeleton-row"],[1,"skeleton-item"]],template:function(_,V){1&_&&(s.j41(0,"div",0)(1,"div",1),s.Z7z(2,B,1,0,"div",2,s.fX1),s.k0s(),s.j41(4,"div",1),s.Z7z(5,F,1,0,"div",2,s.fX1),s.k0s(),s.j41(7,"div",1),s.Z7z(8,A,1,0,"div",2,s.fX1),s.k0s(),s.j41(10,"div",1),s.Z7z(11,$,1,0,"div",2,s.fX1),s.k0s()()),2&_&&(s.Y8G("ngClass",s.eq3(9,h,V.whiteBkg)),s.R7$(),s.Aen("--items: 3"),s.R7$(),s.Dyx(s.lJ4(11,I)),s.R7$(2),s.Aen("--items: 2"),s.R7$(),s.Dyx(s.lJ4(12,b)),s.R7$(2),s.Aen("--items: 4"),s.R7$(),s.Dyx(s.lJ4(13,T)),s.R7$(2),s.Aen("--items: 2"),s.R7$(),s.Dyx(s.lJ4(14,b)))},dependencies:[y.YU],styles:['@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]{width:100%;padding:8px 0;border-bottom:var(--border);display:flex;align-items:center;justify-content:space-between}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:100%;height:20px}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:inline-block;will-change:transform;background-color:var(--skeleton)}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff0,#fff9,#fff0)}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{overflow:hidden;transform:translateZ(0)}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{box-sizing:border-box}.table-skeleton[_ngcontent-%COMP%]   .row-table.first[_ngcontent-%COMP%]{border-top:var(--border)}.table-skeleton[_ngcontent-%COMP%]   .row-table.first[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:40px;height:20px}[_nghost-%COMP%]{display:block;width:100%}.skeleton-default[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - var(--admin-nav-top));background-color:var(--base-extra-light-grey);padding:var(--module);gap:var(--module);display:flex;flex-direction:column}.skeleton-default[_ngcontent-%COMP%]   .skeleton-row[_ngcontent-%COMP%]{gap:var(--module);display:flex;flex-wrap:wrap;height:calc((100vh - var(--admin-nav-top) - var(--module) * 5) / 4)}@media (min-width: 992px){.skeleton-default[_ngcontent-%COMP%]   .skeleton-row[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]{margin-bottom:0;max-width:calc(100% / var(--items) - var(--module) * (var(--items) - 1) / var(--items));min-width:calc(100% / var(--items) - var(--module) * (var(--items) - 1) / var(--items))}}.skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]{border-radius:8px;height:100%}.skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]{display:inline-block;will-change:transform;background-color:#fff}.skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff,#f2f3f6 35%,#fff)}.skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]{overflow:hidden;transform:translateZ(0)}.skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:cover;position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;content:""}.skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:after, .skeleton-default[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-default.white[_ngcontent-%COMP%]{background-color:#fff}.skeleton-default.white[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]{display:inline-block;will-change:transform;background-color:var(--skeleton)}.skeleton-default.white[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff0,#fff9,#fff0)}.skeleton-default.white[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]{overflow:hidden;transform:translateZ(0)}.skeleton-default.white[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;
1width:200px;height:100%;content:""}.skeleton-default.white[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:after, .skeleton-default.white[_ngcontent-%COMP%]   .skeleton-item[_ngcontent-%COMP%]:before{box-sizing:border-box}']})}return m})()}}]);

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.