@memberjunction/ng-base-forms 6.2.0-edge.4 → 6.2.0-edge.6

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 (102) hide show
  1. package/README.md +195 -2
  2. package/dist/lib/base-form-component.d.ts +23 -1
  3. package/dist/lib/base-form-component.d.ts.map +1 -1
  4. package/dist/lib/base-form-component.js +54 -10
  5. package/dist/lib/base-form-component.js.map +1 -1
  6. package/dist/lib/chrome/form-chrome-coordinator.service.d.ts +9 -0
  7. package/dist/lib/chrome/form-chrome-coordinator.service.d.ts.map +1 -1
  8. package/dist/lib/chrome/form-chrome-coordinator.service.js +11 -0
  9. package/dist/lib/chrome/form-chrome-coordinator.service.js.map +1 -1
  10. package/dist/lib/chrome/form-composition-snapshot.d.ts +52 -0
  11. package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -1
  12. package/dist/lib/chrome/form-composition-snapshot.js +4 -0
  13. package/dist/lib/chrome/form-composition-snapshot.js.map +1 -1
  14. package/dist/lib/container/record-form-container.component.d.ts +107 -1
  15. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  16. package/dist/lib/container/record-form-container.component.js +1500 -316
  17. package/dist/lib/container/record-form-container.component.js.map +1 -1
  18. package/dist/lib/field/form-field.component.d.ts +167 -14
  19. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  20. package/dist/lib/field/form-field.component.js +1374 -470
  21. package/dist/lib/field/form-field.component.js.map +1 -1
  22. package/dist/lib/form-record-refresh.coordinator.d.ts +124 -0
  23. package/dist/lib/form-record-refresh.coordinator.d.ts.map +1 -1
  24. package/dist/lib/form-record-refresh.coordinator.js +93 -13
  25. package/dist/lib/form-record-refresh.coordinator.js.map +1 -1
  26. package/dist/lib/host/entity-form-host.component.d.ts +104 -2
  27. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  28. package/dist/lib/host/entity-form-host.component.js +272 -34
  29. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  30. package/dist/lib/isa-related-panel/isa-related-card.component.js +7 -4
  31. package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
  32. package/dist/lib/isa-related-panel/isa-related-panel.component.js +1 -2
  33. package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
  34. package/dist/lib/links/record-link-utils.d.ts +83 -0
  35. package/dist/lib/links/record-link-utils.d.ts.map +1 -0
  36. package/dist/lib/links/record-link-utils.js +232 -0
  37. package/dist/lib/links/record-link-utils.js.map +1 -0
  38. package/dist/lib/links/record-link.component.d.ts +50 -0
  39. package/dist/lib/links/record-link.component.d.ts.map +1 -0
  40. package/dist/lib/links/record-link.component.js +319 -0
  41. package/dist/lib/links/record-link.component.js.map +1 -0
  42. package/dist/lib/links/record-link.directive.d.ts +94 -0
  43. package/dist/lib/links/record-link.directive.d.ts.map +1 -0
  44. package/dist/lib/links/record-link.directive.js +277 -0
  45. package/dist/lib/links/record-link.directive.js.map +1 -0
  46. package/dist/lib/links/record-links-drawer.component.d.ts +21 -0
  47. package/dist/lib/links/record-links-drawer.component.d.ts.map +1 -0
  48. package/dist/lib/links/record-links-drawer.component.js +61 -0
  49. package/dist/lib/links/record-links-drawer.component.js.map +1 -0
  50. package/dist/lib/links/record-links.component.d.ts +249 -0
  51. package/dist/lib/links/record-links.component.d.ts.map +1 -0
  52. package/dist/lib/links/record-links.component.js +1523 -0
  53. package/dist/lib/links/record-links.component.js.map +1 -0
  54. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  55. package/dist/lib/panel/collapsible-panel.component.js +5 -0
  56. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  57. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -1
  58. package/dist/lib/panel-slot/form-field-panel-slot.component.js +3 -1
  59. package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -1
  60. package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
  61. package/dist/lib/panel-slot/form-panel-slot.component.js +6 -0
  62. package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
  63. package/dist/lib/preview-popover/record-preview-popover.component.d.ts +187 -0
  64. package/dist/lib/preview-popover/record-preview-popover.component.d.ts.map +1 -0
  65. package/dist/lib/preview-popover/record-preview-popover.component.js +1060 -0
  66. package/dist/lib/preview-popover/record-preview-popover.component.js.map +1 -0
  67. package/dist/lib/preview-popover/record-preview-popover.service.d.ts +105 -0
  68. package/dist/lib/preview-popover/record-preview-popover.service.d.ts.map +1 -0
  69. package/dist/lib/preview-popover/record-preview-popover.service.js +278 -0
  70. package/dist/lib/preview-popover/record-preview-popover.service.js.map +1 -0
  71. package/dist/lib/resolver/form-resolver.service.d.ts +44 -1
  72. package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
  73. package/dist/lib/resolver/form-resolver.service.js +51 -3
  74. package/dist/lib/resolver/form-resolver.service.js.map +1 -1
  75. package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts +21 -0
  76. package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts.map +1 -0
  77. package/dist/lib/toolbar/actions/record-links-toolbar-action.js +90 -0
  78. package/dist/lib/toolbar/actions/record-links-toolbar-action.js.map +1 -0
  79. package/dist/lib/toolbar/base-form-toolbar-action.d.ts +189 -0
  80. package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -0
  81. package/dist/lib/toolbar/base-form-toolbar-action.js +274 -0
  82. package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -0
  83. package/dist/lib/toolbar/form-toolbar.component.d.ts +21 -1
  84. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  85. package/dist/lib/toolbar/form-toolbar.component.js +295 -195
  86. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  87. package/dist/lib/types/form-toolbar-item.d.ts +1 -1
  88. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  89. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  90. package/dist/lib/types/toolbar-config.d.ts +4 -0
  91. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  92. package/dist/lib/types/toolbar-config.js +6 -0
  93. package/dist/lib/types/toolbar-config.js.map +1 -1
  94. package/dist/module.d.ts +19 -14
  95. package/dist/module.d.ts.map +1 -1
  96. package/dist/module.js +39 -6
  97. package/dist/module.js.map +1 -1
  98. package/dist/public-api.d.ts +9 -0
  99. package/dist/public-api.d.ts.map +1 -1
  100. package/dist/public-api.js +9 -0
  101. package/dist/public-api.js.map +1 -1
  102. package/package.json +20 -20
@@ -1,6 +1,6 @@
1
1
  import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject, NgZone, ContentChildren, ViewChild, ViewEncapsulation, ElementRef } from '@angular/core';
2
- import { CompositeKey, LogError, RunView } from '@memberjunction/core';
3
- import { EscapeSQLString, UUIDsEqual } from '@memberjunction/global';
2
+ import { BaseEntity, CompositeKey, KeyValuePair, LogError, RunView } from '@memberjunction/core';
3
+ import { EscapeSQLString, MJGlobal, UUIDsEqual } from '@memberjunction/global';
4
4
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
5
5
  import { UserInfoEngine } from '@memberjunction/core-entities';
6
6
  import { Subject } from 'rxjs';
@@ -15,6 +15,9 @@ import { FormSlotCoordinator } from '../panel-slot/form-slot-coordinator.service
15
15
  import { BuildFormCompositionSnapshot } from '../chrome/form-composition-snapshot';
16
16
  import { FormCompositionRegistry } from '../chrome/form-composition-registry';
17
17
  import { FormPanelAdminService } from '../panel-manager/form-panel-admin.service';
18
+ import { TOOLBAR_PINS_SETTING_KEY, DEFAULT_PINNED_TOOLBAR_ACTIONS } from '../toolbar/form-toolbar.component';
19
+ import { ResolveFormToolbarActionsForEntity, } from '../toolbar/base-form-toolbar-action';
20
+ import { RecordLinksToolbarAction } from '../toolbar/actions/record-links-toolbar-action';
18
21
  import { FormChromeCoordinator } from '../chrome/form-chrome-coordinator.service';
19
22
  import { ResolveFormChrome, OrderChromeGroups, OrderMoreSectionKeys, MoveChromeGroupInSectionOrder, OverlayChromeSectionOrder } from '../chrome/resolve-form-chrome';
20
23
  import { LoadFormChromeRules } from '../chrome/load-form-chrome-rules';
@@ -28,7 +31,7 @@ import { FORM_PLACEMENT_PREVIEW } from '../panel-slot/placement-preview';
28
31
  import { ContributionDrawsInSection, ContributionHiddenSectionKeys, IsWildcardPlaceClaim, PlacedInSectionKey, ReplacedSectionKeys, ResolveContributionKey, ResolveFormContributionWinners, ResolveFormContributions, StripJoinFieldBrackets, } from '../panel-slot/form-contribution';
29
32
  import { IsFormSectionHidden } from '../types/entity-form-config';
30
33
  import { ApplyFormCountResults, BuildFormCountPlan, FormCountPlanParams, ResolveEmptySectionBehavior, } from '../section-counts/form-section-counts';
31
- import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
34
+ import { FormRecordRefreshCoordinator, } from '../form-record-refresh.coordinator';
32
35
  import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
33
36
  import { FormSectionIndicatorCoordinator } from '../section-indicators/form-section-indicator-coordinator.service';
34
37
  import { DescribeSectionDirty, DescribeSectionErrors, DescribeSectionWarnings, SumSectionIndicators, TallyValidationErrors, } from '../section-indicators/form-section-indicators';
@@ -44,104 +47,255 @@ import * as i8 from "../panel-manager/panel-manager.component";
44
47
  import * as i9 from "../isa-related-panel/isa-related-panel.component";
45
48
  import * as i10 from "../panel-slot/form-panel-slot.component";
46
49
  import * as i11 from "../panel-slot/form-contributions.component";
50
+ import * as i12 from "../links/record-links.component";
47
51
  const _c0 = [[["", "before-toolbar", ""]], "*"];
48
52
  const _c1 = ["[before-toolbar]", "*"];
49
53
  const _c2 = a0 => [a0];
50
54
  const _c3 = (a0, a1, a2) => ({ mode: "manage", entityId: a0, entityName: a1, recordIds: a2, allowCreate: true });
51
- const _forTrack0 = ($index, $item) => $item.RecordID;
52
- const _forTrack1 = ($index, $item) => $item.Key;
55
+ const _forTrack0 = ($index, $item) => $item.FieldName;
56
+ const _forTrack1 = ($index, $item) => $item.RecordID;
57
+ const _forTrack2 = ($index, $item) => $item.Key;
53
58
  function MjRecordFormContainerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
54
59
  const _r1 = i0.ɵɵgetCurrentView();
55
- i0.ɵɵelementStart(0, "mj-form-toolbar", 19);
56
- i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNavigate($event)); })("EditModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_EditModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnEditModeChange($event)); })("BeforeSave", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeSave_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeSave.emit($event)); })("SaveRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_SaveRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnSaveRequested()); })("BeforeCancel", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeCancel_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeCancel.emit($event)); })("CancelRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CancelRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancelRequested()); })("BeforeDelete", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeDelete_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeDelete.emit($event)); })("DeleteRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_DeleteRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteRequested()); })("BeforeRefresh", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeRefresh_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeRefresh.emit($event)); })("RefreshRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_RefreshRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRefreshRequested()); })("FavoriteToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FavoriteToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFavoriteToggled()); })("BeforeHistoryView", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeHistoryView_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeHistoryView.emit($event)); })("HistoryRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_HistoryRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHistoryRequested()); })("BeforeListManagement", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeListManagement_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeListManagement.emit($event)); })("ListManagementRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ListManagementRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementRequested()); })("ShowChangesRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowChangesRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowChangesRequested()); })("CustomButtonClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CustomButtonClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CustomButtonClick.emit($event)); })("ToolbarItemClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ToolbarItemClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToolbarItemClick.emit($event)); })("FilterChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FilterChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange($event)); })("ExpandAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ExpandAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); })("CollapseAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CollapseAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCollapseAll()); })("ShowEmptyFieldsChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowEmptyFieldsChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowEmptyFieldsChange($event)); })("WidthModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_WidthModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnWidthModeChange($event)); })("ResetSectionOrderRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ResetSectionOrderRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); })("ManageSectionsRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ManageSectionsRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnManageSections()); })("TagsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_TagsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelToggled()); })("AttachmentsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_AttachmentsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelToggled()); })("VariantPicked", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_VariantPicked_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnVariantPicked($event)); });
60
+ i0.ɵɵelementStart(0, "mj-form-toolbar", 22);
61
+ i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNavigate($event)); })("EditModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_EditModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnEditModeChange($event)); })("BeforeSave", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeSave_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeSave.emit($event)); })("SaveRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_SaveRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnSaveRequested()); })("BeforeCancel", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeCancel_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeCancel.emit($event)); })("CancelRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CancelRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancelRequested()); })("BeforeDelete", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeDelete_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeDelete.emit($event)); })("DeleteRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_DeleteRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteRequested()); })("BeforeRefresh", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeRefresh_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeRefresh.emit($event)); })("RefreshRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_RefreshRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRefreshRequested()); })("FavoriteToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FavoriteToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFavoriteToggled()); })("BeforeHistoryView", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeHistoryView_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeHistoryView.emit($event)); })("HistoryRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_HistoryRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHistoryRequested()); })("BeforeListManagement", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeListManagement_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeListManagement.emit($event)); })("ListManagementRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ListManagementRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementRequested()); })("ShowChangesRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowChangesRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowChangesRequested()); })("CustomButtonClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CustomButtonClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CustomButtonClick.emit($event)); })("ToolbarItemClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ToolbarItemClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToolbarItemClick.emit($event)); })("FilterChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FilterChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange($event)); })("ExpandAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ExpandAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); })("CollapseAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CollapseAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCollapseAll()); })("ShowEmptyFieldsChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowEmptyFieldsChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowEmptyFieldsChange($event)); })("WidthModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_WidthModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnWidthModeChange($event)); })("ResetSectionOrderRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ResetSectionOrderRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); })("ManageSectionsRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ManageSectionsRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnManageSections()); })("TagsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_TagsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelToggled()); })("LinksRequest", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_LinksRequest_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnToggleRecordLinks()); })("AttachmentsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_AttachmentsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelToggled()); })("AskAIRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_AskAIRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAskAIRequested()); })("ActionPinChanged", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ActionPinChanged_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnToolbarActionPinChanged($event)); })("VariantPicked", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_VariantPicked_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnVariantPicked($event)); });
57
62
  i0.ɵɵelementEnd();
58
63
  } if (rf & 2) {
59
64
  const ctx_r1 = i0.ɵɵnextContext();
60
- i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("EditMode", ctx_r1.EffectiveEditMode)("UserCanEdit", ctx_r1.EffectiveUserCanEdit)("UserCanDelete", ctx_r1.EffectiveUserCanDelete)("IsFavorite", ctx_r1.EffectiveIsFavorite)("FavoriteInitDone", ctx_r1.EffectiveFavoriteInitDone)("IsDirty", ctx_r1.EffectiveIsDirty)("DirtyFieldNames", ctx_r1.EffectiveDirtyFieldNames)("ListCount", ctx_r1.ListCount)("TagCount", ctx_r1.TagCount)("AttachmentCount", ctx_r1.AttachmentCount)("AttachmentsAvailable", ctx_r1.AttachmentsAvailable)("IsAttachmentsPanelOpen", ctx_r1.ShowAttachmentsPanel)("VersionCount", ctx_r1.VersionCount)("EntityInfo", ctx_r1.EffectiveEntityInfo)("Config", ctx_r1.EffectiveToolbarConfig)("IsSaving", ctx_r1.EffectiveIsSaving)("IsRefreshing", ctx_r1.EffectiveIsRefreshing)("VisibleSectionCount", ctx_r1.VisibleSectionCount)("TotalSectionCount", ctx_r1.TotalSectionCount)("ExpandedSectionCount", ctx_r1.ExpandedSectionCount)("SearchFilter", ctx_r1.EffectiveSearchFilter)("ShowEmptyFields", ctx_r1.EffectiveShowEmptyFields)("WidthMode", ctx_r1.EffectiveWidthMode)("HasCustomSectionOrder", ctx_r1.EffectiveHasCustomSectionOrder)("ChromeLayout", ctx_r1.ChromeLayout)("Variants", ctx_r1.EffectiveVariants)("CurrentVariantID", ctx_r1.EffectiveCurrentVariantID)("RegisteredItems", ctx_r1.EffectiveRegisteredToolbarItems)("ItemOverrides", ctx_r1.EffectiveToolbarItemOverrides)("FormComponent", ctx_r1.fc);
65
+ i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("EditMode", ctx_r1.EffectiveEditMode)("UserCanEdit", ctx_r1.EffectiveUserCanEdit)("UserCanDelete", ctx_r1.EffectiveUserCanDelete)("IsFavorite", ctx_r1.EffectiveIsFavorite)("FavoriteInitDone", ctx_r1.EffectiveFavoriteInitDone)("IsDirty", ctx_r1.EffectiveIsDirty)("DirtyFieldNames", ctx_r1.EffectiveDirtyFieldNames)("ListCount", ctx_r1.ListCount)("TagCount", ctx_r1.TagCount)("LinksOpen", ctx_r1.ShowRecordLinks)("LinkCount", ctx_r1.LinkCount)("ConflictCount", ctx_r1.ConflictCount)("AttachmentCount", ctx_r1.AttachmentCount)("AttachmentsAvailable", ctx_r1.AttachmentsAvailable)("IsAttachmentsPanelOpen", ctx_r1.ShowAttachmentsPanel)("VersionCount", ctx_r1.VersionCount)("EntityInfo", ctx_r1.EffectiveEntityInfo)("Config", ctx_r1.EffectiveToolbarConfig)("IsSaving", ctx_r1.EffectiveIsSaving)("IsRefreshing", ctx_r1.EffectiveIsRefreshing)("VisibleSectionCount", ctx_r1.VisibleSectionCount)("TotalSectionCount", ctx_r1.TotalSectionCount)("ExpandedSectionCount", ctx_r1.ExpandedSectionCount)("SearchFilter", ctx_r1.EffectiveSearchFilter)("ShowEmptyFields", ctx_r1.EffectiveShowEmptyFields)("WidthMode", ctx_r1.EffectiveWidthMode)("HasCustomSectionOrder", ctx_r1.EffectiveHasCustomSectionOrder)("ChromeLayout", ctx_r1.ChromeLayout)("Variants", ctx_r1.EffectiveVariants)("CurrentVariantID", ctx_r1.EffectiveCurrentVariantID)("RegisteredItems", ctx_r1.EffectiveRegisteredToolbarItems)("ItemOverrides", ctx_r1.EffectiveToolbarItemOverrides)("FormComponent", ctx_r1.fc);
61
66
  } }
62
- function MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
67
+ function MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template(rf, ctx) { if (rf & 1) {
68
+ const _r4 = i0.ɵɵgetCurrentView();
69
+ i0.ɵɵelementStart(0, "div", 31)(1, "button", 38);
70
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnStepVersionPreview(1)); });
71
+ i0.ɵɵelement(2, "i", 39);
72
+ i0.ɵɵtext(3, " Older ");
73
+ i0.ɵɵelementEnd();
74
+ i0.ɵɵelementStart(4, "span", 40);
75
+ i0.ɵɵtext(5);
76
+ i0.ɵɵelementEnd();
77
+ i0.ɵɵelementStart(6, "button", 41);
78
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnStepVersionPreview(-1)); });
79
+ i0.ɵɵtext(7, " Newer ");
80
+ i0.ɵɵelement(8, "i", 42);
81
+ i0.ɵɵelementEnd()();
82
+ } if (rf & 2) {
83
+ const preview_r5 = i0.ɵɵnextContext();
84
+ i0.ɵɵadvance();
85
+ i0.ɵɵproperty("disabled", (preview_r5.CurrentIndex ?? 0) >= (preview_r5.TotalRestoreableCount ?? 1) - 1);
86
+ i0.ɵɵadvance(4);
87
+ i0.ɵɵtextInterpolate2(" ", (preview_r5.TotalRestoreableCount ?? 1) - (preview_r5.CurrentIndex ?? 0), " / ", preview_r5.TotalRestoreableCount ?? 1, " ");
88
+ i0.ɵɵadvance();
89
+ i0.ɵɵproperty("disabled", (preview_r5.CurrentIndex ?? 0) <= 0);
90
+ } }
91
+ function MjRecordFormContainerComponent_Conditional_2_Conditional_18_Template(rf, ctx) { if (rf & 1) {
92
+ const _r6 = i0.ɵɵgetCurrentView();
93
+ i0.ɵɵelementStart(0, "button", 43);
94
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Conditional_18_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRestorePreviewedVersion()); });
95
+ i0.ɵɵelement(1, "i", 44);
96
+ i0.ɵɵtext(2, " Restore This Version... ");
97
+ i0.ɵɵelementEnd();
98
+ } }
99
+ function MjRecordFormContainerComponent_Conditional_2_Conditional_22_For_2_Template(rf, ctx) { if (rf & 1) {
100
+ i0.ɵɵelementStart(0, "span", 45)(1, "span", 47);
101
+ i0.ɵɵtext(2);
102
+ i0.ɵɵelementEnd();
103
+ i0.ɵɵelementStart(3, "strong", 48);
104
+ i0.ɵɵtext(4);
105
+ i0.ɵɵelementEnd();
106
+ i0.ɵɵelementStart(5, "span", 49);
107
+ i0.ɵɵtext(6);
108
+ i0.ɵɵelementEnd()();
109
+ } if (rf & 2) {
110
+ const diff_r7 = ctx.$implicit;
111
+ const ctx_r1 = i0.ɵɵnextContext(3);
112
+ i0.ɵɵproperty("title", (diff_r7.DisplayName || diff_r7.FieldName) + ": " + ctx_r1.FormatPreviewDiffValue(diff_r7.HistoricalValue) + " (Current live: " + ctx_r1.FormatPreviewDiffValue(diff_r7.CurrentLiveValue) + ")");
113
+ i0.ɵɵadvance(2);
114
+ i0.ɵɵtextInterpolate1("", diff_r7.DisplayName || diff_r7.FieldName, ":");
115
+ i0.ɵɵadvance(2);
116
+ i0.ɵɵtextInterpolate(ctx_r1.FormatPreviewDiffValue(diff_r7.HistoricalValue));
117
+ i0.ɵɵadvance(2);
118
+ i0.ɵɵtextInterpolate1("\u2190 Live: ", ctx_r1.FormatPreviewDiffValue(diff_r7.CurrentLiveValue));
119
+ } }
120
+ function MjRecordFormContainerComponent_Conditional_2_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
121
+ i0.ɵɵelementStart(0, "span", 46);
122
+ i0.ɵɵtext(1);
123
+ i0.ɵɵelementEnd();
124
+ } if (rf & 2) {
125
+ const ctx_r1 = i0.ɵɵnextContext(3);
126
+ i0.ɵɵadvance();
127
+ i0.ɵɵtextInterpolate1(" +", ctx_r1.PreviewChangedFieldChips.length - 6, " more ");
128
+ } }
129
+ function MjRecordFormContainerComponent_Conditional_2_Conditional_22_Template(rf, ctx) { if (rf & 1) {
130
+ i0.ɵɵelementStart(0, "div", 37);
131
+ i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_2_Conditional_22_For_2_Template, 7, 4, "span", 45, _forTrack0);
132
+ i0.ɵɵconditionalCreate(3, MjRecordFormContainerComponent_Conditional_2_Conditional_22_Conditional_3_Template, 2, 1, "span", 46);
133
+ i0.ɵɵelementEnd();
134
+ } if (rf & 2) {
135
+ const ctx_r1 = i0.ɵɵnextContext(2);
136
+ i0.ɵɵadvance();
137
+ i0.ɵɵrepeater(ctx_r1.PreviewChangedFieldChips.slice(0, 6));
138
+ i0.ɵɵadvance(2);
139
+ i0.ɵɵconditional(ctx_r1.PreviewChangedFieldChips.length > 6 ? 3 : -1);
140
+ } }
141
+ function MjRecordFormContainerComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
142
+ const _r3 = i0.ɵɵgetCurrentView();
143
+ i0.ɵɵelementStart(0, "div", 1)(1, "div", 23)(2, "div", 24)(3, "span", 25);
144
+ i0.ɵɵelement(4, "i", 26);
145
+ i0.ɵɵtext(5, " Time-Travel Preview ");
146
+ i0.ɵɵelementEnd();
147
+ i0.ɵɵelementStart(6, "span", 27)(7, "strong");
148
+ i0.ɵɵtext(8);
149
+ i0.ɵɵelementEnd();
150
+ i0.ɵɵelementStart(9, "span", 28);
151
+ i0.ɵɵtext(10);
152
+ i0.ɵɵelementEnd()();
153
+ i0.ɵɵelementStart(11, "span", 29);
154
+ i0.ɵɵtext(12);
155
+ i0.ɵɵelementEnd()();
156
+ i0.ɵɵelementStart(13, "div", 30);
157
+ i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template, 9, 4, "div", 31);
158
+ i0.ɵɵelementStart(15, "button", 32);
159
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnReopenHistoryFromPreview()); });
160
+ i0.ɵɵelement(16, "i", 33);
161
+ i0.ɵɵtext(17, " Timeline ");
162
+ i0.ɵɵelementEnd();
163
+ i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_2_Conditional_18_Template, 3, 0, "button", 34);
164
+ i0.ɵɵelementStart(19, "button", 35);
165
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExitVersionPreview()); });
166
+ i0.ɵɵelement(20, "i", 36);
167
+ i0.ɵɵtext(21, " Exit Preview ");
168
+ i0.ɵɵelementEnd()()();
169
+ i0.ɵɵconditionalCreate(22, MjRecordFormContainerComponent_Conditional_2_Conditional_22_Template, 4, 1, "div", 37);
170
+ i0.ɵɵelementEnd();
171
+ } if (rf & 2) {
172
+ const preview_r5 = ctx;
173
+ const ctx_r1 = i0.ɵɵnextContext();
174
+ i0.ɵɵadvance(8);
175
+ i0.ɵɵtextInterpolate(preview_r5.VersionLabel);
176
+ i0.ɵɵadvance(2);
177
+ i0.ɵɵtextInterpolate1("by ", preview_r5.UserName);
178
+ i0.ɵɵadvance(2);
179
+ i0.ɵɵtextInterpolate2(" ", preview_r5.DiffCount ?? 0, " ", (preview_r5.DiffCount ?? 0) === 1 ? "field differs" : "fields differ", " from live ");
180
+ i0.ɵɵadvance(2);
181
+ i0.ɵɵconditional((preview_r5.TotalRestoreableCount ?? 0) > 1 ? 14 : -1);
182
+ i0.ɵɵadvance(4);
183
+ i0.ɵɵconditional(ctx_r1.EffectiveUserCanEdit && (preview_r5.DiffCount ?? 0) > 0 ? 18 : -1);
184
+ i0.ɵɵadvance(4);
185
+ i0.ɵɵconditional(ctx_r1.PreviewChangedFieldChips.length > 0 ? 22 : -1);
186
+ } }
187
+ function MjRecordFormContainerComponent_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
188
+ const _r9 = i0.ɵɵgetCurrentView();
189
+ i0.ɵɵelementStart(0, "button", 54);
190
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_5_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnReloadFromRemotePill()); });
191
+ i0.ɵɵtext(1, " Reload ");
192
+ i0.ɵɵelementEnd();
193
+ } }
194
+ function MjRecordFormContainerComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
195
+ const _r8 = i0.ɵɵgetCurrentView();
196
+ i0.ɵɵelementStart(0, "div", 50);
197
+ i0.ɵɵelement(1, "i");
198
+ i0.ɵɵelementStart(2, "span", 51);
199
+ i0.ɵɵtext(3);
200
+ i0.ɵɵelementEnd();
201
+ i0.ɵɵconditionalCreate(4, MjRecordFormContainerComponent_Conditional_5_Conditional_4_Template, 2, 0, "button", 52);
202
+ i0.ɵɵelementStart(5, "button", 53);
203
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_5_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDismissRemoteUpdatePill()); });
204
+ i0.ɵɵelement(6, "i", 36);
205
+ i0.ɵɵelementEnd()();
206
+ } if (rf & 2) {
207
+ const ctx_r1 = i0.ɵɵnextContext();
208
+ i0.ɵɵclassProp("mj-forms-remote-update-pill--warning", ctx_r1.RemoteUpdatePill.Kind === "stale-while-editing");
209
+ i0.ɵɵadvance();
210
+ i0.ɵɵclassMap(ctx_r1.RemoteUpdatePill.Kind === "refreshed" ? "fa-solid fa-bolt mj-forms-remote-update-pill-icon" : "fa-solid fa-arrows-rotate mj-forms-remote-update-pill-icon");
211
+ i0.ɵɵadvance(2);
212
+ i0.ɵɵtextInterpolate(ctx_r1.RemoteUpdatePill.Summary);
213
+ i0.ɵɵadvance();
214
+ i0.ɵɵconditional(ctx_r1.RemoteUpdatePill.Kind === "stale-while-editing" ? 4 : -1);
215
+ } }
216
+ function MjRecordFormContainerComponent_Conditional_6_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
63
217
  i0.ɵɵelementStart(0, "span");
