@memberjunction/ng-dashboards 2.127.0 → 2.129.0

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 (171) hide show
  1. package/dist/AI/components/agents/agent-configuration.component.d.ts +34 -1
  2. package/dist/AI/components/agents/agent-configuration.component.d.ts.map +1 -1
  3. package/dist/AI/components/agents/agent-configuration.component.js +419 -109
  4. package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
  5. package/dist/AI/components/agents/agent-editor.component.d.ts +1 -1
  6. package/dist/AI/components/agents/agent-editor.component.d.ts.map +1 -1
  7. package/dist/AI/components/agents/agent-filter-panel.component.d.ts +1 -1
  8. package/dist/AI/components/agents/agent-filter-panel.component.d.ts.map +1 -1
  9. package/dist/AI/components/agents/agent-filter-panel.component.js +3 -3
  10. package/dist/AI/components/agents/agent-filter-panel.component.js.map +1 -1
  11. package/dist/AI/components/execution-monitoring.component.d.ts +1 -1
  12. package/dist/AI/components/execution-monitoring.component.d.ts.map +1 -1
  13. package/dist/AI/components/execution-monitoring.component.js +3 -3
  14. package/dist/AI/components/execution-monitoring.component.js.map +1 -1
  15. package/dist/AI/components/models/{model-management-v2.component.d.ts → model-management.component.d.ts} +21 -5
  16. package/dist/AI/components/models/model-management.component.d.ts.map +1 -0
  17. package/dist/AI/components/models/model-management.component.js +1283 -0
  18. package/dist/AI/components/models/model-management.component.js.map +1 -0
  19. package/dist/AI/components/prompts/model-prompt-priority-matrix.component.d.ts +2 -1
  20. package/dist/AI/components/prompts/model-prompt-priority-matrix.component.d.ts.map +1 -1
  21. package/dist/AI/components/prompts/prompt-filter-panel.component.js +2 -2
  22. package/dist/AI/components/prompts/{prompt-management-v2.component.d.ts → prompt-management.component.d.ts} +30 -5
  23. package/dist/AI/components/prompts/prompt-management.component.d.ts.map +1 -0
  24. package/dist/AI/components/prompts/prompt-management.component.js +1079 -0
  25. package/dist/AI/components/prompts/prompt-management.component.js.map +1 -0
  26. package/dist/AI/components/prompts/prompt-version-control.component.d.ts +2 -1
  27. package/dist/AI/components/prompts/prompt-version-control.component.d.ts.map +1 -1
  28. package/dist/AI/components/prompts/prompt-version-control.component.js +1 -1
  29. package/dist/AI/components/prompts/prompt-version-control.component.js.map +1 -1
  30. package/dist/AI/components/system/system-config-filter-panel.component.js +2 -2
  31. package/dist/AI/components/system/system-configuration.component.d.ts +55 -11
  32. package/dist/AI/components/system/system-configuration.component.d.ts.map +1 -1
  33. package/dist/AI/components/system/system-configuration.component.js +790 -131
  34. package/dist/AI/components/system/system-configuration.component.js.map +1 -1
  35. package/dist/AI/components/widgets/kpi-card.component.d.ts.map +1 -1
  36. package/dist/AI/components/widgets/kpi-card.component.js +3 -3
  37. package/dist/AI/components/widgets/kpi-card.component.js.map +1 -1
  38. package/dist/AI/index.d.ts +2 -2
  39. package/dist/AI/index.d.ts.map +1 -1
  40. package/dist/AI/index.js +2 -2
  41. package/dist/AI/index.js.map +1 -1
  42. package/dist/AI/services/ai-instrumentation.service.d.ts +5 -6
  43. package/dist/AI/services/ai-instrumentation.service.d.ts.map +1 -1
  44. package/dist/AI/services/ai-instrumentation.service.js.map +1 -1
  45. package/dist/Communication/communication-dashboard.component.d.ts +2 -0
  46. package/dist/Communication/communication-dashboard.component.d.ts.map +1 -1
  47. package/dist/Communication/communication-dashboard.component.js +5 -2
  48. package/dist/Communication/communication-dashboard.component.js.map +1 -1
  49. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts +3 -2
  50. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts.map +1 -1
  51. package/dist/ComponentStudio/component-studio-dashboard.component.js +7 -3
  52. package/dist/ComponentStudio/component-studio-dashboard.component.js.map +1 -1
  53. package/dist/Credentials/components/credential-category-edit-panel.component.d.ts +44 -0
  54. package/dist/Credentials/components/credential-category-edit-panel.component.d.ts.map +1 -0
  55. package/dist/Credentials/components/credential-category-edit-panel.component.js +456 -0
  56. package/dist/Credentials/components/credential-category-edit-panel.component.js.map +1 -0
  57. package/dist/Credentials/components/credential-edit-panel.component.d.ts +70 -0
  58. package/dist/Credentials/components/credential-edit-panel.component.d.ts.map +1 -0
  59. package/dist/Credentials/components/credential-edit-panel.component.js +694 -0
  60. package/dist/Credentials/components/credential-edit-panel.component.js.map +1 -0
  61. package/dist/Credentials/components/credential-type-edit-panel.component.d.ts +56 -0
  62. package/dist/Credentials/components/credential-type-edit-panel.component.d.ts.map +1 -0
  63. package/dist/Credentials/components/credential-type-edit-panel.component.js +563 -0
  64. package/dist/Credentials/components/credential-type-edit-panel.component.js.map +1 -0
  65. package/dist/Credentials/components/credentials-audit-resource.component.d.ts +81 -0
  66. package/dist/Credentials/components/credentials-audit-resource.component.d.ts.map +1 -0
  67. package/dist/Credentials/components/credentials-audit-resource.component.js +864 -0
  68. package/dist/Credentials/components/credentials-audit-resource.component.js.map +1 -0
  69. package/dist/Credentials/components/credentials-categories-resource.component.d.ts +61 -0
  70. package/dist/Credentials/components/credentials-categories-resource.component.d.ts.map +1 -0
  71. package/dist/Credentials/components/credentials-categories-resource.component.js +816 -0
  72. package/dist/Credentials/components/credentials-categories-resource.component.js.map +1 -0
  73. package/dist/Credentials/components/credentials-list-resource.component.d.ts +83 -0
  74. package/dist/Credentials/components/credentials-list-resource.component.d.ts.map +1 -0
  75. package/dist/Credentials/components/credentials-list-resource.component.js +1253 -0
  76. package/dist/Credentials/components/credentials-list-resource.component.js.map +1 -0
  77. package/dist/Credentials/components/credentials-overview-resource.component.d.ts +99 -0
  78. package/dist/Credentials/components/credentials-overview-resource.component.d.ts.map +1 -0
  79. package/dist/Credentials/components/credentials-overview-resource.component.js +936 -0
  80. package/dist/Credentials/components/credentials-overview-resource.component.js.map +1 -0
  81. package/dist/Credentials/components/credentials-types-resource.component.d.ts +70 -0
  82. package/dist/Credentials/components/credentials-types-resource.component.d.ts.map +1 -0
  83. package/dist/Credentials/components/credentials-types-resource.component.js +868 -0
  84. package/dist/Credentials/components/credentials-types-resource.component.js.map +1 -0
  85. package/dist/Credentials/credentials-dashboard.component.d.ts +37 -0
  86. package/dist/Credentials/credentials-dashboard.component.d.ts.map +1 -0
  87. package/dist/Credentials/credentials-dashboard.component.js +290 -0
  88. package/dist/Credentials/credentials-dashboard.component.js.map +1 -0
  89. package/dist/Credentials/index.d.ts +7 -0
  90. package/dist/Credentials/index.d.ts.map +1 -0
  91. package/dist/Credentials/index.js +9 -0
  92. package/dist/Credentials/index.js.map +1 -0
  93. package/dist/Credentials/pipes/group-by.pipe.d.ts +13 -0
  94. package/dist/Credentials/pipes/group-by.pipe.d.ts.map +1 -0
  95. package/dist/Credentials/pipes/group-by.pipe.js +29 -0
  96. package/dist/Credentials/pipes/group-by.pipe.js.map +1 -0
  97. package/dist/DataExplorer/components/navigation-panel/navigation-panel.component.d.ts +2 -2
  98. package/dist/DataExplorer/components/view-config-panel/view-config-panel.component.d.ts +3 -3
  99. package/dist/DataExplorer/components/view-config-panel/view-config-panel.component.d.ts.map +1 -1
  100. package/dist/DataExplorer/components/view-config-panel/view-config-panel.component.js +50 -19
  101. package/dist/DataExplorer/components/view-config-panel/view-config-panel.component.js.map +1 -1
  102. package/dist/DataExplorer/components/view-selector/view-selector.component.d.ts +17 -1
  103. package/dist/DataExplorer/components/view-selector/view-selector.component.d.ts.map +1 -1
  104. package/dist/DataExplorer/components/view-selector/view-selector.component.js +77 -45
  105. package/dist/DataExplorer/components/view-selector/view-selector.component.js.map +1 -1
  106. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts +36 -0
  107. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
  108. package/dist/DataExplorer/data-explorer-dashboard.component.js +552 -368
  109. package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
  110. package/dist/DataExplorer/services/explorer-state.service.d.ts +5 -5
  111. package/dist/DataExplorer/services/explorer-state.service.d.ts.map +1 -1
  112. package/dist/DataExplorer/services/explorer-state.service.js +125 -151
  113. package/dist/DataExplorer/services/explorer-state.service.js.map +1 -1
  114. package/dist/EntityAdmin/entity-admin-dashboard.component.d.ts +15 -19
  115. package/dist/EntityAdmin/entity-admin-dashboard.component.d.ts.map +1 -1
  116. package/dist/EntityAdmin/entity-admin-dashboard.component.js +70 -26
  117. package/dist/EntityAdmin/entity-admin-dashboard.component.js.map +1 -1
  118. package/dist/Home/home-dashboard.component.d.ts +6 -5
  119. package/dist/Home/home-dashboard.component.d.ts.map +1 -1
  120. package/dist/Home/home-dashboard.component.js +174 -166
  121. package/dist/Home/home-dashboard.component.js.map +1 -1
  122. package/dist/Scheduling/scheduling-dashboard.component.d.ts +2 -0
  123. package/dist/Scheduling/scheduling-dashboard.component.d.ts.map +1 -1
  124. package/dist/Scheduling/scheduling-dashboard.component.js +5 -2
  125. package/dist/Scheduling/scheduling-dashboard.component.js.map +1 -1
  126. package/dist/Scheduling/services/scheduling-instrumentation.service.d.ts.map +1 -1
  127. package/dist/Scheduling/services/scheduling-instrumentation.service.js +4 -2
  128. package/dist/Scheduling/services/scheduling-instrumentation.service.js.map +1 -1
  129. package/dist/SystemDiagnostics/index.d.ts +2 -0
  130. package/dist/SystemDiagnostics/index.d.ts.map +1 -0
  131. package/dist/SystemDiagnostics/index.js +3 -0
  132. package/dist/SystemDiagnostics/index.js.map +1 -0
  133. package/dist/SystemDiagnostics/system-diagnostics.component.d.ts +497 -0
  134. package/dist/SystemDiagnostics/system-diagnostics.component.d.ts.map +1 -0
  135. package/dist/SystemDiagnostics/system-diagnostics.component.js +6063 -0
  136. package/dist/SystemDiagnostics/system-diagnostics.component.js.map +1 -0
  137. package/dist/Testing/testing-dashboard.component.d.ts +2 -0
  138. package/dist/Testing/testing-dashboard.component.d.ts.map +1 -1
  139. package/dist/Testing/testing-dashboard.component.js +5 -2
  140. package/dist/Testing/testing-dashboard.component.js.map +1 -1
  141. package/dist/module.d.ts +103 -94
  142. package/dist/module.d.ts.map +1 -1
  143. package/dist/module.js +94 -29
  144. package/dist/module.js.map +1 -1
  145. package/dist/public-api.d.ts +3 -1
  146. package/dist/public-api.d.ts.map +1 -1
  147. package/dist/public-api.js +21 -1
  148. package/dist/public-api.js.map +1 -1
  149. package/package.json +28 -25
  150. package/dist/AI/components/models/model-management-v2.component.d.ts.map +0 -1
  151. package/dist/AI/components/models/model-management-v2.component.js +0 -981
  152. package/dist/AI/components/models/model-management-v2.component.js.map +0 -1
  153. package/dist/AI/components/prompts/prompt-management-v2.component.d.ts.map +0 -1
  154. package/dist/AI/components/prompts/prompt-management-v2.component.js +0 -811
  155. package/dist/AI/components/prompts/prompt-management-v2.component.js.map +0 -1
  156. package/dist/EntityAdmin/components/entity-details.component.d.ts +0 -50
  157. package/dist/EntityAdmin/components/entity-details.component.d.ts.map +0 -1
  158. package/dist/EntityAdmin/components/entity-details.component.js +0 -680
  159. package/dist/EntityAdmin/components/entity-details.component.js.map +0 -1
  160. package/dist/EntityAdmin/components/entity-filter-panel.component.d.ts +0 -31
  161. package/dist/EntityAdmin/components/entity-filter-panel.component.d.ts.map +0 -1
  162. package/dist/EntityAdmin/components/entity-filter-panel.component.js +0 -160
  163. package/dist/EntityAdmin/components/entity-filter-panel.component.js.map +0 -1
  164. package/dist/EntityAdmin/components/erd-composite.component.d.ts +0 -73
  165. package/dist/EntityAdmin/components/erd-composite.component.d.ts.map +0 -1
  166. package/dist/EntityAdmin/components/erd-composite.component.js +0 -271
  167. package/dist/EntityAdmin/components/erd-composite.component.js.map +0 -1
  168. package/dist/EntityAdmin/components/erd-diagram.component.d.ts +0 -47
  169. package/dist/EntityAdmin/components/erd-diagram.component.d.ts.map +0 -1
  170. package/dist/EntityAdmin/components/erd-diagram.component.js +0 -618
  171. package/dist/EntityAdmin/components/erd-diagram.component.js.map +0 -1
@@ -5,29 +5,31 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { Component } from '@angular/core';
8
- import { RunView, LogError, LogStatus, CompositeKey } from '@memberjunction/core';
8
+ import { LogError, LogStatus, CompositeKey } from '@memberjunction/core';
9
+ import { AIEngineBase } from '@memberjunction/ai-engine-base';
9
10
  import { RegisterClass } from '@memberjunction/global';
10
11
  import { BaseResourceComponent } from '@memberjunction/ng-shared';
11
12
  import * as i0 from "@angular/core";
12
13
  import * as i1 from "@memberjunction/ng-shared";
13
- import * as i2 from "@progress/kendo-angular-layout";
14
- import * as i3 from "@memberjunction/ng-shared-generic";
15
- import * as i4 from "./system-config-filter-panel.component";
14
+ import * as i2 from "@angular/common";
15
+ import * as i3 from "@progress/kendo-angular-layout";
16
+ import * as i4 from "@memberjunction/ng-shared-generic";
17
+ import * as i5 from "./system-config-filter-panel.component";
16
18
  const _forTrack0 = ($index, $item) => $item.ID;
17
- function SystemConfigurationComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
19
+ function SystemConfigurationComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
18
20
  i0.ɵɵtext(0, " Hide Filters ");
19
21
  } }
20
- function SystemConfigurationComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
22
+ function SystemConfigurationComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
21
23
  i0.ɵɵtext(0, " Show Filters ");
22
24
  } }
23
- function SystemConfigurationComponent_Conditional_22_Template(rf, ctx) { if (rf & 1) {
24
- i0.ɵɵelementStart(0, "div", 17);
25
- i0.ɵɵelement(1, "mj-loading", 19);
25
+ function SystemConfigurationComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
26
+ i0.ɵɵelementStart(0, "div", 22);
27
+ i0.ɵɵelement(1, "mj-loading", 26);
26
28
  i0.ɵɵelementEnd();
27
29
  } }
