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:"En redaktör kan hantera videor i kanalen",this.ownerTooltip=this.disableTooltip()?null:"Ägare av kanalen",this.invitationTooltip=this.disableTooltip()?null:"Inbjuden att bli redaktör för att hantera videor och delta i arbetet med kanalen"}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="Ägare";let o;o="Redaktör";let n;return n="Inbjudan skickad",[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=38f441cb-98cf-5608-87c7-81cc3ce8c98f
//# sourceMappingURL=chunk-Dg5vKWKM2.js.map