import{K as qp,L as e3,b as Pa,cx as fe,s as sp,k as w2,d as lb,W as WB,o as x2,f as Pp,S as SV,a3 as H0,b_ as Ex}from'./main-DEZ5cZzu.js';function C(e,v){if(e&1&&Pp(0,"my-actor-avatar",1),e&2){let n=SV();H0("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=SV();Ex("second-avatar",n.showChannel()),H0("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:e3});linkTitle="";ngOnInit(){this.internalHref()&&(this.showChannel()?this.linkTitle="Przejd\u017A do strony kana\u0142u "+this.channel().name+"":this.showAccount()&&(this.linkTitle="Przejd\u017A do strony konta "+this.account().name+""));}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),w2(1,C,1,4,"my-actor-avatar",1),w2(2,A,1,6,"my-actor-avatar",2),lb()),o&2&&(WB(),x2(h.showChannel()?1:-1),WB(),x2(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:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{H};//# sourceMappingURL=chunk-L6jd0HG0.js.map