@whoz-oss/coday-client 0.206.0 → 0.207.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/browser/chunk-22RX22JY.js +1 -0
  2. package/browser/chunk-26MGIRJF.js +1 -0
  3. package/browser/{chunk-JWURN5PB.js → chunk-2O4IDVFE.js} +1 -1
  4. package/browser/chunk-2P74VZU4.js +1 -0
  5. package/browser/{chunk-WXOBY3EY.js → chunk-3AOPEZPX.js} +1 -1
  6. package/browser/{chunk-KKZABPQU.js → chunk-3NOI65IY.js} +1 -1
  7. package/browser/{chunk-A5C4DTSU.js → chunk-43DMEMMQ.js} +1 -1
  8. package/browser/{chunk-ZJUUFIFM.js → chunk-4KEHW6KL.js} +1 -1
  9. package/browser/{chunk-4734TK7R.js → chunk-5CBZIB6D.js} +1 -1
  10. package/browser/{chunk-L3L75XR6.js → chunk-5K5EFCNT.js} +1 -1
  11. package/browser/chunk-5OPQ2IC6.js +1 -0
  12. package/browser/chunk-6VCRRGXF.js +1 -0
  13. package/browser/{chunk-5EHY76TA.js → chunk-A2R5GVPT.js} +1 -1
  14. package/browser/{chunk-YMLYNSOP.js → chunk-BMUZTI7K.js} +1 -1
  15. package/browser/{chunk-QDRJZVVJ.js → chunk-BQHUHW7P.js} +1 -1
  16. package/browser/{chunk-G32LX34P.js → chunk-CCPU2LL3.js} +1 -1
  17. package/browser/chunk-CU4C25HM.js +1 -0
  18. package/browser/{chunk-XXFLSKH4.js → chunk-F42BGKID.js} +1 -1
  19. package/browser/{chunk-2J5DAOVJ.js → chunk-FOAW6HUH.js} +1 -1
  20. package/browser/chunk-G2BRVRGR.js +1 -0
  21. package/browser/{chunk-P6ABEFHB.js → chunk-GUB4VYOT.js} +1 -1
  22. package/browser/{chunk-ERQUBIFQ.js → chunk-IOREZEED.js} +1 -1
  23. package/browser/{chunk-53URG3R4.js → chunk-JIHPEYRG.js} +1 -1
  24. package/browser/{chunk-6F2QS5ZN.js → chunk-KZJRQ6RN.js} +1 -1
  25. package/browser/{chunk-ZMCXRMG2.js → chunk-LH4ATU27.js} +1 -1
  26. package/browser/{chunk-6YFVWUFP.js → chunk-LMFI6Y77.js} +1 -1
  27. package/browser/chunk-LX5DYIMF.js +1 -0
  28. package/browser/{chunk-E64XBDJ4.js → chunk-M6ORKUDA.js} +1 -1
  29. package/browser/{chunk-BWMTUVRQ.js → chunk-NIWF7LLH.js} +1 -1
  30. package/browser/{chunk-SO5P7HTY.js → chunk-OSQQAYJZ.js} +1 -1
  31. package/browser/{chunk-55QD2MSQ.js → chunk-PNFA7PN2.js} +1 -1
  32. package/browser/{chunk-XXPGZDVF.js → chunk-RJBF3TIH.js} +1 -1
  33. package/browser/chunk-RRBTVPFV.js +1 -0
  34. package/browser/{chunk-CIMPBK5N.js → chunk-S7MAZ5PQ.js} +1 -1
  35. package/browser/chunk-SF7PCURW.js +1 -0
  36. package/browser/{chunk-OSVXE7XF.js → chunk-UAHCUD67.js} +1 -1
  37. package/browser/chunk-UDA26TV3.js +1 -0
  38. package/browser/{chunk-42QJEAX4.js → chunk-VHC775VZ.js} +1 -1
  39. package/browser/{chunk-JHUUVBVD.js → chunk-VIDPCJ3F.js} +1 -1
  40. package/browser/chunk-Y6K6VJYJ.js +1 -0
  41. package/browser/index.html +1 -1
  42. package/browser/{main-UE2RLE5B.js → main-VRT323QR.js} +1 -1
  43. package/package.json +1 -1
  44. package/browser/chunk-2L7CAI22.js +0 -1
  45. package/browser/chunk-3ODG3JTW.js +0 -1
  46. package/browser/chunk-7BGJAFEA.js +0 -1
  47. package/browser/chunk-7TME2YLZ.js +0 -1
  48. package/browser/chunk-BD6N2UN6.js +0 -1
  49. package/browser/chunk-HM6HNJMS.js +0 -1
  50. package/browser/chunk-LH2YTDIO.js +0 -1
  51. package/browser/chunk-OBNBWBWU.js +0 -1
  52. package/browser/chunk-RMRAPNZV.js +0 -1
  53. package/browser/chunk-TWMYRLVR.js +0 -1
  54. package/browser/chunk-WSIKJ6LY.js +0 -1
  55. package/browser/chunk-ZAKB7MFY.js +0 -1
