import './polyfills.server.mjs';
import{a as S,b as g,c as b,d as E,e as _,f as h,g as y,h as I}from"./chunk-7NM7ZG7H.mjs";import{b as D,e as U,g as P}from"./chunk-HVAADFW5.mjs";import{a as M}from"./chunk-T5LZBZJE.mjs";import"./chunk-2WXSFPFY.mjs";import"./chunk-KZ53AINW.mjs";import{g as C,h as x}from"./chunk-TO4URZUI.mjs";import{ia as O,ja as T}from"./chunk-DJIE5ZIO.mjs";import"./chunk-JHLKIBD7.mjs";import{m as v}from"./chunk-UL5Q63VB.mjs";import{Nb as c,Ob as p,Ub as t,Vb as e,ca as m,gb as n,ub as s,uc as u,vc as i,wc as o,xc as f}from"./chunk-IT3JGK4C.mjs";import"./chunk-KXIJJ5ZC.mjs";function L(r,d){if(r&1&&(t(0,"mat-card",1)(1,"mat-card-header")(2,"div",3)(3,"mat-icon"),i(4,"account_circle"),e()(),t(5,"mat-card-title"),i(6),e(),t(7,"mat-card-subtitle"),i(8),e()(),t(9,"mat-card-content")(10,"div",4)(11,"div",5)(12,"span",6),i(13,"ID:"),e(),t(14,"span",7),i(15),e()(),t(16,"div",5)(17,"span",6),i(18,"Role:"),e(),t(19,"mat-chip-set")(20,"mat-chip"),i(21),e()()(),t(22,"div",5)(23,"span",6),i(24,"Status:"),e(),t(25,"span",8),i(26),e()()()(),t(27,"mat-card-actions",9)(28,"button",10),i(29,"EDIT PROFILE"),e()()()),r&2){let a=d;n(6),o(a.name),n(2),o(a.email),n(7),o(a.id),n(6),o(a.role),n(4),u(a.status.toLowerCase()),n(),f(" ",a.status," ")}}function A(r,d){r&1&&(t(0,"div",2)(1,"p"),i(2,"Loading user profile..."),e()())}var w=class r{userService=m(M);user=this.userService.currentUser;static \u0275fac=function(a){return new(a||r)};static \u0275cmp=s({type:r,selectors:[["app-user-detail"]],decls:3,vars:1,consts:[[1,"page-container"],[1,"profile-card"],[1,"loading-state"],["mat-card-avatar","",1,"user-avatar"],[1,"info-grid"],[1,"info-item"],[1,"label"],[1,"value"],[1,"status-indicator"],["align","end"],["mat-button","","color","primary"]],template:function(a,k){if(a&1&&(t(0,"div",0),c(1,L,30,7,"mat-card",1)(2,A,3,0,"div",2),e()),a&2){let l;n(),p((l=k.user())?1:2,l)}},dependencies:[v,I,S,_,y,b,h,E,g,T,O,P,D,U,x,C],styles:[".status-dot[_ngcontent-%COMP%]{height:8px;width:8px;border-radius:50%;display:inline-block;margin-right:8px}.status-dot.active[_ngcontent-%COMP%]{background-color:#4caf50}.status-dot.inactive[_ngcontent-%COMP%]{background-color:#f44336}.table-container[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;margin-top:20px}"]})};export{w as UserDetail};