64
218
  i0.ɵɵtext(1, ", ");
65
219
  i0.ɵɵelementEnd();
66
220
  } }
67
- function MjRecordFormContainerComponent_Conditional_4_For_4_Template(rf, ctx) { if (rf & 1) {
68
- const _r4 = i0.ɵɵgetCurrentView();
69
- i0.ɵɵelementStart(0, "button", 22);
70
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_4_For_4_Template_button_click_0_listener() { const candidate_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnDuplicateCandidateClick(candidate_r5)); });
221
+ function MjRecordFormContainerComponent_Conditional_6_For_4_Template(rf, ctx) { if (rf & 1) {
222
+ const _r11 = i0.ɵɵgetCurrentView();
223
+ i0.ɵɵelementStart(0, "button", 57);
224
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_6_For_4_Template_button_click_0_listener() { const candidate_r12 = i0.ɵɵrestoreView(_r11).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnDuplicateCandidateClick(candidate_r12)); });
71
225
  i0.ɵɵtext(1);
72
226
  i0.ɵɵelementEnd();
73
- i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Template, 2, 0, "span");
227
+ i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_6_For_4_Conditional_2_Template, 2, 0, "span");
74
228
  } if (rf & 2) {
75
- const candidate_r5 = ctx.$implicit;
76
- const ɵ$index_14_r6 = ctx.$index;
77
- const ɵ$count_14_r7 = ctx.$count;
78
- i0.ɵɵproperty("title", "Open " + candidate_r5.DisplayName);
229
+ const candidate_r12 = ctx.$implicit;
230
+ const ɵ$index_106_r13 = ctx.$index;
231
+ const ɵ$count_106_r14 = ctx.$count;
232
+ i0.ɵɵproperty("title", "Open " + candidate_r12.DisplayName);
79
233
  i0.ɵɵadvance();
80
- i0.ɵɵtextInterpolate(candidate_r5.DisplayName);
234
+ i0.ɵɵtextInterpolate(candidate_r12.DisplayName);
81
235
  i0.ɵɵadvance();
82
- i0.ɵɵconditional(!(ɵ$index_14_r6 === ɵ$count_14_r7 - 1) ? 2 : -1);
236
+ i0.ɵɵconditional(!(ɵ$index_106_r13 === ɵ$count_106_r14 - 1) ? 2 : -1);
83
237
  } }
84
- function MjRecordFormContainerComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
85
- const _r3 = i0.ɵɵgetCurrentView();
86
- i0.ɵɵelementStart(0, "mj-alert", 20);
87
- i0.ɵɵlistener("Dismissed", function MjRecordFormContainerComponent_Conditional_4_Template_mj_alert_Dismissed_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDuplicateNoticeDismissed()); });
88
- i0.ɵɵelementStart(1, "span", 21);
238
+ function MjRecordFormContainerComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
239
+ const _r10 = i0.ɵɵgetCurrentView();
240
+ i0.ɵɵelementStart(0, "mj-alert", 55);
241
+ i0.ɵɵlistener("Dismissed", function MjRecordFormContainerComponent_Conditional_6_Template_mj_alert_Dismissed_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDuplicateNoticeDismissed()); });
242
+ i0.ɵɵelementStart(1, "span", 56);
89
243
  i0.ɵɵtext(2, "This may duplicate:");
90
244
  i0.ɵɵelementEnd();
91
- i0.ɵɵrepeaterCreate(3, MjRecordFormContainerComponent_Conditional_4_For_4_Template, 3, 3, null, null, _forTrack0);
245
+ i0.ɵɵrepeaterCreate(3, MjRecordFormContainerComponent_Conditional_6_For_4_Template, 3, 3, null, null, _forTrack1);
92
246
  i0.ɵɵelementEnd();
93
247
  } if (rf & 2) {
94
248
  const ctx_r1 = i0.ɵɵnextContext();
95
249
  i0.ɵɵadvance(3);
96
250
  i0.ɵɵrepeater(ctx_r1.DuplicateEntryCandidates);
97
251
  } }
98
- function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
99
- i0.ɵɵelementStart(0, "span", 27);
252
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
253
+ i0.ɵɵelementStart(0, "span", 62);
100
254
  i0.ɵɵtext(1);
101
255
  i0.ɵɵelementEnd();
102
256
  } if (rf & 2) {
103
257
  i0.ɵɵnextContext();
104
- const formIndicators_r9 = i0.ɵɵreadContextLet(4);
258
+ const formIndicators_r16 = i0.ɵɵreadContextLet(4);
105
259
  const ctx_r1 = i0.ɵɵnextContext(2);
106
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(formIndicators_r9.ErrorCount, "this record"));
107
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(formIndicators_r9.ErrorCount, "this record"));
260
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(formIndicators_r16.ErrorCount, "this record"));
261
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(formIndicators_r16.ErrorCount, "this record"));
108
262
  i0.ɵɵadvance();
109
- i0.ɵɵtextInterpolate(formIndicators_r9.ErrorCount);
263
+ i0.ɵɵtextInterpolate(formIndicators_r16.ErrorCount);
110
264
  } }
111
- function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
112
- i0.ɵɵelementStart(0, "span", 28);
265
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
266
+ i0.ɵɵelementStart(0, "span", 63);
113
267
  i0.ɵɵtext(1);
114
268
  i0.ɵɵelementEnd();
115
269
  } if (rf & 2) {
116
270
  i0.ɵɵnextContext();
117
- const formIndicators_r9 = i0.ɵɵreadContextLet(4);
271
+ const formIndicators_r16 = i0.ɵɵreadContextLet(4);
118
272
  const ctx_r1 = i0.ɵɵnextContext(2);
119
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(formIndicators_r9.WarningCount, "this record"));
120
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(formIndicators_r9.WarningCount, "this record"));
273
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(formIndicators_r16.WarningCount, "this record"));
274
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(formIndicators_r16.WarningCount, "this record"));
121
275
  i0.ɵɵadvance();
122
- i0.ɵɵtextInterpolate(formIndicators_r9.WarningCount);
276
+ i0.ɵɵtextInterpolate(formIndicators_r16.WarningCount);
123
277
  } }
124
- function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
125
- i0.ɵɵelement(0, "span", 29);
278
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
279
+ i0.ɵɵelement(0, "span", 64);
126
280
  } if (rf & 2) {
127
281
  i0.ɵɵnextContext();
128
- const formIndicators_r9 = i0.ɵɵreadContextLet(4);
282
+ const formIndicators_r16 = i0.ɵɵreadContextLet(4);
129
283
  const ctx_r1 = i0.ɵɵnextContext(2);
130
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(formIndicators_r9.DirtyCount, "this record"));
131
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(formIndicators_r9.DirtyCount, "this record"));
284
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(formIndicators_r16.DirtyCount, "this record"));
285
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(formIndicators_r16.DirtyCount, "this record"));
132
286
  } }
133
- function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
134
- const _r8 = i0.ɵɵgetCurrentView();
135
- i0.ɵɵelementStart(0, "button", 25);
136
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailExpand()); });
287
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
288
+ const _r15 = i0.ɵɵgetCurrentView();
289
+ i0.ɵɵelementStart(0, "button", 60);
290
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailExpand()); });
137
291
  i0.ɵɵelement(1, "i");
138
- i0.ɵɵelementStart(2, "span", 26);
139
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template_span_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, ctx_r1.ChromeActiveTitle)); });
292
+ i0.ɵɵelementStart(2, "span", 61);
293
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template_span_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, ctx_r1.ChromeActiveTitle)); });
140
294
  i0.ɵɵtext(3);
141
295
  i0.ɵɵelementEnd();
142
296
  i0.ɵɵdeclareLet(4);
143
- i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template, 2, 3, "span", 27)(6, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template, 2, 3, "span", 28);
144
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template, 1, 2, "span", 29);
297
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_5_Template, 2, 3, "span", 62)(6, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_6_Template, 2, 3, "span", 63);
298
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_7_Template, 1, 2, "span", 64);
145
299
  i0.ɵɵelementEnd();
146
300
  } if (rf & 2) {
147
301
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -152,290 +306,290 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf,
152
306
  i0.ɵɵadvance(2);
153
307
  i0.ɵɵtextInterpolate(ctx_r1.ChromeActiveTitle);
154
308
  i0.ɵɵadvance();
155
- const formIndicators_r10 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
309
+ const formIndicators_r17 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
156
310
  i0.ɵɵadvance();
157
- i0.ɵɵconditional(formIndicators_r10.ErrorCount > 0 ? 5 : formIndicators_r10.WarningCount > 0 ? 6 : -1);
311
+ i0.ɵɵconditional(formIndicators_r17.ErrorCount > 0 ? 5 : formIndicators_r17.WarningCount > 0 ? 6 : -1);
158
312
  i0.ɵɵadvance(2);
159
- i0.ɵɵconditional(formIndicators_r10.DirtyCount > 0 ? 7 : -1);
313
+ i0.ɵɵconditional(formIndicators_r17.DirtyCount > 0 ? 7 : -1);
160
314
  } }
161
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
162
- const _r14 = i0.ɵɵgetCurrentView();
163
- i0.ɵɵelementStart(0, "span", 46);
164
- i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r14); const group_r13 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, group_r13.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
165
- i0.ɵɵelement(1, "i", 47);
315
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
316
+ const _r21 = i0.ɵɵgetCurrentView();
317
+ i0.ɵɵelementStart(0, "span", 81);
318
+ i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r21); const group_r20 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, group_r20.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
319
+ i0.ɵɵelement(1, "i", 82);
166
320
  i0.ɵɵelementEnd();
167
321
  } }
168
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
169
- i0.ɵɵelement(0, "span", 42);
322
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
323
+ i0.ɵɵelement(0, "span", 77);
170
324
  } if (rf & 2) {
171
- const group_r13 = i0.ɵɵnextContext().$implicit;
172
- const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
325
+ const group_r20 = i0.ɵɵnextContext().$implicit;
326
+ const groupIndicators_r22 = i0.ɵɵreadContextLet(5);
173
327
  const ctx_r1 = i0.ɵɵnextContext(3);
174
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
175
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
328
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(groupIndicators_r22.DirtyCount, group_r20.Title));
329
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r22.DirtyCount, group_r20.Title));
176
330
  } }
177
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
178
- i0.ɵɵelementStart(0, "span", 43);
179
- i0.ɵɵelement(1, "i", 48);
331
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
332
+ i0.ɵɵelementStart(0, "span", 78);
333
+ i0.ɵɵelement(1, "i", 83);
180
334
  i0.ɵɵtext(2);
181
335
  i0.ɵɵelementEnd();
182
336
  } if (rf & 2) {
183
- const group_r13 = i0.ɵɵnextContext().$implicit;
184
- const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
337
+ const group_r20 = i0.ɵɵnextContext().$implicit;
338
+ const groupIndicators_r22 = i0.ɵɵreadContextLet(5);
185
339
  const ctx_r1 = i0.ɵɵnextContext(3);
186
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(groupIndicators_r15.ErrorCount, group_r13.Title));
187
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(groupIndicators_r15.ErrorCount, group_r13.Title));
340
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(groupIndicators_r22.ErrorCount, group_r20.Title));
341
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(groupIndicators_r22.ErrorCount, group_r20.Title));
188
342
  i0.ɵɵadvance(2);
189
- i0.ɵɵtextInterpolate1("", groupIndicators_r15.ErrorCount, " ");
343
+ i0.ɵɵtextInterpolate1("", groupIndicators_r22.ErrorCount, " ");
190
344
  } }
191
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
192
- i0.ɵɵelementStart(0, "span", 44);
193
- i0.ɵɵelement(1, "i", 49);
345
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
346
+ i0.ɵɵelementStart(0, "span", 79);
347
+ i0.ɵɵelement(1, "i", 84);
194
348
  i0.ɵɵtext(2);
195
349
  i0.ɵɵelementEnd();
196
350
  } if (rf & 2) {
197
- const group_r13 = i0.ɵɵnextContext().$implicit;
198
- const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
351
+ const group_r20 = i0.ɵɵnextContext().$implicit;
352
+ const groupIndicators_r22 = i0.ɵɵreadContextLet(5);
199
353
  const ctx_r1 = i0.ɵɵnextContext(3);
200
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(groupIndicators_r15.WarningCount, group_r13.Title));
201
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(groupIndicators_r15.WarningCount, group_r13.Title));
354
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(groupIndicators_r22.WarningCount, group_r20.Title));
355
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(groupIndicators_r22.WarningCount, group_r20.Title));
202
356
  i0.ɵɵadvance(2);
203
- i0.ɵɵtextInterpolate1("", groupIndicators_r15.WarningCount, " ");
357
+ i0.ɵɵtextInterpolate1("", groupIndicators_r22.WarningCount, " ");
204
358
  } }
205
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
206
- i0.ɵɵelementStart(0, "span", 45);
359
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
360
+ i0.ɵɵelementStart(0, "span", 80);
207
361
  i0.ɵɵtext(1);
208
362
  i0.ɵɵelementEnd();
209
363
  } if (rf & 2) {
210
364
  i0.ɵɵnextContext();
211
- const rowCount_r16 = i0.ɵɵreadContextLet(9);
365
+ const rowCount_r23 = i0.ɵɵreadContextLet(9);
212
366
  i0.ɵɵadvance();
213
- i0.ɵɵtextInterpolate(rowCount_r16);
367
+ i0.ɵɵtextInterpolate(rowCount_r23);
214
368
  } }
215
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
216
- const _r12 = i0.ɵɵgetCurrentView();
217
- i0.ɵɵelementStart(0, "div", 39);
218
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_click_0_listener() { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_keydown_enter_0_listener() { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_keydown_space_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_dragover_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, group_r13.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_dragleave_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, group_r13.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_drop_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, group_r13.Key)); });
219
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 40);
369
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
370
+ const _r19 = i0.ɵɵgetCurrentView();
371
+ i0.ɵɵelementStart(0, "div", 74);
372
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_click_0_listener() { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r20.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_keydown_enter_0_listener() { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r20.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_keydown_space_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r20.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_dragover_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, group_r20.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_dragleave_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, group_r20.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_drop_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, group_r20.Key)); });
373
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 75);
220
374
  i0.ɵɵelement(2, "i");
221
- i0.ɵɵelementStart(3, "span", 41);
222
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_span_mouseenter_3_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, group_r13.Title)); });
375
+ i0.ɵɵelementStart(3, "span", 76);
376
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_span_mouseenter_3_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, group_r20.Title)); });
223
377
  i0.ɵɵtext(4);
224
378
  i0.ɵɵelementEnd();
225
379
  i0.ɵɵdeclareLet(5);
226
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 42);
227
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 44);
380
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 77);
381
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 78)(8, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 79);
228
382
  i0.ɵɵdeclareLet(9);
229
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 45);
383
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 80);
230
384
  i0.ɵɵelementEnd();
231
385
  } if (rf & 2) {
232
- const group_r13 = ctx.$implicit;
386
+ const group_r20 = ctx.$implicit;
233
387
  const ctx_r1 = i0.ɵɵnextContext(3);
234
- i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === group_r13.Key)("is-drag-over", ctx_r1.RailDragOverKey === group_r13.Key)("has-errors", ctx_r1.ChromeGroupIndicators(group_r13).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(group_r13).DirtyCount > 0);
235
- i0.ɵɵattribute("data-rail-key", group_r13.Key)("aria-current", ctx_r1.ChromeActiveGroupKey === group_r13.Key ? "page" : null);
388
+ i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === group_r20.Key)("is-drag-over", ctx_r1.RailDragOverKey === group_r20.Key)("has-errors", ctx_r1.ChromeGroupIndicators(group_r20).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(group_r20).DirtyCount > 0);
389
+ i0.ɵɵattribute("data-rail-key", group_r20.Key)("aria-current", ctx_r1.ChromeActiveGroupKey === group_r20.Key ? "page" : null);
236
390
  i0.ɵɵadvance();
237
391
  i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
238
392
  i0.ɵɵadvance();
239
- i0.ɵɵclassMap(group_r13.Icon);
393
+ i0.ɵɵclassMap(group_r20.Icon);
240
394
  i0.ɵɵadvance(2);
241
- i0.ɵɵtextInterpolate(group_r13.Title);
395
+ i0.ɵɵtextInterpolate(group_r20.Title);
242
396
  i0.ɵɵadvance();
243
- const groupIndicators_r17 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r13));
397
+ const groupIndicators_r24 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r20));
244
398
  i0.ɵɵadvance();
245
- i0.ɵɵconditional(groupIndicators_r17.DirtyCount > 0 ? 6 : -1);
399
+ i0.ɵɵconditional(groupIndicators_r24.DirtyCount > 0 ? 6 : -1);
246
400
  i0.ɵɵadvance();
247
- i0.ɵɵconditional(groupIndicators_r17.ErrorCount > 0 ? 7 : groupIndicators_r17.WarningCount > 0 ? 8 : -1);
401
+ i0.ɵɵconditional(groupIndicators_r24.ErrorCount > 0 ? 7 : groupIndicators_r24.WarningCount > 0 ? 8 : -1);
248
402
  i0.ɵɵadvance(2);
249
- const rowCount_r18 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r13));
403
+ const rowCount_r25 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r20));
250
404
  i0.ɵɵadvance();
251
- i0.ɵɵconditional(rowCount_r18 != null && rowCount_r18 > 0 ? 10 : -1);
405
+ i0.ɵɵconditional(rowCount_r25 != null && rowCount_r25 > 0 ? 10 : -1);
252
406
  } }
253
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
254
- i0.ɵɵelement(0, "span", 42);
407
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
408
+ i0.ɵɵelement(0, "span", 77);
255
409
  } if (rf & 2) {
256
- const more_r20 = i0.ɵɵnextContext();
257
- const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
410
+ const more_r27 = i0.ɵɵnextContext();
411
+ const moreIndicators_r28 = i0.ɵɵreadContextLet(5);
258
412
  const ctx_r1 = i0.ɵɵnextContext(3);
259
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
260
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
413
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(moreIndicators_r28.DirtyCount, more_r27.Title));
414
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r28.DirtyCount, more_r27.Title));
261
415
  } }
262
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
263
- i0.ɵɵelementStart(0, "span", 43);
264
- i0.ɵɵelement(1, "i", 48);
416
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
417
+ i0.ɵɵelementStart(0, "span", 78);
418
+ i0.ɵɵelement(1, "i", 83);
265
419
  i0.ɵɵtext(2);
266
420
  i0.ɵɵelementEnd();
267
421
  } if (rf & 2) {
268
- const more_r20 = i0.ɵɵnextContext();
269
- const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
422
+ const more_r27 = i0.ɵɵnextContext();
423
+ const moreIndicators_r28 = i0.ɵɵreadContextLet(5);
270
424
  const ctx_r1 = i0.ɵɵnextContext(3);
271
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(moreIndicators_r21.ErrorCount, more_r20.Title));
272
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(moreIndicators_r21.ErrorCount, more_r20.Title));
425
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(moreIndicators_r28.ErrorCount, more_r27.Title));
426
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(moreIndicators_r28.ErrorCount, more_r27.Title));
273
427
  i0.ɵɵadvance(2);
274
- i0.ɵɵtextInterpolate1("", moreIndicators_r21.ErrorCount, " ");
428
+ i0.ɵɵtextInterpolate1("", moreIndicators_r28.ErrorCount, " ");
275
429
  } }
276
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
277
- i0.ɵɵelementStart(0, "span", 44);
278
- i0.ɵɵelement(1, "i", 49);
430
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
431
+ i0.ɵɵelementStart(0, "span", 79);
432
+ i0.ɵɵelement(1, "i", 84);
279
433
  i0.ɵɵtext(2);
280
434
  i0.ɵɵelementEnd();
281
435
  } if (rf & 2) {
282
- const more_r20 = i0.ɵɵnextContext();
283
- const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
436
+ const more_r27 = i0.ɵɵnextContext();
437
+ const moreIndicators_r28 = i0.ɵɵreadContextLet(5);
284
438
  const ctx_r1 = i0.ɵɵnextContext(3);
285
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(moreIndicators_r21.WarningCount, more_r20.Title));
286
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(moreIndicators_r21.WarningCount, more_r20.Title));
439
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(moreIndicators_r28.WarningCount, more_r27.Title));
440
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(moreIndicators_r28.WarningCount, more_r27.Title));
287
441
  i0.ɵɵadvance(2);
288
- i0.ɵɵtextInterpolate1("", moreIndicators_r21.WarningCount, " ");
442
+ i0.ɵɵtextInterpolate1("", moreIndicators_r28.WarningCount, " ");
289
443
  } }
290
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
291
- i0.ɵɵelementStart(0, "span", 54);
444
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
445
+ i0.ɵɵelementStart(0, "span", 89);
292
446
  i0.ɵɵtext(1);
293
447
  i0.ɵɵelementEnd();
294
448
  } if (rf & 2) {
295
449
  i0.ɵɵnextContext();
296
- const moreRowCount_r22 = i0.ɵɵreadContextLet(0);
450
+ const moreRowCount_r29 = i0.ɵɵreadContextLet(0);
297
451
  i0.ɵɵadvance();
298
- i0.ɵɵtextInterpolate(moreRowCount_r22);
452
+ i0.ɵɵtextInterpolate(moreRowCount_r29);
299
453
  } }
300
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Template(rf, ctx) { if (rf & 1) {
454
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Template(rf, ctx) { if (rf & 1) {
301
455
  i0.ɵɵdeclareLet(0);
302
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template, 2, 1, "span", 54);
456
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template, 2, 1, "span", 89);
303
457
  } if (rf & 2) {
304
- const moreRowCount_r23 = i0.ɵɵstoreLet(i0.ɵɵnextContext(4).ChromeMoreRowCount);
458
+ const moreRowCount_r30 = i0.ɵɵstoreLet(i0.ɵɵnextContext(4).ChromeMoreRowCount);
305
459
  i0.ɵɵadvance();
306
- i0.ɵɵconditional(moreRowCount_r23 != null && moreRowCount_r23 > 0 ? 1 : -1);
460
+ i0.ɵɵconditional(moreRowCount_r30 != null && moreRowCount_r30 > 0 ? 1 : -1);
307
461
  } }
308
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
309
- const _r26 = i0.ɵɵgetCurrentView();
310
- i0.ɵɵelementStart(0, "span", 46);
311
- i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r26); const child_r25 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r25.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
312
- i0.ɵɵelement(1, "i", 47);
462
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
463
+ const _r33 = i0.ɵɵgetCurrentView();
464
+ i0.ɵɵelementStart(0, "span", 81);
465
+ i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r33); const child_r32 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r32.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
466
+ i0.ɵɵelement(1, "i", 82);
313
467
  i0.ɵɵelementEnd();
314
468
  } }
315
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
316
- i0.ɵɵelement(0, "span", 42);
469
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
470
+ i0.ɵɵelement(0, "span", 77);
317
471
  } if (rf & 2) {
318
- const child_r25 = i0.ɵɵnextContext().$implicit;
319
- const childIndicators_r27 = i0.ɵɵreadContextLet(5);
472
+ const child_r32 = i0.ɵɵnextContext().$implicit;
473
+ const childIndicators_r34 = i0.ɵɵreadContextLet(5);
320
474
  const ctx_r1 = i0.ɵɵnextContext(5);
321
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r27.DirtyCount, child_r25.Title));
322
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r27.DirtyCount, child_r25.Title));
475
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r34.DirtyCount, child_r32.Title));
476
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r34.DirtyCount, child_r32.Title));
323
477
  } }
324
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
325
- i0.ɵɵelementStart(0, "span", 43);
326
- i0.ɵɵelement(1, "i", 48);
478
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
479
+ i0.ɵɵelementStart(0, "span", 78);
480
+ i0.ɵɵelement(1, "i", 83);
327
481
  i0.ɵɵtext(2);
328
482
  i0.ɵɵelementEnd();
329
483
  } if (rf & 2) {
330
- const child_r25 = i0.ɵɵnextContext().$implicit;
331
- const childIndicators_r27 = i0.ɵɵreadContextLet(5);
484
+ const child_r32 = i0.ɵɵnextContext().$implicit;
485
+ const childIndicators_r34 = i0.ɵɵreadContextLet(5);
332
486
  const ctx_r1 = i0.ɵɵnextContext(5);
333
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r27.ErrorCount, child_r25.Title));
334
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r27.ErrorCount, child_r25.Title));
487
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r34.ErrorCount, child_r32.Title));
488
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r34.ErrorCount, child_r32.Title));
335
489
  i0.ɵɵadvance(2);
336
- i0.ɵɵtextInterpolate1("", childIndicators_r27.ErrorCount, " ");
490
+ i0.ɵɵtextInterpolate1("", childIndicators_r34.ErrorCount, " ");
337
491
  } }
