import{a as C}from"./chunk-5XXEC4LL.js";import{$a as l,Aa as c,Bb as h,Gc as v,Ka as m,Nb as g,_a as r,eb as s,fb as p,gb as f,hb as u,yc as o}from"./chunk-AVPM423Z.js";import{i}from"./chunk-W5TMGCPH.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="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();}};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:ceac57349051bcddcb40dd2878e0abcb86556d5ceb9d6109d22ac3f1ae3cc7b1*///# sourceMappingURL=chunk-GB7B5EJL.js.map