import{a as C}from"./chunk-XAMJVNSV.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-ZSQR4KTU.js";import{i}from"./chunk-IQVXR75E.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=""+this.channel().name+"\u306E\u30C1\u30E3\u30F3\u30CD\u30EB\u30DA\u30FC\u30B8\u3092\u958B\u304F":this.showAccount()&&(this.linkTitle=""+this.account().name+"\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u30DA\u30FC\u30B8\u3092\u958B\u304F"));}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:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-N43OXAS4.js.map