338
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
339
- i0.ɵɵelementStart(0, "span", 44);
340
- i0.ɵɵelement(1, "i", 49);
492
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
493
+ i0.ɵɵelementStart(0, "span", 79);
494
+ i0.ɵɵelement(1, "i", 84);
341
495
  i0.ɵɵtext(2);
342
496
  i0.ɵɵelementEnd();
343
497
  } if (rf & 2) {
344
- const child_r25 = i0.ɵɵnextContext().$implicit;
345
- const childIndicators_r27 = i0.ɵɵreadContextLet(5);
498
+ const child_r32 = i0.ɵɵnextContext().$implicit;
499
+ const childIndicators_r34 = i0.ɵɵreadContextLet(5);
346
500
  const ctx_r1 = i0.ɵɵnextContext(5);
347
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r27.WarningCount, child_r25.Title));
348
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r27.WarningCount, child_r25.Title));
501
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r34.WarningCount, child_r32.Title));
502
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r34.WarningCount, child_r32.Title));
349
503
  i0.ɵɵadvance(2);
350
- i0.ɵɵtextInterpolate1("", childIndicators_r27.WarningCount, " ");
504
+ i0.ɵɵtextInterpolate1("", childIndicators_r34.WarningCount, " ");
351
505
  } }
352
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
353
- i0.ɵɵelementStart(0, "span", 45);
506
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
507
+ i0.ɵɵelementStart(0, "span", 80);
354
508
  i0.ɵɵtext(1);
355
509
  i0.ɵɵelementEnd();
356
510
  } if (rf & 2) {
357
511
  i0.ɵɵnextContext();
358
- const childCount_r28 = i0.ɵɵreadContextLet(9);
512
+ const childCount_r35 = i0.ɵɵreadContextLet(9);
359
513
  i0.ɵɵadvance();
360
- i0.ɵɵtextInterpolate(childCount_r28);
514
+ i0.ɵɵtextInterpolate(childCount_r35);
361
515
  } }
362
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1) {
363
- const _r24 = i0.ɵɵgetCurrentView();
364
- i0.ɵɵelementStart(0, "div", 56);
365
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_click_0_listener() { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_enter_0_listener() { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_space_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragover_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r25.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragleave_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r25.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_drop_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r25.Key)); });
366
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template, 2, 0, "span", 40);
516
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1) {
517
+ const _r31 = i0.ɵɵgetCurrentView();
518
+ i0.ɵɵelementStart(0, "div", 91);
519
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_click_0_listener() { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r32.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_enter_0_listener() { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r32.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_space_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r32.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragover_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r32.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragleave_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r32.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_drop_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r32.Key)); });
520
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template, 2, 0, "span", 75);
367
521
  i0.ɵɵelement(2, "i");
368
- i0.ɵɵelementStart(3, "span", 41);
369
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_span_mouseenter_3_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r25.Title)); });
522
+ i0.ɵɵelementStart(3, "span", 76);
523
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_span_mouseenter_3_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r32.Title)); });
370
524
  i0.ɵɵtext(4);
371
525
  i0.ɵɵelementEnd();
372
526
  i0.ɵɵdeclareLet(5);
373
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template, 1, 2, "span", 42);
374
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template, 3, 3, "span", 44);
527
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template, 1, 2, "span", 77);
528
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template, 3, 3, "span", 78)(8, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template, 3, 3, "span", 79);
375
529
  i0.ɵɵdeclareLet(9);
376
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template, 2, 1, "span", 45);
530
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template, 2, 1, "span", 80);
377
531
  i0.ɵɵelementEnd();
378
532
  } if (rf & 2) {
379
- const child_r25 = ctx.$implicit;
533
+ const child_r32 = ctx.$implicit;
380
534
  const ctx_r1 = i0.ɵɵnextContext(5);
381
- i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r25.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r25.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r25).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r25).DirtyCount > 0);
382
- i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r25.Key ? "page" : null);
535
+ i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r32.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r32.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r32).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r32).DirtyCount > 0);
536
+ i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r32.Key ? "page" : null);
383
537
  i0.ɵɵadvance();
384
538
  i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
385
539
  i0.ɵɵadvance();
386
- i0.ɵɵclassMap(child_r25.Icon);
540
+ i0.ɵɵclassMap(child_r32.Icon);
387
541
  i0.ɵɵadvance(2);
388
- i0.ɵɵtextInterpolate(child_r25.Title);
542
+ i0.ɵɵtextInterpolate(child_r32.Title);
389
543
  i0.ɵɵadvance();
390
- const childIndicators_r29 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r25));
544
+ const childIndicators_r36 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r32));
391
545
  i0.ɵɵadvance();
392
- i0.ɵɵconditional(childIndicators_r29.DirtyCount > 0 ? 6 : -1);
546
+ i0.ɵɵconditional(childIndicators_r36.DirtyCount > 0 ? 6 : -1);
393
547
  i0.ɵɵadvance();
394
- i0.ɵɵconditional(childIndicators_r29.ErrorCount > 0 ? 7 : childIndicators_r29.WarningCount > 0 ? 8 : -1);
548
+ i0.ɵɵconditional(childIndicators_r36.ErrorCount > 0 ? 7 : childIndicators_r36.WarningCount > 0 ? 8 : -1);
395
549
  i0.ɵɵadvance(2);
396
- const childCount_r30 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r25));
550
+ const childCount_r37 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r32));
397
551
  i0.ɵɵadvance();
398
- i0.ɵɵconditional(childCount_r30 != null && childCount_r30 > 0 ? 10 : -1);
552
+ i0.ɵɵconditional(childCount_r37 != null && childCount_r37 > 0 ? 10 : -1);
399
553
  } }
400
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_Template(rf, ctx) { if (rf & 1) {
401
- i0.ɵɵelementStart(0, "div", 53);
402
- i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template, 11, 18, "div", 55, _forTrack1);
554
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_Template(rf, ctx) { if (rf & 1) {
555
+ i0.ɵɵelementStart(0, "div", 88);
556
+ i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template, 11, 18, "div", 90, _forTrack2);
403
557
  i0.ɵɵelementEnd();
404
558
  } if (rf & 2) {
405
559
  const ctx_r1 = i0.ɵɵnextContext(4);
406
560
  i0.ɵɵadvance();
407
561
  i0.ɵɵrepeater(ctx_r1.ChromeMoreItems);
408
562
  } }
409
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
410
- const _r19 = i0.ɵɵgetCurrentView();
411
- i0.ɵɵelementStart(0, "div", 50);
412
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_keydown_space_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); });
413
- i0.ɵɵelement(1, "span", 51)(2, "i");
414
- i0.ɵɵelementStart(3, "span", 41);
415
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_span_mouseenter_3_listener($event) { const more_r20 = i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, more_r20.Title)); });
563
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
564
+ const _r26 = i0.ɵɵgetCurrentView();
565
+ i0.ɵɵelementStart(0, "div", 85);
566
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.space", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_div_keydown_space_0_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); });
567
+ i0.ɵɵelement(1, "span", 86)(2, "i");
568
+ i0.ɵɵelementStart(3, "span", 76);
569
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_span_mouseenter_3_listener($event) { const more_r27 = i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, more_r27.Title)); });
416
570
  i0.ɵɵtext(4);
417
571
  i0.ɵɵelementEnd();
418
572
  i0.ɵɵdeclareLet(5);
419
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 42);
420
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 44);
421
- i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Template, 2, 2);
422
- i0.ɵɵelement(10, "i", 52);
573
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 77);
574
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 78)(8, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 79);
575
+ i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Template, 2, 2);
576
+ i0.ɵɵelement(10, "i", 87);
423
577
  i0.ɵɵelementEnd();
424
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_Template, 3, 0, "div", 53);
578
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_Template, 3, 0, "div", 88);
425
579
  } if (rf & 2) {
426
- const more_r20 = ctx;
580
+ const more_r27 = ctx;
427
581
  const ctx_r1 = i0.ɵɵnextContext(3);
428
- i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r20).ErrorCount > 0);
582
+ i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r27).ErrorCount > 0);
429
583
  i0.ɵɵadvance(2);
430
584
  i0.ɵɵclassMap(ctx_r1.MoreExpanded ? "fa-solid fa-folder-open" : "fa-solid fa-folder");
431
585
  i0.ɵɵadvance(2);
432
- i0.ɵɵtextInterpolate(more_r20.Title);
586
+ i0.ɵɵtextInterpolate(more_r27.Title);
433
587
  i0.ɵɵadvance();
434
- const moreIndicators_r31 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r20));
588
+ const moreIndicators_r38 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r27));
435
589
  i0.ɵɵadvance();
436
- i0.ɵɵconditional(moreIndicators_r31.DirtyCount > 0 ? 6 : -1);
590
+ i0.ɵɵconditional(moreIndicators_r38.DirtyCount > 0 ? 6 : -1);
437
591
  i0.ɵɵadvance();
438
- i0.ɵɵconditional(moreIndicators_r31.ErrorCount > 0 ? 7 : moreIndicators_r31.WarningCount > 0 ? 8 : -1);
592
+ i0.ɵɵconditional(moreIndicators_r38.ErrorCount > 0 ? 7 : moreIndicators_r38.WarningCount > 0 ? 8 : -1);
439
593
  i0.ɵɵadvance(2);
440
594
  i0.ɵɵconditional(!ctx_r1.MoreExpanded ? 9 : -1);
441
595
  i0.ɵɵadvance();
@@ -443,44 +597,44 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
443
597
  i0.ɵɵadvance();
444
598
  i0.ɵɵconditional(ctx_r1.MoreExpanded ? 11 : -1);
445
599
  } }
446
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
447
- i0.ɵɵelementStart(0, "div", 38);
448
- i0.ɵɵelement(1, "span", 51)(2, "i", 48);
449
- i0.ɵɵelementStart(3, "span", 57);
600
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
601
+ i0.ɵɵelementStart(0, "div", 73);
602
+ i0.ɵɵelement(1, "span", 86)(2, "i", 83);
603
+ i0.ɵɵelementStart(3, "span", 92);
450
604
  i0.ɵɵtext(4, "Not in a section");
451
605
  i0.ɵɵelementEnd();
452
- i0.ɵɵelementStart(5, "span", 58);
606
+ i0.ɵɵelementStart(5, "span", 93);
453
607
  i0.ɵɵtext(6);
454
608
  i0.ɵɵelementEnd()();
455
609
  } if (rf & 2) {
456
610
  i0.ɵɵnextContext();
457
- const unroutedErrors_r32 = i0.ɵɵreadContextLet(10);
611
+ const unroutedErrors_r39 = i0.ɵɵreadContextLet(10);
458
612
  const ctx_r1 = i0.ɵɵnextContext(2);
459
- i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
460
- i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
613
+ i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r39));
614
+ i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r39));
461
615
  i0.ɵɵadvance(5);
462
- i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
616
+ i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r39));
463
617
  i0.ɵɵadvance();
464
- i0.ɵɵtextInterpolate(unroutedErrors_r32);
618
+ i0.ɵɵtextInterpolate(unroutedErrors_r39);
465
619
  } }
466
- function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
467
- const _r11 = i0.ɵɵgetCurrentView();
468
- i0.ɵɵelementStart(0, "div", 30);
469
- i0.ɵɵlistener("pointerdown", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointerdown_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeStart($event)); })("pointermove", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeMove($event)); })("pointerup", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); })("pointercancel", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); });
620
+ function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
621
+ const _r18 = i0.ɵɵgetCurrentView();
622
+ i0.ɵɵelementStart(0, "div", 65);
623
+ i0.ɵɵlistener("pointerdown", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointerdown_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeStart($event)); })("pointermove", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeMove($event)); })("pointerup", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); })("pointercancel", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); });
470
624
  i0.ɵɵelementEnd();
471
- i0.ɵɵelementStart(1, "div", 31)(2, "button", 32);
472
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailPinToggle()); });
473
- i0.ɵɵelement(3, "i", 33);
625
+ i0.ɵɵelementStart(1, "div", 66)(2, "button", 67);
626
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailPinToggle()); });
627
+ i0.ɵɵelement(3, "i", 68);
474
628
  i0.ɵɵelementEnd();
475
- i0.ɵɵelementStart(4, "button", 34);
476
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailCollapse()); });
477
- i0.ɵɵelement(5, "i", 35);
629
+ i0.ɵɵelementStart(4, "button", 69);
630
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailCollapse()); });
631
+ i0.ɵɵelement(5, "i", 70);
478
632
  i0.ɵɵelementEnd()();
479
- i0.ɵɵelementStart(6, "div", 36);
480
- i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template, 11, 19, "div", 37, _forTrack1);
481
- i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template, 12, 16);
633
+ i0.ɵɵelementStart(6, "div", 71);
634
+ i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template, 11, 19, "div", 72, _forTrack2);
635
+ i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template, 12, 16);
482
636
  i0.ɵɵdeclareLet(10);
483
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template, 7, 4, "div", 38);
637
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_11_Template, 7, 4, "div", 73);
484
638
  i0.ɵɵelementEnd();
485
639
  } if (rf & 2) {
486
640
  let tmp_9_0;
@@ -495,13 +649,13 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf,
495
649
  i0.ɵɵadvance(2);
496
650
  i0.ɵɵconditional((tmp_9_0 = ctx_r1.ChromeMoreFolder) ? 9 : -1, tmp_9_0);
497
651
  i0.ɵɵadvance();
498
- const unroutedErrors_r33 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
652
+ const unroutedErrors_r40 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
499
653
  i0.ɵɵadvance();
500
- i0.ɵɵconditional(unroutedErrors_r33 > 0 ? 11 : -1);
654
+ i0.ɵɵconditional(unroutedErrors_r40 > 0 ? 11 : -1);
501
655
  } }
502
- function MjRecordFormContainerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
503
- i0.ɵɵelementStart(0, "nav", 23);
504
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template, 8, 8, "button", 24)(2, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template, 12, 10);
656
+ function MjRecordFormContainerComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
657
+ i0.ɵɵelementStart(0, "nav", 58);
658
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template, 8, 8, "button", 59)(2, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template, 12, 10);
505
659
  i0.ɵɵelementEnd();
506
660
  } if (rf & 2) {
507
661
  const ctx_r1 = i0.ɵɵnextContext();
@@ -511,14 +665,14 @@ function MjRecordFormContainerComponent_Conditional_8_Template(rf, ctx) { if (rf
511
665
  i0.ɵɵadvance();
512
666
  i0.ɵɵconditional(ctx_r1.ChromeRailCollapsed ? 1 : 2);
513
667
  } }
514
- function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
515
- i0.ɵɵelement(0, "mj-form-contributions", 8);
668
+ function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
669
+ i0.ɵɵelement(0, "mj-form-contributions", 10);
516
670
  } if (rf & 2) {
517
671
  const ctx_r1 = i0.ɵɵnextContext();
518
672
  i0.ɵɵproperty("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent)("FormContext", ctx_r1.FormComponent.formContext)("BakedSectionKeys", ctx_r1.BakedRelatedSectionKeys)("ShowRelatedEntities", ctx_r1.EffectiveShowRelatedEntities);
519
673
  } }
520
- function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf, ctx) { if (rf & 1) {
521
- i0.ɵɵelementStart(0, "span", 62);
674
+ function MjRecordFormContainerComponent_Conditional_14_Conditional_5_Template(rf, ctx) { if (rf & 1) {
675
+ i0.ɵɵelementStart(0, "span", 97);
522
676
  i0.ɵɵtext(1);
523
677
  i0.ɵɵelementEnd();
524
678
  } if (rf & 2) {
@@ -526,35 +680,35 @@ function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf
526
680
  i0.ɵɵadvance();
527
681
  i0.ɵɵtextInterpolate(ctx_r1.MorePreview);
528
682
  } }
529
- function MjRecordFormContainerComponent_Conditional_12_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
530
- i0.ɵɵelementStart(0, "span", 54);
683
+ function MjRecordFormContainerComponent_Conditional_14_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
684
+ i0.ɵɵelementStart(0, "span", 89);
531
685
  i0.ɵɵtext(1);
532
686
  i0.ɵɵelementEnd();
533
687
  } if (rf & 2) {
534
688
  i0.ɵɵnextContext();
535
- const accordionMoreCount_r35 = i0.ɵɵreadContextLet(0);
689
+ const accordionMoreCount_r42 = i0.ɵɵreadContextLet(0);
536
690
  i0.ɵɵadvance();
537
- i0.ɵɵtextInterpolate(accordionMoreCount_r35);
691
+ i0.ɵɵtextInterpolate(accordionMoreCount_r42);
538
692
  } }
539
- function MjRecordFormContainerComponent_Conditional_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
693
+ function MjRecordFormContainerComponent_Conditional_14_Conditional_6_Template(rf, ctx) { if (rf & 1) {
540
694
  i0.ɵɵdeclareLet(0);
541
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_12_Conditional_6_Conditional_1_Template, 2, 1, "span", 54);
695
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_14_Conditional_6_Conditional_1_Template, 2, 1, "span", 89);
542
696
  } if (rf & 2) {
543
- const accordionMoreCount_r36 = i0.ɵɵstoreLet(i0.ɵɵnextContext(2).ChromeMoreRowCount);
697
+ const accordionMoreCount_r43 = i0.ɵɵstoreLet(i0.ɵɵnextContext(2).ChromeMoreRowCount);
544
698
  i0.ɵɵadvance();
545
- i0.ɵɵconditional(accordionMoreCount_r36 != null && accordionMoreCount_r36 > 0 ? 1 : -1);
699
+ i0.ɵɵconditional(accordionMoreCount_r43 != null && accordionMoreCount_r43 > 0 ? 1 : -1);
546
700
  } }
547
- function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
548
- const _r34 = i0.ɵɵgetCurrentView();
549
- i0.ɵɵelementStart(0, "div", 59)(1, "button", 60);
550
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
701
+ function MjRecordFormContainerComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
702
+ const _r41 = i0.ɵɵgetCurrentView();
703
+ i0.ɵɵelementStart(0, "div", 94)(1, "button", 95);
704
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_14_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
551
705
  i0.ɵɵelement(2, "i");
552
- i0.ɵɵelementStart(3, "span", 61);
706
+ i0.ɵɵelementStart(3, "span", 96);
553
707
  i0.ɵɵtext(4);
554
708
  i0.ɵɵelementEnd();
555
- i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template, 2, 1, "span", 62);
556
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_12_Conditional_6_Template, 2, 2);
557
- i0.ɵɵelement(7, "i", 63);
709
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_14_Conditional_5_Template, 2, 1, "span", 97);
710
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_14_Conditional_6_Template, 2, 2);
711
+ i0.ɵɵelement(7, "i", 98);
558
712
  i0.ɵɵelementEnd()();
559
713
  } if (rf & 2) {
560
714
  const ctx_r1 = i0.ɵɵnextContext();
@@ -570,57 +724,69 @@ function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (r
570
724
  i0.ɵɵadvance();
571
725
  i0.ɵɵclassProp("fa-chevron-down", ctx_r1.MoreExpanded)("fa-chevron-right", !ctx_r1.MoreExpanded);
572
726
  } }
573
- function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
574
- i0.ɵɵelement(0, "mj-form-panel-slot", 10);
727
+ function MjRecordFormContainerComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
728
+ i0.ɵɵelement(0, "mj-form-panel-slot", 12);
575
729
  } if (rf & 2) {
576
730
  const ctx_r1 = i0.ɵɵnextContext();
577
731
  i0.ɵɵproperty("Entity", ctx_r1.Record.EntityInfo.Name)("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent);
578
732
  } }
579
- function MjRecordFormContainerComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
580
- const _r37 = i0.ɵɵgetCurrentView();
581
- i0.ɵɵelementStart(0, "mj-empty-state", 64);
582
- i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_14_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
733
+ function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
734
+ const _r44 = i0.ɵɵgetCurrentView();
735
+ i0.ɵɵelementStart(0, "mj-empty-state", 99);
736
+ i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_16_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r44); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
583
737
  i0.ɵɵelementEnd();
584
738
  } if (rf & 2) {
585
739
  const ctx_r1 = i0.ɵɵnextContext();
586
740
  i0.ɵɵproperty("Message", "No sections match \"" + ctx_r1.EffectiveSearchFilter + "\". Try a different search term.");
587
741
  } }
588
- function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
589
- const _r38 = i0.ɵɵgetCurrentView();
590
- i0.ɵɵelementStart(0, "mj-record-changes", 65);
591
- i0.ɵɵlistener("RestoreRequested", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRestoreRequested($event)); })("dialogClosed", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
742
+ function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
743
+ const _r45 = i0.ɵɵgetCurrentView();
744
+ i0.ɵɵelementStart(0, "mj-record-changes", 100);
745
+ i0.ɵɵlistener("PreviewVersionSelected", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_changes_PreviewVersionSelected_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnPreviewVersionSelected($event)); })("RestoreRequested", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRestoreRequested($event)); })("dialogClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
592
746
  i0.ɵɵelementEnd();
593
747
  } if (rf & 2) {
594
748
  const ctx_r1 = i0.ɵɵnextContext();
595
- i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit);
749
+ i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit)("PreviewedChangeID", (ctx_r1.ActiveVersionPreview == null ? null : ctx_r1.ActiveVersionPreview.ChangeID) ?? null);
596
750
  } }
597
- function MjRecordFormContainerComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
598
- const _r39 = i0.ɵɵgetCurrentView();
599
- i0.ɵɵelementStart(0, "mj-record-tags", 66);
600
- i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelClosed()); })("TagCountChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_TagCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagCountChanged($event)); })("RecordNavigate", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_RecordNavigate_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsRecordNavigate($event)); })("WidthChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_WidthChanged_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
751
+ function MjRecordFormContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
752
+ const _r46 = i0.ɵɵgetCurrentView();
753
+ i0.ɵɵelementStart(0, "mj-record-tags", 101);
754
+ i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelClosed()); })("TagCountChanged", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_TagCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagCountChanged($event)); })("RecordNavigate", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_RecordNavigate_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsRecordNavigate($event)); })("WidthChanged", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_WidthChanged_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
601
755
  i0.ɵɵelementEnd();
602
756
  } if (rf & 2) {
603
757
  const ctx_r1 = i0.ɵɵnextContext();
604
758
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("WidthPx", ctx_r1.TagsPanelWidth);
605
759
  } }
606
- function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
607
- const _r40 = i0.ɵɵgetCurrentView();
608
- i0.ɵɵelementStart(0, "mj-record-attachments", 67);
609
- i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r40); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelClosed()); })("AttachmentCountChanged", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_AttachmentCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
760
+ function MjRecordFormContainerComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
761
+ const _r47 = i0.ɵɵgetCurrentView();
762
+ i0.ɵɵelementStart(0, "mj-record-links", 102);
763
+ i0.ɵɵlistener("Close", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_Close_0_listener() { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordLinksClosed()); })("LinkCountChange", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_LinkCountChange_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnLinkCountChanged($event)); })("LinksSummaryChange", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_LinksSummaryChange_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnLinksSummaryChanged($event)); })("Navigate", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNavigate($event)); });
764
+ i0.ɵɵelementEnd();
765
+ } if (rf & 2) {
766
+ const ctx_r1 = i0.ɵɵnextContext();
767
+ i0.ɵɵproperty("Provider", ctx_r1.Provider)("Record", ctx_r1.EffectiveRecord)("Mode", "drawer")("IsOpen", ctx_r1.ShowRecordLinks);
768
+ } }
769
+ function MjRecordFormContainerComponent_Conditional_21_Template(rf, ctx) { if (rf & 1) {
770
+ const _r48 = i0.ɵɵgetCurrentView();
771
+ i0.ɵɵelementStart(0, "mj-record-attachments", 103);
772
+ i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_21_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r48); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelClosed()); })("AttachmentCountChanged", function MjRecordFormContainerComponent_Conditional_21_Template_mj_record_attachments_AttachmentCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r48); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
610
773
  i0.ɵɵelementEnd();
611
774
  } if (rf & 2) {
612
775
  const ctx_r1 = i0.ɵɵnextContext();
613
776
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("Visible", true);
614
777
  } }
615
- function MjRecordFormContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
616
- const _r41 = i0.ɵɵgetCurrentView();
617
- i0.ɵɵelementStart(0, "mj-list-management-dialog", 68);
618
- i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementComplete($event)); })("cancel", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_cancel_0_listener() { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
778
+ function MjRecordFormContainerComponent_Conditional_22_Template(rf, ctx) { if (rf & 1) {
779
+ const _r49 = i0.ɵɵgetCurrentView();
780
+ i0.ɵɵelementStart(0, "mj-list-management-dialog", 104);
781
+ i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_22_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r49); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementComplete($event)); })("cancel", function MjRecordFormContainerComponent_Conditional_22_Template_mj_list_management_dialog_cancel_0_listener() { i0.ɵɵrestoreView(_r49); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
619
782
  i0.ɵɵelementEnd();
620
783
  } if (rf & 2) {
621
784
  const ctx_r1 = i0.ɵɵnextContext();
622
785
  i0.ɵɵproperty("visible", ctx_r1.ShowListManagement)("config", i0.ɵɵpureFunction3(4, _c3, ctx_r1.EffectiveRecord.EntityInfo.ID, ctx_r1.EffectiveRecord.EntityInfo.Name, i0.ɵɵpureFunction1(2, _c2, ctx_r1.EffectiveRecord.PrimaryKey.Values()[0])));
623
786
  } }
787
+ // Ensure built-in RecordLinksToolbarAction is never tree-shaken before ClassFactory registration
788
+ const _BUILTIN_TOOLBAR_ACTIONS = [RecordLinksToolbarAction];
789
+ void _BUILTIN_TOOLBAR_ACTIONS;
624
790
  /**
625
791
  * Top-level container that composes the toolbar, content slots, and sticky behavior.
626
792
  *
@@ -680,6 +846,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
680
846
  chromeRulesForEntityId = null;
681
847
  /** The form whose duplicate-check answers this container already re-renders on. */
682
848
  duplicateNoticeWiredFor = null;
849
+ // ---- Cross-tab / remote live update state ----
850
+ RemoteUpdatePill = null;
851
+ remoteUpdatePillTimer = null;
852
+ remoteRefreshInFlight = false;
853
+ lastLocalSaveAt = 0;
683
854
  // ---- Internal State ----
684
855
  /** Reference to the record changes drawer (when visible) for triggering refresh after save */
685
856
  recordChangesDrawer;
@@ -692,6 +863,21 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
692
863
  static TAGS_WIDTH_KEY = 'MJ_TagsPanel_Width';
693
864
  /** Number of tags on this record */
694
865
  TagCount = 0;