28
- function SystemConfigurationComponent_Conditional_23_Template(rf, ctx) { if (rf & 1) {
29
- i0.ɵɵelementStart(0, "div", 18)(1, "p", 20);
30
- i0.ɵɵelement(2, "i", 21);
30
+ function SystemConfigurationComponent_Conditional_28_Template(rf, ctx) { if (rf & 1) {
31
+ i0.ɵɵelementStart(0, "div", 23)(1, "p", 27);
32
+ i0.ɵɵelement(2, "i", 28);
31
33
  i0.ɵɵtext(3);
32
34
  i0.ɵɵelementEnd()();
33
35
  } if (rf & 2) {
@@ -35,9 +37,9 @@ function SystemConfigurationComponent_Conditional_23_Template(rf, ctx) { if (rf
35
37
  i0.ɵɵadvance(3);
36
38
  i0.ɵɵtextInterpolate1(" ", ctx_r0.error, " ");
37
39
  } }
38
- function SystemConfigurationComponent_Conditional_24_Conditional_0_Template(rf, ctx) { if (rf & 1) {
39
- i0.ɵɵelementStart(0, "div", 22);
40
- i0.ɵɵelement(1, "i", 24);
40
+ function SystemConfigurationComponent_Conditional_29_Conditional_0_Template(rf, ctx) { if (rf & 1) {
41
+ i0.ɵɵelementStart(0, "div", 29);
42
+ i0.ɵɵelement(1, "i", 4);
41
43
  i0.ɵɵelementStart(2, "h3");
42
44
  i0.ɵɵtext(3, "No configurations found");
43
45
  i0.ɵɵelementEnd();
@@ -45,14 +47,14 @@ function SystemConfigurationComponent_Conditional_24_Conditional_0_Template(rf,
45
47
  i0.ɵɵtext(5, "No AI configurations match your current filters. Try adjusting your search criteria or create a new configuration.");
46
48
  i0.ɵɵelementEnd()();
47
49
  } }
48
- function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
49
- i0.ɵɵelementStart(0, "span", 32);
50
- i0.ɵɵelement(1, "i", 44);
50
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
51
+ i0.ɵɵelementStart(0, "span", 40);
52
+ i0.ɵɵelement(1, "i", 52);
51
53
  i0.ɵɵtext(2, " Default ");
52
54
  i0.ɵɵelementEnd();
53
55
  } }
54
- function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_13_Template(rf, ctx) { if (rf & 1) {
55
- i0.ɵɵelementStart(0, "p", 34);
56
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_15_Template(rf, ctx) { if (rf & 1) {
57
+ i0.ɵɵelementStart(0, "p", 44);
56
58
  i0.ɵɵtext(1);
57
59
  i0.ɵɵelementEnd();
58
60
  } if (rf & 2) {
@@ -60,82 +62,539 @@ function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditi
60
62
  i0.ɵɵadvance();
61
63
  i0.ɵɵtextInterpolate(config_r3.Description);
62
64
  } }
63
- function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_14_Template(rf, ctx) { if (rf & 1) {
64
- i0.ɵɵelementStart(0, "p", 35);
65
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_16_Template(rf, ctx) { if (rf & 1) {
66
+ i0.ɵɵelementStart(0, "p", 45);
65
67
  i0.ɵɵtext(1, "No description provided");
66
68
  i0.ɵɵelementEnd();
67
69
  } }
68
- function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_22_Template(rf, ctx) { if (rf & 1) {
69
- i0.ɵɵelementStart(0, "button", 41);
70
- i0.ɵɵelement(1, "i", 44);
71
- i0.ɵɵtext(2, " Set Default ");
70
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_22_Template(rf, ctx) { if (rf & 1) {
71
+ const _r4 = i0.ɵɵgetCurrentView();
72
+ i0.ɵɵelementStart(0, "div", 64);
73
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_22_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const config_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); ctx_r0.onOpenPrompt(config_r3.DefaultPromptForContextCompressionID); return i0.ɵɵresetView($event.stopPropagation()); });
74
+ i0.ɵɵelementStart(1, "div", 65)(2, "div", 66);
75
+ i0.ɵɵelement(3, "i", 67);
72
76
  i0.ɵɵelementEnd();
77
+ i0.ɵɵelementStart(4, "div", 68)(5, "span", 69);
78
+ i0.ɵɵtext(6, "Context Compression");
79
+ i0.ɵɵelementEnd();
80
+ i0.ɵɵelementStart(7, "span", 70);
81
+ i0.ɵɵtext(8);
82
+ i0.ɵɵelementEnd()()();
83
+ i0.ɵɵelement(9, "i", 71);
84
+ i0.ɵɵelementEnd();
85
+ } if (rf & 2) {
86
+ const config_r3 = i0.ɵɵnextContext(2).$implicit;
87
+ i0.ɵɵadvance(8);
88
+ i0.ɵɵtextInterpolate(config_r3.compressionPrompt.Name);
73
89
  } }
74
- function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Template(rf, ctx) { if (rf & 1) {
75
- const _r2 = i0.ɵɵgetCurrentView();
76
- i0.ɵɵelementStart(0, "div", 25)(1, "div", 26)(2, "div", 27)(3, "div", 28);
77
- i0.ɵɵelement(4, "i");
90
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_23_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵelementStart(0, "div", 62);
92
+ i0.ɵɵtext(1, "No compression prompt configured");
78
93
  i0.ɵɵelementEnd();
79
- i0.ɵɵelementStart(5, "div", 29)(6, "h4", 30);
80
- i0.ɵɵtext(7);
94
+ } }
95
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_24_Template(rf, ctx) { if (rf & 1) {
96
+ const _r5 = i0.ɵɵgetCurrentView();
97
+ i0.ɵɵelementStart(0, "div", 64);
98
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_24_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const config_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); ctx_r0.onOpenPrompt(config_r3.DefaultPromptForContextSummarizationID); return i0.ɵɵresetView($event.stopPropagation()); });
99
+ i0.ɵɵelementStart(1, "div", 65)(2, "div", 66);
100
+ i0.ɵɵelement(3, "i", 72);
101
+ i0.ɵɵelementEnd();
102
+ i0.ɵɵelementStart(4, "div", 68)(5, "span", 69);
103
+ i0.ɵɵtext(6, "Context Summarization");
104
+ i0.ɵɵelementEnd();
105
+ i0.ɵɵelementStart(7, "span", 70);
106
+ i0.ɵɵtext(8);
107
+ i0.ɵɵelementEnd()()();
108
+ i0.ɵɵelement(9, "i", 71);
109
+ i0.ɵɵelementEnd();
110
+ } if (rf & 2) {
111
+ const config_r3 = i0.ɵɵnextContext(2).$implicit;
112
+ i0.ɵɵadvance(8);
113
+ i0.ɵɵtextInterpolate(config_r3.summarizationPrompt.Name);
114
+ } }
115
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_25_Template(rf, ctx) { if (rf & 1) {
116
+ i0.ɵɵelementStart(0, "div", 62);
117
+ i0.ɵɵtext(1, "No summarization prompt configured");
118
+ i0.ɵɵelementEnd();
119
+ } }
120
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_26_For_6_Template(rf, ctx) { if (rf & 1) {
121
+ const _r6 = i0.ɵɵgetCurrentView();
122
+ i0.ɵɵelementStart(0, "div", 76);
123
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_26_For_6_Template_div_click_0_listener($event) { const param_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); ctx_r0.onOpenParam(param_r7); return i0.ɵɵresetView($event.stopPropagation()); });
124
+ i0.ɵɵelementStart(1, "div", 77)(2, "div", 78);
125
+ i0.ɵɵelement(3, "i");
81
126
  i0.ɵɵelementEnd();
82
- i0.ɵɵelementStart(8, "div", 31);
83
- i0.ɵɵtemplate(9, SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_9_Template, 3, 0, "span", 32);
127
+ i0.ɵɵelementStart(4, "div", 79)(5, "span", 80);
128
+ i0.ɵɵtext(6);
129
+ i0.ɵɵelementEnd();
130
+ i0.ɵɵelementStart(7, "span", 81);
131
+ i0.ɵɵtext(8);
84
132
  i0.ɵɵelementEnd()()();
85
- i0.ɵɵelementStart(10, "div");
133
+ i0.ɵɵelementStart(9, "span", 82);
134
+ i0.ɵɵtext(10);
135
+ i0.ɵɵelementEnd()();
136
+ } if (rf & 2) {
137
+ const param_r7 = ctx.$implicit;
138
+ const ctx_r0 = i0.ɵɵnextContext(7);
139
+ i0.ɵɵadvance(3);
140
+ i0.ɵɵclassMap(ctx_r0.getParamTypeIcon(param_r7.Type));
141
+ i0.ɵɵadvance(3);
142
+ i0.ɵɵtextInterpolate(param_r7.Name);
143
+ i0.ɵɵadvance(2);
144
+ i0.ɵɵtextInterpolate(param_r7.Type);
145
+ i0.ɵɵadvance(2);
146
+ i0.ɵɵtextInterpolate(ctx_r0.formatParamValue(param_r7));
147
+ } }
148
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_26_Template(rf, ctx) { if (rf & 1) {
149
+ i0.ɵɵelementStart(0, "div", 63)(1, "h5", 58);
150
+ i0.ɵɵelement(2, "i", 73);
151
+ i0.ɵɵtext(3, " Configuration Parameters ");
152
+ i0.ɵɵelementEnd();
153
+ i0.ɵɵelementStart(4, "div", 74);
154
+ i0.ɵɵrepeaterCreate(5, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_26_For_6_Template, 11, 5, "div", 75, _forTrack0);
155
+ i0.ɵɵelementEnd()();
156
+ } if (rf & 2) {
157
+ const config_r3 = i0.ɵɵnextContext(2).$implicit;
158
+ i0.ɵɵadvance(5);
159
+ i0.ɵɵrepeater(config_r3.params);
160
+ } }
161
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_27_Template(rf, ctx) { if (rf & 1) {
162
+ i0.ɵɵelementStart(0, "div", 63)(1, "h5", 58);
163
+ i0.ɵɵelement(2, "i", 73);
164
+ i0.ɵɵtext(3, " Configuration Parameters ");
165
+ i0.ɵɵelementEnd();
166
+ i0.ɵɵelementStart(4, "div", 83);
167
+ i0.ɵɵtext(5, "No parameters configured");
168
+ i0.ɵɵelementEnd()();
169
+ } }
170
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Template(rf, ctx) { if (rf & 1) {
171
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 53)(2, "div", 54)(3, "span", 55);
172
+ i0.ɵɵtext(4, "Parameters");
173
+ i0.ɵɵelementEnd();
174
+ i0.ɵɵelementStart(5, "span", 56);
175
+ i0.ɵɵtext(6);
176
+ i0.ɵɵelementEnd()();
177
+ i0.ɵɵelementStart(7, "div", 54)(8, "span", 55);
178
+ i0.ɵɵtext(9, "Created");
179
+ i0.ɵɵelementEnd();
180
+ i0.ɵɵelementStart(10, "span", 56);
86
181
  i0.ɵɵtext(11);
87
182
  i0.ɵɵelementEnd()();
88
- i0.ɵɵelementStart(12, "div", 33);
89
- i0.ɵɵtemplate(13, SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_13_Template, 2, 1, "p", 34)(14, SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_14_Template, 2, 0, "p", 35);
90
- i0.ɵɵelementEnd();
91
- i0.ɵɵelementStart(15, "div", 36);
92
- i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Template_div_click_15_listener($event) { i0.ɵɵrestoreView(_r2); return i0.ɵɵresetView($event.stopPropagation()); });
93
- i0.ɵɵelementStart(16, "button", 37);
94
- i0.ɵɵelement(17, "i", 38);
95
- i0.ɵɵtext(18, " View ");
96
- i0.ɵɵelementEnd();
97
- i0.ɵɵelementStart(19, "button", 39);
98
- i0.ɵɵelement(20, "i", 40);
99
- i0.ɵɵtext(21, " Configure ");
100
- i0.ɵɵelementEnd();
101
- i0.ɵɵtemplate(22, SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Conditional_22_Template, 3, 0, "button", 41);
102
- i0.ɵɵelementStart(23, "button", 42);
103
- i0.ɵɵelement(24, "i", 43);
104
- i0.ɵɵtext(25, " Delete ");
183
+ i0.ɵɵelementStart(12, "div", 54)(13, "span", 55);
184
+ i0.ɵɵtext(14, "Updated");
185
+ i0.ɵɵelementEnd();
186
+ i0.ɵɵelementStart(15, "span", 56);
187
+ i0.ɵɵtext(16);
188
+ i0.ɵɵelementEnd()()();
189
+ i0.ɵɵelementStart(17, "div", 57)(18, "h5", 58);
190
+ i0.ɵɵelement(19, "i", 59);
191
+ i0.ɵɵtext(20, " Linked Prompts ");
192
+ i0.ɵɵelementEnd();
193
+ i0.ɵɵelementStart(21, "div", 60);
194
+ i0.ɵɵtemplate(22, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_22_Template, 10, 1, "div", 61)(23, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_23_Template, 2, 0, "div", 62)(24, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_24_Template, 10, 1, "div", 61)(25, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_25_Template, 2, 0, "div", 62);
195
+ i0.ɵɵelementEnd()();
196
+ i0.ɵɵtemplate(26, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_26_Template, 7, 0, "div", 63)(27, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Conditional_27_Template, 6, 0, "div", 63);
197
+ i0.ɵɵelementEnd();
198
+ } if (rf & 2) {
199
+ const config_r3 = i0.ɵɵnextContext().$implicit;
200
+ const ctx_r0 = i0.ɵɵnextContext(4);
201
+ i0.ɵɵadvance(6);
202
+ i0.ɵɵtextInterpolate((config_r3.params == null ? null : config_r3.params.length) || 0);
203
+ i0.ɵɵadvance(5);
204
+ i0.ɵɵtextInterpolate(ctx_r0.formatDate(config_r3.__mj_CreatedAt));
205
+ i0.ɵɵadvance(5);
206
+ i0.ɵɵtextInterpolate(ctx_r0.formatDate(config_r3.__mj_UpdatedAt));
207
+ i0.ɵɵadvance(6);
208
+ i0.ɵɵconditional(config_r3.compressionPrompt ? 22 : 23);
209
+ i0.ɵɵadvance(2);
210
+ i0.ɵɵconditional(config_r3.summarizationPrompt ? 24 : 25);
211
+ i0.ɵɵadvance(2);
212
+ i0.ɵɵconditional(config_r3.params && config_r3.params.length > 0 ? 26 : 27);
213
+ } }
214
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
215
+ const _r2 = i0.ɵɵgetCurrentView();
216
+ i0.ɵɵelementStart(0, "div", 33)(1, "div", 34);
217
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Template_div_click_1_listener() { const config_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.toggleExpanded(config_r3)); });
218
+ i0.ɵɵelementStart(2, "div", 35)(3, "div", 36);
219
+ i0.ɵɵelement(4, "i", 4);
220
+ i0.ɵɵelementEnd();
221
+ i0.ɵɵelementStart(5, "div", 37)(6, "h4", 38);
222
+ i0.ɵɵtext(7);
223
+ i0.ɵɵelementEnd();
224
+ i0.ɵɵelementStart(8, "div", 39);
225
+ i0.ɵɵtemplate(9, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_9_Template, 3, 0, "span", 40);
226
+ i0.ɵɵelementStart(10, "span", 41);
227
+ i0.ɵɵelement(11, "i");
228
+ i0.ɵɵtext(12);
229
+ i0.ɵɵelementEnd()()()();
230
+ i0.ɵɵelement(13, "i", 42);
231
+ i0.ɵɵelementEnd();
232
+ i0.ɵɵelementStart(14, "div", 43);
233
+ i0.ɵɵtemplate(15, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_15_Template, 2, 1, "p", 44)(16, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_16_Template, 2, 0, "p", 45)(17, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Conditional_17_Template, 28, 6, "div", 46);
234
+ i0.ɵɵelementEnd();
235
+ i0.ɵɵelementStart(18, "div", 47);
236
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Template_div_click_18_listener($event) { i0.ɵɵrestoreView(_r2); return i0.ɵɵresetView($event.stopPropagation()); });
237
+ i0.ɵɵelementStart(19, "button", 48);
238
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Template_button_click_19_listener($event) { const config_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.showConfigDetails(config_r3, $event)); });
239
+ i0.ɵɵelement(20, "i", 49);
240
+ i0.ɵɵtext(21, " Details ");
241
+ i0.ɵɵelementEnd();
242
+ i0.ɵɵelementStart(22, "button", 50);
243
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Template_button_click_22_listener() { const config_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.onOpenConfiguration(config_r3)); });
244
+ i0.ɵɵelement(23, "i", 51);
245
+ i0.ɵɵtext(24, " Configure ");
105
246
  i0.ɵɵelementEnd()()();
106
247
  } if (rf & 2) {
107
248
  const config_r3 = ctx.$implicit;
108
- const ctx_r0 = i0.ɵɵnextContext(3);
109
- i0.ɵɵadvance(4);
110
- i0.ɵɵclassMap(ctx_r0.getConfigIcon());
111
- i0.ɵɵadvance(3);
249
+ const ctx_r0 = i0.ɵɵnextContext(4);
250
+ i0.ɵɵclassProp("expanded", config_r3.isExpanded);
251
+ i0.ɵɵadvance(7);
112
252
  i0.ɵɵtextInterpolate(config_r3.Name);
113
253
  i0.ɵɵadvance(2);
114
254
  i0.ɵɵconditional(config_r3.IsDefault ? 9 : -1);
115
255
  i0.ɵɵadvance();
116
- i0.ɵɵclassMapInterpolate1("status-badge status-", config_r3.Status.toLowerCase(), "");
256
+ i0.ɵɵproperty("ngClass", ctx_r0.getStatusClass(config_r3.Status));
257
+ i0.ɵɵadvance();
258
+ i0.ɵɵclassMap(ctx_r0.getStatusIcon(config_r3.Status));
117
259
  i0.ɵɵadvance();
118
260
  i0.ɵɵtextInterpolate1(" ", config_r3.Status, " ");
261
+ i0.ɵɵadvance();
262
+ i0.ɵɵclassProp("rotated", config_r3.isExpanded);
263
+ i0.ɵɵadvance(2);
264
+ i0.ɵɵconditional(config_r3.Description ? 15 : 16);
119
265
  i0.ɵɵadvance(2);
120
- i0.ɵɵconditional(config_r3.Description ? 13 : 14);
121
- i0.ɵɵadvance(9);
122
- i0.ɵɵconditional(!config_r3.IsDefault ? 22 : -1);
266
+ i0.ɵɵconditional(config_r3.isExpanded ? 17 : -1);
123
267
  } }
124
- function SystemConfigurationComponent_Conditional_24_Conditional_1_Template(rf, ctx) { if (rf & 1) {
125
- i0.ɵɵelementStart(0, "div", 23);
126
- i0.ɵɵrepeaterCreate(1, SystemConfigurationComponent_Conditional_24_Conditional_1_For_2_Template, 26, 10, "div", 25, _forTrack0);
268
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
269
+ i0.ɵɵelementStart(0, "div", 30);
270
+ i0.ɵɵrepeaterCreate(1, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_For_2_Template, 25, 12, "div", 32, _forTrack0);
127
271
  i0.ɵɵelementEnd();
128
272
  } if (rf & 2) {
129
- const ctx_r0 = i0.ɵɵnextContext(2);
273
+ const ctx_r0 = i0.ɵɵnextContext(3);
274
+ i0.ɵɵadvance();
275
+ i0.ɵɵrepeater(ctx_r0.filteredConfigurations);
276
+ } }
277
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Conditional_8_Template(rf, ctx) { if (rf & 1) {
278
+ i0.ɵɵelementStart(0, "span", 91);
279
+ i0.ɵɵelement(1, "i", 52);
280
+ i0.ɵɵtext(2, " Default ");
281
+ i0.ɵɵelementEnd();
282
+ } }
283
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Conditional_9_Template(rf, ctx) { if (rf & 1) {
284
+ i0.ɵɵelementStart(0, "div", 92);
285
+ i0.ɵɵtext(1);
286
+ i0.ɵɵelementEnd();
287
+ } if (rf & 2) {
288
+ const config_r10 = i0.ɵɵnextContext().$implicit;
289
+ i0.ɵɵadvance();
290
+ i0.ɵɵtextInterpolate(config_r10.Description);
291
+ } }
292
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Template(rf, ctx) { if (rf & 1) {
293
+ const _r9 = i0.ɵɵgetCurrentView();
294
+ i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 88)(3, "div", 89);
295
+ i0.ɵɵelement(4, "i", 4);
296
+ i0.ɵɵelementEnd();
297
+ i0.ɵɵelementStart(5, "div")(6, "div", 90);
298
+ i0.ɵɵtext(7);
299
+ i0.ɵɵtemplate(8, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Conditional_8_Template, 3, 0, "span", 91);
300
+ i0.ɵɵelementEnd();
301
+ i0.ɵɵtemplate(9, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Conditional_9_Template, 2, 1, "div", 92);
302
+ i0.ɵɵelementEnd()()();
303
+ i0.ɵɵelementStart(10, "td")(11, "span", 41);
304
+ i0.ɵɵelement(12, "i");
305
+ i0.ɵɵtext(13);
306
+ i0.ɵɵelementEnd()();
307
+ i0.ɵɵelementStart(14, "td");
308
+ i0.ɵɵtext(15);
309
+ i0.ɵɵelementEnd();
310
+ i0.ɵɵelementStart(16, "td");
311
+ i0.ɵɵtext(17);
312
+ i0.ɵɵelementEnd();
313
+ i0.ɵɵelementStart(18, "td")(19, "div", 93)(20, "button", 94);
314
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Template_button_click_20_listener() { const config_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.showConfigDetails(config_r10)); });
315
+ i0.ɵɵelement(21, "i", 49);
316
+ i0.ɵɵelementEnd();
317
+ i0.ɵɵelementStart(22, "button", 95);
318
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Template_button_click_22_listener() { const config_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.onOpenConfiguration(config_r10)); });
319
+ i0.ɵɵelement(23, "i", 51);
320
+ i0.ɵɵelementEnd()()()();
321
+ } if (rf & 2) {
322
+ const config_r10 = ctx.$implicit;
323
+ const ctx_r0 = i0.ɵɵnextContext(4);
324
+ i0.ɵɵadvance(7);
325
+ i0.ɵɵtextInterpolate1(" ", config_r10.Name, " ");
130
326
  i0.ɵɵadvance();
327
+ i0.ɵɵconditional(config_r10.IsDefault ? 8 : -1);
328
+ i0.ɵɵadvance();
329
+ i0.ɵɵconditional(config_r10.Description ? 9 : -1);
330
+ i0.ɵɵadvance(2);
331
+ i0.ɵɵproperty("ngClass", ctx_r0.getStatusClass(config_r10.Status));
332
+ i0.ɵɵadvance();
333
+ i0.ɵɵclassMap(ctx_r0.getStatusIcon(config_r10.Status));
334
+ i0.ɵɵadvance();
335
+ i0.ɵɵtextInterpolate1(" ", config_r10.Status, " ");
336
+ i0.ɵɵadvance(2);
337
+ i0.ɵɵtextInterpolate((config_r10.params == null ? null : config_r10.params.length) || 0);
338
+ i0.ɵɵadvance(2);
339
+ i0.ɵɵtextInterpolate(ctx_r0.formatDate(config_r10.__mj_UpdatedAt));
340
+ } }
341
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
342
+ const _r8 = i0.ɵɵgetCurrentView();
343
+ i0.ɵɵelementStart(0, "div", 31)(1, "table", 84)(2, "thead")(3, "tr")(4, "th", 85);
344
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_Template_th_click_4_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.sortBy("Name")); });
345
+ i0.ɵɵelementStart(5, "span", 86);
346
+ i0.ɵɵtext(6, " Configuration ");
347
+ i0.ɵɵelement(7, "i", 87);
348
+ i0.ɵɵelementEnd()();
349
+ i0.ɵɵelementStart(8, "th", 85);
350
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_Template_th_click_8_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.sortBy("Status")); });
351
+ i0.ɵɵelementStart(9, "span", 86);
352
+ i0.ɵɵtext(10, " Status ");
353
+ i0.ɵɵelement(11, "i", 87);
354
+ i0.ɵɵelementEnd()();
355
+ i0.ɵɵelementStart(12, "th", 85);
356
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_Template_th_click_12_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.sortBy("Parameters")); });
357
+ i0.ɵɵelementStart(13, "span", 86);
358
+ i0.ɵɵtext(14, " Parameters ");
359
+ i0.ɵɵelement(15, "i", 87);
360
+ i0.ɵɵelementEnd()();
361
+ i0.ɵɵelementStart(16, "th", 85);
362
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_Template_th_click_16_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.sortBy("Updated")); });
363
+ i0.ɵɵelementStart(17, "span", 86);
364
+ i0.ɵɵtext(18, " Updated ");
365
+ i0.ɵɵelement(19, "i", 87);
366
+ i0.ɵɵelementEnd()();
367
+ i0.ɵɵelementStart(20, "th");
368
+ i0.ɵɵtext(21, "Actions");
369
+ i0.ɵɵelementEnd()()();
370
+ i0.ɵɵelementStart(22, "tbody");
371
+ i0.ɵɵrepeaterCreate(23, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_For_24_Template, 24, 9, "tr", null, _forTrack0);
372
+ i0.ɵɵelementEnd()()();
373
+ } if (rf & 2) {
374
+ const ctx_r0 = i0.ɵɵnextContext(3);
375
+ i0.ɵɵadvance(4);
376
+ i0.ɵɵclassProp("sorted", ctx_r0.sortColumn === "Name")("desc", ctx_r0.sortColumn === "Name" && ctx_r0.sortDirection === "desc");
377
+ i0.ɵɵadvance(4);
378
+ i0.ɵɵclassProp("sorted", ctx_r0.sortColumn === "Status")("desc", ctx_r0.sortColumn === "Status" && ctx_r0.sortDirection === "desc");
379
+ i0.ɵɵadvance(4);
380
+ i0.ɵɵclassProp("sorted", ctx_r0.sortColumn === "Parameters")("desc", ctx_r0.sortColumn === "Parameters" && ctx_r0.sortDirection === "desc");
381
+ i0.ɵɵadvance(4);
382
+ i0.ɵɵclassProp("sorted", ctx_r0.sortColumn === "Updated")("desc", ctx_r0.sortColumn === "Updated" && ctx_r0.sortDirection === "desc");
383
+ i0.ɵɵadvance(7);
131
384
  i0.ɵɵrepeater(ctx_r0.filteredConfigurations);
132
385
  } }
