import{L as qp,O as J$,b as Pa,cx as fe,s as sp,m as _2,u as ub,z as zB,A as w2,e as Pp,o as bV,a3 as B0,b_ as vx}from'./main-BiUBeaMj.js';function C(e,v){if(e&1&&Pp(0,"my-actor-avatar",1),e&2){let n=bV();B0("actor",n.channel())("size",n.size())("title",n.linkTitle)("internalHref",n.internalHref());}}function A(e,v){if(e&1&&Pp(0,"my-actor-avatar",3),e&2){let n=bV();vx("second-avatar",n.showChannel()),B0("actor",n.account())("size",n.getAccountSize())("title",n.linkTitle)("internalHref",n.internalHref());}}var H=(()=>{class e{account=qp.required();channel=qp.required();internalHref=qp(void 0);showAccount=qp(true);showChannel=qp(true);size=qp(35,{transform:J$});linkTitle="";ngOnInit(){this.internalHref()&&(this.showChannel()?this.linkTitle="Anar a la p\xE0gina del canal "+this.channel().name+"":this.showAccount()&&(this.linkTitle="Anar a la p\xE0gina del compte "+this.account().name+""));}getAccountSize(){return this.showChannel()?Math.round(this.size()*.6):this.size();}static ɵfac=function(o){return new(o||e)();};static ɵcmp=Pa({type:e,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(o,h){o&1&&(sp(0,"div",0),_2(1,C,1,4,"my-actor-avatar",1),_2(2,A,1,6,"my-actor-avatar",2),ub()),o&2&&(zB(),w2(h.showChannel()?1:-1),zB(),w2(h.showAccount()?2:-1));},dependencies:[fe],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}"],changeDetection:1});}return e;})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{H};//# sourceMappingURL=chunk-B9BGyAri.js.map