866
+ /** Controls visibility of links slide-in drawer */
867
+ ShowRecordLinks = false;
868
+ /** Number of linked records on this record */
869
+ LinkCount = 0;
870
+ /** Structured summary of outgoing + incoming links for the AI agent context */
871
+ LinksSummary = null;
872
+ /** Active historical version being previewed inline across form fields (Time-Travel Preview) */
873
+ ActiveVersionPreview = null;
874
+ activePreviewSourceChange = null;
875
+ liveRecordPreviewStash = null;
876
+ previewableChangesCache = [];
877
+ /** Unique list of field diffs for the active version preview banner chips */
878
+ PreviewChangedFieldChips = [];
879
+ /** Number of active field conflicts during edit mode */
880
+ ConflictCount = 0;
695
881
  /** Controls visibility of attachments slide panel */
696
882
  ShowAttachmentsPanel = false;
697
883
  /** Number of attachments linked to this record */
@@ -818,6 +1004,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
818
1004
  AfterLayoutResolved = new EventEmitter();
819
1005
  BeforeSectionActivate = new EventEmitter();
820
1006
  AfterSectionActivated = new EventEmitter();
1007
+ /** Emitted when the user clicks "Ask AI" in the form toolbar to open the AI overlay with record context */
1008
+ AskAIRequested = new EventEmitter();
821
1009
  // ---- Content Children ----
822
1010
  Panels;
823
1011
  // ---- FormComponent accessor ----
@@ -900,8 +1088,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
900
1088
  const registered = this.Fc?.RegisteredToolbarItems && this.Fc.RegisteredToolbarItems.length > 0
901
1089
  ? this.Fc.RegisteredToolbarItems
902
1090
  : this.RegisteredToolbarItems;
1091
+ const pluggable = this.pluggableToolbarItemConfigs(registered);
903
1092
  const manage = this.managePanelsToolbarItem();
904
- return manage ? [...registered, manage] : [...registered];
1093
+ return [
1094
+ ...pluggable,
1095
+ ...registered,
1096
+ ...(manage ? [manage] : []),
1097
+ ];
905
1098
  }
906
1099
  /** Memoised so the toolbar's identity check does not see a new object every pass. */
907
1100
  managePanelsItem = null;
@@ -1173,11 +1366,29 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1173
1366
  this.sectionIndicators.Changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
1174
1367
  this.cdr.markForCheck();
1175
1368
  });
1369
+ // A section that draws itself only once its data has loaded mounts inside a slot
1370
+ // after `slots.changes` fired, so none of the triggers above see it. The rail is
1371
+ // worked out from the sections on the page: file the newcomer (or drop the leaver).
1372
+ this.chrome.SectionsChanged.pipe(takeUntil(this.destroy$)).subscribe(() => {
1373
+ this.scheduleChromeResolve();
1374
+ });
1176
1375
  this.restoreChromePrefs();
1177
1376
  this.scheduleChromeResolve();
1178
1377
  // Watch for changes to record dirty state
1179
1378
  this.watchRecordChanges();
1180
1379
  this.wireDuplicateEntryCheck();
1380
+ this.wireRemoteRecordInvalidation();
1381
+ this.recordRefresh.ConflictsChanged$.pipe(takeUntil(this.destroy$)).subscribe((conflicts) => {
1382
+ this.ConflictCount = conflicts.size;
1383
+ this.cdr.markForCheck();
1384
+ });
1385
+ this.recordRefresh.VersionPreviewChanged$.pipe(takeUntil(this.destroy$)).subscribe((preview) => {
1386
+ this.ActiveVersionPreview = preview;
1387
+ this.cdr.markForCheck();
1388
+ });
1389
+ this.recordRefresh.SingleFieldRestoreRequested$.pipe(takeUntil(this.destroy$)).subscribe((req) => {
1390
+ void this.onSingleFieldRestoreRequested(req);
1391
+ });
1181
1392
  }
1182
1393
  /**
1183
1394
  * Edit mode and Show Empty Fields both flip `mj-panel-empty` on a panel whose
@@ -1209,6 +1420,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1209
1420
  }
1210
1421
  ngOnDestroy() {
1211
1422
  this.destroyed = true;
1423
+ this.destroyToolbarActions();
1212
1424
  // A count or chrome-rule result still in flight then matches nothing and is dropped.
1213
1425
  this.countRequestToken++;
1214
1426
  this.chromeRulesForEntityId = null;
@@ -1217,6 +1429,10 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1217
1429
  clearTimeout(this.chromeResolveTimer);
1218
1430
  this.chromeResolveTimer = null;
1219
1431
  }
1432
+ if (this.remoteUpdatePillTimer) {
1433
+ clearTimeout(this.remoteUpdatePillTimer);
1434
+ this.remoteUpdatePillTimer = null;
1435
+ }
1220
1436
  this.panelNavReset$.next();
1221
1437
  this.panelNavReset$.complete();
1222
1438
  this.destroy$.next();
@@ -1704,6 +1920,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1704
1920
  HiddenContributionKeys: hiddenContributionKeys,
1705
1921
  SlotsPresent: this.Fc?.OwnsEntireFormBody ? [] : this.slots.PresentSlots,
1706
1922
  ChromeRuleCount: this.chromeRules.length,
1923
+ RecordState: this.buildAgentRecordState(record),
1924
+ Links: this.LinksSummary ?? undefined,
1707
1925
  });
1708
1926
  // The builder emits a fixed key order, so equal snapshots have equal JSON.
1709
1927
  const json = JSON.stringify(snapshot);
@@ -2292,6 +2510,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2292
2510
  * All queries run in parallel for performance.
2293
2511
  */
2294
2512
  badgeCountsLoaded = false;
2513
+ toolbarActions = [];
2514
+ toolbarActionsEntityName = null;
2515
+ toolbarActionsInitRecord = null;
2295
2516
  loadBadgeCounts() {
2296
2517
  if (this.badgeCountsLoaded)
2297
2518
  return;
@@ -2301,6 +2522,250 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2301
2522
  this.badgeCountsLoaded = true;
2302
2523
  // Fire and forget — counts land while the form renders; nothing awaits them.
2303
2524
  void this.loadFormCounts(record);
2525
+ void this.PrewarmToolbarActions(record);
2526
+ }
2527
+ /**
2528
+ * Returns the instantiated {@link BaseFormToolbarAction} plugins matching the active entity.
2529
+ */
2530
+ GetToolbarActions() {
2531
+ return this.ensureToolbarActions();
2532
+ }
2533
+ ensureToolbarActions() {
2534
+ const entityInfo = this.EffectiveEntityInfo;
2535
+ const entityName = entityInfo?.Name ?? null;
2536
+ if (entityName !== this.toolbarActionsEntityName) {
2537
+ this.destroyToolbarActions();
2538
+ this.toolbarActionsEntityName = entityName;
2539
+ this.toolbarActions = ResolveFormToolbarActionsForEntity(entityInfo);
2540
+ this.toolbarActionsInitRecord = null;
2541
+ }
2542
+ const record = this.EffectiveRecord;
2543
+ if (record && record.EntityInfo && this.toolbarActionsInitRecord !== record) {
2544
+ this.toolbarActionsInitRecord = record;
2545
+ for (const action of this.toolbarActions) {
2546
+ const ctx = this.buildToolbarActionContext(action, record);
2547
+ if (action.IsApplicable(ctx)) {
2548
+ void action.OnInit(ctx);
2549
+ }
2550
+ }
2551
+ }
2552
+ return this.toolbarActions;
2553
+ }
2554
+ destroyToolbarActions() {
2555
+ for (const action of this.toolbarActions) {
2556
+ try {
2557
+ action.OnDestroy();
2558
+ }
2559
+ catch {
2560
+ // Ignore teardown errors
2561
+ }
2562
+ }
2563
+ this.toolbarActions = [];
2564
+ this.toolbarActionsEntityName = null;
2565
+ this.toolbarActionsInitRecord = null;
2566
+ }
2567
+ pluggableToolbarItemConfigs(explicitItems) {
2568
+ const record = this.EffectiveRecord;
2569
+ const entityInfo = this.EffectiveEntityInfo;
2570
+ if (!record || !entityInfo)
2571
+ return [];
2572
+ const explicitKeys = new Set(explicitItems.map((i) => i.Key.trim().toLowerCase()));
2573
+ const actions = this.ensureToolbarActions();
2574
+ const out = [];
2575
+ for (const action of actions) {
2576
+ const keyLower = action.Metadata.Key.trim().toLowerCase();
2577
+ if (explicitKeys.has(keyLower))
2578
+ continue;
2579
+ if (keyLower === 'links' && this.EffectiveToolbarConfig.ShowLinksButton === false) {
2580
+ continue;
2581
+ }
2582
+ if (keyLower === 'links') {
2583
+ action.IsActive = this.ShowRecordLinks;
2584
+ if (this.LinkCount > 0) {
2585
+ action.Badge = this.LinkCount;
2586
+ }
2587
+ }
2588
+ const ctx = this.buildToolbarActionContext(action, record);
2589
+ if (!action.IsApplicable(ctx))
2590
+ continue;
2591
+ out.push(action.ToToolbarItemConfig((event) => {
2592
+ const execCtx = this.buildToolbarActionContext(action, this.EffectiveRecord ?? record);
2593
+ return action.OnExecute(execCtx, event);
2594
+ }));
2595
+ }
2596
+ return out;
2597
+ }
2598
+ buildToolbarActionContext(action, recordOverride) {
2599
+ const record = (recordOverride ?? this.EffectiveRecord);
2600
+ const entityInfo = (this.EffectiveEntityInfo ?? record?.EntityInfo);
2601
+ const isPinned = this.IsToolbarActionPinned(action.Metadata.Key);
2602
+ const isVisibleOnBar = action.Metadata.Pinnable === false || isPinned;
2603
+ return {
2604
+ Record: record,
2605
+ EntityInfo: entityInfo,
2606
+ Provider: this.ProviderToUse,
2607
+ EditMode: this.EffectiveEditMode,
2608
+ IsDirty: this.EffectiveIsDirty,
2609
+ IsPinned: isPinned,
2610
+ IsVisibleOnBar: isVisibleOnBar,
2611
+ FormComponent: this.Fc,
2612
+ SetBadge: (badge) => {
2613
+ action.Badge = badge ?? undefined;
2614
+ if (action.Metadata.Key === 'links') {
2615
+ this.LinkCount = typeof badge === 'number' ? badge : 0;
2616
+ }
2617
+ },
2618
+ SetLoading: (loading) => {
2619
+ action.IsLoading = loading;
2620
+ },
2621
+ SetDisabled: (disabled, reason) => {
2622
+ action.Disabled = disabled;
2623
+ action.DisabledReason = reason;
2624
+ },
2625
+ SetActive: (active) => {
2626
+ action.IsActive = active;
2627
+ },
2628
+ SetRecordLinksDrawerOpen: (open) => {
2629
+ this.ShowRecordLinks = open;
2630
+ },
2631
+ IsRecordLinksDrawerOpen: () => this.ShowRecordLinks,
2632
+ SetLinksSummary: (summary) => {
2633
+ this.LinksSummary = summary;
2634
+ this.LinkCount = summary.TotalCount;
2635
+ this.scheduleChromeResolve();
2636
+ },
2637
+ RequestChangeDetection: () => {
2638
+ this.cdr.markForCheck();
2639
+ },
2640
+ };
2641
+ }
2642
+ /**
2643
+ * Returns true when the given toolbar action key is pinned for the current user
2644
+ * (either in their saved `mj.form.toolbar.pinnedActions` setting or in `DefaultPinnedActions`).
2645
+ */
2646
+ IsToolbarActionPinned(key) {
2647
+ try {
2648
+ const provider = this.ProviderToUse;
2649
+ const engine = provider
2650
+ ? UserInfoEngine.GetProviderInstance(provider, UserInfoEngine)
2651
+ : UserInfoEngine.Instance;
2652
+ const activeEngine = engine?.Loaded ? engine : UserInfoEngine.Instance;
2653
+ const raw = activeEngine?.GetSetting(TOOLBAR_PINS_SETTING_KEY);
2654
+ if (raw) {
2655
+ const parsed = JSON.parse(raw);
2656
+ if (Array.isArray(parsed.Pinned)) {
2657
+ return parsed.Pinned.includes(key);
2658
+ }
2659
+ }
2660
+ }
2661
+ catch {
2662
+ // Fall back to default pinned actions
2663
+ }
2664
+ const defaults = this.EffectiveToolbarConfig?.DefaultPinnedActions ?? DEFAULT_PINNED_TOOLBAR_ACTIONS;
2665
+ return defaults.includes(key);
2666
+ }
2667
+ /**
2668
+ * Returns true when the 'links' toolbar action is pinned for the current user.
2669
+ */
2670
+ IsLinksActionPinned() {
2671
+ return this.IsToolbarActionPinned('links');
2672
+ }
2673
+ /**
2674
+ * Invoked when the user pins or unpins an action in `<mj-form-toolbar>`.
2675
+ * Notifies the corresponding {@link BaseFormToolbarAction} via `OnPinStateChanged`.
2676
+ */
2677
+ OnToolbarActionPinChanged(event) {
2678
+ const record = this.EffectiveRecord;
2679
+ if (!record?.EntityInfo)
2680
+ return;
2681
+ const actions = this.ensureToolbarActions();
2682
+ const matched = actions.find((a) => a.Metadata.Key.toLowerCase() === event.Key.toLowerCase());
2683
+ if (!matched)
2684
+ return;
2685
+ const ctx = this.buildToolbarActionContext(matched, record);
2686
+ void matched.OnPinStateChanged(ctx, event.Pinned);
2687
+ }
2688
+ /**
2689
+ * Runs `OnPrewarm` across all applicable {@link BaseFormToolbarAction} plugins for the active record.
2690
+ */
2691
+ async PrewarmToolbarActions(record) {
2692
+ if (!record?.EntityInfo)
2693
+ return;
2694
+ const actions = this.ensureToolbarActions();
2695
+ await Promise.all(actions.map(async (action) => {
2696
+ const ctx = this.buildToolbarActionContext(action, record);
2697
+ if (!action.IsApplicable(ctx))
2698
+ return;
2699
+ await action.OnPrewarm(ctx);
2700
+ }));
2701
+ }
2702
+ async prewarmRecordLinks(record) {
2703
+ if (!record?.IsSaved || !record.EntityInfo)
2704
+ return;
2705
+ const actions = this.ensureToolbarActions();
2706
+ const linksAction = actions.find((a) => a.Metadata.Key === 'links');
2707
+ if (linksAction) {
2708
+ const ctx = this.buildToolbarActionContext(linksAction, record);
2709
+ if (linksAction.IsApplicable(ctx)) {
2710
+ await linksAction.OnPrewarm(ctx);
2711
+ }
2712
+ }
2713
+ }
2714
+ buildAgentRecordState(record) {
2715
+ if (!record || !Array.isArray(record.Fields) || record.Fields.length === 0) {
2716
+ return undefined;
2717
+ }
2718
+ const entityInfo = record.EntityInfo;
2719
+ const nameField = entityInfo?.NameField?.Name;
2720
+ const rawDisplayName = nameField
2721
+ ? record.Fields.find((f) => f.Name === nameField)?.Value
2722
+ : undefined;
2723
+ const recordDisplayName = rawDisplayName !== null && rawDisplayName !== undefined && String(rawDisplayName).trim().length > 0
2724
+ ? String(rawDisplayName).trim()
2725
+ : record.PrimaryKey?.ToConcatenatedString?.() || null;
2726
+ const keyFields = {};
2727
+ let count = 0;
2728
+ for (const field of record.Fields) {
2729
+ if (count >= 16)
2730
+ break;
2731
+ if (field.Name.startsWith('__mj_'))
2732
+ continue;
2733
+ const val = field.Value;
2734
+ if (val === null || val === undefined || val === '')
2735
+ continue;
2736
+ if (typeof val === 'string') {
2737
+ if (val.length > 160) {
2738
+ keyFields[field.Name] = `${val.slice(0, 157)}...`;
2739
+ }
2740
+ else {
2741
+ keyFields[field.Name] = val;
2742
+ }
2743
+ count++;
2744
+ }
2745
+ else if (typeof val === 'number' || typeof val === 'boolean') {
2746
+ keyFields[field.Name] = val;
2747
+ count++;
2748
+ }
2749
+ else if (val instanceof Date && !isNaN(val.getTime())) {
2750
+ keyFields[field.Name] = val.toISOString();
2751
+ count++;
2752
+ }
2753
+ }
2754
+ return {
2755
+ DisplayName: recordDisplayName,
2756
+ RecordDisplayName: recordDisplayName,
2757
+ EditMode: this.EffectiveEditMode,
2758
+ IsDirty: this.EffectiveIsDirty,
2759
+ Dirty: this.EffectiveIsDirty,
2760
+ DirtyFields: this.EffectiveDirtyFieldNames,
2761
+ DirtyFieldNames: this.EffectiveDirtyFieldNames,
2762
+ HasExternalUpdateConflict: this.ConflictCount > 0,
2763
+ PreviewingHistoricalChangeID: this.ActiveVersionPreview?.ChangeID ?? null,
2764
+ ConflictCount: this.ConflictCount,
2765
+ VersionCount: this.VersionCount,
2766
+ TagCount: this.TagCount,
2767
+ KeyFields: keyFields,
2768
+ };
2304
2769
  }
2305
2770
  /**
2306
2771
  * ONE `RunViews` call for every count the form shows: each related section's
@@ -2503,6 +2968,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2503
2968
  * Edit mode change: delegate to FormComponent if available, otherwise re-emit.
2504
2969
  */
