import {I as It,P as Pt,b as bt}from'./chunk-D5dt-Yno.js';import {J,cI as p,c9 as qn,c as tS,cN as g,c5 as bD,f as QT,dV as yn,cb as Dn,a0 as ks,bp as QC,a2 as Uu,A as Iw,br as ZC,bu as dy,cd as Gy,a1 as Ny,bz as f_,a4 as Sy,f1 as X_,T as P_,bN as lM,K as Kg}from'./main-WUGO6e7n.js';function F(e,c){if(e&1&&Ny(0,"ngx-avatars",1),e&2){let a=f_();Sy("name",a.name)("size",a.avatarSize)("textSizeRatio",2.25)("initialsSize",3);}}function I(e,c){e&1&&Ny(0,"i",2);}function T(e,c){if(e&1&&(ks(0,"span",3),Ny(1,"img",7),Uu()),e&2){let a=f_();Iw(),Sy("src",X_("data:image/png;base64,",a.imageBytes),Kg);}}function k(e,c){if(e&1&&Ny(0,"i",8),e&2){let a=f_();P_(X_("di dvl-icon-",a.imageIcon.icon," text-(length:--avatar-size)")),Sy("ngStyle",lM(4,V,a.imageIcon.color));}}function D(e,c){if(e&1&&(ks(0,"div",5),Ny(1,"i",9)(2,"i",10),Uu()),e&2){let a=f_();Sy("ngClass",a.size);}}function E(e,c){if(e&1&&(ks(0,"div",6),Ny(1,"i",11)(2,"i",12),Uu()),e&2){let a=f_();Sy("ngClass",a.size);}}var V,q,H=J(()=>{p();It();qn();tS();It();V=e=>({color:e});q=(()=>{class e extends g{constructor(){super(...arguments),this.isPam=!1,this.isPrivate=!1,this.avatarSize=28,this.isFavorite=!1;}get cssAvatarSize(){return `${this.avatarSize}px`}static{this.\u0275fac=(()=>{let a;return function(i){return (a||(a=bD(e)))(i||e)}})();}static{this.\u0275cmp=QT({type:e,selectors:[["dvls-vault-avatar"]],hostVars:2,hostBindings:function(l,i){l&2&&Gy("--avatar-size",i.cssAvatarSize);},inputs:{imageIcon:"imageIcon",imageBytes:"imageBytes",isPam:"isPam",isPrivate:"isPrivate",name:"name",avatarSize:"avatarSize",size:"size",isFavorite:"isFavorite"},features:[dy],decls:7,vars:6,consts:[[1,"relative","inline-block"],[3,"name","size","textSizeRatio","initialsSize"],[1,"repo-private-icon","di","dvl-icon-user-vault"],[1,"flex","items-center","justify-center","w-(--avatar-size)","h-(--avatar-size)"],[3,"class","ngStyle"],[1,"avatar-badge","absolute","-bottom-(--badge-border-width)","-right-(--badge-border-width)","w-(--badge-icon-size)","h-(--badge-icon-size)","text-[rgb(var(--base-color-rgb))]",3,"ngClass"],[1,"avatar-badge","absolute","-top-(--badge-border-width)","-right-(--badge-border-width)","w-(--badge-icon-size)","h-(--badge-icon-size)","text-accent-warning-400",3,"ngClass"],["alt","",1,"max-w-(--avatar-size)","max-h-(--avatar-size)",3,"src"],[3,"ngStyle"],[1,"avatar-badge-border","avatar-badge-icon","di","dvl-icon-pam"],[1,"avatar-badge-icon","di","dvl-icon-pam"],[1,"avatar-badge-border","avatar-badge-icon","di","dvl-icon-favorite"],[1,"avatar-badge-icon","di","dvl-icon-favorite"]],template:function(l,i){l&1&&(ks(0,"div",0),QC(1,F,1,4,"ngx-avatars",1),QC(2,I,1,0,"i",2),QC(3,T,2,2,"span",3),QC(4,k,1,6,"i",4),QC(5,D,3,1,"div",5),QC(6,E,3,1,"div",6),Uu()),l&2&&(Iw(),ZC(!i.isPrivate&&!i.imageBytes&&!i.imageIcon?1:-1),Iw(),ZC(i.isPrivate?2:-1),Iw(),ZC(i.imageBytes?3:-1),Iw(),ZC(i.imageIcon?4:-1),Iw(),ZC(i.isPam?5:-1),Iw(),ZC(i.isFavorite?6:-1));},dependencies:[Pt,bt,yn,Dn],styles:['[_nghost-%COMP%]{--badge-icon-size: 16px;--badge-border-width: 4px}.tiny[_ngcontent-%COMP%]{--badge-icon-size: 10px;--badge-border-width: 3px}.small[_ngcontent-%COMP%]{--badge-icon-size: 15px}.medium[_ngcontent-%COMP%]{--badge-icon-size: 16px}.avatar-badge-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:var(--badge-icon-size);height:var(--badge-icon-size);font-size:var(--badge-icon-size);transform:translate(-50%,-50%)}.avatar-badge-icon[_ngcontent-%COMP%]:not(.avatar-badge-border){width:calc(var(--badge-icon-size) - var(--badge-border-width));height:calc(var(--badge-icon-size) - var(--badge-border-width));font-size:calc(var(--badge-icon-size) - var(--badge-border-width))}.avatar-badge-border[_ngcontent-%COMP%]{color:var(--side-panel-background-color)}.avatar-badge-border.dvl-icon-role-owner[_ngcontent-%COMP%], .avatar-badge-border.dvl-icon-role-admin[_ngcontent-%COMP%]{text-shadow:0 -2px 0 var(--side-panel-background-color),0 -1px var(--side-panel-background-color)}.avatar-badge-border.dvl-icon-pam[_ngcontent-%COMP%]:after{width:calc(var(--badge-icon-size) - 5px);height:calc(var(--badge-icon-size) - 5px);position:absolute;inset:0;margin:auto;background-color:var(--side-panel-background-color);border-radius:50%;content:""}'],changeDetection:1});}}return e})();});export{H,q};