1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[33515],{33515:(z,r,l)=>{l.r(r),l.d(r,{CompetitionManagerLicensesSingleModule:()=>U});var p=l(61479),m=l(38132),d=l(26532),g=l(60152),f=l(50433),C=l(26742),h=l(25615),v=l(13961),u=l(96354),e=l(73664),c=l(2615),_=l(91029),b=l(85340),S=l(15449),M=l(72357),y=l(6713),T=l(72200);const x=(i,o)=>o.label;function w(i,o){if(1&i){const t=e.RV6();e.j41(0,"app-list-item",6),e.bIt("listAction",function(){c.eBV(t);const s=e.XpG(3);return c.Njj(s.downloadFai())}),e.nrm(1,"app-clupik-button",7),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("infoStyle",!1)("whiteBkg",!1)("hasBorder",!0)("mainTitle",null==t?null:t.licenciaFai.name)("hasHover",!0)("isCollapsed",!0)("isCustom",!0),e.R7$(),e.Y8G("iconLeft",!0)}}function G(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG();e.Y8G("infoStyle",!0)("mainTitle","module.mng.common.license_number")("subtitle",null==t?null:t.number)("hasHover",!1)("isCollapsed",!0)}}function L(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG(3);e.Y8G("infoStyle",!0)("mainTitle",t.fewwClubf.label)("subtitle",t.fewwClubf.value)("hasHover",!1)("isCollapsed",!0)}}function $(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG(3);e.Y8G("infoStyle",!0)("mainTitle",t.getClubInfo.label)("subtitle",t.getClubInfo.value)("hasHover",!1)("isCollapsed",!0)}}function F(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG(3);e.Y8G("infoStyle",!0)("mainTitle","competition.fields.generic.category_id")("subtitle",t.category.attributes.name)("hasHover",!1)("isCollapsed",!0)}}function I(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG(4);e.Y8G("infoStyle",!0)("mainTitle",t.birthdate.label)("subtitle",t.birthdate.value)("hasHover",!1)("isCollapsed",!0)}}function X(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG(4);e.Y8G("infoStyle",!0)("mainTitle",t.dni.label)("subtitle",t.dni.value)("hasHover",!1)("isCollapsed",!0)}}function Y(i,o){if(1&i&&(e.nVh(0,I,1,5,"app-list-item",5),e.nVh(1,X,1,5,"app-list-item",5)),2&i){const t=e.XpG(3);e.vxM(t.birthdate.value?0:-1),e.R7$(),e.vxM(t.dni.value?1:-1)}}function R(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=e.XpG();e.Y8G("infoStyle",!0)("mainTitle","global.common.description")("subtitle",null==t?null:t.description)("hasHover",!1)("isCollapsed",!0)}}function V(i,o){if(1&i&&e.nrm(0,"app-list-item",5),2&i){const t=o.$implicit;e.Y8G("infoStyle",!0)("mainTitle",t.label)("subtitle",t.value)("hasHover",!1)("isCollapsed",!0)}}function H(i,o){if(1&i&&(e.j41(0,"div",1)(1,"app-block-item",0)(2,"div",2),e.nrm(3,"app-cm-license",3),e.nVh(4,w,2,8,"app-list-item",4),e.nVh(5,G,1,5,"app-list-item",5),e.nrm(6,"app-list-item",5)(7,"app-list-item",5),e.nVh(8,L,1,5,"app-list-item",5)(9,$,1,5,"app-list-item",5),e.nVh(10,F,1,5,"app-list-item",5),e.nVh(11,Y,2,2),e.nVh(12,R,1,5,"app-list-item",5),e.Z7z(13,V,1,5,"app-list-item",5,x),e.k0s()()()),2&i){const t=o,n=e.XpG(2);e.R7$(),e.Y8G("loading",n.loading)("whiteBorder",!1)("transparent",!0)("showTitle",!1)("hasButton",!1),e.R7$(2),e.Y8G("licenseConfig",t),e.R7$(),e.vxM(null!==(null==t?null:t.licenciaFai.download)?4:-1),e.R7$(),e.vxM(null!=t&&t.number?5:-1),e.R7$(),e.Y8G("infoStyle",!0)("mainTitle","module.mng.common.license_type")("subtitle",null==t?null:t.title)("hasHover",!1)("isCollapsed",!0),e.R7$(),e.Y8G("infoStyle",!0)("mainTitle","module.mng.common.license_validation_date")("subtitle",null==t?null:t.validation)("hasHover",!1)("isCollapsed",!0),e.R7$(),e.vxM(n.isFeew?8:9),e.R7$(2),e.vxM(n.category?10:-1),e.R7$(),e.vxM(n.isEsquiNautico?11:-1),e.R7$(),e.vxM(null!=t&&t.description?12:-1),e.R7$(),e.Dyx(n.customFields)}}function P(i,o){if(1&i&&(e.nVh(0,H,15,22,"div",1),e.nI1(1,"async")),2&i){let t;const n=e.XpG();e.vxM((t=e.bMT(1,1,n.license$))?0:-1,t)}}function B(i,o){1&i&&e.nrm(0,"app-block-item",0),2&i&&e.Y8G("loading",!0)("whiteBorder",!1)("transparent",!1)("showTitle",!1)("hasButton",!1)}const N=[{path:"",component:(()=>{class i{globalVars;_activatedRoute;_imageService;_cmService;_clubService;_apiCm;_subscription=new v.yU;mainProfile$=null;license$=null;value=null;loading=!0;category=null;customFields=[];get validation(){return this.value?.validation()}get licenseId(){return this._activatedRoute.snapshot.params.licenseId}isFeew=!1;isEsquiNautico=!1;get fedUser(){return JSON.parse(localStorage.getItem("fedUser"))}dni={label:"global.common.identification_document",value:null};birthdate={label:"global.common.birthdate",value:null};fewwClubf={label:"competition.fields.generic.club_id",value:"Independiente"};getClubInfo={label:"competition.fields.generic.club_id",value:"Independiente"};constructor(t,n,s,E,j,D){this.globalVars=t,this._activatedRoute=n,this._imageService=s,this._cmService=E,this._clubService=j,this._apiCm=D,this.loading=!0,this._subscription.add(this._cmService.subscribe("changeProfile",()=>{this.loading=!0})),this.isFeew=this._cmService.isFeew,this.isEsquiNautico=this._cmService.isFeew||this._cmService.isEsquiNautic,this.mainProfile$=this._cmService._mainProfile$.pipe((0,u.T)(a=>(a&&(this.birthdate.value=this.globalVars.getMoment()(a.attributes.birthdate).format("DD/MM/YYYY"),this.dni.value=a.attributes.identity_document,this.getLicense()),a))),this.license$=this._cmService._licenses$.pipe((0,u.T)(a=>a&&0!=a?.length?(this.value=a.find(A=>A.id==this.licenseId),this.loading=!1,this.getClubInfo.value=this.value.clubName||"Independiente",this.fewwClubf.label=this.value.license?.meta?.custom_field_names?.clubf||"competition.fields.generic.club_id",this.fewwClubf.value=this.value.license?.attributes?.custom_fields?.clubf||"Independiente",console.log("license",this.value),this.value):null))}ngOnInit(){this.loading=!0,this.isFeew=this._cmService.isFeew,this.isEsquiNautico=this._cmService.isFeew||this._cmService.isEsquiNautic}ngAfterViewInit(){this.isFeew=this._cmService.isFeew,this.isEsquiNautico=this._cmService.isFeew||this._cmService.isEsquiNautic}ngOnDestroy(){this._subscription.unsubscribe(),this.globalVars.navbarTop.title=""}getLicense(){this._apiCm.getProfileLicenses(this._cmService.mainProfile?.id,this._clubService.getClubData()?.leveradeFederationId,this._cmService.currentSeason.id).subscribe({next:t=>{this._cmService.licenses=t.data.map(n=>this._cmService.parseLicense(n)),this.loading=!1}})}downloadFai(){this.globalVars.openHyperLink(this.value.licenciaFai.download)}static \u0275fac=function(n){return new(n||i)(e.rXU(h.Y),e.rXU(_.nX),e.rXU(C.M),e.rXU(f.y),e.rXU(g.X),e.rXU(d.y))};static \u0275cmp=e.VBU({type:i,selectors:[["app-competition-manager-licenses-single"]],standalone:!1,decls:3,vars:3,consts:[[3,"loading","whiteBorder","transparent","showTitle","hasButton"],[1,"competition-manager-licenses-single"],[1,"info"],[3,"licenseConfig"],[1,"download",3,"infoStyle","whiteBkg","hasBorder","mainTitle","hasHover","isCollapsed","isCustom"],[3,"infoStyle","mainTitle","subtitle","hasHover","isCollapsed"],[1,"download",3,"listAction","infoStyle","whiteBkg","hasBorder","mainTitle","hasHover","isCollapsed","isCustom"],["label","global.common.download","type","button","config","outlined","size","sm","icon","fa-regular fa-arrow-down-to-line",3,"iconLeft"]],template:function(n,s){1&n&&(e.nVh(0,P,2,3),e.nI1(1,"async"),e.vZN(2,B,1,5,"app-block-item",0)),2&n&&e.vxM(e.bMT(1,1,s.mainProfile$)?0:2)},dependencies:[b.U,S.P,M.W,y.v,T.Jj],styles:[".competition-manager-licenses-single[_ngcontent-%COMP%]{min-height:auto;height:100%;max-height:calc(100dvh - var(--main-nav));overflow:scroll}.competition-manager-licenses-single[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.competition-manager-licenses-single[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.competition-manager-licenses-single[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] app-cm-license[_ngcontent-%COMP%]{display:block;margin-bottom:12px}"]})}return i})()}];let O=(()=>
1{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.$C({type:i});static \u0275inj=c.G2t({imports:[m.iI.forChild(N),m.iI]})}return i})(),U=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.$C({type:i});static \u0275inj=c.G2t({imports:[p.O,O]})}return i})()}}]);
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.