133
- function SystemConfigurationComponent_Conditional_24_Template(rf, ctx) { if (rf & 1) {
134
- i0.ɵɵtemplate(0, SystemConfigurationComponent_Conditional_24_Conditional_0_Template, 6, 0, "div", 22)(1, SystemConfigurationComponent_Conditional_24_Conditional_1_Template, 3, 0, "div", 23);
386
+ function SystemConfigurationComponent_Conditional_29_Conditional_1_Template(rf, ctx) { if (rf & 1) {
387
+ i0.ɵɵtemplate(0, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_0_Template, 3, 0, "div", 30)(1, SystemConfigurationComponent_Conditional_29_Conditional_1_Conditional_1_Template, 25, 16, "div", 31);
388
+ } if (rf & 2) {
389
+ const ctx_r0 = i0.ɵɵnextContext(2);
390
+ i0.ɵɵconditional(ctx_r0.viewMode === "grid" ? 0 : -1);
391
+ i0.ɵɵadvance();
392
+ i0.ɵɵconditional(ctx_r0.viewMode === "list" ? 1 : -1);
393
+ } }
394
+ function SystemConfigurationComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
395
+ i0.ɵɵtemplate(0, SystemConfigurationComponent_Conditional_29_Conditional_0_Template, 6, 0, "div", 29)(1, SystemConfigurationComponent_Conditional_29_Conditional_1_Template, 2, 2);
135
396
  } if (rf & 2) {
136
397
  const ctx_r0 = i0.ɵɵnextContext();
137
398
  i0.ɵɵconditional(ctx_r0.filteredConfigurations.length === 0 ? 0 : 1);
138
399
  } }
400
+ function SystemConfigurationComponent_Conditional_30_Template(rf, ctx) { if (rf & 1) {
401
+ const _r11 = i0.ɵɵgetCurrentView();
402
+ i0.ɵɵelementStart(0, "div", 96);
403
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_30_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.closeDetailPanel()); });
404
+ i0.ɵɵelementEnd();
405
+ } }
406
+ function SystemConfigurationComponent_Conditional_32_Conditional_17_Template(rf, ctx) { if (rf & 1) {
407
+ i0.ɵɵelementStart(0, "span", 107);
408
+ i0.ɵɵelement(1, "i", 52);
409
+ i0.ɵɵtext(2, " Default Configuration ");
410
+ i0.ɵɵelementEnd();
411
+ } }
412
+ function SystemConfigurationComponent_Conditional_32_Conditional_18_Template(rf, ctx) { if (rf & 1) {
413
+ i0.ɵɵelementStart(0, "div", 105)(1, "h4", 108);
414
+ i0.ɵɵelement(2, "i", 119);
415
+ i0.ɵɵtext(3, " Description ");
416
+ i0.ɵɵelementEnd();
417
+ i0.ɵɵelementStart(4, "p", 120);
418
+ i0.ɵɵtext(5);
419
+ i0.ɵɵelementEnd()();
420
+ } if (rf & 2) {
421
+ const ctx_r0 = i0.ɵɵnextContext(2);
422
+ i0.ɵɵadvance(5);
423
+ i0.ɵɵtextInterpolate(ctx_r0.selectedConfig.Description);
424
+ } }
425
+ function SystemConfigurationComponent_Conditional_32_Conditional_43_Template(rf, ctx) { if (rf & 1) {
426
+ i0.ɵɵtext(0);
427
+ } if (rf & 2) {
428
+ const ctx_r0 = i0.ɵɵnextContext(2);
429
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.selectedConfig.compressionPrompt.Name, " ");
430
+ } }
431
+ function SystemConfigurationComponent_Conditional_32_Conditional_44_Template(rf, ctx) { if (rf & 1) {
432
+ i0.ɵɵelementStart(0, "span", 115);
433
+ i0.ɵɵtext(1, "Not configured");
434
+ i0.ɵɵelementEnd();
435
+ } }
436
+ function SystemConfigurationComponent_Conditional_32_Conditional_49_Template(rf, ctx) { if (rf & 1) {
437
+ i0.ɵɵtext(0);
438
+ } if (rf & 2) {
439
+ const ctx_r0 = i0.ɵɵnextContext(2);
440
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.selectedConfig.summarizationPrompt.Name, " ");
441
+ } }
442
+ function SystemConfigurationComponent_Conditional_32_Conditional_50_Template(rf, ctx) { if (rf & 1) {
443
+ i0.ɵɵelementStart(0, "span", 115);
444
+ i0.ɵɵtext(1, "Not configured");
445
+ i0.ɵɵelementEnd();
446
+ } }
447
+ function SystemConfigurationComponent_Conditional_32_Conditional_51_For_6_Template(rf, ctx) { if (rf & 1) {
448
+ i0.ɵɵelementStart(0, "div", 122)(1, "div", 77);
449
+ i0.ɵɵelement(2, "i");
450
+ i0.ɵɵelementStart(3, "span", 80);
451
+ i0.ɵɵtext(4);
452
+ i0.ɵɵelementEnd()();
453
+ i0.ɵɵelementStart(5, "span", 82);
454
+ i0.ɵɵtext(6);
455
+ i0.ɵɵelementEnd()();
456
+ } if (rf & 2) {
457
+ const param_r13 = ctx.$implicit;
458
+ const ctx_r0 = i0.ɵɵnextContext(3);
459
+ i0.ɵɵadvance(2);
460
+ i0.ɵɵclassMap(ctx_r0.getParamTypeIcon(param_r13.Type));
461
+ i0.ɵɵadvance(2);
462
+ i0.ɵɵtextInterpolate(param_r13.Name);
463
+ i0.ɵɵadvance(2);
464
+ i0.ɵɵtextInterpolate(ctx_r0.formatParamValue(param_r13));
465
+ } }
466
+ function SystemConfigurationComponent_Conditional_32_Conditional_51_Conditional_7_Template(rf, ctx) { if (rf & 1) {
467
+ i0.ɵɵelementStart(0, "div", 123);
468
+ i0.ɵɵtext(1);
469
+ i0.ɵɵelementEnd();
470
+ } if (rf & 2) {
471
+ const ctx_r0 = i0.ɵɵnextContext(3);
472
+ i0.ɵɵadvance();
473
+ i0.ɵɵtextInterpolate1(" +", ctx_r0.selectedConfig.params.length - 5, " more parameters ");
474
+ } }
475
+ function SystemConfigurationComponent_Conditional_32_Conditional_51_Template(rf, ctx) { if (rf & 1) {
476
+ i0.ɵɵelementStart(0, "div", 105)(1, "h4", 108);
477
+ i0.ɵɵelement(2, "i", 73);
478
+ i0.ɵɵtext(3);
479
+ i0.ɵɵelementEnd();
480
+ i0.ɵɵelementStart(4, "div", 121);
481
+ i0.ɵɵrepeaterCreate(5, SystemConfigurationComponent_Conditional_32_Conditional_51_For_6_Template, 7, 4, "div", 122, _forTrack0);
482
+ i0.ɵɵtemplate(7, SystemConfigurationComponent_Conditional_32_Conditional_51_Conditional_7_Template, 2, 1, "div", 123);
483
+ i0.ɵɵelementEnd()();
484
+ } if (rf & 2) {
485
+ const ctx_r0 = i0.ɵɵnextContext(2);
486
+ i0.ɵɵadvance(3);
487
+ i0.ɵɵtextInterpolate1(" Parameters (", ctx_r0.selectedConfig.params.length, ") ");
488
+ i0.ɵɵadvance(2);
489
+ i0.ɵɵrepeater(ctx_r0.selectedConfig.params.slice(0, 5));
490
+ i0.ɵɵadvance(2);
491
+ i0.ɵɵconditional(ctx_r0.selectedConfig.params.length > 5 ? 7 : -1);
492
+ } }
493
+ function SystemConfigurationComponent_Conditional_32_Template(rf, ctx) { if (rf & 1) {
494
+ const _r12 = i0.ɵɵgetCurrentView();
495
+ i0.ɵɵelementStart(0, "div", 97)(1, "div", 98)(2, "div", 99);
496
+ i0.ɵɵelement(3, "i", 4);
497
+ i0.ɵɵelementEnd();
498
+ i0.ɵɵelementStart(4, "div", 100)(5, "h3");
499
+ i0.ɵɵtext(6);
500
+ i0.ɵɵelementEnd();
501
+ i0.ɵɵelementStart(7, "span", 101);
502
+ i0.ɵɵtext(8, "AI Configuration");
503
+ i0.ɵɵelementEnd()()();
504
+ i0.ɵɵelementStart(9, "button", 102);
505
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_32_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r12); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.closeDetailPanel()); });
506
+ i0.ɵɵelement(10, "i", 103);
507
+ i0.ɵɵelementEnd()();
508
+ i0.ɵɵelementStart(11, "div", 104)(12, "div", 105)(13, "div", 106)(14, "span", 41);
509
+ i0.ɵɵelement(15, "i");
510
+ i0.ɵɵtext(16);
511
+ i0.ɵɵelementEnd();
512
+ i0.ɵɵtemplate(17, SystemConfigurationComponent_Conditional_32_Conditional_17_Template, 3, 0, "span", 107);
513
+ i0.ɵɵelementEnd()();
514
+ i0.ɵɵtemplate(18, SystemConfigurationComponent_Conditional_32_Conditional_18_Template, 6, 1, "div", 105);
515
+ i0.ɵɵelementStart(19, "div", 105)(20, "h4", 108);
516
+ i0.ɵɵelement(21, "i", 109);
517
+ i0.ɵɵtext(22, " Overview ");
518
+ i0.ɵɵelementEnd();
519
+ i0.ɵɵelementStart(23, "div", 110)(24, "div", 111)(25, "span", 112);
520
+ i0.ɵɵtext(26, "Parameters");
521
+ i0.ɵɵelementEnd();
522
+ i0.ɵɵelementStart(27, "span", 113);
523
+ i0.ɵɵtext(28);
524
+ i0.ɵɵelementEnd()();
525
+ i0.ɵɵelementStart(29, "div", 111)(30, "span", 112);
526
+ i0.ɵɵtext(31, "Status");
527
+ i0.ɵɵelementEnd();
528
+ i0.ɵɵelementStart(32, "span", 113);
529
+ i0.ɵɵtext(33);
530
+ i0.ɵɵelementEnd()()()();
531
+ i0.ɵɵelementStart(34, "div", 105)(35, "h4", 108);
532
+ i0.ɵɵelement(36, "i", 59);
533
+ i0.ɵɵtext(37, " Linked Prompts ");
534
+ i0.ɵɵelementEnd();
535
+ i0.ɵɵelementStart(38, "div", 114)(39, "div", 111)(40, "span", 112);
536
+ i0.ɵɵtext(41, "Context Compression");
537
+ i0.ɵɵelementEnd();
538
+ i0.ɵɵelementStart(42, "span", 113);
539
+ i0.ɵɵtemplate(43, SystemConfigurationComponent_Conditional_32_Conditional_43_Template, 1, 1)(44, SystemConfigurationComponent_Conditional_32_Conditional_44_Template, 2, 0, "span", 115);
540
+ i0.ɵɵelementEnd()();
541
+ i0.ɵɵelementStart(45, "div", 111)(46, "span", 112);
542
+ i0.ɵɵtext(47, "Context Summarization");
543
+ i0.ɵɵelementEnd();
544
+ i0.ɵɵelementStart(48, "span", 113);
545
+ i0.ɵɵtemplate(49, SystemConfigurationComponent_Conditional_32_Conditional_49_Template, 1, 1)(50, SystemConfigurationComponent_Conditional_32_Conditional_50_Template, 2, 0, "span", 115);
546
+ i0.ɵɵelementEnd()()()();
547
+ i0.ɵɵtemplate(51, SystemConfigurationComponent_Conditional_32_Conditional_51_Template, 8, 2, "div", 105);
548
+ i0.ɵɵelementStart(52, "div", 105)(53, "h4", 108);
549
+ i0.ɵɵelement(54, "i", 116);
550
+ i0.ɵɵtext(55, " Timestamps ");
551
+ i0.ɵɵelementEnd();
552
+ i0.ɵɵelementStart(56, "div", 110)(57, "div", 111)(58, "span", 112);
553
+ i0.ɵɵtext(59, "Created");
554
+ i0.ɵɵelementEnd();
555
+ i0.ɵɵelementStart(60, "span", 113);
556
+ i0.ɵɵtext(61);
557
+ i0.ɵɵelementEnd()();
558
+ i0.ɵɵelementStart(62, "div", 111)(63, "span", 112);
559
+ i0.ɵɵtext(64, "Updated");
560
+ i0.ɵɵelementEnd();
561
+ i0.ɵɵelementStart(65, "span", 113);
562
+ i0.ɵɵtext(66);
563
+ i0.ɵɵelementEnd()()()()();
564
+ i0.ɵɵelementStart(67, "div", 117)(68, "button", 118);
565
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Conditional_32_Template_button_click_68_listener() { i0.ɵɵrestoreView(_r12); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.openConfigFromPanel()); });
566
+ i0.ɵɵelement(69, "i", 51);
567
+ i0.ɵɵtext(70, " Open Full Record ");
568
+ i0.ɵɵelementEnd()();
569
+ } if (rf & 2) {
570
+ const ctx_r0 = i0.ɵɵnextContext();
571
+ i0.ɵɵadvance(6);
572
+ i0.ɵɵtextInterpolate(ctx_r0.selectedConfig.Name);
573
+ i0.ɵɵadvance(8);
574
+ i0.ɵɵproperty("ngClass", ctx_r0.getStatusClass(ctx_r0.selectedConfig.Status));
575
+ i0.ɵɵadvance();
576
+ i0.ɵɵclassMap(ctx_r0.getStatusIcon(ctx_r0.selectedConfig.Status));
577
+ i0.ɵɵadvance();
578
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.selectedConfig.Status, " ");
579
+ i0.ɵɵadvance();
580
+ i0.ɵɵconditional(ctx_r0.selectedConfig.IsDefault ? 17 : -1);
581
+ i0.ɵɵadvance();
582
+ i0.ɵɵconditional(ctx_r0.selectedConfig.Description ? 18 : -1);
583
+ i0.ɵɵadvance(10);
584
+ i0.ɵɵtextInterpolate((ctx_r0.selectedConfig.params == null ? null : ctx_r0.selectedConfig.params.length) || 0);
585
+ i0.ɵɵadvance(5);
586
+ i0.ɵɵtextInterpolate(ctx_r0.selectedConfig.Status);
587
+ i0.ɵɵadvance(10);
588
+ i0.ɵɵconditional(ctx_r0.selectedConfig.compressionPrompt ? 43 : 44);
589
+ i0.ɵɵadvance(6);
590
+ i0.ɵɵconditional(ctx_r0.selectedConfig.summarizationPrompt ? 49 : 50);
591
+ i0.ɵɵadvance(2);
592
+ i0.ɵɵconditional(ctx_r0.selectedConfig.params && ctx_r0.selectedConfig.params.length > 0 ? 51 : -1);
593
+ i0.ɵɵadvance(10);
594
+ i0.ɵɵtextInterpolate(ctx_r0.formatDate(ctx_r0.selectedConfig.__mj_CreatedAt));
595
+ i0.ɵɵadvance(5);
596
+ i0.ɵɵtextInterpolate(ctx_r0.formatDate(ctx_r0.selectedConfig.__mj_UpdatedAt));
597
+ } }
139
598
  /**
140
599
  * Tree-shaking prevention function - ensures component is included in builds
141
600
  */
