import {d,n as n$1}from'./chunk-CJLNRre0.js';import {J,c as tS,U as RN,H as ul,L as w,N as Sr,f as QT,iD as Pg,df as Bz,bp as QC,br as ZC,a0 as ks,a1 as Ny,a2 as Uu,bz as f_,A as Iw,a4 as Sy,bk as i_,a3 as Py,bm as Bp,co as E_,bo as $p,v as W_,cl as JC,dj as KC,C as Qu,cm as XC}from'./main-WUGO6e7n.js';function M(t,c){if(t&1&&Ny(0,"dvl-tag",2),t&2){let e=c.$implicit,n=f_(3);Sy("label",n.tagLabel(e))("tone",e.tone)("backgroundColor",e.backgroundColor)("textColor",e.textColor);}}function O(t,c){if(t&1){let e=i_();ks(0,"span",3),Py("mouseenter",function(i){Bp(e);let E=E_(3);return $p(E.show(i))})("mouseleave",function(){Bp(e);let i=E_(3);return $p(i.hide())}),W_(1),Uu(),ks(2,"dvl-popover",4,0)(4,"div",5),JC(5,M,1,4,"dvl-tag",2,KC),Uu()();}if(t&2){let e=f_(2);Iw(),Qu("+",e.hiddenTags.length),Iw(),Sy("focusOnShow",false),Iw(3),XC(e.hiddenTags);}}function j(t,c){if(t&1&&(ks(0,"div",1),Ny(1,"dvl-tag",2),QC(2,O,7,2),Uu()),t&2){let e=f_();Iw(),Sy("label",e.tagLabel(e.firstTag))("tone",e.firstTag.tone)("backgroundColor",e.firstTag.backgroundColor)("textColor",e.firstTag.textColor),Iw(),ZC(e.hiddenTags.length>0?2:-1);}}var K,A=J(()=>{tS();RN();d();ul();tS();K=(()=>{class t{constructor(){this.tags=[],this.translatorService=w(Sr);}get firstTag(){return this.tags?.[0]??null}get hiddenTags(){return this.tags?.slice(1)??[]}tagLabel(e){return e.isCustom?e.name:this.translatorService.translateEnum(n$1,e.name)}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=QT({type:t,selectors:[["dvls-user-tags-cell"]],inputs:{tags:"tags"},decls:1,vars:1,consts:[["hiddenTagsPopover",""],[1,"flex","items-center","gap-1"],[3,"label","tone","backgroundColor","textColor"],[1,"cursor-default","whitespace-nowrap","text-200","text-xs",3,"mouseenter","mouseleave"],[3,"focusOnShow"],[1,"flex","max-w-xs","flex-wrap","items-center","gap-1"]],template:function(n,i){n&1&&QC(0,j,3,5,"div",1),n&2&&ZC(i.firstTag?0:-1);},dependencies:[Pg,Bz],encapsulation:2});}}return t})();});export{A,K};