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-ajlqprgK.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=""+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();}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-8lOTBI1w.js.map