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 MJAIConfigurationFormComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
    const _r1 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_18_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 MJAIConfigurationFormComponent_Conditional_18_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIAgentPrompts", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Agent Prompts", "ConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Agent Prompts"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIAgentPrompts"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
    const _r3 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_20_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 MJAIConfigurationFormComponent_Conditional_20_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIConfigurationParams", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Configuration Params", "ConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Configuration Params"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIConfigurationParams"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_22_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_22_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 MJAIConfigurationFormComponent_Conditional_22_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIAgentConfigurations", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Agent Configurations", "AIConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Agent Configurations"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIAgentConfigurations"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_24_Template(rf, ctx) { if (rf & 1) {
    const _r5 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_24_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 MJAIConfigurationFormComponent_Conditional_24_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIPromptModels", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Prompt Models", "ConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Prompt Models"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIPromptModels"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_26_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_26_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 MJAIConfigurationFormComponent_Conditional_26_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIPromptRuns", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Prompt Runs", "ConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Prompt Runs"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIPromptRuns"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_28_Template(rf, ctx) { if (rf & 1) {
    const _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_28_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 MJAIConfigurationFormComponent_Conditional_28_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIResultCache", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Result Cache", "ConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Result Cache"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIResultCache"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_30_Template(rf, ctx) { if (rf & 1) {
    const _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_30_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJAIConfigurationFormComponent_Conditional_30_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIAgentRuns", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Agent Runs", "ConfigurationID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Agent Runs"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIAgentRuns"))("ShowToolbar", false);
} }
function MJAIConfigurationFormComponent_Conditional_32_Template(rf, ctx) { if (rf & 1) {
    const _r9 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 25);
    i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Conditional_32_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function MJAIConfigurationFormComponent_Conditional_32_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIConfigurations", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Configurations", "ParentID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Configurations"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIConfigurations"))("ShowToolbar", false);
} }
let MJAIConfigurationFormComponent = class MJAIConfigurationFormComponent extends BaseFormComponent {
    async ngOnInit() {
        await super.ngOnInit();
        this.initSections([
            { sectionKey: 'basicInformation', sectionName: 'Basic Information', isExpanded: true },
            { sectionKey: 'configurationSettings', sectionName: 'Configuration Settings', isExpanded: true },
            { sectionKey: 'inheritanceSettings', sectionName: 'Inheritance Settings', isExpanded: false },
            { sectionKey: 'systemMetadata', sectionName: 'System Metadata', isExpanded: false },
            { sectionKey: 'mJAIAgentPrompts', sectionName: 'AI Agent Prompts', isExpanded: false },
            { sectionKey: 'mJAIConfigurationParams', sectionName: 'AI Configuration Params', isExpanded: false },
            { sectionKey: 'mJAIAgentConfigurations', sectionName: 'AI Agent Configurations', isExpanded: false },
            { sectionKey: 'mJAIPromptModels', sectionName: 'AI Prompt Models', isExpanded: false },
            { sectionKey: 'mJAIPromptRuns', sectionName: 'AI Prompt Runs', isExpanded: false },
            { sectionKey: 'mJAIResultCache', sectionName: 'AI Result Cache', isExpanded: false },
            { sectionKey: 'mJAIAgentRuns', sectionName: 'AI Agent Runs', isExpanded: false },
            { sectionKey: 'mJAIConfigurations', sectionName: 'AI Configurations', isExpanded: false }
        ]);
    }
    static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMJAIConfigurationFormComponent_BaseFactory; return function MJAIConfigurationFormComponent_Factory(__ngFactoryType__) { return (ɵMJAIConfigurationFormComponent_BaseFactory || (ɵMJAIConfigurationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MJAIConfigurationFormComponent)))(__ngFactoryType__ || MJAIConfigurationFormComponent); }; })(); }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJAIConfigurationFormComponent, selectors: [["gen-mjaiconfiguration-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 33, vars: 98, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["SectionKey", "basicInformation", "SectionName", "Basic Information", "Icon", "fa fa-id-card", 3, "Form", "FormContext"], ["FieldName", "Name", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "configurationSettings", "SectionName", "Configuration Settings", "Icon", "fa fa-sliders-h", 3, "Form", "FormContext"], ["FieldName", "IsDefault", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DefaultPromptForContextCompressionID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DefaultPromptForContextSummarizationID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DefaultStorageProviderID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DefaultStorageRootPath", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "inheritanceSettings", "SectionName", "Inheritance Settings", "Icon", "fa fa-sitemap", 3, "Form", "FormContext"], ["FieldName", "ParentID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "RootParentID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "systemMetadata", "SectionName", "System Metadata", "Icon", "fa fa-cog", 3, "Form", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "mJAIAgentPrompts", "SectionName", "AI Agent Prompts", "Icon", "fa fa-robot", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIConfigurationParams", "SectionName", "AI Configuration Params", "Icon", "fa fa-brain", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIAgentConfigurations", "SectionName", "AI Agent Configurations", "Icon", "fa fa-robot", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIPromptModels", "SectionName", "AI Prompt Models", "Icon", "fa fa-robot", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIPromptRuns", "SectionName", "AI Prompt Runs", "Icon", "fa fa-robot", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIResultCache", "SectionName", "AI Result Cache", "Icon", "fa fa-robot", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIAgentRuns", "SectionName", "AI Agent Runs", "Icon", "fa fa-robot", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJAIConfigurations", "SectionName", "AI Configurations", "Icon", "fa fa-brain", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"]], template: function MJAIConfigurationFormComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "mj-record-form-container", 0);
            i0.ɵɵlistener("Navigate", function MJAIConfigurationFormComponent_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function MJAIConfigurationFormComponent_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function MJAIConfigurationFormComponent_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function MJAIConfigurationFormComponent_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function MJAIConfigurationFormComponent_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);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(4, "mj-collapsible-panel", 4);
            i0.ɵɵelement(5, "mj-form-field", 5)(6, "mj-form-field", 6)(7, "mj-form-field", 7)(8, "mj-form-field", 8)(9, "mj-form-field", 9)(10, "mj-form-field", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(11, "mj-collapsible-panel", 11);
            i0.ɵɵelement(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);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "mj-collapsible-panel", 17);
            i0.ɵɵconditionalCreate(18, MJAIConfigurationFormComponent_Conditional_18_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(19, "mj-collapsible-panel", 18);
            i0.ɵɵconditionalCreate(20, MJAIConfigurationFormComponent_Conditional_20_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "mj-collapsible-panel", 19);
            i0.ɵɵconditionalCreate(22, MJAIConfigurationFormComponent_Conditional_22_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "mj-collapsible-panel", 20);
            i0.ɵɵconditionalCreate(24, MJAIConfigurationFormComponent_Conditional_24_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(25, "mj-collapsible-panel", 21);
            i0.ɵɵconditionalCreate(26, MJAIConfigurationFormComponent_Conditional_26_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(27, "mj-collapsible-panel", 22);
            i0.ɵɵconditionalCreate(28, MJAIConfigurationFormComponent_Conditional_28_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "mj-collapsible-panel", 23);
            i0.ɵɵconditionalCreate(30, MJAIConfigurationFormComponent_Conditional_30_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "mj-collapsible-panel", 24);
            i0.ɵɵconditionalCreate(32, MJAIConfigurationFormComponent_Conditional_32_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("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("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);
            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("mJAIAgentPrompts"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 18 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIConfigurationParams"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 20 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIAgentConfigurations"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 22 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIPromptModels"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 24 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIPromptRuns"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 26 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIResultCache"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 28 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIAgentRuns"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 30 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJAIConfigurations"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 32 : -1);
        } }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i1.MjRecordFormContainerComponent, i1.ExplorerEntityDataGridComponent], encapsulation: 2 }); }
};
MJAIConfigurationFormComponent = __decorate([
    RegisterClass(BaseFormComponent, 'MJ: AI Configurations') // Tell MemberJunction about this class
], MJAIConfigurationFormComponent);
export { MJAIConfigurationFormComponent };
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJAIConfigurationFormComponent, [{
        type: Component,
        args: [{ standalone: false, selector: 'gen-mjaiconfiguration-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    <!-- Basic Information Section -->\n    <mj-collapsible-panel\n        SectionKey=\"basicInformation\"\n        SectionName=\"Basic Information\"\n        Icon=\"fa fa-id-card\"\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\n    </mj-collapsible-panel>\n\n    <!-- Configuration Settings Section -->\n    <mj-collapsible-panel\n        SectionKey=\"configurationSettings\"\n        SectionName=\"Configuration 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=\"IsDefault\"\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=\"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=\"DefaultPromptForContextCompressionID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"DefaultPromptForContextSummarizationID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"DefaultStorageProviderID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"DefaultStorageRootPath\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\n\n    </mj-collapsible-panel>\n\n    <!-- Inheritance Settings Section -->\n    <mj-collapsible-panel\n        SectionKey=\"inheritanceSettings\"\n        SectionName=\"Inheritance Settings\"\n        Icon=\"fa fa-sitemap\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"ParentID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n        <mj-form-field \n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"RootParentID\"\n            Type=\"textbox\"\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-cog\"\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    <!-- AI Agent Prompts Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIAgentPrompts\"\n        SectionName=\"AI Agent Prompts\"\n        Icon=\"fa fa-robot\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIAgentPrompts')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Agent Prompts','ConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Agent Prompts')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIAgentPrompts')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIAgentPrompts', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Configuration Params Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIConfigurationParams\"\n        SectionName=\"AI Configuration Params\"\n        Icon=\"fa fa-brain\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIConfigurationParams')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Configuration Params','ConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Configuration Params')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIConfigurationParams')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIConfigurationParams', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Agent Configurations Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIAgentConfigurations\"\n        SectionName=\"AI Agent Configurations\"\n        Icon=\"fa fa-robot\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIAgentConfigurations')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Agent Configurations','AIConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Agent Configurations')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIAgentConfigurations')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIAgentConfigurations', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Prompt Models Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIPromptModels\"\n        SectionName=\"AI Prompt Models\"\n        Icon=\"fa fa-robot\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIPromptModels')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Prompt Models','ConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Prompt Models')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIPromptModels')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIPromptModels', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Prompt Runs Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIPromptRuns\"\n        SectionName=\"AI Prompt Runs\"\n        Icon=\"fa fa-robot\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIPromptRuns')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Prompt Runs','ConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Prompt Runs')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIPromptRuns')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIPromptRuns', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Result Cache Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIResultCache\"\n        SectionName=\"AI Result Cache\"\n        Icon=\"fa fa-robot\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIResultCache')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Result Cache','ConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Result Cache')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIResultCache')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIResultCache', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Agent Runs Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIAgentRuns\"\n        SectionName=\"AI Agent Runs\"\n        Icon=\"fa fa-robot\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIAgentRuns')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Agent Runs','ConfigurationID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Agent Runs')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIAgentRuns')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIAgentRuns', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- AI Configurations Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJAIConfigurations\"\n        SectionName=\"AI Configurations\"\n        Icon=\"fa fa-brain\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJAIConfigurations')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Configurations','ParentID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Configurations')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIConfigurations')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJAIConfigurations', $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(MJAIConfigurationFormComponent, { className: "MJAIConfigurationFormComponent", filePath: "src/lib/generated/Entities/MJAIConfiguration/mjaiconfiguration.form.component.ts", lineNumber: 13 }); })();
//# sourceMappingURL=mjaiconfiguration.form.component.js.map