import{Cr as Qx,Fn as MV,Gn as NV,X as D$,Zs as th,_s as ph,gt as Ex,k as Bb,lo as i3,n as $B,s as $a,yc as wp}from"./chunk-b0nJCs5_.js";import{n as R}from"./chunk-DDsZtj252.js";function C(e,a){if(e&1&&th(0,`my-actor-avatar`,1),e&2){let n=D$();Ex(`actor`,n.channel())(`size`,n.size())(`title`,n.linkTitle)(`internalHref`,n.internalHref())}}function y(e,a){if(e&1&&th(0,`my-actor-avatar`,3),e&2){let n=D$();Qx(`second-avatar`,n.showChannel()),Ex(`actor`,n.account())(`size`,n.getAccountSize())(`title`,n.linkTitle)(`internalHref`,n.internalHref())}}var v=class e{account=ph.required();channel=ph.required();internalHref=ph(void 0);showAccount=ph(!0);showChannel=ph(!0);size=ph(35,{transform:i3});linkTitle=``;ngOnInit(){this.internalHref()&&(this.showChannel()?this.linkTitle=`Ir a la página del canal ${this.channel().name}`:this.showAccount()&&(this.linkTitle=`Ir a la página de la cuenta ${this.account().name}`))}getAccountSize(){return this.showChannel()?Math.round(this.size()*.6):this.size()}static ɵfac=function(n){return new(n||e)};static ɵcmp=$a({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(n,u){n&1&&(wp(0,`div`,0),NV(1,C,1,4,`my-actor-avatar`,1),NV(2,y,1,6,`my-actor-avatar`,2),Bb()),n&2&&($B(),MV(u.showChannel()?1:-1),$B(),MV(u.showAccount()?2:-1))},dependencies:[R],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(--%NS%bg-secondary-350);background:var(--%NS%bg-secondary-350);border-radius:100%;line-height:1}`],changeDetection:1})};export{v as t};
//# debugId=fb11d7d3-8e86-5dc1-bc7c-a121ee1371c7
//# sourceMappingURL=chunk-BrSKUJlc2.js.map