import{a as C}from"./chunk-CRKNV45X.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-HJJWL6RD.js";import{i}from"./chunk-H2BCKOF6.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="\u0110\u1EBFn "+this.channel().name+" trang k\xEAnh":this.showAccount()&&(this.linkTitle="\u0110\u1EBFn "+this.account().name+" trang t\xE0i kho\u1EA3n"));}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:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*///# sourceMappingURL=chunk-BIXWLIEM.js.map