PageSourceSearch

https://www.academiafutbolalcobendas.es/25834.482fdf626a07a6d0.js

js academiafutbolalcobendas.es collected 2026-10-07 11:35:08 UTC 9,840 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[25834],{25834:(N,p,a)=>{a.r(p),a.d(p,{ProtocolsAdminModule:()=>B});var d=a(72200),m=a(38132),c=a(10467),i=a(2615),g=a(81864),b=a(69915),v=a(60152),h=a(26742),y=a(6961),C=a(16221),w=a(70843),T=a(25615),S=a(96354),r=a(73664),x=a(18594),A=a(94474),P=a(91029),F=a(74173),L=a(95064);const k=(n,u,e)=>({topbar:n,bread:u,topbread:e});function V(n,u){if(1&n){const e=r.RV6();r.j41(0,"app-clupik-table",2),r.bIt("onRowClicked",function(o){i.eBV(e);const l=r.XpG();return i.Njj(l.openProtocol(o))})("onButtonClicked",function(o){i.eBV(e);const l=r.XpG();return i.Njj(l.selectAction(o))})("onSelectAllActionClicked",function(o){i.eBV(e);const l=r.XpG();return i.Njj(l.selectMultipleAction(o))}),r.k0s()}if(2&n){const e=r.XpG();r.Y8G("settings",e.tableConfig)("source",u)}}function M(n,u){1&n&&r.nrm(0,"app-skeleton-table")}const U=[{path:"",component:(()=>{class n{clubService;appService;breadCrumbs;globalVars;translateService;apiProtector;imagesService;document;modalService;activatedRoute;tableData$;table;tableConfig={serverFiltered:!1,rowClickEvent:!0,paginator:{size:30,paginatorType:"vertical"},title:"protector_protocols",class:"full-height-clupik-table",noDataMessage:"no_protocols_found",buttonsDesktop:[{type:"custom-icon",icon:"fa-regular fa-file-export",tooltip:"module.protection.export_protocols",broadcastKey:"export"}],multipleSelect:{showMultipleSelect:!0,selectAllMessage:"entities",sections:[{title:"quick_actions",actions:[{type:"custom",text:"module.protection.download_protocols",icon:"fa-light fa-arrow-down-to-line",broadcastKey:"down_protocols"}]}]},columns:{club:{filterType:{type:"text"},title:"entity",configTitle:"entity",filter:!0,type:"new-cell",cell:e=>({order:"left",type:t=>"content",showImage:!0,size:32,image:{url:t=>this.imagesService.getClubLogoThumbnailUrl(t.club?.id),imageType:"user"},showFeatured:!0,featuredTitle:t=>t.club?.name}),customFilterFunction:(e,t)=>{let o=e.club?.name.toLowerCase();o.replace(/\s/g,"");let l=0;return o.includes(t)&&l++,l}},delegate:{filterType:{type:"text"},title:"delegate",configTitle:"delegate",filter:!0,type:"new-cell",cell:e=>({order:"left",type:t=>"content",showImage:!0,size:32,image:{url:t=>this.imagesService.getUserClubLogoThumbnailUrl(t.delegate?.userId,t.club?.id),imageType:"user"},showFeatured:!0,featuredTitle:t=>t.delegate?.nameSnap}),customFilterFunction:(e,t)=>{let o=e.delegate.nameSnap?.toLowerCase();if(null==o)return 0;o.replace(/\s/g,"");let l=0;return o.includes(t.toLowerCase())&&l++,l}},status:{title:"status",configTitle:"status",filterType:{type:"selector",options:[]},class:"column-xs",type:"new-cell",cell:e=>({order:"left",type:t=>"chip",chip:{label:t=>"module.protection.protocol_status_table_new."+t.status,color:t=>({active:"info",expired:"warning",completed:"success"}[t.status])}}),customExportFunction:(()=>{var t,e=this;return t=(0,c.A)(function*(o){return yield e.translateService.getTranslation(`module.protection.protocol_status_table_new.${o.status}`)}),function(l){return t.apply(this,arguments)}})(),filter:!0},protocolName:{filterType:{type:"text"},title:"protocol",configTitle:"protocol",filter:!0,type:"new-cell",cell:e=>({order:"left",type:t=>"content",showTitle:!0,mainTitle:t=>t.protocolName}),customFilterFunction:(e,t)=>{let o=e.protocolName?.toLowerCase();if(null==o)return 0;o.replace(/\s/g,"");let l=0;return o.includes(t.toLowerCase())&&l++,l},customExportFunction:function(){var e=(0,c.A)(function*(t){return t.protocolName});return function(o){return e.apply(this,arguments)}}()},date:{filterType:{type:"date"},title:"expires_in",configTitle:"expires_in",type:"date",sort:!0,class:"column-xs",filter:!0,dateFormat:"L",timezone:!0},province:{title:"local_province",type:"text",filter:!0,customFilterFunction:(e,t)=>{let o=e.province?.toLowerCase();if(null==o)return 0;o.replace(/\s/g,"");let l=0;return o.includes(t.toLowerCase())&&l++,l}},location:{title:"local_location",type:"text",filter:!0,customFilterFunction:(e,t)=>{let o=e.location?.toLowerCase();if(null==o)return 0;o.replace(/\s/g,"");let l=0;return o.includes(t.toLowerCase())&&l++,l}},sports:{title:"sport",filter:!0,type:"new-cell",cell:e=>({order:"left",type:t=>"content",showTitle:!0,mainTitle:t=>t.sports}),customFilterFunction:(e,t)=>{let o=e.sports?.toLowerCase();if(null==o)return 0;o.replace(/\s/g,"");let l=0;return o.includes(t.toLowerCase())&&l++,l}},download:{title:"download",configTitle:"download",class:"column-sm",type:"new-cell",cell:e=>({order:"left",type:t=>"button",button:{action:t=>this.downloadPDF(t.protocol),type:"button",config:"outlined",label:t=>"global.common.download",disabled:t=>!1,showIcon:t=>!0,size:"xs",icon:"arrow-down-to-line",iconStyle:"solid"}})}}};constructor(e,t,o,l,s,j,R,E,I,G){this.clubService=e,this.appService=t,this.breadCrumbs=o,this.globalVars=l,this.translateService=s,this.apiProtector=j,this.imagesService=R,this.document=E,this.modalService=I,this.activatedRoute=G}ngOnInit(){var e=this;return(0,c.A)(function*(){if(e.tableData$=e.apiProtector.getClubEntitiesProtocols().pipe((0,S.T)(t=>e.createTableData(t.relationInfo))),e.tableConfig.columns.status.filterType.options=[{nameValue:yield e.translateService.getTranslation("module.protection.protocol_status_table_new.expired"),searchValue:"expired"},{nameValue:yield e.translateService.getTranslation("module.protection.protocol_status_table_new.active"),searchValue:"active"},{nameValue:yield e.translateService.getTranslation("module.protection.protocol_status_table_new.completed"),searchValue:"completed"}],e.activatedRoute.snapshot.queryParams.hasOwnProperty("filter")){let t=e.activatedRoute.snapshot.queryParams.filter;e.tableConfig.columns.status.defaultValue=[{nameValue:yield e.translateService.getTranslation("module.protection.protocol_status_table_new."+t),searchValue:t}]}})()}ngAfterViewInit(){this.globalVars.navbarTop.title="global.table.headers.protocols"}createTableData(e){return e.map(t=>{let o=!1;return o=null!=t.tracking_tasks&&t.tracking_tasks.length>0&&!t.expired?t.tracking_tasks.filter(l=>l.clubTrackingTasks?.visibility).every(l=>"completed"===l.status):0===t.tracking_tasks?.length||!0,{protocol:t,protocolName:t.info.name,club:t.protected,sports:t.protected.sports.join(", ")||[],province:t.protected.province,location:t.protected.location,delegate:t.delegate,status:t.info?.date?this.isExpired(t.info?.date)?"expired":o?"completed":"active":"",state:t.info?.date?this.isExpired(t.info?.date)?"expired":"active":"",date:t.info?.date?this.getLastDate(t.info?.date):"",download:!0}})}getProvinceLiteral(e){let t="";return e.location&&(t+=e.location),e.location&&e.province&&(t+=" / "),e.province&&(t+=e.province),t||"-"}getLabelState(e){return"module.protector.entity_status_table_new."+e}formatDate(e){return this.globalVars.getMoment()(e).format("L")}getLastDate(e){return this.formatDate(this.globalVars.getMoment()(e).add(1,"year"))}isExpired(e){return this.globalVars.getMoment()(e).add(1,"year").isBefore(this.globalVars.getMoment()())}downloadPDF(e){this.apiProtector.downloadPDF(e.parentClubId,e.id,this.globalVars.responsive).subscribe(t=>
1{if(this.globalVars.responsive)this.appService.broadcast("showAlert",{state:"success",mainTitle:"module.protector.sent_protocol",autoHide:!1});else{let o=new Blob([t],{type:"application/pdf"});const l=this.document.createElement("a");this.document.body.appendChild(l),l.style.display="none";const s=window.URL.createObjectURL(o);l.href=s,l.target="_blank",l.download=`${e.protected.name}: protocolo "${e.info.name}".pdf`,l.click(),window.URL.revokeObjectURL(s),l.remove()}})}getClubLogo(e){return this.imagesService.getClubLogoThumbnailUrl(e)}colors={active:"success",expired:"warning"};getColorState(e){return this.colors[e]}openProtocol(e){var t=this;return(0,c.A)(function*(){let l="active";t.table.tableData.filter(s=>s?.club?.id==e.club.id).some(s=>"completed"==s.status||"active"==s.status)||(l="expired"),yield t.modalService.openModal({component:C.O,modalSize:"lg",data:{protocols:[e.protocol],mainTitle:"module.entity.protocol",hasHead:!0,headConfig:{title:e?.club?.name,subtitle:e?.club?.email,imageType:"club",image:t.getClubLogo(e?.club?.id),status:{state:t.getColorState(l),label:t.getLabelState(l)}}}})})()}selectMultipleAction({key:e,rows:t}){"down_protocols"===e&&(t.forEach(o=>this.downloadPDF(o.protocol)),this.table.clearSelection())}selectAction(e){"export"===e&&this.table.tableData.map(o=>o.protocol).forEach(o=>this.downloadPDF(o))}static \u0275fac=function(t){return new(t||n)(r.rXU(v.X),r.rXU(b.d),r.rXU(x.E),r.rXU(T.Y),r.rXU(y.T),r.rXU(g.r),r.rXU(h.M),r.rXU(i.qQL),r.rXU(A.M),r.rXU(P.nX))};static \u0275cmp=r.VBU({type:n,selectors:[["app-protocols-admin"]],viewQuery:function(t,o){if(1&t&&r.GBs(w.YT,5),2&t){let l;r.mGM(l=r.lsd())&&(o.table=l.first)}},standalone:!1,decls:4,vars:8,consts:[[1,"admin-dashboard","white",3,"ngClass"],[3,"settings","source"],[3,"onRowClicked","onButtonClicked","onSelectAllActionClicked","settings","source"]],template:function(t,o){if(1&t&&(r.j41(0,"div",0),r.nVh(1,V,1,2,"app-clupik-table",1),r.nI1(2,"async"),r.vZN(3,M,1,0,"app-skeleton-table"),r.k0s()),2&t){let l;r.Y8G("ngClass",r.sMw(4,k,o.clubService.isTopBar()&&!o.breadCrumbs.hasBreadcrumbs(),o.breadCrumbs.hasBreadcrumbs()&&o.clubService.onlyBread(),o.breadCrumbs.hasBreadcrumbs()&&o.clubService.isTopBar())),r.R7$(),r.vxM((l=r.bMT(2,2,o.tableData$))?1:3,l)}},dependencies:[d.YU,F.YT,L.X,d.Jj],encapsulation:2})}return n})()}];let f=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=r.$C({type:n});static \u0275inj=i.G2t({imports:[m.iI.forChild(U),m.iI]})}return n})();var D=a(50630),X=a(37554);let B=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=r.$C({type:n});static \u0275inj=i.G2t({imports:[d.MD,f,D.j,X.$,f]})}return n})()}}]);

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.