1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2265,8292],{11102:(I,m,s)=>{s.d(m,{a:()=>O});var g=s(18810),_=s(29330),h=s(96354),v=s(99437),e=s(60152),E=s(45312),c=s(68010),a=s(25615),p=s(2615),d=s(40061);let O=(()=>{class D{http;storeSlidersService;clubsService;globalVars;authService;apiUrl=E.c.api.URL+"/clubs";clubId="-1";jsonHeaders;jsonHeadersNoCache=new _.Lr({"Content-Type":"application/json","clupik-cache":"no-cache"});constructor(l,t,r,n,S){this.http=l,this.storeSlidersService=t,this.clubsService=r,this.globalVars=n,this.authService=S,this.jsonHeaders=new _.Lr({"Content-Type":"application/json",Authorization:`${this.authService.getToken()}`})}getClubSliders(){return this.clubId=this.clubsService.getClubId(),this.http.post(`${this.apiUrl}/${this.clubId}/shop/store-slider`,{limit:999,joinWhere:{deleted_at:"is null"},order:"store_slider.order ASC",joinParams:["title","start","end","card","card_mobile","active","id","link","order"]},{headers:this.jsonHeaders}).pipe((0,h.T)(t=>{const r=this.extractData(t);return this.storeSlidersService.setSliders(r),this.storeSlidersService.getSliders()}),(0,v.W)(this.handleError))}getOrderedSlider(){this.clubId=this.clubsService.getClubId();const l=this.globalVars.getMoment(),t={limit:999,joinWhere:{deleted_at:"is null",start:[`<= '${l().utc().format("YYYY-MM-DD[T]HH:mm:ss[Z]")}'::timestamptz`,"is null"],end:[`> '${l().utc().format("YYYY-MM-DD[T]HH:mm:ss[Z]")}'::timestamptz`,"is null"],active:"= true"},order:"store_slider.order ASC",joinParams:["title","start","end","card","card_mobile","active","id","link","order"]};return this.http.post(`${this.apiUrl}/${this.clubId}/shop/store-slider`,t,{headers:this.jsonHeaders}).pipe((0,h.T)(r=>{const n=this.extractData(r);return this.storeSlidersService.setSliders(n),this.storeSlidersService.getSliders()}),(0,v.W)(this.handleError))}createSlider(l){return this.clubId=this.clubsService.getClubId(),this.http.post(`${this.apiUrl}/${this.clubId}/shop/store-slider/create`,l,{headers:this.jsonHeaders}).pipe((0,h.T)(t=>t),(0,v.W)(this.handleError))}deleteSlider(l){return this.clubId=this.clubsService.getClubId(),this.http.delete(`${this.apiUrl}/${this.clubId}/shop/store-slider/${l}`,{headers:this.jsonHeaders}).pipe((0,h.T)(()=>!0),(0,v.W)(this.handleError))}editSlider(l,t){return this.clubId=this.clubsService.getClubId(),delete t.deletedAt,delete t.id,this.http.patch(`${this.apiUrl}/${this.clubId}/shop/store-slider/${l}/update`,t,{headers:this.jsonHeaders}).pipe((0,h.T)(r=>r),(0,v.W)(this.handleError))}extractData(l){return l||{}}handleError(l){return console.error("An error occurred",l),(0,g.$)(l)}static \u0275fac=function(t){return new(t||D)(p.KVO(_.Qq),p.KVO(d.A),p.KVO(e.X),p.KVO(a.Y),p.KVO(c.u))};static \u0275prov=p.jDH({token:D,factory:D.\u0275fac})}return D})()},21064:(I,m,s)=>{s.d(m,{wO:()=>h.w}),s(34505),s(99237);var h=s(88019)},28292:(I,m,s)=>{s.d(m,{B:()=>b});var g=s(72200),_=s(89417),h=s(4066),v=s(52612),e=s(11102),E=s(40061),c=s(66124),a=s(32777),p=s(49189),d=s(11890),O=s(11487),D=s(81315),u=s(43213),l=s(50630),t=s(6212),r=s(21867),n=s(52280),S=s(84146),T=s(37808),f=s(7456),U=s(73664),o=s(2615);let b=(()=>{class i{static \u0275fac=function(W){return new(W||i)};static \u0275mod=U.$C({type:i});static \u0275inj=o.G2t({providers:[v.C,h.D,e.a,E.A],imports:[p.G,g.MD,p.G,O._,_.YN,_.X1,D.M,u.v,l.j,d.g,c.M,a.h,t.m,r.v,n.s,S.P,T.c,f.vj]})}return i})()},40061:(I,m,s)=>{s.d(m,{A:()=>e});var g=s(18530),_=s(5964),h=s(96354),v=s(2615);let e=(()=>{class E{storeSliders;handler=new g.B;constructor(){}setSliders(a){this.storeSliders=a}getSliders(){return this.storeSliders}broadcast(a,p){this.handler.next({type:a,payload:p})}subscribe(a,p){return this.handler.pipe((0,_.p)(d=>d.type===a),(0,h.T)(d=>d.payload)).subscribe(p)}static \u0275fac=function(p){return new(p||E)};static \u0275prov=v.jDH({token:E,factory:E.\u0275fac})}return E})()},85491:(I,m,s)=>{s.d(m,{L:()=>D});var g=s(10467),_=s(60152),h=s(29330),v=s(71985),e=s(18810),E=s(97647),c=s(96354),a=s(99437),p=s(45312),d=s(2615);let O=(()=>{class u{sponsors=null;constructor(){}setSponsors(t){this.sponsors=t}getSponsors(){return this.sponsors}static \u0275fac=function(r){return new(r||u)};static \u0275prov=d.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),D=(()=>{class u{sponsorsService;http;clubsService;jsonHeaders=new h.Lr({"Content-Type":"application/json","Access-Control-Allow-Origin":"*"});apiUrl=p.c.api.URL+"/clubs";jsonHeadersNoCache=new h.Lr({"Content-Type":"application/json","clupik-cache":"no-cache"});constructor(t,r,n){this.sponsorsService=t,this.http=r,this.clubsService=n}getSponsors(){var t=this;return(0,g.A)(function*(){return null==t.sponsorsService.getSponsors()?yield t.getSponsorTable("-1",!0):t.sponsorsService.getSponsors()})()}getSponsorConfig(t=!1){return!t&&this.clubsService.getClubData().sponsorshipConfig?new v.c(r=>{r.next(this.clubsService.getClubData().sponsorshipConfig),r.complete()}):this.http.get(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/config",{headers:this.jsonHeaders}).pipe((0,E.u)(),(0,c.T)(r=>{const n=this.extractData(r),S=this.clubsService.getClubData();return S.sponsorshipConfig=n,this.clubsService.setClubData(S),n}),(0,a.W)(this.handleError))}updateSponsorConfig(t){return this.http.post(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/config",t,{headers:this.jsonHeaders}).pipe((0,c.T)(r=>{const n=this.extractData(r);return this.clubsService.getClubData().sponsorshipConfig=n,n}),(0,a.W)(this.handleError))}getSponsorTable(){var t=this;return(0,g.A)(function*(r=-1,n=!1){let S=yield t.http.get(`${t.apiUrl}/${t.clubsService.getClubId()}/sponsors/table?sectionId=${r}&publicView=${n}`,{headers:t.jsonHeaders}).pipe((0,c.T)(t.extractData),(0,a.W)(t.handleError)).toPromise();return S&&t.sponsorsService.setSponsors(S),t.sponsorsService.getSponsors()}).apply(this,arguments)}createSponsor(t){return this.http.post(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor",t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}getSponsor(t){return this.http.get(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/"+t,{headers:this.jsonHeaders}).pipe((0,c.T)(r=>this.extractData(r)),(0,a.W)(this.handleError))}getSponsorCategory(t){return this.http.get(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category/"+t,{headers:this.jsonHeaders}).pipe((0,c.T)(r=>this.extractData(r)),(0,a.W)(this.handleError))}createSponsorCategory(t){return(!t.section||-1==t.sectionId)&&(t.sectionId=null),this.http.post(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category",t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}createNewSponsorCategory(t){return this.http.post(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category",t,{headers:this.jsonHeaders})}updateCategoryOrder(t,r){return this.http.post(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/table/category?sectionId="+r,t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}updateSponsorList(t,r){return this.http.post(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/table?sectionId="+r,t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}updateSponsor(t,r){return this.http.patch(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor_id/"+r,t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}getSponsorImage(t){return this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/image/"+t}setSponsorCategoryVisible(t,r){const n={visible:t};return this.http.patch(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category/visible?id="+r,n,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}setSponsorVisible(t,r){const n={visible:t};return this.http.patch(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/visibility?id="+r,n,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}updateSponsorCategory(t,r){return this.http.patch(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category?id="+r,t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}updateCategory(t,r){return this.http.patch(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category?id="+r,t,{headers:this.jsonHeaders})}deleteSponsor(t){return this.http.delete(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/"+t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}deleteSponsorCategory(t){return this.http.delete(this.apiUrl+"/"+this.clubsService.getClubId()+"/sponsor/category/"+t,{headers:this.jsonHeaders}).pipe((0,c.T)(this.extractData),(0,a.W)(this.handleError))}extractData(t){return t||{}}handleError(t){return console.error("An error occurred",t),(0,e.$)(t)}static \u0275fac=function(r){return new(r||u)(d.KVO(O),d.KVO(h.Qq),d.KVO(_.X))};static \u0275prov=d.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},88019:(I,m,s)=>{s.d(m,{w:()=>U});var g=s(25615),_=s(91029),h=s(69915),v=s(56640),e=s(73664),E=s(72200),c=s(48142),a=s(20050),p=s(71760),d=s(68018);function O(o,b){1&o&&e.eu8(0)}function D(o,b){if(1&o&&(e.qex(0),e.DNE(1,O,1,0,"ng-container",3),e.bVm()),2&o){e.XpG(2);const i=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function u(o,b){1&o&&e.eu8(0)}function l(o,b){if(1&o&&(e.qex(0),e.DNE(1,u,1,0,"ng-container",3),e.bVm()),2&o){e.XpG(2);const i=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function t(o,b){if(1&o&&(e.qex(0),e.DNE(1,D,2,1,"ng-container",1)(2,l,2,1,"ng-container",1),e.bVm()),2&o){const i=e.XpG();e.R7$(),e.Y8G("ngIf",!i.isStoreHome),e.R7$(),e.Y8G("ngIf",i.isStoreHome&&!i.hasSlider)}}function r(o,b){1&o&&e.nrm(0,"app-banners",4)}function n(o,b){1&o&&e.nrm(0,"app-footer-sponsors")}function S(o,b){if(1&o&&(e.qex(0),e.j41(1,"h1",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&o){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,i.title))}}function T(o,b){if(1&o&&(e.qex(0),e.j41(1,"h2",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&o){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,i.title))}}function f(o,b){if(1&o&&(e.j41(0,"app-clupik-header",5)(1,"div",6)(2,"div",7),e.DNE(3,S,4,3,"ng-container",1)(4,T,4,3,"ng-container",1),e.k0s()()()),2&o){const i=e.XpG();e.Y8G("isDarkMode",!0)("hasSelect",!1),e.R7$(3),e.Y8G("ngIf",i.isStoreHome),e.R7$(),e.Y8G("ngIf",!i.isStoreHome)}}let U=(()=>{class o{globalVars;router;layoutService;activatedRoute;appService;navbarType;navBarLoaded;isNewLayout=!1;hasSlider=!1;isStoreHome=!1;sub1;sub2;sub3;title="global.common.store";constructor(i,M,C,W,R){this.globalVars=i,this.router=M,this.layoutService=C,this.activatedRoute=W,this.appService=R,this.sub1=this.appService.subscribe("noStoreSlider",P=>{this.hasSlider=P}),this.sub3=this.appService.subscribe("storeTitle",P=>{this.title=P}),this.sub2=this.router.events.subscribe(P=>{P instanceof _.wF&&(this.isStoreHome=P.url.includes("/store")&&!P.url.includes("/store/"))})}ngOnInit(){this.isNewLayout=this.layoutService.isNew(),this.appService.broadcast("changeTitleAppNav",{title:"global.common.store"}),this.appService.setIsStore(!0),this.isStoreHome=this.router.url.includes("/store")&&!this.router.url.includes("/store/")}ngOnDestroy(){this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),this.appService.setIsStore(!1)}static \u0275fac=function(M){return new(M||o)(e.rXU(g.Y),e.rXU(_.Ix),e.rXU(v.ZV),e.rXU(_.nX),e.rXU(h.d))};static \u0275cmp=e.VBU({type:o,selectors:[["app-store-public"]],standalone:!1,decls:6,vars:3,consts:[["header",""],[4,"ngIf"],["class","team-center-banners","position","center",4,"ngIf"],[4,"ngTemplateOutlet"],["position","center",1,"team-center-banners"],[3,"isDarkMode","hasSelect"],[1,"store-page-head"],[1,"fix"],[1,"store-title"]],template:function(M,C){1&M&&(e.DNE(0,t,3,2,"ng-container",1),e.nrm(1,"router-outlet"),e.DNE(2,r,1,0,"app-banners",2)(3,n,1,0,"app-footer-sponsors",1)(4,f,5,4,"ng-template",null,0,e.C5r)),2&M&&(e.Y8G("ngIf",C.isNewLayout&&!C.globalVars.app),e.R7$(2),e.Y8G("ngIf",C.isNewLayout),e.R7$(),e.Y8G("ngIf",C.isNewLayout&&!C.globalVars.app))},dependencies:[E.bT,E.T3,_.n3,c.x,a.K,p.L,d.D9],encapsulation:2})}return o}
1)()}}]);
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.