import{Ar as Tu,Eo as kb,Fo as l$,Gr as Va,Ia as f$,Q as EV,Qi as bV,Za as gx,Zo as n5,_s as ph,p as Au,pr as S3,vc as wp}from"./chunk-B_pj7Jpm.js";import{k as tf,u as Jp}from"./chunk-CR0lnyBO.js";var d=e=>({small:e});function u(e,t){if(e&1&&(wp(0,`span`,3),l$(1,0),kb()),e&2){let o=f$();gx(`ngClass`,n5(2,d,o.small()))(`ngbTooltip`,o.ownerTooltip)}}function f(e,t){if(e&1&&(wp(0,`span`,4),l$(1,1),kb()),e&2){let o=f$();gx(`ngClass`,n5(2,d,o.small()))(`ngbTooltip`,o.editorTooltip)}}function O(e,t){if(e&1&&(wp(0,`span`,5),l$(1,2),kb()),e&2){let o=f$();gx(`ngClass`,n5(2,d,o.small()))(`ngbTooltip`,o.invitationTooltip)}}var E=class e{type=ph.required();small=ph(!1,{transform:Tu});disableTooltip=ph(!1,{transform:Tu});editorTooltip;ownerTooltip;invitationTooltip;ngOnInit(){this.editorTooltip=this.disableTooltip()?null:"Редактор может управлять видео на этом канале",this.ownerTooltip=this.disableTooltip()?null:"Владелец канала",this.invitationTooltip=this.disableTooltip()?null:"Приглашен на роль редактора для управления видео на этом канале"}static ɵfac=function(o){return new(o||e)};static ɵcmp=Va({type:e,selectors:[[`my-collaborator-state`]],inputs:{type:[1,`type`],small:[1,`small`],disableTooltip:[1,`disableTooltip`]},decls:3,vars:1,consts:()=>{let t;t="Владелец";let o;o="Редактор";let n;return n="Приглашение отправлено",[t,o,n,[`container`,`body`,1,`collaborator-role`,`collaborator-role-owner`,3,`ngClass`,`ngbTooltip`],[`container`,`body`,1,`collaborator-role`,`collaborator-role-editor`,3,`ngClass`,`ngbTooltip`],[`container`,`body`,1,`collaborator-role`,`collaborator-role-invited`,3,`ngClass`,`ngbTooltip`]]},template:function(o,n){o&1&&EV(0,u,2,4,`span`,3)(1,f,2,4,`span`,4)(2,O,2,4,`span`,5),o&2&&bV(n.type()===`owner`?0:n.type()===`accepted`?1:n.type()===`invited`?2:-1)},dependencies:[Au,S3,tf,Jp],styles:[`.collaborator-role[_ngcontent-%COMP%]{border-radius:4px;padding:1px 6px;width:fit-content;line-height:normal;border:1px solid;white-space:nowrap;font-size:.75rem}.collaborator-role.small[_ngcontent-%COMP%]{padding:1px 6px;font-size:.625rem}.collaborator-role-owner[_ngcontent-%COMP%]{color:var(--%NS%bg-secondary-400);background-color:var(--%NS%fg-200);border-color:var(--%NS%fg-200)}.collaborator-role-editor[_ngcontent-%COMP%], .collaborator-role-invited[_ngcontent-%COMP%]{color:var(--%NS%fg-300);border-color:var(--%NS%secondary-icon-color)}`],changeDetection:1})};export{E as t};
//# debugId=c45c98f9-7db9-5a1b-a0b2-74119a9b9b92
//# sourceMappingURL=chunk-Dg5vKWKM2.js.map