import{Cs as q5,Eo as kb,Gr as Va,Ia as f$,Q as EV,Qi as bV,Za as gx,_s as ph,ec as th,en as Kx,it as FB,vc as wp}from"./chunk-B_pj7Jpm.js";import{t as F}from"./chunk-CwzbLzxS2.js";function C(e,a){if(e&1&&th(0,`my-actor-avatar`,1),e&2){let n=f$();gx(`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=f$();Kx(`second-avatar`,n.showChannel()),gx(`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:q5});linkTitle=``;ngOnInit(){this.internalHref()&&(this.showChannel()?this.linkTitle=`Naar de kanaalpagina van ${this.channel().name} gaan`:this.showAccount()&&(this.linkTitle=`Naar de accountpagina van ${this.account().name} gaan`))}getAccountSize(){return this.showChannel()?Math.round(this.size()*.6):this.size()}static ɵfac=function(n){return new(n||e)};static ɵcmp=Va({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),EV(1,C,1,4,`my-actor-avatar`,1),EV(2,y,1,6,`my-actor-avatar`,2),kb()),n&2&&(FB(),bV(u.showChannel()?1:-1),FB(),bV(u.showAccount()?2:-1))},dependencies:[F],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=16b382cf-051e-5fa2-8962-8a004320bfe9
//# sourceMappingURL=chunk-C3vEVLKf2.js.map