var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component } from '@angular/core';
import { RegisterClass } from '@memberjunction/global';
import { BaseFormComponent } from '@memberjunction/ng-base-forms';
import * as i0 from "@angular/core";
import * as i1 from "@memberjunction/ng-base-forms";
function MJApplicationFormComponent_Conditional_23_Template(rf, ctx) { if (rf & 1) {
    const _r1 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 28);
    i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Conditional_23_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJApplicationFormComponent_Conditional_23_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJApplicationEntities", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: Application Entities", "ApplicationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: Application Entities"))("AllowLoad", ctx_r1.IsSectionExpanded("mJApplicationEntities"))("ShowToolbar", false);
} }
function MJApplicationFormComponent_Conditional_25_Template(rf, ctx) { if (rf & 1) {
    const _r3 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 28);
    i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Conditional_25_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJApplicationFormComponent_Conditional_25_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJUserApplications", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: User Applications", "ApplicationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: User Applications"))("AllowLoad", ctx_r1.IsSectionExpanded("mJUserApplications"))("ShowToolbar", false);
} }
function MJApplicationFormComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 28);
    i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Conditional_27_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJApplicationFormComponent_Conditional_27_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJApplicationSettings", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: Application Settings", "ApplicationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: Application Settings"))("AllowLoad", ctx_r1.IsSectionExpanded("mJApplicationSettings"))("ShowToolbar", false);
} }
function MJApplicationFormComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
    const _r5 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 28);
    i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Conditional_29_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJApplicationFormComponent_Conditional_29_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJDashboards", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: Dashboards", "ApplicationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: Dashboards"))("AllowLoad", ctx_r1.IsSectionExpanded("mJDashboards"))("ShowToolbar", false);
} }
function MJApplicationFormComponent_Conditional_31_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 28);
    i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Conditional_31_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJApplicationFormComponent_Conditional_31_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJDashboardUserPreferences", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: Dashboard User Preferences", "ApplicationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: Dashboard User Preferences"))("AllowLoad", ctx_r1.IsSectionExpanded("mJDashboardUserPreferences"))("ShowToolbar", false);
} }
function MJApplicationFormComponent_Conditional_33_Template(rf, ctx) { if (rf & 1) {
    const _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 28);
    i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Conditional_33_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJApplicationFormComponent_Conditional_33_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJApplicationRoles", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: Application Roles", "ApplicationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: Application Roles"))("AllowLoad", ctx_r1.IsSectionExpanded("mJApplicationRoles"))("ShowToolbar", false);
} }
let MJApplicationFormComponent = class MJApplicationFormComponent extends BaseFormComponent {
    async ngOnInit() {
        await super.ngOnInit();
        this.initSections([
            { sectionKey: 'applicationConfiguration', sectionName: 'Application Configuration', isExpanded: true },
            { sectionKey: 'generalInformation', sectionName: 'General Information', isExpanded: true },
            { sectionKey: 'navigationSettings', sectionName: 'Navigation Settings', isExpanded: false },
            { sectionKey: 'systemMetadata', sectionName: 'System Metadata', isExpanded: false },
            { sectionKey: 'mJApplicationEntities', sectionName: 'Entities', isExpanded: false },
            { sectionKey: 'mJUserApplications', sectionName: 'User Applications', isExpanded: false },
            { sectionKey: 'mJApplicationSettings', sectionName: 'Application Settings', isExpanded: false },
            { sectionKey: 'mJDashboards', sectionName: 'Dashboards', isExpanded: false },
            { sectionKey: 'mJDashboardUserPreferences', sectionName: 'Dashboard User Preferences', isExpanded: false },
            { sectionKey: 'mJApplicationRoles', sectionName: 'Application Roles', isExpanded: false }
        ]);
    }
    static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMJApplicationFormComponent_BaseFactory; return function MJApplicationFormComponent_Factory(__ngFactoryType__) { return (ɵMJApplicationFormComponent_BaseFactory || (ɵMJApplicationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MJApplicationFormComponent)))(__ngFactoryType__ || MJApplicationFormComponent); }; })(); }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJApplicationFormComponent, selectors: [["gen-mjapplication-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 34, vars: 108, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["SectionKey", "applicationConfiguration", "SectionName", "Application Configuration", "Icon", "fa fa-cog", 3, "Form", "FormContext"], ["FieldName", "DefaultForNewUser", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SchemaAutoAddNewEntities", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ClassName", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DefaultSequence", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Path", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "AutoUpdatePath", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "generalInformation", "SectionName", "General Information", "Icon", "fa fa-info-circle", 3, "Form", "FormContext"], ["FieldName", "Name", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Icon", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Color", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "navigationSettings", "SectionName", "Navigation Settings", "Icon", "fa fa-sliders-h", 3, "Form", "FormContext"], ["FieldName", "DefaultNavItems", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "NavigationStyle", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "TopNavLocation", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "HideNavBarIconWhenActive", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "systemMetadata", "SectionName", "System Metadata", "Icon", "fa fa-database", 3, "Form", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "mJApplicationEntities", "SectionName", "Entities", "Icon", "fa fa-cubes", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJUserApplications", "SectionName", "User Applications", "Icon", "fa fa-th", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJApplicationSettings", "SectionName", "Application Settings", "Icon", "fa fa-sliders-h", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJDashboards", "SectionName", "Dashboards", "Icon", "fa-solid fa-table-columns", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJDashboardUserPreferences", "SectionName", "Dashboard User Preferences", "Icon", "fa fa-tachometer-alt", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJApplicationRoles", "SectionName", "Application Roles", "Icon", "fa fa-shield-alt", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"]], template: function MJApplicationFormComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "mj-record-form-container", 0);
            i0.ɵɵlistener("Navigate", function MJApplicationFormComponent_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function MJApplicationFormComponent_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function MJApplicationFormComponent_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function MJApplicationFormComponent_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function MJApplicationFormComponent_Template_mj_record_form_container_ListManagementRequested_0_listener() { return ctx.OnListManagementRequested(); });
            i0.ɵɵelementStart(1, "mj-collapsible-panel", 1);
            i0.ɵɵelement(2, "mj-form-field", 2)(3, "mj-form-field", 3)(4, "mj-form-field", 4)(5, "mj-form-field", 5)(6, "mj-form-field", 6)(7, "mj-form-field", 7)(8, "mj-form-field", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "mj-collapsible-panel", 9);
            i0.ɵɵelement(10, "mj-form-field", 10)(11, "mj-form-field", 11)(12, "mj-form-field", 12)(13, "mj-form-field", 13);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(14, "mj-collapsible-panel", 14);
            i0.ɵɵelement(15, "mj-form-field", 15)(16, "mj-form-field", 16)(17, "mj-form-field", 17)(18, "mj-form-field", 18);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(19, "mj-collapsible-panel", 19);
            i0.ɵɵelement(20, "mj-form-field", 20)(21, "mj-form-field", 21);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(22, "mj-collapsible-panel", 22);
            i0.ɵɵconditionalCreate(23, MJApplicationFormComponent_Conditional_23_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(24, "mj-collapsible-panel", 23);
            i0.ɵɵconditionalCreate(25, MJApplicationFormComponent_Conditional_25_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "mj-collapsible-panel", 24);
            i0.ɵɵconditionalCreate(27, MJApplicationFormComponent_Conditional_27_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(28, "mj-collapsible-panel", 25);
            i0.ɵɵconditionalCreate(29, MJApplicationFormComponent_Conditional_29_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(30, "mj-collapsible-panel", 26);
            i0.ɵɵconditionalCreate(31, MJApplicationFormComponent_Conditional_31_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(32, "mj-collapsible-panel", 27);
            i0.ɵɵconditionalCreate(33, MJApplicationFormComponent_Conditional_33_Template, 2, 4, "div");
            i0.ɵɵelementEnd()();
        } if (rf & 2) {
            i0.ɵɵproperty("Record", ctx.record)("FormComponent", ctx);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJApplicationEntities"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 23 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJUserApplications"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 25 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJApplicationSettings"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 27 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJDashboards"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 29 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJDashboardUserPreferences"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 31 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJApplicationRoles"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 33 : -1);
        } }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i1.MjRecordFormContainerComponent, i1.ExplorerEntityDataGridComponent], encapsulation: 2 }); }
};
MJApplicationFormComponent = __decorate([
    RegisterClass(BaseFormComponent, 'MJ: Applications') // Tell MemberJunction about this class
], MJApplicationFormComponent);
export { MJApplicationFormComponent };
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJApplicationFormComponent, [{
        type: Component,
        args: [{ standalone: false, selector: 'gen-mjapplication-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n    (Navigate)=\"OnFormNavigate($event)\"\n    (DeleteRequested)=\"OnDeleteRequested()\"\n    (FavoriteToggled)=\"OnFavoriteToggled()\"\n    (HistoryRequested)=\"OnHistoryRequested()\"\n    (ListManagementRequested)=\"OnListManagementRequested()\">\n\n    <!-- ========================================\n         FIELD PANELS\n         ======================================== -->\n    <!-- Application Configuration Section -->\n    <mj-collapsible-panel\n        SectionKey=\"applicationConfiguration\"\n        SectionName=\"Application Configuration\"\n        Icon=\"fa fa-cog\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"DefaultForNewUser\"\n            Type=\"checkbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"SchemaAutoAddNewEntities\"\n            Type=\"textarea\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"ClassName\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"DefaultSequence\"\n            Type=\"number\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Status\"\n            Type=\"select\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Path\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"AutoUpdatePath\"\n            Type=\"checkbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n\n    </mj-collapsible-panel>\n\n    <!-- General Information Section -->\n    <mj-collapsible-panel\n        SectionKey=\"generalInformation\"\n        SectionName=\"General Information\"\n        Icon=\"fa fa-info-circle\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Name\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Description\"\n            Type=\"textarea\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Icon\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Color\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n\n    </mj-collapsible-panel>\n\n    <!-- Navigation Settings Section -->\n    <mj-collapsible-panel\n        SectionKey=\"navigationSettings\"\n        SectionName=\"Navigation Settings\"\n        Icon=\"fa fa-sliders-h\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"DefaultNavItems\"\n            Type=\"textarea\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"NavigationStyle\"\n            Type=\"select\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"TopNavLocation\"\n            Type=\"select\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"HideNavBarIconWhenActive\"\n            Type=\"checkbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n\n    </mj-collapsible-panel>\n\n    <!-- System Metadata Section -->\n    <mj-collapsible-panel\n        SectionKey=\"systemMetadata\"\n        SectionName=\"System Metadata\"\n        Icon=\"fa fa-database\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"__mj_CreatedAt\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"__mj_UpdatedAt\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n\n    </mj-collapsible-panel>\n\n    <!-- ========================================\n         RELATED ENTITY PANELS\n         ======================================== -->\n\n    <!-- Entities Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJApplicationEntities\"\n        SectionName=\"Entities\"\n        Icon=\"fa fa-cubes\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJApplicationEntities')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Application Entities','ApplicationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Application Entities')\"\n                [AllowLoad]=\"IsSectionExpanded('mJApplicationEntities')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJApplicationEntities', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- User Applications Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJUserApplications\"\n        SectionName=\"User Applications\"\n        Icon=\"fa fa-th\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJUserApplications')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: User Applications','ApplicationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: User Applications')\"\n                [AllowLoad]=\"IsSectionExpanded('mJUserApplications')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJUserApplications', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Application Settings Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJApplicationSettings\"\n        SectionName=\"Application Settings\"\n        Icon=\"fa fa-sliders-h\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJApplicationSettings')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Application Settings','ApplicationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Application Settings')\"\n                [AllowLoad]=\"IsSectionExpanded('mJApplicationSettings')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJApplicationSettings', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Dashboards Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJDashboards\"\n        SectionName=\"Dashboards\"\n        Icon=\"fa-solid fa-table-columns\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJDashboards')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Dashboards','ApplicationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Dashboards')\"\n                [AllowLoad]=\"IsSectionExpanded('mJDashboards')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJDashboards', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Dashboard User Preferences Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJDashboardUserPreferences\"\n        SectionName=\"Dashboard User Preferences\"\n        Icon=\"fa fa-tachometer-alt\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJDashboardUserPreferences')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Dashboard User Preferences','ApplicationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Dashboard User Preferences')\"\n                [AllowLoad]=\"IsSectionExpanded('mJDashboardUserPreferences')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJDashboardUserPreferences', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Application Roles Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJApplicationRoles\"\n        SectionName=\"Application Roles\"\n        Icon=\"fa fa-shield-alt\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJApplicationRoles')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Application Roles','ApplicationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Application Roles')\"\n                [AllowLoad]=\"IsSectionExpanded('mJApplicationRoles')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJApplicationRoles', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n</mj-record-form-container>\n        " }]
    }], null, null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJApplicationFormComponent, { className: "MJApplicationFormComponent", filePath: "src/lib/generated/Entities/MJApplication/mjapplication.form.component.ts", lineNumber: 13 }); })();
//# sourceMappingURL=mjapplication.form.component.js.map