@@ -1 +1 @@
1
- import{a as q}from"./chunk-4734TK7R.js";import{a as J}from"./chunk-7TME2YLZ.js";import"./chunk-PRFGHN7L.js";import{c as Y}from"./chunk-W6TYWCQH.js";import{c as j}from"./chunk-EQXGFCI5.js";import{a as H}from"./chunk-JHUUVBVD.js";import"./chunk-BD6N2UN6.js";import{c as F}from"./chunk-7MQRVE7E.js";import{a as w,c as G}from"./chunk-IRZNRZ5Q.js";import{F as A,c as K,g as z,h as N,i as $,l as k,n as R,v as B,w as L}from"./chunk-WLSXA23B.js";import{Bb as v,Db as c,Ec as I,Fb as s,Ka as d,Rb as S,Tb as i,Ub as u,Vb as h,Wa as V,ca as f,ga as p,ha as m,jb as E,kb as M,lb as g,ma as D,mb as C,pb as b,qb as y,rb as O,sb as n,t as U,ta as x,tb as t,u as T,ub as P}from"./chunk-5J7BTB5J.js";var Q=(o,r)=>r.value;function X(o,r){o&1&&(n(0,"p",5),i(1,"Loading\u2026"),t())}function Z(o,r){if(o&1){let e=v();n(0,"button",17),c("click",function(){let a=p(e).$implicit,_=s(2);return m(_.setTheme(a.value))}),i(1),t()}if(o&2){let e=r.$implicit,l=s(2);S("user-profile__segmented-option--active",l.theme()===e.value),E("aria-pressed",l.theme()===e.value),d(),h(" ",e.label," ")}}function ee(o,r){if(o&1){let e=v();n(0,"button",17),c("click",function(){let a=p(e).$implicit,_=s(2);return m(_.setEnterKeyBehavior(a.value))}),i(1),t()}if(o&2){let e=r.$implicit,l=s(2);S("user-profile__segmented-option--active",l.enterKeyBehavior()===e.value),E("aria-pressed",l.enterKeyBehavior()===e.value),d(),h(" ",e.label," ")}}function te(o,r){if(o&1){let e=v();n(0,"form",18),c("ngSubmit",function(){p(e);let a=s(2);return m(a.save())}),n(1,"div",6)(2,"h2",7),i(3,"Identity"),t(),n(4,"div",8)(5,"span",9),i(6,"Email"),t(),n(7,"span",19),i(8),t()(),n(9,"div",8)(10,"span",9),i(11,"External ID"),t(),n(12,"span",19),i(13),t()()(),n(14,"div",6)(15,"h2",7),i(16,"Profile"),t(),n(17,"div",8)(18,"label",20),i(19,"First name"),t(),P(20,"input",21),t(),n(21,"div",8)(22,"label",22),i(23,"Last name"),t(),P(24,"input",23),t(),n(25,"div",8)(26,"label",24),i(27,"Bio"),t(),P(28,"textarea",25),t()(),n(29,"div",26)(30,"button",27),i(31),t(),n(32,"button",28),c("click",function(){p(e);let a=s(2);return m(a.cancelEditing())}),i(33,"Cancel"),t()()()}if(o&2){let e=s(),l=s();O("formGroup",l.form),d(8),u(e.email),d(5),u(e.externalId),d(17),O("disabled",l.isSaving()),d(),h(" ",l.isSaving()?"Saving\u2026":"Save changes"," ")}}function ne(o,r){o&1&&(n(0,"p",36),i(1," No global configuration yet. Create one from the Integrations / AI Providers / AI Models pages of your namespaces. "),t())}function ie(o,r){if(o&1){let e=v();n(0,"span",43),i(1,"Delete?"),t(),n(2,"button",44),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.confirmDelete(a))}),i(3," Confirm "),t(),n(4,"button",45),c("click",function(){p(e);let a=s(7);return m(a.cancelDelete())}),i(5," Cancel "),t()}}function re(o,r){if(o&1){let e=v();n(0,"button",45),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.armDelete(a))}),i(1," Delete "),t()}}function oe(o,r){if(o&1&&(n(0,"li",39)(1,"span",40),i(2),t(),n(3,"span",41),i(4),t(),g(5,ie,6,0)(6,re,2,0,"button",42),t()),o&2){let e=r.$implicit,l=s(6);d(2),u(e.name),d(2),u(e.subtitle),d(),C(l.isPendingDelete(e)?5:6)}}function le(o,r){if(o&1&&(n(0,"h3",37),i(1,"Integrations"),t(),n(2,"ul",38),b(3,oe,7,3,"li",39,M().trackEntry,!0),t()),o&2){let e=s(5);d(3),y(e.recap().integrations)}}function ae(o,r){if(o&1){let e=v();n(0,"span",43),i(1,"Delete?"),t(),n(2,"button",44),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.confirmDelete(a))}),i(3," Confirm "),t(),n(4,"button",45),c("click",function(){p(e);let a=s(7);return m(a.cancelDelete())}),i(5," Cancel "),t()}}function se(o,r){if(o&1){let e=v();n(0,"button",45),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.armDelete(a))}),i(1," Delete "),t()}}function de(o,r){if(o&1&&(n(0,"li",39)(1,"span",40),i(2),t(),n(3,"span",41),i(4),t(),g(5,ae,6,0)(6,se,2,0,"button",42),t()),o&2){let e=r.$implicit,l=s(6);d(2),u(e.name),d(2),u(e.subtitle),d(),C(l.isPendingDelete(e)?5:6)}}function _e(o,r){if(o&1&&(n(0,"h3",37),i(1,"AI Providers"),t(),n(2,"ul",38),b(3,de,7,3,"li",39,M().trackEntry,!0),t()),o&2){let e=s(5);d(3),y(e.recap().aiProviders)}}function ce(o,r){if(o&1&&(g(0,le,5,0),g(1,_e,5,0)),o&2){let e=s(4);C(e.recap().integrations.length>0?0:-1),d(),C(e.recap().aiProviders.length>0?1:-1)}}function pe(o,r){if(o&1&&g(0,ne,2,0,"p",36)(1,ce,2,2),o&2){let e=s(3);C(e.recap().total===0?0:1)}}function me(o,r){if(o&1){let e=v();n(0,"div",16)(1,"div",6)(2,"h2",7),i(3,"Identity"),t(),n(4,"div",8)(5,"span",9),i(6,"Email"),t(),n(7,"span",29),i(8),t()(),n(9,"div",8)(10,"span",9),i(11,"External ID"),t(),n(12,"span",29),i(13),t()()(),n(14,"div",6)(15,"h2",7),i(16,"Profile"),t(),n(17,"div",8)(18,"span",9),i(19,"First name"),t(),n(20,"span",29),i(21),t()(),n(22,"div",8)(23,"span",9),i(24,"Last name"),t(),n(25,"span",29),i(26),t()(),n(27,"div",30)(28,"span",9),i(29,"Bio"),t(),n(30,"span",29),i(31),t()()(),n(32,"div",26)(33,"button",31),c("click",function(){p(e);let a=s(2);return m(a.startEditing())}),i(34," Edit profile "),t()(),n(35,"div",32)(36,"button",33),c("click",function(){p(e);let a=s(2);return m(a.toggleOverrides())}),n(37,"span",34),i(38,"\u25B6"),t(),i(39," My global user configurations "),n(40,"span",35),i(41),t()(),g(42,pe,2,1),t()()}if(o&2){let e=s(),l=s();d(8),u(e.email),d(5),u(e.externalId),d(8),u(e.firstname||"\u2014"),d(5),u(e.lastname||"\u2014"),d(5),u(e.bio||"\u2014"),d(5),E("aria-expanded",l.isOverridesExpanded()),d(),S("user-profile__overrides-arrow--open",l.isOverridesExpanded()),d(4),h("(",l.recap().total,")"),d(),C(l.isOverridesExpanded()?42:-1)}}function ue(o,r){if(o&1&&(n(0,"div",6)(1,"h2",7),i(2,"Appearance"),t(),n(3,"div",8)(4,"span",9),i(5,"Theme"),t(),n(6,"div",10),b(7,Z,2,4,"button",11,Q),t()()(),n(9,"div",6)(10,"h2",7),i(11,"Composer"),t(),n(12,"div",8)(13,"span",9),i(14,"Enter key"),t(),n(15,"div",12)(16,"div",13),b(17,ee,2,4,"button",11,Q),t(),n(19,"p",14),i(20,'In "New line" mode, press Ctrl or Cmd + Enter to send.'),t()()()(),g(21,te,34,5,"form",15)(22,me,43,10,"div",16)),o&2){let e=s();d(7),y(e.themeOptions),d(10),y(e.enterKeyOptions),d(4),C(e.isEditing()?21:22)}}function fe(o,r){o&1&&(n(0,"p",5),i(1,"Unable to load profile."),t())}var W=class o{userState=f(H);router=f(F);location=f(I);destroyRef=f(D);integrationState=f(q);providerState=f(J);themePort=f(j);preferencesPort=f(Y);isEditing=x(!1);isLoading=x(!1);isSaving=x(!1);isOverridesExpanded=x(!1);currentUser=this.userState.currentUser;theme=this.themePort.theme;themeOptions=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];enterKeyBehavior=this.preferencesPort.enterKeyBehavior;enterKeyOptions=[{value:"send",label:"Send"},{value:"newline",label:"New line"}];form=new $({firstname:new k("",{nonNullable:!0}),lastname:new k("",{nonNullable:!0}),bio:new k("",{nonNullable:!0})});recap=G(T([this.integrationState.userGlobal$,this.providerState.userGlobal$]).pipe(U(([r,e])=>{let l=r.map(_=>({category:"integration",id:_.id??"",name:_.name,subtitle:_.integrationType})),a=e.map(_=>({category:"aiProvider",id:_.id??"",name:_.name,subtitle:_.apiType}));return{integrations:l,aiProviders:a,total:l.length+a.length}})),{initialValue:{integrations:[],aiProviders:[],total:0}});ngOnInit(){if(this.currentUser()){this.syncFormFromState();return}this.isLoading.set(!0),this.userState.loadMe().pipe(w(this.destroyRef)).subscribe({next:()=>{this.syncFormFromState(),this.isLoading.set(!1)},error:()=>this.isLoading.set(!1)})}startEditing(){this.syncFormFromState(),this.isEditing.set(!0)}cancelEditing(){this.isEditing.set(!1)}setTheme(r){this.themePort.setTheme(r)}setEnterKeyBehavior(r){this.preferencesPort.setEnterKeyBehavior(r)}save(){this.isSaving()||(this.isSaving.set(!0),this.userState.updateMe({firstname:this.form.controls.firstname.value.trim()||void 0,lastname:this.form.controls.lastname.value.trim()||void 0,bio:this.form.controls.bio.value.trim()||void 0}).pipe(w(this.destroyRef)).subscribe({next:()=>{this.isSaving.set(!1),this.isEditing.set(!1)},error:()=>this.isSaving.set(!1)}))}toggleOverrides(){this.isOverridesExpanded.update(r=>!r),this.pendingDeleteKey.set(null)}pendingDeleteKey=x(null);isPendingDelete(r){return this.pendingDeleteKey()===this.entryKey(r)}armDelete(r){r.id&&this.pendingDeleteKey.set(this.entryKey(r))}cancelDelete(){this.pendingDeleteKey.set(null)}confirmDelete(r){if(!r.id)return;this.pendingDeleteKey.set(null),(r.category==="integration"?this.integrationState.delete(r.id,"userGlobal"):this.providerState.delete(r.id,"userGlobal")).pipe(w(this.destroyRef)).subscribe({error:l=>{console.error(`[UserProfile] Delete failed for ${r.category}:${r.id}:`,l)}})}entryKey(r){return`${r.category}:${r.id}`}goBack(){window.history.length>1?this.location.back():this.router.navigate(["/agentos"])}trackEntry(r,e){return this.entryKey(e)}syncFormFromState(){let r=this.currentUser();r&&this.form.setValue({firstname:r.firstname??"",lastname:r.lastname??"",bio:r.bio??""})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["agentos-user-profile"]],decls:11,vars:1,consts:[[1,"user-profile"],[1,"user-profile__header"],["type","button","title","Go back",1,"user-profile__back",3,"click"],[1,"user-profile__back-icon"],[1,"user-profile__title"],[1,"user-profile__loading"],[1,"user-profile__section"],[1,"user-profile__section-title"],[1,"user-profile__field"],[1,"user-profile__label"],["role","group","aria-label","Theme",1,"user-profile__segmented"],["type","button",1,"user-profile__segmented-option",3,"user-profile__segmented-option--active"],[1,"user-profile__field-control"],["role","group","aria-label","Enter key behavior",1,"user-profile__segmented"],[1,"user-profile__hint"],[1,"user-profile__form",3,"formGroup"],[1,"user-profile__view"],["type","button",1,"user-profile__segmented-option",3,"click"],[1,"user-profile__form",3,"ngSubmit","formGroup"],[1,"user-profile__value","user-profile__value--readonly"],["for","up-firstname",1,"user-profile__label"],["id","up-firstname","type","text","placeholder","Your first name","formControlName","firstname","autocomplete","given-name",1,"user-profile__input"],["for","up-lastname",1,"user-profile__label"],["id","up-lastname","type","text","placeholder","Your last name","formControlName","lastname","autocomplete","family-name",1,"user-profile__input"],["for","up-bio",1,"user-profile__label"],["id","up-bio","placeholder","A short description about yourself","formControlName","bio","rows","4",1,"user-profile__input","user-profile__input--textarea"],[1,"user-profile__actions"],["type","submit",1,"user-profile__btn","user-profile__btn--primary",3,"disabled"],["type","button",1,"user-profile__btn",3,"click"],[1,"user-profile__value"],[1,"user-profile__field","user-profile__field--bio"],["type","button",1,"user-profile__btn","user-profile__btn--primary",3,"click"],[1,"user-profile__overrides"],["type","button",1,"user-profile__overrides-toggle",3,"click"],[1,"user-profile__overrides-arrow"],[1,"user-profile__overrides-count"],[1,"user-profile__overrides-empty"],[1,"user-profile__overrides-subtitle"],[1,"user-profile__overrides-list"],[1,"user-profile__overrides-row"],[1,"user-profile__overrides-name"],[1,"user-profile__overrides-subtitle-text"],["type","button",1,"user-profile__overrides-delete"],[1,"user-profile__overrides-confirm-label"],["type","button",1,"user-profile__overrides-delete","user-profile__overrides-delete--confirm",3,"click"],["type","button",1,"user-profile__overrides-delete",3,"click"]],template:function(e,l){if(e&1&&(n(0,"div",0)(1,"header",1)(2,"button",2),c("click",function(){return l.goBack()}),n(3,"span",3),i(4,"\u2190"),t(),i(5," Back "),t(),n(6,"h1",4),i(7,"My profile"),t()(),g(8,X,2,0,"p",5)(9,ue,23,1)(10,fe,2,0,"p",5),t()),e&2){let a;d(8),C(l.isLoading()?8:(a=l.currentUser())?9:10,a)}},dependencies:[A,R,K,z,N,L,B],styles:[".user-profile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:560px;margin:0 auto;padding:2rem 1rem}.user-profile__overrides[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--color-border)}.user-profile__overrides-toggle[_ngcontent-%COMP%]{background:transparent;border:none;padding:.25rem 0;font-size:.85rem;color:var(--color-text-secondary);cursor:pointer;display:flex;align-items:center;gap:.4rem}.user-profile__overrides-toggle[_ngcontent-%COMP%]:hover{color:var(--color-text)}.user-profile__overrides-arrow[_ngcontent-%COMP%]{display:inline-block;font-size:.65rem;transition:transform .15s ease}.user-profile__overrides-arrow--open[_ngcontent-%COMP%]{transform:rotate(90deg)}.user-profile__overrides-count[_ngcontent-%COMP%]{color:var(--color-text-tertiary)}.user-profile__overrides-empty[_ngcontent-%COMP%]{font-size:.8rem;color:var(--color-text-secondary);font-style:italic;padding:.5rem 0 0;margin:0}.user-profile__overrides-subtitle[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-tertiary);margin:.75rem 0 .25rem}.user-profile__overrides-list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.user-profile__overrides-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.4rem .5rem;font-size:.85rem;border-radius:6px}.user-profile__overrides-row[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover)}.user-profile__overrides-name[_ngcontent-%COMP%]{flex:1;color:var(--color-text);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-profile__overrides-subtitle-text[_ngcontent-%COMP%]{font-size:.75rem;color:var(--color-text-secondary);font-family:monospace}.user-profile__overrides-delete[_ngcontent-%COMP%]{background:transparent;border:none;font-size:.75rem;color:var(--color-error);cursor:pointer;padding:.2rem .4rem;border-radius:4px}.user-profile__overrides-delete[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--color-error) 12%,transparent)}.user-profile__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.user-profile__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.user-profile__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.user-profile__back-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.user-profile__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.user-profile__loading[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.user-profile__view[_ngcontent-%COMP%], .user-profile__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.user-profile__section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.user-profile__section-title[_ngcontent-%COMP%]{margin:0;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-secondary, #6e6e73);border-bottom:1px solid var(--color-border-light, rgba(0, 0, 0, .06));padding-bottom:.5rem}.user-profile__field[_ngcontent-%COMP%]{display:grid;grid-template-columns:140px 1fr;align-items:baseline;gap:.75rem}.user-profile__field--bio[_ngcontent-%COMP%]{align-items:start}.user-profile__label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:var(--color-text-secondary, #6e6e73);white-space:nowrap}.user-profile__value[_ngcontent-%COMP%]{font-size:.9375rem;color:var(--color-text, #1d1d1f);word-break:break-word;white-space:pre-wrap}.user-profile__value--readonly[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.875rem}.user-profile__segmented[_ngcontent-%COMP%]{display:inline-flex;justify-self:start;border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:8px;overflow:hidden}.user-profile__segmented-option[_ngcontent-%COMP%]{padding:.4rem .85rem;background:transparent;border:none;border-right:1px solid var(--color-border, rgba(0, 0, 0, .1));color:var(--color-text-secondary, #6e6e73);font-size:.875rem;font-family:inherit;cursor:pointer;transition:background .15s ease,color .15s ease}.user-profile__segmented-option[_ngcontent-%COMP%]:last-child{border-right:none}.user-profile__segmented-option[_ngcontent-%COMP%]:hover{background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.user-profile__segmented-option--active[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);color:#fff}.user-profile__segmented-option--active[_ngcontent-%COMP%]:hover{background:var(--color-primary-hover, #0051d5)}.user-profile__field-control[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.user-profile__hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:var(--color-text-secondary, #6e6e73)}.user-profile__input[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color .15s ease;resize:none}.user-profile__input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.user-profile__input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.user-profile__input--textarea[_ngcontent-%COMP%]{line-height:1.5;resize:vertical}.user-profile__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding-top:.5rem}.user-profile__btn[_ngcontent-%COMP%]{padding:.6rem 1.25rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.user-profile__btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.user-profile__btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.user-profile__btn--primary[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);border-color:var(--color-primary, #007aff);color:#fff}.user-profile__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-hover, #0051d5);border-color:var(--color-primary-hover, #0051d5)}"],changeDetection:0})};export{W as UserProfileComponent};
1
+ import{a as q}from"./chunk-5CBZIB6D.js";import{a as J}from"./chunk-RRBTVPFV.js";import"./chunk-PRFGHN7L.js";import{c as Y}from"./chunk-W6TYWCQH.js";import{c as j}from"./chunk-EQXGFCI5.js";import{a as H}from"./chunk-VIDPCJ3F.js";import"./chunk-G2BRVRGR.js";import{c as F}from"./chunk-7MQRVE7E.js";import{a as w,c as G}from"./chunk-IRZNRZ5Q.js";import{F as A,c as K,g as z,h as N,i as $,l as k,n as R,v as B,w as L}from"./chunk-WLSXA23B.js";import{Bb as v,Db as c,Ec as I,Fb as s,Ka as d,Rb as S,Tb as i,Ub as u,Vb as h,Wa as V,ca as f,ga as p,ha as m,jb as E,kb as M,lb as g,ma as D,mb as C,pb as b,qb as y,rb as O,sb as n,t as U,ta as x,tb as t,u as T,ub as P}from"./chunk-5J7BTB5J.js";var Q=(o,r)=>r.value;function X(o,r){o&1&&(n(0,"p",5),i(1,"Loading\u2026"),t())}function Z(o,r){if(o&1){let e=v();n(0,"button",17),c("click",function(){let a=p(e).$implicit,_=s(2);return m(_.setTheme(a.value))}),i(1),t()}if(o&2){let e=r.$implicit,l=s(2);S("user-profile__segmented-option--active",l.theme()===e.value),E("aria-pressed",l.theme()===e.value),d(),h(" ",e.label," ")}}function ee(o,r){if(o&1){let e=v();n(0,"button",17),c("click",function(){let a=p(e).$implicit,_=s(2);return m(_.setEnterKeyBehavior(a.value))}),i(1),t()}if(o&2){let e=r.$implicit,l=s(2);S("user-profile__segmented-option--active",l.enterKeyBehavior()===e.value),E("aria-pressed",l.enterKeyBehavior()===e.value),d(),h(" ",e.label," ")}}function te(o,r){if(o&1){let e=v();n(0,"form",18),c("ngSubmit",function(){p(e);let a=s(2);return m(a.save())}),n(1,"div",6)(2,"h2",7),i(3,"Identity"),t(),n(4,"div",8)(5,"span",9),i(6,"Email"),t(),n(7,"span",19),i(8),t()(),n(9,"div",8)(10,"span",9),i(11,"External ID"),t(),n(12,"span",19),i(13),t()()(),n(14,"div",6)(15,"h2",7),i(16,"Profile"),t(),n(17,"div",8)(18,"label",20),i(19,"First name"),t(),P(20,"input",21),t(),n(21,"div",8)(22,"label",22),i(23,"Last name"),t(),P(24,"input",23),t(),n(25,"div",8)(26,"label",24),i(27,"Bio"),t(),P(28,"textarea",25),t()(),n(29,"div",26)(30,"button",27),i(31),t(),n(32,"button",28),c("click",function(){p(e);let a=s(2);return m(a.cancelEditing())}),i(33,"Cancel"),t()()()}if(o&2){let e=s(),l=s();O("formGroup",l.form),d(8),u(e.email),d(5),u(e.externalId),d(17),O("disabled",l.isSaving()),d(),h(" ",l.isSaving()?"Saving\u2026":"Save changes"," ")}}function ne(o,r){o&1&&(n(0,"p",36),i(1," No global configuration yet. Create one from the Integrations / AI Providers / AI Models pages of your namespaces. "),t())}function ie(o,r){if(o&1){let e=v();n(0,"span",43),i(1,"Delete?"),t(),n(2,"button",44),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.confirmDelete(a))}),i(3," Confirm "),t(),n(4,"button",45),c("click",function(){p(e);let a=s(7);return m(a.cancelDelete())}),i(5," Cancel "),t()}}function re(o,r){if(o&1){let e=v();n(0,"button",45),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.armDelete(a))}),i(1," Delete "),t()}}function oe(o,r){if(o&1&&(n(0,"li",39)(1,"span",40),i(2),t(),n(3,"span",41),i(4),t(),g(5,ie,6,0)(6,re,2,0,"button",42),t()),o&2){let e=r.$implicit,l=s(6);d(2),u(e.name),d(2),u(e.subtitle),d(),C(l.isPendingDelete(e)?5:6)}}function le(o,r){if(o&1&&(n(0,"h3",37),i(1,"Integrations"),t(),n(2,"ul",38),b(3,oe,7,3,"li",39,M().trackEntry,!0),t()),o&2){let e=s(5);d(3),y(e.recap().integrations)}}function ae(o,r){if(o&1){let e=v();n(0,"span",43),i(1,"Delete?"),t(),n(2,"button",44),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.confirmDelete(a))}),i(3," Confirm "),t(),n(4,"button",45),c("click",function(){p(e);let a=s(7);return m(a.cancelDelete())}),i(5," Cancel "),t()}}function se(o,r){if(o&1){let e=v();n(0,"button",45),c("click",function(){p(e);let a=s().$implicit,_=s(6);return m(_.armDelete(a))}),i(1," Delete "),t()}}function de(o,r){if(o&1&&(n(0,"li",39)(1,"span",40),i(2),t(),n(3,"span",41),i(4),t(),g(5,ae,6,0)(6,se,2,0,"button",42),t()),o&2){let e=r.$implicit,l=s(6);d(2),u(e.name),d(2),u(e.subtitle),d(),C(l.isPendingDelete(e)?5:6)}}function _e(o,r){if(o&1&&(n(0,"h3",37),i(1,"AI Providers"),t(),n(2,"ul",38),b(3,de,7,3,"li",39,M().trackEntry,!0),t()),o&2){let e=s(5);d(3),y(e.recap().aiProviders)}}function ce(o,r){if(o&1&&(g(0,le,5,0),g(1,_e,5,0)),o&2){let e=s(4);C(e.recap().integrations.length>0?0:-1),d(),C(e.recap().aiProviders.length>0?1:-1)}}function pe(o,r){if(o&1&&g(0,ne,2,0,"p",36)(1,ce,2,2),o&2){let e=s(3);C(e.recap().total===0?0:1)}}function me(o,r){if(o&1){let e=v();n(0,"div",16)(1,"div",6)(2,"h2",7),i(3,"Identity"),t(),n(4,"div",8)(5,"span",9),i(6,"Email"),t(),n(7,"span",29),i(8),t()(),n(9,"div",8)(10,"span",9),i(11,"External ID"),t(),n(12,"span",29),i(13),t()()(),n(14,"div",6)(15,"h2",7),i(16,"Profile"),t(),n(17,"div",8)(18,"span",9),i(19,"First name"),t(),n(20,"span",29),i(21),t()(),n(22,"div",8)(23,"span",9),i(24,"Last name"),t(),n(25,"span",29),i(26),t()(),n(27,"div",30)(28,"span",9),i(29,"Bio"),t(),n(30,"span",29),i(31),t()()(),n(32,"div",26)(33,"button",31),c("click",function(){p(e);let a=s(2);return m(a.startEditing())}),i(34," Edit profile "),t()(),n(35,"div",32)(36,"button",33),c("click",function(){p(e);let a=s(2);return m(a.toggleOverrides())}),n(37,"span",34),i(38,"\u25B6"),t(),i(39," My global user configurations "),n(40,"span",35),i(41),t()(),g(42,pe,2,1),t()()}if(o&2){let e=s(),l=s();d(8),u(e.email),d(5),u(e.externalId),d(8),u(e.firstname||"\u2014"),d(5),u(e.lastname||"\u2014"),d(5),u(e.bio||"\u2014"),d(5),E("aria-expanded",l.isOverridesExpanded()),d(),S("user-profile__overrides-arrow--open",l.isOverridesExpanded()),d(4),h("(",l.recap().total,")"),d(),C(l.isOverridesExpanded()?42:-1)}}function ue(o,r){if(o&1&&(n(0,"div",6)(1,"h2",7),i(2,"Appearance"),t(),n(3,"div",8)(4,"span",9),i(5,"Theme"),t(),n(6,"div",10),b(7,Z,2,4,"button",11,Q),t()()(),n(9,"div",6)(10,"h2",7),i(11,"Composer"),t(),n(12,"div",8)(13,"span",9),i(14,"Enter key"),t(),n(15,"div",12)(16,"div",13),b(17,ee,2,4,"button",11,Q),t(),n(19,"p",14),i(20,'In "New line" mode, press Ctrl or Cmd + Enter to send.'),t()()()(),g(21,te,34,5,"form",15)(22,me,43,10,"div",16)),o&2){let e=s();d(7),y(e.themeOptions),d(10),y(e.enterKeyOptions),d(4),C(e.isEditing()?21:22)}}function fe(o,r){o&1&&(n(0,"p",5),i(1,"Unable to load profile."),t())}var W=class o{userState=f(H);router=f(F);location=f(I);destroyRef=f(D);integrationState=f(q);providerState=f(J);themePort=f(j);preferencesPort=f(Y);isEditing=x(!1);isLoading=x(!1);isSaving=x(!1);isOverridesExpanded=x(!1);currentUser=this.userState.currentUser;theme=this.themePort.theme;themeOptions=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];enterKeyBehavior=this.preferencesPort.enterKeyBehavior;enterKeyOptions=[{value:"send",label:"Send"},{value:"newline",label:"New line"}];form=new $({firstname:new k("",{nonNullable:!0}),lastname:new k("",{nonNullable:!0}),bio:new k("",{nonNullable:!0})});recap=G(T([this.integrationState.userGlobal$,this.providerState.userGlobal$]).pipe(U(([r,e])=>{let l=r.map(_=>({category:"integration",id:_.id??"",name:_.name,subtitle:_.integrationType})),a=e.map(_=>({category:"aiProvider",id:_.id??"",name:_.name,subtitle:_.apiType}));return{integrations:l,aiProviders:a,total:l.length+a.length}})),{initialValue:{integrations:[],aiProviders:[],total:0}});ngOnInit(){if(this.currentUser()){this.syncFormFromState();return}this.isLoading.set(!0),this.userState.loadMe().pipe(w(this.destroyRef)).subscribe({next:()=>{this.syncFormFromState(),this.isLoading.set(!1)},error:()=>this.isLoading.set(!1)})}startEditing(){this.syncFormFromState(),this.isEditing.set(!0)}cancelEditing(){this.isEditing.set(!1)}setTheme(r){this.themePort.setTheme(r)}setEnterKeyBehavior(r){this.preferencesPort.setEnterKeyBehavior(r)}save(){this.isSaving()||(this.isSaving.set(!0),this.userState.updateMe({firstname:this.form.controls.firstname.value.trim()||void 0,lastname:this.form.controls.lastname.value.trim()||void 0,bio:this.form.controls.bio.value.trim()||void 0}).pipe(w(this.destroyRef)).subscribe({next:()=>{this.isSaving.set(!1),this.isEditing.set(!1)},error:()=>this.isSaving.set(!1)}))}toggleOverrides(){this.isOverridesExpanded.update(r=>!r),this.pendingDeleteKey.set(null)}pendingDeleteKey=x(null);isPendingDelete(r){return this.pendingDeleteKey()===this.entryKey(r)}armDelete(r){r.id&&this.pendingDeleteKey.set(this.entryKey(r))}cancelDelete(){this.pendingDeleteKey.set(null)}confirmDelete(r){if(!r.id)return;this.pendingDeleteKey.set(null),(r.category==="integration"?this.integrationState.delete(r.id,"userGlobal"):this.providerState.delete(r.id,"userGlobal")).pipe(w(this.destroyRef)).subscribe({error:l=>{console.error(`[UserProfile] Delete failed for ${r.category}:${r.id}:`,l)}})}entryKey(r){return`${r.category}:${r.id}`}goBack(){window.history.length>1?this.location.back():this.router.navigate(["/agentos"])}trackEntry(r,e){return this.entryKey(e)}syncFormFromState(){let r=this.currentUser();r&&this.form.setValue({firstname:r.firstname??"",lastname:r.lastname??"",bio:r.bio??""})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["agentos-user-profile"]],decls:11,vars:1,consts:[[1,"user-profile"],[1,"user-profile__header"],["type","button","title","Go back",1,"user-profile__back",3,"click"],[1,"user-profile__back-icon"],[1,"user-profile__title"],[1,"user-profile__loading"],[1,"user-profile__section"],[1,"user-profile__section-title"],[1,"user-profile__field"],[1,"user-profile__label"],["role","group","aria-label","Theme",1,"user-profile__segmented"],["type","button",1,"user-profile__segmented-option",3,"user-profile__segmented-option--active"],[1,"user-profile__field-control"],["role","group","aria-label","Enter key behavior",1,"user-profile__segmented"],[1,"user-profile__hint"],[1,"user-profile__form",3,"formGroup"],[1,"user-profile__view"],["type","button",1,"user-profile__segmented-option",3,"click"],[1,"user-profile__form",3,"ngSubmit","formGroup"],[1,"user-profile__value","user-profile__value--readonly"],["for","up-firstname",1,"user-profile__label"],["id","up-firstname","type","text","placeholder","Your first name","formControlName","firstname","autocomplete","given-name",1,"user-profile__input"],["for","up-lastname",1,"user-profile__label"],["id","up-lastname","type","text","placeholder","Your last name","formControlName","lastname","autocomplete","family-name",1,"user-profile__input"],["for","up-bio",1,"user-profile__label"],["id","up-bio","placeholder","A short description about yourself","formControlName","bio","rows","4",1,"user-profile__input","user-profile__input--textarea"],[1,"user-profile__actions"],["type","submit",1,"user-profile__btn","user-profile__btn--primary",3,"disabled"],["type","button",1,"user-profile__btn",3,"click"],[1,"user-profile__value"],[1,"user-profile__field","user-profile__field--bio"],["type","button",1,"user-profile__btn","user-profile__btn--primary",3,"click"],[1,"user-profile__overrides"],["type","button",1,"user-profile__overrides-toggle",3,"click"],[1,"user-profile__overrides-arrow"],[1,"user-profile__overrides-count"],[1,"user-profile__overrides-empty"],[1,"user-profile__overrides-subtitle"],[1,"user-profile__overrides-list"],[1,"user-profile__overrides-row"],[1,"user-profile__overrides-name"],[1,"user-profile__overrides-subtitle-text"],["type","button",1,"user-profile__overrides-delete"],[1,"user-profile__overrides-confirm-label"],["type","button",1,"user-profile__overrides-delete","user-profile__overrides-delete--confirm",3,"click"],["type","button",1,"user-profile__overrides-delete",3,"click"]],template:function(e,l){if(e&1&&(n(0,"div",0)(1,"header",1)(2,"button",2),c("click",function(){return l.goBack()}),n(3,"span",3),i(4,"\u2190"),t(),i(5," Back "),t(),n(6,"h1",4),i(7,"My profile"),t()(),g(8,X,2,0,"p",5)(9,ue,23,1)(10,fe,2,0,"p",5),t()),e&2){let a;d(8),C(l.isLoading()?8:(a=l.currentUser())?9:10,a)}},dependencies:[A,R,K,z,N,L,B],styles:[".user-profile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:560px;margin:0 auto;padding:2rem 1rem}.user-profile__overrides[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--color-border)}.user-profile__overrides-toggle[_ngcontent-%COMP%]{background:transparent;border:none;padding:.25rem 0;font-size:.85rem;color:var(--color-text-secondary);cursor:pointer;display:flex;align-items:center;gap:.4rem}.user-profile__overrides-toggle[_ngcontent-%COMP%]:hover{color:var(--color-text)}.user-profile__overrides-arrow[_ngcontent-%COMP%]{display:inline-block;font-size:.65rem;transition:transform .15s ease}.user-profile__overrides-arrow--open[_ngcontent-%COMP%]{transform:rotate(90deg)}.user-profile__overrides-count[_ngcontent-%COMP%]{color:var(--color-text-tertiary)}.user-profile__overrides-empty[_ngcontent-%COMP%]{font-size:.8rem;color:var(--color-text-secondary);font-style:italic;padding:.5rem 0 0;margin:0}.user-profile__overrides-subtitle[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-tertiary);margin:.75rem 0 .25rem}.user-profile__overrides-list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.user-profile__overrides-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.4rem .5rem;font-size:.85rem;border-radius:6px}.user-profile__overrides-row[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover)}.user-profile__overrides-name[_ngcontent-%COMP%]{flex:1;color:var(--color-text);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-profile__overrides-subtitle-text[_ngcontent-%COMP%]{font-size:.75rem;color:var(--color-text-secondary);font-family:monospace}.user-profile__overrides-delete[_ngcontent-%COMP%]{background:transparent;border:none;font-size:.75rem;color:var(--color-error);cursor:pointer;padding:.2rem .4rem;border-radius:4px}.user-profile__overrides-delete[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--color-error) 12%,transparent)}.user-profile__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.user-profile__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.user-profile__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.user-profile__back-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.user-profile__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.user-profile__loading[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.user-profile__view[_ngcontent-%COMP%], .user-profile__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.user-profile__section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.user-profile__section-title[_ngcontent-%COMP%]{margin:0;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-secondary, #6e6e73);border-bottom:1px solid var(--color-border-light, rgba(0, 0, 0, .06));padding-bottom:.5rem}.user-profile__field[_ngcontent-%COMP%]{display:grid;grid-template-columns:140px 1fr;align-items:baseline;gap:.75rem}.user-profile__field--bio[_ngcontent-%COMP%]{align-items:start}.user-profile__label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:var(--color-text-secondary, #6e6e73);white-space:nowrap}.user-profile__value[_ngcontent-%COMP%]{font-size:.9375rem;color:var(--color-text, #1d1d1f);word-break:break-word;white-space:pre-wrap}.user-profile__value--readonly[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.875rem}.user-profile__segmented[_ngcontent-%COMP%]{display:inline-flex;justify-self:start;border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:8px;overflow:hidden}.user-profile__segmented-option[_ngcontent-%COMP%]{padding:.4rem .85rem;background:transparent;border:none;border-right:1px solid var(--color-border, rgba(0, 0, 0, .1));color:var(--color-text-secondary, #6e6e73);font-size:.875rem;font-family:inherit;cursor:pointer;transition:background .15s ease,color .15s ease}.user-profile__segmented-option[_ngcontent-%COMP%]:last-child{border-right:none}.user-profile__segmented-option[_ngcontent-%COMP%]:hover{background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.user-profile__segmented-option--active[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);color:#fff}.user-profile__segmented-option--active[_ngcontent-%COMP%]:hover{background:var(--color-primary-hover, #0051d5)}.user-profile__field-control[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.user-profile__hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:var(--color-text-secondary, #6e6e73)}.user-profile__input[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color .15s ease;resize:none}.user-profile__input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.user-profile__input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.user-profile__input--textarea[_ngcontent-%COMP%]{line-height:1.5;resize:vertical}.user-profile__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding-top:.5rem}.user-profile__btn[_ngcontent-%COMP%]{padding:.6rem 1.25rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.user-profile__btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.user-profile__btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.user-profile__btn--primary[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);border-color:var(--color-primary, #007aff);color:#fff}.user-profile__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-hover, #0051d5);border-color:var(--color-primary-hover, #0051d5)}"],changeDetection:0})};export{W as UserProfileComponent};
@@ -1 +1 @@
1
- import{a as fe}from"./chunk-LM2BKZRF.js";import{a as le}from"./chunk-A5C4DTSU.js";import{a as ge,b as Ce}from"./chunk-KKZABPQU.js";import{a as de}from"./chunk-L3L75XR6.js";import{a as Y}from"./chunk-5VKJNF6W.js";import{a as te,b as ne,c as oe,d as ae}from"./chunk-G32LX34P.js";import{a as Z,b as ee,c as D}from"./chunk-W6TYWCQH.js";import"./chunk-YMLYNSOP.js";import{a as Q,b as W,c as X}from"./chunk-EQXGFCI5.js";import{a as H,b as ie,c as re}from"./chunk-XXFLSKH4.js";import"./chunk-JHUUVBVD.js";import{a as me,b as pe,c as se,d as ce}from"./chunk-55QD2MSQ.js";import{a as L,e as N}from"./chunk-BD6N2UN6.js";import"./chunk-4F2LQOD7.js";import{a as k,c as T}from"./chunk-7MQRVE7E.js";import{o as z}from"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import{Cb as S,Db as u,Eb as E,Fb as _,Ic as w,Ka as p,Tb as a,Ub as C,Uc as F,Wa as g,ca as l,ec as M,fc as O,kb as x,lb as f,mb as h,pb as A,qb as y,rb as I,sb as i,ta as v,tb as r,ub as P,vb as c,wb as d}from"./chunk-5J7BTB5J.js";var t=()=>!0;var ve=[{path:"",loadComponent:()=>import("./chunk-SCK76QV6.js").then(e=>e.AgentosShellComponent),children:[{path:"home",canActivate:[t],loadComponent:()=>import("./chunk-42QJEAX4.js").then(e=>e.CaseShellComponent)},{path:"",loadComponent:()=>import("./chunk-HM6HNJMS.js").then(e=>e.LayoutComponent),children:[{path:"namespaces/new",canActivate:[t],loadComponent:()=>import("./chunk-XXPGZDVF.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces/:namespaceId/edit",canActivate:[t],loadComponent:()=>import("./chunk-XXPGZDVF.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces",canActivate:[t],loadComponent:()=>import("./chunk-6YFVWUFP.js").then(e=>e.NamespaceListComponent)},{path:"admin",canActivate:[t],loadComponent:()=>import("./chunk-FMAU2O5I.js").then(e=>e.AdminHomeComponent)},{path:"admin/users/new",canActivate:[t],loadComponent:()=>import("./chunk-WXOBY3EY.js").then(e=>e.UserFormComponent)},{path:"admin/users/:userId/edit",canActivate:[t],loadComponent:()=>import("./chunk-WXOBY3EY.js").then(e=>e.UserFormComponent)},{path:"admin/users",canActivate:[t],loadComponent:()=>import("./chunk-E64XBDJ4.js").then(e=>e.UserListComponent)},{path:"admin/integration-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-P6ABEFHB.js").then(e=>e.IntegrationFormComponent)},{path:"admin/integration-configs/:integrationId/edit",canActivate:[t],loadComponent:()=>import("./chunk-P6ABEFHB.js").then(e=>e.IntegrationFormComponent)},{path:"admin/integration-configs",canActivate:[t],loadComponent:()=>import("./chunk-JWURN5PB.js").then(e=>e.PlatformIntegrationConfigsComponent)},{path:"admin/prompts/new",canActivate:[t],loadComponent:()=>import("./chunk-6F2QS5ZN.js").then(e=>e.PromptFormComponent)},{path:"admin/prompts/:promptId/edit",canActivate:[t],loadComponent:()=>import("./chunk-6F2QS5ZN.js").then(e=>e.PromptFormComponent)},{path:"admin/prompts",canActivate:[t],loadComponent:()=>import("./chunk-OSVXE7XF.js").then(e=>e.PlatformPromptsComponent)},{path:"admin/ai-providers/new",canActivate:[t],loadComponent:()=>import("./chunk-3ODG3JTW.js").then(e=>e.AiProviderFormComponent)},{path:"admin/ai-providers/:aiProviderId/edit",canActivate:[t],loadComponent:()=>import("./chunk-3ODG3JTW.js").then(e=>e.AiProviderFormComponent)},{path:"admin/ai-providers",canActivate:[t],loadComponent:()=>import("./chunk-2J5DAOVJ.js").then(e=>e.PlatformAiProvidersComponent)},{path:"admin/ai-models/new",canActivate:[t],loadComponent:()=>import("./chunk-ZJUUFIFM.js").then(e=>e.AiModelFormComponent)},{path:"admin/ai-models/:modelId/edit",canActivate:[t],loadComponent:()=>import("./chunk-ZJUUFIFM.js").then(e=>e.AiModelFormComponent)},{path:"admin/ai-models",canActivate:[t],loadComponent:()=>import("./chunk-ERQUBIFQ.js").then(e=>e.PlatformAiModelsComponent)},{path:"admin/agent-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-5EHY76TA.js").then(e=>e.AgentConfigFormComponent)},{path:"admin/agent-configs/:agentConfigId/edit",canActivate:[t],loadComponent:()=>import("./chunk-5EHY76TA.js").then(e=>e.AgentConfigFormComponent)},{path:"admin/agent-configs/:agentConfigId/inspect",canActivate:[t],loadComponent:()=>import("./chunk-53URG3R4.js").then(e=>e.AgentConfigInspectComponent)},{path:"admin/agent-configs",canActivate:[t],loadComponent:()=>import("./chunk-CIMPBK5N.js").then(e=>e.PlatformAgentConfigsComponent)},{path:"me",canActivate:[t],loadComponent:()=>import("./chunk-BWMTUVRQ.js").then(e=>e.UserProfileComponent)},{path:"user",canActivate:[t],loadComponent:()=>import("./chunk-BWMTUVRQ.js").then(e=>e.UserProfileComponent)},{path:":namespaceId/integrations/new",canActivate:[t],loadComponent:()=>import("./chunk-P6ABEFHB.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations/:integrationId/edit",canActivate:[t],loadComponent:()=>import("./chunk-P6ABEFHB.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations",canActivate:[t],loadComponent:()=>import("./chunk-QDRJZVVJ.js").then(e=>e.IntegrationsAllScopesComponent)},{path:":namespaceId/ai-providers/new",canActivate:[t],loadComponent:()=>import("./chunk-3ODG3JTW.js").then(e=>e.AiProviderFormComponent)},{path:":namespaceId/ai-providers/:aiProviderId/edit",canActivate:[t],loadComponent:()=>import("./chunk-3ODG3JTW.js").then(e=>e.AiProviderFormComponent)},{path:":namespaceId/ai-providers",canActivate:[t],loadComponent:()=>import("./chunk-LH2YTDIO.js").then(e=>e.AiProvidersAllScopesComponent)},{path:":namespaceId/ai-models/new",canActivate:[t],loadComponent:()=>import("./chunk-ZJUUFIFM.js").then(e=>e.AiModelFormComponent)},{path:":namespaceId/ai-models/:modelId/edit",canActivate:[t],loadComponent:()=>import("./chunk-ZJUUFIFM.js").then(e=>e.AiModelFormComponent)},{path:":namespaceId/ai-models",canActivate:[t],loadComponent:()=>import("./chunk-RMRAPNZV.js").then(e=>e.NamespaceAiModelsComponent)},{path:":namespaceId/prompts/new",canActivate:[t],loadComponent:()=>import("./chunk-6F2QS5ZN.js").then(e=>e.PromptFormComponent)},{path:":namespaceId/prompts/:promptId/edit",canActivate:[t],loadComponent:()=>import("./chunk-6F2QS5ZN.js").then(e=>e.PromptFormComponent)},{path:":namespaceId/prompts",canActivate:[t],loadComponent:()=>import("./chunk-2L7CAI22.js").then(e=>e.NamespacePromptsComponent)},{path:":namespaceId/agent-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-5EHY76TA.js").then(e=>e.AgentConfigFormComponent)},{path:":namespaceId/agent-configs/:agentConfigId/edit",canActivate:[t],loadComponent:()=>import("./chunk-5EHY76TA.js").then(e=>e.AgentConfigFormComponent)},{path:":namespaceId/agent-configs/:agentConfigId/inspect",canActivate:[t],loadComponent:()=>import("./chunk-53URG3R4.js").then(e=>e.AgentConfigInspectComponent)},{path:":namespaceId/agent-configs",canActivate:[t],loadComponent:()=>import("./chunk-WSIKJ6LY.js").then(e=>e.NamespaceAgentConfigsComponent)},{path:"",redirectTo:"namespaces",pathMatch:"full"}]}]}];function j(e,n){e&1&&(c(0,"p",6),a(1,"No cases yet. Start one below."),d())}function G(e,n){if(e&1&&(c(0,"div",7)(1,"span",8),a(2),d(),c(3,"span",9),a(4),d()()),e&2){let o=n.$implicit;p(2),C(o.id),p(2),C(o.status)}}function K(e,n){if(e&1&&A(0,G,5,2,"div",7,x().trackById,!0),e&2){let o=_();y(o)}}function q(e,n){e&1&&f(0,j,2,0,"p",6)(1,K,2,0),e&2&&h(n.length===0?0:1)}var R=class e{http=l(F);router=l(T);route=l(k);config=l(L);caseController=l(N);preferences=l(D);namespaceId=this.route.snapshot.params.namespaceId;cases$=this.caseController.listByParentCase(this.namespaceId);inputValue=v("");onInput(n){this.inputValue.set(n.target.value)}onKeydown(n){this.preferences.shouldSend(n)&&(n.preventDefault(),this.submit())}submit(){this.inputValue().trim()&&this.http.post(`${this.config.basePath}/api/cases`,{namespaceId:this.namespaceId,metadata:{}}).subscribe(o=>{this.inputValue.set(""),this.router.navigate(["/agentos",this.namespaceId,"cases",o.id??""])})}trackById(n,o){return o.id??""}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["agentos-case-list"]],decls:11,vars:5,consts:[[1,"case-list"],[1,"case-list__header"],[1,"case-list__items"],[1,"case-list__composer"],["placeholder","Start a new case\u2026","rows","3",1,"case-list__input",3,"input","keydown","value"],[1,"case-list__hint"],[1,"case-list__empty"],[1,"case-list__item"],[1,"case-list__item-id"],[1,"case-list__item-status"]],template:function(o,m){if(o&1&&(c(0,"div",0)(1,"header",1)(2,"h2"),a(3,"Cases"),d()(),c(4,"div",2),f(5,q,2,1),M(6,"async"),d(),c(7,"div",3)(8,"textarea",4),E("input",function(b){return m.onInput(b)})("keydown",function(b){return m.onKeydown(b)}),d(),c(9,"p",5),a(10),d()()()),o&2){let s;p(5),h((s=O(6,3,m.cases$))?5:-1,s),p(3),S("value",m.inputValue()),p(2),C(m.preferences.composerHint())}},dependencies:[w],styles:[".case-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-width:720px;margin:0 auto;padding:2rem;gap:1.5rem}.case-list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.case-list__items[_ngcontent-%COMP%]{flex:1;overflow-y:auto}.case-list__empty[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.case-list__composer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.case-list__input[_ngcontent-%COMP%]{width:100%;resize:none;padding:.75rem 1rem;border-radius:12px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:var(--glass-bg, rgba(255, 255, 255, .72));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));backdrop-filter:var(--glass-backdrop-blur, blur(20px));color:var(--color-text, #1d1d1f);font-size:.95rem;font-family:inherit;line-height:1.5;outline:none;box-sizing:border-box;transition:border-color .15s ease}.case-list__input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.case-list__input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.case-list__hint[_ngcontent-%COMP%]{margin:0;font-size:.75rem;color:var(--color-text-secondary, #6e6e73);opacity:.7}"]})};var V=class e{case;static toListItem(n){return{id:n.id??"",name:n.title??n.id??"\u2014",description:void 0}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["agentos-case-item"]],inputs:{case:"case"},decls:0,vars:0,template:function(o,m){},encapsulation:2,changeDetection:0})};function J(e,n){if(e&1&&(i(0,"p",11),a(1," Last action: "),i(2,"strong"),a(3),r()()),e&2){let o=_();p(3),C(o.lastAction())}}var $=class e{lastAction=v(null);onSend(){this.lastAction.set("send")}onStop(){this.lastAction.set("stop")}onAttach(){this.lastAction.set("attach")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["agentos-hello"]],decls:35,vars:2,consts:[[1,"hello-agentos"],[1,"card"],[1,"badge"],[1,"principles"],[1,"demo"],[1,"demo-label"],[1,"demo-buttons"],["icon","send","variant","primary","title","Send",3,"action"],["icon","stop","variant","danger","title","Stop",3,"action"],["icon","attach_file","variant","default","title","Attach",3,"action"],["icon","mic","variant","default","title","Record",3,"action","disabled"],[1,"demo-feedback"]],template:function(o,m){o&1&&(i(0,"div",0)(1,"div",1)(2,"div",2),a(3,"AgentOS UI"),r(),i(4,"h1"),a(5,"Hello AgentOS"),r(),i(6,"p"),a(7," This component lives in "),i(8,"code"),a(9,"libs/agentos-ui"),r(),a(10," \u2014 isolated from Coday internals, ready to be published as "),i(11,"code"),a(12,"@whoz-oss/agentos-ui"),r(),a(13,". "),r(),P(14,"agentos-backend-status"),i(15,"ul",3)(16,"li"),a(17,"\u2726 No imports from Coday app"),r(),i(18,"li"),a(19,"\u2726 CSS custom properties as host contract"),r(),i(20,"li"),a(21,"\u2726 Standalone Angular components"),r(),i(22,"li"),a(23,"\u2726 Signals-first reactive state"),r()(),i(24,"div",4)(25,"p",5),a(26,"ds-icon-button from "),i(27,"code"),a(28,"@whoz-oss/design-system"),r()(),i(29,"div",6)(30,"ds-icon-button",7),u("action",function(){return m.onSend()}),r(),i(31,"ds-icon-button",8),u("action",function(){return m.onStop()}),r(),i(32,"ds-icon-button",9),u("action",function(){return m.onAttach()}),r(),i(33,"ds-icon-button",10),u("action",function(){return m.onAttach()}),r()(),f(34,J,4,1,"p",11),r()()()),o&2&&(p(33),I("disabled",!0),p(),h(m.lastAction()?34:-1))},dependencies:[z,H],styles:['@charset "UTF-8";.hello-agentos[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.card[_ngcontent-%COMP%]{background:var(--glass-bg, rgba(255, 255, 255, .72));border:1px solid var(--glass-border, rgba(255, 255, 255, .18));box-shadow:var(--glass-shadow, 0 8px 32px 0 rgba(31, 38, 135, .15));backdrop-filter:var(--glass-backdrop-blur, blur(20px));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));border-radius:20px;padding:3rem;max-width:480px;width:100%;text-align:center}.badge[_ngcontent-%COMP%]{display:inline-block;background:var(--color-primary, #007aff);color:var(--color-text-inverse, #ffffff);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.25rem .75rem;border-radius:100px;margin-bottom:1.5rem}h1[_ngcontent-%COMP%]{color:var(--color-text, #1d1d1f);font-size:2rem;font-weight:700;margin:0 0 1rem;letter-spacing:-.02em}p[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);line-height:1.6;margin:0 0 1.5rem}p[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.principles[_ngcontent-%COMP%]{list-style:none;margin:0 0 1.5rem;padding:0;text-align:left;display:flex;flex-direction:column;gap:.5rem}.principles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;padding:.5rem .75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:8px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%]{border-top:1px solid var(--color-border-light, rgba(40, 40, 40, .08));padding-top:1.25rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.8rem;margin:0 0 .75rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.demo[_ngcontent-%COMP%] .demo-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;justify-content:center;padding:.75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:12px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%]{margin:.75rem 0 0;font-size:.85rem;color:var(--color-text-secondary, #6e6e73)}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--color-primary, #007aff)}']})};export{ve as AGENTOS_ROUTES,me as ActionCardChipsDirective,pe as ActionCardComponent,Y as AgentosShellComponent,W as AgentosThemeService,ee as AgentosUserPreferencesService,H as BackendStatusComponent,te as CaseChatComponent,oe as CaseDrawerComponent,ne as CaseHomeComponent,V as CaseItemComponent,R as CaseListComponent,ae as CaseShellComponent,Z as ENTER_KEY_BEHAVIORS,ie as HeaderComponent,$ as HelloAgentosComponent,re as LayoutComponent,fe as MarkdownPipe,se as NamespaceItemComponent,ce as NamespaceListComponent,Q as THEME_MODES,X as THEME_PORT,D as USER_PREFERENCES_PORT,de as UserAdminStateService,le as UserFormComponent,ge as UserItemComponent,Ce as UserListComponent,t as agentosReadyGuard};
1
+ import{a as fe}from"./chunk-LM2BKZRF.js";import{a as le}from"./chunk-43DMEMMQ.js";import{a as ge,b as Ce}from"./chunk-3NOI65IY.js";import{a as de}from"./chunk-5K5EFCNT.js";import{a as Y}from"./chunk-5VKJNF6W.js";import{a as te,b as ne,c as oe,d as ae}from"./chunk-CCPU2LL3.js";import{a as Z,b as ee,c as D}from"./chunk-W6TYWCQH.js";import"./chunk-BMUZTI7K.js";import{a as Q,b as W,c as X}from"./chunk-EQXGFCI5.js";import{a as H,b as ie,c as re}from"./chunk-F42BGKID.js";import"./chunk-VIDPCJ3F.js";import{a as me,b as pe,c as se,d as ce}from"./chunk-PNFA7PN2.js";import{a as L,e as N}from"./chunk-G2BRVRGR.js";import"./chunk-4F2LQOD7.js";import{a as k,c as T}from"./chunk-7MQRVE7E.js";import{o as z}from"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import{Cb as S,Db as u,Eb as E,Fb as _,Ic as w,Ka as p,Tb as a,Ub as C,Uc as F,Wa as g,ca as l,ec as M,fc as O,kb as x,lb as f,mb as h,pb as A,qb as y,rb as I,sb as i,ta as v,tb as r,ub as P,vb as c,wb as d}from"./chunk-5J7BTB5J.js";var t=()=>!0;var ve=[{path:"",loadComponent:()=>import("./chunk-SCK76QV6.js").then(e=>e.AgentosShellComponent),children:[{path:"home",canActivate:[t],loadComponent:()=>import("./chunk-VHC775VZ.js").then(e=>e.CaseShellComponent)},{path:"",loadComponent:()=>import("./chunk-UDA26TV3.js").then(e=>e.LayoutComponent),children:[{path:"namespaces/new",canActivate:[t],loadComponent:()=>import("./chunk-RJBF3TIH.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces/:namespaceId/edit",canActivate:[t],loadComponent:()=>import("./chunk-RJBF3TIH.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces",canActivate:[t],loadComponent:()=>import("./chunk-LMFI6Y77.js").then(e=>e.NamespaceListComponent)},{path:"admin",canActivate:[t],loadComponent:()=>import("./chunk-FMAU2O5I.js").then(e=>e.AdminHomeComponent)},{path:"admin/users/new",canActivate:[t],loadComponent:()=>import("./chunk-3AOPEZPX.js").then(e=>e.UserFormComponent)},{path:"admin/users/:userId/edit",canActivate:[t],loadComponent:()=>import("./chunk-3AOPEZPX.js").then(e=>e.UserFormComponent)},{path:"admin/users",canActivate:[t],loadComponent:()=>import("./chunk-M6ORKUDA.js").then(e=>e.UserListComponent)},{path:"admin/integration-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-GUB4VYOT.js").then(e=>e.IntegrationFormComponent)},{path:"admin/integration-configs/:integrationId/edit",canActivate:[t],loadComponent:()=>import("./chunk-GUB4VYOT.js").then(e=>e.IntegrationFormComponent)},{path:"admin/integration-configs",canActivate:[t],loadComponent:()=>import("./chunk-2O4IDVFE.js").then(e=>e.PlatformIntegrationConfigsComponent)},{path:"admin/prompts/new",canActivate:[t],loadComponent:()=>import("./chunk-KZJRQ6RN.js").then(e=>e.PromptFormComponent)},{path:"admin/prompts/:promptId/edit",canActivate:[t],loadComponent:()=>import("./chunk-KZJRQ6RN.js").then(e=>e.PromptFormComponent)},{path:"admin/prompts",canActivate:[t],loadComponent:()=>import("./chunk-UAHCUD67.js").then(e=>e.PlatformPromptsComponent)},{path:"admin/ai-providers/new",canActivate:[t],loadComponent:()=>import("./chunk-SF7PCURW.js").then(e=>e.AiProviderFormComponent)},{path:"admin/ai-providers/:aiProviderId/edit",canActivate:[t],loadComponent:()=>import("./chunk-SF7PCURW.js").then(e=>e.AiProviderFormComponent)},{path:"admin/ai-providers",canActivate:[t],loadComponent:()=>import("./chunk-FOAW6HUH.js").then(e=>e.PlatformAiProvidersComponent)},{path:"admin/ai-models/new",canActivate:[t],loadComponent:()=>import("./chunk-4KEHW6KL.js").then(e=>e.AiModelFormComponent)},{path:"admin/ai-models/:modelId/edit",canActivate:[t],loadComponent:()=>import("./chunk-4KEHW6KL.js").then(e=>e.AiModelFormComponent)},{path:"admin/ai-models",canActivate:[t],loadComponent:()=>import("./chunk-IOREZEED.js").then(e=>e.PlatformAiModelsComponent)},{path:"admin/agent-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-A2R5GVPT.js").then(e=>e.AgentConfigFormComponent)},{path:"admin/agent-configs/:agentConfigId/edit",canActivate:[t],loadComponent:()=>import("./chunk-A2R5GVPT.js").then(e=>e.AgentConfigFormComponent)},{path:"admin/agent-configs/:agentConfigId/inspect",canActivate:[t],loadComponent:()=>import("./chunk-JIHPEYRG.js").then(e=>e.AgentConfigInspectComponent)},{path:"admin/agent-configs",canActivate:[t],loadComponent:()=>import("./chunk-S7MAZ5PQ.js").then(e=>e.PlatformAgentConfigsComponent)},{path:"me",canActivate:[t],loadComponent:()=>import("./chunk-NIWF7LLH.js").then(e=>e.UserProfileComponent)},{path:"user",canActivate:[t],loadComponent:()=>import("./chunk-NIWF7LLH.js").then(e=>e.UserProfileComponent)},{path:":namespaceId/integrations/new",canActivate:[t],loadComponent:()=>import("./chunk-GUB4VYOT.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations/:integrationId/edit",canActivate:[t],loadComponent:()=>import("./chunk-GUB4VYOT.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations",canActivate:[t],loadComponent:()=>import("./chunk-BQHUHW7P.js").then(e=>e.IntegrationsAllScopesComponent)},{path:":namespaceId/ai-providers/new",canActivate:[t],loadComponent:()=>import("./chunk-SF7PCURW.js").then(e=>e.AiProviderFormComponent)},{path:":namespaceId/ai-providers/:aiProviderId/edit",canActivate:[t],loadComponent:()=>import("./chunk-SF7PCURW.js").then(e=>e.AiProviderFormComponent)},{path:":namespaceId/ai-providers",canActivate:[t],loadComponent:()=>import("./chunk-26MGIRJF.js").then(e=>e.AiProvidersAllScopesComponent)},{path:":namespaceId/ai-models/new",canActivate:[t],loadComponent:()=>import("./chunk-4KEHW6KL.js").then(e=>e.AiModelFormComponent)},{path:":namespaceId/ai-models/:modelId/edit",canActivate:[t],loadComponent:()=>import("./chunk-4KEHW6KL.js").then(e=>e.AiModelFormComponent)},{path:":namespaceId/ai-models",canActivate:[t],loadComponent:()=>import("./chunk-LX5DYIMF.js").then(e=>e.NamespaceAiModelsComponent)},{path:":namespaceId/prompts/new",canActivate:[t],loadComponent:()=>import("./chunk-KZJRQ6RN.js").then(e=>e.PromptFormComponent)},{path:":namespaceId/prompts/:promptId/edit",canActivate:[t],loadComponent:()=>import("./chunk-KZJRQ6RN.js").then(e=>e.PromptFormComponent)},{path:":namespaceId/prompts",canActivate:[t],loadComponent:()=>import("./chunk-CU4C25HM.js").then(e=>e.NamespacePromptsComponent)},{path:":namespaceId/agent-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-A2R5GVPT.js").then(e=>e.AgentConfigFormComponent)},{path:":namespaceId/agent-configs/:agentConfigId/edit",canActivate:[t],loadComponent:()=>import("./chunk-A2R5GVPT.js").then(e=>e.AgentConfigFormComponent)},{path:":namespaceId/agent-configs/:agentConfigId/inspect",canActivate:[t],loadComponent:()=>import("./chunk-JIHPEYRG.js").then(e=>e.AgentConfigInspectComponent)},{path:":namespaceId/agent-configs",canActivate:[t],loadComponent:()=>import("./chunk-2P74VZU4.js").then(e=>e.NamespaceAgentConfigsComponent)},{path:"",redirectTo:"namespaces",pathMatch:"full"}]}]}];function j(e,n){e&1&&(c(0,"p",6),a(1,"No cases yet. Start one below."),d())}function G(e,n){if(e&1&&(c(0,"div",7)(1,"span",8),a(2),d(),c(3,"span",9),a(4),d()()),e&2){let o=n.$implicit;p(2),C(o.id),p(2),C(o.status)}}function K(e,n){if(e&1&&A(0,G,5,2,"div",7,x().trackById,!0),e&2){let o=_();y(o)}}function q(e,n){e&1&&f(0,j,2,0,"p",6)(1,K,2,0),e&2&&h(n.length===0?0:1)}var R=class e{http=l(F);router=l(T);route=l(k);config=l(L);caseController=l(N);preferences=l(D);namespaceId=this.route.snapshot.params.namespaceId;cases$=this.caseController.listByParentCase(this.namespaceId);inputValue=v("");onInput(n){this.inputValue.set(n.target.value)}onKeydown(n){this.preferences.shouldSend(n)&&(n.preventDefault(),this.submit())}submit(){this.inputValue().trim()&&this.http.post(`${this.config.basePath}/api/cases`,{namespaceId:this.namespaceId,metadata:{}}).subscribe(o=>{this.inputValue.set(""),this.router.navigate(["/agentos",this.namespaceId,"cases",o.id??""])})}trackById(n,o){return o.id??""}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["agentos-case-list"]],decls:11,vars:5,consts:[[1,"case-list"],[1,"case-list__header"],[1,"case-list__items"],[1,"case-list__composer"],["placeholder","Start a new case\u2026","rows","3",1,"case-list__input",3,"input","keydown","value"],[1,"case-list__hint"],[1,"case-list__empty"],[1,"case-list__item"],[1,"case-list__item-id"],[1,"case-list__item-status"]],template:function(o,m){if(o&1&&(c(0,"div",0)(1,"header",1)(2,"h2"),a(3,"Cases"),d()(),c(4,"div",2),f(5,q,2,1),M(6,"async"),d(),c(7,"div",3)(8,"textarea",4),E("input",function(b){return m.onInput(b)})("keydown",function(b){return m.onKeydown(b)}),d(),c(9,"p",5),a(10),d()()()),o&2){let s;p(5),h((s=O(6,3,m.cases$))?5:-1,s),p(3),S("value",m.inputValue()),p(2),C(m.preferences.composerHint())}},dependencies:[w],styles:[".case-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-width:720px;margin:0 auto;padding:2rem;gap:1.5rem}.case-list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.case-list__items[_ngcontent-%COMP%]{flex:1;overflow-y:auto}.case-list__empty[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.case-list__composer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.case-list__input[_ngcontent-%COMP%]{width:100%;resize:none;padding:.75rem 1rem;border-radius:12px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:var(--glass-bg, rgba(255, 255, 255, .72));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));backdrop-filter:var(--glass-backdrop-blur, blur(20px));color:var(--color-text, #1d1d1f);font-size:.95rem;font-family:inherit;line-height:1.5;outline:none;box-sizing:border-box;transition:border-color .15s ease}.case-list__input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.case-list__input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.case-list__hint[_ngcontent-%COMP%]{margin:0;font-size:.75rem;color:var(--color-text-secondary, #6e6e73);opacity:.7}"]})};var V=class e{case;static toListItem(n){return{id:n.id??"",name:n.title??n.id??"\u2014",description:void 0}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["agentos-case-item"]],inputs:{case:"case"},decls:0,vars:0,template:function(o,m){},encapsulation:2,changeDetection:0})};function J(e,n){if(e&1&&(i(0,"p",11),a(1," Last action: "),i(2,"strong"),a(3),r()()),e&2){let o=_();p(3),C(o.lastAction())}}var $=class e{lastAction=v(null);onSend(){this.lastAction.set("send")}onStop(){this.lastAction.set("stop")}onAttach(){this.lastAction.set("attach")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["agentos-hello"]],decls:35,vars:2,consts:[[1,"hello-agentos"],[1,"card"],[1,"badge"],[1,"principles"],[1,"demo"],[1,"demo-label"],[1,"demo-buttons"],["icon","send","variant","primary","title","Send",3,"action"],["icon","stop","variant","danger","title","Stop",3,"action"],["icon","attach_file","variant","default","title","Attach",3,"action"],["icon","mic","variant","default","title","Record",3,"action","disabled"],[1,"demo-feedback"]],template:function(o,m){o&1&&(i(0,"div",0)(1,"div",1)(2,"div",2),a(3,"AgentOS UI"),r(),i(4,"h1"),a(5,"Hello AgentOS"),r(),i(6,"p"),a(7," This component lives in "),i(8,"code"),a(9,"libs/agentos-ui"),r(),a(10," \u2014 isolated from Coday internals, ready to be published as "),i(11,"code"),a(12,"@whoz-oss/agentos-ui"),r(),a(13,". "),r(),P(14,"agentos-backend-status"),i(15,"ul",3)(16,"li"),a(17,"\u2726 No imports from Coday app"),r(),i(18,"li"),a(19,"\u2726 CSS custom properties as host contract"),r(),i(20,"li"),a(21,"\u2726 Standalone Angular components"),r(),i(22,"li"),a(23,"\u2726 Signals-first reactive state"),r()(),i(24,"div",4)(25,"p",5),a(26,"ds-icon-button from "),i(27,"code"),a(28,"@whoz-oss/design-system"),r()(),i(29,"div",6)(30,"ds-icon-button",7),u("action",function(){return m.onSend()}),r(),i(31,"ds-icon-button",8),u("action",function(){return m.onStop()}),r(),i(32,"ds-icon-button",9),u("action",function(){return m.onAttach()}),r(),i(33,"ds-icon-button",10),u("action",function(){return m.onAttach()}),r()(),f(34,J,4,1,"p",11),r()()()),o&2&&(p(33),I("disabled",!0),p(),h(m.lastAction()?34:-1))},dependencies:[z,H],styles:['@charset "UTF-8";.hello-agentos[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.card[_ngcontent-%COMP%]{background:var(--glass-bg, rgba(255, 255, 255, .72));border:1px solid var(--glass-border, rgba(255, 255, 255, .18));box-shadow:var(--glass-shadow, 0 8px 32px 0 rgba(31, 38, 135, .15));backdrop-filter:var(--glass-backdrop-blur, blur(20px));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));border-radius:20px;padding:3rem;max-width:480px;width:100%;text-align:center}.badge[_ngcontent-%COMP%]{display:inline-block;background:var(--color-primary, #007aff);color:var(--color-text-inverse, #ffffff);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.25rem .75rem;border-radius:100px;margin-bottom:1.5rem}h1[_ngcontent-%COMP%]{color:var(--color-text, #1d1d1f);font-size:2rem;font-weight:700;margin:0 0 1rem;letter-spacing:-.02em}p[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);line-height:1.6;margin:0 0 1.5rem}p[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.principles[_ngcontent-%COMP%]{list-style:none;margin:0 0 1.5rem;padding:0;text-align:left;display:flex;flex-direction:column;gap:.5rem}.principles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;padding:.5rem .75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:8px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%]{border-top:1px solid var(--color-border-light, rgba(40, 40, 40, .08));padding-top:1.25rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.8rem;margin:0 0 .75rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.demo[_ngcontent-%COMP%] .demo-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;justify-content:center;padding:.75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:12px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%]{margin:.75rem 0 0;font-size:.85rem;color:var(--color-text-secondary, #6e6e73)}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--color-primary, #007aff)}']})};export{ve as AGENTOS_ROUTES,me as ActionCardChipsDirective,pe as ActionCardComponent,Y as AgentosShellComponent,W as AgentosThemeService,ee as AgentosUserPreferencesService,H as BackendStatusComponent,te as CaseChatComponent,oe as CaseDrawerComponent,ne as CaseHomeComponent,V as CaseItemComponent,R as CaseListComponent,ae as CaseShellComponent,Z as ENTER_KEY_BEHAVIORS,ie as HeaderComponent,$ as HelloAgentosComponent,re as LayoutComponent,fe as MarkdownPipe,se as NamespaceItemComponent,ce as NamespaceListComponent,Q as THEME_MODES,X as THEME_PORT,D as USER_PREFERENCES_PORT,de as UserAdminStateService,le as UserFormComponent,ge as UserItemComponent,Ce as UserListComponent,t as agentosReadyGuard};
@@ -1 +1 @@
1
- import{h as re}from"./chunk-BD6N2UN6.js";import{c as ae}from"./chunk-7MQRVE7E.js";import{o as se,t as ce}from"./chunk-BGEXT3EN.js";import{a as O}from"./chunk-IRZNRZ5Q.js";import{Bb as x,Db as l,Eb as q,Fb as a,Gb as U,Hb as W,Ic as ie,Ja as j,Ka as u,Mb as J,Ob as K,Pb as X,Rb as Y,S as B,Tb as _,Ub as D,Vb as Z,Wa as y,Ya as F,ab as G,bc as E,ca as R,ec as ee,fc as te,ga as s,ha as c,i as L,ia as h,ic as ne,ja as N,lb as C,ma as H,mb as f,oc as p,pb as z,pc as M,qb as Q,rb as I,rc as oe,sb as d,t as $,ta as b,tb as m,ub as k,vb as v,wb as g,xb as P,yb as S,zb as V}from"./chunk-5J7BTB5J.js";var pe=[[["","agentosCardChips",""]]],_e=["[agentosCardChips]"],ue=(i,t)=>t.key;function ge(i,t){i&1&&P(0,"div",14)}function Ce(i,t){if(i&1){let e=x();v(0,"button",16),q("click",function(){s(e);let n=a().$implicit,r=a(3);return c(r.onMenuItemClick(n.key))}),_(1),g()}if(i&2){let e=a().$implicit;Y("ac__menu-item--danger",e.variant==="danger"),u(),Z(" ",e.label," ")}}function fe(i,t){if(i&1&&C(0,ge,1,0,"div",14)(1,Ce,2,3,"button",15),i&2){let e=t.$implicit;f(e.variant==="separator"?0:1)}}function he(i,t){if(i&1&&(v(0,"div",13),z(1,fe,2,1,null,null,ue),g()),i&2){let e=a(2);u(),Q(e.menuItems())}}function ve(i,t){if(i&1){let e=x();v(0,"div",6)(1,"button",8),q("click",function(n){s(e);let r=a();return c(r.toggleMenu(n))}),h(),v(2,"svg",9),P(3,"circle",10)(4,"circle",11)(5,"circle",12),g()(),C(6,he,3,0,"div",13),g()}if(i&2){let e=a();u(6),f(e.menuOpen()?6:-1)}}function xe(i,t){i&1&&(v(0,"div",7),W(1),g())}var w=class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=F({type:i,selectors:[["","agentosCardChips",""]]})},A=class i{name=M.required();mark=M(null);menuItems=M([]);nameClicked=p();menuAction=p();chipsSlot=oe(w);menuOpen=b(!1);get resolvedMark(){return this.mark()??(this.name().charAt(0).toUpperCase()||"?")}get hasChips(){return this.chipsSlot()!==void 0}get hasMenu(){return this.menuItems().length>0}toggleMenu(t){t.stopPropagation(),this.menuOpen.update(e=>!e)}onMenuItemClick(t){this.menuOpen.set(!1),this.menuAction.emit(t)}onDocumentClick(){this.menuOpen.set(!1)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["agentos-action-card"]],contentQueries:function(e,o,n){e&1&&J(n,o.chipsSlot,w,5),e&2&&K()},hostBindings:function(e,o){e&1&&l("click",function(){return o.onDocumentClick()},j)},inputs:{name:[1,"name"],mark:[1,"mark"],menuItems:[1,"menuItems"]},outputs:{nameClicked:"nameClicked",menuAction:"menuAction"},ngContentSelectors:_e,decls:10,vars:4,consts:[[1,"ac"],[1,"ac__header"],[1,"ac__id"],["aria-hidden","true",1,"ac__mark"],[1,"ac__meta"],["type","button",1,"ac__name",3,"click"],[1,"ac__more"],[1,"ac__chips"],["type","button","title","More actions",1,"ac__more-btn",3,"click"],["width","16","height","16","viewBox","0 0 24 24","aria-hidden","true"],["cx","6","cy","12","r","1.6","fill","currentColor"],["cx","12","cy","12","r","1.6","fill","currentColor"],["cx","18","cy","12","r","1.6","fill","currentColor"],["role","menu",1,"ac__menu"],[1,"ac__menu-sep"],["type","button","role","menuitem",1,"ac__menu-item",3,"ac__menu-item--danger"],["type","button","role","menuitem",1,"ac__menu-item",3,"click"]],template:function(e,o){e&1&&(U(pe),v(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),_(4),g(),v(5,"div",4)(6,"button",5),q("click",function(){return o.nameClicked.emit()}),_(7),g()()(),C(8,ve,7,1,"div",6),g(),C(9,xe,2,0,"div",7),g()),e&2&&(u(4),D(o.resolvedMark),u(3),D(o.name()),u(),f(o.hasMenu?8:-1),u(),f(o.hasChips?9:-1))},styles:[".ac[_ngcontent-%COMP%]{background:var(--color-bg-secondary, #fff);border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:12px;box-shadow:0 1px 3px var(--color-shadow, rgba(0, 0, 0, .05));overflow:visible;transition:box-shadow .15s ease,border-color .15s ease}.ac[_ngcontent-%COMP%]:hover{box-shadow:0 2px 8px var(--color-shadow, rgba(0, 0, 0, .08));border-color:var(--color-border, rgba(0, 0, 0, .15))}.ac__header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:16px 18px 14px}.ac__id[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.ac__mark[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px;background:#161616;color:#fff;border:none;display:flex;align-items:center;justify-content:center;font:700 13px Inter,sans-serif;flex-shrink:0;align-self:flex-start}[data-theme=dark][_ngcontent-%COMP%] .ac__mark[_ngcontent-%COMP%]{background:transparent;border:1.5px solid var(--color-border, rgba(255, 255, 255, .15));color:var(--color-text, #f5f5f7)}.ac__meta[_ngcontent-%COMP%]{min-width:0}.ac__name[_ngcontent-%COMP%]{display:block;font:600 14px/1.3 Inter,sans-serif;color:var(--color-text, #161616);word-break:break-word;background:none;border:none;padding:0;cursor:pointer;text-align:left}.ac__name[_ngcontent-%COMP%]:hover{text-decoration:underline}.ac__name[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary, #2a5fc9);outline-offset:2px;border-radius:2px}.ac__more[_ngcontent-%COMP%]{position:relative;flex-shrink:0}.ac__more-btn[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:6px;border:none;background:transparent;color:var(--color-text-secondary, rgba(0, 0, 0, .35));display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s ease,color .12s ease}.ac__more-btn[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .05));color:var(--color-text, #161616)}.ac__menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;min-width:180px;background:var(--color-modal-bg, #fff);border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:10px;padding:5px;z-index:200;box-shadow:var(--color-modal-shadow, 0 6px 20px rgba(0, 0, 0, .08))}.ac__menu-sep[_ngcontent-%COMP%]{height:1px;background:var(--color-border, rgba(0, 0, 0, .07));margin:4px}.ac__menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:8px 10px;border-radius:6px;border:none;background:transparent;font:500 12.5px Inter,sans-serif;color:var(--color-text, #161616);text-align:left;cursor:pointer;transition:background .1s ease}.ac__menu-item[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .04))}.ac__menu-item--danger[_ngcontent-%COMP%]{color:var(--color-error, #a5140a)}.ac__menu-item--danger[_ngcontent-%COMP%]:hover{background:rgba(from var(--color-error, #ff453a) r g b/.08)}.ac__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 16px}[_nghost-%COMP%] .ac-chip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 12px 0 10px;border-radius:999px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:var(--color-surface-secondary, rgba(0, 0, 0, .03));color:var(--color-text, #161616);font:500 11.5px Inter,sans-serif;cursor:pointer;white-space:nowrap;transition:background .12s ease,border-color .12s ease}[_nghost-%COMP%] .ac-chip:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .06));border-color:var(--color-border, rgba(0, 0, 0, .16))}[_nghost-%COMP%] .ac-chip svg{flex-shrink:0}"],changeDetection:0})};var be=()=>[];function ye(i,t){if(i&1){let e=x();S(0,1),d(1,"span",2),_(2,"Delete?"),m(),d(3,"ds-icon-button",3),l("action",function(){s(e);let n=a();return c(n.onDeleteConfirmed())}),m(),d(4,"ds-icon-button",4),l("action",function(){s(e);let n=a();return c(n.onDeleteCancelled())}),m(),V()}}function ke(i,t){if(i&1){let e=x();S(0,1),d(1,"button",5),l("click",function(){s(e);let n=a();return c(n.onIntegrations())}),h(),d(2,"svg",6),k(3,"path",7)(4,"path",8),m(),_(5," Integrations "),m(),N(),d(6,"button",5),l("click",function(){s(e);let n=a();return c(n.onAiProviders())}),h(),d(7,"svg",6),k(8,"rect",9)(9,"rect",10)(10,"path",11),m(),_(11," AI Providers "),m(),N(),d(12,"button",5),l("click",function(){s(e);let n=a();return c(n.onAiModels())}),h(),d(13,"svg",6),k(14,"path",12),m(),_(15," AI Models "),m(),N(),d(16,"button",5),l("click",function(){s(e);let n=a();return c(n.onAgentConfigs())}),h(),d(17,"svg",6),k(18,"path",13)(19,"circle",14)(20,"circle",15),m(),_(21," Agent Configs "),m(),N(),d(22,"button",5),l("click",function(){s(e);let n=a();return c(n.onPrompts())}),h(),d(23,"svg",6),k(24,"path",16)(25,"path",17)(26,"path",18),m(),_(27," Prompts "),m(),V()}}var T=class i{namespace=M.required();selected=p();editRequested=p();integrationsRequested=p();aiProvidersRequested=p();aiModelsRequested=p();agentConfigsRequested=p();promptsRequested=p();deleteRequested=p();pendingDelete=b(!1);menuItems=[{key:"edit",label:"Edit namespace"},{key:"separator",label:"",variant:"separator"},{key:"delete",label:"Delete namespace",variant:"danger"}];onSelect(){this.selected.emit(this.namespace())}onIntegrations(){this.integrationsRequested.emit(this.namespace())}onAiProviders(){this.aiProvidersRequested.emit(this.namespace())}onAiModels(){this.aiModelsRequested.emit(this.namespace())}onAgentConfigs(){this.agentConfigsRequested.emit(this.namespace())}onPrompts(){this.promptsRequested.emit(this.namespace())}onMenuAction(t){switch(t){case"edit":this.editRequested.emit(this.namespace());break;case"delete":this.pendingDelete.set(!0);break}}onDeleteConfirmed(){this.pendingDelete.set(!1),this.deleteRequested.emit(this.namespace())}onDeleteCancelled(){this.pendingDelete.set(!1)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["agentos-namespace-item"]],inputs:{namespace:[1,"namespace"]},outputs:{selected:"selected",editRequested:"editRequested",integrationsRequested:"integrationsRequested",aiProvidersRequested:"aiProvidersRequested",aiModelsRequested:"aiModelsRequested",agentConfigsRequested:"agentConfigsRequested",promptsRequested:"promptsRequested",deleteRequested:"deleteRequested"},decls:3,vars:4,consts:[[3,"nameClicked","menuAction","name","menuItems"],["agentosCardChips",""],[1,"ns-confirm-label"],["icon","check","variant","danger","title","Confirm deletion",3,"action"],["icon","close","title","Cancel",3,"action"],["type","button",1,"ac-chip",3,"click"],["width","13","height","13","viewBox","0 0 24 24","fill","none","aria-hidden","true"],["d","M8 2v4M16 2v4M6 8h12v3a6 6 0 01-12 0V8z","stroke","currentColor","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],["d","M12 17v3","stroke","currentColor","stroke-width","1.6","stroke-linecap","round"],["x","7","y","7","width","10","height","10","rx","1.5","stroke","currentColor","stroke-width","1.6"],["x","10","y","10","width","4","height","4","rx","0.5","stroke","currentColor","stroke-width","1.4"],["d","M9 2v3M12 2v3M15 2v3M9 19v3M12 19v3M15 19v3M2 9h3M2 12h3M2 15h3M19 9h3M19 12h3M19 15h3","stroke","currentColor","stroke-width","1.4","stroke-linecap","round"],["d","M12 3l1.8 5.6L19 10l-5.2 1.6L12 17l-1.8-5.4L5 10l5.2-1.4L12 3z","stroke","currentColor","stroke-width","1.5","stroke-linejoin","round"],["d","M4 7h9M17 7h3M4 17h3M11 17h9","stroke","currentColor","stroke-width","1.6","stroke-linecap","round"],["cx","13","cy","7","r","2.2","stroke","currentColor","stroke-width","1.6"],["cx","8","cy","17","r","2.2","stroke","currentColor","stroke-width","1.6"],["d","M7 3h7l4 4v14a1 1 0 01-1 1H7a1 1 0 01-1-1V4a1 1 0 011-1z","stroke","currentColor","stroke-width","1.6","stroke-linejoin","round"],["d","M14 3v4h4","stroke","currentColor","stroke-width","1.6","stroke-linejoin","round"],["d","M9 13h6M9 17h6","stroke","currentColor","stroke-width","1.4","stroke-linecap","round"]],template:function(e,o){e&1&&(d(0,"agentos-action-card",0),l("nameClicked",function(){return o.onSelect()})("menuAction",function(r){return o.onMenuAction(r)}),C(1,ye,5,0,"ng-container",1)(2,ke,28,0,"ng-container",1),m()),e&2&&(I("name",o.namespace().name)("menuItems",o.pendingDelete()?E(3,be):o.menuItems),u(),f(o.pendingDelete()?1:2))},dependencies:[A,w,se],styles:[".ns-confirm-label[_ngcontent-%COMP%]{font:500 12px Inter,sans-serif;color:var(--color-error, #a5140a);white-space:nowrap;align-self:center}"],changeDetection:0})};var Me=()=>[];function we(i,t){if(i&1){let e=x();d(0,"agentos-namespace-item",3),l("selected",function(n){s(e);let r=a(2);return c(r.navigateToHome(n.id??""))})("editRequested",function(n){s(e);let r=a(2);return c(r.navigateToEdit(n))})("deleteRequested",function(n){s(e);let r=a(2);return c(r.deleteNamespace(n))})("integrationsRequested",function(n){s(e);let r=a(2);return c(r.openIntegrations(n))})("aiProvidersRequested",function(n){s(e);let r=a(2);return c(r.openAiProviders(n))})("aiModelsRequested",function(n){s(e);let r=a(2);return c(r.openAiModels(n))})("agentConfigsRequested",function(n){s(e);let r=a(2);return c(r.openAgentConfigs(n))})("promptsRequested",function(n){s(e);let r=a(2);return c(r.openPrompts(n))}),m()}i&2&&I("namespace",t)}function Ne(i,t){if(i&1&&C(0,we,1,1,"agentos-namespace-item",2),i&2){let e,o=t.$implicit,n=a();f((e=n.namespacesById().get(o.id))?0:-1,e)}}var le=class i{router=R(ae);namespaceController=R(re);destroyRef=R(H);refresh$=new L(void 0);namespaces$=this.refresh$.pipe(B(()=>this.namespaceController.listAllNamespace()));namespaceItems$=this.namespaces$.pipe($(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.description,badges:e.defaultAgentName?[{label:e.defaultAgentName,variant:"info"}]:void 0}))));namespacesById=b(new Map);constructor(){this.namespaces$.pipe(O(this.destroyRef)).subscribe(t=>{this.namespacesById.set(new Map(t.map(e=>[e.id??"",e])))})}navigateToHome(t){this.router.navigate(["/agentos/home"],{queryParams:{ns:t}})}navigateToCreate(){this.router.navigate(["/agentos/namespaces/new"])}navigateToEdit(t){this.router.navigate(["/agentos/namespaces",t.id??"","edit"])}openIntegrations(t){this.router.navigate(["/agentos",t.id,"integrations"])}openAiProviders(t){this.router.navigate(["/agentos",t.id,"ai-providers"])}openAiModels(t){this.router.navigate(["/agentos",t.id,"ai-models"])}openAgentConfigs(t){this.router.navigate(["/agentos",t.id,"agent-configs"])}openPrompts(t){this.router.navigate(["/agentos",t.id,"prompts"])}deleteNamespace(t){this.namespaceController.deleteNamespace(t.id??"").pipe(O(this.destroyRef)).subscribe(()=>this.refresh$.next())}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["agentos-namespace-list"]],decls:4,vars:6,consts:[["namespaceItemTpl",""],["title","Namespaces","emptyMessage","No namespaces yet. Create one to get started.","cardMinWidth","400px",3,"itemSelected","createRequested","items","showCreate","itemTemplate"],[3,"namespace"],[3,"selected","editRequested","deleteRequested","integrationsRequested","aiProvidersRequested","aiModelsRequested","agentConfigsRequested","promptsRequested","namespace"]],template:function(e,o){if(e&1&&(d(0,"ds-entity-list",1),ee(1,"async"),l("itemSelected",function(r){return o.navigateToHome(r)})("createRequested",function(){return o.navigateToCreate()}),m(),G(2,Ne,1,1,"ng-template",null,0,ne)),e&2){let n=X(3);I("items",te(1,3,o.namespaceItems$)??E(5,Me))("showCreate",!0)("itemTemplate",n)}},dependencies:[T,ce,ie],encapsulation:2,changeDetection:0})};export{w as a,A as b,T as c,le as d};
1
+ import{h as re}from"./chunk-G2BRVRGR.js";import{c as ae}from"./chunk-7MQRVE7E.js";import{o as se,t as ce}from"./chunk-BGEXT3EN.js";import{a as O}from"./chunk-IRZNRZ5Q.js";import{Bb as x,Db as l,Eb as q,Fb as a,Gb as U,Hb as W,Ic as ie,Ja as j,Ka as u,Mb as J,Ob as K,Pb as X,Rb as Y,S as B,Tb as _,Ub as D,Vb as Z,Wa as y,Ya as F,ab as G,bc as E,ca as R,ec as ee,fc as te,ga as s,ha as c,i as L,ia as h,ic as ne,ja as N,lb as C,ma as H,mb as f,oc as p,pb as z,pc as M,qb as Q,rb as I,rc as oe,sb as d,t as $,ta as b,tb as m,ub as k,vb as v,wb as g,xb as P,yb as S,zb as V}from"./chunk-5J7BTB5J.js";var pe=[[["","agentosCardChips",""]]],_e=["[agentosCardChips]"],ue=(i,t)=>t.key;function ge(i,t){i&1&&P(0,"div",14)}function Ce(i,t){if(i&1){let e=x();v(0,"button",16),q("click",function(){s(e);let n=a().$implicit,r=a(3);return c(r.onMenuItemClick(n.key))}),_(1),g()}if(i&2){let e=a().$implicit;Y("ac__menu-item--danger",e.variant==="danger"),u(),Z(" ",e.label," ")}}function fe(i,t){if(i&1&&C(0,ge,1,0,"div",14)(1,Ce,2,3,"button",15),i&2){let e=t.$implicit;f(e.variant==="separator"?0:1)}}function he(i,t){if(i&1&&(v(0,"div",13),z(1,fe,2,1,null,null,ue),g()),i&2){let e=a(2);u(),Q(e.menuItems())}}function ve(i,t){if(i&1){let e=x();v(0,"div",6)(1,"button",8),q("click",function(n){s(e);let r=a();return c(r.toggleMenu(n))}),h(),v(2,"svg",9),P(3,"circle",10)(4,"circle",11)(5,"circle",12),g()(),C(6,he,3,0,"div",13),g()}if(i&2){let e=a();u(6),f(e.menuOpen()?6:-1)}}function xe(i,t){i&1&&(v(0,"div",7),W(1),g())}var w=class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=F({type:i,selectors:[["","agentosCardChips",""]]})},A=class i{name=M.required();mark=M(null);menuItems=M([]);nameClicked=p();menuAction=p();chipsSlot=oe(w);menuOpen=b(!1);get resolvedMark(){return this.mark()??(this.name().charAt(0).toUpperCase()||"?")}get hasChips(){return this.chipsSlot()!==void 0}get hasMenu(){return this.menuItems().length>0}toggleMenu(t){t.stopPropagation(),this.menuOpen.update(e=>!e)}onMenuItemClick(t){this.menuOpen.set(!1),this.menuAction.emit(t)}onDocumentClick(){this.menuOpen.set(!1)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["agentos-action-card"]],contentQueries:function(e,o,n){e&1&&J(n,o.chipsSlot,w,5),e&2&&K()},hostBindings:function(e,o){e&1&&l("click",function(){return o.onDocumentClick()},j)},inputs:{name:[1,"name"],mark:[1,"mark"],menuItems:[1,"menuItems"]},outputs:{nameClicked:"nameClicked",menuAction:"menuAction"},ngContentSelectors:_e,decls:10,vars:4,consts:[[1,"ac"],[1,"ac__header"],[1,"ac__id"],["aria-hidden","true",1,"ac__mark"],[1,"ac__meta"],["type","button",1,"ac__name",3,"click"],[1,"ac__more"],[1,"ac__chips"],["type","button","title","More actions",1,"ac__more-btn",3,"click"],["width","16","height","16","viewBox","0 0 24 24","aria-hidden","true"],["cx","6","cy","12","r","1.6","fill","currentColor"],["cx","12","cy","12","r","1.6","fill","currentColor"],["cx","18","cy","12","r","1.6","fill","currentColor"],["role","menu",1,"ac__menu"],[1,"ac__menu-sep"],["type","button","role","menuitem",1,"ac__menu-item",3,"ac__menu-item--danger"],["type","button","role","menuitem",1,"ac__menu-item",3,"click"]],template:function(e,o){e&1&&(U(pe),v(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),_(4),g(),v(5,"div",4)(6,"button",5),q("click",function(){return o.nameClicked.emit()}),_(7),g()()(),C(8,ve,7,1,"div",6),g(),C(9,xe,2,0,"div",7),g()),e&2&&(u(4),D(o.resolvedMark),u(3),D(o.name()),u(),f(o.hasMenu?8:-1),u(),f(o.hasChips?9:-1))},styles:[".ac[_ngcontent-%COMP%]{background:var(--color-bg-secondary, #fff);border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:12px;box-shadow:0 1px 3px var(--color-shadow, rgba(0, 0, 0, .05));overflow:visible;transition:box-shadow .15s ease,border-color .15s ease}.ac[_ngcontent-%COMP%]:hover{box-shadow:0 2px 8px var(--color-shadow, rgba(0, 0, 0, .08));border-color:var(--color-border, rgba(0, 0, 0, .15))}.ac__header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:16px 18px 14px}.ac__id[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.ac__mark[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px;background:#161616;color:#fff;border:none;display:flex;align-items:center;justify-content:center;font:700 13px Inter,sans-serif;flex-shrink:0;align-self:flex-start}[data-theme=dark][_ngcontent-%COMP%] .ac__mark[_ngcontent-%COMP%]{background:transparent;border:1.5px solid var(--color-border, rgba(255, 255, 255, .15));color:var(--color-text, #f5f5f7)}.ac__meta[_ngcontent-%COMP%]{min-width:0}.ac__name[_ngcontent-%COMP%]{display:block;font:600 14px/1.3 Inter,sans-serif;color:var(--color-text, #161616);word-break:break-word;background:none;border:none;padding:0;cursor:pointer;text-align:left}.ac__name[_ngcontent-%COMP%]:hover{text-decoration:underline}.ac__name[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary, #2a5fc9);outline-offset:2px;border-radius:2px}.ac__more[_ngcontent-%COMP%]{position:relative;flex-shrink:0}.ac__more-btn[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:6px;border:none;background:transparent;color:var(--color-text-secondary, rgba(0, 0, 0, .35));display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s ease,color .12s ease}.ac__more-btn[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .05));color:var(--color-text, #161616)}.ac__menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;min-width:180px;background:var(--color-modal-bg, #fff);border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:10px;padding:5px;z-index:200;box-shadow:var(--color-modal-shadow, 0 6px 20px rgba(0, 0, 0, .08))}.ac__menu-sep[_ngcontent-%COMP%]{height:1px;background:var(--color-border, rgba(0, 0, 0, .07));margin:4px}.ac__menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:8px 10px;border-radius:6px;border:none;background:transparent;font:500 12.5px Inter,sans-serif;color:var(--color-text, #161616);text-align:left;cursor:pointer;transition:background .1s ease}.ac__menu-item[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .04))}.ac__menu-item--danger[_ngcontent-%COMP%]{color:var(--color-error, #a5140a)}.ac__menu-item--danger[_ngcontent-%COMP%]:hover{background:rgba(from var(--color-error, #ff453a) r g b/.08)}.ac__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 16px}[_nghost-%COMP%] .ac-chip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 12px 0 10px;border-radius:999px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:var(--color-surface-secondary, rgba(0, 0, 0, .03));color:var(--color-text, #161616);font:500 11.5px Inter,sans-serif;cursor:pointer;white-space:nowrap;transition:background .12s ease,border-color .12s ease}[_nghost-%COMP%] .ac-chip:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .06));border-color:var(--color-border, rgba(0, 0, 0, .16))}[_nghost-%COMP%] .ac-chip svg{flex-shrink:0}"],changeDetection:0})};var be=()=>[];function ye(i,t){if(i&1){let e=x();S(0,1),d(1,"span",2),_(2,"Delete?"),m(),d(3,"ds-icon-button",3),l("action",function(){s(e);let n=a();return c(n.onDeleteConfirmed())}),m(),d(4,"ds-icon-button",4),l("action",function(){s(e);let n=a();return c(n.onDeleteCancelled())}),m(),V()}}function ke(i,t){if(i&1){let e=x();S(0,1),d(1,"button",5),l("click",function(){s(e);let n=a();return c(n.onIntegrations())}),h(),d(2,"svg",6),k(3,"path",7)(4,"path",8),m(),_(5," Integrations "),m(),N(),d(6,"button",5),l("click",function(){s(e);let n=a();return c(n.onAiProviders())}),h(),d(7,"svg",6),k(8,"rect",9)(9,"rect",10)(10,"path",11),m(),_(11," AI Providers "),m(),N(),d(12,"button",5),l("click",function(){s(e);let n=a();return c(n.onAiModels())}),h(),d(13,"svg",6),k(14,"path",12),m(),_(15," AI Models "),m(),N(),d(16,"button",5),l("click",function(){s(e);let n=a();return c(n.onAgentConfigs())}),h(),d(17,"svg",6),k(18,"path",13)(19,"circle",14)(20,"circle",15),m(),_(21," Agent Configs "),m(),N(),d(22,"button",5),l("click",function(){s(e);let n=a();return c(n.onPrompts())}),h(),d(23,"svg",6),k(24,"path",16)(25,"path",17)(26,"path",18),m(),_(27," Prompts "),m(),V()}}var T=class i{namespace=M.required();selected=p();editRequested=p();integrationsRequested=p();aiProvidersRequested=p();aiModelsRequested=p();agentConfigsRequested=p();promptsRequested=p();deleteRequested=p();pendingDelete=b(!1);menuItems=[{key:"edit",label:"Edit namespace"},{key:"separator",label:"",variant:"separator"},{key:"delete",label:"Delete namespace",variant:"danger"}];onSelect(){this.selected.emit(this.namespace())}onIntegrations(){this.integrationsRequested.emit(this.namespace())}onAiProviders(){this.aiProvidersRequested.emit(this.namespace())}onAiModels(){this.aiModelsRequested.emit(this.namespace())}onAgentConfigs(){this.agentConfigsRequested.emit(this.namespace())}onPrompts(){this.promptsRequested.emit(this.namespace())}onMenuAction(t){switch(t){case"edit":this.editRequested.emit(this.namespace());break;case"delete":this.pendingDelete.set(!0);break}}onDeleteConfirmed(){this.pendingDelete.set(!1),this.deleteRequested.emit(this.namespace())}onDeleteCancelled(){this.pendingDelete.set(!1)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["agentos-namespace-item"]],inputs:{namespace:[1,"namespace"]},outputs:{selected:"selected",editRequested:"editRequested",integrationsRequested:"integrationsRequested",aiProvidersRequested:"aiProvidersRequested",aiModelsRequested:"aiModelsRequested",agentConfigsRequested:"agentConfigsRequested",promptsRequested:"promptsRequested",deleteRequested:"deleteRequested"},decls:3,vars:4,consts:[[3,"nameClicked","menuAction","name","menuItems"],["agentosCardChips",""],[1,"ns-confirm-label"],["icon","check","variant","danger","title","Confirm deletion",3,"action"],["icon","close","title","Cancel",3,"action"],["type","button",1,"ac-chip",3,"click"],["width","13","height","13","viewBox","0 0 24 24","fill","none","aria-hidden","true"],["d","M8 2v4M16 2v4M6 8h12v3a6 6 0 01-12 0V8z","stroke","currentColor","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],["d","M12 17v3","stroke","currentColor","stroke-width","1.6","stroke-linecap","round"],["x","7","y","7","width","10","height","10","rx","1.5","stroke","currentColor","stroke-width","1.6"],["x","10","y","10","width","4","height","4","rx","0.5","stroke","currentColor","stroke-width","1.4"],["d","M9 2v3M12 2v3M15 2v3M9 19v3M12 19v3M15 19v3M2 9h3M2 12h3M2 15h3M19 9h3M19 12h3M19 15h3","stroke","currentColor","stroke-width","1.4","stroke-linecap","round"],["d","M12 3l1.8 5.6L19 10l-5.2 1.6L12 17l-1.8-5.4L5 10l5.2-1.4L12 3z","stroke","currentColor","stroke-width","1.5","stroke-linejoin","round"],["d","M4 7h9M17 7h3M4 17h3M11 17h9","stroke","currentColor","stroke-width","1.6","stroke-linecap","round"],["cx","13","cy","7","r","2.2","stroke","currentColor","stroke-width","1.6"],["cx","8","cy","17","r","2.2","stroke","currentColor","stroke-width","1.6"],["d","M7 3h7l4 4v14a1 1 0 01-1 1H7a1 1 0 01-1-1V4a1 1 0 011-1z","stroke","currentColor","stroke-width","1.6","stroke-linejoin","round"],["d","M14 3v4h4","stroke","currentColor","stroke-width","1.6","stroke-linejoin","round"],["d","M9 13h6M9 17h6","stroke","currentColor","stroke-width","1.4","stroke-linecap","round"]],template:function(e,o){e&1&&(d(0,"agentos-action-card",0),l("nameClicked",function(){return o.onSelect()})("menuAction",function(r){return o.onMenuAction(r)}),C(1,ye,5,0,"ng-container",1)(2,ke,28,0,"ng-container",1),m()),e&2&&(I("name",o.namespace().name)("menuItems",o.pendingDelete()?E(3,be):o.menuItems),u(),f(o.pendingDelete()?1:2))},dependencies:[A,w,se],styles:[".ns-confirm-label[_ngcontent-%COMP%]{font:500 12px Inter,sans-serif;color:var(--color-error, #a5140a);white-space:nowrap;align-self:center}"],changeDetection:0})};var Me=()=>[];function we(i,t){if(i&1){let e=x();d(0,"agentos-namespace-item",3),l("selected",function(n){s(e);let r=a(2);return c(r.navigateToHome(n.id??""))})("editRequested",function(n){s(e);let r=a(2);return c(r.navigateToEdit(n))})("deleteRequested",function(n){s(e);let r=a(2);return c(r.deleteNamespace(n))})("integrationsRequested",function(n){s(e);let r=a(2);return c(r.openIntegrations(n))})("aiProvidersRequested",function(n){s(e);let r=a(2);return c(r.openAiProviders(n))})("aiModelsRequested",function(n){s(e);let r=a(2);return c(r.openAiModels(n))})("agentConfigsRequested",function(n){s(e);let r=a(2);return c(r.openAgentConfigs(n))})("promptsRequested",function(n){s(e);let r=a(2);return c(r.openPrompts(n))}),m()}i&2&&I("namespace",t)}function Ne(i,t){if(i&1&&C(0,we,1,1,"agentos-namespace-item",2),i&2){let e,o=t.$implicit,n=a();f((e=n.namespacesById().get(o.id))?0:-1,e)}}var le=class i{router=R(ae);namespaceController=R(re);destroyRef=R(H);refresh$=new L(void 0);namespaces$=this.refresh$.pipe(B(()=>this.namespaceController.listAllNamespace()));namespaceItems$=this.namespaces$.pipe($(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.description,badges:e.defaultAgentName?[{label:e.defaultAgentName,variant:"info"}]:void 0}))));namespacesById=b(new Map);constructor(){this.namespaces$.pipe(O(this.destroyRef)).subscribe(t=>{this.namespacesById.set(new Map(t.map(e=>[e.id??"",e])))})}navigateToHome(t){this.router.navigate(["/agentos/home"],{queryParams:{ns:t}})}navigateToCreate(){this.router.navigate(["/agentos/namespaces/new"])}navigateToEdit(t){this.router.navigate(["/agentos/namespaces",t.id??"","edit"])}openIntegrations(t){this.router.navigate(["/agentos",t.id,"integrations"])}openAiProviders(t){this.router.navigate(["/agentos",t.id,"ai-providers"])}openAiModels(t){this.router.navigate(["/agentos",t.id,"ai-models"])}openAgentConfigs(t){this.router.navigate(["/agentos",t.id,"agent-configs"])}openPrompts(t){this.router.navigate(["/agentos",t.id,"prompts"])}deleteNamespace(t){this.namespaceController.deleteNamespace(t.id??"").pipe(O(this.destroyRef)).subscribe(()=>this.refresh$.next())}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["agentos-namespace-list"]],decls:4,vars:6,consts:[["namespaceItemTpl",""],["title","Namespaces","emptyMessage","No namespaces yet. Create one to get started.","cardMinWidth","400px",3,"itemSelected","createRequested","items","showCreate","itemTemplate"],[3,"namespace"],[3,"selected","editRequested","deleteRequested","integrationsRequested","aiProvidersRequested","aiModelsRequested","agentConfigsRequested","promptsRequested","namespace"]],template:function(e,o){if(e&1&&(d(0,"ds-entity-list",1),ee(1,"async"),l("itemSelected",function(r){return o.navigateToHome(r)})("createRequested",function(){return o.navigateToCreate()}),m(),G(2,Ne,1,1,"ng-template",null,0,ne)),e&2){let n=X(3);I("items",te(1,3,o.namespaceItems$)??E(5,Me))("showCreate",!0)("itemTemplate",n)}},dependencies:[T,ce,ie],encapsulation:2,changeDetection:0})};export{w as a,A as b,T as c,le as d};
@@ -1 +1 @@
1
- import{h as I}from"./chunk-BD6N2UN6.js";import{a as k,c as w}from"./chunk-7MQRVE7E.js";import{a as h}from"./chunk-IRZNRZ5Q.js";import{F as B,c as D,e as C,g as F,h as V,i as A,l as s,n as z,s as L,w as R}from"./chunk-WLSXA23B.js";import{Bb as O,Db as u,Fb as g,Ka as r,Tb as o,Ub as S,Vb as E,Wa as N,a as x,b as v,ca as p,ga as _,ha as b,lb as M,ma as y,mb as P,rb as i,sb as n,ta as f,tb as t,ub as l}from"./chunk-5J7BTB5J.js";function T(m,a){m&1&&(n(0,"p",5),o(1,"Loading\u2026"),t())}function $(m,a){if(m&1){let e=O();n(0,"form",7),u("ngSubmit",function(){_(e);let d=g();return b(d.submit())}),n(1,"div",8)(2,"label",9),o(3,"Name "),n(4,"span",10),o(5,"*"),t()(),l(6,"input",11),t(),n(7,"div",8)(8,"label",12),o(9,"Description"),t(),l(10,"textarea",13),t(),n(11,"div",8)(12,"label",14),o(13,"External ID"),t(),l(14,"input",15),t(),n(15,"div",8)(16,"label",16),o(17,"Default agent"),t(),l(18,"input",17),t(),n(19,"div",8)(20,"label",18),o(21,"Config path"),t(),l(22,"input",19),t(),n(23,"div",20)(24,"button",21),o(25),t(),n(26,"button",22),u("click",function(){_(e);let d=g();return b(d.cancel())}),o(27,"Cancel"),t()()()}if(m&2){let e=g();i("formGroup",e.form),r(6),i("formControl",e.nameControl),r(4),i("formControl",e.descriptionControl),r(4),i("formControl",e.externalIdControl),r(4),i("formControl",e.defaultAgentNameControl),r(4),i("formControl",e.configPathControl),r(2),i("disabled",e.nameControl.invalid||e.isSubmitting()),r(),E(" ",e.isEditMode()?"Save changes":"Create"," ")}}var G=class m{route=p(k);router=p(w);namespaceController=p(I);destroyRef=p(y);form=new A({name:new s("",{nonNullable:!0,validators:[C.required,C.minLength(1)]}),description:new s("",{nonNullable:!0}),configPath:new s("",{nonNullable:!0}),externalId:new s("",{nonNullable:!0}),defaultAgentName:new s("",{nonNullable:!0})});get nameControl(){return this.form.controls.name}get descriptionControl(){return this.form.controls.description}get configPathControl(){return this.form.controls.configPath}get externalIdControl(){return this.form.controls.externalId}get defaultAgentNameControl(){return this.form.controls.defaultAgentName}isEditMode=f(!1);isSubmitting=f(!1);isLoading=f(!1);existingNamespace=null;ngOnInit(){let a=this.route.snapshot.paramMap.get("namespaceId");a&&(this.isEditMode.set(!0),this.loadNamespace(a))}loadNamespace(a){this.isLoading.set(!0),this.namespaceController.getByIdNamespace(a).pipe(h(this.destroyRef)).subscribe({next:e=>{this.existingNamespace=e,this.nameControl.setValue(e.name),this.descriptionControl.setValue(e.description??""),this.configPathControl.setValue(e.configPath??""),this.externalIdControl.setValue(e.externalId??""),this.defaultAgentNameControl.setValue(e.defaultAgentName??""),this.isLoading.set(!1)},error:()=>{this.isLoading.set(!1),this.navigateBack()}})}submit(){if(this.nameControl.invalid||this.isSubmitting())return;this.isSubmitting.set(!0);let a=v(x({},this.existingNamespace),{name:this.nameControl.value.trim(),description:this.descriptionControl.value.trim()||void 0,configPath:this.configPathControl.value.trim()||void 0,externalId:this.externalIdControl.value.trim()||void 0,defaultAgentName:this.defaultAgentNameControl.value.trim()||void 0});(this.isEditMode()?this.namespaceController.updateNamespace(this.existingNamespace.id??"",a):this.namespaceController.createNamespace(a)).pipe(h(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:()=>this.isSubmitting.set(!1)})}cancel(){this.navigateBack()}navigateBack(){this.router.navigate(["/agentos/namespaces"])}static \u0275fac=function(e){return new(e||m)};static \u0275cmp=N({type:m,selectors:[["agentos-namespace-form"]],decls:10,vars:2,consts:[[1,"namespace-form"],[1,"namespace-form__header"],["type","button","title","Back to namespaces",1,"namespace-form__back",3,"click"],[1,"namespace-form__back-icon"],[1,"namespace-form__title"],[1,"namespace-form__loading"],[1,"namespace-form__form",3,"formGroup"],[1,"namespace-form__form",3,"ngSubmit","formGroup"],[1,"namespace-form__field"],["for","ns-name",1,"namespace-form__label"],["aria-hidden","true"],["id","ns-name","type","text","placeholder","Namespace name","autocomplete","off",1,"namespace-form__input",3,"formControl"],["for","ns-description",1,"namespace-form__label"],["id","ns-description","rows","4","placeholder","Optional description",1,"namespace-form__textarea",3,"formControl"],["for","ns-external-id",1,"namespace-form__label"],["id","ns-external-id","type","text","placeholder","Optional federation ID from an external system","autocomplete","off",1,"namespace-form__input",3,"formControl"],["for","ns-default-agent",1,"namespace-form__label"],["id","ns-default-agent","type","text","placeholder","Logical name of the default agent (e.g. coday)","autocomplete","off",1,"namespace-form__input",3,"formControl"],["for","ns-config-path",1,"namespace-form__label"],["id","ns-config-path","type","text","placeholder","Optional path to base configuration directory","autocomplete","off",1,"namespace-form__input",3,"formControl"],[1,"namespace-form__actions"],["type","submit",1,"namespace-form__btn","namespace-form__btn--primary",3,"disabled"],["type","button",1,"namespace-form__btn",3,"click"]],template:function(e,c){e&1&&(n(0,"div",0)(1,"header",1)(2,"button",2),u("click",function(){return c.cancel()}),n(3,"span",3),o(4,"\u2190"),t(),o(5," Namespaces "),t(),n(6,"h1",4),o(7),t()(),M(8,T,2,0,"p",5)(9,$,28,8,"form",6),t()),e&2&&(r(7),S(c.isEditMode()?"Edit namespace":"New namespace"),r(),P(c.isLoading()?8:9))},dependencies:[B,z,D,F,V,L,R],styles:[".namespace-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:480px;margin:0 auto;padding:2rem 1rem}.namespace-form__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.namespace-form__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.namespace-form__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.namespace-form__back-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.namespace-form__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.namespace-form__loading[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.namespace-form__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.namespace-form__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.namespace-form__label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:var(--color-text, #1d1d1f)}.namespace-form__input[_ngcontent-%COMP%], .namespace-form__textarea[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color .15s ease}.namespace-form__input[_ngcontent-%COMP%]:focus, .namespace-form__textarea[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.namespace-form__input[_ngcontent-%COMP%]::placeholder, .namespace-form__textarea[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.namespace-form__textarea[_ngcontent-%COMP%]{resize:vertical;min-height:96px;line-height:1.5}.namespace-form__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding-top:.5rem}.namespace-form__btn[_ngcontent-%COMP%]{padding:.6rem 1.25rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.namespace-form__btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.namespace-form__btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.namespace-form__btn--primary[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);border-color:var(--color-primary, #007aff);color:#fff}.namespace-form__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-hover, #0051d5);border-color:var(--color-primary-hover, #0051d5)}"],changeDetection:0})};export{G as NamespaceFormComponent};
1
+ import{h as I}from"./chunk-G2BRVRGR.js";import{a as k,c as w}from"./chunk-7MQRVE7E.js";import{a as h}from"./chunk-IRZNRZ5Q.js";import{F as B,c as D,e as C,g as F,h as V,i as A,l as s,n as z,s as L,w as R}from"./chunk-WLSXA23B.js";import{Bb as O,Db as u,Fb as g,Ka as r,Tb as o,Ub as S,Vb as E,Wa as N,a as x,b as v,ca as p,ga as _,ha as b,lb as M,ma as y,mb as P,rb as i,sb as n,ta as f,tb as t,ub as l}from"./chunk-5J7BTB5J.js";function T(m,a){m&1&&(n(0,"p",5),o(1,"Loading\u2026"),t())}function $(m,a){if(m&1){let e=O();n(0,"form",7),u("ngSubmit",function(){_(e);let d=g();return b(d.submit())}),n(1,"div",8)(2,"label",9),o(3,"Name "),n(4,"span",10),o(5,"*"),t()(),l(6,"input",11),t(),n(7,"div",8)(8,"label",12),o(9,"Description"),t(),l(10,"textarea",13),t(),n(11,"div",8)(12,"label",14),o(13,"External ID"),t(),l(14,"input",15),t(),n(15,"div",8)(16,"label",16),o(17,"Default agent"),t(),l(18,"input",17),t(),n(19,"div",8)(20,"label",18),o(21,"Config path"),t(),l(22,"input",19),t(),n(23,"div",20)(24,"button",21),o(25),t(),n(26,"button",22),u("click",function(){_(e);let d=g();return b(d.cancel())}),o(27,"Cancel"),t()()()}if(m&2){let e=g();i("formGroup",e.form),r(6),i("formControl",e.nameControl),r(4),i("formControl",e.descriptionControl),r(4),i("formControl",e.externalIdControl),r(4),i("formControl",e.defaultAgentNameControl),r(4),i("formControl",e.configPathControl),r(2),i("disabled",e.nameControl.invalid||e.isSubmitting()),r(),E(" ",e.isEditMode()?"Save changes":"Create"," ")}}var G=class m{route=p(k);router=p(w);namespaceController=p(I);destroyRef=p(y);form=new A({name:new s("",{nonNullable:!0,validators:[C.required,C.minLength(1)]}),description:new s("",{nonNullable:!0}),configPath:new s("",{nonNullable:!0}),externalId:new s("",{nonNullable:!0}),defaultAgentName:new s("",{nonNullable:!0})});get nameControl(){return this.form.controls.name}get descriptionControl(){return this.form.controls.description}get configPathControl(){return this.form.controls.configPath}get externalIdControl(){return this.form.controls.externalId}get defaultAgentNameControl(){return this.form.controls.defaultAgentName}isEditMode=f(!1);isSubmitting=f(!1);isLoading=f(!1);existingNamespace=null;ngOnInit(){let a=this.route.snapshot.paramMap.get("namespaceId");a&&(this.isEditMode.set(!0),this.loadNamespace(a))}loadNamespace(a){this.isLoading.set(!0),this.namespaceController.getByIdNamespace(a).pipe(h(this.destroyRef)).subscribe({next:e=>{this.existingNamespace=e,this.nameControl.setValue(e.name),this.descriptionControl.setValue(e.description??""),this.configPathControl.setValue(e.configPath??""),this.externalIdControl.setValue(e.externalId??""),this.defaultAgentNameControl.setValue(e.defaultAgentName??""),this.isLoading.set(!1)},error:()=>{this.isLoading.set(!1),this.navigateBack()}})}submit(){if(this.nameControl.invalid||this.isSubmitting())return;this.isSubmitting.set(!0);let a=v(x({},this.existingNamespace),{name:this.nameControl.value.trim(),description:this.descriptionControl.value.trim()||void 0,configPath:this.configPathControl.value.trim()||void 0,externalId:this.externalIdControl.value.trim()||void 0,defaultAgentName:this.defaultAgentNameControl.value.trim()||void 0});(this.isEditMode()?this.namespaceController.updateNamespace(this.existingNamespace.id??"",a):this.namespaceController.createNamespace(a)).pipe(h(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:()=>this.isSubmitting.set(!1)})}cancel(){this.navigateBack()}navigateBack(){this.router.navigate(["/agentos/namespaces"])}static \u0275fac=function(e){return new(e||m)};static \u0275cmp=N({type:m,selectors:[["agentos-namespace-form"]],decls:10,vars:2,consts:[[1,"namespace-form"],[1,"namespace-form__header"],["type","button","title","Back to namespaces",1,"namespace-form__back",3,"click"],[1,"namespace-form__back-icon"],[1,"namespace-form__title"],[1,"namespace-form__loading"],[1,"namespace-form__form",3,"formGroup"],[1,"namespace-form__form",3,"ngSubmit","formGroup"],[1,"namespace-form__field"],["for","ns-name",1,"namespace-form__label"],["aria-hidden","true"],["id","ns-name","type","text","placeholder","Namespace name","autocomplete","off",1,"namespace-form__input",3,"formControl"],["for","ns-description",1,"namespace-form__label"],["id","ns-description","rows","4","placeholder","Optional description",1,"namespace-form__textarea",3,"formControl"],["for","ns-external-id",1,"namespace-form__label"],["id","ns-external-id","type","text","placeholder","Optional federation ID from an external system","autocomplete","off",1,"namespace-form__input",3,"formControl"],["for","ns-default-agent",1,"namespace-form__label"],["id","ns-default-agent","type","text","placeholder","Logical name of the default agent (e.g. coday)","autocomplete","off",1,"namespace-form__input",3,"formControl"],["for","ns-config-path",1,"namespace-form__label"],["id","ns-config-path","type","text","placeholder","Optional path to base configuration directory","autocomplete","off",1,"namespace-form__input",3,"formControl"],[1,"namespace-form__actions"],["type","submit",1,"namespace-form__btn","namespace-form__btn--primary",3,"disabled"],["type","button",1,"namespace-form__btn",3,"click"]],template:function(e,c){e&1&&(n(0,"div",0)(1,"header",1)(2,"button",2),u("click",function(){return c.cancel()}),n(3,"span",3),o(4,"\u2190"),t(),o(5," Namespaces "),t(),n(6,"h1",4),o(7),t()(),M(8,T,2,0,"p",5)(9,$,28,8,"form",6),t()),e&2&&(r(7),S(c.isEditMode()?"Edit namespace":"New namespace"),r(),P(c.isLoading()?8:9))},dependencies:[B,z,D,F,V,L,R],styles:[".namespace-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:480px;margin:0 auto;padding:2rem 1rem}.namespace-form__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.namespace-form__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.namespace-form__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.namespace-form__back-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.namespace-form__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.namespace-form__loading[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.namespace-form__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.namespace-form__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.namespace-form__label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:var(--color-text, #1d1d1f)}.namespace-form__input[_ngcontent-%COMP%], .namespace-form__textarea[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color .15s ease}.namespace-form__input[_ngcontent-%COMP%]:focus, .namespace-form__textarea[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.namespace-form__input[_ngcontent-%COMP%]::placeholder, .namespace-form__textarea[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.namespace-form__textarea[_ngcontent-%COMP%]{resize:vertical;min-height:96px;line-height:1.5}.namespace-form__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding-top:.5rem}.namespace-form__btn[_ngcontent-%COMP%]{padding:.6rem 1.25rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.namespace-form__btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.namespace-form__btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.namespace-form__btn--primary[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);border-color:var(--color-primary, #007aff);color:#fff}.namespace-form__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-hover, #0051d5);border-color:var(--color-primary-hover, #0051d5)}"],changeDetection:0})};export{G as NamespaceFormComponent};
@@ -0,0 +1 @@
1
+ import{a as y}from"./chunk-PRFGHN7L.js";import{a as f}from"./chunk-VIDPCJ3F.js";import{d as m}from"./chunk-G2BRVRGR.js";import{D as a,P as h,S as A,V as d,Z as b,a as P,ca as c,i as v,m as o,t as u,u as l}from"./chunk-5J7BTB5J.js";var g="none",N="me",O=class p{nsController=c(m);userState=c(f);refresh$=new v(void 0);namespaceId$=new v(null);vm$=l([this.namespaceId$,this.refresh$]).pipe(A(([e])=>{let r=this.loadPlatformProviders().pipe(a(()=>o([])));return e?l([r,this.loadNamespaceProviders(e).pipe(a(()=>o([]))),this.loadUserProviders(e).pipe(a(()=>o([]))),this.loadUserProviders("global").pipe(a(()=>o([])))]).pipe(u(([i,n,s,t])=>({platform:i,namespace:n,userOnNs:s,userGlobal:t}))):l([r,this.loadNamespaceProviders("").pipe(a(()=>o([]))),this.loadUserProviders("global").pipe(a(()=>o([])))]).pipe(u(([i,n,s])=>({platform:i,namespace:n,userOnNs:[],userGlobal:s})))}),h({bufferSize:1,refCount:!0}));setNamespace(e){this.namespaceId$.value!==e&&this.namespaceId$.next(e)}refresh(){this.refresh$.next()}loadUserProviders(e){let r=e==="global"?g:e;return this.nsController.listAiProvider(r,N)}userGlobal$=y(this.refresh$,()=>this.loadUserProviders("global"),[]);loadPlatformProviders(){return this.nsController.listAiProvider(g)}loadNamespaceProviders(e){return e?this.nsController.listAiProvider(e):o([])}getById(e,r){return this.nsController.getByIdAiProvider(e)}create(e,r,i){let s=this.userState.currentUser()?.id;if((r==="userOnNs"||r==="userGlobal")&&!s)throw new Error(`Cannot create ${r} provider before UserStateService.loadMe() resolves \u2014 call loadMe() at app init`);if(r==="namespace"){if(i===void 0||i==="")throw new Error("Cannot create namespace-scoped provider without a namespaceId");let S={name:e.name,apiType:e.apiType,description:e.description,baseUrl:e.baseUrl,apiKey:e.apiKey,headers:e.headers??void 0,namespaceId:i??void 0};return this.nsController.createAiProvider(S).pipe(d(()=>this.refresh()))}if(r==="userOnNs"&&!i)throw new Error("Cannot create userOnNs provider without a namespaceId");let t={name:e.name,apiType:e.apiType,description:e.description,baseUrl:e.baseUrl,apiKey:e.apiKey,headers:e.headers??void 0,userId:s,namespaceId:r==="userOnNs"?i:void 0};return this.nsController.createAiProvider(t).pipe(d(()=>this.refresh()))}update(e,r,i,n){let s=r.apiKey===null?{}:{apiKey:r.apiKey},t=P({name:r.name,apiType:r.apiType,description:r.description,baseUrl:r.baseUrl,headers:r.headers??void 0,namespaceId:n.namespaceId,userId:n.userId},s);return this.nsController.updateAiProvider(e,t).pipe(d(()=>this.refresh()))}delete(e,r){return this.nsController.deleteAiProvider(e).pipe(d(()=>this.refresh()))}static \u0275fac=function(r){return new(r||p)};static \u0275prov=b({token:p,factory:p.\u0275fac,providedIn:"root"})};export{O as a};
@@ -1 +1 @@
1
- import{a as D}from"./chunk-TWMYRLVR.js";import{b as $}from"./chunk-BD6N2UN6.js";import{c as T}from"./chunk-7MQRVE7E.js";import{t as B}from"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import{a as l}from"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import{Bb as v,Db as s,Fb as m,Ic as x,Pb as P,S as d,Tb as M,Wa as y,ab as h,bc as R,ca as r,ec as w,fc as I,ga as C,ha as _,i as p,ic as k,lb as A,ma as u,mb as b,rb as g,sb as a,t as c,tb as f}from"./chunk-5J7BTB5J.js";var S=()=>[];function F(n,t){if(n&1){let e=v();a(0,"agentos-agent-config-item",4),s("deleteRequested",function(o){C(e);let E=m(2);return _(E.deleteConfig(o))}),f()}n&2&&g("config",t)("platformMode",!0)}function L(n,t){if(n&1&&A(0,F,1,2,"agentos-agent-config-item",3),n&2){let e,i=t.$implicit,o=m();b((e=o.resolveConfig(i.id))?0:-1,e)}}var q=class n{router=r(T);destroyRef=r(u);agentConfigController=r($);refresh$=new p(void 0);configs$=this.refresh$.pipe(d(()=>this.agentConfigController.listPlatformAgentsAgentConfig(!0)));configItems$=this.configs$.pipe(c(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.description}))));configsById=new Map;constructor(){this.configs$.pipe(l(this.destroyRef)).subscribe(t=>{this.configsById=new Map(t.map(e=>[e.id??"",e]))})}goBack(){this.router.navigate(["/agentos","admin"])}openCreateForm(){this.router.navigate(["/agentos","admin","agent-configs","new"])}deleteConfig(t){this.agentConfigController.deleteAgentConfig(t.id??"").pipe(l(this.destroyRef)).subscribe(()=>this.refresh$.next())}resolveConfig(t){return this.configsById.get(t)??null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=y({type:n,selectors:[["agentos-platform-agent-configs"]],decls:6,vars:6,consts:[["agentConfigItemTpl",""],["title","Platform Agent Configs","emptyMessage","No platform agent configs defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","showCreate","itemTemplate"],["toolbar-start","","type","button",1,"platform-agent-configs__back",3,"click"],[3,"config","platformMode"],[3,"deleteRequested","config","platformMode"]],template:function(e,i){if(e&1&&(a(0,"ds-entity-list",1),w(1,"async"),s("createRequested",function(){return i.openCreateForm()}),a(2,"button",2),s("click",function(){return i.goBack()}),M(3,"\u2190 Admin"),f()(),h(4,L,1,1,"ng-template",null,0,k)),e&2){let o=P(5);g("items",I(1,3,i.configItems$)??R(5,S))("showCreate",!0)("itemTemplate",o)}},dependencies:[B,D,x],styles:[".platform-agent-configs__back[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.platform-agent-configs__back[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0})};export{q as PlatformAgentConfigsComponent};
1
+ import{a as D}from"./chunk-6VCRRGXF.js";import{b as $}from"./chunk-G2BRVRGR.js";import{c as T}from"./chunk-7MQRVE7E.js";import{t as B}from"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import{a as l}from"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import{Bb as v,Db as s,Fb as m,Ic as x,Pb as P,S as d,Tb as M,Wa as y,ab as h,bc as R,ca as r,ec as w,fc as I,ga as C,ha as _,i as p,ic as k,lb as A,ma as u,mb as b,rb as g,sb as a,t as c,tb as f}from"./chunk-5J7BTB5J.js";var S=()=>[];function F(n,t){if(n&1){let e=v();a(0,"agentos-agent-config-item",4),s("deleteRequested",function(o){C(e);let E=m(2);return _(E.deleteConfig(o))}),f()}n&2&&g("config",t)("platformMode",!0)}function L(n,t){if(n&1&&A(0,F,1,2,"agentos-agent-config-item",3),n&2){let e,i=t.$implicit,o=m();b((e=o.resolveConfig(i.id))?0:-1,e)}}var q=class n{router=r(T);destroyRef=r(u);agentConfigController=r($);refresh$=new p(void 0);configs$=this.refresh$.pipe(d(()=>this.agentConfigController.listPlatformAgentsAgentConfig(!0)));configItems$=this.configs$.pipe(c(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.description}))));configsById=new Map;constructor(){this.configs$.pipe(l(this.destroyRef)).subscribe(t=>{this.configsById=new Map(t.map(e=>[e.id??"",e]))})}goBack(){this.router.navigate(["/agentos","admin"])}openCreateForm(){this.router.navigate(["/agentos","admin","agent-configs","new"])}deleteConfig(t){this.agentConfigController.deleteAgentConfig(t.id??"").pipe(l(this.destroyRef)).subscribe(()=>this.refresh$.next())}resolveConfig(t){return this.configsById.get(t)??null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=y({type:n,selectors:[["agentos-platform-agent-configs"]],decls:6,vars:6,consts:[["agentConfigItemTpl",""],["title","Platform Agent Configs","emptyMessage","No platform agent configs defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","showCreate","itemTemplate"],["toolbar-start","","type","button",1,"platform-agent-configs__back",3,"click"],[3,"config","platformMode"],[3,"deleteRequested","config","platformMode"]],template:function(e,i){if(e&1&&(a(0,"ds-entity-list",1),w(1,"async"),s("createRequested",function(){return i.openCreateForm()}),a(2,"button",2),s("click",function(){return i.goBack()}),M(3,"\u2190 Admin"),f()(),h(4,L,1,1,"ng-template",null,0,k)),e&2){let o=P(5);g("items",I(1,3,i.configItems$)??R(5,S))("showCreate",!0)("itemTemplate",o)}},dependencies:[B,D,x],styles:[".platform-agent-configs__back[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.platform-agent-configs__back[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0})};export{q as PlatformAgentConfigsComponent};
@@ -0,0 +1 @@
1
+ import{a as ne}from"./chunk-RRBTVPFV.js";import{a as ie}from"./chunk-LH4ATU27.js";import"./chunk-PRFGHN7L.js";import"./chunk-VIDPCJ3F.js";import{m as L}from"./chunk-G2BRVRGR.js";import{a as K,c as G}from"./chunk-7MQRVE7E.js";import{a as A,c as B}from"./chunk-IRZNRZ5Q.js";import{F as oe,c as z,e as _,g as $,h as q,i as S,l as p,n as j,p as H,r as J,s as Q,t as W,u as X,v as Y,w as Z,x as ee,y as re,z as te}from"./chunk-WLSXA23B.js";import{Bb as k,Db as v,Fb as m,Ka as l,Tb as i,Ub as P,Vb as U,Wa as I,ca as f,ga as g,ha as h,kb as V,lb as M,ma as N,mb as O,nb as R,ob as D,pb as C,qb as x,rb as d,sb as o,ta as y,tb as t,ua as T,ub as u}from"./chunk-5J7BTB5J.js";function de(n,r){n&1&&(o(0,"p",5),i(1,"Loading\u2026"),t())}function pe(n,r){if(n&1&&(o(0,"label",30),u(1,"input",31),o(2,"span"),i(3),t()()),n&2){let e=r.$implicit,a=m(3);l(),d("formControl",a.scopeControl)("value",e.value)("disabled",e.value==="namespace"&&!a.isAdmin()),l(2),P(e.label)}}function me(n,r){if(n&1&&(o(0,"fieldset",8)(1,"legend",24),i(2,"Port\xE9e de la configuration"),t(),C(3,pe,4,4,"label",30,V().trackByScope,!0),t()),n&2){let e=m(2);d("disabled",e.isEditMode()),l(3),x(e.scopeOptions)}}function ce(n,r){if(n&1&&(o(0,"option",13),i(1),t()),n&2){let e=r.$implicit;d("value",e),l(),P(e)}}function ue(n,r){if(n&1){let e=k();o(0,"div",26),u(1,"input",32)(2,"input",33),o(3,"button",34),v("click",function(){let s=g(e).$index,c=m(2);return h(c.removeHeader(s))}),i(4," \xD7 "),t()()}if(n&2){let e=r.$index;d("formGroupName",e)}}function fe(n,r){if(n&1){let e=k();o(0,"form",7),v("ngSubmit",function(){g(e);let s=m();return h(s.submit())}),M(1,me,5,1,"fieldset",8),o(2,"div",9)(3,"label",10),i(4,"API type "),o(5,"span",11),i(6,"*"),t()(),o(7,"select",12),C(8,ce,2,2,"option",13,D),t()(),o(10,"div",9)(11,"label",14),i(12,"Name "),o(13,"span",11),i(14,"*"),t()(),u(15,"input",15),t(),o(16,"div",9)(17,"label",16),i(18,"Description"),t(),u(19,"input",17),t(),o(20,"div",9)(21,"label",18),i(22,"Base URL"),t(),u(23,"input",19),t(),o(24,"div",9)(25,"label",20),i(26,"API key"),t(),u(27,"input",21),t(),o(28,"div",22)(29,"div",23)(30,"span",24),i(31,"Custom headers"),t(),o(32,"button",25),v("click",function(){g(e);let s=m();return h(s.addHeader())}),i(33,"+ Add header"),t()(),C(34,ue,5,1,"div",26,R),t(),o(36,"div",27)(37,"button",28),i(38),t(),o(39,"button",29),v("click",function(){g(e);let s=m();return h(s.cancel())}),i(40,"Cancel"),t()()()}if(n&2){let e=m();d("formGroup",e.form),l(),O(e.isPlatformMode?-1:1),l(6),d("formControl",e.apiTypeControl),l(),x(e.apiTypeOptions),l(7),d("formControl",e.nameControl),l(4),d("formControl",e.descriptionControl),l(4),d("formControl",e.baseUrlControl),l(4),d("formControl",e.apiKeyControl),l(),d("formArrayName","headers"),l(6),x(e.headersArray.controls),l(3),d("disabled",e.form.invalid||e.isSubmitting()),l(),U(" ",e.isEditMode()?"Save changes":"Create"," ")}}var ve=new Set(["namespace","userOnNs","userGlobal"]),E=Object.freeze({platform:"Configuration de niveau plateforme",namespace:"Configuration du namespace",userOnNs:"Pour moi sur ce namespace",userGlobal:"Pour moi globalement"}),ae=class n{route=f(K);router=f(G);destroyRef=f(N);state=f(ne);namespaceRole=f(ie);namespaceId=this.route.snapshot.params.namespaceId;isPlatformMode=this.namespaceId===void 0;isAdmin=this.isPlatformMode?y(!0):B(this.namespaceRole.isAdminOfNamespace$(this.namespaceId),{initialValue:!1});apiTypeOptions=Object.values(L);scopeOptions=[{value:"namespace",label:E.namespace},{value:"userOnNs",label:E.userOnNs},{value:"userGlobal",label:E.userGlobal}];form=new S({name:new p("",{nonNullable:!0,validators:[_.required,_.minLength(1)]}),description:new p(null),apiType:new p("OpenAI",{nonNullable:!0,validators:[_.required]}),baseUrl:new p("",{nonNullable:!0}),apiKey:new p("",{nonNullable:!0}),scope:new p("namespace",{nonNullable:!0}),headers:new J([],{validators:[]})});get nameControl(){return this.form.controls.name}get descriptionControl(){return this.form.controls.description}get apiTypeControl(){return this.form.controls.apiType}get baseUrlControl(){return this.form.controls.baseUrl}get apiKeyControl(){return this.form.controls.apiKey}get scopeControl(){return this.form.controls.scope}get headersArray(){return this.form.controls.headers}addHeader(){this.headersArray.push(new S({key:new p("",{nonNullable:!0,validators:[_.required]}),value:new p("",{nonNullable:!0})}))}removeHeader(r){this.headersArray.removeAt(r)}isEditMode=y(!1);isSubmitting=y(!1);isLoading=y(!1);existingConfig=null;initialApiKey="";constructor(){this.isPlatformMode||T(()=>{this.isAdmin()||this.isEditMode()||this.scopeControl.value==="namespace"&&this.scopeControl.setValue("userOnNs")})}ngOnInit(){this.namespaceId&&this.state.setNamespace(this.namespaceId);let r=this.route.snapshot.paramMap,e=this.route.snapshot.queryParamMap,a=r.get("aiProviderId"),s=this.isPlatformMode?"namespace":this.parseScope(e.get("scope"));if(a){this.isEditMode.set(!0),this.scopeControl.disable(),this.apiTypeControl.disable(),this.loadConfig(a);return}this.scopeControl.setValue(s);let c=e.get("template");c&&this.hydrateFromTemplate(c)}parseScope(r){return r&&ve.has(r)?r:"namespace"}deriveScopeFromConfig(r){return!r.userId?"namespace":r.namespaceId?"userOnNs":"userGlobal"}loadConfig(r){this.isLoading.set(!0),this.state.getById(r).pipe(A(this.destroyRef)).subscribe({next:e=>{this.existingConfig=e,this.scopeControl.setValue(this.deriveScopeFromConfig(e)),this.applyConfigToForm(e),this.isLoading.set(!1)},error:()=>{this.isLoading.set(!1),console.warn(`[AiProviderForm] Could not load provider '${r}' \u2014 navigating back`),this.navigateBack()}})}hydrateFromTemplate(r){this.isLoading.set(!0),this.state.getById(r).pipe(A(this.destroyRef)).subscribe({next:e=>{this.nameControl.setValue(e.name),this.descriptionControl.setValue(e.description??null),this.apiTypeControl.setValue(e.apiType),this.baseUrlControl.setValue(e.baseUrl??""),this.apiKeyControl.setValue(""),this.initialApiKey="",this.apiKeyControl.markAsTouched(),this.isLoading.set(!1),this.router.navigate([],{relativeTo:this.route,queryParams:{template:null,templateScope:null},queryParamsHandling:"merge",replaceUrl:!0})},error:e=>{console.warn(`[AiProviderForm] Could not hydrate from template ${r}:`,e),this.isLoading.set(!1),this.router.navigate([],{relativeTo:this.route,queryParams:{template:null,templateScope:null},queryParamsHandling:"merge",replaceUrl:!0})}})}applyConfigToForm(r){this.nameControl.setValue(r.name),this.descriptionControl.setValue(r.description??null),this.apiTypeControl.setValue(r.apiType),this.baseUrlControl.setValue(r.baseUrl??"");let e=r.apiKey??"";this.apiKeyControl.setValue(e),this.initialApiKey=e,this.headersArray.clear();for(let[a,s]of Object.entries(r.headers??{}))this.headersArray.push(new S({key:new p(a,{nonNullable:!0,validators:[_.required]}),value:new p(s,{nonNullable:!0})}))}submit(){if(this.form.invalid||this.isSubmitting())return;if(this.isEditMode()&&!this.existingConfig?.id){this.navigateBack();return}this.isSubmitting.set(!0);let r=this.descriptionControl.value?.trim(),e=this.baseUrlControl.value.trim(),a=this.apiKeyControl.value,s=this.isEditMode()&&a===this.initialApiKey?null:a,c=this.headersArray.controls.filter(b=>b.controls.key.value.trim()).map(b=>[b.controls.key.value.trim(),b.controls.value.value]),le=c.length>0?Object.fromEntries(c):null,w={name:this.nameControl.value.trim(),apiType:this.apiTypeControl.value,description:r||null,baseUrl:e||null,apiKey:s,headers:le},F=this.form.getRawValue().scope,se=this.isPlatformMode?null:this.namespaceId??null;(this.isEditMode()&&this.existingConfig?.id?this.state.update(this.existingConfig.id,w,F,this.existingConfig):this.state.create(w,F,se)).pipe(A(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:()=>this.isSubmitting.set(!1)})}cancel(){this.navigateBack()}navigateBack(){this.isPlatformMode?this.router.navigate(["/agentos","admin","ai-providers"]):this.router.navigate(["/agentos",this.namespaceId,"ai-providers"])}trackByScope(r,e){return e.value}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["agentos-ai-provider-form"]],decls:10,vars:2,consts:[[1,"ai-provider-form"],[1,"ai-provider-form__header"],["type","button","title","Back to AI providers",1,"ai-provider-form__back",3,"click"],[1,"ai-provider-form__back-icon"],[1,"ai-provider-form__title"],[1,"ai-provider-form__loading"],[1,"ai-provider-form__form",3,"formGroup"],[1,"ai-provider-form__form",3,"ngSubmit","formGroup"],[1,"ai-provider-form__scope",3,"disabled"],[1,"ai-provider-form__field"],["for","llm-api-type",1,"ai-provider-form__label"],["aria-hidden","true"],["id","llm-api-type",1,"ai-provider-form__select",3,"formControl"],[3,"value"],["for","llm-name",1,"ai-provider-form__label"],["id","llm-name","type","text","placeholder","e.g. OpenAI prod","autocomplete","off",1,"ai-provider-form__input",3,"formControl"],["for","llm-description",1,"ai-provider-form__label"],["id","llm-description","type","text","placeholder","Optional \u2014 short description of this provider","autocomplete","off",1,"ai-provider-form__input",3,"formControl"],["for","llm-base-url",1,"ai-provider-form__label"],["id","llm-base-url","type","url","placeholder","Optional \u2014 leave empty for default endpoint","autocomplete","off",1,"ai-provider-form__input",3,"formControl"],["for","llm-api-key",1,"ai-provider-form__label"],["id","llm-api-key","type","password","placeholder","sk-\u2026","autocomplete","new-password",1,"ai-provider-form__input","ai-provider-form__input--secret",3,"formControl"],[1,"ai-provider-form__headers",3,"formArrayName"],[1,"ai-provider-form__headers-title"],[1,"ai-provider-form__label"],["type","button",1,"ai-provider-form__headers-add",3,"click"],[1,"ai-provider-form__header-row",3,"formGroupName"],[1,"ai-provider-form__actions"],["type","submit",1,"ai-provider-form__btn","ai-provider-form__btn--primary",3,"disabled"],["type","button",1,"ai-provider-form__btn",3,"click"],[1,"ai-provider-form__scope-option"],["type","radio",3,"formControl","value","disabled"],["type","text","placeholder","Header name","formControlName","key","autocomplete","off",1,"ai-provider-form__input"],["type","text","placeholder","Value","formControlName","value","autocomplete","off",1,"ai-provider-form__input"],["type","button","title","Remove header","aria-label","Remove header",1,"ai-provider-form__header-remove",3,"click"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"header",1)(2,"button",2),v("click",function(){return a.cancel()}),o(3,"span",3),i(4,"\u2190"),t(),i(5," AI Providers "),t(),o(6,"h1",4),i(7),t()(),M(8,de,2,0,"p",5)(9,fe,41,10,"form",6),t()),e&2&&(l(7),P(a.isEditMode()?"Edit AI provider":"New AI provider"),l(),O(a.isLoading()?8:9))},dependencies:[oe,j,re,te,z,ee,H,$,q,Q,Z,Y,W,X],styles:[".ai-provider-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:480px;margin:0 auto;padding:2rem 1rem}.ai-provider-form__scope[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;border:1px solid var(--color-border);border-radius:8px;padding:.75rem 1rem;margin:0}.ai-provider-form__scope[disabled][_ngcontent-%COMP%]{opacity:.6}.ai-provider-form__scope-option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--color-text);cursor:pointer}.ai-provider-form__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.ai-provider-form__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.ai-provider-form__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.ai-provider-form__back-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.ai-provider-form__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.ai-provider-form__loading[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.ai-provider-form__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.ai-provider-form__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.ai-provider-form__label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:var(--color-text, #1d1d1f)}.ai-provider-form__input[_ngcontent-%COMP%], .ai-provider-form__select[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color .15s ease}.ai-provider-form__input[_ngcontent-%COMP%]:focus, .ai-provider-form__select[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.ai-provider-form__input[_ngcontent-%COMP%]::placeholder, .ai-provider-form__select[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.ai-provider-form__input--secret[_ngcontent-%COMP%]{font-family:monospace;letter-spacing:.05em}.ai-provider-form__headers[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.ai-provider-form__headers-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.ai-provider-form__headers-add[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;font-size:.8125rem;font-family:inherit;color:var(--color-primary, #007aff)}.ai-provider-form__headers-add[_ngcontent-%COMP%]:hover{text-decoration:underline}.ai-provider-form__header-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem;align-items:center}.ai-provider-form__header-remove[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:none;border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:6px;cursor:pointer;font-size:1rem;color:var(--color-text-secondary, #6e6e73);transition:background .15s ease;flex-shrink:0}.ai-provider-form__header-remove[_ngcontent-%COMP%]:hover{background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.ai-provider-form__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding-top:.5rem}.ai-provider-form__btn[_ngcontent-%COMP%]{padding:.6rem 1.25rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.ai-provider-form__btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.ai-provider-form__btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.ai-provider-form__btn--primary[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);border-color:var(--color-primary, #007aff);color:#fff}.ai-provider-form__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-hover, #0051d5);border-color:var(--color-primary-hover, #0051d5)}"],changeDetection:0})};export{ae as AiProviderFormComponent};
@@ -1 +1 @@
1
- import{a as D}from"./chunk-7BGJAFEA.js";import{a as B}from"./chunk-YMLYNSOP.js";import"./chunk-BD6N2UN6.js";import{c as T}from"./chunk-7MQRVE7E.js";import{t as $}from"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import{a as d}from"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import{Bb as v,Db as m,Fb as l,Ic as S,Pb as M,S as _,Tb as R,Wa as g,ab as C,bc as w,ca as p,ec as I,fc as k,ga as u,ha as y,i as c,ic as x,lb as h,ma as P,mb as b,rb as a,sb as i,t as f,tb as s}from"./chunk-5J7BTB5J.js";var F=()=>[];function A(o,e){if(o&1){let t=v();i(0,"agentos-prompt-item",4),m("deleteRequested",function(r){u(t);let E=l(2);return y(E.deletePrompt(r))}),s()}o&2&&a("prompt",e)("platformMode",!0)}function L(o,e){if(o&1&&h(0,A,1,2,"agentos-prompt-item",3),o&2){let t,n=e.$implicit,r=l();b((t=r.resolvePrompt(n.id))?0:-1,t)}}var q=class o{router=p(T);destroyRef=p(P);promptState=p(B);refresh$=new c(void 0);prompts$=this.refresh$.pipe(_(()=>this.promptState.listPlatform()));promptItems$=this.prompts$.pipe(f(e=>e.map(t=>({id:t.id??"",name:t.name,description:t.description}))));promptsById=new Map;constructor(){this.prompts$.pipe(d(this.destroyRef)).subscribe(e=>{this.promptsById=new Map(e.map(t=>[t.id??"",t]))})}goBack(){this.router.navigate(["/agentos","admin"])}openCreateForm(){this.router.navigate(["/agentos","admin","prompts","new"])}deletePrompt(e){this.promptState.delete(e.id??"").pipe(d(this.destroyRef)).subscribe(()=>this.refresh$.next())}resolvePrompt(e){return this.promptsById.get(e)??null}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=g({type:o,selectors:[["agentos-platform-prompts"]],decls:6,vars:6,consts:[["promptItemTpl",""],["title","Platform Prompts","emptyMessage","No platform prompts defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","showCreate","itemTemplate"],["toolbar-start","","type","button",1,"platform-prompts__back",3,"click"],[3,"prompt","platformMode"],[3,"deleteRequested","prompt","platformMode"]],template:function(t,n){if(t&1&&(i(0,"ds-entity-list",1),I(1,"async"),m("createRequested",function(){return n.openCreateForm()}),i(2,"button",2),m("click",function(){return n.goBack()}),R(3,"\u2190 Admin"),s()(),C(4,L,1,1,"ng-template",null,0,x)),t&2){let r=M(5);a("items",k(1,3,n.promptItems$)??w(5,F))("showCreate",!0)("itemTemplate",r)}},dependencies:[$,D,S],styles:[".platform-prompts__back[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.platform-prompts__back[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0})};export{q as PlatformPromptsComponent};
1
+ import{a as D}from"./chunk-22RX22JY.js";import{a as B}from"./chunk-BMUZTI7K.js";import"./chunk-G2BRVRGR.js";import{c as T}from"./chunk-7MQRVE7E.js";import{t as $}from"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import{a as d}from"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import{Bb as v,Db as m,Fb as l,Ic as S,Pb as M,S as _,Tb as R,Wa as g,ab as C,bc as w,ca as p,ec as I,fc as k,ga as u,ha as y,i as c,ic as x,lb as h,ma as P,mb as b,rb as a,sb as i,t as f,tb as s}from"./chunk-5J7BTB5J.js";var F=()=>[];function A(o,e){if(o&1){let t=v();i(0,"agentos-prompt-item",4),m("deleteRequested",function(r){u(t);let E=l(2);return y(E.deletePrompt(r))}),s()}o&2&&a("prompt",e)("platformMode",!0)}function L(o,e){if(o&1&&h(0,A,1,2,"agentos-prompt-item",3),o&2){let t,n=e.$implicit,r=l();b((t=r.resolvePrompt(n.id))?0:-1,t)}}var q=class o{router=p(T);destroyRef=p(P);promptState=p(B);refresh$=new c(void 0);prompts$=this.refresh$.pipe(_(()=>this.promptState.listPlatform()));promptItems$=this.prompts$.pipe(f(e=>e.map(t=>({id:t.id??"",name:t.name,description:t.description}))));promptsById=new Map;constructor(){this.prompts$.pipe(d(this.destroyRef)).subscribe(e=>{this.promptsById=new Map(e.map(t=>[t.id??"",t]))})}goBack(){this.router.navigate(["/agentos","admin"])}openCreateForm(){this.router.navigate(["/agentos","admin","prompts","new"])}deletePrompt(e){this.promptState.delete(e.id??"").pipe(d(this.destroyRef)).subscribe(()=>this.refresh$.next())}resolvePrompt(e){return this.promptsById.get(e)??null}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=g({type:o,selectors:[["agentos-platform-prompts"]],decls:6,vars:6,consts:[["promptItemTpl",""],["title","Platform Prompts","emptyMessage","No platform prompts defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","showCreate","itemTemplate"],["toolbar-start","","type","button",1,"platform-prompts__back",3,"click"],[3,"prompt","platformMode"],[3,"deleteRequested","prompt","platformMode"]],template:function(t,n){if(t&1&&(i(0,"ds-entity-list",1),I(1,"async"),m("createRequested",function(){return n.openCreateForm()}),i(2,"button",2),m("click",function(){return n.goBack()}),R(3,"\u2190 Admin"),s()(),C(4,L,1,1,"ng-template",null,0,x)),t&2){let r=M(5);a("items",k(1,3,n.promptItems$)??w(5,F))("showCreate",!0)("itemTemplate",r)}},dependencies:[$,D,S],styles:[".platform-prompts__back[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.platform-prompts__back[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0})};export{q as PlatformPromptsComponent};
@@ -0,0 +1 @@
1
+ import{c as a}from"./chunk-F42BGKID.js";import"./chunk-VIDPCJ3F.js";import"./chunk-G2BRVRGR.js";import"./chunk-7MQRVE7E.js";import"./chunk-IRZNRZ5Q.js";import"./chunk-5J7BTB5J.js";export{a as LayoutComponent};
@@ -1 +1 @@
1
- import{d as a}from"./chunk-G32LX34P.js";import"./chunk-W6TYWCQH.js";import"./chunk-YMLYNSOP.js";import"./chunk-EQXGFCI5.js";import"./chunk-JHUUVBVD.js";import"./chunk-BD6N2UN6.js";import"./chunk-4F2LQOD7.js";import"./chunk-7MQRVE7E.js";import"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import"./chunk-5J7BTB5J.js";export{a as CaseShellComponent};
1
+ import{d as a}from"./chunk-CCPU2LL3.js";import"./chunk-W6TYWCQH.js";import"./chunk-BMUZTI7K.js";import"./chunk-EQXGFCI5.js";import"./chunk-VIDPCJ3F.js";import"./chunk-G2BRVRGR.js";import"./chunk-4F2LQOD7.js";import"./chunk-7MQRVE7E.js";import"./chunk-BGEXT3EN.js";import"./chunk-PKBNMAQJ.js";import"./chunk-OBV4LQBZ.js";import"./chunk-IRZNRZ5Q.js";import"./chunk-FAM7HWYV.js";import"./chunk-WLSXA23B.js";import"./chunk-E3XC4CVU.js";import"./chunk-5J7BTB5J.js";export{a as CaseShellComponent};
@@ -1 +1 @@
1
- import{l}from"./chunk-BD6N2UN6.js";import{V as o,Z as s,a as n,ca as a,ta as i}from"./chunk-5J7BTB5J.js";var u=class t{userController=a(l);currentUser=i(null);loadMe(){return this.userController.getMeUser().pipe(o(r=>this.currentUser.set(r)))}updateMe(r){let e=this.currentUser();if(!e)throw new Error("Cannot update: current user not loaded");if(!e.id)throw new Error("Cannot update: current user has no id");let c=n(n({},e),r);return this.userController.updateUser(e.id,c).pipe(o(d=>this.currentUser.set(d)))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{u as a};
1
+ import{l}from"./chunk-G2BRVRGR.js";import{V as o,Z as s,a as n,ca as a,ta as i}from"./chunk-5J7BTB5J.js";var u=class t{userController=a(l);currentUser=i(null);loadMe(){return this.userController.getMeUser().pipe(o(r=>this.currentUser.set(r)))}updateMe(r){let e=this.currentUser();if(!e)throw new Error("Cannot update: current user not loaded");if(!e.id)throw new Error("Cannot update: current user has no id");let c=n(n({},e),r);return this.userController.updateUser(e.id,c).pipe(o(d=>this.currentUser.set(d)))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{u as a};
@@ -0,0 +1 @@
1
+ import{o as h,u as w}from"./chunk-BGEXT3EN.js";import{Bb as u,Db as p,Fb as r,Ka as d,Tb as m,Ub as g,Vb as x,Wa as C,ga as s,ha as c,lb as y,mb as M,oc as b,pc as _,rb as v,sb as t,ta as f,tb as n}from"./chunk-5J7BTB5J.js";function k(o,a){if(o&1){let e=u();t(0,"span",7),m(1,"Delete?"),n(),t(2,"ds-icon-button",8),p("action",function(){s(e);let l=r();return c(l.onDeleteConfirmed())}),n(),t(3,"ds-icon-button",9),p("action",function(){s(e);let l=r();return c(l.onDeleteCancelled())}),n()}}function O(o,a){if(o&1){let e=u();t(0,"ds-kebab-menu",10),p("itemSelected",function(l){s(e);let I=r();return c(I.onMenuAction(l))}),n()}if(o&2){let e=r();v("items",e.menuItems)}}var D=class o{model=_.required();namespaceId=_(void 0);readOnly=_(!1);deleteRequested=b();editRequested=b();pendingDelete=f(!1);menuItems=[{key:"edit",label:"Edit model",icon:"edit"},{key:"delete",label:"Delete model",icon:"delete",variant:"danger"}];get displayTitle(){return this.model().alias??this.model().apiModelName}onMenuAction(a){switch(a){case"edit":this.editRequested.emit(this.model());break;case"delete":this.pendingDelete.set(!0);break}}onDeleteConfirmed(){this.pendingDelete.set(!1),this.deleteRequested.emit(this.model())}onDeleteCancelled(){this.pendingDelete.set(!1)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=C({type:o,selectors:[["agentos-ai-model-item"]],inputs:{model:[1,"model"],namespaceId:[1,"namespaceId"],readOnly:[1,"readOnly"]},outputs:{deleteRequested:"deleteRequested",editRequested:"editRequested"},decls:12,vars:4,consts:[["role","listitem",1,"ai-model-item"],[1,"ai-model-item__body"],[1,"ai-model-item__name"],[1,"ai-model-item__api-name"],[1,"ai-model-item__params"],[1,"ai-model-item__actions"],[3,"items"],[1,"ai-model-item__confirm-label"],["icon","check","variant","danger","title","Confirm deletion",3,"action"],["icon","close","title","Cancel deletion",3,"action"],[3,"itemSelected","items"]],template:function(e,i){e&1&&(t(0,"div",0)(1,"div",1)(2,"span",2),m(3),n(),t(4,"span",3),m(5),n(),t(6,"span",4)(7,"span"),m(8),n()()(),t(9,"div",5),y(10,k,4,0)(11,O,1,1,"ds-kebab-menu",6),n()()),e&2&&(d(3),g(i.displayTitle),d(2),g(i.model().apiModelName),d(3),x("priority: ",i.model().priority),d(2),M(i.pendingDelete()?10:i.readOnly()?-1:11))},dependencies:[w,h],styles:[".ai-model-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:10px;border:1px solid var(--color-border, rgba(0, 0, 0, .08));background:var(--glass-bg, rgba(255, 255, 255, .72));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));backdrop-filter:var(--glass-backdrop-blur, blur(20px));transition:background .15s ease,border-color .15s ease}.ai-model-item[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-color:var(--color-primary, #007aff)}.ai-model-item__body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.2rem;min-width:0}.ai-model-item__name[_ngcontent-%COMP%]{font-size:.95rem;font-weight:500;color:var(--color-text, #1d1d1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-model-item__api-name[_ngcontent-%COMP%]{font-size:.78rem;color:var(--color-text-secondary, #6e6e73);font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-model-item__params[_ngcontent-%COMP%]{display:flex;gap:.75rem;font-size:.75rem;color:var(--color-text-secondary, #6e6e73)}.ai-model-item__actions[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:.125rem;opacity:0;transition:opacity .15s ease}.ai-model-item[_ngcontent-%COMP%]:hover .ai-model-item__actions[_ngcontent-%COMP%], .ai-model-item[_ngcontent-%COMP%]:focus-within .ai-model-item__actions[_ngcontent-%COMP%]{opacity:1}.ai-model-item__confirm-label[_ngcontent-%COMP%]{font-size:.8rem;font-weight:500;color:var(--color-error, #ff3b30);margin-right:.25rem;white-space:nowrap}"],changeDetection:0})};export{D as a};
@@ -21,5 +21,5 @@
21
21
  <style>:root{--color-bg:linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);--color-bg-solid:#fafbfc;--color-bg-secondary:rgba(255, 255, 255, .7);--color-bg-secondary-rgb:255 255 255;--color-text:#1d1d1f;--color-text-secondary:#6e6e73;--color-text-inverse:#ffffff;--color-primary:#007aff;--color-primary-hover:#0051d5;--color-accent:#8b5cf6;--color-link:#007aff;--color-border:rgba(0, 0, 0, .1);--color-border-light:rgba(40, 40, 40, .08);--color-input-bg:rgba(255, 255, 255, .8);--color-success:#34c759;--color-error:#ff3b30;--color-warning:#ff9500;--color-info:#5ac8fa;--color-message-user:rgba(0, 122, 255, .1);--color-message-ai:rgba(255, 255, 255, .8);--color-code-bg:rgba(142, 142, 147, .12);--color-code-text:#ff375f;--color-bg-hover:rgba(0, 0, 0, .04);--glass-bg:rgba(255, 255, 255, .72);--glass-border:rgba(255, 255, 255, .18);--glass-shadow:0 8px 32px 0 rgba(31, 38, 135, .15);--glass-backdrop-blur:blur(20px);--color-modal-bg:#ffffff;--color-modal-border:rgba(0, 0, 0, .12);--color-modal-shadow:0 8px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .1);--color-shadow:rgba(0, 0, 0, .08);--color-overlay:rgba(0, 0, 0, .4);--color-text-tertiary:#a1a1a6;--color-surface-hover:var(--color-bg-hover);--color-surface-secondary:rgba(0, 0, 0, .03);--color-surface-muted:rgba(0, 0, 0, .05);--color-success-bg:#e3f5e1}@media print{html,body,app-root{height:auto!important;max-height:none!important;min-height:auto!important;overflow:visible!important;position:static!important}body{background:#fff!important;color:#000!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;font-size:11pt;line-height:1.6;padding:1rem!important}*{animation:none!important;transition:none!important;box-shadow:none!important;text-shadow:none!important}}*{box-sizing:border-box}html{color-scheme:light}html{--mat-sys-background:light-dark(#faf9fd, #121316);--mat-sys-error:light-dark(#ba1a1a, #ffb4ab);--mat-sys-error-container:light-dark(#ffdad6, #93000a);--mat-sys-inverse-on-surface:light-dark(#f2f0f4, #2f3033);--mat-sys-inverse-primary:light-dark(#abc7ff, #005cbb);--mat-sys-inverse-surface:light-dark(#2f3033, #e3e2e6);--mat-sys-on-background:light-dark(#1a1b1f, #e3e2e6);--mat-sys-on-error:light-dark(#ffffff, #690005);--mat-sys-on-error-container:light-dark(#93000a, #ffdad6);--mat-sys-on-primary:light-dark(#ffffff, #002f65);--mat-sys-on-primary-container:light-dark(#00458f, #d7e3ff);--mat-sys-on-primary-fixed:light-dark(#001b3f, #001b3f);--mat-sys-on-primary-fixed-variant:light-dark(#00458f, #00458f);--mat-sys-on-secondary:light-dark(#ffffff, #283041);--mat-sys-on-secondary-container:light-dark(#3e4759, #dae2f9);--mat-sys-on-secondary-fixed:light-dark(#131c2b, #131c2b);--mat-sys-on-secondary-fixed-variant:light-dark(#3e4759, #3e4759);--mat-sys-on-surface:light-dark(#1a1b1f, #e3e2e6);--mat-sys-on-surface-variant:light-dark(#44474e, #e0e2ec);--mat-sys-on-tertiary:light-dark(#ffffff, #002f65);--mat-sys-on-tertiary-container:light-dark(#00458f, #d7e3ff);--mat-sys-on-tertiary-fixed:light-dark(#001b3f, #001b3f);--mat-sys-on-tertiary-fixed-variant:light-dark(#00458f, #00458f);--mat-sys-outline:light-dark(#74777f, #8e9099);--mat-sys-outline-variant:light-dark(#c4c6d0, #44474e);--mat-sys-primary:light-dark(#005cbb, #abc7ff);--mat-sys-primary-container:light-dark(#d7e3ff, #00458f);--mat-sys-primary-fixed:light-dark(#d7e3ff, #d7e3ff);--mat-sys-primary-fixed-dim:light-dark(#abc7ff, #abc7ff);--mat-sys-scrim:light-dark(#000000, #000000);--mat-sys-secondary:light-dark(#565e71, #bec6dc);--mat-sys-secondary-container:light-dark(#dae2f9, #3e4759);--mat-sys-secondary-fixed:light-dark(#dae2f9, #dae2f9);--mat-sys-secondary-fixed-dim:light-dark(#bec6dc, #bec6dc);--mat-sys-shadow:light-dark(#000000, #000000);--mat-sys-surface:light-dark(#faf9fd, #121316);--mat-sys-surface-bright:light-dark(#faf9fd, #38393c);--mat-sys-surface-container:light-dark(#efedf0, #1f2022);--mat-sys-surface-container-high:light-dark(#e9e7eb, #292a2c);--mat-sys-surface-container-highest:light-dark(#e3e2e6, #343537);--mat-sys-surface-container-low:light-dark(#f4f3f6, #1a1b1f);--mat-sys-surface-container-lowest:light-dark(#ffffff, #0d0e11);--mat-sys-surface-dim:light-dark(#dbd9dd, #121316);--mat-sys-surface-tint:light-dark(#005cbb, #abc7ff);--mat-sys-surface-variant:light-dark(#e0e2ec, #44474e);--mat-sys-tertiary:light-dark(#005cbb, #abc7ff);--mat-sys-tertiary-container:light-dark(#d7e3ff, #00458f);--mat-sys-tertiary-fixed:light-dark(#d7e3ff, #d7e3ff);--mat-sys-tertiary-fixed-dim:light-dark(#abc7ff, #abc7ff);--mat-sys-neutral-variant20:#2d3038;--mat-sys-neutral10:#1a1b1f;--mat-sys-level0:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2:0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large:400 1rem / 1.5rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-body-large-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-body-large-line-height:1.5rem;--mat-sys-body-large-size:1rem;--mat-sys-body-large-tracking:.031rem;--mat-sys-body-large-weight:400;--mat-sys-body-medium:400 .875rem / 1.25rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-body-medium-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-body-medium-line-height:1.25rem;--mat-sys-body-medium-size:.875rem;--mat-sys-body-medium-tracking:.016rem;--mat-sys-body-medium-weight:400;--mat-sys-body-small:400 .75rem / 1rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-body-small-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-body-small-line-height:1rem;--mat-sys-body-small-size:.75rem;--mat-sys-body-small-tracking:.025rem;--mat-sys-body-small-weight:400;--mat-sys-display-large:400 3.562rem / 4rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-display-large-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-display-large-line-height:4rem;--mat-sys-display-large-size:3.562rem;--mat-sys-display-large-tracking:-.016rem;--mat-sys-display-large-weight:400;--mat-sys-display-medium:400 2.812rem / 3.25rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-display-medium-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-display-medium-line-height:3.25rem;--mat-sys-display-medium-size:2.812rem;--mat-sys-display-medium-tracking:0;--mat-sys-display-medium-weight:400;--mat-sys-display-small:400 2.25rem / 2.75rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-display-small-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-display-small-line-height:2.75rem;--mat-sys-display-small-size:2.25rem;--mat-sys-display-small-tracking:0;--mat-sys-display-small-weight:400;--mat-sys-headline-large:400 2rem / 2.5rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-headline-large-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-headline-large-line-height:2.5rem;--mat-sys-headline-large-size:2rem;--mat-sys-headline-large-tracking:0;--mat-sys-headline-large-weight:400;--mat-sys-headline-medium:400 1.75rem / 2.25rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-headline-medium-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-headline-medium-line-height:2.25rem;--mat-sys-headline-medium-size:1.75rem;--mat-sys-headline-medium-tracking:0;--mat-sys-headline-medium-weight:400;--mat-sys-headline-small:400 1.5rem / 2rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-headline-small-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-headline-small-line-height:2rem;--mat-sys-headline-small-size:1.5rem;--mat-sys-headline-small-tracking:0;--mat-sys-headline-small-weight:400;--mat-sys-label-large:500 .875rem / 1.25rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-label-large-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-label-large-line-height:1.25rem;--mat-sys-label-large-size:.875rem;--mat-sys-label-large-tracking:.006rem;--mat-sys-label-large-weight:500;--mat-sys-label-large-weight-prominent:700;--mat-sys-label-medium:500 .75rem / 1rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-label-medium-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-label-medium-line-height:1rem;--mat-sys-label-medium-size:.75rem;--mat-sys-label-medium-tracking:.031rem;--mat-sys-label-medium-weight:500;--mat-sys-label-medium-weight-prominent:700;--mat-sys-label-small:500 .688rem / 1rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-label-small-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-label-small-line-height:1rem;--mat-sys-label-small-size:.688rem;--mat-sys-label-small-tracking:.031rem;--mat-sys-label-small-weight:500;--mat-sys-title-large:400 1.375rem / 1.75rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-title-large-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-title-large-line-height:1.75rem;--mat-sys-title-large-size:1.375rem;--mat-sys-title-large-tracking:0;--mat-sys-title-large-weight:400;--mat-sys-title-medium:500 1rem / 1.5rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-title-medium-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-title-medium-line-height:1.5rem;--mat-sys-title-medium-size:1rem;--mat-sys-title-medium-tracking:.009rem;--mat-sys-title-medium-weight:500;--mat-sys-title-small:500 .875rem / 1.25rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-title-small-font:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--mat-sys-title-small-line-height:1.25rem;--mat-sys-title-small-size:.875rem;--mat-sys-title-small-tracking:.006rem;--mat-sys-title-small-weight:500;--mat-sys-corner-extra-large:28px;--mat-sys-corner-extra-large-top:28px 28px 0 0;--mat-sys-corner-extra-small:4px;--mat-sys-corner-extra-small-top:4px 4px 0 0;--mat-sys-corner-full:9999px;--mat-sys-corner-large:16px;--mat-sys-corner-large-end:0 16px 16px 0;--mat-sys-corner-large-start:16px 0 0 16px;--mat-sys-corner-large-top:16px 16px 0 0;--mat-sys-corner-medium:12px;--mat-sys-corner-none:0;--mat-sys-corner-small:8px;--mat-sys-dragged-state-layer-opacity:.16;--mat-sys-focus-state-layer-opacity:.12;--mat-sys-hover-state-layer-opacity:.08;--mat-sys-pressed-state-layer-opacity:.12;--mat-snack-bar-container-shape:transparent;--mat-snack-bar-container-color:transparent;--mat-snack-bar-supporting-text-color:var(--color-text)}html,body{margin:0;padding:0;width:100%;height:100%}body{background:var(--color-bg);color:var(--color-text);font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,Helvetica Neue,Arial,sans-serif;transition:background .3s ease,color .3s ease;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:0!important}</style><link rel="stylesheet" href="styles-OTP4QCB4.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-OTP4QCB4.css"></noscript></head>
22
22
  <body>
23
23
  <app-root></app-root>
24
- <link rel="modulepreload" href="chunk-BD6N2UN6.js"><link rel="modulepreload" href="chunk-QVW2GZXC.js"><link rel="modulepreload" href="chunk-VYU454KQ.js"><link rel="modulepreload" href="chunk-LRKPIL3B.js"><link rel="modulepreload" href="chunk-M7LNEVHA.js"><link rel="modulepreload" href="chunk-7MQRVE7E.js"><link rel="modulepreload" href="chunk-TG75SVZ4.js"><link rel="modulepreload" href="chunk-LBMJRBEQ.js"><link rel="modulepreload" href="chunk-OBV4LQBZ.js"><link rel="modulepreload" href="chunk-IRZNRZ5Q.js"><script src="polyfills-2FSRUXKO.js" type="module"></script><script src="main-UE2RLE5B.js" type="module"></script></body>
24
+ <link rel="modulepreload" href="chunk-G2BRVRGR.js"><link rel="modulepreload" href="chunk-QVW2GZXC.js"><link rel="modulepreload" href="chunk-VYU454KQ.js"><link rel="modulepreload" href="chunk-LRKPIL3B.js"><link rel="modulepreload" href="chunk-M7LNEVHA.js"><link rel="modulepreload" href="chunk-7MQRVE7E.js"><link rel="modulepreload" href="chunk-TG75SVZ4.js"><link rel="modulepreload" href="chunk-LBMJRBEQ.js"><link rel="modulepreload" href="chunk-OBV4LQBZ.js"><link rel="modulepreload" href="chunk-IRZNRZ5Q.js"><script src="polyfills-2FSRUXKO.js" type="module"></script><script src="main-VRT323QR.js" type="module"></script></body>
25
25
  </html>