1"use strict";(self.webpackChunkequidia=self.webpackChunkequidia||[]).push([[6650],{3148:(C,f,r)=>{r.d(f,{F:()=>d});var h=r(177),_=r(4438);let d=(()=>{class p{static#t=this.\u0275fac=function(m){return new(m||p)};static#e=this.\u0275mod=_.$C({type:p});static#o=this.\u0275inj=_.G2t({imports:[h.MD]})}return p})()},7e3:(C,f,r)=>{r.d(f,{$:()=>d});var h=r(4438),_=r(345);let d=(()=>{class p{constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}static#t=this.\u0275fac=function(m){return new(m||p)(h.rXU(_.up,16))};static#e=this.\u0275pipe=h.EJ8({name:"mySafeHtml",type:p,pure:!0})}return p})()},4949:(C,f,r)=>{r.d(f,{U:()=>m});var h=r(467),_=r(1626),d=r(7793),p=r(4438),M=r(1113),t=r(8211);let m=(()=>{class y{constructor(i,n){this.requestService=i,this._authService=n}saveAsFavorite(i,n,a){const c=`${d.c.baseUrl.apiPerso}/entity`,s={id:n,entity:a,..."cheval"===a&&{discipline:this.lastDiscipline},action_type:"favori",action_val:i};try{this.requestService.post(c,s,this._getHeaders())}catch(l){return console.log(l),!1}return!0}getHippodromesFavorites(i){var n=this;return(0,h.A)(function*(){yield n._authService.profile();const a=`${d.c.baseUrl.apiv2}/web/racecourse-favorites`;try{return(yield n.requestService.post(a,{uuids:i},n._getHeadersApiV2())).uuids}catch(c){return console.log(c),[]}})()}getTagsFavorites(i){var n=this;return(0,h.A)(function*(){yield n._authService.profile();const a=`${d.c.baseUrl.apiv2}/web/tag-favorites`;try{return(yield n.requestService.post(a,{uuids:i},n._getHeadersApiV2())).uuids}catch(c){return console.log(c),[]}})()}getCoursesFavoris(i){var n=this;return(0,h.A)(function*(){try{yield n._authService.profile()}catch{}if(!n._authService.getUser())return[];const a=`${d.c.baseUrl.apiv2}/web/race-favorites`,c={guids:i};try{let s=yield n.requestService.post(a,c,n._getHeadersApiV2()),l=[];for(let g of s.guids)l[g]={favori:!0};return l}catch(s){return console.log(s),[]}})()}getCountChevaux(i=!1){var n=this;return(0,h.A)(function*(){const a=`${d.c.baseUrl.apiServer}chevaux/favori/your-horses`,c=yield n._getFavoriteUuids();return c?.length?n.requestService.post(a,{uuids:c}):Promise.reject("no favorite")})()}getBestFavoritesByDiscipline(i,n=!1){var a=this;return(0,h.A)(function*(){const c=`${d.c.baseUrl.apiServer}chevaux/favori/best-horse`,s=yield a._getFavoriteUuids();return s?.length?a.requestService.post(c,{...i,uuids:s}):Promise.reject("no favorite")})()}getFavorites(i=null,n=0,a=9,c=!1,s={}){var l=this;return(0,h.A)(function*(){return yield l._authService.profile(),i?l.getFavoritesInList(i):l.getFavoriteUser("cheval",n,a,c,s)})()}getFavoriteUser(i,n,a,c=!1,s){var l=this;return(0,h.A)(function*(){let g=`${d.c.baseUrl.apiServer}chevaux/favori/your-horses-list?range=[${n},${a}]&with_meta=true`;if(s.column&&s.order&&(g+=`&sort=["${s.column}","${s.order}"]`),s.last_discipline||s.age_cheval){const x={last_discipline:s.last_discipline,age_cheval:s.age_cheval};x.last_discipline||delete x.last_discipline,x.age_cheval||delete x.age_cheval,g+=`&filter=${JSON.stringify(x)}`}const P=yield l._getFavoriteUuids();return P?.length?l.requestService.post(g,{uuids:P}):Promise.reject("no favorite")})()}getFavoritesInList(i){var n=this;return(0,h.A)(function*(){if(!i?.length)return[];const a=`${d.c.baseUrl.apiv2}/web/horse-favorites`;let c={};if("string"==typeof i)c={uuids:[i]};else{let s=[];if(i[0]?.cheval?.uuid)for(let l of i)s.push(l.cheval?.uuid);else if(i[0]?.partant.cheval?.uuid)for(let l of i)s.push(l.partant.cheval?.uuid);c={uuids:s}}try{let s=yield n.requestService.post(a,c,n._getHeadersApiV2()),l=[];for(let g of s.uuids)l[g]={favori:!0};return l}catch(s){return console.log(s),[]}})()}_getFavoriteUuids(){var i=this;return(0,h.A)(function*(){yield i._authService.profile();const n=`${d.c.baseUrl.apiv2}/web/horse-favorites`;try{return(yield i.requestService.post(n,{},i._getHeadersApiV2())).uuids}catch(a){return console.log(a),[]}})()}_getHeaders(){return new _.Lr({"Content-Type":"application/json",token:this._authService.getAccessToken()})}_getHeadersApiV2(){return new _.Lr({"Content-Type":"application/json",Authorization:this._authService.getAccessToken()})}static#t=this.\u0275fac=function(n){return new(n||y)(p.KVO(M.B),p.KVO(t.u))};static#e=this.\u0275prov=p.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},9758:(C,f,r)=>{r.r(f),r.d(f,{ThemeAuthorModule:()=>G});var h=r(177),_=r(3253),d=r(5144),p=r(467),M=r(1994),t=r(4438),m=r(1086),y=r(1838),A=r(1282),i=r(2190),n=r(1370),a=r(8192),c=r(5966),s=r(7e3);const l=o=>({template:"big-line",article:o}),g=o=>({config:o});function P(o,v){if(1&o&&(t.nrm(0,"div",12),t.nI1(1,"mySafeHtml")),2&o){const e=t.XpG(2);t.Y8G("innerHtml",t.bMT(1,1,e.author.bio),t.npT)}}function x(o,v){1&o&&t.nrm(0,"app-block-article-preview",17),2&o&&t.Y8G("block",t.eq3(3,g,t.eq3(1,l,v.$implicit)))}function b(o,v){if(1&o&&(t.j41(0,"div",18),t.qSk(),t.j41(1,"svg"),t.nrm(2,"use",19),t.k0s(),t.joV(),t.j41(3,"p"),t.EFF(4),t.k0s()()),2&o){const e=t.XpG(3);t.R7$(4),t.Lme(" ",e.author.firstname," ",e.author.lastname," n\u2019a pas d\u2019article en ligne pour le moment ")}}function T(o,v){if(1&o&&(t.j41(0,"div",13)(1,"h2",14),t.EFF(2,"Articles"),t.k0s(),t.DNE(3,x,1,5,"app-block-article-preview",15)(4,b,5,2,"div",16),t.k0s()),2&o){const e=t.XpG(2);t.R7$(3),t.Y8G("ngForOf",e.articles),t.R7$(),t.Y8G("ngIf",!(null!=e.articles&&e.articles.length||null!=e.pronostics&&e.pronostics.length))}}function U(o,v){if(1&o&&(t.qex(0),t.nrm(1,"app-block-ticket-pronostic",22),t.bVm()),2&o){const e=v.$implicit;t.R7$(),t.Y8G("ticketProno",e)("hasMyProno",!1)("isInAuthorPage",!0)}}function E(o,v){if(1&o&&(t.j41(0,"div",18),t.qSk(),t.j41(1,"svg"),t.nrm(2,"use",19),t.k0s(),t.joV(),t.j41(3,"p"),t.EFF(4),t.k0s()()),2&o){const e=t.XpG(3);t.R7$(4),t.Lme(" ",e.author.firstname," ",e.author.lastname," n\u2019a pas de pronostic r\xe9cent ")}}function S(o,v){if(1&o&&(t.j41(0,"div",20)(1,"h2",14),t.EFF(2,"Derniers pronostics"),t.k0s(),t.DNE(3,U,2,3,"ng-container",21)(4,E,5,2,"div",16),t.k0s()),2&o){const e=t.XpG(2);t.AVh("pronos--big",!e.articles.length&&(null==e.pronostics?null:e.pronostics.length)),t.R7$(3),t.Y8G("ngForOf",e.pronostics),t.R7$(),t.Y8G("ngIf",!(null!=e.articles&&e.articles.length||null!=e.pronostics&&e.pronostics.length))}}function F(o,v){if(1&o&&(t.j41(0,"div",2)(1,"div",3)(2,"div",4),t.nrm(3,"app-author-pic",5),t.k0s(),t.j41(4,"div",6)(5,"h1",7),t.EFF(6),t.k0s(),t.DNE(7,P,2,3,"div",8),t.k0s()(),t.j41(8,"div",9),t.DNE(9,T,5,2,"div",10)(10,S,5,4,"div",11),t.k0s()()),2&o){const e=t.XpG();t.R7$(3),t.Y8G("userPhoto",e.photo)("size","big"),t.R7$(3),t.Lme(" ",e.author.firstname," ",e.author.lastname," "),t.R7$(),t.Y8G("ngIf",e.author.bio),t.R7$(2),t.Y8G("ngIf",!e.articles.length&&!(null!=e.pronostics&&e.pronostics.length)||e.articles.length),t.R7$(),t.Y8G("ngIf",!e.articles.length&&!(null!=e.pronostics&&e.pronostics.length)||(null==e.pronostics?null:e.pronostics.length))}}const $=[{path:"",component:(()=>{class o{constructor(e,u,O,H){this._authorService=e,this._activatedRoute=u,this._seoService=O,this._amplitudeService=H,this.author=null,this.photo=null,this.pronostics=[],this.articles=[]}ngOnInit(){var e=this;return(0,p.A)(function*(){e._getUserArticles(),yield e._getUserInfo(),e._getUserProno()})()}_getUserInfo(){var e=this;return(0,p.A)(function*(){try{e.author=yield e._authorService.get(e._activatedRoute.snapshot.params.authorId),e._seoService.updateSeo({title:`${e.author.firstname} ${e.author.lastname}`}),e._amplitudeService.pageTrack({"Content Type":"Auteur"}),e.photo=M.f.user(e.author,"user_profil")}catch(u){console.error(u)}})()}_getUserProno(){var e=this;return(0,p.A)(function*(){try{e.pronostics=(yield e._authorService.getPronostics(e._activatedRoute.snapshot.params.authorId)).map(u=>(u.creator={firstname:e.author.firstname,lastname:e.author.lastname,photo_url:e.author.photo_url,class_key:e.author.class_key,slug:e.author.slug,uuid:e.author.uuid},u))}catch(u){console.error(u)}})()}_getUserArticles(){var e=this;return(0,p.A)(function*(){try{e.articles=yield e._authorService.getArticles(e._activatedRoute.snapshot.params.authorId)}catch(u){console.error(u)}})()}static#t=this.\u0275fac=function(u){return new(u||o)(t.rXU(m.R),t.rXU(d.nX),t.rXU(y.B),t.rXU(A.r))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["app-theme-author"]],decls:3,vars:1,consts:[["id","main"],["class","container",4,"ngIf"],[1,"container"],[1,"header-author"],[1,"header-author__photo"],[3,"userPhoto","size"],[1,"header-author__text"],[1,"header-author__text__name"],["class","header-author__text__desc",3,"innerHtml",4,"ngIf"],[1,"body-page"],["class","body-page__articles",4,"ngIf"],["class","body-page__pronos",3,"pronos--big",4,"ngIf"],[1,"header-author__text__desc",3,"innerHtml"],[1,"body-page__articles"],[1,"title-category"],[3,"block",4,"ngFor","ngForOf"],["class","block-empty",4,"ngIf"],[3,"block"],[1,"block-empty"],[0,"xlink","href","#empty-data"],[1,"body-page__pronos"],[4,"ngFor","ngForOf"],[3,"ticketProno","hasMyProno","isInAuthorPage"]],template:function(u,O){1&u&&(t.j41(0,"app-layout")(1,"main",0),t.DNE(2,F,11,7,"div",1),t.k0s()()),2&u&&(t.R7$(2),t.Y8G("ngIf",O.author))},dependencies:[h.Sq,h.bT,i.C,n.h,a.R,c.X,s.$],styles:['[_ngcontent-%COMP%]::root{--global-font-color: #fff}#main[_ngcontent-%COMP%]{background:#fff;padding:60px 0;min-height:calc(100vh - 226px)}@media screen and (min-width: 768px){#main[_ngcontent-%COMP%]{min-height:calc(100vh - 199px)}}.body-page[_ngcontent-%COMP%]{display:flex;gap:50px}@media screen and (max-width: 767px){.body-page[_ngcontent-%COMP%]{flex-direction:column}}.body-page__articles[_ngcontent-%COMP%]{flex:1}@media screen and (min-width: 768px){.body-page__pronos[_ngcontent-%COMP%]:not(.pronos--big){width:435px}}.header-author[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:35px;margin-bottom:58px}@media screen and (min-width: 768px){.header-author[_ngcontent-%COMP%]{margin-bottom:100px}}.header-author__photo[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative;width:75px;height:75px;align-self:center;overflow:hidden}@media screen and (min-width: 768px){.header-author__photo[_ngcontent-%COMP%]{width:106px;height:106px}}.header-author__photo[_ngcontent-%COMP%] app-author-pic[_ngcontent-%COMP%]{z-index:10}.header-author__photo[_ngcontent-%COMP%]:before{content:"";position:absolute;
1left:-25px;right:-25px;height:25px;background:#f62741;transform:rotate(-55deg);transform-origin:center}.header-author__text[_ngcontent-%COMP%]{flex:1;color:#090a3a}.header-author__text__name[_ngcontent-%COMP%]{font-size:34px;font-style:normal;font-weight:400;line-height:34px;margin-bottom:15px}.header-author__text__desc[_ngcontent-%COMP%]{font-size:16px;font-weight:400}[_nghost-%COMP%] app-author-pic{margin:0;padding:6px}[_nghost-%COMP%] app-block-ticket-pronostic{display:block;margin-bottom:12px}[_nghost-%COMP%] app-block-ticket-pronostic .ticket-prono--analysis--list{flex-wrap:wrap;gap:10px;padding:0}[_nghost-%COMP%] app-block-ticket-pronostic .ticket-prono--analysis--list .ticket-prono--analysis--list--partant--card{margin:0}[_nghost-%COMP%] app-block-ticket-pronostic .ticket-prono--analysis--list .ticket-prono--analysis--list--partant--name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title-category[_ngcontent-%COMP%]{color:#090a3a;font-size:24px;line-height:24px}.block-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:260px;background:linear-gradient(0deg,#ffffff80 0% 100%),linear-gradient(180deg,#dce1e7,#dce1e700);border-radius:5px}.block-empty[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:85px;height:70px;fill:#dce1e7;margin-bottom:6px}']})}return o})(),pathMatch:"full"}];let I=(()=>{class o{static#t=this.\u0275fac=function(u){return new(u||o)};static#e=this.\u0275mod=t.$C({type:o});static#o=this.\u0275inj=t.G2t({imports:[d.iI.forChild($),d.iI]})}return o})();var k=r(3421),D=r(3148),R=r(8383),j=r(1553);let G=(()=>{class o{static#t=this.\u0275fac=function(u){return new(u||o)};static#e=this.\u0275mod=t.$C({type:o});static#o=this.\u0275inj=t.G2t({imports:[h.MD,_.R,I,k._,D.F,R.X,j.U]})}return o})()}}]);
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.