import{a as y}from"./chunk-FV3DX7LT.js";import{Db as h,Ha as c,Rc as g,Sa as m,Ya as p,eb as r,gb as d,jb as l,ob as f,pb as v,qb as s,ta as o,uc as C}from"./chunk-GKQGDBUU.js";import{i}from"./chunk-QVFSZZWQ.js";function A(t,e){if(t&1&&s(0,"my-actor-avatar",1),t&2){let n=h();r("actor",n.channel())("size",n.size())("title",n.linkTitle)("internalHref",n.internalHref());}}function w(t,e){if(t&1&&s(0,"my-actor-avatar",3),t&2){let n=h();d("second-avatar",n.showChannel()),r("actor",n.account())("size",n.getAccountSize())("title",n.linkTitle)("internalHref",n.internalHref());}}var M=(()=>{let e=class e{account=o.required();channel=o.required();internalHref=o(void 0);showAccount=o(!0);showChannel=o(!0);size=o(35,{transform:C});linkTitle="";ngOnInit(){this.internalHref()&&(this.showChannel()?this.linkTitle="Go to "+this.channel().name+" channel page":this.showAccount()&&(this.linkTitle="Go to "+this.account().name+" account page"));}getAccountSize(){return this.showChannel()?Math.round(this.size()*.6):this.size();}};i(e,"\u0275fac",function(a){return new(a||e)();}),i(e,"\u0275cmp",m({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(a,u){a&1&&(f(0,"div",0),p(1,A,1,4,"my-actor-avatar",1)(2,w,1,6,"my-actor-avatar",2),v()),a&2&&(c(),l(u.showChannel()?1:-1),c(),l(u.showAccount()?2:-1));},dependencies:[g,y],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 t=e;return t;})();export{M as a};/**i18n:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*///# sourceMappingURL=chunk-7J3CUA3H.js.map