2505
2970
  OnEditModeChange(editMode) {
2971
+ if (editMode && this.ActiveVersionPreview) {
2972
+ this.OnExitVersionPreview();
2973
+ }
2974
+ if (!editMode) {
2975
+ this.recordRefresh.ClearAllConflicts();
2976
+ }
2506
2977
  if (this.Fc) {
2507
2978
  if (editMode) {
2508
2979
  this.Fc.StartEditMode();
@@ -2525,11 +2996,15 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2525
2996
  this.IsSaving = true;
2526
2997
  this.cdr.markForCheck();
2527
2998
  try {
2999
+ this.lastLocalSaveAt = Date.now();
2528
3000
  await this.Fc.SaveRecord(true);
3001
+ this.lastLocalSaveAt = Date.now();
3002
+ this.recordRefresh.ClearAllConflicts();
2529
3003
  // After successful save, refresh version count badge and record changes drawer
2530
3004
  this.refreshAfterSave();
2531
3005
  }
2532
3006
  finally {
3007
+ this.lastLocalSaveAt = Date.now();
2533
3008
  // Use microtask timing to avoid ExpressionChangedAfterItHasBeenCheckedError
2534
3009
  await Promise.resolve();
2535
3010
  this.ngZone.run(() => {
@@ -2562,6 +3037,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2562
3037
  * Cancel: delegate to FormComponent if available, otherwise re-emit.
2563
3038
  */
2564
3039
  OnCancelRequested() {
3040
+ this.recordRefresh.ClearAllConflicts();
2565
3041
  if (this.Fc?.CancelEdit) {
2566
3042
  this.Fc.CancelEdit();
2567
3043
  this.cdr.markForCheck();
@@ -2607,6 +3083,342 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2607
3083
  }
2608
3084
  this.recordRefresh.Notify(record);
2609
3085
  }
3086
+ /**
3087
+ * Listens for cross-tab (`remote-invalidate`) and cross-instance (`save`) BaseEntity events
3088
+ * for the currently open record.
3089
+ *
3090
+ * - When NOT in Edit Mode (and clean): auto-refreshes the record in place, highlights any
3091
+ * changed fields via {@link FormRecordRefreshCoordinator.NotifyRemoteUpdate}, and displays
3092
+ * a non-intrusive slide-in pill that auto-dismisses after a few seconds.
3093
+ * - When IN Edit Mode (or dirty): never overwrites unsaved work; shows a non-intrusive notice
3094
+ * pill offering a one-click Reload action.
3095
+ */
3096
+ wireRemoteRecordInvalidation() {
3097
+ MJGlobal.Instance.GetEventListener(false)
3098
+ .pipe(takeUntil(this.destroy$))
3099
+ .subscribe((e) => {
3100
+ if (this.destroyed || e.eventCode !== BaseEntity.BaseEventCode)
3101
+ return;
3102
+ const entityEvt = e.args;
3103
+ if (!entityEvt)
3104
+ return;
3105
+ const record = this.EffectiveRecord;
3106
+ if (!record || !record.IsSaved || !record.EntityInfo)
3107
+ return;
3108
+ if (entityEvt.type === 'save' && entityEvt.baseEntity === record) {
3109
+ this.lastLocalSaveAt = Date.now();
3110
+ return;
3111
+ }
3112
+ let matchesCurrentRecord = false;
3113
+ if (entityEvt.type === 'remote-invalidate') {
3114
+ // Ignore server echo from a save that just occurred on this form instance
3115
+ if (Date.now() - this.lastLocalSaveAt < 2000)
3116
+ return;
3117
+ const payload = entityEvt.payload;
3118
+ const eventEntityName = entityEvt.entityName || payload?.entityName;
3119
+ if (!payload || payload.action !== 'save' || !eventEntityName || !payload.primaryKeyValues)
3120
+ return;
3121
+ if (eventEntityName.trim().toLowerCase() !== record.EntityInfo.Name.trim().toLowerCase())
3122
+ return;
3123
+ matchesCurrentRecord = this.matchesRemotePrimaryKey(record, payload.primaryKeyValues);
3124
+ }
3125
+ else if (entityEvt.type === 'save' && entityEvt.baseEntity && entityEvt.baseEntity !== record) {
3126
+ if (entityEvt.baseEntity.EntityInfo?.Name === record.EntityInfo.Name) {
3127
+ matchesCurrentRecord = entityEvt.baseEntity.PrimaryKey.Equals(record.PrimaryKey);
3128
+ }
3129
+ }
3130
+ if (!matchesCurrentRecord || this.IsSaving || this.remoteRefreshInFlight)
3131
+ return;
3132
+ this.ngZone.run(() => {
3133
+ if (this.EffectiveEditMode || this.EffectiveIsDirty) {
3134
+ void this.PerformLiveEditModeMerge(record);
3135
+ }
3136
+ else {
3137
+ void this.performLiveRemoteRefresh(record);
3138
+ }
3139
+ });
3140
+ });
3141
+ }
3142
+ matchesRemotePrimaryKey(record, primaryKeyValuesRaw) {
3143
+ const trimmed = primaryKeyValuesRaw.trim();
3144
+ if (!trimmed)
3145
+ return false;
3146
+ // MJServer serializes primaryKeyValues as JSON.stringify(entityObject.PrimaryKey.KeyValuePairs)
3147
+ if (trimmed.startsWith('[')) {
3148
+ try {
3149
+ const parsed = JSON.parse(trimmed);
3150
+ if (Array.isArray(parsed) && parsed.length > 0) {
3151
+ const pairs = parsed
3152
+ .filter((kv) => typeof kv?.FieldName === 'string')
3153
+ .map((kv) => new KeyValuePair(kv.FieldName, kv.Value));
3154
+ if (pairs.length > 0) {
3155
+ const incomingKey = CompositeKey.FromKeyValuePairs(pairs);
3156
+ if (incomingKey.Equals(record.PrimaryKey))
3157
+ return true;
3158
+ if (pairs.length === 1 && UUIDsEqual(String(pairs[0].Value ?? ''), String(record.PrimaryKey.Values()))) {
3159
+ return true;
3160
+ }
3161
+ }
3162
+ }
3163
+ }
3164
+ catch {
3165
+ // Fall through to URL segment / string comparisons below
3166
+ }
3167
+ }
3168
+ const incomingFromSegment = CompositeKey.FromURLSegment(record.EntityInfo, trimmed);
3169
+ return (incomingFromSegment.Equals(record.PrimaryKey) ||
3170
+ UUIDsEqual(trimmed, record.PrimaryKey.ToConcatenatedString()) ||
3171
+ UUIDsEqual(trimmed, String(record.PrimaryKey.Values())));
3172
+ }
3173
+ async performLiveRemoteRefresh(record) {
3174
+ if (this.remoteRefreshInFlight || this.destroyed)
3175
+ return;
3176
+ this.remoteRefreshInFlight = true;
3177
+ try {
3178
+ const beforeValues = { ...record.GetAll() };
3179
+ const refreshed = await record.Refresh();
3180
+ if (!refreshed || this.destroyed)
3181
+ return;
3182
+ const afterValues = record.GetAll();
3183
+ const changedFieldSet = new Set();
3184
+ const changedLabels = [];
3185
+ for (const field of record.EntityInfo.Fields) {
3186
+ const beforeVal = beforeValues[field.Name];
3187
+ const afterVal = afterValues[field.Name];
3188
+ const beforeStr = beforeVal instanceof Date ? beforeVal.toISOString() : String(beforeVal ?? '');
3189
+ const afterStr = afterVal instanceof Date ? afterVal.toISOString() : String(afterVal ?? '');
3190
+ if (beforeStr !== afterStr) {
3191
+ changedFieldSet.add(field.Name.toLowerCase());
3192
+ if (field.CodeName) {
3193
+ changedFieldSet.add(field.CodeName.toLowerCase());
3194
+ }
3195
+ if (!field.Name.startsWith('__mj_')) {
3196
+ changedLabels.push(field.DisplayNameOrName);
3197
+ }
3198
+ }
3199
+ }
3200
+ this.badgeCountsLoaded = false;
3201
+ this.loadBadgeCounts();
3202
+ if (this.ShowRecordChanges && this.recordChangesDrawer) {
3203
+ this.recordChangesDrawer.Refresh();
3204
+ }
3205
+ this.recordRefresh.NotifyRemoteUpdate(record, changedFieldSet);
3206
+ this.scheduleChromeResolve();
3207
+ const summary = changedLabels.length === 1
3208
+ ? `Updated live · ${changedLabels[0]} changed`
3209
+ : changedLabels.length > 1
3210
+ ? `Updated live · ${changedLabels.slice(0, 2).join(', ')}${changedLabels.length > 2 ? ` +${changedLabels.length - 2} more` : ''} changed`
3211
+ : 'Updated live';
3212
+ this.showRemoteUpdatePill({
3213
+ Kind: 'refreshed',
3214
+ Summary: summary,
3215
+ ChangedFields: changedLabels,
3216
+ }, true);
3217
+ this.Fc?.cdr?.detectChanges();
3218
+ this.cdr.detectChanges();
3219
+ }
3220
+ catch (err) {
3221
+ LogError(`Live form auto-refresh failed for ${record.EntityInfo.Name}: ${err instanceof Error ? err.message : String(err)}`);
3222
+ }
3223
+ finally {
3224
+ this.remoteRefreshInFlight = false;
3225
+ }
3226
+ }
3227
+ /**
3228
+ * Performs a field-by-field live merge when a remote update arrives while the user is in Edit Mode:
3229
+ * - Clean fields (`!field.Dirty`) whose server value changed are silently auto-merged in place and stay clean.
3230
+ * - Dirty fields (`field.Dirty`) whose current user edit matches the new server value converge cleanly.
3231
+ * - Dirty fields (`field.Dirty`) whose current user edit differs from the new server value preserve the user's
3232
+ * edit, update `OldValue` to the new server baseline, and raise a {@link FormFieldConflict}.
3233
+ */
3234
+ async PerformLiveEditModeMerge(record) {
3235
+ if (this.remoteRefreshInFlight || this.destroyed)
3236
+ return;
3237
+ this.remoteRefreshInFlight = true;
3238
+ try {
3239
+ const rv = RunView.FromMetadataProvider(this.ProviderToUse);
3240
+ const pk = record.PrimaryKey;
3241
+ const whereClause = typeof pk?.ToWhereClause === 'function'
3242
+ ? pk.ToWhereClause()
3243
+ : typeof pk?.WhereClause === 'function'
3244
+ ? pk.WhereClause()
3245
+ : '';
3246
+ const result = await rv.RunView({
3247
+ EntityName: record.EntityInfo.Name,
3248
+ ExtraFilter: whereClause,
3249
+ ResultType: 'simple',
3250
+ BypassCache: true,
3251
+ MaxRows: 1,
3252
+ });
3253
+ if (!result?.Success || !Array.isArray(result.Results) || result.Results.length === 0 || this.destroyed) {
3254
+ return;
3255
+ }
3256
+ const remoteRow = result.Results[0];
3257
+ const changedFieldSet = new Set();
3258
+ const autoMergedPreviousValues = new Map();
3259
+ const conflicts = new Map();
3260
+ const autoMergedLabels = [];
3261
+ const conflictLabels = [];
3262
+ for (const field of record.Fields) {
3263
+ if (!(field.Name in remoteRow)) {
3264
+ continue;
3265
+ }
3266
+ const remoteVal = remoteRow[field.Name];
3267
+ // Always update system timestamp fields (__mj_UpdatedAt, __mj_CreatedAt)
3268
+ if (field.Name.startsWith('__mj_')) {
3269
+ if (this.formatComparableValue(remoteVal) !== this.formatComparableValue(field.Value)) {
3270
+ if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
3271
+ field.ResetNeverSetFlag();
3272
+ }
3273
+ field.Value = remoteVal;
3274
+ field.ResetOldValue();
3275
+ }
3276
+ continue;
3277
+ }
3278
+ const remoteDiffersFromBaseline = this.formatComparableValue(remoteVal) !== this.formatComparableValue(field.OldValue);
3279
+ if (!remoteDiffersFromBaseline) {
3280
+ continue;
3281
+ }
3282
+ if (!field.Dirty) {
3283
+ // Clean locally: silently auto-merge and keep Dirty === false
3284
+ const previousVal = field.Value;
3285
+ autoMergedPreviousValues.set(field.Name.toLowerCase(), previousVal);
3286
+ if (field.CodeName) {
3287
+ autoMergedPreviousValues.set(field.CodeName.toLowerCase(), previousVal);
3288
+ }
3289
+ if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
3290
+ field.ResetNeverSetFlag();
3291
+ }
3292
+ field.Value = remoteVal;
3293
+ field.ResetOldValue();
3294
+ changedFieldSet.add(field.Name.toLowerCase());
3295
+ if (field.CodeName) {
3296
+ changedFieldSet.add(field.CodeName.toLowerCase());
3297
+ }
3298
+ const fieldWithLabel = field;
3299
+ autoMergedLabels.push(field.EntityFieldInfo?.DisplayNameOrName || fieldWithLabel.DisplayNameOrName || field.Name);
3300
+ }
3301
+ else {
3302
+ // Dirty locally: check if user edit converged with remote value
3303
+ if (this.formatComparableValue(field.Value) === this.formatComparableValue(remoteVal)) {
3304
+ field.Value = remoteVal;
3305
+ field.ResetOldValue();
3306
+ this.recordRefresh.ResolveConflict(field.Name);
3307
+ }
3308
+ else {
3309
+ // True conflict: preserve user's edit, update OldValue baseline to remoteVal
3310
+ const previousServerValue = field.OldValue;
3311
+ const userVal = field.Value;
3312
+ field.Value = remoteVal;
3313
+ field.ResetOldValue();
3314
+ field.Value = userVal;
3315
+ const conflict = {
3316
+ fieldName: field.Name,
3317
+ previousServerValue,
3318
+ incomingServerValue: remoteVal,
3319
+ localEditedValue: userVal,
3320
+ };
3321
+ conflicts.set(field.Name.toLowerCase(), conflict);
3322
+ changedFieldSet.add(field.Name.toLowerCase());
3323
+ if (field.CodeName) {
3324
+ changedFieldSet.add(field.CodeName.toLowerCase());
3325
+ }
3326
+ const fieldWithLabel = field;
3327
+ conflictLabels.push(field.EntityFieldInfo?.DisplayNameOrName || fieldWithLabel.DisplayNameOrName || field.Name);
3328
+ }
3329
+ }
3330
+ }
3331
+ if (changedFieldSet.size > 0 || conflicts.size > 0) {
3332
+ this.recordRefresh.NotifyRemoteUpdate(record, changedFieldSet, autoMergedPreviousValues, conflicts);
3333
+ }
3334
+ if (conflictLabels.length > 0 && autoMergedLabels.length > 0) {
3335
+ this.showRemoteUpdatePill({
3336
+ Kind: 'stale-while-editing',
3337
+ Summary: `${autoMergedLabels.length} field${autoMergedLabels.length === 1 ? '' : 's'} updated live · ${conflictLabels.length} ${conflictLabels.length === 1 ? 'conflict needs' : 'conflicts need'} review`,
3338
+ ChangedFields: [...autoMergedLabels, ...conflictLabels],
3339
+ }, false);
3340
+ }
3341
+ else if (conflictLabels.length > 0) {
3342
+ this.showRemoteUpdatePill({
3343
+ Kind: 'stale-while-editing',
3344
+ Summary: `${conflictLabels.length} ${conflictLabels.length === 1 ? 'conflict needs' : 'conflicts need'} review (${conflictLabels.slice(0, 2).join(', ')})`,
3345
+ ChangedFields: conflictLabels,
3346
+ }, false);
3347
+ }
3348
+ else if (autoMergedLabels.length > 0) {
3349
+ const summary = autoMergedLabels.length === 1
3350
+ ? `Updated live · ${autoMergedLabels[0]} changed`
3351
+ : `Updated live · ${autoMergedLabels.slice(0, 2).join(', ')}${autoMergedLabels.length > 2 ? ` +${autoMergedLabels.length - 2} more` : ''} changed`;
3352
+ this.showRemoteUpdatePill({
3353
+ Kind: 'refreshed',
3354
+ Summary: summary,
3355
+ ChangedFields: autoMergedLabels,
3356
+ }, true);
3357
+ }
3358
+ this.Fc?.cdr?.detectChanges();
3359
+ this.cdr.detectChanges();
3360
+ }
3361
+ catch (err) {
3362
+ LogError(`Live edit-mode merge failed for ${record.EntityInfo.Name}: ${err instanceof Error ? err.message : String(err)}`);
3363
+ }
3364
+ finally {
3365
+ this.remoteRefreshInFlight = false;
3366
+ }
3367
+ }
3368
+ formatComparableValue(val) {
3369
+ if (val === null || val === undefined) {
3370
+ return '';
3371
+ }
3372
+ if (val instanceof Date) {
3373
+ return isNaN(val.getTime()) ? '' : val.toISOString();
3374
+ }
3375
+ if (typeof val === 'string') {
3376
+ const trimmed = val.trim();
3377
+ if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(trimmed)) {
3378
+ const parsed = new Date(trimmed);
3379
+ if (!isNaN(parsed.getTime())) {
3380
+ return parsed.toISOString();
3381
+ }
3382
+ }
3383
+ return trimmed;
3384
+ }
3385
+ return String(val);
3386
+ }
3387
+ showRemoteUpdatePill(pill, autoDismiss) {
3388
+ if (this.remoteUpdatePillTimer) {
3389
+ clearTimeout(this.remoteUpdatePillTimer);
3390
+ this.remoteUpdatePillTimer = null;
3391
+ }
3392
+ this.RemoteUpdatePill = pill;
3393
+ this.cdr.markForCheck();
3394
+ if (autoDismiss) {
3395
+ this.remoteUpdatePillTimer = setTimeout(() => {
3396
+ this.remoteUpdatePillTimer = null;
3397
+ if (!this.destroyed) {
3398
+ this.RemoteUpdatePill = null;
3399
+ this.cdr.markForCheck();
3400
+ }
3401
+ }, 4500);
3402
+ }
3403
+ }
3404
+ OnDismissRemoteUpdatePill() {
3405
+ if (this.remoteUpdatePillTimer) {
3406
+ clearTimeout(this.remoteUpdatePillTimer);
3407
+ this.remoteUpdatePillTimer = null;
3408
+ }
3409
+ this.RemoteUpdatePill = null;
3410
+ this.cdr.markForCheck();
3411
+ }
3412
+ async OnReloadFromRemotePill() {
3413
+ this.OnDismissRemoteUpdatePill();
3414
+ const record = this.EffectiveRecord;
3415
+ if (!record)
3416
+ return;
3417
+ if (this.Fc && this.EffectiveEditMode) {
3418
+ this.Fc.EndEditMode();
3419
+ }
3420
+ await this.performLiveRemoteRefresh(record);
3421
+ }
2610
3422
  /**
2611
3423
  * Delete, Favorite, History, Lists, ShowChanges: always re-emit for host app.
2612
3424
  */
@@ -2622,6 +3434,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2622
3434
  this.BeforeHistoryView.emit(beforeEvent);
2623
3435
  if (beforeEvent.Cancel)
2624
3436
  return;
3437
+ // Ensure live record fields are restored before opening the history/restore drawer
3438
+ this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
2625
3439
  // If not cancelled, show built-in record changes drawer
2626
3440
  this.ShowRecordChanges = true;
2627
3441
  this.cdr.markForCheck();
@@ -2664,6 +3478,363 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2664
3478
  this.TagsPanelWidth = width;
2665
3479
  UserInfoEngine.Instance.SetSettingDebounced(MjRecordFormContainerComponent.TAGS_WIDTH_KEY, String(width));
2666
3480
  }
3481
+ OnToggleRecordLinks() {
3482
+ this.ShowRecordLinks = !this.ShowRecordLinks;
3483
+ this.cdr.detectChanges();
3484
+ }
3485
+ OnRecordLinksClosed() {
3486
+ this.ShowRecordLinks = false;
3487
+ this.cdr.detectChanges();
3488
+ }
3489
+ OnLinkCountChanged(count) {
3490
+ this.LinkCount = count;
3491
+ this.cdr.markForCheck();
3492
+ }
3493
+ OnLinksSummaryChanged(summary) {
3494
+ this.LinksSummary = summary;
3495
+ this.scheduleChromeResolve();
3496
+ this.cdr.markForCheck();
3497
+ }
3498
+ OnAskAIRequested() {
3499
+ // Publish the freshest composition snapshot (including current dirty edits + links) before opening AI
3500
+ this.resolveChrome();
3501
+ this.Fc?.AskAIRequested.emit();
3502
+ this.AskAIRequested.emit();
3503
+ }
3504
+ // ---- In-Form Time-Travel Historical Version Preview ----
3505
+ OnPreviewVersionSelected(event) {
3506
+ if (!event) {
3507
+ this.OnExitVersionPreview();
3508
+ return;
3509
+ }
3510
+ const change = 'Change' in event ? event.Change : event;
3511
+ if (this.recordChangesDrawer) {
3512
+ this.previewableChangesCache = this.recordChangesDrawer.GetPreviewableChanges();
3513
+ }
3514
+ const previewable = this.previewableChangesCache;
3515
+ const currentIndex = 'Change' in event && typeof event.Index === 'number'
3516
+ ? event.Index
3517
+ : Math.max(0, previewable.findIndex((c) => UUIDsEqual(c.ID, change.ID)));
3518
+ const totalCount = 'Change' in event && typeof event.TotalCount === 'number'
3519
+ ? event.TotalCount
3520
+ : Math.max(1, previewable.length);
3521
+ const record = this.EffectiveRecord;
3522
+ if (!record || !Array.isArray(record.Fields))
3523
+ return;
3524
+ // Close the slide-in Record Changes drawer automatically so the form is 100%
3525
+ // bright, unobstructed, and full-width under the Time-Travel Scrubber Bar.
3526
+ this.ShowRecordChanges = false;
3527
+ if (this.EffectiveEditMode && !this.EffectiveIsDirty) {
3528
+ this.OnEditModeChange(false);
3529
+ }
3530
+ // Restore live baseline first if stepping from one previewed version to another,
3531
+ // then capture a fresh stash of the true live values before rehydrating `record`.
3532
+ if (this.liveRecordPreviewStash) {
3533
+ this.restoreLiveRecordFromPreviewStash(record);
3534
+ }
3535
+ this.liveRecordPreviewStash = new Map();
3536
+ for (const field of record.Fields) {
3537
+ this.liveRecordPreviewStash.set(field.Name, {
3538
+ value: field.Value,
3539
+ oldValue: field.OldValue,
3540
+ });
3541
+ }
3542
+ const parsedSnapshot = {};
3543
+ if (change.FullRecordJSON) {
3544
+ try {
3545
+ const raw = JSON.parse(change.FullRecordJSON);
3546
+ for (const [k, v] of Object.entries(raw)) {
3547
+ parsedSnapshot[k.toLowerCase()] = v;
3548
+ }
3549
+ }
3550
+ catch {
3551
+ // Fallback to ChangesJSON below
3552
+ }
3553
+ }
3554
+ if (change.ChangesJSON) {
3555
+ try {
3556
+ const rawChanges = JSON.parse(change.ChangesJSON);
3557
+ for (const [k, v] of Object.entries(rawChanges)) {
3558
+ const fieldKey = (v?.field || k).toLowerCase();
3559
+ if (v && 'newValue' in v) {
3560
+ parsedSnapshot[fieldKey] = v.newValue;
3561
+ }
3562
+ }
3563
+ }
3564
+ catch {
3565
+ // Ignore malformed ChangesJSON
3566
+ }
3567
+ }
3568
+ // Synthesize calculated composite name fields (e.g. DisplayName / FullName on People)
3569
+ // because FullRecordJSON is captured before SQL Server recomputes computed columns.
3570
+ this.synthesizeCalculatedSnapshotFields(record, parsedSnapshot);
3571
+ const snapshotValues = {};
3572
+ const fieldDiffs = new Map();
3573
+ const diffChips = [];
3574
+ let diffCount = 0;
3575
+ for (const field of record.Fields) {
3576
+ if (field.Name.startsWith('__mj_'))
3577
+ continue;
3578
+ const lowerName = field.Name.toLowerCase();
3579
+ const lowerCode = field.CodeName ? field.CodeName.toLowerCase() : null;
3580
+ const liveBaseline = this.liveRecordPreviewStash.get(field.Name)?.value ?? field.Value;
3581
+ const hasHist = lowerName in parsedSnapshot || (lowerCode !== null && lowerCode in parsedSnapshot);
3582
+ const histVal = hasHist
3583
+ ? lowerName in parsedSnapshot
3584
+ ? parsedSnapshot[lowerName]
3585
+ : parsedSnapshot[lowerCode]
3586
+ : liveBaseline;
3587
+ snapshotValues[field.Name] = histVal;
3588
+ snapshotValues[lowerName] = histVal;
3589
+ if (field.CodeName) {
3590
+ snapshotValues[field.CodeName] = histVal;
3591
+ }
3592
+ if (lowerCode) {
3593
+ snapshotValues[lowerCode] = histVal;
3594
+ }
3595
+ if (!field.EntityFieldInfo?.IsPrimaryKey) {
3596
+ if (this.formatComparableValue(histVal) !== this.formatComparableValue(liveBaseline)) {
3597
+ const fieldWithLabel = field;
3598
+ const diff = {
3599
+ FieldName: field.Name,
3600
+ DisplayName: field.EntityFieldInfo?.DisplayNameOrName || fieldWithLabel.DisplayNameOrName || field.Name,
3601
+ HistoricalValue: histVal,
3602
+ CurrentLiveValue: liveBaseline,
3603
+ IsChanged: true,
3604
+ };
3605
+ fieldDiffs.set(lowerName, diff);
3606
+ if (lowerCode) {
3607
+ fieldDiffs.set(lowerCode, diff);
3608
+ }
3609
+ diffChips.push(diff);
3610
+ diffCount++;
3611
+ }
3612
+ // Rehydrate the in-memory BaseEntity field (including ReadOnly/calculated fields)
3613
+ // so custom header panels (e.g. PersonHeaderPanel / bizapps-person-identity) and
3614
+ // calculated fields reflect the previewed historical snapshot while keeping Dirty=false.
3615
+ if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
3616
+ field.ResetNeverSetFlag();
3617
+ }
3618
+ field.Value = histVal;
3619
+ if (typeof field.ResetOldValue === 'function') {
3620
+ field.ResetOldValue();
3621
+ }
3622
+ }
3623
+ }
3624
+ const changedAt = change.ChangedAt instanceof Date
3625
+ ? change.ChangedAt
3626
+ : new Date(String(change.ChangedAt));
3627
+ const versionLabel = !isNaN(changedAt.getTime())
3628
+ ? `${changedAt.toLocaleDateString(undefined, { month: 'short', day: 'numeric', year: 'numeric' })} · ${changedAt.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' })}`
3629
+ : String(change.ChangedAt ?? '');
3630
+ this.activePreviewSourceChange = change;
3631
+ this.PreviewChangedFieldChips = diffChips;
3632
+ this.recordRefresh.SetVersionPreview({
3633
+ ChangeID: change.ID,
3634
+ ChangedAt: changedAt,
3635
+ ChangedByUser: change.User || 'System',
3636
+ UserName: change.User || 'System',
3637
+ VersionLabel: versionLabel,
3638
+ ChangeType: change.Type || 'Update',
3639
+ Type: change.Type || 'Update',
3640
+ Source: change.Source || 'Internal',
3641
+ Summary: change.ChangesDescription || change.Comments || '',
3642
+ Comments: change.ChangesDescription || change.Comments || '',
3643
+ SnapshotValues: snapshotValues,
3644
+ FieldDiffs: fieldDiffs,
3645
+ DiffCount: diffCount,
3646
+ CurrentIndex: currentIndex,
3647
+ TotalRestoreableCount: totalCount,
3648
+ });
3649
+ this.scheduleChromeResolve();
3650
+ this.Fc?.cdr?.markForCheck();
3651
+ this.cdr.markForCheck();
3652
+ }
3653
+ synthesizeCalculatedSnapshotFields(record, parsedSnapshot) {
3654
+ const stash = this.liveRecordPreviewStash;
3655
+ if (!stash)
3656
+ return;
3657
+ const getLive = (name) => {
3658
+ const f = record.Fields.find((fld) => fld.Name.toLowerCase() === name.toLowerCase());
3659
+ if (!f)
3660
+ return '';
3661
+ const val = stash.get(f.Name)?.value ?? f.Value;
3662
+ return val !== null && val !== undefined ? String(val).trim() : '';
3663
+ };
3664
+ const getHist = (name) => {
3665
+ const key = name.toLowerCase();
3666
+ if (key in parsedSnapshot) {
3667
+ const val = parsedSnapshot[key];
3668
+ return val !== null && val !== undefined ? String(val).trim() : '';
3669
+ }
3670
+ return getLive(name);
3671
+ };
3672
+ const hasFirstLast = record.Fields.some((f) => f.Name.toLowerCase() === 'firstname') &&
3673
+ record.Fields.some((f) => f.Name.toLowerCase() === 'lastname');
3674
+ if (!hasFirstLast)
3675
+ return;
3676
+ const liveFirst = getLive('FirstName');
3677
+ const liveMiddle = getLive('MiddleName');
3678
+ const liveLast = getLive('LastName');
3679
+ const liveSuffix = getLive('Suffix');
3680
+ const histFirst = getHist('FirstName');
3681
+ const histMiddle = getHist('MiddleName');
3682
+ const histLast = getHist('LastName');
3683
+ const histSuffix = getHist('Suffix');
3684
+ const namePartsChanged = histFirst !== liveFirst ||
3685
+ histMiddle !== liveMiddle ||
3686
+ histLast !== liveLast ||
3687
+ histSuffix !== liveSuffix;
3688
+ if (!namePartsChanged)
3689
+ return;
3690
+ for (const calcFieldName of ['DisplayName', 'FullName', 'FirstLast']) {
3691
+ const calcField = record.Fields.find((f) => f.Name.toLowerCase() === calcFieldName.toLowerCase());
3692
+ if (!calcField || !calcField.ReadOnly)
3693
+ continue;
3694
+ const calcKey = calcField.Name.toLowerCase();
3695
+ const liveCalcVal = getLive(calcField.Name);
3696
+ const snapshotCalcVal = calcKey in parsedSnapshot && parsedSnapshot[calcKey] != null
3697
+ ? String(parsedSnapshot[calcKey]).trim()
3698
+ : '';
3699
+ // If FullRecordJSON still holds the pre-save / live calculated value (or is empty),
3700
+ // synthesize the historical composite name from the historical name parts.
3701
+ if (!snapshotCalcVal || snapshotCalcVal === liveCalcVal) {
3702
+ const liveWithMiddle = [liveFirst, liveMiddle, liveLast, liveSuffix].filter(Boolean).join(' ');
3703
+ const includeMiddle = Boolean(liveMiddle && liveCalcVal === liveWithMiddle);
3704
+ const synthesized = (includeMiddle
3705
+ ? [histFirst, histMiddle, histLast, histSuffix]
3706
+ : [histFirst, histLast, histSuffix])
3707
+ .filter(Boolean)
3708
+ .join(' ');
3709
+ if (synthesized) {
3710
+ parsedSnapshot[calcKey] = synthesized;
3711
+ }
3712
+ }
3713
+ }
3714
+ }
3715
+ restoreLiveRecordFromPreviewStash(record) {
3716
+ const target = record ?? this.EffectiveRecord;
3717
+ const stash = this.liveRecordPreviewStash;
3718
+ if (!stash || !target || !Array.isArray(target.Fields)) {
3719
+ this.liveRecordPreviewStash = null;
3720
+ return;
3721
+ }
3722
+ for (const field of target.Fields) {
3723
+ const saved = stash.get(field.Name);
3724
+ if (!saved)
3725
+ continue;
3726
+ if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
3727
+ field.ResetNeverSetFlag();
3728
+ }
3729
+ field.Value = saved.oldValue;
3730
+ if (typeof field.ResetOldValue === 'function') {
3731
+ field.ResetOldValue();
3732
+ }
3733
+ if (this.formatComparableValue(saved.value) !== this.formatComparableValue(saved.oldValue)) {
3734
+ if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
3735
+ field.ResetNeverSetFlag();
3736
+ }
3737
+ field.Value = saved.value;
3738
+ }
3739
+ }
3740
+ this.liveRecordPreviewStash = null;
3741
+ }
3742
+ FormatPreviewDiffValue(val) {
3743
+ if (val === null || val === undefined || val === '')
3744
+ return '(empty)';
3745
+ if (typeof val === 'boolean')
3746
+ return val ? 'Yes' : 'No';
3747
+ if (val instanceof Date) {
3748
+ return isNaN(val.getTime()) ? '(empty)' : val.toLocaleDateString();
3749
+ }
3750
+ const str = String(val).trim();
3751
+ if (!str)
3752
+ return '(empty)';
3753
+ if (str.length > 36)
3754
+ return `${str.slice(0, 33)}...`;
3755
+ return str;
3756
+ }
3757
+ OnStepVersionPreview(delta) {
3758
+ const preview = this.ActiveVersionPreview;
3759
+ if (!preview)
3760
+ return;
3761
+ const previewable = this.recordChangesDrawer?.GetPreviewableChanges() ?? this.previewableChangesCache;
3762
+ if (previewable.length === 0)
3763
+ return;
3764
+ const nextIndex = (preview.CurrentIndex ?? 0) + delta;
3765
+ if (nextIndex < 0 || nextIndex >= previewable.length)
3766
+ return;
3767
+ const targetChange = previewable[nextIndex];
3768
+ this.OnPreviewVersionSelected({
3769
+ Change: targetChange,
3770
+ Index: nextIndex,
3771
+ TotalCount: previewable.length,
3772
+ });
3773
+ }
3774
+ OnReopenHistoryFromPreview() {
3775
+ this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
3776
+ this.ShowRecordChanges = true;
3777
+ this.Fc?.cdr?.markForCheck();
3778
+ this.cdr.markForCheck();
3779
+ }
3780
+ OnRestorePreviewedVersion() {
3781
+ if (!this.activePreviewSourceChange)
3782
+ return;
3783
+ const targetChange = this.activePreviewSourceChange;
3784
+ this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
3785
+ this.ShowRecordChanges = true;
3786
+ this.cdr.detectChanges();
3787
+ this.recordChangesDrawer?.OpenRestoreForChange(targetChange);
3788
+ }
3789
+ OnExitVersionPreview() {
3790
+ this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
3791
+ this.activePreviewSourceChange = null;
3792
+ this.PreviewChangedFieldChips = [];
3793
+ this.recordRefresh.SetVersionPreview(null);
3794
+ this.scheduleChromeResolve();
3795
+ this.Fc?.cdr?.markForCheck();
3796
+ this.cdr.markForCheck();
3797
+ }
3798
+ async onSingleFieldRestoreRequested(req) {
3799
+ const record = this.EffectiveRecord;
3800
+ if (!record || !Array.isArray(record.Fields))
3801
+ return;
3802
+ const targetField = record.Fields.find((f) => f.Name.toLowerCase() === req.FieldName.toLowerCase() ||
3803
+ (f.CodeName && f.CodeName.toLowerCase() === req.FieldName.toLowerCase()));
3804
+ if (!targetField)
3805
+ return;
3806
+ const savedSourceChange = this.activePreviewSourceChange;
3807
+ const savedIndex = this.ActiveVersionPreview?.CurrentIndex;
3808
+ const savedTotal = this.ActiveVersionPreview?.TotalRestoreableCount;
3809
+ // Restore live field baseline before saving the single restored field
3810
+ this.restoreLiveRecordFromPreviewStash(record);
3811
+ const changeId = req.SourceChangeID || req.ChangeID || '';
3812
+ try {
3813
+ targetField.Value = req.HistoricalValue;
3814
+ record.SetRestoreContext(changeId, `Restored ${req.FieldName} from version preview`);
3815
+ try {
3816
+ const saved = await record.Save();
3817
+ if (saved) {
3818
+ this.notificationService.CreateSimpleNotification(`Restored ${targetField.EntityFieldInfo?.DisplayNameOrName || targetField.Name} from historical version`, 'info', 3000);
3819
+ this.loadVersionCount(record);
3820
+ if (savedSourceChange) {
3821
+ this.OnPreviewVersionSelected({
3822
+ Change: savedSourceChange,
3823
+ Index: savedIndex,
3824
+ TotalCount: savedTotal,
3825
+ });
3826
+ }
3827
+ this.cdr.markForCheck();
3828
+ }
3829
+ }
3830
+ finally {
3831
+ record.ClearRestoreContext();
3832
+ }
3833
+ }
3834
+ catch (err) {
3835
+ LogError(`Single-field restore failed for ${req.FieldName}: ${err instanceof Error ? err.message : String(err)}`);
3836
+ }
3837
+ }
2667
3838
  OnAttachmentsPanelToggled() {
2668
3839
  this.ShowAttachmentsPanel = !this.ShowAttachmentsPanel;
2669
3840
  this.cdr.detectChanges();
@@ -2712,6 +3883,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2712
3883
  const record = this.EffectiveRecord;
2713
3884
  if (!record)
2714
3885
  return;
3886
+ this.OnExitVersionPreview();
2715
3887
  try {
2716
3888
  // Apply each selected snapshot field
2717
3889
  for (const fv of event.FieldValues) {
@@ -3069,76 +4241,86 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
3069
4241
  } if (rf & 2) {
3070
4242
  let _t;
3071
4243
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recordChangesDrawer = _t.first);
3072
- } }, inputs: { Record: "Record", FormComponent: "FormComponent", EntityInfo: "EntityInfo", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", ToolbarConfig: "ToolbarConfig", RegisteredToolbarItems: "RegisteredToolbarItems", ToolbarItemOverrides: "ToolbarItemOverrides", WidthMode: "WidthMode", Variants: "Variants", CurrentVariantID: "CurrentVariantID" }, outputs: { Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", ShowChangesRequested: "ShowChangesRequested", CustomButtonClick: "CustomButtonClick", ToolbarItemClick: "ToolbarItemClick", VariantChange: "VariantChange", BeforeLayoutResolve: "BeforeLayoutResolve", AfterLayoutResolved: "AfterLayoutResolved", BeforeSectionActivate: "BeforeSectionActivate", AfterSectionActivated: "AfterSectionActivated" }, standalone: false, features: [i0.ɵɵProvidersFeature([FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 22, vars: 43, consts: [[3, "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["aria-live", "polite", "aria-atomic", "true", 1, "mj-forms-visually-hidden"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice"], [1, "mj-forms-scroll-area"], [1, "mj-forms-panels-container"], [1, "mj-forms-layout-row"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail", 3, "is-collapsed", "is-resizing", "width"], [1, "mj-forms-all-panels"], [3, "Record", "FormComponent", "FormContext", "BakedSectionKeys", "ShowRelatedEntities"], [1, "mj-forms-more-overflow", 3, "is-expanded"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Message"], [3, "Navigate", "Record", "EditMode", "Collapsed"], [3, "record", "AllowRestore"], [3, "Record", "WidthPx"], [3, "Record", "Visible"], [3, "visible", "config"], [3, "SectionOrderChange", "MembershipChange", "ResetRequested", "Closed", "Sections", "SectionOrder", "MoreSectionKeys", "LockedMoreKeys", "Visible"], [3, "Changed", "FormChosen", "Closed", "Visible", "Entity", "Compiled", "StockGrids", "FullCustomForm", "TitleByKey", "Related", "Provider", "Variants", "CurrentFormID", "RecordKey"], [3, "Navigate", "EditModeChange", "BeforeSave", "SaveRequested", "BeforeCancel", "CancelRequested", "BeforeDelete", "DeleteRequested", "BeforeRefresh", "RefreshRequested", "FavoriteToggled", "BeforeHistoryView", "HistoryRequested", "BeforeListManagement", "ListManagementRequested", "ShowChangesRequested", "CustomButtonClick", "ToolbarItemClick", "FilterChange", "ExpandAllRequested", "CollapseAllRequested", "ShowEmptyFieldsChange", "WidthModeChange", "ResetSectionOrderRequested", "ManageSectionsRequested", "TagsPanelToggled", "AttachmentsPanelToggled", "VariantPicked", "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice", 3, "Dismissed"], [1, "mj-forms-duplicate-notice-lead"], ["type", "button", 1, "mj-forms-duplicate-notice-candidate", 3, "click", "title"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "title"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "click", "title"], [1, "mj-forms-chrome-rail-spine-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", "is-spine", 3, "title"], ["role", "separator", "aria-orientation", "vertical", "title", "Drag to resize sections", 1, "mj-forms-chrome-rail-resizer", 3, "pointerdown", "pointermove", "pointerup", "pointercancel"], [1, "mj-forms-chrome-rail-toolbar"], ["type", "button", 1, "mj-forms-chrome-rail-pin", 3, "click", "title"], [1, "fa-solid", "fa-thumbtack"], ["type", "button", "title", "Hide sections", "aria-label", "Hide form sections", 1, "mj-forms-chrome-rail-collapse", 3, "click"], [1, "fa-solid", "fa-angles-left"], [1, "mj-forms-chrome-rail-items"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "note", 1, "mj-forms-chrome-rail-unrouted", 3, "title"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle"], [1, "mj-forms-chrome-rail-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-error", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", 3, "title"], [1, "mj-forms-chrome-rail-count"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle", 3, "dragstart", "dragend", "click"], [1, "fa-solid", "fa-grip-vertical"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-folder", 3, "click", "keydown.enter", "keydown.space"], ["aria-hidden", "true", 1, "mj-forms-chrome-rail-handle", "is-spacer"], ["aria-hidden", "true", 1, "fa-solid", "mj-forms-chrome-rail-more-toggle"], [1, "mj-forms-chrome-rail-more-tree"], ["title", "Rows across the sections in More", 1, "mj-forms-chrome-rail-count"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], [1, "mj-forms-chrome-rail-label"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-unrouted"], [1, "mj-forms-more-overflow"], ["type", "button", 1, "mj-forms-more-overflow-toggle", 3, "click"], [1, "mj-forms-more-overflow-label"], [1, "mj-forms-more-overflow-preview"], [1, "fa-solid"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Action", "Message"], [3, "RestoreRequested", "dialogClosed", "record", "AllowRestore"], [3, "PanelClosed", "TagCountChanged", "RecordNavigate", "WidthChanged", "Record", "WidthPx"], [3, "PanelClosed", "AttachmentCountChanged", "Record", "Visible"], [3, "complete", "cancel", "visible", "config"]], template: function MjRecordFormContainerComponent_Template(rf, ctx) { if (rf & 1) {
4244
+ } }, inputs: { Record: "Record", FormComponent: "FormComponent", EntityInfo: "EntityInfo", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", ToolbarConfig: "ToolbarConfig", RegisteredToolbarItems: "RegisteredToolbarItems", ToolbarItemOverrides: "ToolbarItemOverrides", WidthMode: "WidthMode", Variants: "Variants", CurrentVariantID: "CurrentVariantID" }, outputs: { Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", ShowChangesRequested: "ShowChangesRequested", CustomButtonClick: "CustomButtonClick", ToolbarItemClick: "ToolbarItemClick", VariantChange: "VariantChange", BeforeLayoutResolve: "BeforeLayoutResolve", AfterLayoutResolved: "AfterLayoutResolved", BeforeSectionActivate: "BeforeSectionActivate", AfterSectionActivated: "AfterSectionActivated", AskAIRequested: "AskAIRequested" }, standalone: false, features: [i0.ɵɵProvidersFeature([FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 25, vars: 46, consts: [[3, "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "LinksOpen", "LinkCount", "ConflictCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["role", "region", "aria-label", "Historical version preview", 1, "mj-forms-version-preview-banner"], ["aria-live", "polite", "aria-atomic", "true", 1, "mj-forms-visually-hidden"], ["role", "status", "aria-live", "polite", 1, "mj-forms-remote-update-pill", 3, "mj-forms-remote-update-pill--warning"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice"], [1, "mj-forms-scroll-area"], [1, "mj-forms-panels-container"], [1, "mj-forms-layout-row"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail", 3, "is-collapsed", "is-resizing", "width"], [1, "mj-forms-all-panels"], [3, "Record", "FormComponent", "FormContext", "BakedSectionKeys", "ShowRelatedEntities"], [1, "mj-forms-more-overflow", 3, "is-expanded"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Message"], [3, "Navigate", "Record", "EditMode", "Collapsed"], [3, "record", "AllowRestore", "PreviewedChangeID"], [3, "Record", "WidthPx"], [3, "Provider", "Record", "Mode", "IsOpen"], [3, "Record", "Visible"], [3, "visible", "config"], [3, "SectionOrderChange", "MembershipChange", "ResetRequested", "Closed", "Sections", "SectionOrder", "MoreSectionKeys", "LockedMoreKeys", "Visible"], [3, "Changed", "FormChosen", "Closed", "Visible", "Entity", "Compiled", "StockGrids", "FullCustomForm", "TitleByKey", "Related", "Provider", "Variants", "CurrentFormID", "RecordKey"], [3, "Navigate", "EditModeChange", "BeforeSave", "SaveRequested", "BeforeCancel", "CancelRequested", "BeforeDelete", "DeleteRequested", "BeforeRefresh", "RefreshRequested", "FavoriteToggled", "BeforeHistoryView", "HistoryRequested", "BeforeListManagement", "ListManagementRequested", "ShowChangesRequested", "CustomButtonClick", "ToolbarItemClick", "FilterChange", "ExpandAllRequested", "CollapseAllRequested", "ShowEmptyFieldsChange", "WidthModeChange", "ResetSectionOrderRequested", "ManageSectionsRequested", "TagsPanelToggled", "LinksRequest", "AttachmentsPanelToggled", "AskAIRequested", "ActionPinChanged", "VariantPicked", "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "LinksOpen", "LinkCount", "ConflictCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], [1, "mj-forms-version-preview-top-row"], [1, "mj-forms-version-preview-main"], [1, "mj-forms-version-preview-badge"], [1, "fa-solid", "fa-clock-rotate-left"], [1, "mj-forms-version-preview-meta"], [1, "mj-forms-version-preview-author"], [1, "mj-forms-version-preview-diff-pill"], [1, "mj-forms-version-preview-actions"], [1, "mj-forms-version-preview-stepper"], ["type", "button", "title", "Reopen the Record Changes history timeline drawer", 1, "mj-forms-version-preview-timeline-btn", 3, "click"], [1, "fa-solid", "fa-list-ul"], ["type", "button", 1, "mj-forms-version-preview-restore-btn"], ["type", "button", 1, "mj-forms-version-preview-exit-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], ["aria-label", "Changed fields in this version", 1, "mj-forms-version-preview-diffs-row"], ["type", "button", "title", "Preview older version", 1, "mj-forms-version-preview-step-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-chevron-left"], [1, "mj-forms-version-preview-step-count"], ["type", "button", "title", "Preview newer version", 1, "mj-forms-version-preview-step-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-chevron-right"], ["type", "button", 1, "mj-forms-version-preview-restore-btn", 3, "click"], [1, "fa-solid", "fa-rotate-left"], [1, "mj-forms-version-preview-field-chip", 3, "title"], [1, "mj-forms-version-preview-field-chip-more"], [1, "mj-forms-version-preview-field-chip-label"], [1, "mj-forms-version-preview-field-chip-hist"], [1, "mj-forms-version-preview-field-chip-live"], ["role", "status", "aria-live", "polite", 1, "mj-forms-remote-update-pill"], [1, "mj-forms-remote-update-pill-text"], ["type", "button", 1, "mj-forms-remote-update-pill-action"], ["type", "button", "title", "Dismiss", "aria-label", "Dismiss notification", 1, "mj-forms-remote-update-pill-close", 3, "click"], ["type", "button", 1, "mj-forms-remote-update-pill-action", 3, "click"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice", 3, "Dismissed"], [1, "mj-forms-duplicate-notice-lead"], ["type", "button", 1, "mj-forms-duplicate-notice-candidate", 3, "click", "title"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "title"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "click", "title"], [1, "mj-forms-chrome-rail-spine-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", "is-spine", 3, "title"], ["role", "separator", "aria-orientation", "vertical", "title", "Drag to resize sections", 1, "mj-forms-chrome-rail-resizer", 3, "pointerdown", "pointermove", "pointerup", "pointercancel"], [1, "mj-forms-chrome-rail-toolbar"], ["type", "button", 1, "mj-forms-chrome-rail-pin", 3, "click", "title"], [1, "fa-solid", "fa-thumbtack"], ["type", "button", "title", "Hide sections", "aria-label", "Hide form sections", 1, "mj-forms-chrome-rail-collapse", 3, "click"], [1, "fa-solid", "fa-angles-left"], [1, "mj-forms-chrome-rail-items"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "note", 1, "mj-forms-chrome-rail-unrouted", 3, "title"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle"], [1, "mj-forms-chrome-rail-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-error", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", 3, "title"], [1, "mj-forms-chrome-rail-count"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle", 3, "dragstart", "dragend", "click"], [1, "fa-solid", "fa-grip-vertical"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-folder", 3, "click", "keydown.enter", "keydown.space"], ["aria-hidden", "true", 1, "mj-forms-chrome-rail-handle", "is-spacer"], ["aria-hidden", "true", 1, "fa-solid", "mj-forms-chrome-rail-more-toggle"], [1, "mj-forms-chrome-rail-more-tree"], ["title", "Rows across the sections in More", 1, "mj-forms-chrome-rail-count"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], [1, "mj-forms-chrome-rail-label"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-unrouted"], [1, "mj-forms-more-overflow"], ["type", "button", 1, "mj-forms-more-overflow-toggle", 3, "click"], [1, "mj-forms-more-overflow-label"], [1, "mj-forms-more-overflow-preview"], [1, "fa-solid"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Action", "Message"], [3, "PreviewVersionSelected", "RestoreRequested", "dialogClosed", "record", "AllowRestore", "PreviewedChangeID"], [3, "PanelClosed", "TagCountChanged", "RecordNavigate", "WidthChanged", "Record", "WidthPx"], [3, "Close", "LinkCountChange", "LinksSummaryChange", "Navigate", "Provider", "Record", "Mode", "IsOpen"], [3, "PanelClosed", "AttachmentCountChanged", "Record", "Visible"], [3, "complete", "cancel", "visible", "config"]], template: function MjRecordFormContainerComponent_Template(rf, ctx) { if (rf & 1) {
3073
4245
  i0.ɵɵprojectionDef(_c0);
3074
4246
  i0.ɵɵprojection(0);
3075
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1, 31, "mj-form-toolbar", 0);
3076
- i0.ɵɵelementStart(2, "span", 1);
3077
- i0.ɵɵtext(3);
4247
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1, 34, "mj-form-toolbar", 0);
4248
+ i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_2_Template, 23, 7, "div", 1);
4249
+ i0.ɵɵelementStart(3, "span", 2);
4250
+ i0.ɵɵtext(4);
3078
4251
  i0.ɵɵelementEnd();
3079
- i0.ɵɵconditionalCreate(4, MjRecordFormContainerComponent_Conditional_4_Template, 5, 0, "mj-alert", 2);
3080
- i0.ɵɵelementStart(5, "div", 3)(6, "div", 4)(7, "div", 5);
3081
- i0.ɵɵconditionalCreate(8, MjRecordFormContainerComponent_Conditional_8_Template, 3, 8, "nav", 6);
3082
- i0.ɵɵelementStart(9, "div", 7);
3083
- i0.ɵɵprojection(10, 1);
3084
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_11_Template, 1, 5, "mj-form-contributions", 8);
3085
- i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template, 8, 11, "div", 9);
3086
- i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 3, "mj-form-panel-slot", 10);
3087
- i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_14_Template, 1, 1, "mj-empty-state", 11);
4252
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_5_Template, 7, 6, "div", 3);
4253
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_6_Template, 5, 0, "mj-alert", 4);
4254
+ i0.ɵɵelementStart(7, "div", 5)(8, "div", 6)(9, "div", 7);
4255
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Template, 3, 8, "nav", 8);
4256
+ i0.ɵɵelementStart(11, "div", 9);
4257
+ i0.ɵɵprojection(12, 1);
4258
+ i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 5, "mj-form-contributions", 10);
4259
+ i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_14_Template, 8, 11, "div", 11);
4260
+ i0.ɵɵconditionalCreate(15, MjRecordFormContainerComponent_Conditional_15_Template, 1, 3, "mj-form-panel-slot", 12);
4261
+ i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 1, "mj-empty-state", 13);
3088
4262
  i0.ɵɵelementEnd();
