import{a as C}from"./chunk-3WU5JWKD.js";import{Da as c,Db as h,Gc as v,La as m,Pb as g,ab as r,bb as l,gb as s,hb as p,ib as f,jb as u,xc as o}from"./chunk-WSBGJRUM.js";import{i}from"./chunk-PMOLICDQ.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="Naar de kanaalpagina van "+this.channel().name+" gaan":this.showAccount()&&(this.linkTitle="Naar de accountpagina van "+this.account().name+" gaan"));}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:3907c1bc44ea3b180445250ac6c616b106e81f719372623351dcd73c005dc65a*///# sourceMappingURL=chunk-PMMJUD7P.js.map