HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/4668.80e1ceceaab8ec79.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4668],{84668:(R,m,a)=>{a.r(m),a.d(m,{PlayerPageModule:()=>k});var d=a(56610),v=a(37222),g=a(22882),s=a(77897),p=a(36075),t=a(2978),y=a(24884),u=a(54171);function P(i,c){if(1&i&&(t.j41(0,"ion-segment-button",9),t.EFF(1),t.k0s()),2&i){const e=c.$implicit;t.Y8G("value",e.id),t.R7$(1),t.SpI(" ",e.name," ")}}function x(i,c){if(1&i){const e=t.RV6();t.j41(0,"ion-col",18)(1,"div",19)(2,"ion-col",20),t.bIt("click",function(o){t.eBV(e);const l=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.leftScroll(o,l))}),t.nrm(3,"ion-icon",21),t.k0s()()()}}function C(i,c){if(1&i){const e=t.RV6();t.j41(0,"div",22)(1,"div")(2,"a",23),t.bIt("click",function(){const l=t.eBV(e).$implicit,r=t.XpG(4);return t.Njj(r.goToDetailPlayer(l))}),t.j41(3,"div",24)(4,"div",25),t.nrm(5,"img",26),t.j41(6,"div",27)(7,"div",28)(8,"p",29),t.EFF(9),t.k0s()(),t.j41(10,"div",30)(11,"p",31),t.EFF(12),t.k0s()()()()()()()()}if(2&i){const e=c.$implicit,n=t.XpG(4);t.R7$(5),t.FCK("src","",e.image,"?_dc=",n.time,"",t.B4B),t.R7$(4),t.JRh(e.number),t.R7$(3),t.JRh(e.name)}}function b(i,c){if(1&i){const e=t.RV6();t.j41(0,"ion-col",18)(1,"div",32)(2,"ion-col",20),t.bIt("click",function(o){t.eBV(e);const l=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.rightScroll(o,l))}),t.nrm(3,"ion-icon",33),t.k0s()()()}}function O(i,c){if(1&i&&(t.j41(0,"div")(1,"div",11)(2,"h1",12),t.EFF(3),t.k0s()(),t.j41(4,"ion-grid")(5,"ion-row"),t.DNE(6,x,4,0,"ion-col",13),t.j41(7,"ion-col",14)(8,"div",15)(9,"div",16),t.DNE(10,C,13,4,"div",17),t.k0s()()(),t.DNE(11,b,4,0,"ion-col",13),t.k0s()()()),2&i){const e=c.$implicit;t.R7$(3),t.JRh(e.name),t.R7$(3),t.Y8G("ngIf",e.scroll>0),t.R7$(1),t.Y8G("size",0==e.scroll||e.disabledScrollRight?11:10),t.R7$(3),t.Y8G("ngForOf",e.players),t.R7$(1),t.Y8G("ngIf",e.players.length>2&&!e.disabledScrollRight)}}function w(i,c){if(1&i&&(t.j41(0,"div"),t.DNE(1,O,12,5,"div",8),t.k0s()),2&i){const e=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",e.playersService.currentPositions)}}function M(i,c){if(1&i&&(t.j41(0,"div"),t.DNE(1,w,2,1,"div",10),t.k0s()),2&i){const e=c.$implicit;t.R7$(1),t.Y8G("ngSwitchCase",e.id)}}const S=[{path:"",component:(()=>{class i{constructor(e,n,o,l){this.router=e,this.playersService=n,this.translateService=o,this.utilsService=l}ngOnInit(){this.time=(new Date).getTime(),this.utilsService.presentLoading(this.translateService.instant("all.loading")),this.playersService.getAllCategories().then(e=>{"success"==e.status?this.playersService.getAllPositions().then(n=>{"success"==n.status?this.playersService.getAllPlayers().then(o=>{"success"==o.status&&this.changedCategory(),this.utilsService.dismissLoading()},o=>{console.log("error getAllPlayers",o),this.utilsService.dismissLoading().catch()}):this.utilsService.dismissLoading()},n=>{console.log("error getAllPositions",n),this.utilsService.dismissLoading().catch()}):this.utilsService.dismissLoading()},e=>{console.log("error getAllCategories",e),this.utilsService.dismissLoading().catch()})}changedCategory(e){this.comms="1",e&&(this.comms=e.detail.value),this.playersFilteredByCategory=[];const n=this.playersService.allPlayers;for(let l=0;l<n.length;l++){const r=n[l];0===r.inactive&&r.equipment_categories_id===Number(this.comms)&&this.playersFilteredByCategory.push(r)}this.playersService.currentPositions=[];const o=this.playersService.allPositions;for(let l=0;l<o.length;l++){const r=o[l];r.players=[];let _=!1;for(let h=0;h<this.playersFilteredByCategory.length;h++){const f=this.playersFilteredByCategory[h];r.id===f.position_id&&(_=!0,r.players.push(f))}r.scroll=0,_&&this.playersService.currentPositions.push(r)}this.playersService.currentPositions.reverse()}goToDetailPlayer(e){this.playersService.playerSelected=e,this.router.navigate(["/player-detail"])}leftScroll(e,n){const o=e.target.parentElement.parentElement.parentElement.parentElement.children[1].children[0].children[0];o.scrollBy(-200,0),n.scroll+=-200,o.scrollWidth>n.scroll&&(n.disabledScrollRight=!1)}rightScroll(e,n){const o=e.target.parentElement.parentElement.parentElement.parentElement.children[1].children[0].children[0];o.scrollBy(200,0),n.scroll+=200,n.disabledScrollRight=32!=o.scrollWidth&&o.scrollWidth-32<n.scroll}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(p.Ix),t.rXU(y.q),t.rXU(g.c$),t.rXU(u.T))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["app-player"]],decls:14,vars:7,consts:[[1,"ion-no-border"],["slot","start"],[1,"ion-text-center"],["padding",""],["mode","md",3,"value","ionChange"],[1,"segmentCategory"],["class","segmentSubCategory",3,"value",4,"ngFor","ngForOf"],[1,"content",3,"ngSwitch"],[4,"ngFor","ngForOf"],[1,"segmentSubCategory",3,"value"],[4,"ngSwitchCase"],[1,"container-title-position"],[1,"title_position"],["size","1","class","filters ion-no-padding ion-no-margin",4,"ngIf"],[1,"ion-no-padding","ion-no-margin",3,"size"],[1,"container-grid"],[1,"grid2x2"],["class","box box1",4,"ngFor","ngForOf"],["size","1",1,"filters","ion-no-padding","ion-no-margin"],[1,"player-row"],["no-padding","","col-1","",1,"col-with-arrow",3,"click"],["name","chevron-back-outline"],[1,"box","box1"],[3,"click"],[1,"card"],[1,"card_image"],["onerror","if (this.src != 'error.jpg') this.src = '../../assets/img/default_profile.png';",1,"photo-player",3,"src"],[1,"card_info","title-white"],[1,"dorsal"],[1,"text-card"],[1,"name"],[1,"text-card","text"],[1,"player-row","col-with-arrow"],["name","chevron-forward-outline"]],template:function(n,o){1&n&&(t.j41(0,"ion-header",0)(1,"ion-toolbar"),t.nrm(2,"ion-back-button",1),t.j41(3,"ion-title",2),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.j41(6,"ion-content",3)(7,"ion-segment",4),t.bIt("ionChange",function(r){return o.changedCategory(r)}),t.j41(8,"div",5),t.DNE(9,P,2,2,"ion-segment-button",6),t.k0s()(),t.j41(10,"div",7),t.DNE(11,M,2,1,"div",8),t.k0s(),t.nrm(12,"br")(13,"br"),t.k0s()),2&n&&(t.R7$(4),t.JRh(t.bMT(5,5,"players.players")),t.R7$(3),t.Y8G("value",o.comms),t.R7$(2),t.Y8G("ngForOf",o.playersService.allCategories),t.R7$(1),t.Y8G("ngSwitch",o.comms),t.R7$(1),t.Y8G("ngForOf",o.playersService.allCategories))},dependencies:[d.Sq,d.bT,d.ux,d.e1,s.el,s.hU,s.W9,s.lO,s.eU,s.iq,s.ln,s.Gp,s.eP,s.BC,s.ai,s.Je,s.tY,g.D9],styles:[".card[_ngcontent-%COMP%]{width:100%}.title_position[_ngcontent-%COMP%]{font-weight:700;font-size:18px;text-transform:uppercase;margin-bottom:0}.container-grid[_ngcontent-%COMP%]{padding:0}.container-title-position[_ngcontent-%COMP%]{color:#000;font-family:BebasNeueBold,Helvetica,sans-serif!important;padding:10px 16px}.grid2x2[_ngcontent-%COMP%]{min-height:100%;display:flex;flex-direction:row;overflow-x:scroll;gap:4px;padding-right:10px}.grid2x2[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column}.grid2x2[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:start;flex-direction:row}.box[_ngcontent-%COMP%]{margin:8px}.cards-list[_ngcontent-%COMP%]{z-index:0;width:100%;display:flex;justify-content:space-around;flex-wrap:wrap}.card[_ngcontent-%COMP%]{width:150px;height:150px;margin-bottom:5px;border-radius:10px;box-shadow:0 2px 8px #00000040;cursor:pointer;transition:.4s;overflow:hidden}.card[_ngcontent-%COMP%]   .card_image[_ngcontent-%COMP%]{width:inherit;height:inherit;border-radius:5px;opacity:1;position:relative;background-color:#fff}.card[_ngcontent-%COMP%]   .card_image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:inherit;height:inherit;border-radius:5px;object-fit:contain}.photo-player[_ngcontent-%COMP%]{display:flex!important;margin:0 auto!important}.card_info[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px!important;position:absolute;bottom:0}.dorsal[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:center;padding:6px;height:25px;min-width:36px;font-size:14px;font-weight:700;background-color:var(--ion-color-primary)}.name[_ngcontent-%COMP%]{padding:0 4px;height:25px;font-weight:700;color:var(--ion-color-secondary);background-color:#e8e8e8;width:114px;display:flex;align-items:center}.text-card[_ngcontent-%COMP%]{margin-bottom:0;width:100%}.card[_ngcontent-%COMP%]:hover{transform:scale(.9);box-shadow:5px 5px 30px 15px #00000040,-5px -5px 30px 15px #00000038}.title-white[_ngcontent-%COMP%]{color:#fff}.title-black[_ngcontent-%COMP%]{color:#000}ion-slides[_ngcontent-%COMP%]{--bullet-background: black}.text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.filters[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{text-align:center;font-size:1.7rem;line-height:1.7rem}.filters[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.filters[_ngcontent-%COMP%]   ion-col.col-with-arrow[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;padding:0%}.player-row[_ngcontent-%COMP%]{height:100%}.segmentCategory[_ngcontent-%COMP%]{width:99%;display:inline-flex;overflow-x:auto}.segmentSubCategory[_ngcontent-%COMP%]{min-width:25%;max-width:100%;border-radius:20px!important;font-size:.8em!important;margin-left:3px;margin-right:3px;scrollbar-width:none;display:inline-table}"]})}return i})()}];let j=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({imports:[p.iI.forChild(S),p.iI]})}return i})(),k=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({imports:[d.MD,v.YN,s.bv,j,g.h.forChild()]})}return i})()}}]);