3089
- i0.ɵɵelementStart(15, "mj-isa-related-panel", 12);
3090
- i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_15_listener($event) { return ctx.OnNavigate($event); });
4263
+ i0.ɵɵelementStart(17, "mj-isa-related-panel", 14);
4264
+ i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_17_listener($event) { return ctx.OnNavigate($event); });
3091
4265
  i0.ɵɵelementEnd()()()();
3092
- i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 2, "mj-record-changes", 13);
3093
- i0.ɵɵconditionalCreate(17, MjRecordFormContainerComponent_Conditional_17_Template, 1, 2, "mj-record-tags", 14);
3094
- i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 2, "mj-record-attachments", 15);
3095
- i0.ɵɵconditionalCreate(19, MjRecordFormContainerComponent_Conditional_19_Template, 1, 8, "mj-list-management-dialog", 16);
3096
- i0.ɵɵelementStart(20, "mj-section-manager", 17);
3097
- i0.ɵɵlistener("SectionOrderChange", function MjRecordFormContainerComponent_Template_mj_section_manager_SectionOrderChange_20_listener($event) { return ctx.OnSectionOrderChange($event); })("MembershipChange", function MjRecordFormContainerComponent_Template_mj_section_manager_MembershipChange_20_listener($event) { return ctx.OnChromeMembershipChange($event); })("ResetRequested", function MjRecordFormContainerComponent_Template_mj_section_manager_ResetRequested_20_listener() { return ctx.OnSectionManagerReset(); })("Closed", function MjRecordFormContainerComponent_Template_mj_section_manager_Closed_20_listener() { return ctx.OnSectionManagerClosed(); });
4266
+ i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 3, "mj-record-changes", 15);
4267
+ i0.ɵɵconditionalCreate(19, MjRecordFormContainerComponent_Conditional_19_Template, 1, 2, "mj-record-tags", 16);
4268
+ i0.ɵɵconditionalCreate(20, MjRecordFormContainerComponent_Conditional_20_Template, 1, 4, "mj-record-links", 17);
4269
+ i0.ɵɵconditionalCreate(21, MjRecordFormContainerComponent_Conditional_21_Template, 1, 2, "mj-record-attachments", 18);
4270
+ i0.ɵɵconditionalCreate(22, MjRecordFormContainerComponent_Conditional_22_Template, 1, 8, "mj-list-management-dialog", 19);
4271
+ i0.ɵɵelementStart(23, "mj-section-manager", 20);
4272
+ i0.ɵɵlistener("SectionOrderChange", function MjRecordFormContainerComponent_Template_mj_section_manager_SectionOrderChange_23_listener($event) { return ctx.OnSectionOrderChange($event); })("MembershipChange", function MjRecordFormContainerComponent_Template_mj_section_manager_MembershipChange_23_listener($event) { return ctx.OnChromeMembershipChange($event); })("ResetRequested", function MjRecordFormContainerComponent_Template_mj_section_manager_ResetRequested_23_listener() { return ctx.OnSectionManagerReset(); })("Closed", function MjRecordFormContainerComponent_Template_mj_section_manager_Closed_23_listener() { return ctx.OnSectionManagerClosed(); });
3098
4273
  i0.ɵɵelementEnd();
3099
- i0.ɵɵelementStart(21, "mj-panel-manager", 18);
3100
- i0.ɵɵlistener("Changed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Changed_21_listener() { return ctx.OnPanelManagerChanged(); })("FormChosen", function MjRecordFormContainerComponent_Template_mj_panel_manager_FormChosen_21_listener($event) { return ctx.OnPanelManagerFormChosen($event); })("Closed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Closed_21_listener() { return ctx.OnPanelManagerClosed(); });
4274
+ i0.ɵɵelementStart(24, "mj-panel-manager", 21);
4275
+ i0.ɵɵlistener("Changed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Changed_24_listener() { return ctx.OnPanelManagerChanged(); })("FormChosen", function MjRecordFormContainerComponent_Template_mj_panel_manager_FormChosen_24_listener($event) { return ctx.OnPanelManagerFormChosen($event); })("Closed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Closed_24_listener() { return ctx.OnPanelManagerClosed(); });
3101
4276
  i0.ɵɵelementEnd();
3102
4277
  } if (rf & 2) {
4278
+ let tmp_1_0;
3103
4279
  i0.ɵɵadvance();
3104
4280
  i0.ɵɵconditional(ctx.EffectiveShowToolbar ? 1 : -1);
4281
+ i0.ɵɵadvance();
4282
+ i0.ɵɵconditional((tmp_1_0 = ctx.ActiveVersionPreview) ? 2 : -1, tmp_1_0);
3105
4283
  i0.ɵɵadvance(2);
3106
4284
  i0.ɵɵtextInterpolate(ctx.FormIndicatorsAnnouncement);
3107
4285
  i0.ɵɵadvance();
3108
- i0.ɵɵconditional(ctx.DuplicateEntryCandidates.length > 0 ? 4 : -1);
4286
+ i0.ɵɵconditional(ctx.RemoteUpdatePill ? 5 : -1);
4287
+ i0.ɵɵadvance();
4288
+ i0.ɵɵconditional(ctx.DuplicateEntryCandidates.length > 0 ? 6 : -1);
3109
4289
  i0.ɵɵadvance(2);
3110
4290
  i0.ɵɵclassProp("mj-forms-panels--full-width", ctx.EffectiveWidthMode === "full-width")("mj-forms-panels--edit-mode", ctx.EffectiveEditMode)("mj-forms-panels--has-isa-panel", ctx.HasIsaRelatedItems);
3111
4291
  i0.ɵɵadvance();
3112
4292
  i0.ɵɵclassProp("mj-forms-layout--left-nav", ctx.ChromeLayout === "left-nav")("mj-forms-layout--accordion", ctx.ChromeLayout === "accordion")("mj-forms-layout--more", ctx.IsChromeMoreActive);
3113
4293
  i0.ɵɵadvance();
3114
- i0.ɵɵconditional(ctx.ShowChromeRail ? 8 : -1);
4294
+ i0.ɵɵconditional(ctx.ShowChromeRail ? 10 : -1);
3115
4295
  i0.ɵɵadvance(3);
3116
- i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 11 : -1);
4296
+ i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 13 : -1);
3117
4297
  i0.ɵɵadvance();
3118
- i0.ɵɵconditional(ctx.ShowMoreToggle ? 12 : -1);
4298
+ i0.ɵɵconditional(ctx.ShowMoreToggle ? 14 : -1);
3119
4299
  i0.ɵɵadvance();
3120
- i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 13 : -1);
4300
+ i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 15 : -1);
3121
4301
  i0.ɵɵadvance();
3122
- i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 14 : -1);
4302
+ i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 16 : -1);
3123
4303
  i0.ɵɵadvance();
3124
4304
  i0.ɵɵproperty("Record", ctx.EffectiveRecord)("EditMode", ctx.EffectiveEditMode)("Collapsed", ctx.EffectiveWidthMode === "full-width");
3125
4305
  i0.ɵɵadvance();
3126
- i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 16 : -1);
4306
+ i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 18 : -1);
3127
4307
  i0.ɵɵadvance();
3128
- i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 17 : -1);
4308
+ i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 19 : -1);
3129
4309
  i0.ɵɵadvance();
3130
- i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 18 : -1);
4310
+ i0.ɵɵconditional(ctx.ShowRecordLinks && ctx.EffectiveRecord && ctx.EffectiveRecord.IsSaved ? 20 : -1);
3131
4311
  i0.ɵɵadvance();
3132
- i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 19 : -1);
4312
+ i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 21 : -1);
4313
+ i0.ɵɵadvance();
4314
+ i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 22 : -1);
3133
4315
  i0.ɵɵadvance();
3134
4316
  i0.ɵɵproperty("Sections", ctx.SectionManagerItems)("SectionOrder", ctx.SectionManagerOrder)("MoreSectionKeys", ctx.SectionManagerMoreKeys)("LockedMoreKeys", ctx.SectionManagerLockedMoreKeys)("Visible", ctx.ShowSectionManager);
3135
4317
  i0.ɵɵadvance();
3136
4318
  i0.ɵɵproperty("Visible", ctx.ShowPanelManager)("Entity", ctx.EffectiveEntityInfo)("Compiled", ctx.PanelManagerCompiled)("StockGrids", ctx.PanelManagerStockGrids)("FullCustomForm", !!(ctx.fc == null ? null : ctx.fc.OwnsEntireFormBody))("TitleByKey", ctx.PanelManagerTitles)("Related", ctx.PanelManagerRelated)("Provider", ctx.ProviderToUse)("Variants", ctx.EffectiveVariants)("CurrentFormID", ctx.EffectiveCurrentVariantID)("RecordKey", ctx.PanelManagerRecordKey);
3137
- } }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, i2.RecordChangesComponent, i3.ListManagementDialogComponent, i4.RecordTagsComponent, i5.RecordAttachmentsComponent, i6.MjFormToolbarComponent, i7.MjSectionManagerComponent, i8.MjPanelManagerComponent, i9.MjIsaRelatedPanelComponent, i10.FormPanelSlotComponent, i11.FormContributionsComponent], styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"], encapsulation: 2, changeDetection: 0 });
4319
+ } }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, i2.RecordChangesComponent, i3.ListManagementDialogComponent, i4.RecordTagsComponent, i5.RecordAttachmentsComponent, i6.MjFormToolbarComponent, i7.MjSectionManagerComponent, i8.MjPanelManagerComponent, i9.MjIsaRelatedPanelComponent, i10.FormPanelSlotComponent, i11.FormContributionsComponent, i12.MjRecordLinksComponent], styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n\n/* ====================================================================\n NON-INTRUSIVE LIVE REMOTE UPDATE SLIDE-IN PILL\n ==================================================================== */\n@keyframes mj-remote-pill-slide-in {\n from {\n opacity: 0;\n transform: translateY(-8px) scale(0.97);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n.mj-forms-remote-update-pill {\n position: absolute;\n top: 56px;\n right: 24px;\n z-index: 45;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n border-radius: 999px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface-card));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n box-shadow: var(--mj-shadow-md, 0 4px 14px rgba(0, 0, 0, 0.12));\n color: var(--mj-text-primary);\n font-size: 12.5px;\n font-weight: 500;\n line-height: 1.3;\n animation: mj-remote-pill-slide-in 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n.mj-forms-remote-update-pill--warning {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mj-forms-remote-update-pill-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mj-forms-remote-update-pill--warning .mj-forms-remote-update-pill-icon {\n color: var(--mj-status-warning);\n}\n\n.mj-forms-remote-update-pill-action {\n border: none;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n color: var(--mj-brand-primary);\n font: inherit;\n font-size: 11.5px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n cursor: pointer;\n}\n\n.mj-forms-remote-update-pill-action:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.mj-forms-remote-update-pill-close {\n border: none;\n background: transparent;\n color: var(--mj-text-muted);\n padding: 2px 4px;\n border-radius: 999px;\n cursor: pointer;\n line-height: 1;\n}\n\n.mj-forms-remote-update-pill-close:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n\n/* ====================================================================\n TIME-TRAVEL HISTORICAL VERSION PREVIEW BANNER\n ==================================================================== */\n.mj-forms-version-preview-banner {\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 20px;\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface-elevated));\n border-bottom: 1px solid color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.mj-forms-version-preview-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.mj-forms-version-preview-main {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.mj-forms-version-preview-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-version-preview-meta {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-author {\n color: var(--mj-text-secondary);\n font-size: 12px;\n}\n\n.mj-forms-version-preview-diff-pill {\n padding: 2px 9px;\n border-radius: 999px;\n font-size: 11.5px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-info) 14%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border: 1px solid color-mix(in srgb, var(--mj-status-info) 30%, transparent);\n}\n\n.mj-forms-version-preview-actions {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mj-forms-version-preview-stepper {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px;\n border-radius: 6px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-step-btn {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--mj-text-secondary);\n font-size: 11.5px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n}\n\n.mj-forms-version-preview-step-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-step-btn:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.mj-forms-version-preview-step-count {\n padding: 0 6px;\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-version-preview-timeline-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n}\n\n.mj-forms-version-preview-timeline-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 1px solid var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-version-preview-exit-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-exit-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-diffs-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 6px;\n padding-top: 2px;\n}\n\n.mj-forms-version-preview-field-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 3px 9px;\n border-radius: 6px;\n font-size: 11.5px;\n background: var(--mj-bg-surface);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 28%, var(--mj-border-default));\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-field-chip-label {\n color: var(--mj-text-secondary);\n font-weight: 600;\n}\n\n.mj-forms-version-preview-field-chip-hist {\n color: var(--mj-brand-primary);\n font-weight: 700;\n}\n\n.mj-forms-version-preview-field-chip-live {\n color: var(--mj-text-muted);\n font-size: 11px;\n}\n\n.mj-forms-version-preview-field-chip-more {\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n padding: 2px 6px;\n}\n\n.mj-forms-version-preview-step-btn:focus-visible,\n.mj-forms-version-preview-timeline-btn:focus-visible,\n.mj-forms-version-preview-restore-btn:focus-visible,\n.mj-forms-version-preview-exit-btn:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 1px;\n}\n"], encapsulation: 2, changeDetection: 0 });
3138
4320
  }
