import{a as l}from"./chunk-6QA6JGM2.js";import{O as n}from"./chunk-KBLF2WKH.js";var p=(()=>{let r=class r{getFullImageUrl(t){if(!t)return"/assets/profil/base.png";if(t.startsWith("http://")||t.startsWith("https://"))return t;if(t.startsWith("/assets/")||t.startsWith("assets/"))return t.startsWith("/")?t:`/${t}`;let e=l.api.baseUrl.replace("/api",""),o=t.startsWith("/")?t:`/${t}`;return`${e}${o}`}getAvatarUrl(t){return t?this.getFullImageUrl(t):"/assets/profil/anonymous.png"}getFailImageUrl(t){return t?this.getFullImageUrl(t):"/assets/profil/base.png"}getFallbackImage(t){switch(t){case"avatar":return"/assets/profil/anonymous.png";case"fail":return"/assets/profil/base.png";default:return"/assets/profil/base.png"}}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"});let s=r;return s})();export{p as a};
