1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[19263],{7662:(G,b,o)=>{o.r(b),o.d(b,{ContactModule:()=>gt});var n=o(72200),f=o(85071),_=o(17633),E=o(90399),M=o(12423),h=o(46205),v=o(11890),P=o(49189),y=o(8986),O=o(38132),m=o(2615),p=o(89417),T=o(89128),R=o(98868),D=o(88678),$=o(72204),j=o(69915),S=o(60152),U=o(26742),V=o(33384),F=o(25615),t=o(73664),A=o(91029),X=o(82765),L=o(33746),k=o(23620),B=o(20050),w=o(6688),N=o(49255),K=o(48142),W=o(13779),z=o(68018);function Y(e,d){1&e&&(t.j41(0,"app-clupik-header",0)(1,"div",10)(2,"div",11),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&e&&(t.Y8G("isDarkMode",!0)("hasSelect",!1),t.R7$(3),t.JRh(t.bMT(4,3,"global.common.contact")))}function J(e,d){if(1&e&&(t.nrm(0,"app-alerts",5),t.nI1(1,"translate")),2&e){const i=t.XpG();t.Y8G("type",i.alertType)("mensaje",t.bMT(1,2,i.message))}}function c(e,d){1&e&&(t.j41(0,"mat-error",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"global.validator.required")))}function u(e,d){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"global.validator.required")))}function a(e,d){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"global.validator.email")))}function r(e,d){1&e&&(t.j41(0,"mat-error",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"global.validator.required")))}function g(e,d){1&e&&(t.j41(0,"mat-error",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"global.validator.required")))}function H(e,d){if(1&e&&(t.j41(0,"div",23),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e){const i=t.XpG(2);t.R7$(),t.E5c("",t.bMT(2,3,"module.auth.data_protection_policy_accept_pre_club")," ",i.clubName," ",t.bMT(3,5,"module.auth.data_protection_policy_accept_post_club"))}}function Z(e,d){if(1&e&&t.nrm(0,"div",24),2&e){const i=t.XpG(2);t.Y8G("innerHtml",i.legalDescription,t.npT)}}function Q(e,d){if(1&e){const i=t.RV6();t.j41(0,"span",28),t.bIt("click",function(s){return m.eBV(i),m.Njj(s.stopPropagation())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"module.auth.data_protection_policy_accept_informed")))}function q(e,d){if(1&e){const i=t.RV6();t.j41(0,"span",29),t.bIt("click",function(s){return m.eBV(i),m.Njj(s.stopPropagation())}),t.k0s()}if(2&e){const i=t.XpG(2);t.Y8G("innerHtml",i.acceptanceCheckbox,t.npT)}}function tt(e,d){if(1&e&&(t.j41(0,"mat-error",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const i=t.XpG(2);t.R7$(),t.Lme("",t.bMT(2,2,"global.validator.data_protection_policy")," ",i.clubName)}}function nt(e,d){if(1&e){const i=t.RV6();t.j41(0,"form",12)(1,"div",13)(2,"mat-form-field",14)(3,"mat-label"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nrm(6,"input",15),t.nI1(7,"translate"),t.nVh(8,c,3,3,"mat-error",16),t.k0s()(),t.j41(9,"div",13)(10,"mat-form-field",14)(11,"mat-label"),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.nrm(14,"input",17),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",13)(17,"mat-form-field",14)(18,"mat-label"),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.nrm(21,"input",18),t.nI1(22,"translate"),t.j41(23,"mat-error",16),t.nVh(24,u,3,3,"span"),t.nVh(25,a,3,3,"span"),t.k0s()()(),t.j41(26,"div",13)(27,"mat-form-field",14)(28,"mat-label"),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.nrm(31,"input",19),t.nI1(32,"translate"),t.nVh(33,r,3,3,"mat-error",16),t.k0s()(),t.j41(34,"div",20)(35,"mat-form-field",21)(36,"mat-label"),t.EFF(37),t.nI1(38,"translate"),t.k0s(),t.nrm(39,"textarea",22),t.nI1(40,"translate"),t.nVh(41,g,3,3,"mat-error",16),t.k0s()(),t.nVh(42,H,4,7,"div",23),t.nVh(43,Z,1,1,"div",24),t.j41(44,"div",13)(45,"mat-checkbox",25),t.bIt("change",function(s){m.eBV(i);const C=t.XpG();return m.Njj(C.dataProtectionChange(s))}),t.nVh(46,Q,3,3,"span"),t.nVh(47,q,1,1,"span",26),t.nVh(48,tt,3,4,"mat-error",16),t.k0s()()(),t.j41(49,"app-button-main",27),t.bIt("buttonAction",function(){m.eBV(i);const s=t.XpG();return m.Njj(s.submit(s.form))}),t.k0s()}if(2&e){const i=t.XpG();t.Y8G("formGroup",i.form),t.R7$(4),t.JRh(t.bMT(5,25,"global.placeholder.name")),t.R7$(2),t.Y8G("placeholder",t.bMT(7,27,"global.placeholder.name")),t.R7$(2),t.vxM(i.form.get("firstName").hasError("required")?8:-1),t.R7$(4),t.JRh(t.bMT(13,29,"global.common.phone")),t.R7$(2),t.Y8G("placeholder",t.bMT(15,31,"global.common.phone")),t.R7$(5),t.JRh(t.bMT(20,33,"global.common.email")),t.R7$(2),t.Y8G("placeholder",t.bMT(22,35,"global.common.email")),t.R7$(3),t.vxM(i.form.get("email").hasError("required")?24:-1),t.R7$(),t.vxM(i.form.get("email").hasError("email")?25:-1),t.R7$(4),t.JRh(t.bMT(30,37,"global.placeholder.subject")),t.R7$(2),t.Y8G("placeholder",t.bMT(32,39,"global.placeholder.subject")),t.R7$(2),t.vxM(i.form.get("title").hasError("required")?33:-1),t.R7$(4),t.JRh(t.bMT(38,41,"global.placeholder.message")),t.R7$(2),t.Y8G("placeholder",t.bMT(40,43,"global.placeholder.message")),t.R7$(2),t.vxM(i.form.get("description").hasError("required")?41:-1),t.R7$(),t.vxM(i.isCu
1stomized?-1:42),t.R7$(),t.vxM(i.isCustomized?43:-1),t.R7$(3),t.vxM(i.isCustomized?-1:46),t.R7$(),t.vxM(i.isCustomized?47:-1),t.R7$(),t.vxM(i.dataError?48:-1),t.R7$(),t.Y8G("id",i.contactId)("isMain",!0)("value","global.button.send")("isDisabled",!i.isDataAccepted)}}function et(e,d){if(1&e&&(t.nrm(0,"div",8),t.nI1(1,"safe")),2&e){const i=t.XpG();t.Y8G("innerHTML",t.i5U(1,1,null==i.clubContact?null:i.clubContact.description,"html"),t.npT)}}function ot(e,d){if(1&e&&(t.j41(0,"div",9),t.nrm(1,"i",30),t.j41(2,"div",31),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",32),t.EFF(6),t.k0s()()),2&e){const i=t.XpG();t.R7$(3),t.SpI("",t.bMT(4,2,"global.common.name"),":"),t.R7$(3),t.JRh(null==i.clubContact?null:i.clubContact.name)}}function I(e,d){if(1&e&&(t.j41(0,"div",9),t.nrm(1,"i",33),t.j41(2,"div",31),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",32),t.EFF(6),t.k0s()()),2&e){const i=t.XpG();t.R7$(3),t.SpI("",t.bMT(4,2,"global.common.email"),":"),t.R7$(3),t.JRh(null==i.clubContact?null:i.clubContact.email)}}function ct(e,d){if(1&e&&(t.j41(0,"div",9),t.nrm(1,"i",34),t.j41(2,"div",31),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",32),t.EFF(6),t.k0s()()),2&e){const i=t.XpG();t.R7$(3),t.SpI("",t.bMT(4,2,"global.common.phone"),":"),t.R7$(3),t.JRh(null==i.clubContact?null:i.clubContact.phone)}}function st(e,d){if(1&e&&(t.j41(0,"div",9),t.nrm(1,"i",35),t.j41(2,"div",31),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",32),t.EFF(6),t.k0s()()),2&e){const i=t.XpG();t.R7$(3),t.SpI("",t.bMT(4,2,"global.common.address"),":"),t.R7$(3),t.JRh(null==i.clubContact?null:i.clubContact.address)}}function rt(e,d){1&e&&t.nrm(0,"div",37)}function dt(e,d){if(1&e&&(t.nrm(0,"app-button-main",36),t.nVh(1,rt,1,0,"div",37)),2&e){const i=t.XpG();t.Y8G("isMain",!0)("value","module.games.route")("isExternalLink",!0)("link",i.route()),t.R7$(),t.vxM(null!=i.clubContact&&i.clubContact.address?1:-1)}}function pt(e,d){1&e&&t.nrm(0,"app-footer-sponsors")}const mt=[{path:"",component:(()=>{class e{appService;fb;globalVars;clubsService;apiMessagesService;document;apiPublicationsService;apiClubsService;imagesService;apiPublicationImages;router;form;loading=!1;loadingPubs=!1;isDataAccepted=!1;dataError=!1;isAlert=!1;showMap=!0;acceptanceCheckbox;legalDescription;isCustomized;alertType;message;clubContact;clubName;address;latitude;longitude;publications;contactId;constructor(i,l,s,C,it,x,at,ut,_t,ht,Ct){this.appService=i,this.fb=l,this.globalVars=s,this.clubsService=C,this.apiMessagesService=it,this.document=x,this.apiPublicationsService=at,this.apiClubsService=ut,this.imagesService=_t,this.apiPublicationImages=ht,this.router=Ct}ngOnInit(){this.loading=!0,this.contactId=`contact-form-${this.clubsService.getClubId()}`,this.loadingPubs=!0,this.appService.broadcast("changeTitleAppNav",{title:"global.title.contact"}),this.clubContact=this.clubsService.getClubData().contact,this.clubContact?(this.initMap(this.clubContact.address),this.clubName=this.clubsService.getClubData().editableName,this.getData()):this.router.navigate(["/"])}getData(){this.apiClubsService.getLegalConfig().subscribe(i=>{this.acceptanceCheckbox=i.legalConfig.acceptance_checkbox,this.legalDescription=i.legalConfig.legal_description,this.isCustomized=i.legalConfig.customize_legal,this.buildForm(),this.getPubs()})}buildForm(){this.loading=!0,this.form=this.fb.group({firstName:["",[p.k0.required]],phone1:["",[]],email:["",[p.k0.required,V.P.email]],title:["",[p.k0.required,p.k0.maxLength(200)]],description:["",[p.k0.required]],dataProtection:[this.isDataAccepted]}),this.loading=!1}initMap(i){if(typeof google<"u"){let l=this;l.showMap=!0,(new google.maps.Geocoder).geocode({address:i},function(C,it){if(it==google.maps.GeocoderStatus.OK){l.address=C[0].formatted_address;const x=C[0].geometry.location;l.latitude=x.lat(),l.longitude=x.lng();const at=new google.maps.Map(document.getElementById("contact-map"),{center:x,zoom:14});new google.maps.Marker({position:x,map:at,title:l.clubName})}else l.showMap=!1})}}route(){return"https://www.google.com/maps/search/?api=1&query="+this.latitude+","+this.longitude}getPubs(){this.apiPublicationsService.getGridPubs("all",4,!0,"","",!1).subscribe({next:i=>{this.publications=i,this.publications.forEach(l=>{l.isVideo=null!==l.card.video,l.isVideo&&!l.thumbnail&&(l.thumbnail=this.imagesService.getUrlImagesFromClub().publication),l.bkg=this.apiPublicationImages.getUrlImageMedium(l.card.images[l.card.images.length-1]),l.hasAuthor=null!==l.user,l.isGame=l.card.games.length>0&&1===l.card.games.length,l.isGames=l.card.games.length>0&&l.card.games.length>1}),this.loadingPubs=!1},error:i=>console.error("Error getting contact Pubs",i)})}dataProtectionChange(i){this.isDataAccepted=i.checked}submit({valid:i,value:l}){if(this.isAlert=!1,this.message="",this.isDataAccepted)if(i){let s;s={},s.firstName=l.firstName,s.email=l.email,l.phone1&&(s.phone=l.phone1),s.title=l.title,s.description=l.description,s.dataProtection={},this.apiMessagesService.sendMessageToClub(s).subscribe({next:C=>{this.isAlert=!0,this.alertType="success",this.message="module.shared.dialog.info.sucess-notification-delivery",this.buildForm()},error:C=>{this.isAlert=!0,this.alertType="danger",this.message="module.lopd.error_saving",console.error("Error Sending Contact:",C)}})}else for(let s in this.form.controls)this.form.controls[s].markAsTouched()}static \u0275fac=function(l){return new(l||e)(t.rXU(j.d),t.rXU(p.ok),t.rXU(F.Y),t.rXU(S.X),t.rXU(R.Y),t.rXU(m.qQL),t.rXU(D.j),t.rXU(T.P),t.rXU(U.M),t.rXU($.U),t.rXU(A.Ix))};static \u0275cmp=t.VBU({type:e,selectors:[["app-contact"]],standalone:!1,decls:21,vars:16,consts:[[3,"isDarkMode","hasSelect"],[1,"main-container"],["id","contact-page"],[1,"contact-form"],[1,"clupik-title-h2"],["dismissable","true",3,"type","mensaje"],[1,"map"],[1,"club-info"],[1,"inner-html",3,"innerHTML"],[1,"each"],[1,"contact-page-head"],[1,"contact-title"],[1,"full-width-form",3,"formGroup"],[1,"form-row-outlined"],["appearance","outline"],["id","name","matInput","","formControlName","firstName","required","",3,"placeholder"],["align","start"],["id","lastName","matInput","","type","number","formControlName","phone1",3,"placeholder"],["id","email","matInput","","formControlName","email","required","",3,"placeholder"],["id","title","matInput","","formControlName","title","required","","maxLength","200",3,"placeholder"],[1,"form-row-outlined","area-row"],["appearance","outline",1,"field-textarea"],["matInput","","formControlName","description","required","",3,"placeholder"],[1,"small-grey"],[1,"small-grey",3,"innerHtml"],["type","checkbox","formControlName","dataProtection",1,"checkbox-flex-fix",3,"change"],[3,"innerHtml"],["size","small",3,"buttonAction","id","isMain","value","isDisabled"],[3,"click"],[3,"click","innerHtml"],[1,"fa-solid","fa-user"],[1,"clupik-text-body-normal","bold"],[1,"clupik-text-body-normal"],[1,"fa-solid","fa-envelope-open"],[1,"fa-solid","fa-phone"],[1,"fa-solid","fa-location-dot"],["size","small",3,"isMain","value","isExternalLink","link"],["id","contact-map"]],template:function(l,s){1&l&&(t.nVh(0,Y,5,5,"app-clupik-header",0),t.j41(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.nVh(7,J,2,4,"app-alerts",5),t.nVh(8,nt,50,45),t.k0s(),t.j41(9,"div",6)(10,"div",4),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"div",7),t.nVh(14,et,2,4,"div",8),t.nVh(15,ot,7,4,"div",9),t.nVh(16,I,7,4,"div",9),t.nVh(17,ct,7,4,"div",9),t.nVh(18,st,7,4,"div",9),t.k0s(),t.nVh(19,dt,2,5),t.k0s()()(),t.nVh(20,pt,1,0,"app-footer-sponsors")),2&l&&(t.vxM(s.globalVars.app?-1:0),t.R7$(5),t.JRh(t.bMT(6,12,"global.title.contact_info")),t.R7$(2),t.vxM(s.isAlert?7:-1),t.R7$(),t.vxM(s.loading?-1:8),t.R7$(3),t.JRh(t.bMT(12,14,"global.title.contact_us")),t.R7$(3),t.vxM(null!=s.clubContact&&s.clubContact.description?14:-1),t.R7$(),t.vxM(null!=s.clubContact&&s.clubContact.name?15:-1),t.R7$(),t.vxM(null!=s.clubContact&&s.clubContact.email?16:-1),t.R7$(),t.vxM(null!=s.clubContact&&s.clubContact.phone?17:-1),t.R7$(),t.vxM(null!=s.clubContact&&s.clubContact.address?18:-1),t.R7$(),t.vxM(s.showMap?19:-1),t.R7$(),t.vxM(s.globalVars.app?-1:20))},dependencies:[X.So,L.fg,k.j,k.M,k.b,p.qT,p.me,p.Q0,p.BC,p.cb,p.YS,p.j4,p.JD,B.K,w.H,N.Z,K.x,W.m,z.D9],styles:[".contact-page-head[_ngcontent-%COMP%]{position:relative}@media (max-width: 991px){.contact-page-head[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}}.contact-page-head[_ngcontent-%COMP%] .contact-title[_ngcontent-%COMP%]{font-family:var(--main-font);font-weight:600;font-size:36px;line-height:54px;color:var(--primary-text)}@media (max-width: 991px){.contact-page-head[_ngcontent-%COMP%] .contact-title[_ngcontent-%COMP%]{font-size:22px;line-height:33px}}.contact-page-head[_ngcontent-%COMP%] .dark[_ngcontent-%COMP%]{color:var(--primary-text)}#contact-page[_ngcontent-%COMP%]{display:flex;margin-top:calc(var(--module) * 2);margin-bottom:calc(var(--module) * 2)}@media (max-width: 991px){#contact-page[_ngcontent-%COMP%]{flex-direction:column-reverse;padding-top:calc(var(--module) / 2);margin-top:0}}#contact-page[_ngcontent-%COMP%] .clupik-title-h2[_ngcontent-%COMP%]{font-size:30px}#contact-page[_ngcontent-%COMP%] .clupik-text-body-normal[_ngcontent-%COMP%]{font-size:16px}#contact-page[_ngcontent-%COMP%] .contact-form[_ngcontent-%COMP%], #contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}@media (max-width: 991px){#contact-page[_ngcontent-%COMP%] .contact-form[_ngcontent-%COMP%], #contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%]{width:100%}}#contact-page[_ngcontent-%COMP%] .contact-form[_ngcontent-%COMP%]{padding-right:calc(var(--module) * 2)}@media (max-width: 991px){#contact-page[_ngcontent-%COMP%] .contact-form[_ngcontent-%COMP%]{padding:calc(var(--module) * 1) 0}}#contact-page[_ngcontent-%COMP%] .contact-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin-top:var(--module)}@media (max-width: 991px){#contact-page[_ngcontent-%COMP%] .contact-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin-top:calc(var(--module) / 2)}}#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] .club-info[_ngcontent-%COMP%]{margin-top:var(--module);display:flex;flex-direction:column;margin-bottom:var(--module)}@media (max-width: 991px){#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] .club-info[_ngcontent-%COMP%]{margin-top:calc(var(--module) / 2)}}#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] .club-info[_ngcontent-%COMP%] .each[_ngcontent-%COMP%]{display:flex;margin-bottom:calc(var(--module) / 2)}#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] .club-info[_ngcontent-%COMP%] .each[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:18px;height:18px;display:flex;align-items:center;justify-content:center;margin-right:calc(var(--module) / 6);font-size:12px;color:var(--primary)}#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] .club-info[_ngcontent-%COMP%] .each[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%]{margin-right:calc(var(--module) / 6)}#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] #contact-map[_ngcontent-%COMP%]{margin-top:calc(var(--module) * 1.5);width:100%;height:430px}@media (max-width: 991px){#contact-page[_ngcontent-%COMP%] .map[_ngcontent-%COMP%] #contact-map[_ngcontent-%COMP%]{height:260px;margin-bottom:var(--module)}}.inner-html[_ngcontent-%COMP%]{margin-bottom:3vh}"]})}return e})()}];let lt=(()=>{class e{static \u0275fac=function(l){return new(l||e)};static \u0275mod=t.$C({type:e});static \u0275inj=m.G2t({imports:[O.iI.forChild(mt),O.iI]})}return e})(),gt=(()=>{class e{static \u0275fac=function(l){return new(l||e)};static \u0275mod=t.$C({type:e});static \u0275inj=m.G2t({imports:[P.G,n.MD,lt,E.e,y.z,f.m,v.g,h.X,M.V,_.E,lt]})}return e})()},12423:(G,b,o)=>{o.d(b,{V:()=>O});var n=o(8533),f=o(31626),_=o(33380),E=o(36543),M=o(39965),h=o(9786),v=o(73664),P=o(2615);o(15688);let O=(()=>{class m{static \u0275fac=function(R){return new(R||m)};static \u0275mod=v.$C({type:m});static \u0275inj=P.G2t({imports:[_.I,f.A,n.R,M.E,E.O,h.K]})}return m})()},15688:(G,b,o)=>{o.d(b,{k:()=>J});var n=o(73664),f=o(88678),_=o(72204),E=o(69915),M=o(60152),h=o(26742),v=o(25615),P=o(58783),y=o(13961),O=o(10506),m=o(60177),p=o(2615),T=o(91029),R=o(45115),D=o(7456),$=o(76754),j=o(73994),S=o(84400),U=o(93083),V=o(68018);function F(c,u){1&c&&n.nrm(0,"app-skeleton-publication")}function t(c,u){if(1&c&&(n.j41(0,"div",5),n.nrm(1,"app-skeleton-publication")(2,"app-skeleton-publication")(3,"a
1pp-skeleton-publication"),n.nVh(4,F,1,0,"app-skeleton-publication"),n.k0s()),2&c){const a=n.XpG(2);n.HbH(a.grid),n.R7$(4),n.vxM("four"===a.grid?4:-1)}}function A(c,u){1&c&&n.nrm(0,"app-skeleton-publication")}function X(c,u){1&c&&n.nrm(0,"app-skeleton-publication")}function L(c,u){1&c&&n.nrm(0,"app-skeleton-publication")}function k(c,u){if(1&c&&(n.j41(0,"div",4)(1,"swiper",6),n.DNE(2,A,1,0,"ng-template",7)(3,X,1,0,"ng-template",7)(4,L,1,0,"ng-template",7),n.k0s()()),2&c){const a=n.XpG(2);n.R7$(),n.Y8G("config",a.swiperGrid)}}function B(c,u){if(1&c){const a=n.RV6();n.j41(0,"app-clupik-container",0)(1,"app-clupik-section-title-button",2),n.nI1(2,"translate"),n.bIt("buttonAction",function(){p.eBV(a);const g=n.XpG();return p.Njj(g.more())}),n.k0s(),n.nVh(3,t,5,3,"div",3),n.nVh(4,k,5,1,"div",4),n.k0s()}if(2&c){const a=n.XpG();n.Y8G("isDark",!1)("isCentered",a.globalVars.desktop)("hasSlider",!0),n.R7$(),n.Y8G("mainTitle",n.bMT(2,7,a.title))("buttonText",a.button),n.R7$(2),n.vxM(a.globalVars.desktop?3:-1),n.R7$(),n.vxM(a.globalVars.responsive?4:-1)}}function w(c,u){1&c&&n.nrm(0,"app-publication-card",8),2&c&&n.Y8G("publication",u.$implicit)}function N(c,u){if(1&c&&(n.j41(0,"div",5),n.Z7z(1,w,1,1,"app-publication-card",8,n.fX1),n.k0s()),2&c){const a=n.XpG(2);n.HbH(a.grid),n.R7$(),n.Dyx(a.publicationsToShow)}}function K(c,u){if(1&c&&n.nrm(0,"app-publication-card",8),2&c){const a=n.XpG().$implicit;n.Y8G("publication",a)}}function W(c,u){1&c&&n.DNE(0,K,1,1,"ng-template",7)}function z(c,u){if(1&c&&(n.j41(0,"div",4)(1,"swiper",6),n.Z7z(2,W,1,0,null,7,n.fX1),n.k0s()()),2&c){const a=n.XpG(2);n.R7$(),n.Y8G("config",a.swiperGrid),n.R7$(),n.Dyx(a.publicationsToShow)}}function Y(c,u){if(1&c){const a=n.RV6();n.j41(0,"app-clupik-container",1)(1,"app-clupik-section-title-button",2),n.nI1(2,"translate"),n.bIt("buttonAction",function(){p.eBV(a);const g=n.XpG();return p.Njj(g.more())}),n.k0s(),n.nVh(3,N,3,2,"div",3),n.nVh(4,z,4,1,"div",4),n.k0s()}if(2&c){const a=n.XpG();n.Y8G("isDark",!1)("isCentered",a.globalVars.desktop)("hasSlider",!0)("noPaddingBottom",!a.loading&&0===(null==a.publications?null:a.publications.length)),n.R7$(),n.Y8G("mainTitle",n.bMT(2,8,a.title))("buttonText",a.button),n.R7$(2),n.vxM(a.globalVars.desktop?3:-1),n.R7$(),n.vxM(a.globalVars.responsive?4:-1)}}P.Ay.use([P.Vx]);let J=(()=>{class c{router;globalVars;appService;clubsService;imagesService;apiPublicationImages;apiPublicationsService;publicationService;activatedRoute;embedDisplayService;platformId;section=null;type="all";grid="four";isCategoryPage=!1;isSinglePage=!1;categoryLabel=null;addHiddenNewsQuery;hiddenNews;publications=[];loading;moment;noIds=[];swiperGrid={slidesPerView:1.3,spaceBetween:24,navigation:!0,breakpoints:{675:{slidesPerView:2.2}}};get title(){return"all"===this.type?"module.home.latest":"album"===this.type?"module.home.photos":"module.home.videos"}get button(){return"all"===this.type?"module.home.more_news":"album"===this.type?"module.home.more_photos":"module.home.more_videos"}limit=7;_subscription=new y.yU;constructor(a,r,g,H,Z,Q,q,tt,nt,et,ot){this.router=a,this.globalVars=r,this.appService=g,this.clubsService=H,this.imagesService=Z,this.apiPublicationImages=Q,this.apiPublicationsService=q,this.publicationService=tt,this.activatedRoute=nt,this.embedDisplayService=et,this.platformId=ot,this._subscription.add(this.appService.subscribe("featuredIds",I=>{"all"===this.type&&(this.noIds=I),this.getData()})),this._subscription.add(this.activatedRoute.params.subscribe(I=>{I.hasOwnProperty("pubSlug")&&(this.noIds=[this.publicationService.getCurrentPublication().id],this.getData())}))}ngOnDestroy(){this._subscription.unsubscribe()}ngOnInit(){this.loading=!0}ngAfterViewInit(){(0,m.UE)(this.platformId)&&setTimeout(()=>{0===this.publications.length&&this.getData()},3e3)}parsePubs(a){a.length>0?a.forEach(r=>{r.isVideo=null!==r.card.video,r.isVideo&&!r.thumbnail&&(r.thumbnail=this.imagesService.getUrlImagesFromClub().publication),r.bkg=this.apiPublicationImages.getUrlImageMedium(r.images[0]?.id),r.hasAuthor=null!==r.user,r.isGame=r.card.games.length>0&&1===r.card.games.length,r.isGames=r.card.games.length>0&&r.card.games.length>1}):this.appService.broadcast("sectionIsEmpty",{section:"video"===this.type?"Videos":"album"===this.type?"Photos":"News"})}getData(){this.embedDisplayService.hidePublications()||(this.loading=!0,this.apiPublicationsService.getGridPubs(this.type,this.limit,!0,this.categoryLabel,this.section,this.addHiddenNewsQuery,this.hiddenNews).subscribe({next:a=>{this.publications=a.filter(r=>!this.noIds.some(g=>g===r.id)),this.parsePubs(this.publications),this.loading=!1},error:a=>{this.publications=[],this.loading=!1,console.error(`Error getting ${this.type} Pubs`,a)}}))}get publicationsToShow(){return this.publications.slice(0,"four"===this.grid?4:3)}more(){let a={};this.section&&(a.section=this.section),this.categoryLabel&&(a.categoryLabel=this.categoryLabel),"all"===this.type?this.router.navigate(["/media/news"],{queryParams:a}):"video"===this.type?this.router.navigate(["/media/videos"],{queryParams:a}):"album"===this.type&&this.router.navigate(["/media/photos"],{queryParams:a})}static \u0275fac=function(r){return new(r||c)(n.rXU(T.Ix),n.rXU(v.Y),n.rXU(E.d),n.rXU(M.X),n.rXU(h.M),n.rXU(_.U),n.rXU(f.j),n.rXU(R.x),n.rXU(T.nX),n.rXU(O.T),n.rXU(n.Agw))};static \u0275cmp=n.VBU({type:c,selectors:[["app-publication-grid"]],inputs:{section:"section",type:"type",grid:"grid",isCategoryPage:"isCategoryPage",isSinglePage:"isSinglePage",categoryLabel:"categoryLabel",addHiddenNewsQuery:"addHiddenNewsQuery",hiddenNews:"hiddenNews"},standalone:!1,decls:2,vars:2,consts:[["id","pub-grid",3,"isDark","isCentered","hasSlider"],["id","pub-grid",3,"isDark","isCentered","hasSlider","noPaddingBottom"],[3,"buttonAction","mainTitle","buttonText"],[1,"grid",3,"class"],[1,"pub-slider"],[1,"grid"],[3,"config"],["swiperSlide",""],[3,"publication"]],template:function(r,g){1&r&&(n.nVh(0,B,5,9,"app-clupik-container",0),n.nVh(1,Y,5,10,"app-clupik-container",1)),2&r&&(n.vxM(g.loading&&!g.embedDisplayService.hidePublications()?0:-1),n.R7$(),n.vxM(!g.loading&&(null==g.publications?null:g.publications.length)>0&&!g.embedDisplayService.hidePublications()?1:-1))},dependencies:[D.Mf,D.T0,$.M,j.Z,S.h,U.l,V.D9],styles:["[_nghost-%COMP%]{width:100%}#pub-grid[_ngcontent-%COMP%] app-clupik-section-title-button[_ngcontent-%COMP%]{width:100%;position:relative}@media (max-width: 991px){#pub-grid[_ngcontent-%COMP%] app-clupik-section-title-button[_ngcontent-%COMP%]{padding-right:20px}}#pub-grid[_ngcontent-%COMP%] .pub-slider[_ngcontent-%COMP%]{padding-top:calc(var(--module) / 1.5)}#pub-grid[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{padding-top:var(--module);display:flex;flex-wrap:wrap;width:100%}#pub-grid[_ngcontent-%COMP%] .grid.four[_ngcontent-%COMP%] app-publication-card[_ngcontent-%COMP%], #pub-grid[_ngcontent-%COMP%] .grid.four[_ngcontent-%COMP%] app-skeleton-publication[_ngcontent-%COMP%]{margin-bottom:var(--module);margin-right:0;box-sizing:border-box;max-width:calc(100% / 4 - var(--module) * (4 - 1) / 4);min-width:calc(100% / 4 - var(--module) * (4 - 1) / 4);flex-grow:1}#pub-grid[_ngcontent-%COMP%] .grid.four[_ngcontent-%COMP%] app-publication-card[_ngcontent-%COMP%]:not(:nth-child(4n)), #pub-grid[_ngcontent-%COMP%] .grid.four[_ngcontent-%COMP%] app-skeleton-publication[_ngcontent-%COMP%]:not(:nth-child(4n)){margin-right:var(--module)}#pub-grid[_ngcontent-%COMP%] .grid.four[_ngcontent-%COMP%] app-publication-card[_ngcontent-%COMP%]:last-of-type, #pub-grid[_ngcontent-%COMP%] .grid.four[_ngcontent-%COMP%] app-skeleton-publication[_ngcontent-%COMP%]:last-of-type{margin-right:0}#pub-grid[_ngcontent-%COMP%] .grid.three[_ngcontent-%COMP%] app-publication-card[_ngcontent-%COMP%], #pub-grid[_ngcontent-%COMP%] .grid.three[_ngcontent-%COMP%] app-skeleton-publication[_ngcontent-%COMP%]{margin-bottom:var(--module);margin-right:0;box-sizing:border-box;max-width:calc(100% / 3 - var(--module) * (3 - 1) / 3);min-width:calc(100% / 3 - var(--module) * (3 - 1) / 3);flex-grow:1}#pub-grid[_ngcontent-%COMP%] .grid.three[_ngcontent-%COMP%] app-publication-card[_ngcontent-%COMP%]:not(:nth-child(3n)), #pub-grid[_ngcontent-%COMP%] .grid.three[_ngcontent-%COMP%] app-skeleton-publication[_ngcontent-%COMP%]:not(:nth-child(3n)){margin-right:var(--module)}#pub-grid[_ngcontent-%COMP%] .grid.three[_ngcontent-%COMP%] app-publication-card[_ngcontent-%COMP%]:last-of-type, #pub-grid[_ngcontent-%COMP%] .grid.three[_ngcontent-%COMP%] app-skeleton-publication[_ngcontent-%COMP%]:last-of-type{margin-right:0}"]})}return c})()},31634:(G,b,o)=>{o.d(b,{G:()=>f});var n=o(73664);let f=(()=>{class _{proportions="panoramic";constructor(){}ngOnInit(){}static \u0275fac=function(h){return new(h||_)};static \u0275cmp=n.VBU({type:_,selectors:[["app-skeleton-image"]],inputs:{proportions:"proportions"},standalone:!1,decls:1,vars:2,consts:[[1,"skeleton-image"]],template:function(h,v){1&h&&n.nrm(0,"div",0),2&h&&n.HbH(v.proportions)},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;
1width: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%]{width:100%;line-height:0;font-size:0}.skeleton-image[_ngcontent-%COMP%]{width:100%}.skeleton-image[_ngcontent-%COMP%]{display:inline-block;will-change:transform;background-color:var(--skeleton)}.skeleton-image[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff0,#fff9,#fff0)}.skeleton-image[_ngcontent-%COMP%]{overflow:hidden;transform:translateZ(0)}.skeleton-image[_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:""}.skeleton-image[_ngcontent-%COMP%]:after, .skeleton-image[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-image.panoramic[_ngcontent-%COMP%]{height:0;padding-bottom:56.25%}.skeleton-image.four-three[_ngcontent-%COMP%]{height:0;padding-bottom:75%}.skeleton-image.square[_ngcontent-%COMP%]{height:0;padding-bottom:100%}.skeleton-image.custom[_ngcontent-%COMP%]{padding-bottom:0;height:inherit}']})}return _})()}}]);
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.