3139
4321
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjRecordFormContainerComponent, [{
3140
4322
  type: Component,
3141
- args: [{ standalone: false, selector: 'mj-record-form-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator], template: "<!-- ============================================\n BEFORE-TOOLBAR SLOT\n ============================================ -->\n<ng-content select=\"[before-toolbar]\"></ng-content>\n\n<!-- ============================================\n TOOLBAR (bridges FormComponent state \u2192 toolbar inputs)\n Hidden entirely when Config.Toolbar === null (dialog/slide-in surfaces).\n ============================================ -->\n@if (EffectiveShowToolbar) {\n<mj-form-toolbar\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [UserCanEdit]=\"EffectiveUserCanEdit\"\n [UserCanDelete]=\"EffectiveUserCanDelete\"\n [IsFavorite]=\"EffectiveIsFavorite\"\n [FavoriteInitDone]=\"EffectiveFavoriteInitDone\"\n [IsDirty]=\"EffectiveIsDirty\"\n [DirtyFieldNames]=\"EffectiveDirtyFieldNames\"\n [ListCount]=\"ListCount\"\n [TagCount]=\"TagCount\"\n [AttachmentCount]=\"AttachmentCount\"\n [AttachmentsAvailable]=\"AttachmentsAvailable\"\n [IsAttachmentsPanelOpen]=\"ShowAttachmentsPanel\"\n [VersionCount]=\"VersionCount\"\n [EntityInfo]=\"EffectiveEntityInfo\"\n [Config]=\"EffectiveToolbarConfig\"\n [IsSaving]=\"EffectiveIsSaving\"\n [IsRefreshing]=\"EffectiveIsRefreshing\"\n [VisibleSectionCount]=\"VisibleSectionCount\"\n [TotalSectionCount]=\"TotalSectionCount\"\n [ExpandedSectionCount]=\"ExpandedSectionCount\"\n [SearchFilter]=\"EffectiveSearchFilter\"\n [ShowEmptyFields]=\"EffectiveShowEmptyFields\"\n [WidthMode]=\"EffectiveWidthMode\"\n [HasCustomSectionOrder]=\"EffectiveHasCustomSectionOrder\"\n [ChromeLayout]=\"ChromeLayout\"\n [Variants]=\"EffectiveVariants\"\n [CurrentVariantID]=\"EffectiveCurrentVariantID\"\n [RegisteredItems]=\"EffectiveRegisteredToolbarItems\"\n [ItemOverrides]=\"EffectiveToolbarItemOverrides\"\n [FormComponent]=\"fc\"\n (Navigate)=\"OnNavigate($event)\"\n (EditModeChange)=\"OnEditModeChange($event)\"\n (BeforeSave)=\"BeforeSave.emit($event)\"\n (SaveRequested)=\"OnSaveRequested()\"\n (BeforeCancel)=\"BeforeCancel.emit($event)\"\n (CancelRequested)=\"OnCancelRequested()\"\n (BeforeDelete)=\"BeforeDelete.emit($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (BeforeRefresh)=\"BeforeRefresh.emit($event)\"\n (RefreshRequested)=\"OnRefreshRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (BeforeHistoryView)=\"BeforeHistoryView.emit($event)\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (BeforeListManagement)=\"BeforeListManagement.emit($event)\"\n (ListManagementRequested)=\"OnListManagementRequested()\"\n (ShowChangesRequested)=\"OnShowChangesRequested()\"\n (CustomButtonClick)=\"CustomButtonClick.emit($event)\"\n (ToolbarItemClick)=\"ToolbarItemClick.emit($event)\"\n (FilterChange)=\"OnFilterChange($event)\"\n (ExpandAllRequested)=\"OnExpandAll()\"\n (CollapseAllRequested)=\"OnCollapseAll()\"\n (ShowEmptyFieldsChange)=\"OnShowEmptyFieldsChange($event)\"\n (WidthModeChange)=\"OnWidthModeChange($event)\"\n (ResetSectionOrderRequested)=\"OnResetSectionOrder()\"\n (ManageSectionsRequested)=\"OnManageSections()\"\n (TagsPanelToggled)=\"OnTagsPanelToggled()\"\n (AttachmentsPanelToggled)=\"OnAttachmentsPanelToggled()\"\n (VariantPicked)=\"OnVariantPicked($event)\">\n</mj-form-toolbar>\n}\n\n<!-- ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n Variant picker is now embedded in <mj-form-toolbar> as a right-side\n button \u2014 see the [Variants]/[CurrentVariantID] inputs + (VariantPicked)\n output on the toolbar above. Inline strip was removed.\n ============================================ -->\n<!-- Persistent polite live region for the section indicators (see FormIndicatorsAnnouncement) -->\n<span class=\"mj-forms-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ FormIndicatorsAnnouncement }}</span>\n\n<!-- ============================================\n POSSIBLE DUPLICATES (entry-time check, new records only)\n Flag only: never blocks a save. A name opens that record through Navigate.\n ============================================ -->\n@if (DuplicateEntryCandidates.length > 0) {\n <mj-alert class=\"mj-forms-duplicate-notice\"\n Variant=\"warning\"\n Size=\"sm\"\n Icon=\"fa-solid fa-clone\"\n Role=\"status\"\n Dismissible\n (Dismissed)=\"OnDuplicateNoticeDismissed()\">\n <span class=\"mj-forms-duplicate-notice-lead\">This may duplicate:</span>\n @for (candidate of DuplicateEntryCandidates; track candidate.RecordID; let last = $last) {\n <button type=\"button\"\n class=\"mj-forms-duplicate-notice-candidate\"\n [title]=\"'Open ' + candidate.DisplayName\"\n (click)=\"OnDuplicateCandidateClick(candidate)\">{{ candidate.DisplayName }}</button>@if (!last) {<span>, </span>}\n }\n </mj-alert>\n}\n\n<div class=\"mj-forms-scroll-area\">\n <div class=\"mj-forms-panels-container\"\n [class.mj-forms-panels--full-width]=\"EffectiveWidthMode === 'full-width'\"\n [class.mj-forms-panels--edit-mode]=\"EffectiveEditMode\"\n [class.mj-forms-panels--has-isa-panel]=\"HasIsaRelatedItems\">\n <!-- Flex row: optional left-nav + form panels + ISA side panel -->\n <div class=\"mj-forms-layout-row\"\n [class.mj-forms-layout--left-nav]=\"ChromeLayout === 'left-nav'\"\n [class.mj-forms-layout--accordion]=\"ChromeLayout === 'accordion'\"\n [class.mj-forms-layout--more]=\"IsChromeMoreActive\">\n @if (ShowChromeRail) {\n <nav class=\"mj-forms-chrome-rail\"\n [class.is-collapsed]=\"ChromeRailCollapsed\"\n [class.is-resizing]=\"RailResizing\"\n [style.width.px]=\"ChromeRailCollapsed ? null : ChromeRailWidthPx\"\n [attr.aria-expanded]=\"!ChromeRailCollapsed\"\n aria-label=\"Form sections\">\n @if (ChromeRailCollapsed) {\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-spine\"\n (click)=\"OnChromeRailExpand()\"\n [attr.aria-label]=\"'Show form sections \u2014 ' + ChromeActiveTitle\"\n [title]=\"'Show sections \u2014 ' + ChromeActiveTitle\">\n <i [class]=\"ChromeActiveIcon\"></i>\n <span class=\"mj-forms-chrome-rail-spine-label\"\n (mouseenter)=\"OnRailLabelHover($event, ChromeActiveTitle)\">{{ ChromeActiveTitle }}</span>\n <!-- Whole-form section indicators: no rail item is visible while collapsed -->\n @let formIndicators = FormIndicators;\n @if (formIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error is-spine\"\n role=\"img\"\n [title]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\"\n [attr.aria-label]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\">{{ formIndicators.ErrorCount }}</span>\n } @else if (formIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning is-spine\"\n role=\"img\"\n [title]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\"\n [attr.aria-label]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\">{{ formIndicators.WarningCount }}</span>\n }\n @if (formIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty is-spine\"\n role=\"img\"\n [title]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"\n [attr.aria-label]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"></span>\n }\n </button>\n } @else {\n <div class=\"mj-forms-chrome-rail-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-valuenow]=\"ChromeRailWidthPx\"\n [attr.aria-valuemin]=\"RailWidthMin\"\n [attr.aria-valuemax]=\"RailWidthMax\"\n title=\"Drag to resize sections\"\n (pointerdown)=\"OnRailResizeStart($event)\"\n (pointermove)=\"OnRailResizeMove($event)\"\n (pointerup)=\"OnRailResizeEnd()\"\n (pointercancel)=\"OnRailResizeEnd()\"></div>\n <div class=\"mj-forms-chrome-rail-toolbar\">\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-pin\"\n [class.is-pinned]=\"ChromeRailPinned\"\n [attr.aria-pressed]=\"ChromeRailPinned\"\n [title]=\"ChromeRailPinned ? 'Unpin sections \u2014 they hide after you switch' : 'Pin sections open'\"\n (click)=\"OnChromeRailPinToggle()\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-collapse\"\n title=\"Hide sections\"\n aria-label=\"Hide form sections\"\n (click)=\"OnChromeRailCollapse()\">\n <i class=\"fa-solid fa-angles-left\"></i>\n </button>\n </div>\n <!-- Rail items scroll on their own when they outgrow the viewport;\n the pin / collapse toolbar above stays put. -->\n <div class=\"mj-forms-chrome-rail-items\">\n @for (group of ChromeFirstClassGroups; track group.Key) {\n <div class=\"mj-forms-chrome-rail-item\"\n role=\"button\"\n tabindex=\"0\"\n [attr.data-rail-key]=\"group.Key\"\n [class.is-active]=\"ChromeActiveGroupKey === group.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === group.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === group.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(group).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(group).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(group.Key)\"\n (dragover)=\"OnRailDragOver($event, group.Key)\"\n (dragleave)=\"OnRailDragLeave($event, group.Key)\"\n (drop)=\"OnRailDrop($event, group.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, group.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"group.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, group.Title)\">{{ group.Title }}</span>\n @let groupIndicators = ChromeGroupIndicators(group);\n @if (groupIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"></span>\n }\n @if (groupIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\"\n [attr.aria-label]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.ErrorCount }}\n </span>\n } @else if (groupIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\"\n [attr.aria-label]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.WarningCount }}\n </span>\n }\n @let rowCount = ChromeGroupRowCount(group);\n @if (rowCount != null && rowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ rowCount }}</span>\n }\n </div>\n }\n @if (ChromeMoreFolder; as more) {\n <div class=\"mj-forms-chrome-rail-item is-more-folder\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-expanded]=\"MoreExpanded\"\n [class.has-errors]=\"ChromeGroupIndicators(more).ErrorCount > 0\"\n (click)=\"OnMoreFolderToggle()\"\n (keydown.enter)=\"OnMoreFolderToggle()\"\n (keydown.space)=\"$event.preventDefault(); OnMoreFolderToggle()\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, more.Title)\">{{ more.Title }}</span>\n @let moreIndicators = ChromeGroupIndicators(more);\n @if (moreIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"></span>\n }\n @if (moreIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\"\n [attr.aria-label]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.ErrorCount }}\n </span>\n } @else if (moreIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\"\n [attr.aria-label]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.WarningCount }}\n </span>\n }\n @if (!MoreExpanded) {\n @let moreRowCount = ChromeMoreRowCount;\n @if (moreRowCount != null && moreRowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ moreRowCount }}</span>\n }\n }\n <i class=\"fa-solid mj-forms-chrome-rail-more-toggle\"\n [class.fa-minus]=\"MoreExpanded\"\n [class.fa-plus]=\"!MoreExpanded\"\n aria-hidden=\"true\"></i>\n </div>\n @if (MoreExpanded) {\n <div class=\"mj-forms-chrome-rail-more-tree\">\n @for (child of ChromeMoreItems; track child.Key) {\n <div class=\"mj-forms-chrome-rail-item is-more-child\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-active]=\"ChromeActiveGroupKey === child.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === child.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === child.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(child).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(child).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(child.Key)\"\n (dragover)=\"OnRailDragOver($event, child.Key)\"\n (dragleave)=\"OnRailDragLeave($event, child.Key)\"\n (drop)=\"OnRailDrop($event, child.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, child.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"child.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, child.Title)\">{{ child.Title }}</span>\n @let childIndicators = ChromeGroupIndicators(child);\n @if (childIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"></span>\n }\n @if (childIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\"\n [attr.aria-label]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.ErrorCount }}\n </span>\n } @else if (childIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\"\n [attr.aria-label]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.WarningCount }}\n </span>\n }\n @let childCount = ChromeGroupRowCount(child);\n @if (childCount != null && childCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ childCount }}</span>\n }\n </div>\n }\n </div>\n }\n }\n @let unroutedErrors = UnroutedValidationErrorCount;\n @if (unroutedErrors > 0) {\n <!-- A failed save's errors that no rail item owns. Without this row they were counted\n only on the collapsed spine, so an EXPANDED rail could look clean over a form\n the server had just refused. -->\n <div class=\"mj-forms-chrome-rail-unrouted\"\n role=\"note\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\"\n [title]=\"RailUnroutedErrorTitle(unroutedErrors)\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>\n <span class=\"mj-forms-chrome-rail-label\">Not in a section</span>\n <span class=\"mj-forms-chrome-rail-error is-unrouted\" role=\"img\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\">{{ unroutedErrors }}</span>\n </div>\n }\n </div>\n }\n </nav>\n }\n <!-- All panels in a single flex container \u2014 CSS order drives sequencing -->\n <div class=\"mj-forms-all-panels\">\n <ng-content></ng-content>\n\n <!--\n Fill-in related grids for DisplayInForm relationships the template\n did not bake and no registered panel claimed. Claimed / extra panels\n still mount via mj-form-panel-slot. See plans/form-contributions.md.\n -->\n @if (Record && FormComponent) {\n <mj-form-contributions\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\"\n [FormContext]=\"FormComponent.formContext\"\n [BakedSectionKeys]=\"BakedRelatedSectionKeys\"\n [ShowRelatedEntities]=\"EffectiveShowRelatedEntities\">\n </mj-form-contributions>\n }\n\n <!--\n Container-provided fallback slot. ALWAYS present \u2014 last in document\n order \u2014 so any panel whose registered slot isn't found in the current\n form falls through here via FormSlotCoordinator's chain. Downstream\n consumers that haven't rerun CodeGen against the slot-emitting\n template still see every panel; they just render at the bottom\n instead of at their preferred position.\n -->\n @if (ShowMoreToggle) {\n <div class=\"mj-forms-more-overflow\" [class.is-expanded]=\"MoreExpanded\">\n <button type=\"button\"\n class=\"mj-forms-more-overflow-toggle\"\n (click)=\"OnMoreToggle()\">\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-more-overflow-label\">{{ MoreExpanded ? 'Hide more' : 'More' }}</span>\n @if (!MoreExpanded && MorePreview) {\n <span class=\"mj-forms-more-overflow-preview\">{{ MorePreview }}</span>\n }\n @if (!MoreExpanded) {\n @let accordionMoreCount = ChromeMoreRowCount;\n @if (accordionMoreCount != null && accordionMoreCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ accordionMoreCount }}</span>\n }\n }\n <i class=\"fa-solid\"\n [class.fa-chevron-down]=\"MoreExpanded\"\n [class.fa-chevron-right]=\"!MoreExpanded\"></i>\n </button>\n </div>\n }\n\n @if (Record && FormComponent) {\n <mj-form-panel-slot\n [Entity]=\"Record.EntityInfo.Name\"\n Slot=\"after-everything\"\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\">\n </mj-form-panel-slot>\n }\n\n <!-- Empty state when no sections match search -->\n @if (EffectiveSearchFilter && SearchHasNoMatches) {\n <mj-empty-state class=\"mj-forms-empty-search-state\"\n Variant=\"no-results\"\n Title=\"No sections found\"\n [Message]=\"'No sections match &quot;' + EffectiveSearchFilter + '&quot;. Try a different search term.'\"\n ActionText=\"Clear search\"\n ActionIcon=\"fa-solid fa-rotate-left\"\n ActionVariant=\"flat\"\n (Action)=\"OnFilterChange('')\" />\n }\n </div>\n\n <!-- IS-A Related Records Side Panel -->\n <mj-isa-related-panel\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [Collapsed]=\"EffectiveWidthMode === 'full-width'\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-isa-related-panel>\n </div>\n </div>\n</div>\n\n<!-- ============================================\n RECORD CHANGES DRAWER (shown when history button clicked)\n ============================================ -->\n@if (ShowRecordChanges && EffectiveRecord) {\n <mj-record-changes\n [record]=\"EffectiveRecord\"\n [AllowRestore]=\"EffectiveUserCanEdit\"\n (RestoreRequested)=\"OnRestoreRequested($event)\"\n (dialogClosed)=\"OnRecordChangesClosed()\">\n </mj-record-changes>\n}\n\n<!-- ============================================\n TAGS PANEL (shown when tags button clicked)\n ============================================ -->\n@if (ShowTagsPanel && EffectiveRecord) {\n <mj-record-tags\n [Record]=\"EffectiveRecord\"\n [WidthPx]=\"TagsPanelWidth\"\n (PanelClosed)=\"OnTagsPanelClosed()\"\n (TagCountChanged)=\"OnTagCountChanged($event)\"\n (RecordNavigate)=\"OnTagsRecordNavigate($event)\"\n (WidthChanged)=\"OnTagsPanelWidthChanged($event)\">\n </mj-record-tags>\n}\n\n<!-- ============================================\n ATTACHMENTS PANEL (shown when attachments button clicked)\n ============================================ -->\n@if (ShowAttachmentsPanel && AttachmentsAvailable && EffectiveRecord) {\n <mj-record-attachments\n [Record]=\"EffectiveRecord\"\n [Visible]=\"true\"\n (PanelClosed)=\"OnAttachmentsPanelClosed()\"\n (AttachmentCountChanged)=\"OnAttachmentCountChanged($event)\">\n </mj-record-attachments>\n}\n\n<!-- ============================================\n LIST MANAGEMENT DIALOG (shown when lists button clicked)\n ============================================ -->\n@if (ShowListManagement && EffectiveRecord) {\n <mj-list-management-dialog\n [visible]=\"ShowListManagement\"\n [config]=\"{\n mode: 'manage',\n entityId: EffectiveRecord.EntityInfo.ID,\n entityName: EffectiveRecord.EntityInfo.Name,\n recordIds: [EffectiveRecord.PrimaryKey.Values()[0]],\n allowCreate: true\n }\"\n (complete)=\"OnListManagementComplete($event)\"\n (cancel)=\"OnListManagementClosed()\">\n </mj-list-management-dialog>\n}\n\n<!-- ============================================\n SECTION MANAGER DRAWER (shown when manage-sections button clicked)\n ============================================ -->\n<mj-section-manager\n [Sections]=\"SectionManagerItems\"\n [SectionOrder]=\"SectionManagerOrder\"\n [MoreSectionKeys]=\"SectionManagerMoreKeys\"\n [LockedMoreKeys]=\"SectionManagerLockedMoreKeys\"\n [Visible]=\"ShowSectionManager\"\n (SectionOrderChange)=\"OnSectionOrderChange($event)\"\n (MembershipChange)=\"OnChromeMembershipChange($event)\"\n (ResetRequested)=\"OnSectionManagerReset()\"\n (Closed)=\"OnSectionManagerClosed()\">\n</mj-section-manager>\n\n<!-- ============================================\n PANEL MANAGER DRAWER \u2014 what is registered on this form, and the switches for it\n ============================================ -->\n<mj-panel-manager\n [Visible]=\"ShowPanelManager\"\n [Entity]=\"EffectiveEntityInfo\"\n [Compiled]=\"PanelManagerCompiled\"\n [StockGrids]=\"PanelManagerStockGrids\"\n [FullCustomForm]=\"!!fc?.OwnsEntireFormBody\"\n [TitleByKey]=\"PanelManagerTitles\"\n [Related]=\"PanelManagerRelated\"\n [Provider]=\"ProviderToUse\"\n [Variants]=\"EffectiveVariants\"\n [CurrentFormID]=\"EffectiveCurrentVariantID\"\n [RecordKey]=\"PanelManagerRecordKey\"\n (Changed)=\"OnPanelManagerChanged()\"\n (FormChosen)=\"OnPanelManagerFormChosen($event)\"\n (Closed)=\"OnPanelManagerClosed()\">\n</mj-panel-manager>\n", styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"] }]
4323
+ args: [{ standalone: false, selector: 'mj-record-form-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator], template: "<!-- ============================================\n BEFORE-TOOLBAR SLOT\n ============================================ -->\n<ng-content select=\"[before-toolbar]\"></ng-content>\n\n<!-- ============================================\n TOOLBAR (bridges FormComponent state \u2192 toolbar inputs)\n Hidden entirely when Config.Toolbar === null (dialog/slide-in surfaces).\n ============================================ -->\n@if (EffectiveShowToolbar) {\n<mj-form-toolbar\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [UserCanEdit]=\"EffectiveUserCanEdit\"\n [UserCanDelete]=\"EffectiveUserCanDelete\"\n [IsFavorite]=\"EffectiveIsFavorite\"\n [FavoriteInitDone]=\"EffectiveFavoriteInitDone\"\n [IsDirty]=\"EffectiveIsDirty\"\n [DirtyFieldNames]=\"EffectiveDirtyFieldNames\"\n [ListCount]=\"ListCount\"\n [TagCount]=\"TagCount\"\n [LinksOpen]=\"ShowRecordLinks\"\n [LinkCount]=\"LinkCount\"\n [ConflictCount]=\"ConflictCount\"\n [AttachmentCount]=\"AttachmentCount\"\n [AttachmentsAvailable]=\"AttachmentsAvailable\"\n [IsAttachmentsPanelOpen]=\"ShowAttachmentsPanel\"\n [VersionCount]=\"VersionCount\"\n [EntityInfo]=\"EffectiveEntityInfo\"\n [Config]=\"EffectiveToolbarConfig\"\n [IsSaving]=\"EffectiveIsSaving\"\n [IsRefreshing]=\"EffectiveIsRefreshing\"\n [VisibleSectionCount]=\"VisibleSectionCount\"\n [TotalSectionCount]=\"TotalSectionCount\"\n [ExpandedSectionCount]=\"ExpandedSectionCount\"\n [SearchFilter]=\"EffectiveSearchFilter\"\n [ShowEmptyFields]=\"EffectiveShowEmptyFields\"\n [WidthMode]=\"EffectiveWidthMode\"\n [HasCustomSectionOrder]=\"EffectiveHasCustomSectionOrder\"\n [ChromeLayout]=\"ChromeLayout\"\n [Variants]=\"EffectiveVariants\"\n [CurrentVariantID]=\"EffectiveCurrentVariantID\"\n [RegisteredItems]=\"EffectiveRegisteredToolbarItems\"\n [ItemOverrides]=\"EffectiveToolbarItemOverrides\"\n [FormComponent]=\"fc\"\n (Navigate)=\"OnNavigate($event)\"\n (EditModeChange)=\"OnEditModeChange($event)\"\n (BeforeSave)=\"BeforeSave.emit($event)\"\n (SaveRequested)=\"OnSaveRequested()\"\n (BeforeCancel)=\"BeforeCancel.emit($event)\"\n (CancelRequested)=\"OnCancelRequested()\"\n (BeforeDelete)=\"BeforeDelete.emit($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (BeforeRefresh)=\"BeforeRefresh.emit($event)\"\n (RefreshRequested)=\"OnRefreshRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (BeforeHistoryView)=\"BeforeHistoryView.emit($event)\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (BeforeListManagement)=\"BeforeListManagement.emit($event)\"\n (ListManagementRequested)=\"OnListManagementRequested()\"\n (ShowChangesRequested)=\"OnShowChangesRequested()\"\n (CustomButtonClick)=\"CustomButtonClick.emit($event)\"\n (ToolbarItemClick)=\"ToolbarItemClick.emit($event)\"\n (FilterChange)=\"OnFilterChange($event)\"\n (ExpandAllRequested)=\"OnExpandAll()\"\n (CollapseAllRequested)=\"OnCollapseAll()\"\n (ShowEmptyFieldsChange)=\"OnShowEmptyFieldsChange($event)\"\n (WidthModeChange)=\"OnWidthModeChange($event)\"\n (ResetSectionOrderRequested)=\"OnResetSectionOrder()\"\n (ManageSectionsRequested)=\"OnManageSections()\"\n (TagsPanelToggled)=\"OnTagsPanelToggled()\"\n (LinksRequest)=\"OnToggleRecordLinks()\"\n (AttachmentsPanelToggled)=\"OnAttachmentsPanelToggled()\"\n (AskAIRequested)=\"OnAskAIRequested()\"\n (ActionPinChanged)=\"OnToolbarActionPinChanged($event)\"\n (VariantPicked)=\"OnVariantPicked($event)\">\n</mj-form-toolbar>\n}\n\n<!-- ============================================\n TIME-TRAVEL HISTORICAL VERSION PREVIEW BANNER\n Renders above the form when previewing a historical RecordChange snapshot\n ============================================ -->\n@if (ActiveVersionPreview; as preview) {\n <div class=\"mj-forms-version-preview-banner\" role=\"region\" aria-label=\"Historical version preview\">\n <div class=\"mj-forms-version-preview-top-row\">\n <div class=\"mj-forms-version-preview-main\">\n <span class=\"mj-forms-version-preview-badge\">\n <i class=\"fa-solid fa-clock-rotate-left\"></i>\n Time-Travel Preview\n </span>\n <span class=\"mj-forms-version-preview-meta\">\n <strong>{{ preview.VersionLabel }}</strong>\n <span class=\"mj-forms-version-preview-author\">by {{ preview.UserName }}</span>\n </span>\n <span class=\"mj-forms-version-preview-diff-pill\">\n {{ preview.DiffCount ?? 0 }} {{ (preview.DiffCount ?? 0) === 1 ? 'field differs' : 'fields differ' }} from live\n </span>\n </div>\n <div class=\"mj-forms-version-preview-actions\">\n @if ((preview.TotalRestoreableCount ?? 0) > 1) {\n <div class=\"mj-forms-version-preview-stepper\">\n <button type=\"button\"\n class=\"mj-forms-version-preview-step-btn\"\n [disabled]=\"(preview.CurrentIndex ?? 0) >= (preview.TotalRestoreableCount ?? 1) - 1\"\n title=\"Preview older version\"\n (click)=\"OnStepVersionPreview(1)\">\n <i class=\"fa-solid fa-chevron-left\"></i> Older\n </button>\n <span class=\"mj-forms-version-preview-step-count\">\n {{ (preview.TotalRestoreableCount ?? 1) - (preview.CurrentIndex ?? 0) }} / {{ preview.TotalRestoreableCount ?? 1 }}\n </span>\n <button type=\"button\"\n class=\"mj-forms-version-preview-step-btn\"\n [disabled]=\"(preview.CurrentIndex ?? 0) <= 0\"\n title=\"Preview newer version\"\n (click)=\"OnStepVersionPreview(-1)\">\n Newer <i class=\"fa-solid fa-chevron-right\"></i>\n </button>\n </div>\n }\n <button type=\"button\"\n class=\"mj-forms-version-preview-timeline-btn\"\n title=\"Reopen the Record Changes history timeline drawer\"\n (click)=\"OnReopenHistoryFromPreview()\">\n <i class=\"fa-solid fa-list-ul\"></i> Timeline\n </button>\n @if (EffectiveUserCanEdit && (preview.DiffCount ?? 0) > 0) {\n <button type=\"button\"\n class=\"mj-forms-version-preview-restore-btn\"\n (click)=\"OnRestorePreviewedVersion()\">\n <i class=\"fa-solid fa-rotate-left\"></i> Restore This Version...\n </button>\n }\n <button type=\"button\"\n class=\"mj-forms-version-preview-exit-btn\"\n (click)=\"OnExitVersionPreview()\">\n <i class=\"fa-solid fa-xmark\"></i> Exit Preview\n </button>\n </div>\n </div>\n @if (PreviewChangedFieldChips.length > 0) {\n <div class=\"mj-forms-version-preview-diffs-row\" aria-label=\"Changed fields in this version\">\n @for (diff of PreviewChangedFieldChips.slice(0, 6); track diff.FieldName) {\n <span class=\"mj-forms-version-preview-field-chip\"\n [title]=\"(diff.DisplayName || diff.FieldName) + ': ' + FormatPreviewDiffValue(diff.HistoricalValue) + ' (Current live: ' + FormatPreviewDiffValue(diff.CurrentLiveValue) + ')'\">\n <span class=\"mj-forms-version-preview-field-chip-label\">{{ diff.DisplayName || diff.FieldName }}:</span>\n <strong class=\"mj-forms-version-preview-field-chip-hist\">{{ FormatPreviewDiffValue(diff.HistoricalValue) }}</strong>\n <span class=\"mj-forms-version-preview-field-chip-live\">\u2190 Live: {{ FormatPreviewDiffValue(diff.CurrentLiveValue) }}</span>\n </span>\n }\n @if (PreviewChangedFieldChips.length > 6) {\n <span class=\"mj-forms-version-preview-field-chip-more\">\n +{{ PreviewChangedFieldChips.length - 6 }} more\n </span>\n }\n </div>\n }\n </div>\n}\n\n<!-- ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n Variant picker is now embedded in <mj-form-toolbar> as a right-side\n button \u2014 see the [Variants]/[CurrentVariantID] inputs + (VariantPicked)\n output on the toolbar above. Inline strip was removed.\n ============================================ -->\n<!-- Persistent polite live region for the section indicators (see FormIndicatorsAnnouncement) -->\n<span class=\"mj-forms-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ FormIndicatorsAnnouncement }}</span>\n\n<!-- ============================================\n NON-INTRUSIVE LIVE REMOTE UPDATE SLIDE-IN PILL\n ============================================ -->\n@if (RemoteUpdatePill) {\n <div class=\"mj-forms-remote-update-pill\"\n [class.mj-forms-remote-update-pill--warning]=\"RemoteUpdatePill.Kind === 'stale-while-editing'\"\n role=\"status\"\n aria-live=\"polite\">\n <i [class]=\"RemoteUpdatePill.Kind === 'refreshed' ? 'fa-solid fa-bolt mj-forms-remote-update-pill-icon' : 'fa-solid fa-arrows-rotate mj-forms-remote-update-pill-icon'\"></i>\n <span class=\"mj-forms-remote-update-pill-text\">{{ RemoteUpdatePill.Summary }}</span>\n @if (RemoteUpdatePill.Kind === 'stale-while-editing') {\n <button type=\"button\"\n class=\"mj-forms-remote-update-pill-action\"\n (click)=\"OnReloadFromRemotePill()\">\n Reload\n </button>\n }\n <button type=\"button\"\n class=\"mj-forms-remote-update-pill-close\"\n title=\"Dismiss\"\n aria-label=\"Dismiss notification\"\n (click)=\"OnDismissRemoteUpdatePill()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n}\n\n<!-- ============================================\n POSSIBLE DUPLICATES (entry-time check, new records only)\n Flag only: never blocks a save. A name opens that record through Navigate.\n ============================================ -->\n@if (DuplicateEntryCandidates.length > 0) {\n <mj-alert class=\"mj-forms-duplicate-notice\"\n Variant=\"warning\"\n Size=\"sm\"\n Icon=\"fa-solid fa-clone\"\n Role=\"status\"\n Dismissible\n (Dismissed)=\"OnDuplicateNoticeDismissed()\">\n <span class=\"mj-forms-duplicate-notice-lead\">This may duplicate:</span>\n @for (candidate of DuplicateEntryCandidates; track candidate.RecordID; let last = $last) {\n <button type=\"button\"\n class=\"mj-forms-duplicate-notice-candidate\"\n [title]=\"'Open ' + candidate.DisplayName\"\n (click)=\"OnDuplicateCandidateClick(candidate)\">{{ candidate.DisplayName }}</button>@if (!last) {<span>, </span>}\n }\n </mj-alert>\n}\n\n<div class=\"mj-forms-scroll-area\">\n <div class=\"mj-forms-panels-container\"\n [class.mj-forms-panels--full-width]=\"EffectiveWidthMode === 'full-width'\"\n [class.mj-forms-panels--edit-mode]=\"EffectiveEditMode\"\n [class.mj-forms-panels--has-isa-panel]=\"HasIsaRelatedItems\">\n <!-- Flex row: optional left-nav + form panels + ISA side panel -->\n <div class=\"mj-forms-layout-row\"\n [class.mj-forms-layout--left-nav]=\"ChromeLayout === 'left-nav'\"\n [class.mj-forms-layout--accordion]=\"ChromeLayout === 'accordion'\"\n [class.mj-forms-layout--more]=\"IsChromeMoreActive\">\n @if (ShowChromeRail) {\n <nav class=\"mj-forms-chrome-rail\"\n [class.is-collapsed]=\"ChromeRailCollapsed\"\n [class.is-resizing]=\"RailResizing\"\n [style.width.px]=\"ChromeRailCollapsed ? null : ChromeRailWidthPx\"\n [attr.aria-expanded]=\"!ChromeRailCollapsed\"\n aria-label=\"Form sections\">\n @if (ChromeRailCollapsed) {\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-spine\"\n (click)=\"OnChromeRailExpand()\"\n [attr.aria-label]=\"'Show form sections \u2014 ' + ChromeActiveTitle\"\n [title]=\"'Show sections \u2014 ' + ChromeActiveTitle\">\n <i [class]=\"ChromeActiveIcon\"></i>\n <span class=\"mj-forms-chrome-rail-spine-label\"\n (mouseenter)=\"OnRailLabelHover($event, ChromeActiveTitle)\">{{ ChromeActiveTitle }}</span>\n <!-- Whole-form section indicators: no rail item is visible while collapsed -->\n @let formIndicators = FormIndicators;\n @if (formIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error is-spine\"\n role=\"img\"\n [title]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\"\n [attr.aria-label]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\">{{ formIndicators.ErrorCount }}</span>\n } @else if (formIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning is-spine\"\n role=\"img\"\n [title]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\"\n [attr.aria-label]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\">{{ formIndicators.WarningCount }}</span>\n }\n @if (formIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty is-spine\"\n role=\"img\"\n [title]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"\n [attr.aria-label]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"></span>\n }\n </button>\n } @else {\n <div class=\"mj-forms-chrome-rail-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-valuenow]=\"ChromeRailWidthPx\"\n [attr.aria-valuemin]=\"RailWidthMin\"\n [attr.aria-valuemax]=\"RailWidthMax\"\n title=\"Drag to resize sections\"\n (pointerdown)=\"OnRailResizeStart($event)\"\n (pointermove)=\"OnRailResizeMove($event)\"\n (pointerup)=\"OnRailResizeEnd()\"\n (pointercancel)=\"OnRailResizeEnd()\"></div>\n <div class=\"mj-forms-chrome-rail-toolbar\">\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-pin\"\n [class.is-pinned]=\"ChromeRailPinned\"\n [attr.aria-pressed]=\"ChromeRailPinned\"\n [title]=\"ChromeRailPinned ? 'Unpin sections \u2014 they hide after you switch' : 'Pin sections open'\"\n (click)=\"OnChromeRailPinToggle()\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-collapse\"\n title=\"Hide sections\"\n aria-label=\"Hide form sections\"\n (click)=\"OnChromeRailCollapse()\">\n <i class=\"fa-solid fa-angles-left\"></i>\n </button>\n </div>\n <!-- Rail items scroll on their own when they outgrow the viewport;\n the pin / collapse toolbar above stays put. -->\n <div class=\"mj-forms-chrome-rail-items\">\n @for (group of ChromeFirstClassGroups; track group.Key) {\n <div class=\"mj-forms-chrome-rail-item\"\n role=\"button\"\n tabindex=\"0\"\n [attr.data-rail-key]=\"group.Key\"\n [class.is-active]=\"ChromeActiveGroupKey === group.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === group.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === group.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(group).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(group).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(group.Key)\"\n (dragover)=\"OnRailDragOver($event, group.Key)\"\n (dragleave)=\"OnRailDragLeave($event, group.Key)\"\n (drop)=\"OnRailDrop($event, group.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, group.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"group.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, group.Title)\">{{ group.Title }}</span>\n @let groupIndicators = ChromeGroupIndicators(group);\n @if (groupIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"></span>\n }\n @if (groupIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\"\n [attr.aria-label]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.ErrorCount }}\n </span>\n } @else if (groupIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\"\n [attr.aria-label]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.WarningCount }}\n </span>\n }\n @let rowCount = ChromeGroupRowCount(group);\n @if (rowCount != null && rowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ rowCount }}</span>\n }\n </div>\n }\n @if (ChromeMoreFolder; as more) {\n <div class=\"mj-forms-chrome-rail-item is-more-folder\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-expanded]=\"MoreExpanded\"\n [class.has-errors]=\"ChromeGroupIndicators(more).ErrorCount > 0\"\n (click)=\"OnMoreFolderToggle()\"\n (keydown.enter)=\"OnMoreFolderToggle()\"\n (keydown.space)=\"$event.preventDefault(); OnMoreFolderToggle()\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, more.Title)\">{{ more.Title }}</span>\n @let moreIndicators = ChromeGroupIndicators(more);\n @if (moreIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"></span>\n }\n @if (moreIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\"\n [attr.aria-label]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.ErrorCount }}\n </span>\n } @else if (moreIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\"\n [attr.aria-label]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.WarningCount }}\n </span>\n }\n @if (!MoreExpanded) {\n @let moreRowCount = ChromeMoreRowCount;\n @if (moreRowCount != null && moreRowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ moreRowCount }}</span>\n }\n }\n <i class=\"fa-solid mj-forms-chrome-rail-more-toggle\"\n [class.fa-minus]=\"MoreExpanded\"\n [class.fa-plus]=\"!MoreExpanded\"\n aria-hidden=\"true\"></i>\n </div>\n @if (MoreExpanded) {\n <div class=\"mj-forms-chrome-rail-more-tree\">\n @for (child of ChromeMoreItems; track child.Key) {\n <div class=\"mj-forms-chrome-rail-item is-more-child\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-active]=\"ChromeActiveGroupKey === child.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === child.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === child.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(child).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(child).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(child.Key)\"\n (dragover)=\"OnRailDragOver($event, child.Key)\"\n (dragleave)=\"OnRailDragLeave($event, child.Key)\"\n (drop)=\"OnRailDrop($event, child.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, child.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"child.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, child.Title)\">{{ child.Title }}</span>\n @let childIndicators = ChromeGroupIndicators(child);\n @if (childIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"></span>\n }\n @if (childIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\"\n [attr.aria-label]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.ErrorCount }}\n </span>\n } @else if (childIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\"\n [attr.aria-label]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.WarningCount }}\n </span>\n }\n @let childCount = ChromeGroupRowCount(child);\n @if (childCount != null && childCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ childCount }}</span>\n }\n </div>\n }\n </div>\n }\n }\n @let unroutedErrors = UnroutedValidationErrorCount;\n @if (unroutedErrors > 0) {\n <!-- A failed save's errors that no rail item owns. Without this row they were counted\n only on the collapsed spine, so an EXPANDED rail could look clean over a form\n the server had just refused. -->\n <div class=\"mj-forms-chrome-rail-unrouted\"\n role=\"note\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\"\n [title]=\"RailUnroutedErrorTitle(unroutedErrors)\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>\n <span class=\"mj-forms-chrome-rail-label\">Not in a section</span>\n <span class=\"mj-forms-chrome-rail-error is-unrouted\" role=\"img\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\">{{ unroutedErrors }}</span>\n </div>\n }\n </div>\n }\n </nav>\n }\n <!-- All panels in a single flex container \u2014 CSS order drives sequencing -->\n <div class=\"mj-forms-all-panels\">\n <ng-content></ng-content>\n\n <!--\n Fill-in related grids for DisplayInForm relationships the template\n did not bake and no registered panel claimed. Claimed / extra panels\n still mount via mj-form-panel-slot. See plans/form-contributions.md.\n -->\n @if (Record && FormComponent) {\n <mj-form-contributions\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\"\n [FormContext]=\"FormComponent.formContext\"\n [BakedSectionKeys]=\"BakedRelatedSectionKeys\"\n [ShowRelatedEntities]=\"EffectiveShowRelatedEntities\">\n </mj-form-contributions>\n }\n\n <!--\n Container-provided fallback slot. ALWAYS present \u2014 last in document\n order \u2014 so any panel whose registered slot isn't found in the current\n form falls through here via FormSlotCoordinator's chain. Downstream\n consumers that haven't rerun CodeGen against the slot-emitting\n template still see every panel; they just render at the bottom\n instead of at their preferred position.\n -->\n @if (ShowMoreToggle) {\n <div class=\"mj-forms-more-overflow\" [class.is-expanded]=\"MoreExpanded\">\n <button type=\"button\"\n class=\"mj-forms-more-overflow-toggle\"\n (click)=\"OnMoreToggle()\">\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-more-overflow-label\">{{ MoreExpanded ? 'Hide more' : 'More' }}</span>\n @if (!MoreExpanded && MorePreview) {\n <span class=\"mj-forms-more-overflow-preview\">{{ MorePreview }}</span>\n }\n @if (!MoreExpanded) {\n @let accordionMoreCount = ChromeMoreRowCount;\n @if (accordionMoreCount != null && accordionMoreCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ accordionMoreCount }}</span>\n }\n }\n <i class=\"fa-solid\"\n [class.fa-chevron-down]=\"MoreExpanded\"\n [class.fa-chevron-right]=\"!MoreExpanded\"></i>\n </button>\n </div>\n }\n\n @if (Record && FormComponent) {\n <mj-form-panel-slot\n [Entity]=\"Record.EntityInfo.Name\"\n Slot=\"after-everything\"\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\">\n </mj-form-panel-slot>\n }\n\n <!-- Empty state when no sections match search -->\n @if (EffectiveSearchFilter && SearchHasNoMatches) {\n <mj-empty-state class=\"mj-forms-empty-search-state\"\n Variant=\"no-results\"\n Title=\"No sections found\"\n [Message]=\"'No sections match &quot;' + EffectiveSearchFilter + '&quot;. Try a different search term.'\"\n ActionText=\"Clear search\"\n ActionIcon=\"fa-solid fa-rotate-left\"\n ActionVariant=\"flat\"\n (Action)=\"OnFilterChange('')\" />\n }\n </div>\n\n <!-- IS-A Related Records Side Panel -->\n <mj-isa-related-panel\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [Collapsed]=\"EffectiveWidthMode === 'full-width'\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-isa-related-panel>\n </div>\n </div>\n</div>\n\n<!-- ============================================\n RECORD CHANGES DRAWER (shown when history button clicked)\n ============================================ -->\n@if (ShowRecordChanges && EffectiveRecord) {\n <mj-record-changes\n [record]=\"EffectiveRecord\"\n [AllowRestore]=\"EffectiveUserCanEdit\"\n [PreviewedChangeID]=\"ActiveVersionPreview?.ChangeID ?? null\"\n (PreviewVersionSelected)=\"OnPreviewVersionSelected($event)\"\n (RestoreRequested)=\"OnRestoreRequested($event)\"\n (dialogClosed)=\"OnRecordChangesClosed()\">\n </mj-record-changes>\n}\n\n<!-- ============================================\n TAGS PANEL (shown when tags button clicked)\n ============================================ -->\n@if (ShowTagsPanel && EffectiveRecord) {\n <mj-record-tags\n [Record]=\"EffectiveRecord\"\n [WidthPx]=\"TagsPanelWidth\"\n (PanelClosed)=\"OnTagsPanelClosed()\"\n (TagCountChanged)=\"OnTagCountChanged($event)\"\n (RecordNavigate)=\"OnTagsRecordNavigate($event)\"\n (WidthChanged)=\"OnTagsPanelWidthChanged($event)\">\n </mj-record-tags>\n}\n\n<!-- ============================================\n LINKS DRAWER (shown when links button clicked)\n ============================================ -->\n@if (ShowRecordLinks && EffectiveRecord && EffectiveRecord.IsSaved) {\n <mj-record-links\n [Provider]=\"Provider\"\n [Record]=\"EffectiveRecord\"\n [Mode]=\"'drawer'\"\n [IsOpen]=\"ShowRecordLinks\"\n (Close)=\"OnRecordLinksClosed()\"\n (LinkCountChange)=\"OnLinkCountChanged($event)\"\n (LinksSummaryChange)=\"OnLinksSummaryChanged($event)\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-record-links>\n}\n\n<!-- ============================================\n ATTACHMENTS PANEL (shown when attachments button clicked)\n ============================================ -->\n@if (ShowAttachmentsPanel && AttachmentsAvailable && EffectiveRecord) {\n <mj-record-attachments\n [Record]=\"EffectiveRecord\"\n [Visible]=\"true\"\n (PanelClosed)=\"OnAttachmentsPanelClosed()\"\n (AttachmentCountChanged)=\"OnAttachmentCountChanged($event)\">\n </mj-record-attachments>\n}\n\n<!-- ============================================\n LIST MANAGEMENT DIALOG (shown when lists button clicked)\n ============================================ -->\n@if (ShowListManagement && EffectiveRecord) {\n <mj-list-management-dialog\n [visible]=\"ShowListManagement\"\n [config]=\"{\n mode: 'manage',\n entityId: EffectiveRecord.EntityInfo.ID,\n entityName: EffectiveRecord.EntityInfo.Name,\n recordIds: [EffectiveRecord.PrimaryKey.Values()[0]],\n allowCreate: true\n }\"\n (complete)=\"OnListManagementComplete($event)\"\n (cancel)=\"OnListManagementClosed()\">\n </mj-list-management-dialog>\n}\n\n<!-- ============================================\n SECTION MANAGER DRAWER (shown when manage-sections button clicked)\n ============================================ -->\n<mj-section-manager\n [Sections]=\"SectionManagerItems\"\n [SectionOrder]=\"SectionManagerOrder\"\n [MoreSectionKeys]=\"SectionManagerMoreKeys\"\n [LockedMoreKeys]=\"SectionManagerLockedMoreKeys\"\n [Visible]=\"ShowSectionManager\"\n (SectionOrderChange)=\"OnSectionOrderChange($event)\"\n (MembershipChange)=\"OnChromeMembershipChange($event)\"\n (ResetRequested)=\"OnSectionManagerReset()\"\n (Closed)=\"OnSectionManagerClosed()\">\n</mj-section-manager>\n\n<!-- ============================================\n PANEL MANAGER DRAWER \u2014 what is registered on this form, and the switches for it\n ============================================ -->\n<mj-panel-manager\n [Visible]=\"ShowPanelManager\"\n [Entity]=\"EffectiveEntityInfo\"\n [Compiled]=\"PanelManagerCompiled\"\n [StockGrids]=\"PanelManagerStockGrids\"\n [FullCustomForm]=\"!!fc?.OwnsEntireFormBody\"\n [TitleByKey]=\"PanelManagerTitles\"\n [Related]=\"PanelManagerRelated\"\n [Provider]=\"ProviderToUse\"\n [Variants]=\"EffectiveVariants\"\n [CurrentFormID]=\"EffectiveCurrentVariantID\"\n [RecordKey]=\"PanelManagerRecordKey\"\n (Changed)=\"OnPanelManagerChanged()\"\n (FormChosen)=\"OnPanelManagerFormChosen($event)\"\n (Closed)=\"OnPanelManagerClosed()\">\n</mj-panel-manager>\n", styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n\n/* ====================================================================\n NON-INTRUSIVE LIVE REMOTE UPDATE SLIDE-IN PILL\n ==================================================================== */\n@keyframes mj-remote-pill-slide-in {\n from {\n opacity: 0;\n transform: translateY(-8px) scale(0.97);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n.mj-forms-remote-update-pill {\n position: absolute;\n top: 56px;\n right: 24px;\n z-index: 45;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n border-radius: 999px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface-card));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n box-shadow: var(--mj-shadow-md, 0 4px 14px rgba(0, 0, 0, 0.12));\n color: var(--mj-text-primary);\n font-size: 12.5px;\n font-weight: 500;\n line-height: 1.3;\n animation: mj-remote-pill-slide-in 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n.mj-forms-remote-update-pill--warning {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mj-forms-remote-update-pill-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mj-forms-remote-update-pill--warning .mj-forms-remote-update-pill-icon {\n color: var(--mj-status-warning);\n}\n\n.mj-forms-remote-update-pill-action {\n border: none;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n color: var(--mj-brand-primary);\n font: inherit;\n font-size: 11.5px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n cursor: pointer;\n}\n\n.mj-forms-remote-update-pill-action:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.mj-forms-remote-update-pill-close {\n border: none;\n background: transparent;\n color: var(--mj-text-muted);\n padding: 2px 4px;\n border-radius: 999px;\n cursor: pointer;\n line-height: 1;\n}\n\n.mj-forms-remote-update-pill-close:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n\n/* ====================================================================\n TIME-TRAVEL HISTORICAL VERSION PREVIEW BANNER\n ==================================================================== */\n.mj-forms-version-preview-banner {\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 20px;\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface-elevated));\n border-bottom: 1px solid color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.mj-forms-version-preview-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.mj-forms-version-preview-main {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.mj-forms-version-preview-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-version-preview-meta {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-author {\n color: var(--mj-text-secondary);\n font-size: 12px;\n}\n\n.mj-forms-version-preview-diff-pill {\n padding: 2px 9px;\n border-radius: 999px;\n font-size: 11.5px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-info) 14%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border: 1px solid color-mix(in srgb, var(--mj-status-info) 30%, transparent);\n}\n\n.mj-forms-version-preview-actions {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mj-forms-version-preview-stepper {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px;\n border-radius: 6px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-step-btn {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--mj-text-secondary);\n font-size: 11.5px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n}\n\n.mj-forms-version-preview-step-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-step-btn:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.mj-forms-version-preview-step-count {\n padding: 0 6px;\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-version-preview-timeline-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n}\n\n.mj-forms-version-preview-timeline-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 1px solid var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-version-preview-exit-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-exit-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-diffs-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 6px;\n padding-top: 2px;\n}\n\n.mj-forms-version-preview-field-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 3px 9px;\n border-radius: 6px;\n font-size: 11.5px;\n background: var(--mj-bg-surface);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 28%, var(--mj-border-default));\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-field-chip-label {\n color: var(--mj-text-secondary);\n font-weight: 600;\n}\n\n.mj-forms-version-preview-field-chip-hist {\n color: var(--mj-brand-primary);\n font-weight: 700;\n}\n\n.mj-forms-version-preview-field-chip-live {\n color: var(--mj-text-muted);\n font-size: 11px;\n}\n\n.mj-forms-version-preview-field-chip-more {\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n padding: 2px 6px;\n}\n\n.mj-forms-version-preview-step-btn:focus-visible,\n.mj-forms-version-preview-timeline-btn:focus-visible,\n.mj-forms-version-preview-restore-btn:focus-visible,\n.mj-forms-version-preview-exit-btn:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 1px;\n}\n"] }]
3142
4324
  }], null, { recordChangesDrawer: [{
3143
4325
  type: ViewChild,
3144
4326
  args: [RecordChangesComponent]
@@ -3226,11 +4408,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
3226
4408
  type: Output
3227
4409
  }], AfterSectionActivated: [{
3228
4410
  type: Output
4411
+ }], AskAIRequested: [{
4412
+ type: Output
3229
4413
  }], Panels: [{
3230
4414
  type: ContentChildren,
3231
4415
  args: [MjCollapsiblePanelComponent, { descendants: true }]
3232
4416
  }] }); })();
3233
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 161 }); })();
4417
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 179 }); })();
3234
4418
  /** The value a form with no entity resolves to. */
3235
4419
  const NO_RESOLVED_CONTRIBUTIONS = { Winners: [], RailItems: new Map() };
3236
4420
  /**