import{C as Au,Fn as MV,Gn as NV,Kr as Tu,Nr as S$,X as D$,_s as ph,eo as h5,gt as Ex,k as Bb,nr as O3,s as $a,yc as wp}from"./chunk-b0nJCs5_.js";import{k as tf,u as Jp}from"./chunk-DcB590Yc.js";var d=e=>({small:e});function u(e,t){if(e&1&&(wp(0,`span`,3),S$(1,0),Bb()),e&2){let o=D$();Ex(`ngClass`,h5(2,d,o.small()))(`ngbTooltip`,o.ownerTooltip)}}function f(e,t){if(e&1&&(wp(0,`span`,4),S$(1,1),Bb()),e&2){let o=D$();Ex(`ngClass`,h5(2,d,o.small()))(`ngbTooltip`,o.editorTooltip)}}function O(e,t){if(e&1&&(wp(0,`span`,5),S$(1,2),Bb()),e&2){let o=D$();Ex(`ngClass`,h5(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:"Biên tập viên có thể quản lý video trên kênh này",this.ownerTooltip=this.disableTooltip()?null:"Chủ sở hữu của kênh",this.invitationTooltip=this.disableTooltip()?null:"Được mời làm biên tập viên để quản lý video trên kênh này"}static ɵfac=function(o){return new(o||e)};static ɵcmp=$a({type:e,selectors:[[`my-collaborator-state`]],inputs:{type:[1,`type`],small:[1,`small`],disableTooltip:[1,`disableTooltip`]},decls:3,vars:1,consts:()=>{let t;t="Chủ sở hữu";let o;o="Biên tập viên";let n;return n="Đã gửi lời mời",[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&&NV(0,u,2,4,`span`,3)(1,f,2,4,`span`,4)(2,O,2,4,`span`,5),o&2&&MV(n.type()===`owner`?0:n.type()===`accepted`?1:n.type()===`invited`?2:-1)},dependencies:[Au,O3,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=4b2acda4-39ee-558d-bdf2-82b332985cb7
//# sourceMappingURL=chunk-CxGsHfUL.js.map