@@ -148,41 +607,71 @@ export function LoadAIConfigResource() {
148
607
  */
149
608
  let SystemConfigurationComponent = class SystemConfigurationComponent extends BaseResourceComponent {
150
609
  navigationService;
610
+ cdr;
151
611
  isLoading = false;
152
612
  error = null;
153
613
  filterPanelVisible = true;
614
+ viewMode = 'grid';
154
615
  configurations = [];
155
616
  filteredConfigurations = [];
617
+ allParams = [];
618
+ allPrompts = [];
156
619
  currentFilters = {
157
620
  searchTerm: '',
158
621
  status: 'all',
159
622
  isDefault: 'all'
160
623
  };
161
- constructor(navigationService) {
624
+ // Sorting
625
+ sortColumn = 'Name';
626
+ sortDirection = 'asc';
627
+ // Detail panel
628
+ selectedConfig = null;
629
+ detailPanelVisible = false;
630
+ // Stats
631
+ totalConfigs = 0;
632
+ activeConfigs = 0;
633
+ defaultConfig = null;
634
+ constructor(navigationService, cdr) {
162
635
  super();
163
636
  this.navigationService = navigationService;
637
+ this.cdr = cdr;
164
638
  }
165
639
  ngOnInit() {
166
640
  this.loadData();
167
- this.NotifyLoadComplete();
168
641
  }
169
642
  async loadData() {
170
643
  try {
171
644
  this.isLoading = true;
172
645
  this.error = null;
173
- const rv = new RunView();
174
- const result = await rv.RunView({
175
- EntityName: 'MJ: AI Configurations',
176
- OrderBy: 'Name'
646
+ this.cdr.detectChanges();
647
+ // Ensure AIEngineBase is configured (no-op if already loaded)
648
+ await AIEngineBase.Instance.Config(false);
649
+ // Get cached data from AIEngineBase
650
+ const configs = AIEngineBase.Instance.Configurations;
651
+ const params = AIEngineBase.Instance.ConfigurationParams;
652
+ const prompts = AIEngineBase.Instance.Prompts;
653
+ // Create extended configurations with associated data
654
+ this.configurations = configs.map(config => {
655
+ const extended = config;
656
+ extended.params = params.filter(p => p.ConfigurationID === config.ID);
657
+ extended.isExpanded = false;
658
+ // Find linked prompts
659
+ if (config.DefaultPromptForContextCompressionID) {
660
+ extended.compressionPrompt = prompts.find(p => p.ID === config.DefaultPromptForContextCompressionID) || null;
661
+ }
662
+ if (config.DefaultPromptForContextSummarizationID) {
663
+ extended.summarizationPrompt = prompts.find(p => p.ID === config.DefaultPromptForContextSummarizationID) || null;
664
+ }
665
+ return extended;
177
666
  });
178
- if (result && result.Success && result.Results) {
179
- this.configurations = result.Results;
180
- this.applyFilters();
181
- LogStatus('AI Configurations loaded successfully');
182
- }
183
- else {
184
- throw new Error('Failed to load AI configurations');
185
- }
667
+ this.allParams = params;
668
+ this.allPrompts = prompts;
669
+ // Calculate stats
670
+ this.totalConfigs = this.configurations.length;
671
+ this.activeConfigs = this.configurations.filter(c => c.Status === 'Active').length;
672
+ this.defaultConfig = this.configurations.find(c => c.IsDefault) || null;
673
+ this.applyFilters();
674
+ LogStatus('AI Configurations loaded successfully');
186
675
  }
187
676
  catch (error) {
188
677
  this.error = 'Failed to load AI configurations. Please try again.';
@@ -190,13 +679,18 @@ let SystemConfigurationComponent = class SystemConfigurationComponent extends Ba
190
679
  }
191
680
  finally {
192
681
  this.isLoading = false;
682
+ this.NotifyLoadComplete();
683
+ this.cdr.detectChanges();
193
684
  }
194
685
  }
195
686
  toggleFilterPanel() {
196
687
  this.filterPanelVisible = !this.filterPanelVisible;
197
688
  }
198
- onMainSplitterChange(event) {
199
- // No longer need to emit state changes
689
+ setViewMode(mode) {
690
+ this.viewMode = mode;
691
+ }
692
+ toggleExpanded(config) {
693
+ config.isExpanded = !config.isExpanded;
200
694
  }
201
695
  onFiltersChange(filters) {
202
696
  this.currentFilters = { ...filters };
@@ -219,7 +713,9 @@ let SystemConfigurationComponent = class SystemConfigurationComponent extends Ba
219
713
  if (this.currentFilters.searchTerm) {
220
714
  const searchTerm = this.currentFilters.searchTerm.toLowerCase();
221
715
  filtered = filtered.filter(config => config.Name.toLowerCase().includes(searchTerm) ||
222
- (config.Description || '').toLowerCase().includes(searchTerm));
716
+ (config.Description || '').toLowerCase().includes(searchTerm) ||
717
+ (config.params?.some(p => p.Name.toLowerCase().includes(searchTerm) ||
718
+ (p.Description || '').toLowerCase().includes(searchTerm))));
223
719
  }
224
720
  // Apply status filter
225
721
  if (this.currentFilters.status !== 'all') {
@@ -230,76 +726,239 @@ let SystemConfigurationComponent = class SystemConfigurationComponent extends Ba
230
726
  const isDefault = this.currentFilters.isDefault === 'true';
231
727
  filtered = filtered.filter(config => config.IsDefault === isDefault);
232
728
  }
233
- this.filteredConfigurations = filtered;
729
+ // Apply sorting
730
+ this.filteredConfigurations = this.applySorting(filtered);
731
+ this.cdr.detectChanges();
732
+ }
733
+ /**
734
+ * Sort the configurations by the specified column
735
+ */
736
+ sortBy(column) {
737
+ if (this.sortColumn === column) {
738
+ // Toggle direction if same column
739
+ this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
740
+ }
741
+ else {
742
+ // New column, default to ascending
743
+ this.sortColumn = column;
744
+ this.sortDirection = 'asc';
745
+ }
746
+ this.applyFilters();
747
+ }
748
+ /**
749
+ * Apply sorting to the filtered list
750
+ */
751
+ applySorting(configs) {
752
+ return configs.sort((a, b) => {
753
+ let valueA;
754
+ let valueB;
755
+ switch (this.sortColumn) {
756
+ case 'Name':
757
+ valueA = a.Name;
758
+ valueB = b.Name;
759
+ break;
760
+ case 'Status':
761
+ valueA = a.Status;
762
+ valueB = b.Status;
763
+ break;
764
+ case 'Parameters':
765
+ valueA = a.params?.length || 0;
766
+ valueB = b.params?.length || 0;
767
+ break;
768
+ case 'Updated':
769
+ valueA = a.__mj_UpdatedAt ? new Date(a.__mj_UpdatedAt).getTime() : 0;
770
+ valueB = b.__mj_UpdatedAt ? new Date(b.__mj_UpdatedAt).getTime() : 0;
771
+ break;
772
+ default:
773
+ valueA = a.Name;
774
+ valueB = b.Name;
775
+ }
776
+ // Handle numeric comparison
777
+ if (typeof valueA === 'number' && typeof valueB === 'number') {
778
+ const comparison = valueA - valueB;
779
+ return this.sortDirection === 'desc' ? -comparison : comparison;
780
+ }
781
+ // Handle string/other comparison
782
+ const strA = (valueA ?? '').toString().toLowerCase();
783
+ const strB = (valueB ?? '').toString().toLowerCase();
784
+ const comparison = strA.localeCompare(strB);
785
+ return this.sortDirection === 'desc' ? -comparison : comparison;
786
+ });
234
787
  }
235
- onOpenEntityRecord(entityName, recordId) {
236
- const compositeKey = new CompositeKey([{ FieldName: 'ID', Value: recordId }]);
237
- this.navigationService.OpenEntityRecord(entityName, compositeKey);
788
+ onOpenConfiguration(config) {
789
+ const compositeKey = new CompositeKey([{ FieldName: 'ID', Value: config.ID }]);
790
+ this.navigationService.OpenEntityRecord('MJ: AI Configurations', compositeKey);
238
791
  }
239
- getStatusColor(status) {
792
+ onOpenPrompt(promptId) {
793
+ const compositeKey = new CompositeKey([{ FieldName: 'ID', Value: promptId }]);
794
+ this.navigationService.OpenEntityRecord('AI Prompts', compositeKey);
795
+ }
796
+ onOpenParam(param) {
797
+ const compositeKey = new CompositeKey([{ FieldName: 'ID', Value: param.ID }]);
798
+ this.navigationService.OpenEntityRecord('MJ: AI Configuration Params', compositeKey);
799
+ }
800
+ /**
801
+ * Show the detail panel for a configuration
802
+ */
803
+ showConfigDetails(config, event) {
804
+ if (event) {
805
+ event.stopPropagation();
806
+ }
807
+ this.selectedConfig = config;
808
+ this.detailPanelVisible = true;
809
+ }
810
+ /**
811
+ * Close the detail panel
812
+ */
813
+ closeDetailPanel() {
814
+ this.detailPanelVisible = false;
815
+ // Delay clearing selectedConfig for smoother animation
816
+ setTimeout(() => {
817
+ if (!this.detailPanelVisible) {
818
+ this.selectedConfig = null;
819
+ }
820
+ }, 300);
821
+ }
822
+ /**
823
+ * Open the full entity record from the detail panel
824
+ */
825
+ openConfigFromPanel() {
826
+ if (this.selectedConfig) {
827
+ this.onOpenConfiguration(this.selectedConfig);
828
+ }
829
+ }
830
+ getStatusClass(status) {
831
+ switch (status) {
832
+ case 'Active': return 'status-active';
833
+ case 'Preview': return 'status-preview';
834
+ case 'Inactive': return 'status-inactive';
835
+ case 'Deprecated': return 'status-deprecated';
836
+ default: return 'status-unknown';
837
+ }
838
+ }
839
+ getStatusIcon(status) {
240
840
  switch (status) {
241
- case 'Active': return 'success';
242
- case 'Preview': return 'warning';
243
- case 'Inactive': return 'error';
244
- case 'Deprecated': return 'error';
245
- default: return 'info';
841
+ case 'Active': return 'fa-solid fa-circle-check';
842
+ case 'Preview': return 'fa-solid fa-flask';
843
+ case 'Inactive': return 'fa-solid fa-circle-pause';
844
+ case 'Deprecated': return 'fa-solid fa-triangle-exclamation';
845
+ default: return 'fa-solid fa-circle-question';
246
846
  }
247
847
  }
248
- getConfigIcon() {
249
- return 'fa-solid fa-cogs';
848
+ getParamTypeIcon(type) {
849
+ switch (type) {
850
+ case 'string': return 'fa-solid fa-font';
851
+ case 'number': return 'fa-solid fa-hashtag';
852
+ case 'boolean': return 'fa-solid fa-toggle-on';
853
+ case 'date': return 'fa-solid fa-calendar';
854
+ case 'object': return 'fa-solid fa-brackets-curly';
855
+ default: return 'fa-solid fa-code';
856
+ }
857
+ }
858
+ formatParamValue(param) {
859
+ if (!param.Value)
860
+ return '(not set)';
861
+ switch (param.Type) {
862
+ case 'boolean':
863
+ return param.Value === 'true' ? 'Yes' : 'No';
864
+ case 'object':
865
+ try {
866
+ return JSON.stringify(JSON.parse(param.Value), null, 2).substring(0, 50) + '...';
867
+ }
868
+ catch {
869
+ return param.Value.substring(0, 50) + '...';
870
+ }
871
+ default:
872
+ return param.Value.length > 50 ? param.Value.substring(0, 50) + '...' : param.Value;
873
+ }
874
+ }
875
+ formatDate(date) {
876
+ if (!date)
877
+ return 'N/A';
878
+ return new Date(date).toLocaleDateString('en-US', {
879
+ year: 'numeric',
880
+ month: 'short',
881
+ day: 'numeric',
882
+ hour: '2-digit',
883
+ minute: '2-digit'
884
+ });
250
885
  }
251
886
  // BaseResourceComponent abstract method implementations
252
- async GetResourceDisplayName(data) {
253
- return 'Configuration';
887
+ async GetResourceDisplayName(_data) {
888
+ return 'AI Configuration';
254
889
  }
255
- async GetResourceIconClass(data) {
256
- return 'fa-solid fa-cogs';
890
+ async GetResourceIconClass(_data) {
891
+ return 'fa-solid fa-sliders';
257
892
  }
258
- static ɵfac = function SystemConfigurationComponent_Factory(t) { return new (t || SystemConfigurationComponent)(i0.ɵɵdirectiveInject(i1.NavigationService)); };
259
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SystemConfigurationComponent, selectors: [["app-system-configuration"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars: 15, consts: [[1, "system-configuration-container"], [1, "dashboard-header"], [1, "header-info"], ["type", "button", "title", "Toggle Filters", 1, "filter-toggle-btn", 3, "click"], [1, "fa-solid", "fa-filter"], [1, "config-count"], [1, "header-controls"], ["type", "button", "title", "Refresh", 1, "control-btn", 3, "click"], [1, "fa-solid", "fa-refresh"], ["type", "button", "title", "Create New Configuration", 1, "control-btn"], [1, "fa-solid", "fa-plus"], [1, "main-content"], ["orientation", "horizontal", 1, "main-splitter", 3, "layoutChange"], [3, "size", "collapsible", "resizable", "scrollable", "hidden"], [3, "filtersChange", "filterChange", "resetFilters", "closePanel", "configurations", "filteredConfigurations", "filters"], [3, "resizable", "scrollable"], [1, "configurations-content"], [1, "loading-container"], [1, "error-container"], ["text", "Loading configurations...", "size", "large"], [1, "error-message"], [1, "fa-solid", "fa-exclamation-triangle"], [1, "empty-state"], [1, "configurations-grid"], [1, "fa-solid", "fa-cogs"], [1, "config-card"], [1, "card-header"], [1, "config-info"], [1, "config-icon"], [1, "config-details"], [1, "config-name"], [1, "config-meta"], [1, "default-badge"], [1, "card-body"], [1, "config-description"], [1, "config-description", "text-muted"], [1, "card-actions", 3, "click"], ["type", "button", 1, "action-btn"], [1, "fa-solid", "fa-eye"], ["type", "button", 1, "action-btn", "action-btn-primary"], [1, "fa-solid", "fa-edit"], ["type", "button", 1, "action-btn", "action-btn-warning"], ["type", "button", 1, "action-btn", "action-btn-danger"], [1, "fa-solid", "fa-trash"], [1, "fa-solid", "fa-star"]], template: function SystemConfigurationComponent_Template(rf, ctx) { if (rf & 1) {
260
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "button", 3);
261
- i0.ɵɵlistener("click", function SystemConfigurationComponent_Template_button_click_3_listener() { return ctx.toggleFilterPanel(); });
893
+ static ɵfac = function SystemConfigurationComponent_Factory(t) { return new (t || SystemConfigurationComponent)(i0.ɵɵdirectiveInject(i1.NavigationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
894
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SystemConfigurationComponent, selectors: [["app-system-configuration"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 33, vars: 27, consts: [[1, "system-configuration-container"], [1, "dashboard-header"], [1, "header-info"], [1, "dashboard-title"], [1, "fa-solid", "fa-sliders"], ["type", "button", "title", "Toggle Filters", 1, "filter-toggle-btn", 3, "click"], [1, "fa-solid", "fa-filter"], [1, "config-count"], [1, "header-controls"], [1, "view-toggle"], ["type", "button", "title", "Grid View", 1, "view-btn", 3, "click"], [1, "fa-solid", "fa-grid-2"], ["type", "button", "title", "List View", 1, "view-btn", 3, "click"], [1, "fa-solid", "fa-list"], ["type", "button", "title", "Refresh", 1, "control-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-refresh"], [1, "main-content"], ["orientation", "horizontal", 1, "main-splitter"], [3, "size", "collapsible", "resizable", "scrollable", "hidden"], [3, "filtersChange", "filterChange", "resetFilters", "closePanel", "configurations", "filteredConfigurations", "filters"], [3, "resizable", "scrollable"], [1, "configurations-content"], [1, "loading-container"], [1, "error-container"], [1, "detail-panel-overlay"], [1, "detail-panel"], ["text", "Loading AI configurations...", "size", "large"], [1, "error-message"], [1, "fa-solid", "fa-exclamation-triangle"], [1, "empty-state"], [1, "configurations-grid"], [1, "configurations-list"], [1, "config-card", 3, "expanded"], [1, "config-card"], [1, "card-header", 3, "click"], [1, "config-info"], [1, "config-icon"], [1, "config-details"], [1, "config-name"], [1, "config-meta"], [1, "default-badge"], [1, "status-badge", 3, "ngClass"], [1, "fa-solid", "fa-chevron-down", "expand-icon"], [1, "card-body"], [1, "config-description"], [1, "config-description", "text-muted"], [1, "expanded-content"], [1, "card-actions", 3, "click"], ["type", "button", "title", "View Details", 1, "action-btn", 3, "click"], [1, "fa-solid", "fa-eye"], ["type", "button", 1, "action-btn", "action-btn-primary", 3, "click"], [1, "fa-solid", "fa-edit"], [1, "fa-solid", "fa-star"], [1, "config-stats"], [1, "stat-item"], [1, "stat-label"], [1, "stat-value"], [1, "prompts-section"], [1, "section-title"], [1, "fa-solid", "fa-message-lines"], [1, "prompt-links"], [1, "prompt-link"], [1, "no-prompt"], [1, "params-section"], [1, "prompt-link", 3, "click"], [1, "prompt-link-info"], [1, "prompt-link-icon"], [1, "fa-solid", "fa-compress"], [1, "prompt-link-details"], [1, "prompt-link-label"], [1, "prompt-link-name"], [1, "fa-solid", "fa-arrow-right", "prompt-link-arrow"], [1, "fa-solid", "fa-file-lines"], [1, "fa-solid", "fa-gear"], [1, "params-grid"], [1, "param-item"], [1, "param-item", 3, "click"], [1, "param-info"], [1, "param-type-icon"], [1, "param-details"], [1, "param-name"], [1, "param-type"], [1, "param-value"], [1, "no-params"], [1, "configurations-table"], [3, "click"], [1, "sort-header"], [1, "fa-solid", "fa-chevron-up", "sort-icon"], [1, "config-name-cell"], [1, "config-icon-small"], [1, "config-name-text"], [1, "default-badge", 2, "margin-left", "8px"], [1, "config-description-small"], [1, "table-actions"], ["type", "button", "title", "View Details", 1, "action-btn-small", 3, "click"], ["type", "button", 1, "action-btn-small", "primary", 3, "click"], [1, "detail-panel-overlay", 3, "click"], [1, "detail-panel-header"], [1, "detail-panel-title"], [1, "detail-icon"], [1, "detail-title-info"], [1, "detail-subtitle"], [1, "detail-panel-close", 3, "click"], [1, "fa-solid", "fa-times"], [1, "detail-panel-content"], [1, "detail-section"], [1, "detail-badges"], [1, "feature-badge", "default"], [1, "detail-section-title"], [1, "fa-solid", "fa-chart-bar"], [1, "detail-grid"], [1, "detail-item"], [1, "detail-label"], [1, "detail-value"], [1, "detail-grid", "single-column"], [1, "muted"], [1, "fa-solid", "fa-clock"], [1, "detail-panel-actions"], ["type", "button", 1, "detail-action-btn", "primary", 3, "click"], [1, "fa-solid", "fa-align-left"], [1, "detail-description"], [1, "detail-params-list"], [1, "detail-param-item"], [1, "params-more"]], template: function SystemConfigurationComponent_Template(rf, ctx) { if (rf & 1) {
895
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h2", 3);
262
896
  i0.ɵɵelement(4, "i", 4);
263
- i0.ɵɵtemplate(5, SystemConfigurationComponent_Conditional_5_Template, 1, 0)(6, SystemConfigurationComponent_Conditional_6_Template, 1, 0);
897
+ i0.ɵɵtext(5, " AI Configuration ");
898
+ i0.ɵɵelementEnd();
899
+ i0.ɵɵelementStart(6, "button", 5);
900
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Template_button_click_6_listener() { return ctx.toggleFilterPanel(); });
901
+ i0.ɵɵelement(7, "i", 6);
902
+ i0.ɵɵtemplate(8, SystemConfigurationComponent_Conditional_8_Template, 1, 0)(9, SystemConfigurationComponent_Conditional_9_Template, 1, 0);
264
903
  i0.ɵɵelementEnd();
265
- i0.ɵɵelementStart(7, "span", 5);
266
- i0.ɵɵtext(8);
904
+ i0.ɵɵelementStart(10, "span", 7);
905
+ i0.ɵɵtext(11);
267
906
  i0.ɵɵelementEnd()();
268
- i0.ɵɵelementStart(9, "div", 6)(10, "button", 7);
269
- i0.ɵɵlistener("click", function SystemConfigurationComponent_Template_button_click_10_listener() { return ctx.loadData(); });
270
- i0.ɵɵelement(11, "i", 8);
271
- i0.ɵɵtext(12, " Refresh ");
907
+ i0.ɵɵelementStart(12, "div", 8)(13, "div", 9)(14, "button", 10);
908
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Template_button_click_14_listener() { return ctx.setViewMode("grid"); });
909
+ i0.ɵɵelement(15, "i", 11);
272
910
  i0.ɵɵelementEnd();
273
- i0.ɵɵelementStart(13, "button", 9);
274
- i0.ɵɵelement(14, "i", 10);
275
- i0.ɵɵtext(15, " New Configuration ");
911
+ i0.ɵɵelementStart(16, "button", 12);
912
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Template_button_click_16_listener() { return ctx.setViewMode("list"); });
913
+ i0.ɵɵelement(17, "i", 13);
914
+ i0.ɵɵelementEnd()();
915
+ i0.ɵɵelementStart(18, "button", 14);
916
+ i0.ɵɵlistener("click", function SystemConfigurationComponent_Template_button_click_18_listener() { return ctx.loadData(); });
917
+ i0.ɵɵelement(19, "i", 15);
918
+ i0.ɵɵtext(20, " Refresh ");
276
919
  i0.ɵɵelementEnd()()();
277
- i0.ɵɵelementStart(16, "div", 11)(17, "kendo-splitter", 12);
278
- i0.ɵɵlistener("layoutChange", function SystemConfigurationComponent_Template_kendo_splitter_layoutChange_17_listener($event) { return ctx.onMainSplitterChange($event); });
279
- i0.ɵɵelementStart(18, "kendo-splitter-pane", 13)(19, "mj-system-config-filter-panel", 14);
280
- i0.ɵɵlistener("filtersChange", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_filtersChange_19_listener($event) { return ctx.onFiltersChange($event); })("filterChange", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_filterChange_19_listener() { return ctx.onFilterChange(); })("resetFilters", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_resetFilters_19_listener() { return ctx.onResetFilters(); })("closePanel", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_closePanel_19_listener() { return ctx.toggleFilterPanel(); });
920
+ i0.ɵɵelementStart(21, "div", 16)(22, "kendo-splitter", 17)(23, "kendo-splitter-pane", 18)(24, "mj-system-config-filter-panel", 19);
921
+ i0.ɵɵlistener("filtersChange", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_filtersChange_24_listener($event) { return ctx.onFiltersChange($event); })("filterChange", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_filterChange_24_listener() { return ctx.onFilterChange(); })("resetFilters", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_resetFilters_24_listener() { return ctx.onResetFilters(); })("closePanel", function SystemConfigurationComponent_Template_mj_system_config_filter_panel_closePanel_24_listener() { return ctx.toggleFilterPanel(); });
922
+ i0.ɵɵelementEnd()();
923
+ i0.ɵɵelementStart(25, "kendo-splitter-pane", 20)(26, "div", 21);
924
+ i0.ɵɵtemplate(27, SystemConfigurationComponent_Conditional_27_Template, 2, 0, "div", 22)(28, SystemConfigurationComponent_Conditional_28_Template, 4, 1, "div", 23)(29, SystemConfigurationComponent_Conditional_29_Template, 2, 1);
925
+ i0.ɵɵelementEnd()()()();
926
+ i0.ɵɵtemplate(30, SystemConfigurationComponent_Conditional_30_Template, 1, 0, "div", 24);
927
+ i0.ɵɵelementStart(31, "div", 25);
928
+ i0.ɵɵtemplate(32, SystemConfigurationComponent_Conditional_32_Template, 71, 14);
281
929
  i0.ɵɵelementEnd()();
282
- i0.ɵɵelementStart(20, "kendo-splitter-pane", 15)(21, "div", 16);
283
- i0.ɵɵtemplate(22, SystemConfigurationComponent_Conditional_22_Template, 2, 0, "div", 17)(23, SystemConfigurationComponent_Conditional_23_Template, 4, 1, "div", 18)(24, SystemConfigurationComponent_Conditional_24_Template, 2, 1);
284
- i0.ɵɵelementEnd()()()()();
285
930
  } if (rf & 2) {
286
- i0.ɵɵadvance(5);
287
- i0.ɵɵconditional(ctx.filterPanelVisible ? 5 : 6);
931
+ i0.ɵɵadvance(8);
932
+ i0.ɵɵconditional(ctx.filterPanelVisible ? 8 : 9);
933
+ i0.ɵɵadvance(3);
934
+ i0.ɵɵtextInterpolate2(" ", ctx.filteredConfigurations.length, " of ", ctx.configurations.length, " configurations ");
288
935
  i0.ɵɵadvance(3);
289
- i0.ɵɵtextInterpolate1("", ctx.filteredConfigurations.length, " configurations");
290
- i0.ɵɵadvance(10);
936
+ i0.ɵɵclassProp("active", ctx.viewMode === "grid");
937
+ i0.ɵɵadvance(2);
938
+ i0.ɵɵclassProp("active", ctx.viewMode === "list");
939
+ i0.ɵɵadvance(2);
940
+ i0.ɵɵproperty("disabled", ctx.isLoading);
941
+ i0.ɵɵadvance();
942
+ i0.ɵɵclassProp("fa-spin", ctx.isLoading);
943
+ i0.ɵɵadvance(4);
291
944
  i0.ɵɵproperty("size", ctx.filterPanelVisible ? "320px" : "0px")("collapsible", false)("resizable", ctx.filterPanelVisible)("scrollable", false)("hidden", !ctx.filterPanelVisible);
292
945
  i0.ɵɵadvance();
293
946
  i0.ɵɵproperty("configurations", ctx.configurations)("filteredConfigurations", ctx.filteredConfigurations)("filters", ctx.currentFilters);
294
947
  i0.ɵɵadvance();
295
948
  i0.ɵɵproperty("resizable", true)("scrollable", false);
296
949
  i0.ɵɵadvance(2);
297
- i0.ɵɵconditional(ctx.isLoading ? 22 : -1);
950
+ i0.ɵɵconditional(ctx.isLoading ? 27 : -1);
951
+ i0.ɵɵadvance();
952
+ i0.ɵɵconditional(ctx.error && !ctx.isLoading ? 28 : -1);
953
+ i0.ɵɵadvance();
954
+ i0.ɵɵconditional(!ctx.isLoading && !ctx.error ? 29 : -1);
955
+ i0.ɵɵadvance();
956
+ i0.ɵɵconditional(ctx.detailPanelVisible ? 30 : -1);
298
957
  i0.ɵɵadvance();
299
- i0.ɵɵconditional(ctx.error ? 23 : -1);
958
+ i0.ɵɵclassProp("visible", ctx.detailPanelVisible);
300
959
  i0.ɵɵadvance();
301
- i0.ɵɵconditional(!ctx.isLoading && !ctx.error ? 24 : -1);
302
- } }, dependencies: [i2.SplitterComponent, i2.SplitterPaneComponent, i3.LoadingComponent, i4.SystemConfigFilterPanelComponent], styles: [".config-content[_ngcontent-%COMP%] {\n padding: 0;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n\n.config-cards-container[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 20px;\n margin-top: 20px;\n}\n\n.config-card[_ngcontent-%COMP%] {\n background: white;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n padding: 20px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n transition: box-shadow 0.2s ease;\n position: relative;\n}\n.config-card[_ngcontent-%COMP%]:hover {\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);\n}\n\n.config-card-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: 12px;\n gap: 10px;\n}\n\n.config-name[_ngcontent-%COMP%] {\n font-weight: 600;\n font-size: 16px;\n color: #333;\n margin: 0;\n flex: 1;\n}\n\n.config-badges[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n flex-shrink: 0;\n}\n\n.default-badge[_ngcontent-%COMP%] {\n background: #007bff;\n color: white;\n padding: 2px 8px;\n border-radius: 12px;\n font-size: 11px;\n font-weight: 500;\n text-transform: uppercase;\n}\n\n.status-badge[_ngcontent-%COMP%] {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n text-transform: uppercase;\n}\n.status-badge.active[_ngcontent-%COMP%] {\n background: #d4edda;\n color: #155724;\n border: 1px solid #c3e6cb;\n}\n.status-badge.inactive[_ngcontent-%COMP%] {\n background: #f8d7da;\n color: #721c24;\n border: 1px solid #f5c6cb;\n}\n.status-badge.deprecated[_ngcontent-%COMP%] {\n background: #fff3cd;\n color: #856404;\n border: 1px solid #ffeaa7;\n}\n.status-badge.preview[_ngcontent-%COMP%] {\n background: #e2e3e5;\n color: #383d41;\n border: 1px solid #d6d8db;\n}\n\n.config-description[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n margin-bottom: 16px;\n}\n\n.config-meta[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n color: #888;\n border-top: 1px solid #f0f0f0;\n padding-top: 12px;\n}\n\n.config-id[_ngcontent-%COMP%] {\n font-family: monospace;\n background: #f8f9fa;\n padding: 2px 6px;\n border-radius: 3px;\n}\n\n.main-splitter[_ngcontent-%COMP%] {\n height: 100%;\n width: 100%;\n}\n.main-splitter[_ngcontent-%COMP%] .k-pane[_ngcontent-%COMP%] {\n overflow: hidden;\n}\n\n.no-configs-message[_ngcontent-%COMP%] {\n text-align: center;\n color: #666;\n font-style: italic;\n margin-top: 50px;\n font-size: 16px;\n}\n\n.loading-message[_ngcontent-%COMP%] {\n text-align: center;\n color: #666;\n margin-top: 50px;\n font-size: 16px;\n}"] });
960
+ i0.ɵɵconditional(ctx.selectedConfig ? 32 : -1);
961
+ } }, dependencies: [i2.NgClass, i3.SplitterComponent, i3.SplitterPaneComponent, i4.LoadingComponent, i5.SystemConfigFilterPanelComponent], styles: ["\n\n\n\n\n\n\n.system-configuration-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;\n}\n\n\n\n\n\n.dashboard-header[_ngcontent-%COMP%] {\n background: white;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e6ed;\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);\n position: relative;\n z-index: 10;\n}\n\n.header-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 20px;\n}\n\n.dashboard-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 20px;\n font-weight: 700;\n color: #1e293b;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.dashboard-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6366f1;\n font-size: 22px;\n}\n\n.filter-toggle-btn[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);\n border: 1px solid #dee2e6;\n padding: 10px 18px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n color: #495057;\n cursor: pointer;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.filter-toggle-btn[_ngcontent-%COMP%]:hover {\n background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);\n border-color: #ced4da;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.filter-toggle-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6366f1;\n font-size: 14px;\n}\n\n.config-count[_ngcontent-%COMP%] {\n color: #6c757d;\n font-size: 14px;\n font-weight: 500;\n padding: 6px 12px;\n background: #f8f9fa;\n border-radius: 20px;\n border: 1px solid #e9ecef;\n}\n\n.header-controls[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n\n\n.view-toggle[_ngcontent-%COMP%] {\n display: flex;\n background: #f8f9fa;\n border-radius: 8px;\n padding: 3px;\n border: 1px solid #dee2e6;\n}\n\n.view-btn[_ngcontent-%COMP%] {\n background: transparent;\n border: none;\n padding: 8px 14px;\n border-radius: 6px;\n color: #6c757d;\n cursor: pointer;\n transition: all 0.2s ease;\n font-size: 15px;\n}\n\n.view-btn[_ngcontent-%COMP%]:hover {\n color: #495057;\n}\n\n.view-btn.active[_ngcontent-%COMP%] {\n background: white;\n color: #6366f1;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);\n}\n\n.control-btn[_ngcontent-%COMP%] {\n background: white;\n border: 1px solid #dee2e6;\n padding: 10px 18px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n color: #495057;\n cursor: pointer;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.control-btn[_ngcontent-%COMP%]:hover {\n background: #f8f9fa;\n border-color: #ced4da;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n}\n\n.control-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.control-btn.primary[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n border-color: #4f46e5;\n color: white;\n}\n\n.control-btn.primary[_ngcontent-%COMP%]:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);\n}\n\n\n\n\n\n.main-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.main-splitter[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n\n.configurations-content[_ngcontent-%COMP%] {\n height: 100%;\n overflow-y: auto;\n padding: 24px;\n background: transparent;\n}\n\n\n\n\n\n.loading-container[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n min-height: 400px;\n}\n\n\n\n\n\n.error-container[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 60px 20px;\n}\n\n.error-message[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 16px 24px;\n background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);\n border: 1px solid #fecaca;\n border-radius: 12px;\n color: #dc2626;\n font-size: 15px;\n font-weight: 500;\n}\n\n.error-message[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 20px;\n}\n\n\n\n\n\n.empty-state[_ngcontent-%COMP%] {\n text-align: center;\n padding: 80px 20px;\n color: #6c757d;\n}\n\n.empty-state[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 72px;\n color: #d1d5db;\n margin-bottom: 24px;\n display: block;\n opacity: 0.8;\n}\n\n.empty-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n color: #374151;\n font-size: 22px;\n font-weight: 600;\n margin: 0 0 12px 0;\n}\n\n.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 15px;\n line-height: 1.6;\n max-width: 400px;\n margin: 0 auto 28px;\n color: #6b7280;\n}\n\n\n\n\n\n.configurations-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));\n gap: 24px;\n}\n\n\n\n\n\n.config-card[_ngcontent-%COMP%] {\n background: white;\n border-radius: 16px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);\n border: 1px solid #e5e7eb;\n transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n position: relative;\n}\n\n.config-card[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 4px;\n background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.config-card[_ngcontent-%COMP%]:hover {\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);\n transform: translateY(-4px);\n border-color: #c7d2fe;\n}\n\n.config-card[_ngcontent-%COMP%]:hover::before {\n opacity: 1;\n}\n\n.config-card.expanded[_ngcontent-%COMP%] {\n box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);\n}\n\n.config-card.expanded[_ngcontent-%COMP%]::before {\n opacity: 1;\n}\n\n\n\n.card-header[_ngcontent-%COMP%] {\n padding: 24px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n cursor: pointer;\n user-select: none;\n border-bottom: 1px solid #f3f4f6;\n transition: background 0.2s ease;\n}\n\n.card-header[_ngcontent-%COMP%]:hover {\n background: #fafbfc;\n}\n\n.config-info[_ngcontent-%COMP%] {\n display: flex;\n gap: 18px;\n flex: 1;\n}\n\n.config-icon[_ngcontent-%COMP%] {\n width: 56px;\n height: 56px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n.config-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: white;\n font-size: 24px;\n}\n\n.config-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.config-name[_ngcontent-%COMP%] {\n margin: 0 0 8px 0;\n font-size: 18px;\n font-weight: 700;\n color: #1f2937;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n letter-spacing: -0.02em;\n}\n\n.config-meta[_ngcontent-%COMP%] {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n align-items: center;\n}\n\n\n\n.status-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 20px;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n transition: all 0.2s ease;\n}\n\n.status-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n}\n\n.status-badge.status-active[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);\n color: #166534;\n border: 1px solid #86efac;\n}\n\n.status-badge.status-preview[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);\n color: #92400e;\n border: 1px solid #fcd34d;\n}\n\n.status-badge.status-inactive[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);\n color: #4b5563;\n border: 1px solid #d1d5db;\n}\n\n.status-badge.status-deprecated[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);\n color: #991b1b;\n border: 1px solid #fca5a5;\n}\n\n\n\n.default-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 20px;\n font-size: 12px;\n font-weight: 600;\n background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);\n color: #5b21b6;\n border: 1px solid #c4b5fd;\n}\n\n.default-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n color: #7c3aed;\n}\n\n\n\n.expand-icon[_ngcontent-%COMP%] {\n font-size: 16px;\n color: #9ca3af;\n transition: all 0.3s ease;\n padding: 8px;\n border-radius: 8px;\n}\n\n.expand-icon[_ngcontent-%COMP%]:hover {\n color: #6366f1;\n background: #f3f4f6;\n}\n\n.expand-icon.rotated[_ngcontent-%COMP%] {\n transform: rotate(180deg);\n color: #6366f1;\n}\n\n\n\n.card-body[_ngcontent-%COMP%] {\n padding: 0 24px 20px 24px;\n}\n\n.config-description[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 14px;\n line-height: 1.7;\n color: #6b7280;\n}\n\n.config-description.text-muted[_ngcontent-%COMP%] {\n font-style: italic;\n color: #9ca3af;\n}\n\n\n\n\n\n.expanded-content[_ngcontent-%COMP%] {\n margin-top: 20px;\n padding-top: 20px;\n border-top: 1px solid #f3f4f6;\n animation: _ngcontent-%COMP%_slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n@keyframes _ngcontent-%COMP%_slideDown {\n from {\n opacity: 0;\n transform: translateY(-12px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n\n\n.config-stats[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n gap: 16px;\n margin-bottom: 20px;\n}\n\n.stat-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 14px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-radius: 12px;\n border: 1px solid #e2e8f0;\n}\n\n.stat-label[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.75px;\n}\n\n.stat-value[_ngcontent-%COMP%] {\n font-size: 14px;\n color: #334155;\n font-weight: 600;\n}\n\n\n\n.prompts-section[_ngcontent-%COMP%] {\n margin-top: 20px;\n}\n\n.section-title[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 700;\n color: #475569;\n text-transform: uppercase;\n letter-spacing: 0.75px;\n margin: 0 0 12px 0;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6366f1;\n font-size: 14px;\n}\n\n.prompt-links[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.prompt-link[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: white;\n border: 1px solid #e5e7eb;\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.2s ease;\n}\n\n.prompt-link[_ngcontent-%COMP%]:hover {\n background: #f8fafc;\n border-color: #c7d2fe;\n transform: translateX(4px);\n}\n\n.prompt-link-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n}\n\n.prompt-link-icon[_ngcontent-%COMP%] {\n width: 36px;\n height: 36px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);\n color: #2563eb;\n flex-shrink: 0;\n}\n\n.prompt-link-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.prompt-link-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.prompt-link-label[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 2px;\n}\n\n.prompt-link-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 600;\n color: #1e293b;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.prompt-link-arrow[_ngcontent-%COMP%] {\n color: #94a3b8;\n font-size: 14px;\n transition: all 0.2s ease;\n}\n\n.prompt-link[_ngcontent-%COMP%]:hover .prompt-link-arrow[_ngcontent-%COMP%] {\n color: #6366f1;\n transform: translateX(4px);\n}\n\n.no-prompt[_ngcontent-%COMP%] {\n font-size: 13px;\n color: #94a3b8;\n font-style: italic;\n padding: 12px 16px;\n background: #f8fafc;\n border-radius: 10px;\n border: 1px dashed #e2e8f0;\n}\n\n\n\n.params-section[_ngcontent-%COMP%] {\n margin-top: 20px;\n}\n\n.params-grid[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.param-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: white;\n border: 1px solid #e5e7eb;\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.2s ease;\n}\n\n.param-item[_ngcontent-%COMP%]:hover {\n background: #f8fafc;\n border-color: #c7d2fe;\n}\n\n.param-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n}\n\n.param-type-icon[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);\n color: #7c3aed;\n flex-shrink: 0;\n}\n\n.param-type-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 13px;\n}\n\n.param-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.param-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 600;\n color: #1e293b;\n}\n\n.param-type[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #64748b;\n margin-top: 2px;\n}\n\n.param-value[_ngcontent-%COMP%] {\n font-size: 13px;\n color: #475569;\n font-family: 'SF Mono', Monaco, 'Consolas', monospace;\n background: #f1f5f9;\n padding: 4px 10px;\n border-radius: 6px;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.no-params[_ngcontent-%COMP%] {\n font-size: 13px;\n color: #94a3b8;\n font-style: italic;\n padding: 12px 16px;\n background: #f8fafc;\n border-radius: 10px;\n border: 1px dashed #e2e8f0;\n text-align: center;\n}\n\n\n\n\n\n.card-actions[_ngcontent-%COMP%] {\n padding: 16px 24px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-top: 1px solid #e5e7eb;\n display: flex;\n gap: 10px;\n justify-content: flex-end;\n}\n\n.action-btn[_ngcontent-%COMP%] {\n background: white;\n border: 1px solid #e5e7eb;\n padding: 8px 16px;\n border-radius: 8px;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n cursor: pointer;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.action-btn[_ngcontent-%COMP%]:hover {\n background: #f8fafc;\n border-color: #cbd5e1;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n}\n\n.action-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.action-btn-primary[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n border-color: #4f46e5;\n color: white;\n}\n\n.action-btn-primary[_ngcontent-%COMP%]:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);\n}\n\n.action-btn-warning[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);\n border-color: #f59e0b;\n color: #78350f;\n}\n\n.action-btn-warning[_ngcontent-%COMP%]:hover {\n background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);\n box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);\n}\n\n.action-btn-danger[_ngcontent-%COMP%] {\n color: #dc2626;\n border-color: #fecaca;\n}\n\n.action-btn-danger[_ngcontent-%COMP%]:hover {\n background: #fef2f2;\n border-color: #dc2626;\n}\n\n\n\n\n\n.configurations-list[_ngcontent-%COMP%] {\n background: white;\n border-radius: 16px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);\n border: 1px solid #e5e7eb;\n overflow: hidden;\n}\n\n.configurations-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n}\n\n.configurations-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-bottom: 2px solid #e5e7eb;\n}\n\n.configurations-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n padding: 14px 20px;\n text-align: left;\n font-size: 12px;\n font-weight: 700;\n color: #475569;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n cursor: pointer;\n user-select: none;\n transition: all 0.2s ease;\n}\n\n.configurations-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover {\n background: #e2e8f0;\n color: #6366f1;\n}\n\n.configurations-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child {\n cursor: default;\n}\n\n.configurations-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:hover {\n background: transparent;\n color: #475569;\n}\n\n.configurations-table[_ngcontent-%COMP%] th.sorted[_ngcontent-%COMP%] {\n color: #6366f1;\n background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);\n}\n\n.configurations-table[_ngcontent-%COMP%] th.sorted.desc[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%] {\n transform: rotate(180deg);\n}\n\n.configurations-table[_ngcontent-%COMP%] .sort-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.configurations-table[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%] {\n font-size: 10px;\n opacity: 0;\n transition: all 0.2s ease;\n}\n\n.configurations-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover .sort-icon[_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.configurations-table[_ngcontent-%COMP%] th.sorted[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%] {\n opacity: 1;\n color: #6366f1;\n}\n\n.configurations-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] {\n border-bottom: 1px solid #f1f5f9;\n transition: background 0.2s ease;\n}\n\n.configurations-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover {\n background: #fafbfc;\n}\n\n.configurations-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child {\n border-bottom: none;\n}\n\n.configurations-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 18px 20px;\n font-size: 14px;\n color: #475569;\n}\n\n.config-name-cell[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 14px;\n}\n\n.config-icon-small[_ngcontent-%COMP%] {\n width: 42px;\n height: 42px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n flex-shrink: 0;\n}\n\n.config-icon-small[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: white;\n font-size: 16px;\n}\n\n.config-name-text[_ngcontent-%COMP%] {\n font-weight: 600;\n color: #1e293b;\n}\n\n.config-description-small[_ngcontent-%COMP%] {\n font-size: 13px;\n color: #64748b;\n margin-top: 4px;\n max-width: 300px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.table-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n}\n\n.action-btn-small[_ngcontent-%COMP%] {\n background: white;\n border: 1px solid #e5e7eb;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 500;\n color: #475569;\n cursor: pointer;\n transition: all 0.2s ease;\n display: flex;\n align-items: center;\n gap: 5px;\n}\n\n.action-btn-small[_ngcontent-%COMP%]:hover {\n background: #f8fafc;\n border-color: #cbd5e1;\n}\n\n.action-btn-small.primary[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n border-color: #4f46e5;\n color: white;\n}\n\n.action-btn-small.primary[_ngcontent-%COMP%]:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n}\n\n\n\n\n\n@media (max-width: 1024px) {\n .configurations-grid[_ngcontent-%COMP%] {\n grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));\n }\n}\n\n@media (max-width: 768px) {\n .dashboard-header[_ngcontent-%COMP%] {\n flex-direction: column;\n gap: 16px;\n align-items: stretch;\n }\n\n .header-info[_ngcontent-%COMP%] {\n justify-content: space-between;\n flex-wrap: wrap;\n }\n\n .header-controls[_ngcontent-%COMP%] {\n justify-content: space-between;\n }\n\n .configurations-grid[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .config-stats[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .card-header[_ngcontent-%COMP%] {\n padding: 20px;\n }\n\n .config-icon[_ngcontent-%COMP%] {\n width: 48px;\n height: 48px;\n }\n\n .config-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 20px;\n }\n\n .card-actions[_ngcontent-%COMP%] {\n flex-wrap: wrap;\n }\n}\n\n\n\n\n\nkendo-splitter[_ngcontent-%COMP%] {\n background: transparent;\n}\n\n[_nghost-%COMP%] .k-splitter {\n border: none;\n background: transparent;\n}\n\n[_nghost-%COMP%] .k-splitbar {\n background: #e5e7eb;\n width: 6px;\n}\n\n[_nghost-%COMP%] .k-splitbar:hover {\n background: #c7d2fe;\n}\n\n[_nghost-%COMP%] .k-pane {\n overflow: hidden;\n}\n\n\n\n\n\n\n.detail-panel-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(15, 23, 42, 0.4);\n backdrop-filter: blur(4px);\n z-index: 1000;\n animation: _ngcontent-%COMP%_fadeIn 0.25s ease-out;\n}\n\n@keyframes _ngcontent-%COMP%_fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n.detail-panel[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n right: -480px;\n width: 480px;\n height: 100vh;\n background: white;\n box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n}\n\n.detail-panel.visible[_ngcontent-%COMP%] {\n right: 0;\n}\n\n\n\n.detail-panel-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-bottom: 1px solid #e2e8f0;\n flex-shrink: 0;\n}\n\n.detail-panel-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.detail-icon[_ngcontent-%COMP%] {\n width: 56px;\n height: 56px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n.detail-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: white;\n font-size: 24px;\n}\n\n.detail-title-info[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0 0 4px 0;\n font-size: 20px;\n font-weight: 700;\n color: #1e293b;\n}\n\n.detail-subtitle[_ngcontent-%COMP%] {\n font-size: 13px;\n color: #64748b;\n font-weight: 500;\n}\n\n.detail-panel-close[_ngcontent-%COMP%] {\n background: white;\n border: 1px solid #e2e8f0;\n width: 40px;\n height: 40px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s ease;\n color: #64748b;\n}\n\n.detail-panel-close[_ngcontent-%COMP%]:hover {\n background: #f8fafc;\n border-color: #cbd5e1;\n color: #1e293b;\n}\n\n\n\n.detail-panel-content[_ngcontent-%COMP%] {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n}\n\n.detail-section[_ngcontent-%COMP%] {\n margin-bottom: 28px;\n}\n\n.detail-section[_ngcontent-%COMP%]:last-child {\n margin-bottom: 0;\n}\n\n.detail-badges[_ngcontent-%COMP%] {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.feature-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 20px;\n font-size: 12px;\n font-weight: 600;\n background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);\n color: #4f46e5;\n}\n\n.feature-badge.default[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);\n color: #5b21b6;\n}\n\n.feature-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n}\n\n.detail-section-title[_ngcontent-%COMP%] {\n margin: 0 0 16px 0;\n font-size: 12px;\n font-weight: 700;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.detail-section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6366f1;\n font-size: 14px;\n}\n\n.detail-description[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 14px;\n line-height: 1.7;\n color: #475569;\n}\n\n.detail-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 16px;\n}\n\n.detail-grid.single-column[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n}\n\n.detail-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 14px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-radius: 12px;\n border: 1px solid #e2e8f0;\n}\n\n.detail-label[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n}\n\n.detail-value[_ngcontent-%COMP%] {\n font-size: 14px;\n color: #1e293b;\n font-weight: 600;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.detail-value[_ngcontent-%COMP%] .muted[_ngcontent-%COMP%] {\n color: #94a3b8;\n font-style: italic;\n font-weight: 500;\n}\n\n.detail-value[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 13px;\n}\n\n\n\n.detail-params-list[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.detail-param-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 14px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-radius: 10px;\n border: 1px solid #e2e8f0;\n}\n\n.detail-param-item[_ngcontent-%COMP%] .param-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.detail-param-item[_ngcontent-%COMP%] .param-info[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #7c3aed;\n font-size: 14px;\n}\n\n.detail-param-item[_ngcontent-%COMP%] .param-name[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n color: #1e293b;\n}\n\n.detail-param-item[_ngcontent-%COMP%] .param-value[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #475569;\n font-family: 'SF Mono', Monaco, 'Consolas', monospace;\n background: white;\n padding: 4px 10px;\n border-radius: 6px;\n border: 1px solid #e2e8f0;\n max-width: 150px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.params-more[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #6366f1;\n font-weight: 600;\n text-align: center;\n padding: 10px;\n background: #eef2ff;\n border-radius: 8px;\n}\n\n\n\n.detail-panel-actions[_ngcontent-%COMP%] {\n padding: 20px 24px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-top: 1px solid #e2e8f0;\n display: flex;\n gap: 12px;\n flex-shrink: 0;\n}\n\n.detail-action-btn[_ngcontent-%COMP%] {\n flex: 1;\n padding: 14px 20px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n}\n\n.detail-action-btn.secondary[_ngcontent-%COMP%] {\n background: white;\n border: 2px solid #e2e8f0;\n color: #475569;\n}\n\n.detail-action-btn.secondary[_ngcontent-%COMP%]:hover {\n border-color: #6366f1;\n color: #6366f1;\n background: #fafbff;\n}\n\n.detail-action-btn.primary[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n border: 2px solid transparent;\n color: white;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n.detail-action-btn.primary[_ngcontent-%COMP%]:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);\n transform: translateY(-1px);\n box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);\n}\n\n\n\n@media (max-width: 520px) {\n .detail-panel[_ngcontent-%COMP%] {\n width: 100%;\n right: -100%;\n }\n\n .detail-panel.visible[_ngcontent-%COMP%] {\n right: 0;\n }\n\n .detail-grid[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n}"] });
303
962
  };
304
963
  SystemConfigurationComponent = __decorate([
305
964
  RegisterClass(BaseResourceComponent, 'AIConfigResource')
@@ -307,7 +966,7 @@ SystemConfigurationComponent = __decorate([
307
966
  export { SystemConfigurationComponent };
308
967
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SystemConfigurationComponent, [{
309
968
  type: Component,
310
- args: [{ selector: 'app-system-configuration', template: "<div class=\"system-configuration-container\">\n <!-- Header -->\n <div class=\"dashboard-header\">\n <div class=\"header-info\">\n <button \n type=\"button\" \n class=\"filter-toggle-btn\"\n (click)=\"toggleFilterPanel()\"\n title=\"Toggle Filters\">\n <i class=\"fa-solid fa-filter\"></i>\n @if (filterPanelVisible) {\n Hide Filters\n } @else {\n Show Filters\n }\n </button>\n <span class=\"config-count\">{{ filteredConfigurations.length }} configurations</span>\n </div>\n \n <div class=\"header-controls\">\n <button \n type=\"button\" \n class=\"control-btn\"\n (click)=\"loadData()\"\n title=\"Refresh\">\n <i class=\"fa-solid fa-refresh\"></i>\n Refresh\n </button>\n <button \n type=\"button\" \n class=\"control-btn\"\n title=\"Create New Configuration\">\n <i class=\"fa-solid fa-plus\"></i>\n New Configuration\n </button>\n </div>\n </div>\n\n <!-- Main Content with Splitter -->\n <div class=\"main-content\">\n <kendo-splitter \n class=\"main-splitter\"\n orientation=\"horizontal\"\n (layoutChange)=\"onMainSplitterChange($event)\"\n >\n \n <!-- Filter Panel (Left) -->\n <kendo-splitter-pane \n [size]=\"filterPanelVisible ? '320px' : '0px'\"\n [collapsible]=\"false\"\n [resizable]=\"filterPanelVisible\"\n [scrollable]=\"false\"\n [hidden]=\"!filterPanelVisible\">\n <mj-system-config-filter-panel\n [configurations]=\"configurations\"\n [filteredConfigurations]=\"filteredConfigurations\"\n [filters]=\"currentFilters\"\n (filtersChange)=\"onFiltersChange($event)\"\n (filterChange)=\"onFilterChange()\"\n (resetFilters)=\"onResetFilters()\"\n (closePanel)=\"toggleFilterPanel()\">\n </mj-system-config-filter-panel>\n </kendo-splitter-pane>\n \n <!-- Configurations List Panel -->\n <kendo-splitter-pane \n [resizable]=\"true\"\n [scrollable]=\"false\">\n <div class=\"configurations-content\">\n <!-- Loading State -->\n @if (isLoading) {\n <div class=\"loading-container\">\n <mj-loading text=\"Loading configurations...\" size=\"large\"></mj-loading>\n </div>\n }\n\n <!-- Error State -->\n @if (error) {\n <div class=\"error-container\">\n <p class=\"error-message\">\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n {{ error }}\n </p>\n </div>\n }\n\n <!-- Configurations List -->\n @if (!isLoading && !error) {\n @if (filteredConfigurations.length === 0) {\n <div class=\"empty-state\">\n <i class=\"fa-solid fa-cogs\"></i>\n <h3>No configurations found</h3>\n <p>No AI configurations match your current filters. Try adjusting your search criteria or create a new configuration.</p>\n </div>\n } @else {\n <div class=\"configurations-grid\">\n @for (config of filteredConfigurations; track config.ID) {\n <div class=\"config-card\">\n <!-- Card Header -->\n <div class=\"card-header\">\n <div class=\"config-info\">\n <div class=\"config-icon\">\n <i [class]=\"getConfigIcon()\"></i>\n </div>\n <div class=\"config-details\">\n <h4 class=\"config-name\">{{ config.Name }}</h4>\n <div class=\"config-meta\">\n @if (config.IsDefault) {\n <span class=\"default-badge\">\n <i class=\"fa-solid fa-star\"></i>\n Default\n </span>\n }\n </div>\n </div>\n </div>\n \n <div class=\"status-badge status-{{ config.Status.toLowerCase() }}\">\n {{ config.Status }}\n </div>\n </div>\n\n <!-- Card Body -->\n <div class=\"card-body\">\n @if (config.Description) {\n <p class=\"config-description\">{{ config.Description }}</p>\n } @else {\n <p class=\"config-description text-muted\">No description provided</p>\n }\n </div>\n\n <!-- Card Actions -->\n <div class=\"card-actions\" (click)=\"$event.stopPropagation()\">\n <button \n type=\"button\" \n class=\"action-btn\">\n <i class=\"fa-solid fa-eye\"></i>\n View\n </button>\n \n <button \n type=\"button\" \n class=\"action-btn action-btn-primary\">\n <i class=\"fa-solid fa-edit\"></i>\n Configure\n </button>\n \n @if (!config.IsDefault) {\n <button \n type=\"button\" \n class=\"action-btn action-btn-warning\">\n <i class=\"fa-solid fa-star\"></i>\n Set Default\n </button>\n }\n \n <button \n type=\"button\" \n class=\"action-btn action-btn-danger\">\n <i class=\"fa-solid fa-trash\"></i>\n Delete\n </button>\n </div>\n </div>\n }\n </div>\n }\n }\n </div>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n</div>", styles: [".config-content {\n padding: 0;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n\n.config-cards-container {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 20px;\n margin-top: 20px;\n}\n\n.config-card {\n background: white;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n padding: 20px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n transition: box-shadow 0.2s ease;\n position: relative;\n}\n.config-card:hover {\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);\n}\n\n.config-card-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: 12px;\n gap: 10px;\n}\n\n.config-name {\n font-weight: 600;\n font-size: 16px;\n color: #333;\n margin: 0;\n flex: 1;\n}\n\n.config-badges {\n display: flex;\n gap: 8px;\n flex-shrink: 0;\n}\n\n.default-badge {\n background: #007bff;\n color: white;\n padding: 2px 8px;\n border-radius: 12px;\n font-size: 11px;\n font-weight: 500;\n text-transform: uppercase;\n}\n\n.status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n text-transform: uppercase;\n}\n.status-badge.active {\n background: #d4edda;\n color: #155724;\n border: 1px solid #c3e6cb;\n}\n.status-badge.inactive {\n background: #f8d7da;\n color: #721c24;\n border: 1px solid #f5c6cb;\n}\n.status-badge.deprecated {\n background: #fff3cd;\n color: #856404;\n border: 1px solid #ffeaa7;\n}\n.status-badge.preview {\n background: #e2e3e5;\n color: #383d41;\n border: 1px solid #d6d8db;\n}\n\n.config-description {\n color: #666;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n margin-bottom: 16px;\n}\n\n.config-meta {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n color: #888;\n border-top: 1px solid #f0f0f0;\n padding-top: 12px;\n}\n\n.config-id {\n font-family: monospace;\n background: #f8f9fa;\n padding: 2px 6px;\n border-radius: 3px;\n}\n\n.main-splitter {\n height: 100%;\n width: 100%;\n}\n.main-splitter .k-pane {\n overflow: hidden;\n}\n\n.no-configs-message {\n text-align: center;\n color: #666;\n font-style: italic;\n margin-top: 50px;\n font-size: 16px;\n}\n\n.loading-message {\n text-align: center;\n color: #666;\n margin-top: 50px;\n font-size: 16px;\n}\n"] }]
311
- }], () => [{ type: i1.NavigationService }], null); })();
312
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SystemConfigurationComponent, { className: "SystemConfigurationComponent", filePath: "src/AI/components/system/system-configuration.component.ts", lineNumber: 30 }); })();
969
+ args: [{ selector: 'app-system-configuration', template: "<div class=\"system-configuration-container\">\n <!-- Header -->\n <div class=\"dashboard-header\">\n <div class=\"header-info\">\n <h2 class=\"dashboard-title\">\n <i class=\"fa-solid fa-sliders\"></i>\n AI Configuration\n </h2>\n <button\n type=\"button\"\n class=\"filter-toggle-btn\"\n (click)=\"toggleFilterPanel()\"\n title=\"Toggle Filters\">\n <i class=\"fa-solid fa-filter\"></i>\n @if (filterPanelVisible) {\n Hide Filters\n } @else {\n Show Filters\n }\n </button>\n <span class=\"config-count\">\n {{ filteredConfigurations.length }} of {{ configurations.length }} configurations\n </span>\n </div>\n\n <div class=\"header-controls\">\n <!-- View Toggle -->\n <div class=\"view-toggle\">\n <button\n type=\"button\"\n class=\"view-btn\"\n [class.active]=\"viewMode === 'grid'\"\n (click)=\"setViewMode('grid')\"\n title=\"Grid View\">\n <i class=\"fa-solid fa-grid-2\"></i>\n </button>\n <button\n type=\"button\"\n class=\"view-btn\"\n [class.active]=\"viewMode === 'list'\"\n (click)=\"setViewMode('list')\"\n title=\"List View\">\n <i class=\"fa-solid fa-list\"></i>\n </button>\n </div>\n\n <button\n type=\"button\"\n class=\"control-btn\"\n (click)=\"loadData()\"\n [disabled]=\"isLoading\"\n title=\"Refresh\">\n <i class=\"fa-solid fa-refresh\" [class.fa-spin]=\"isLoading\"></i>\n Refresh\n </button>\n </div>\n </div>\n\n <!-- Main Content with Splitter -->\n <div class=\"main-content\">\n <kendo-splitter\n class=\"main-splitter\"\n orientation=\"horizontal\">\n\n <!-- Filter Panel (Left) -->\n <kendo-splitter-pane\n [size]=\"filterPanelVisible ? '320px' : '0px'\"\n [collapsible]=\"false\"\n [resizable]=\"filterPanelVisible\"\n [scrollable]=\"false\"\n [hidden]=\"!filterPanelVisible\">\n <mj-system-config-filter-panel\n [configurations]=\"configurations\"\n [filteredConfigurations]=\"filteredConfigurations\"\n [filters]=\"currentFilters\"\n (filtersChange)=\"onFiltersChange($event)\"\n (filterChange)=\"onFilterChange()\"\n (resetFilters)=\"onResetFilters()\"\n (closePanel)=\"toggleFilterPanel()\">\n </mj-system-config-filter-panel>\n </kendo-splitter-pane>\n\n <!-- Configurations List Panel -->\n <kendo-splitter-pane\n [resizable]=\"true\"\n [scrollable]=\"false\">\n <div class=\"configurations-content\">\n <!-- Loading State -->\n @if (isLoading) {\n <div class=\"loading-container\">\n <mj-loading text=\"Loading AI configurations...\" size=\"large\"></mj-loading>\n </div>\n }\n\n <!-- Error State -->\n @if (error && !isLoading) {\n <div class=\"error-container\">\n <p class=\"error-message\">\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n {{ error }}\n </p>\n </div>\n }\n\n <!-- Configurations Content -->\n @if (!isLoading && !error) {\n @if (filteredConfigurations.length === 0) {\n <div class=\"empty-state\">\n <i class=\"fa-solid fa-sliders\"></i>\n <h3>No configurations found</h3>\n <p>No AI configurations match your current filters. Try adjusting your search criteria or create a new configuration.</p>\n </div>\n } @else {\n <!-- Grid View -->\n @if (viewMode === 'grid') {\n <div class=\"configurations-grid\">\n @for (config of filteredConfigurations; track config.ID) {\n <div class=\"config-card\" [class.expanded]=\"config.isExpanded\">\n <!-- Card Header -->\n <div class=\"card-header\" (click)=\"toggleExpanded(config)\">\n <div class=\"config-info\">\n <div class=\"config-icon\">\n <i class=\"fa-solid fa-sliders\"></i>\n </div>\n <div class=\"config-details\">\n <h4 class=\"config-name\">{{ config.Name }}</h4>\n <div class=\"config-meta\">\n @if (config.IsDefault) {\n <span class=\"default-badge\">\n <i class=\"fa-solid fa-star\"></i>\n Default\n </span>\n }\n <span class=\"status-badge\" [ngClass]=\"getStatusClass(config.Status)\">\n <i [class]=\"getStatusIcon(config.Status)\"></i>\n {{ config.Status }}\n </span>\n </div>\n </div>\n </div>\n\n <i class=\"fa-solid fa-chevron-down expand-icon\"\n [class.rotated]=\"config.isExpanded\"></i>\n </div>\n\n <!-- Card Body -->\n <div class=\"card-body\">\n @if (config.Description) {\n <p class=\"config-description\">{{ config.Description }}</p>\n } @else {\n <p class=\"config-description text-muted\">No description provided</p>\n }\n\n <!-- Expanded Content -->\n @if (config.isExpanded) {\n <div class=\"expanded-content\">\n <!-- Stats Grid -->\n <div class=\"config-stats\">\n <div class=\"stat-item\">\n <span class=\"stat-label\">Parameters</span>\n <span class=\"stat-value\">{{ config.params?.length || 0 }}</span>\n </div>\n <div class=\"stat-item\">\n <span class=\"stat-label\">Created</span>\n <span class=\"stat-value\">{{ formatDate(config.__mj_CreatedAt) }}</span>\n </div>\n <div class=\"stat-item\">\n <span class=\"stat-label\">Updated</span>\n <span class=\"stat-value\">{{ formatDate(config.__mj_UpdatedAt) }}</span>\n </div>\n </div>\n\n <!-- Linked Prompts -->\n <div class=\"prompts-section\">\n <h5 class=\"section-title\">\n <i class=\"fa-solid fa-message-lines\"></i>\n Linked Prompts\n </h5>\n <div class=\"prompt-links\">\n @if (config.compressionPrompt) {\n <div class=\"prompt-link\" (click)=\"onOpenPrompt(config.DefaultPromptForContextCompressionID!); $event.stopPropagation()\">\n <div class=\"prompt-link-info\">\n <div class=\"prompt-link-icon\">\n <i class=\"fa-solid fa-compress\"></i>\n </div>\n <div class=\"prompt-link-details\">\n <span class=\"prompt-link-label\">Context Compression</span>\n <span class=\"prompt-link-name\">{{ config.compressionPrompt.Name }}</span>\n </div>\n </div>\n <i class=\"fa-solid fa-arrow-right prompt-link-arrow\"></i>\n </div>\n } @else {\n <div class=\"no-prompt\">No compression prompt configured</div>\n }\n\n @if (config.summarizationPrompt) {\n <div class=\"prompt-link\" (click)=\"onOpenPrompt(config.DefaultPromptForContextSummarizationID!); $event.stopPropagation()\">\n <div class=\"prompt-link-info\">\n <div class=\"prompt-link-icon\">\n <i class=\"fa-solid fa-file-lines\"></i>\n </div>\n <div class=\"prompt-link-details\">\n <span class=\"prompt-link-label\">Context Summarization</span>\n <span class=\"prompt-link-name\">{{ config.summarizationPrompt.Name }}</span>\n </div>\n </div>\n <i class=\"fa-solid fa-arrow-right prompt-link-arrow\"></i>\n </div>\n } @else {\n <div class=\"no-prompt\">No summarization prompt configured</div>\n }\n </div>\n </div>\n\n <!-- Configuration Parameters -->\n @if (config.params && config.params.length > 0) {\n <div class=\"params-section\">\n <h5 class=\"section-title\">\n <i class=\"fa-solid fa-gear\"></i>\n Configuration Parameters\n </h5>\n <div class=\"params-grid\">\n @for (param of config.params; track param.ID) {\n <div class=\"param-item\" (click)=\"onOpenParam(param); $event.stopPropagation()\">\n <div class=\"param-info\">\n <div class=\"param-type-icon\">\n <i [class]=\"getParamTypeIcon(param.Type)\"></i>\n </div>\n <div class=\"param-details\">\n <span class=\"param-name\">{{ param.Name }}</span>\n <span class=\"param-type\">{{ param.Type }}</span>\n </div>\n </div>\n <span class=\"param-value\">{{ formatParamValue(param) }}</span>\n </div>\n }\n </div>\n </div>\n } @else {\n <div class=\"params-section\">\n <h5 class=\"section-title\">\n <i class=\"fa-solid fa-gear\"></i>\n Configuration Parameters\n </h5>\n <div class=\"no-params\">No parameters configured</div>\n </div>\n }\n </div>\n }\n </div>\n\n <!-- Card Actions -->\n <div class=\"card-actions\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"action-btn\"\n (click)=\"showConfigDetails(config, $event)\"\n title=\"View Details\">\n <i class=\"fa-solid fa-eye\"></i>\n Details\n </button>\n\n <button\n type=\"button\"\n class=\"action-btn action-btn-primary\"\n (click)=\"onOpenConfiguration(config)\">\n <i class=\"fa-solid fa-edit\"></i>\n Configure\n </button>\n </div>\n </div>\n }\n </div>\n }\n\n <!-- List View -->\n @if (viewMode === 'list') {\n <div class=\"configurations-list\">\n <table class=\"configurations-table\">\n <thead>\n <tr>\n <th (click)=\"sortBy('Name')\"\n [class.sorted]=\"sortColumn === 'Name'\"\n [class.desc]=\"sortColumn === 'Name' && sortDirection === 'desc'\">\n <span class=\"sort-header\">\n Configuration\n <i class=\"fa-solid fa-chevron-up sort-icon\"></i>\n </span>\n </th>\n <th (click)=\"sortBy('Status')\"\n [class.sorted]=\"sortColumn === 'Status'\"\n [class.desc]=\"sortColumn === 'Status' && sortDirection === 'desc'\">\n <span class=\"sort-header\">\n Status\n <i class=\"fa-solid fa-chevron-up sort-icon\"></i>\n </span>\n </th>\n <th (click)=\"sortBy('Parameters')\"\n [class.sorted]=\"sortColumn === 'Parameters'\"\n [class.desc]=\"sortColumn === 'Parameters' && sortDirection === 'desc'\">\n <span class=\"sort-header\">\n Parameters\n <i class=\"fa-solid fa-chevron-up sort-icon\"></i>\n </span>\n </th>\n <th (click)=\"sortBy('Updated')\"\n [class.sorted]=\"sortColumn === 'Updated'\"\n [class.desc]=\"sortColumn === 'Updated' && sortDirection === 'desc'\">\n <span class=\"sort-header\">\n Updated\n <i class=\"fa-solid fa-chevron-up sort-icon\"></i>\n </span>\n </th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n @for (config of filteredConfigurations; track config.ID) {\n <tr>\n <td>\n <div class=\"config-name-cell\">\n <div class=\"config-icon-small\">\n <i class=\"fa-solid fa-sliders\"></i>\n </div>\n <div>\n <div class=\"config-name-text\">\n {{ config.Name }}\n @if (config.IsDefault) {\n <span class=\"default-badge\" style=\"margin-left: 8px;\">\n <i class=\"fa-solid fa-star\"></i>\n Default\n </span>\n }\n </div>\n @if (config.Description) {\n <div class=\"config-description-small\">{{ config.Description }}</div>\n }\n </div>\n </div>\n </td>\n <td>\n <span class=\"status-badge\" [ngClass]=\"getStatusClass(config.Status)\">\n <i [class]=\"getStatusIcon(config.Status)\"></i>\n {{ config.Status }}\n </span>\n </td>\n <td>{{ config.params?.length || 0 }}</td>\n <td>{{ formatDate(config.__mj_UpdatedAt) }}</td>\n <td>\n <div class=\"table-actions\">\n <button\n type=\"button\"\n class=\"action-btn-small\"\n (click)=\"showConfigDetails(config)\"\n title=\"View Details\">\n <i class=\"fa-solid fa-eye\"></i>\n </button>\n <button\n type=\"button\"\n class=\"action-btn-small primary\"\n (click)=\"onOpenConfiguration(config)\">\n <i class=\"fa-solid fa-edit\"></i>\n </button>\n </div>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n }\n }\n </div>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n\n <!-- Detail Panel Overlay -->\n @if (detailPanelVisible) {\n <div class=\"detail-panel-overlay\" (click)=\"closeDetailPanel()\"></div>\n }\n\n <!-- Detail Panel -->\n <div class=\"detail-panel\" [class.visible]=\"detailPanelVisible\">\n @if (selectedConfig) {\n <!-- Panel Header -->\n <div class=\"detail-panel-header\">\n <div class=\"detail-panel-title\">\n <div class=\"detail-icon\">\n <i class=\"fa-solid fa-sliders\"></i>\n </div>\n <div class=\"detail-title-info\">\n <h3>{{ selectedConfig.Name }}</h3>\n <span class=\"detail-subtitle\">AI Configuration</span>\n </div>\n </div>\n <button class=\"detail-panel-close\" (click)=\"closeDetailPanel()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n\n <!-- Panel Content -->\n <div class=\"detail-panel-content\">\n <!-- Status Section -->\n <div class=\"detail-section\">\n <div class=\"detail-badges\">\n <span class=\"status-badge\" [ngClass]=\"getStatusClass(selectedConfig.Status)\">\n <i [class]=\"getStatusIcon(selectedConfig.Status)\"></i>\n {{ selectedConfig.Status }}\n </span>\n @if (selectedConfig.IsDefault) {\n <span class=\"feature-badge default\">\n <i class=\"fa-solid fa-star\"></i>\n Default Configuration\n </span>\n }\n </div>\n </div>\n\n <!-- Description -->\n @if (selectedConfig.Description) {\n <div class=\"detail-section\">\n <h4 class=\"detail-section-title\">\n <i class=\"fa-solid fa-align-left\"></i>\n Description\n </h4>\n <p class=\"detail-description\">{{ selectedConfig.Description }}</p>\n </div>\n }\n\n <!-- Configuration Stats -->\n <div class=\"detail-section\">\n <h4 class=\"detail-section-title\">\n <i class=\"fa-solid fa-chart-bar\"></i>\n Overview\n </h4>\n <div class=\"detail-grid\">\n <div class=\"detail-item\">\n <span class=\"detail-label\">Parameters</span>\n <span class=\"detail-value\">{{ selectedConfig.params?.length || 0 }}</span>\n </div>\n <div class=\"detail-item\">\n <span class=\"detail-label\">Status</span>\n <span class=\"detail-value\">{{ selectedConfig.Status }}</span>\n </div>\n </div>\n </div>\n\n <!-- Linked Prompts -->\n <div class=\"detail-section\">\n <h4 class=\"detail-section-title\">\n <i class=\"fa-solid fa-message-lines\"></i>\n Linked Prompts\n </h4>\n <div class=\"detail-grid single-column\">\n <div class=\"detail-item\">\n <span class=\"detail-label\">Context Compression</span>\n <span class=\"detail-value\">\n @if (selectedConfig.compressionPrompt) {\n {{ selectedConfig.compressionPrompt.Name }}\n } @else {\n <span class=\"muted\">Not configured</span>\n }\n </span>\n </div>\n <div class=\"detail-item\">\n <span class=\"detail-label\">Context Summarization</span>\n <span class=\"detail-value\">\n @if (selectedConfig.summarizationPrompt) {\n {{ selectedConfig.summarizationPrompt.Name }}\n } @else {\n <span class=\"muted\">Not configured</span>\n }\n </span>\n </div>\n </div>\n </div>\n\n <!-- Parameters Preview -->\n @if (selectedConfig.params && selectedConfig.params.length > 0) {\n <div class=\"detail-section\">\n <h4 class=\"detail-section-title\">\n <i class=\"fa-solid fa-gear\"></i>\n Parameters ({{ selectedConfig.params.length }})\n </h4>\n <div class=\"detail-params-list\">\n @for (param of selectedConfig.params.slice(0, 5); track param.ID) {\n <div class=\"detail-param-item\">\n <div class=\"param-info\">\n <i [class]=\"getParamTypeIcon(param.Type)\"></i>\n <span class=\"param-name\">{{ param.Name }}</span>\n </div>\n <span class=\"param-value\">{{ formatParamValue(param) }}</span>\n </div>\n }\n @if (selectedConfig.params.length > 5) {\n <div class=\"params-more\">\n +{{ selectedConfig.params.length - 5 }} more parameters\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Timestamps -->\n <div class=\"detail-section\">\n <h4 class=\"detail-section-title\">\n <i class=\"fa-solid fa-clock\"></i>\n Timestamps\n </h4>\n <div class=\"detail-grid\">\n <div class=\"detail-item\">\n <span class=\"detail-label\">Created</span>\n <span class=\"detail-value\">{{ formatDate(selectedConfig.__mj_CreatedAt) }}</span>\n </div>\n <div class=\"detail-item\">\n <span class=\"detail-label\">Updated</span>\n <span class=\"detail-value\">{{ formatDate(selectedConfig.__mj_UpdatedAt) }}</span>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Panel Actions -->\n <div class=\"detail-panel-actions\">\n <button\n type=\"button\"\n class=\"detail-action-btn primary\"\n (click)=\"openConfigFromPanel()\">\n <i class=\"fa-solid fa-edit\"></i>\n Open Full Record\n </button>\n </div>\n }\n </div>\n</div>\n", styles: ["/* AI Configuration Dashboard - World-Class Design */\n\n/* ============================================================================\n CONTAINER & LAYOUT\n ============================================================================ */\n.system-configuration-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;\n}\n\n/* ============================================================================\n HEADER\n ============================================================================ */\n.dashboard-header {\n background: white;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e6ed;\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);\n position: relative;\n z-index: 10;\n}\n\n.header-info {\n display: flex;\n align-items: center;\n gap: 20px;\n}\n\n.dashboard-title {\n margin: 0;\n font-size: 20px;\n font-weight: 700;\n color: #1e293b;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.dashboard-title i {\n color: #6366f1;\n font-size: 22px;\n}\n\n.filter-toggle-btn {\n background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);\n border: 1px solid #dee2e6;\n padding: 10px 18px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n color: #495057;\n cursor: pointer;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.filter-toggle-btn:hover {\n background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);\n border-color: #ced4da;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.filter-toggle-btn i {\n color: #6366f1;\n font-size: 14px;\n}\n\n.config-count {\n color: #6c757d;\n font-size: 14px;\n font-weight: 500;\n padding: 6px 12px;\n background: #f8f9fa;\n border-radius: 20px;\n border: 1px solid #e9ecef;\n}\n\n.header-controls {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n/* View Toggle */\n.view-toggle {\n display: flex;\n background: #f8f9fa;\n border-radius: 8px;\n padding: 3px;\n border: 1px solid #dee2e6;\n}\n\n.view-btn {\n background: transparent;\n border: none;\n padding: 8px 14px;\n border-radius: 6px;\n color: #6c757d;\n cursor: pointer;\n transition: all 0.2s ease;\n font-size: 15px;\n}\n\n.view-btn:hover {\n color: #495057;\n}\n\n.view-btn.active {\n background: white;\n color: #6366f1;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);\n}\n\n.control-btn {\n background: white;\n border: 1px solid #dee2e6;\n padding: 10px 18px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n color: #495057;\n cursor: pointer;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.control-btn:hover {\n background: #f8f9fa;\n border-color: #ced4da;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n}\n\n.control-btn i {\n font-size: 14px;\n}\n\n.control-btn.primary {\n background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n border-color: #4f46e5;\n color: white;\n}\n\n.control-btn.primary:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);\n}\n\n/* ============================================================================\n MAIN CONTENT AREA\n ============================================================================ */\n.main-content {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.main-splitter {\n flex: 1;\n min-height: 0;\n}\n\n.configurations-content {\n height: 100%;\n overflow-y: auto;\n padding: 24px;\n background: transparent;\n}\n\n/* ============================================================================\n LOADING STATE\n ============================================================================ */\n.loading-container {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n min-height: 400px;\n}\n\n/* ============================================================================\n ERROR STATE\n ============================================================================ */\n.error-container {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 60px 20px;\n}\n\n.error-message {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 16px 24px;\n background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);\n border: 1px solid #fecaca;\n border-radius: 12px;\n color: #dc2626;\n font-size: 15px;\n font-weight: 500;\n}\n\n.error-message i {\n font-size: 20px;\n}\n\n/* ============================================================================\n EMPTY STATE\n ============================================================================ */\n.empty-state {\n text-align: center;\n padding: 80px 20px;\n color: #6c757d;\n}\n\n.empty-state i {\n font-size: 72px;\n color: #d1d5db;\n margin-bottom: 24px;\n display: block;\n opacity: 0.8;\n}\n\n.empty-state h3 {\n color: #374151;\n font-size: 22px;\n font-weight: 600;\n margin: 0 0 12px 0;\n}\n\n.empty-state p {\n font-size: 15px;\n line-height: 1.6;\n max-width: 400px;\n margin: 0 auto 28px;\n color: #6b7280;\n}\n\n/* ============================================================================\n CONFIGURATION GRID\n ============================================================================ */\n.configurations-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));\n gap: 24px;\n}\n\n/* ============================================================================\n CONFIGURATION CARD\n ============================================================================ */\n.config-card {\n background: white;\n border-radius: 16px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);\n border: 1px solid #e5e7eb;\n transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n position: relative;\n}\n\n.config-card::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 4px;\n background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.config-card:hover {\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);\n transform: translateY(-4px);\n border-color: #c7d2fe;\n}\n\n.config-card:hover::before {\n opacity: 1;\n}\n\n.config-card.expanded {\n box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);\n}\n\n.config-card.expanded::before {\n opacity: 1;\n}\n\n/* Card Header */\n.card-header {\n padding: 24px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n cursor: pointer;\n user-select: none;\n border-bottom: 1px solid #f3f4f6;\n transition: background 0.2s ease;\n}\n\n.card-header:hover {\n background: #fafbfc;\n}\n\n.config-info {\n display: flex;\n gap: 18px;\n flex: 1;\n}\n\n.config-icon {\n width: 56px;\n height: 56px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n.config-icon i {\n color: white;\n font-size: 24px;\n}\n\n.config-details {\n flex: 1;\n min-width: 0;\n}\n\n.config-name {\n margin: 0 0 8px 0;\n font-size: 18px;\n font-weight: 700;\n color: #1f2937;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n letter-spacing: -0.02em;\n}\n\n.config-meta {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n align-items: center;\n}\n\n/* Status Badge */\n.status-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 20px;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n transition: all 0.2s ease;\n}\n\n.status-badge i {\n font-size: 11px;\n}\n\n.status-badge.status-active {\n background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);\n color: #166534;\n border: 1px solid #86efac;\n}\n\n.status-badge.status-preview {\n background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);\n color: #92400e;\n border: 1px solid #fcd34d;\n}\n\n.status-badge.status-inactive {\n background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);\n color: #4b5563;\n border: 1px solid #d1d5db;\n}\n\n.status-badge.status-deprecated {\n background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);\n color: #991b1b;\n border: 1px solid #fca5a5;\n}\n\n/* Default Badge */\n.default-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 20px;\n font-size: 12px;\n font-weight: 600;\n background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);\n color: #5b21b6;\n border: 1px solid #c4b5fd;\n}\n\n.default-badge i {\n font-size: 11px;\n color: #7c3aed;\n}\n\n/* Expand Icon */\n.expand-icon {\n font-size: 16px;\n color: #9ca3af;\n transition: all 0.3s ease;\n padding: 8px;\n border-radius: 8px;\n}\n\n.expand-icon:hover {\n color: #6366f1;\n background: #f3f4f6;\n}\n\n.expand-icon.rotated {\n transform: rotate(180deg);\n color: #6366f1;\n}\n\n/* Card Body */\n.card-body {\n padding: 0 24px 20px 24px;\n}\n\n.config-description {\n margin: 0;\n font-size: 14px;\n line-height: 1.7;\n color: #6b7280;\n}\n\n.config-description.text-muted {\n font-style: italic;\n color: #9ca3af;\n}\n\n/* ============================================================================\n EXPANDED CONTENT\n ============================================================================ */\n.expanded-content {\n margin-top: 20px;\n padding-top: 20px;\n border-top: 1px solid #f3f4f6;\n animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n@keyframes slideDown {\n from {\n opacity: 0;\n transform: translateY(-12px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n/* Stats Grid */\n.config-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n gap: 16px;\n margin-bottom: 20px;\n}\n\n.stat-item {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 14px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-radius: 12px;\n border: 1px solid #e2e8f0;\n}\n\n.stat-label {\n font-size: 11px;\n font-weight: 700;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.75px;\n}\n\n.stat-value {\n font-size: 14px;\n color: #334155;\n font-weight: 600;\n}\n\n/* Prompts Section */\n.prompts-section {\n margin-top: 20px;\n}\n\n.section-title {\n font-size: 13px;\n font-weight: 700;\n color: #475569;\n text-transform: uppercase;\n letter-spacing: 0.75px;\n margin: 0 0 12px 0;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n.prompt-links {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.prompt-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: white;\n border: 1px solid #e5e7eb;\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.2s ease;\n}\n\n.prompt-link:hover {\n background: #f8fafc;\n border-color: #c7d2fe;\n transform: translateX(4px);\n}\n\n.prompt-link-info {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n}\n\n.prompt-link-icon {\n width: 36px;\n height: 36px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);\n color: #2563eb;\n flex-shrink: 0;\n}\n\n.prompt-link-icon i {\n font-size: 14px;\n}\n\n.prompt-link-details {\n flex: 1;\n min-width: 0;\n}\n\n.prompt-link-label {\n font-size: 11px;\n font-weight: 600;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 2px;\n}\n\n.prompt-link-name {\n font-size: 14px;\n font-weight: 600;\n color: #1e293b;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.prompt-link-arrow {\n color: #94a3b8;\n font-size: 14px;\n transition: all 0.2s ease;\n}\n\n.prompt-link:hover .prompt-link-arrow {\n color: #6366f1;\n transform: translateX(4px);\n}\n\n.no-prompt {\n font-size: 13px;\n color: #94a3b8;\n font-style: italic;\n padding: 12px 16px;\n background: #f8fafc;\n border-radius: 10px;\n border: 1px dashed #e2e8f0;\n}\n\n/* Parameters Section */\n.params-section {\n margin-top: 20px;\n}\n\n.params-grid {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.param-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: white;\n border: 1px solid #e5e7eb;\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.2s ease;\n}\n\n.param-item:hover {\n background: #f8fafc;\n border-color: #c7d2fe;\n}\n\n.param-info {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n}\n\n.param-type-icon {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);\n color: #7c3aed;\n flex-shrink: 0;\n}\n\n.param-type-icon i {\n font-size: 13px;\n}\n\n.param-details {\n flex: 1;\n min-width: 0;\n}\n\n.param-name {\n font-size: 14px;\n font-weight: 600;\n color: #1e293b;\n}\n\n.param-type {\n font-size: 12px;\n color: #64748b;\n margin-top: 2px;\n}\n\n.param-value {\n font-size: 13px;\n color: #475569;\n font-family: 'SF Mono', Monaco, 'Consolas', monospace;\n background: #f1f5f9;\n padding: 4px 10px;\n border-radius: 6px;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.no-params {\n font-size: 13px;\n color: #94a3b8;\n font-style: italic;\n padding: 12px 16px;\n background: #f8fafc;\n border-radius: 10px;\n border: 1px dashed #e2e8f0;\n text-align: center;\n}\n\n/* ============================================================================\n CARD ACTIONS\n ============================================================================ */\n.card-actions {\n padding: 16px 24px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-top: 1px solid #e5e7eb;\n display: flex;\n gap: 10px;\n justify-content: flex-end;\n}\n\n.action-btn {\n background: white;\n border: 1px solid #e5e7eb;\n padding: 8px 16px;\n border-radius: 8px;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n cursor: pointer;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.action-btn:hover {\n background: #f8fafc;\n border-color: #cbd5e1;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n}\n\n.action-btn i {\n font-size: 12px;\n}\n\n.action-btn-primary {\n background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n border-color: #4f46e5;\n color: white;\n}\n\n.action-btn-primary:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);\n}\n\n.action-btn-warning {\n background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);\n border-color: #f59e0b;\n color: #78350f;\n}\n\n.action-btn-warning:hover {\n background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);\n box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);\n}\n\n.action-btn-danger {\n color: #dc2626;\n border-color: #fecaca;\n}\n\n.action-btn-danger:hover {\n background: #fef2f2;\n border-color: #dc2626;\n}\n\n/* ============================================================================\n LIST VIEW\n ============================================================================ */\n.configurations-list {\n background: white;\n border-radius: 16px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);\n border: 1px solid #e5e7eb;\n overflow: hidden;\n}\n\n.configurations-table {\n width: 100%;\n border-collapse: collapse;\n}\n\n.configurations-table thead {\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-bottom: 2px solid #e5e7eb;\n}\n\n.configurations-table th {\n padding: 14px 20px;\n text-align: left;\n font-size: 12px;\n font-weight: 700;\n color: #475569;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n cursor: pointer;\n user-select: none;\n transition: all 0.2s ease;\n}\n\n.configurations-table th:hover {\n background: #e2e8f0;\n color: #6366f1;\n}\n\n.configurations-table th:last-child {\n cursor: default;\n}\n\n.configurations-table th:last-child:hover {\n background: transparent;\n color: #475569;\n}\n\n.configurations-table th.sorted {\n color: #6366f1;\n background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);\n}\n\n.configurations-table th.sorted.desc .sort-icon {\n transform: rotate(180deg);\n}\n\n.configurations-table .sort-header {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.configurations-table .sort-icon {\n font-size: 10px;\n opacity: 0;\n transition: all 0.2s ease;\n}\n\n.configurations-table th:hover .sort-icon {\n opacity: 0.5;\n}\n\n.configurations-table th.sorted .sort-icon {\n opacity: 1;\n color: #6366f1;\n}\n\n.configurations-table tbody tr {\n border-bottom: 1px solid #f1f5f9;\n transition: background 0.2s ease;\n}\n\n.configurations-table tbody tr:hover {\n background: #fafbfc;\n}\n\n.configurations-table tbody tr:last-child {\n border-bottom: none;\n}\n\n.configurations-table td {\n padding: 18px 20px;\n font-size: 14px;\n color: #475569;\n}\n\n.config-name-cell {\n display: flex;\n align-items: center;\n gap: 14px;\n}\n\n.config-icon-small {\n width: 42px;\n height: 42px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n flex-shrink: 0;\n}\n\n.config-icon-small i {\n color: white;\n font-size: 16px;\n}\n\n.config-name-text {\n font-weight: 600;\n color: #1e293b;\n}\n\n.config-description-small {\n font-size: 13px;\n color: #64748b;\n margin-top: 4px;\n max-width: 300px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.table-actions {\n display: flex;\n gap: 8px;\n}\n\n.action-btn-small {\n background: white;\n border: 1px solid #e5e7eb;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 500;\n color: #475569;\n cursor: pointer;\n transition: all 0.2s ease;\n display: flex;\n align-items: center;\n gap: 5px;\n}\n\n.action-btn-small:hover {\n background: #f8fafc;\n border-color: #cbd5e1;\n}\n\n.action-btn-small.primary {\n background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n border-color: #4f46e5;\n color: white;\n}\n\n.action-btn-small.primary:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n}\n\n/* ============================================================================\n RESPONSIVE DESIGN\n ============================================================================ */\n@media (max-width: 1024px) {\n .configurations-grid {\n grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));\n }\n}\n\n@media (max-width: 768px) {\n .dashboard-header {\n flex-direction: column;\n gap: 16px;\n align-items: stretch;\n }\n\n .header-info {\n justify-content: space-between;\n flex-wrap: wrap;\n }\n\n .header-controls {\n justify-content: space-between;\n }\n\n .configurations-grid {\n grid-template-columns: 1fr;\n }\n\n .config-stats {\n grid-template-columns: 1fr;\n }\n\n .card-header {\n padding: 20px;\n }\n\n .config-icon {\n width: 48px;\n height: 48px;\n }\n\n .config-icon i {\n font-size: 20px;\n }\n\n .card-actions {\n flex-wrap: wrap;\n }\n}\n\n/* ============================================================================\n SPLITTER CUSTOMIZATION\n ============================================================================ */\nkendo-splitter {\n background: transparent;\n}\n\n:host ::ng-deep .k-splitter {\n border: none;\n background: transparent;\n}\n\n:host ::ng-deep .k-splitbar {\n background: #e5e7eb;\n width: 6px;\n}\n\n:host ::ng-deep .k-splitbar:hover {\n background: #c7d2fe;\n}\n\n:host ::ng-deep .k-pane {\n overflow: hidden;\n}\n\n/* ============================================================================\n DETAIL PANEL - SLIDE-IN OVERLAY\n ============================================================================ */\n\n.detail-panel-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(15, 23, 42, 0.4);\n backdrop-filter: blur(4px);\n z-index: 1000;\n animation: fadeIn 0.25s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n.detail-panel {\n position: fixed;\n top: 0;\n right: -480px;\n width: 480px;\n height: 100vh;\n background: white;\n box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n}\n\n.detail-panel.visible {\n right: 0;\n}\n\n/* Detail Panel Header */\n.detail-panel-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-bottom: 1px solid #e2e8f0;\n flex-shrink: 0;\n}\n\n.detail-panel-title {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.detail-icon {\n width: 56px;\n height: 56px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n.detail-icon i {\n color: white;\n font-size: 24px;\n}\n\n.detail-title-info h3 {\n margin: 0 0 4px 0;\n font-size: 20px;\n font-weight: 700;\n color: #1e293b;\n}\n\n.detail-subtitle {\n font-size: 13px;\n color: #64748b;\n font-weight: 500;\n}\n\n.detail-panel-close {\n background: white;\n border: 1px solid #e2e8f0;\n width: 40px;\n height: 40px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s ease;\n color: #64748b;\n}\n\n.detail-panel-close:hover {\n background: #f8fafc;\n border-color: #cbd5e1;\n color: #1e293b;\n}\n\n/* Detail Panel Content */\n.detail-panel-content {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n}\n\n.detail-section {\n margin-bottom: 28px;\n}\n\n.detail-section:last-child {\n margin-bottom: 0;\n}\n\n.detail-badges {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.feature-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 20px;\n font-size: 12px;\n font-weight: 600;\n background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);\n color: #4f46e5;\n}\n\n.feature-badge.default {\n background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);\n color: #5b21b6;\n}\n\n.feature-badge i {\n font-size: 11px;\n}\n\n.detail-section-title {\n margin: 0 0 16px 0;\n font-size: 12px;\n font-weight: 700;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.detail-section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n.detail-description {\n margin: 0;\n font-size: 14px;\n line-height: 1.7;\n color: #475569;\n}\n\n.detail-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 16px;\n}\n\n.detail-grid.single-column {\n grid-template-columns: 1fr;\n}\n\n.detail-item {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 14px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-radius: 12px;\n border: 1px solid #e2e8f0;\n}\n\n.detail-label {\n font-size: 11px;\n font-weight: 700;\n color: #64748b;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n}\n\n.detail-value {\n font-size: 14px;\n color: #1e293b;\n font-weight: 600;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.detail-value .muted {\n color: #94a3b8;\n font-style: italic;\n font-weight: 500;\n}\n\n.detail-value i {\n font-size: 13px;\n}\n\n/* Detail Params List */\n.detail-params-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.detail-param-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 14px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-radius: 10px;\n border: 1px solid #e2e8f0;\n}\n\n.detail-param-item .param-info {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.detail-param-item .param-info i {\n color: #7c3aed;\n font-size: 14px;\n}\n\n.detail-param-item .param-name {\n font-size: 13px;\n font-weight: 600;\n color: #1e293b;\n}\n\n.detail-param-item .param-value {\n font-size: 12px;\n color: #475569;\n font-family: 'SF Mono', Monaco, 'Consolas', monospace;\n background: white;\n padding: 4px 10px;\n border-radius: 6px;\n border: 1px solid #e2e8f0;\n max-width: 150px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.params-more {\n font-size: 12px;\n color: #6366f1;\n font-weight: 600;\n text-align: center;\n padding: 10px;\n background: #eef2ff;\n border-radius: 8px;\n}\n\n/* Detail Panel Actions */\n.detail-panel-actions {\n padding: 20px 24px;\n background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n border-top: 1px solid #e2e8f0;\n display: flex;\n gap: 12px;\n flex-shrink: 0;\n}\n\n.detail-action-btn {\n flex: 1;\n padding: 14px 20px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n}\n\n.detail-action-btn.secondary {\n background: white;\n border: 2px solid #e2e8f0;\n color: #475569;\n}\n\n.detail-action-btn.secondary:hover {\n border-color: #6366f1;\n color: #6366f1;\n background: #fafbff;\n}\n\n.detail-action-btn.primary {\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n border: 2px solid transparent;\n color: white;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n.detail-action-btn.primary:hover {\n background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);\n transform: translateY(-1px);\n box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);\n}\n\n/* Detail Panel Responsive */\n@media (max-width: 520px) {\n .detail-panel {\n width: 100%;\n right: -100%;\n }\n\n .detail-panel.visible {\n right: 0;\n }\n\n .detail-grid {\n grid-template-columns: 1fr;\n }\n}\n"] }]
970
+ }], () => [{ type: i1.NavigationService }, { type: i0.ChangeDetectorRef }], null); })();
971
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SystemConfigurationComponent, { className: "SystemConfigurationComponent", filePath: "src/AI/components/system/system-configuration.component.ts", lineNumber: 39 }); })();
313
972
  //# sourceMappingURL=system-configuration.component.js.map