1import{b as Pe}from"./chunk-X6NE6TGM.js";import{a as Fe}from"./chunk-TO3YVGHJ.js";import{a as Re}from"./chunk-I2Y5L2NC.js";import{a as Ne}from"./chunk-JNDJ5ZBA.js";import{a as Ue,b as Ie,c as Ve,d as Me,e as Oe,f as ke}from"./chunk-FZKSC75S.js";import{a as ye}from"./chunk-ATXEZIPJ.js";import"./chunk-VYULK3Y3.js";import{a as Ee}from"./chunk-I2BF4VFZ.js";import{a as he}from"./chunk-RH57MTTG.js";import{f as xe}from"./chunk-B3QJM2RM.js";import"./chunk-M6OZBIKI.js";import"./chunk-XQLXGKEK.js";import{a as ve,b as Se}from"./chunk-IXD6ECVB.js";import"./chunk-RRCBQ55K.js";import"./chunk-DQRROS2B.js";import"./chunk-EONF3GVN.js";import"./chunk-5LMG4TVJ.js";import"./chunk-Z2TVBXTG.js";import"./chunk-ZV7NG4F4.js";import{a as oe,b as ae}from"./chunk-DJ5AJG3T.js";import"./chunk-6EF6RNOO.js";import"./chunk-T3DWPM4S.js";import"./chunk-K6QYQNRN.js";import{a as Te}from"./chunk-QIOURN4K.js";import{a as ge,b as fe}from"./chunk-KYVCMV2E.js";import"./chunk-HWZZ5RQT.js";import"./chunk-ZNR7QNVV.js";import"./chunk-WGAXTYG2.js";import"./chunk-U3Z5BGA7.js";import"./chunk-WF4KZOYP.js";import{a as Ae,b as be}from"./chunk-M6YDMVQ7.js";import{a as re}from"./chunk-EB6TJ75L.js";import"./chunk-QI7CEGT6.js";import{b as Ce}from"./chunk-6ND7557V.js";import{D as de,c as se,g as le,l as pe}from"./chunk-FOJCKIWO.js";import{a as ue}from"./chunk-NBMUSEX4.js";import{a as me,b as _e}from"./chunk-3AIY57KH.js";import"./chunk-AB6CKZTE.js";import{c as we}from"./chunk-H66TAOKK.js";import"./chunk-Z64D265S.js";import"./chunk-K5O3OQFW.js";import"./chunk-2DRXLVRR.js";import"./chunk-RQJZECR4.js";import"./chunk-G3G5OK6Q.js";import"./chunk-AERMLNF3.js";import"./chunk-QHMYZ6SM.js";import"./chunk-PJPLTBJX.js";import"./chunk-DLIVM562.js";import"./chunk-CV2ZWZQE.js";import"./chunk-H4HD3LNW.js";import{ja as ce}from"./chunk-AQEWHUN5.js";import{d as ie,e as ne}from"./chunk-YQZAETCE.js";import{o as J,r as X,s as ee,x as te}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{G as Y,I as Z,p as G,r as H,s as K}from"./chunk-ERUCNOOT.js";import{$b as A,Cc as b,Dc as E,Ec as T,Gc as W,H as R,Hc as Q,Ib as $,Jb as c,L as N,Lb as D,Qb as g,Qc as _,Rc as u,Sc as k,Tb as j,Ub as z,Vb as r,Wb as a,Xb as m,_a as F,da as M,db as o,f as P,fc as f,gc as d,ib as I,kc as q,la as v,ma as S,sa as L,sb as B,tc as p,uc as x,vc as w,wc as O,yb as C}from"./chunk-DBE7WQEG.js";import{g as U}from"./chunk-W7GRJBO5.js";var Le=()=>[20,50,100],Be=i=>({"table-danger":i}),$e=()=>[10,25,50],je=(i,t)=>t.id;function ze(i,t){if(i&1&&(r(0,"span",3),p(1),a()),i&2){let e=d();o(),x(e.wsTotal)}}function qe(i,t){if(i&1&&(r(0,"span",6),p(1),a()),i&2){let e=d();o(),x(e.total)}}function Qe(i,t){if(i&1&&(r(0,"span"),p(1),a()),i&2){let e=d();o(),w("",e.wsTotal," workspaces")}}function Ge(i,t){i&1&&(r(0,"div",16),p(1),_(2,"translate"),a()),i&2&&(o(),w(" ",u(2,1,"ADMIN.USERS.NO_WORKSPACE_FOUND")," "))}function He(i,t){i&1&&(r(0,"th",24),p(1,"Rang"),a())}function Ke(i,t){if(i&1&&(r(0,"td",31),p(1),a()),i&2){let e=d().$index,n=d(2);o(),w(" ",n.rangEtoiles(e)," ")}}function Ye(i,t){i&1&&m(0,"i",38)}function Ze(i,t){i&1&&m(0,"i",44)}function Je(i,t){i&1&&(r(0,"span",14),p(1,"-"),a())}function Xe(i,t){if(i&1&&(r(0,"div",48),p(1),_(2,"number"),r(3,"strong"),p(4,"dont annul\xE9"),a(),p(5),_(6,"number"),a()),i&2){let e,n,l,s=d().$implicit;c("title","Journal des cadeaux : "+((e=s.etoiles)!==null&&e!==void 0?e:0)+" \u2605 re\xE7ues depuis toujours. Les cadeaux ANNUL\xC9S (fraude renvers\xE9e, cadeaux de test repris) restent dans ce journal : le script annuler-cadeaux corrige le portefeuille, il n\u2019efface rien. Seul le solde vaut des euros."),o(),w(" re\xE7u ",u(2,3,(n=s.etoiles)!==null&&n!==void 0?n:0)," \u2605 \xB7 "),o(4),w(" ",u(6,5,((l=s.etoiles)!==null&&l!==void 0?l:0)-((l=s.etoilesSolde)!==null&&l!==void 0?l:0)-((l=s.etoilesVersees)!==null&&l!==void 0?l:0))," \u2605 ")}}function et(i,t){if(i&1&&(r(0,"div",49),p(1),_(2,"number"),a()),i&2){let e,n=d().$implicit;
1o(),w(" d\xE9j\xE0 vers\xE9 ",u(2,1,(e=n.etoilesVersees)!==null&&e!==void 0?e:0)," \u2605 ")}}function tt(i,t){i&1&&(r(0,"div",49),p(1," \u25A6 compte de d\xE9mo "),a())}function it(i,t){if(i&1&&m(0,"img",58),i&2){let e=d();q("alt","Compagnon ",e.modele,""),c("src",e.tenue==null?null:e.tenue.vignette,F)}}function nt(i,t){if(i&1&&p(0),i&2){let e=d();w(" \xB7 niveau ",e.niveau," ")}}function ot(i,t){if(i&1&&(m(0,"br"),r(1,"span",14),p(2),a()),i&2){let e=d();o(2),w("+ ",e.accessoires.join(", "),"")}}function at(i,t){i&1&&(m(0,"br"),r(1,"span",14),p(2,"(masqu\xE9)"),a())}function rt(i,t){if(i&1){let e=A();r(0,"button",57),f("click",function(){v(e);let l=d().$implicit,s=d(2);return S(s.basculerCompagnon(l))}),C(1,it,1,3,"img",58),r(2,"span",59)(3,"strong"),p(4),a(),C(5,nt,1,1)(6,ot,3,1)(7,at,3,0),a()()}if(i&2){let e=t,n=d().$implicit,l=d(2);$("aria-expanded",l.wsCompagnonOuvert===n.id),o(),g(e.tenue!=null&&e.tenue.vignette?1:-1),o(3),x(e.modele||"ancien"),o(),g(e.niveau?5:-1),o(),g(e.accessoires.length?6:-1),o(),g(e.visible?-1:7)}}function st(i,t){i&1&&(r(0,"span",51)(1,"span",60),p(2,"?"),a(),p(3," Aucun compagnon "),a())}function lt(i,t){if(i&1&&m(0,"app-widget-planche-compagnon",63),i&2){let e=d();c("planche",e.tenue.planche)("ficheUrl",e.tenue.fiche)("taille",200)("controles",!0)("titre",e.tenue.slug)}}function pt(i,t){if(i&1&&p(0),i&2){let e=d();O(" (",e.progression.etoiles," / ",e.progression.sur," \xE9toiles vers le suivant) ")}}function dt(i,t){if(i&1&&(p(0),_(1,"localizedDate")),i&2){let e=d();w(" (depuis le ",k(1,1,e.activeLe,"dd/MM/yy"),") ")}}function ct(i,t){if(i&1&&(r(0,"div",65)(1,"strong"),p(2,"En pr\xE9paration\xA0:"),a(),p(3),a()),i&2){let e=d();o(3),O(" la planche ",e.tenue==null||e.tenue.preparation==null?null:e.tenue.preparation.slug," n\u2019est pas encore cuite (",e.tenue==null||e.tenue.preparation==null?null:e.tenue.preparation.etat,") ; on montre le compagnon nu. ")}}function mt(i,t){i&1&&(r(0,"div",65),p(1," Masqu\xE9 par le diffuseur\xA0: les spectateurs ne le voient pas. "),a())}function _t(i,t){i&1&&(r(0,"div",65),p(1," Ancien compagnon (cadeau) : pas de planche anim\xE9e. "),a())}function ut(i,t){if(i&1&&(r(0,"tr")(1,"td",61)(2,"div",62),C(3,lt,1,5,"app-widget-planche-compagnon",63),r(4,"div",40)(5,"div",64),p(6),a(),r(7,"div"),p(8," Niveau "),r(9,"strong"),p(10),a(),C(11,pt,1,2),a(),r(12,"div"),p(13," \xC9toiles depuis l\u2019activation\xA0: "),r(14,"strong"),p(15),_(16,"number"),a(),C(17,dt,2,4),a(),r(18,"div"),p(19," \xC9toiles re\xE7ues au total\xA0: "),r(20,"strong"),p(21),_(22,"number"),a()(),r(23,"div"),p(24),a(),C(25,ct,4,2,"div",65)(26,mt,2,0,"div",65)(27,_t,2,0,"div",65),a()()()()),i&2){let e,n,l,s=t,y=d().$implicit;o(3),g(s.tenue?3:-1),o(3),O(" ",y.name," \xB7 ",s.modele||"ancien compagnon"," "),o(4),x((e=s.niveau)!==null&&e!==void 0?e:"\u2013"),o(),g(s.progression?11:-1),o(4),x(u(16,12,(n=s.etoilesNiveau)!==null&&n!==void 0?n:0)),o(2),g(s.activeLe?17:-1),o(4),x(u(22,14,(l=y.etoiles)!==null&&l!==void 0?l:0)),o(3),w(" Accessoires\xA0: ",s.accessoires.length?s.accessoires.join(", "):"aucun"," "),o(),g(s.tenue!=null&&s.tenue.preparation?25:-1),o(),g(s.visible?-1:26),o(),g(s.modele?-1:27)}}function Ct(i,t){if(i&1){let e=A();r(0,"tr"),C(1,Ke,2,1,"td",31),r(2,"td",32)(3,"span",33),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.showWorkspaceInfo(l))}),m(4,"app-widget-workspace-avatar",34),a()(),r(5,"td",35)(6,"div",36)(7,"span",37),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.showWorkspaceInfo(l))}),p(8),a(),C(9,Ye,1,0,"i",38),a()(),r(10,"td",39)(11,"code",40),p(12),a()(),r(13,"td",35),m(14,"p-tag",41),a(),r(15,"td",35),m(16,"p-tag",41),a(),r(17,"td",42)(18,"span",43),p(19),a()(),r(20,"td",42),C(21,Ze,1,0,"i",44)(22,Je,2,0,"span",14),a(),r(23,"td",45)(24,"span",46),p(25),_(26,"number"),a(),r(27,"span",47),p(28," \u2605"),a(),C(29,Xe,7,7,"div",48)(30,et,3,3,"div",49)(31,tt,2,0,"div",49),a(),r(32,"td",35),C(33,rt,8,6,"button",50)(34,st,4,0,"span",51),a(),r(35,"td",39),p(36),_(37,"localizedDate"),a(),r(38,"td",52)(39,"button",53),_(40,"translate"),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.showWorkspaceInfo(l))}),m(41,"i",54),a(),r(42,"button",55),_(43,"translate"),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.openContactDialog(l.id,l.name))}),m(44,"i",56),a()()(),C(45,ut,28,16,"tr")}if(i&2){let e,n,l,s,y,h=t.$implicit,We=t.$index,V=d(2);o(),g(V.rangEtoiles(We)!==null?1:-1),o(3),c("workspace",h)("size",32),o(4),x(h.name),o(),g(h.isVerified?9:-1),o(3),x(h.slug),o(2),c("value",h.type==="team"?"Team":"Personnel")("severity",V.getTypeSeverity(h.type)),o(2),c("value",V.getWorkspaceStatusLabel(h.status))("severity",V.getWorkspaceStatusSeverity(h.status)),o(3),x(h.followerCount||0),o(2),g(h.shopEnabled?21:22),o(4),x(u(26,21,(e=h.etoilesSolde)!==null&&e!==void 0?e:0)),o(4),g(((n=h.etoiles)!==null&&n!==void 0?n:0)>((n=h.etoilesSolde)!==null&&n!==void 0?n:0)+((n=h.etoilesVersees)!==null&&n!==void 0?n:0)?29:-1),o(),g(((l=h.etoilesVersees)!==null&&l!==void 0?l:0)>0?30:-1),o(),g(h.compteDemo?31:-1),o(2),g((s=h.compagnon)?33:34,s),o(3),w(" ",k(37,23,h.createdAt,"dd/MM/yy")," "),o(3),c("pTooltip",u(40,26,"ADMIN.USERS.VIEW_DETAILS")),o(3),c("pTooltip",u(43,28,"ADMIN.USERS.CONTACT")),o(3),g((y=V.wsCompagnonOuvert===h.id&&h.
1compagnon)?45:-1,y)}}function gt(i,t){if(i&1){let e=A();r(0,"p-paginator",66),f("onPageChange",function(l){v(e);let s=d(2);return S(s.onWsPageChange(l))}),a()}if(i&2){let e=d(2);c("first",e.wsFirst)("rows",e.wsLimit)("totalRecords",e.wsTotal)("rowsPerPageOptions",W(4,Le))}}function ft(i,t){if(i&1&&(r(0,"div",21)(1,"table",22)(2,"thead",23)(3,"tr"),C(4,He,2,0,"th",24),m(5,"th",25),r(6,"th"),p(7),_(8,"translate"),a(),r(9,"th"),p(10,"Slug"),a(),r(11,"th"),p(12),_(13,"translate"),a(),r(14,"th"),p(15),_(16,"translate"),a(),r(17,"th",26),m(18,"i",27),a(),r(19,"th",26),m(20,"i",28),a(),r(21,"th",24),p(22,"\xC9toiles (solde)"),a(),r(23,"th"),p(24,"Compagnon"),a(),r(25,"th"),p(26),_(27,"translate"),a(),r(28,"th",29),p(29),_(30,"translate"),a()()(),r(31,"tbody"),j(32,Ct,46,30,null,null,je),a()()(),C(34,gt,1,5,"p-paginator",30)),i&2){let e=d();D("opacity-50",e.wsLoading),o(4),g(e.rangEtoiles(0)!==null?4:-1),o(3),x(u(8,9,"ADMIN.USERS.WS_NAME")),o(5),x(u(13,11,"ADMIN.USERS.WS_TYPE")),o(3),w(" ",u(16,13,"ADMIN.USERS.WS_STATUS")," "),o(11),w(" ",u(27,15,"ADMIN.USERS.CREATED_AT")," "),o(3),w(" ",u(30,17,"ADMIN.USERS.ACTIONS")," "),o(3),z(e.workspaces),o(2),g(e.wsTotal>e.wsLimit?34:-1)}}function wt(i,t){if(i&1){let e=A();r(0,"button",67),f("click",function(){v(e);let l=d();return S(l.onResetFilters())}),m(1,"i",68),p(2),_(3,"translate"),a()}i&2&&(o(2),w(" ",u(3,1,"COMMON.RESET_FILTERS")," "))}function ht(i,t){i&1&&(r(0,"a",19),m(1,"i",69),p(2," G\xE9rer les account managers "),a())}function vt(i,t){if(i&1&&(r(0,"span"),p(1),_(2,"translate"),a()),i&2){let e=d();o(),O("",e.total," ",u(2,2,"ADMIN.USERS.USER_COUNT"),"")}}function St(i,t){i&1&&(r(0,"span"),p(1),_(2,"translate"),a()),i&2&&(o(),x(u(2,1,"ADMIN.USERS.TRY_ANOTHER_SEARCH")))}function xt(i,t){i&1&&(r(0,"span"),p(1),_(2,"translate"),a()),i&2&&(o(),x(u(2,1,"ADMIN.USERS.NO_USER_IN_DB")))}function At(i,t){if(i&1&&(r(0,"div",16)(1,"b"),p(2),_(3,"translate"),a(),m(4,"br"),C(5,St,3,3,"span")(6,xt,3,3,"span"),a()),i&2){let e=d();o(2),x(u(3,2,"ADMIN.USERS.NO_USER_FOUND")),o(3),g(e.searchTerm?5:6)}}function bt(i,t){i&1&&m(0,"i",82)}function Et(i,t){i&1&&m(0,"i",83)}function Tt(i,t){i&1&&m(0,"i",84)}function yt(i,t){i&1&&m(0,"i",82)}function Ut(i,t){i&1&&m(0,"i",83)}function It(i,t){i&1&&m(0,"i",84)}function Vt(i,t){i&1&&m(0,"i",82)}function Mt(i,t){i&1&&m(0,"i",83)}function Ot(i,t){i&1&&m(0,"i",84)}function kt(i,t){if(i&1){let e=A();r(0,"img",111),f("error",function(){v(e);let l=d().$implicit;return S(l.avatarUrl=void 0)}),a()}if(i&2){let e=d().$implicit,n=d(2);c("src",e.avatarUrl,F)("alt",n.getInitial(e))}}function Pt(i,t){if(i&1&&(r(0,"span",87),p(1),a()),i&2){let e=d().$implicit,n=d(2);o(),x(n.getInitial(e))}}function Rt(i,t){if(i&1){let e=A();r(0,"span",112),f("click",function(){v(e);let l=d().$implicit,s=d(2);return S(s.showUserInfo(l))}),p(1),a()}if(i&2){let e=d().$implicit;c("pTooltip",e.email),o(),x(e.email)}}function Nt(i,t){if(i&1){let e=A();r(0,"span",113),f("click",function(){v(e);let l=d().$implicit,s=d(2);return S(s.showUserInfo(l))}),p(1),a(),r(2,"span",114),p(3),_(4,"translate"),a()}if(i&2){let e=d().$implicit;c("pTooltip",e.emailChange),o(),x(e.emailChange),o(2),w(" ",u(4,3,"ADMIN.USERS.UNVERIFIED")," ")}}function Ft(i,t){i&1&&(r(0,"span",14),p(1,"-"),a())}function Dt(i,t){if(i&1&&(r(0,"div",115),m(1,"i",116),p(2),a()),i&2){let e=d().$implicit;o(2),w("",e.googleEmail," ")}}function Wt(i,t){if(i&1){let e=A();r(0,"span",33),f("click",function(){v(e);let l=d().$implicit,s=d(2);return S(s.showUserInfo(l))}),p(1),a()}if(i&2){let e=d().$implicit,n=d(2);o(),x(n.getFullName(e))}}function Lt(i,t){i&1&&(r(0,"span",14),p(1,"-"),a())}function Bt(i,t){if(i&1&&m(0,"p-tag",41),i&2){let e=d().$implicit,n=d(2);c("value",n.getRoleLabel(e.role))("severity",n.getRoleSeverity(e.role))}}function $t(i,t){if(i&1&&m(0,"p-tag",41),i&2){let e=t.$implicit,n=d(3);c("value",e.label)("severity",n.getRoleSeverity(e.value))}}function jt(i,t){if(i&1&&m(0,"p-tag",41),i&2){let e=d().$implicit,n=d(2);c("value",n.getStatusLabel(e.status))("severity",n.getStatusSeverity(e.status))}}function zt(i,t){if(i&1&&m(0,"p-tag",41),i&2){let e=t.$implicit,n=d(3);c("value",e.label)("severity",n.getStatusSeverity(e.value))}}function qt(i,t){if(i&1&&(r(0,"span",104),_(1,"localizedDate"),p(2),a()),i&2){let e=d().$implicit,n=d(2);c("pTooltip",k(1,2,e.lastActivityAt,"dd/MM/yyyy HH:mm")||""),o(2),x(n.getRelativeTime(e.lastActivityAt))}}function Qt(i,t){i&1&&(r(0,"span",14),p(1,"-"),a())}function Gt(i,t){if(i&1){let e=A();r(0,"button",117),_(1,"translate"),f("click",function(){v(e);let l=d().$implicit,s=d(2);return S(s.confirmBlock(l))}),m(2,"i",118),a()}i&2&&c("pTooltip",u(1,1,"ADMIN.USERS.BLOCK"))}function Ht(i,t){if(i&1){let e=A();r(0,"button",119),_(1,"translate"),f("click",function(){v(e);let l=d().$implicit,s=d(2);return S(s.unblockUser(l))}),m(2,"i",120),a()}i&2&&c("pTooltip",u(1,1,"ADMIN.USERS.UNBLOCK"))}function Kt(i,t){if(i&1){let e=A();r(0,"tr",85)(1,"td",32)(2,"span",33),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.showUserInfo(l))}
1),C(3,kt,1,2,"img",86)(4,Pt,2,1,"span",87),a()(),r(5,"td",88)(6,"div",89),C(7,Rt,2,2,"span",90)(8,Nt,5,5)(9,Ft,2,0,"span",14),a(),C(10,Dt,3,1,"div",91),a(),r(11,"td",92)(12,"div",93),C(13,Wt,2,1,"span",94)(14,Lt,2,0,"span",95),a()(),r(15,"td",96)(16,"p-select",97),T("ngModelChange",function(l){let s=v(e).$implicit;return E(s.role,l)||(s.role=l),S(l)}),f("onChange",function(l){let s=v(e).$implicit,y=d(2);return S(y.updateRole(s,l.value))}),C(17,Bt,1,2,"ng-template",98)(18,$t,1,2,"ng-template",99),a()(),r(19,"td",100)(20,"p-select",97),T("ngModelChange",function(l){let s=v(e).$implicit;return E(s.status,l)||(s.status=l),S(l)}),f("onChange",function(l){let s=v(e).$implicit,y=d(2);return S(y.updateStatus(s,l.value))}),C(21,jt,1,2,"ng-template",98)(22,zt,1,2,"ng-template",99),a()(),r(23,"td",101)(24,"span",43),p(25),a()(),r(26,"td",102),p(27),_(28,"localizedDate"),a(),r(29,"td",103),C(30,qt,3,5,"span",104)(31,Qt,2,0,"span",14),a(),r(32,"td",105)(33,"button",106),_(34,"translate"),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.showUserInfo(l))}),m(35,"i",54),a(),C(36,Gt,3,3,"button",107)(37,Ht,3,3,"button",108),r(38,"button",109),_(39,"translate"),f("click",function(){let l=v(e).$implicit,s=d(2);return S(s.confirmDelete(l))}),m(40,"i",110),a()()()}if(i&2){let e=t.$implicit,n=d(2);c("ngClass",Q(25,Be,e.status===n.IUserStatus.BLOQUED)),o(3),g(e.avatarUrl?3:4),o(4),g(e.email?7:e.emailChange?8:9),o(3),c("ngIf",e.googleEmail&&e.googleEmail!==e.email),o(2),c("pTooltip",n.getFullName(e)),o(),c("ngIf",n.getFullName(e)),o(),c("ngIf",!n.getFullName(e)),o(2),c("options",n.roleEditOptions),b("ngModel",e.role),o(4),c("options",n.statusEditOptions),b("ngModel",e.status),o(5),x(e.workspaceCount||0),o(2),w(" ",k(28,18,e.createdAt,"dd/MM/yy")," "),o(3),g(e.lastActivityAt?30:31),o(3),c("pTooltip",u(34,21,"ADMIN.USERS.VIEW_DETAILS")),o(3),c("ngIf",e.status!==n.IUserStatus.BLOQUED),o(),c("ngIf",e.status===n.IUserStatus.BLOQUED),o(),c("pTooltip",u(39,23,"ADMIN.USERS.DELETE"))}}function Yt(i,t){if(i&1){let e=A();r(0,"p-paginator",66),f("onPageChange",function(l){v(e);let s=d(2);return S(s.onPageChange(l))}),a()}if(i&2){let e=d(2);c("first",e.first)("rows",e.limit)("totalRecords",e.total)("rowsPerPageOptions",W(4,$e))}}function Zt(i,t){if(i&1){let e=A();r(0,"div",21)(1,"table",22)(2,"thead",23)(3,"tr"),m(4,"th",25),r(5,"th",70),f("click",function(){v(e);let l=d();return S(l.onSort("email"))}),p(6),_(7,"translate"),C(8,bt,1,0,"i",71)(9,Et,1,0,"i",72)(10,Tt,1,0,"i",73),a(),r(11,"th",74),p(12),_(13,"translate"),a(),r(14,"th",75),p(15),_(16,"translate"),a(),r(17,"th",76),p(18),_(19,"translate"),a(),r(20,"th",77),m(21,"i",78),a(),r(22,"th",79),f("click",function(){v(e);let l=d();return S(l.onSort("createdAt"))}),p(23),_(24,"translate"),C(25,yt,1,0,"i",71)(26,Ut,1,0,"i",72)(27,It,1,0,"i",73),a(),r(28,"th",80),f("click",function(){v(e);let l=d();return S(l.onSort("lastActivityAt"))}),p(29),_(30,"translate"),C(31,Vt,1,0,"i",71)(32,Mt,1,0,"i",72)(33,Ot,1,0,"i",73),a(),r(34,"th",29),p(35),_(36,"translate"),a()()(),r(37,"tbody"),C(38,Kt,41,27,"tr",81),a()()(),C(39,Yt,1,5,"p-paginator",30)}if(i&2){let e=d();D("opacity-50",e.loading),o(6),w(" ",u(7,20,"ADMIN.USERS.EMAIL")," "),o(2),c("ngIf",e.sortField!=="email"),o(),c("ngIf",e.sortField==="email"&&e.sortOrder==="ASC"),o(),c("ngIf",e.sortField==="email"&&e.sortOrder==="DESC"),o(2),w(" ",u(13,22,"ADMIN.USERS.NAME")," "),o(3),w(" ",u(16,24,"ADMIN.USERS.ROLE")," "),o(3),w(" ",u(19,26,"ADMIN.USERS.STATUS")," "),o(5),w(" ",u(24,28,"ADMIN.USERS.CREATED_AT")," "),o(2),c("ngIf",e.sortField!=="createdAt"),o(),c("ngIf",e.sortField==="createdAt"&&e.sortOrder==="ASC"),o(),c("ngIf",e.sortField==="createdAt"&&e.sortOrder==="DESC"),o(2),w(" ",u(30,30,"ADMIN.USERS.ACTIVITY")," "),o(2),c("ngIf",e.sortField!=="lastActivityAt"),o(),c("ngIf",e.sortField==="lastActivityAt"&&e.sortOrder==="ASC"),o(),c("ngIf",e.sortField==="lastActivityAt"&&e.sortOrder==="DESC"),o(2),w(" ",u(36,32,"ADMIN.USERS.ACTIONS")," "),o(3),c("ngForOf",e.users),o(),g(e.total>e.limit?39:-1)}}var De=class i{constructor(t,e,n,l,s){this.adminUsersService=t;this.adminWorkspacesService=e;this.adminTicketsService=n;this.toastService=l;this.confirmService=s}router=M(X);route=M(J);qf=M(Ee);destroyRef=M(L);filters;activeTab="workspaces";wsLoaded=!1;usersLoaded=!1;workspaces=[];wsTotal=0;wsPage=1;wsLimit=20;wsFirst=0;wsLoading=!1;wsSearchTerm="";wsSelectedType=null;wsSelectedStatus=null;wsSortOption="newest";
1wsSearchSubject=new P;wsTypeOptions=[{label:"Tous les types",value:null},{label:"Personnel",value:"personal"},{label:"Team",value:"team"}];wsStatusOptions=[{label:"Tous les statuts",value:null},{label:"Actif",value:"active"},{label:"Suspendu",value:"suspended"},{label:"Bloqu\xE9",value:"blocked"}];wsSortOptions=[{label:"Plus r\xE9cents",value:"newest"},{label:"Plus anciens",value:"oldest"},{label:"Abonn\xE9s",value:"followers"},{label:"Nom (A-Z)",value:"name"},{label:"Solde d'\xE9toiles (valeur r\xE9elle)",value:"stars_balance"},{label:"\xC9toiles re\xE7ues (total, annulations comprises)",value:"stars"},{label:"\xC9toiles du compagnon (niveau)",value:"companion_stars"}];wsCompanion=null;wsCompanionOptions=[{label:"Avec ou sans compagnon",value:null},{label:"Avec compagnon",value:"with"},{label:"Sans compagnon",value:"without"}];wsMinStars=null;wsMinStarsOptions=[{label:"Toutes les \xE9toiles",value:null},{label:"\u2265 1 \xE9toile",value:1},{label:"\u2265 100 \xE9toiles",value:100},{label:"\u2265 1 000 \xE9toiles",value:1e3},{label:"\u2265 10 000 \xE9toiles",value:1e4},{label:"\u2265 100 000 \xE9toiles",value:1e5}];wsCompagnonOuvert=null;users=[];total=0;page=1;limit=10;first=0;loading=!1;error=null;searchTerm="";selectedRole=null;selectedStatus=null;sortField="createdAt";sortOrder="DESC";roleOptions=[{label:"Tous les r\xF4les",value:null},{label:"Admin",value:"admin"},{label:"Pro",value:"pro"},{label:"Customer",value:"customer"},{label:"Account manager",value:"account_manager"}];statusOptions=[{label:"Tous les statuts",value:null},{label:"Actif",value:"active"},{label:"En attente de v\xE9rification",value:"pending email verification"},{label:"Bloqu\xE9",value:"bloqued"}];roleEditOptions=[{label:"Admin",value:"admin"},{label:"Pro",value:"pro"},{label:"Customer",value:"customer"},{label:"Account manager",value:"account_manager"}];statusEditOptions=[{label:"Actif",value:"active"},{label:"En attente",value:"pending email verification"},{label:"Bloqu\xE9",value:"bloqued"}];sortOptions=[{label:"Plus r\xE9cents",value:"createdAt,DESC"},{label:"Plus anciens",value:"createdAt,ASC"},{label:"Email (A-Z)",value:"email,ASC"},{label:"Email (Z-A)",value:"email,DESC"},{label:"Activit\xE9 r\xE9cente",value:"lastActivityAt,DESC"},{label:"Activit\xE9 ancienne",value:"lastActivityAt,ASC"}];selectedSortOption="createdAt,DESC";searchSubject=new P;IUserRole=oe;IUserStatus=ae;ngOnInit(){this.filters=this.qf.init(this.route,[{key:"search",default:""},{key:"role",default:""},{key:"status",default:""},{key:"sort",default:"createdAt,DESC"},{key:"page",default:1,type:"number"},{key:"limit",default:10,type:"number"}],()=>this.onFiltersChanged(),this.destroyRef),this.syncFromFilters(),this.loadWorkspaces(),this.searchSubject.pipe(R(400),N()).subscribe(()=>{this.filters.set({search:this.searchTerm,page:1})}),this.wsSearchSubject.pipe(R(400),N()).subscribe(()=>{this.wsPage=1,this.loadWorkspaces()})}onTabChange(t){this.activeTab=String(t),t==="workspaces"&&!this.wsLoaded&&this.loadWorkspaces(),t==="users"&&!this.usersLoaded&&this.loadUsers()}loadWorkspaces(){return U(this,null,function*(){this.wsLoading=!0;try{let t={page:this.wsPage,limit:this.wsLimit};this.wsSearchTerm&&(t.search=this.wsSearchTerm),this.wsSelectedType&&(t.type=this.wsSelectedType),this.wsSelectedStatus&&(t.status=this.wsSelectedStatus),this.wsSortOption&&(t.sort=this.wsSortOption),this.wsMinStars&&(t.minStars=this.wsMinStars),this.wsCompanion&&(t.companion=this.wsCompanion);let e=yield this.adminWorkspacesService.getWorkspaces(t);this.workspaces=e.items,this.wsTotal=e.total,this.wsLoaded=!0}catch(t){console.error("[loadWorkspaces]",t)}finally{this.wsLoading=!1}})}onWsSearch(){this.wsSearchSubject.next(this.wsSearchTerm)}onWsFilterChange(){this.wsPage=1,this.loadWorkspaces()}onWsPageChange(t){this.wsFirst=t.first??0,this.wsPage=(t.first??0)/(t.rows??this.wsLimit)+1,this.wsLimit=t.rows??this.wsLimit,this.loadWorkspaces()}basculerCompagnon(t){this.wsCompagnonOuvert=this.wsCompagnonOuvert===t.id?null:t.id}rangEtoiles(t){return this.wsSortOption==="stars"||this.wsSortOption==="stars_balance"||this.wsSortOption==="companion_stars"?(this.wsPage-1)*this.wsLimit+t+1:null}showWorkspaceInfo(t){this.router.navigate(["/admin/workspaces",t.id])}getWorkspaceStatusSeverity(t){switch(t){case"blocked":return"danger";case"suspended":return"warn";case"active":default:return"success"}}getWorkspaceStatusLabel(t){switch(t){case"blocked":return"Bloqu\xE9";case"suspended":return"Suspendu";case"active":default:return"Actif"}}getTypeSeverity(t){return t==="team"?"info":"secondary"}loadUsers(){return U(this,null,function*(){this.loading=!0,this.error=null;try{let t={page:this.page,limit:this.limit,sort:`${this.sortField},${this.sortOrder}`};this.searchTerm&&(t.search=this.searchTerm),this.selectedRole&&(t.role=this.selectedRole),this.selectedStatus&&(t.status=this.selectedStatus);let e=yield this.adminUsersService.getUsers(t);this.users=e.data,this.total=e.total,this.usersLoaded=!0}catch(t){this.error="Erreur lors du chargement des utilisateurs",console.error(t)}finally{this.loading=!1}})}onSearch(){this.searchSubject.next(this.searchTerm)}onFilterChange(){this.filters.set({role:this.selectedRole||"",status:this.selectedStatus||"",page:1})}onSortOptionChange(){this.filters.set({sort:this.selectedSortOption,page:1})}onSort(t){this.sortField===t?this.sortOrder=this.sortOrder==="ASC"?"DESC":"ASC":(this.sortField=t,this.sortOrder="DESC"),this.selectedSortOption=`${this.sortField},${this.sortOrder}`,this.filters.set({sort:this.selectedSortOption,page:1})}onPageChange(t){this.first=t.first??0,this.page=(t.first??0)/(t.rows??this.limit)+1,this.limit=t.rows??this.limit,this.filters.set({page:this.page,limit:this.limit})}syncFromFilters(){let t=this.filters.values();
1this.searchTerm=t.search,this.selectedRole=t.role||null,this.selectedStatus=t.status||null,this.selectedSortOption=t.sort;let[e,n]=this.selectedSortOption.split(",");this.sortField=e,this.sortOrder=n,this.page=t.page,this.limit=t.limit,this.first=(this.page-1)*this.limit}onFiltersChanged(){this.syncFromFilters(),this.loadUsers()}onResetFilters(){this.filters.reset()}updateRole(t,e){return U(this,null,function*(){if(!(t.role==="account_manager"&&e!=="account_manager"&&!(yield this.confirmService.confirm({message:`${t.email} est account manager. Changer son r\xF4le rend AUSSIT\xD4T tous ses comptes accompagn\xE9s au vivier. Pour les confier \xE0 quelqu\u2019un, passez d\u2019abord par sa fiche account manager.`,header:"Retrait du r\xF4le account manager",severity:"warn"}))))try{let l=yield this.adminUsersService.updateUserRole(t.id,e);t.role=e;let s=l?.releasedWorkspaces??0;this.toastService.add({severity:"success",detail:s?`R\xF4le mis \xE0 jour pour ${t.email}. ${s} compte(s) rendus au vivier.`:`R\xF4le mis \xE0 jour pour ${t.email}`})}catch{this.toastService.add({severity:"error",detail:"Erreur lors de la mise \xE0 jour du r\xF4le"})}})}updateStatus(t,e){return U(this,null,function*(){try{yield this.adminUsersService.updateUserStatus(t.id,e),t.status=e,this.toastService.add({severity:"success",detail:`Statut mis \xE0 jour pour ${t.email}`})}catch{this.toastService.add({severity:"error",detail:"Erreur lors de la mise \xE0 jour du statut"})}})}confirmDelete(t){return U(this,null,function*(){(yield this.confirmService.confirm({message:`\xCAtes-vous s\xFBr de vouloir supprimer ${t.email||t.emailChange} ?`,header:"Suppression",severity:"danger",acceptLabel:"Supprimer",rejectLabel:"Annuler"}))&&(yield this.deleteUser(t))})}deleteUser(t){return U(this,null,function*(){try{yield this.adminUsersService.deleteUser(t.id),this.users=this.users.filter(e=>e.id!==t.id),this.total--,this.toastService.add({severity:"success",detail:`Utilisateur ${t.email} supprim\xE9`})}catch{this.toastService.add({severity:"error",detail:"Erreur lors de la suppression"})}})}getRoleSeverity(t){switch(t){case"admin":return"danger";case"pro":return"success";case"customer":return"info";case"account_manager":return"warn";default:return"secondary"}}getStatusSeverity(t){switch(t){case"active":return"success";case"pending email verification":return"warn";case"bloqued":return"danger";default:return"secondary"}}getFullName(t){return t.firstName||t.lastName?`${t.firstName||""} ${t.lastName||""}`.trim():""}getInitial(t){return t.firstName?t.firstName.charAt(0).toUpperCase():t.email?t.email.charAt(0).toUpperCase():"?"}getStatusLabel(t){switch(t){case"active":return"Actif";case"pending email verification":return"En attente";case"bloqued":return"Bloqu\xE9";default:return t||"Inconnu"}}getRoleLabel(t){switch(t){case"admin":return"Admin";case"pro":return"Pro";case"customer":return"Customer";case"account_manager":return"Account manager";default:return t||"Inconnu"}}getRelativeTime(t){let e=new Date,n=new Date(t),l=e.getTime()-n.getTime(),s=Math.floor(l/6e4),y=Math.floor(l/36e5),h=Math.floor(l/864e5);return s<1?"\xC0 l'instant":s<60?`${s}min`:y<24?`${y}h`:h<7?`${h}j`:h<30?`${Math.floor(h/7)}sem`:`${Math.floor(h/30)}mois`}confirmBlock(t){return U(this,null,function*(){(yield this.confirmService.confirm({message:`\xCAtes-vous s\xFBr de vouloir bloquer ${t.email||t.emailChange} ?`,header:"Blocage",severity:"warn",acceptLabel:"Bloquer",rejectLabel:"Annuler"}))&&(yield this.blockUser(t))})}blockUser(t){return U(this,null,function*(){try{yield this.adminUsersService.updateUserStatus(t.id,"bloqued"),t.status="bloqued",this.toastService.add({severity:"success",detail:`Utilisateur ${t.email} bloqu\xE9`})}catch{this.toastService.add({severity:"error",detail:"Erreur lors du blocage"})}})}unblockUser(t){return U(this,null,function*(){try{yield this.adminUsersService.updateUserStatus(t.id,"active"),t.status="active",this.toastService.add({severity:"success",detail:`Utilisateur ${t.email} d\xE9bloqu\xE9`})}catch{this.toastService.add({severity:"error",detail:"Erreur lors du d\xE9blocage"})}})}showUserInfo(t){this.router.navigate(["/admin/users",t.id])}openContactDialog(t,e){this.router.navigate(["/admin/tickets/new"],{queryParams:{workspace:t,name:e}})}static \u0275fac=function(e){return new(e||i)(I(Re),I(Ne),I(Fe),I(re),I(Te))};static \u0275cmp=B({type:i,selectors:[["app-view-admin-users"]],decls:51,vars:50,consts:[[3,"valueChange","value"],["value","workspaces"],[1,"pi","pi-th-large","me-2"],[1,"ms-2","badge","bg-primary"],["value","users"],[1,"pi","pi-users","me-2"],[1,"ms-2","badge","bg-secondary"],[1,"d-flex","justify-content-between","align-items-center","mb-3","gap-3","flex-wrap","mt-3"],[1,"input-group",2,"max-width","300px"],[1,"input-group-text","bg-white","border-end-0"],[1,"pi","pi-search","text-muted"],["type","text",1,"form-control","border-start-0","shadow-none",3,"ngModelChange","placeholder","ngModel"],[1,"d-flex","gap-2","flex-wrap"],["styleClass","filter-select",3,"ngModelChange","onChange","options","ngModel"],[1,"text-muted"],[3,"loading"],[1,"alert","alert-info"],["styleClass","filter-select",3,"ngModelChange","onChange","options","ngModel","placeholder"],[1,"btn","btn-sm","btn-outline-secondary","d-flex","align-items-center","gap-1"],["routerLink","/admin/account-managers",1,"btn","btn-sm","btn-primary"],[3,"loading","loadingError"],[1,"table-responsive","border","rounded"],[1,"table","table-hover","mb-0","admin-users-table"],[1,"table-light"],[1,"text-end"],[1,"col-avatar"],[1,"text-center"],["pTooltip","Abonn\xE9s",1,"pi","pi-users"],["pTooltip","Boutique",1,"pi","pi-shopping-bag"],[1,"col-actions","text-end"],[1,"d-block","border","border-top-0","rounded-bottom","bg-white",3,"first","rows","totalRecords","rowsPerPageOptions"],[1,"align-middle","text-end","fw-bold"],[1,"align-middle","col-avatar"],[1,"user-link",3,"click"],[3,"workspace","size"],[1,"align-middle"],[1,"d-flex","align-items-center","gap-1"],[1,"user-link","fw-medium",3,"click"],[1,"pi","pi-verified","text-primary",2,"font-size","0.7rem"],[1,"align-middle","text-muted"],[1,"small"],[3,"value","severity"],[1,"align-middle","text-center"],[1,"badge","bg-light","text-dark"],[1,"pi","pi-check-circle","text-success",2,"font-size","0.8rem"],[1,"align-middle","text-end"],[1,"fw-medium"],[1,"text-muted","small"],[1,"small","text-muted",3,"title"],[1,"small","text-muted"],["type","button","title","Voir le compagnon anim\xE9",1,"btn","btn-sm","btn-light","d-flex","align-items-center","gap-2","text-start"],[1,"d-inline-flex","align-items-center","gap-2","text-muted","small"],[1,"align-middle","col-actions","text-end"],["tooltipPosition","left",1,"btn","btn-sm","text-primary",3,"click","pTooltip"],[1,"pi","pi-eye"],["tooltipPosition","left",1,"btn","btn-sm","text-info","ms-1",3,"click","pTooltip"],[1,"pi","pi-envelope"],["type","button","title","Voir le compagnon anim\xE9",1,"btn","btn-sm","btn-light","d-flex","align-items-center","gap-2","text-start",3,"click"],["loading","lazy",2,"height","36px",3,"src","alt"],[1,"small","lh-sm"],["aria-hidden","true",1,"d-inline-flex","align-items-center","justify-content-center","rounded-circle",2,"width","32px","height","32px","border",`2px dashed 2 currentColor`],["colspan","12",1,"bg-light"],[1,"d-flex","flex-wrap","gap-4","align-items-start","p-2"],[3,"planche","ficheUrl","taille","controles","titre"],[1,"fw-bold","mb-1"],[1,"mt-1"],[1,"d-block","border","border-top-0","rounded-bottom","bg-white",3,"onPageChange","first","rows","totalRecords","rowsPerPageOptions"],[1,"btn","btn-sm","btn-outline-secondary","d-flex","align-items-center","gap-1",3,"click"],[1,"pi","pi-filter-slash"],[1,"pi","pi-briefcase","me-1"],[1,"col-email","sortable",3,"click"],["class","pi pi-sort-alt ms-1",4,"ngIf"],["class","pi pi-sort-amount-up ms-1",4,"ngIf"],["class","pi pi-sort-amount-down ms-1",4,"ngIf"],[1,"col-name"],[1,"col-role"],[1,"col-status"],["pTooltip","Workspaces","tooltipPosition","top",1,"col-ws"],[1,"pi","pi-th-large"],[1,"col-date","sortable",3,"click"],[1,"col-activity","sortable",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"pi","pi-sort-alt","ms-1"],[1,"pi","pi-sort-amount-up","ms-1"],[1,"pi","pi-sort-amount-down","ms-1"],[3,"ngClass"],["width","32","height","32","referrerpolicy","no-referrer",1,"rounded-circle","user-avatar",3,"src","alt"],[1,"user-avatar-initial"],[1,"align-middle","col-email"],[1,"text-truncate"],["tooltipPosition","top",1,"user-link","fw-medium",3,"pTooltip"],["class","small text-muted text-truncate",4,"ngIf"],[1,"align-middle","col-name"],["tooltipPosition","top",1,"text-truncate",3,"pTooltip"],["class","user-link",3,"click",4,"ngIf"],["class","text-muted",4,"ngIf"],[1,"align-middle","col-role"],["appendTo","body","styleClass","compact-select",3,"ngModelChange","onChange","options","ngModel"],["pTemplate","selectedItem"],["pTemplate","item"],[1,"align-middle","col-status"],[1,"align-middle","col-ws","text-center"],[1,"align-middle","col-date","text-muted"],[1,"align-middle","col-activity","text-muted"],["tooltipPosition","top",3,"pTooltip"],[1,"align-middle","col-actions","text-end","text-nowrap"],["tooltipPosition","top",1,"btn","btn-sm","text-primary","me-1",3,"click","pTooltip"],["class","btn btn-sm text-warning me-1","tooltipPosition","left",3,"pTooltip","click",4,"ngIf"],["class","btn btn-sm text-success me-1","tooltipPosition","left",3,"pTooltip","click",4,"ngIf"],["tooltipPosition","left",1,"btn","btn-sm","text-danger",3,"click","pTooltip"],[1,"pi","pi-trash"],["width","32","height","32","referrerpolicy","no-referrer",1,"rounded-circle","user-avatar",3,"error","src","alt"],["tooltipPosition","top",1,"user-link","fw-medium",3,"click","pTooltip"],["tooltipPosition","top",1,"user-link","fw-medium","text-muted",3,"click","pTooltip"],[1,"badge","bg-warning","text-dark","ms-1",2,"font-size","0.6rem"],[1,"small","text-muted","text-truncate"],[1,"pi","pi-google","me-1",2,"font-size","10px"],["tooltipPosition","left",1,"btn","btn-sm","text-warning","me-1",3,"click","pTooltip"],[1,"pi","pi-ban"],["tooltipPosition","left",1,"btn","btn-sm","text-success","me-1",3,"click","pTooltip"],[1,"pi","pi-check-circle"]],template:function(e,n){e&1&&(r(0,"p-tabs",0),f("valueChange",function(s){return n.onTabChange(s)}),r(1,"p-tablist")(2,"p-tab",1),m(3,"i",2),p(4),_(5,"translate"),C(6,ze,2,1,"span",3),a(),r(7,"p-tab",4),m(8,"i",5),p(9),_(10,"translate"),C(11,qe,2,1,"span",6),a()(),r(12,"p-tabpanels")(13,"p-tabpanel",1)(14,"div",7)(1
25,"div",8)(16,"span",9),m(17,"i",10),a(),r(18,"input",11),_(19,"translate"),T("ngModelChange",function(s){return E(n.wsSearchTerm,s)||(n.wsSearchTerm=s),s}),f("ngModelChange",function(){return n.onWsSearch()}),a()(),r(20,"div",12)(21,"p-select",13),T("ngModelChange",function(s){return E(n.wsSelectedStatus,s)||(n.wsSelectedStatus=s),s}),f("onChange",function(){return n.onWsFilterChange()}),a(),r(22,"p-select",13),T("ngModelChange",function(s){return E(n.wsSelectedType,s)||(n.wsSelectedType=s),s}),f("onChange",function(){return n.onWsFilterChange()}),a(),r(23,"p-select",13),T("ngModelChange",function(s){return E(n.wsSortOption,s)||(n.wsSortOption=s),s}),f("onChange",function(){return n.onWsFilterChange()}),a(),r(24,"p-select",13),T("ngModelChange",function(s){return E(n.wsCompanion,s)||(n.wsCompanion=s),s}),f("onChange",function(){return n.onWsFilterChange()}),a(),r(25,"p-select",13),T("ngModelChange",function(s){return E(n.wsMinStars,s)||(n.wsMinStars=s),s}),f("onChange",function(){return n.onWsFilterChange()}),a()(),r(26,"div",14),C(27,Qe,2,1,"span"),a()(),m(28,"app-widget-loading",15),C(29,Ge,3,3,"div",16)(30,ft,35,19),a(),r(31,"p-tabpanel",4)(32,"div",7)(33,"div",8)(34,"span",9),m(35,"i",10),a(),r(36,"input",11),_(37,"translate"),T("ngModelChange",function(s){return E(n.searchTerm,s)||(n.searchTerm=s),s}),f("ngModelChange",function(){return n.onSearch()}),a()(),r(38,"div",12)(39,"p-select",17),_(40,"translate"),T("ngModelChange",function(s){return E(n.selectedRole,s)||(n.selectedRole=s),s}),f("onChange",function(){return n.onFilterChange()}),a(),r(41,"p-select",17),_(42,"translate"),T("ngModelChange",function(s){return E(n.selectedStatus,s)||(n.selectedStatus=s),s}),f("onChange",function(){return n.onFilterChange()}),a(),r(43,"p-select",13),T("ngModelChange",function(s){return E(n.selectedSortOption,s)||(n.selectedSortOption=s),s}),f("onChange",function(){return n.onSortOptionChange()}),a(),C(44,wt,4,3,"button",18)(45,ht,3,0,"a",19),a(),r(46,"div",14),C(47,vt,3,4,"span"),a()(),m(48,"app-widget-loading",20),C(49,At,7,4,"div",16)(50,Zt,40,34),a()()()),e&2&&(c("value",n.activeTab),o(4),w("",u(5,38,"ADMIN.USERS.TAB_WORKSPACES")," "),o(2),g(n.wsTotal>0?6:-1),o(3),w("",u(10,40,"ADMIN.USERS.TAB_USERS")," "),o(2),g(n.total>0?11:-1),o(7),c("placeholder",u(19,42,"COMMON.SEARCH")),b("ngModel",n.wsSearchTerm),o(3),c("options",n.wsStatusOptions),b("ngModel",n.wsSelectedStatus),o(),c("options",n.wsTypeOptions),b("ngModel",n.wsSelectedType),o(),c("options",n.wsSortOptions),b("ngModel",n.wsSortOption),o(),c("options",n.wsCompanionOptions),b("ngModel",n.wsCompanion),o(),c("options",n.wsMinStarsOptions),b("ngModel",n.wsMinStars),o(2),g(n.wsTotal>0?27:-1),o(),c("loading",n.wsLoading),o(),g(!n.wsLoading&&n.workspaces.length===0?29:-1),o(),g(n.workspaces.length>0?30:-1),o(6),c("placeholder",u(37,44,"COMMON.SEARCH")),b("ngModel",n.searchTerm),o(3),c("options",n.roleOptions),b("ngModel",n.selectedRole),c("placeholder",u(40,46,"ADMIN.USERS.ALL_ROLES")),o(2),c("options",n.statusOptions),b("ngModel",n.selectedStatus),c("placeholder",u(42,48,"ADMIN.USERS.ALL_STATUSES")),o(2),c("options",n.sortOptions),b("ngModel",n.selectedSortOption),o(),g(n.filters&&n.filters.activeCount()>0?44:-1),o(),g(n.selectedRole===n.IUserRole.ACCOUNT_MANAGER?45:-1),o(2),g(n.total>0?47:-1),o(),c("loading",n.loading)("loadingError",!!n.error),o(),g(n.users.length===0&&!n.loading&&!n.error?49:-1),o(),g(n.users.length>0?50:-1))},dependencies:[Z,G,H,K,Y,de,se,le,pe,te,ee,xe,ce,Se,ve,_e,me,fe,ge,be,Ae,Ce,ke,Oe,Me,Ve,Ue,Ie,we,ue,ye,Pe,ne,ie,he],styles:["[_nghost-%COMP%]{display:block;width:100%;padding-top:.5rem}.admin-users-table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}.admin-users-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:.8rem;white-space:nowrap}.admin-users-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:.85rem}.admin-users-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .admin-users-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{vertical-align:middle;padding:.5rem}
2.admin-users-table[_ngcontent-%COMP%] .col-avatar[_ngcontent-%COMP%]{width:50px;text-align:center}.admin-users-table[_ngcontent-%COMP%] .col-email[_ngcontent-%COMP%]{width:20%;max-width:200px}.admin-users-table[_ngcontent-%COMP%] .col-name[_ngcontent-%COMP%]{width:12%;max-width:120px}.admin-users-table[_ngcontent-%COMP%] .col-role[_ngcontent-%COMP%]{width:100px}.admin-users-table[_ngcontent-%COMP%] .col-status[_ngcontent-%COMP%]{width:120px}.admin-users-table[_ngcontent-%COMP%] .col-ws[_ngcontent-%COMP%]{width:45px;text-align:center}.admin-users-table[_ngcontent-%COMP%] .col-date[_ngcontent-%COMP%], .admin-users-table[_ngcontent-%COMP%] .col-activity[_ngcontent-%COMP%]{width:80px;font-size:.85rem}.admin-users-table[_ngcontent-%COMP%] .col-actions[_ngcontent-%COMP%]{width:90px}.user-link[_ngcontent-%COMP%]{color:#0d6efd;cursor:pointer;transition:color .2s}.user-link[_ngcontent-%COMP%]:hover{color:#0a58ca;text-decoration:underline}.text-truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%} .compact-select .p-select{border:none!important;background:transparent!important;padding:0!important;min-width:auto!important} .compact-select .p-select:hover{background:#0000000d!important} .compact-select .p-select .p-select-label{padding:.25rem 0!important} .compact-select .p-select .p-select-dropdown{width:1.25rem;padding:0} .filter-select .p-select{min-width:150px} .p-select-overlay{min-width:150px!important} .p-tag{font-size:.75rem!important;padding:.2rem .5rem!important}.user-avatar[_ngcontent-%COMP%]{object-fit:cover;border:1px solid rgba(0,0,0,.08)}.user-avatar-initial[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background-color:#6c757d;color:#fff;font-size:12px;font-weight:600;border:1px solid rgba(0,0,0,.08)}.rounded-circle.bg-secondary[_ngcontent-%COMP%]{flex-shrink:0}.table-danger[_ngcontent-%COMP%]{background-color:#dc35451a!important}.sortable[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s ease}.sortable[_ngcontent-%COMP%]:hover{background-color:#0000000d}.sortable[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.75rem;opacity:.6;transition:opacity .2s ease}.sortable[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{opacity:1}"]})};export{De as ViewAdminUsersComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.