import{a as C}from"./chunk-KZ2ERJXC.js";import{Da as c,Ec as o,Jb as h,Na as m,Nc as v,Vb as g,gb as r,hb as l,mb as s,nb as p,ob as f,pb as u}from"./chunk-EKZJWO2J.js";import{i}from"./chunk-BODC7FZN.js";function y(e,t){if(e&1&&u(0,"my-actor-avatar",1),e&2){let n=h();s("actor",n.channel())("size",n.size())("title",n.linkTitle)("internalHref",n.internalHref());}}function z(e,t){if(e&1&&u(0,"my-actor-avatar",3),e&2){let n=h();g("second-avatar",n.showChannel()),s("actor",n.account())("size",n.getAccountSize())("title",n.linkTitle)("internalHref",n.internalHref());}}var T=(()=>{let t=class t{account=o.required();channel=o.required();internalHref=o(void 0);showAccount=o(!0);showChannel=o(!0);size=o(35,{transform:v});linkTitle="";ngOnInit(){this.internalHref()&&(this.showChannel()?this.linkTitle="Acc\xE9der \xE0 la page de la cha\xEEne "+this.channel().name+"":this.showAccount()&&(this.linkTitle="Acc\xE9dez \xE0 la page du compte "+this.account().name+""));}getAccountSize(){return this.showChannel()?Math.round(this.size()*.6):this.size();}};i(t,"\u0275fac",function(a){return new(a||t)();}),i(t,"\u0275cmp",m({type:t,selectors:[["my-account-on-channel-avatar"]],inputs:{account:[1,"account"],channel:[1,"channel"],internalHref:[1,"internalHref"],showAccount:[1,"showAccount"],showChannel:[1,"showChannel"],size:[1,"size"]},decls:3,vars:2,consts:[[1,"root"],["actorType","channel",1,"channel",3,"actor","size","title","internalHref"],["actorType","account",1,"account",3,"second-avatar","actor","size","title","internalHref"],["actorType","account",1,"account",3,"actor","size","title","internalHref"]],template:function(a,d){a&1&&(p(0,"div",0),r(1,y,1,4,"my-actor-avatar",1),r(2,z,1,6,"my-actor-avatar",2),f()),a&2&&(c(),l(d.showChannel()?1:-1),c(),l(d.showAccount()?2:-1));},dependencies:[C],styles:[`.root[_ngcontent-%COMP%]{position:relative;margin-bottom:5px;margin-inline-end:.3125rem}.root[_ngcontent-%COMP%]   .second-avatar[_ngcontent-%COMP%]{position:absolute;bottom:-5px;right:-5px;background-color:#0000;border:2px solid var(--bg-secondary-350);background:var(--bg-secondary-350);border-radius:100%;line-height:1}
/*# sourceMappingURL=account-on-channel-avatar.component-TVTFZPXH.css.map */`]}));let e=t;return e;})();export{T as a};/**i18n:e079feaac094a2c754af8c2d9f82a9400e546e6b8cdd8ff7d538e47a33fc4649*///# sourceMappingURL=chunk-QGAW443G.js.map