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 { MJContentSourceFormComponent } from '../../generated/Entities/MJContentSource/mjcontentsource.form.component';
import * as i0 from "@angular/core";
import * as i1 from "@memberjunction/ng-base-forms";
function MJContentSourceFormComponentExtended_Conditional_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "mj-form-field", 4);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("Record", ctx_r0.record)("ShowLabel", true)("EditMode", ctx_r0.EditMode)("FormContext", ctx_r0.formContext);
} }
function MJContentSourceFormComponentExtended_Conditional_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "mj-form-field", 19)(1, "mj-form-field", 20);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("Record", ctx_r0.record)("ShowLabel", true)("EditMode", ctx_r0.EditMode)("FormContext", ctx_r0.formContext);
    i0.ɵɵadvance();
    i0.ɵɵproperty("Record", ctx_r0.record)("ShowLabel", true)("EditMode", ctx_r0.EditMode)("FormContext", ctx_r0.formContext);
} }
function MJContentSourceFormComponentExtended_Conditional_18_Template(rf, ctx) { if (rf & 1) {
    const _r2 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 21);
    i0.ɵɵlistener("Navigate", function MJContentSourceFormComponentExtended_Conditional_18_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnFormNavigate($event)); })("AfterDataLoad", function MJContentSourceFormComponentExtended_Conditional_18_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetSectionRowCount("mJContentItems", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r0.BuildRelationshipViewParamsByEntityName("MJ: Content Items", "ContentSourceID"))("NewRecordValues", ctx_r0.NewRecordValues("MJ: Content Items"))("AllowLoad", ctx_r0.IsSectionExpanded("mJContentItems"))("ShowToolbar", false);
} }
function MJContentSourceFormComponentExtended_Conditional_20_Template(rf, ctx) { if (rf & 1) {
    const _r3 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 21);
    i0.ɵɵlistener("Navigate", function MJContentSourceFormComponentExtended_Conditional_20_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnFormNavigate($event)); })("AfterDataLoad", function MJContentSourceFormComponentExtended_Conditional_20_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetSectionRowCount("mJContentProcessRuns", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r0.BuildRelationshipViewParamsByEntityName("MJ: Content Process Runs", "SourceID"))("NewRecordValues", ctx_r0.NewRecordValues("MJ: Content Process Runs"))("AllowLoad", ctx_r0.IsSectionExpanded("mJContentProcessRuns"))("ShowToolbar", false);
} }
function MJContentSourceFormComponentExtended_Conditional_22_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 21);
    i0.ɵɵlistener("Navigate", function MJContentSourceFormComponentExtended_Conditional_22_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnFormNavigate($event)); })("AfterDataLoad", function MJContentSourceFormComponentExtended_Conditional_22_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetSectionRowCount("mJContentSourceParams", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r0.BuildRelationshipViewParamsByEntityName("MJ: Content Source Params", "ContentSourceID"))("NewRecordValues", ctx_r0.NewRecordValues("MJ: Content Source Params"))("AllowLoad", ctx_r0.IsSectionExpanded("mJContentSourceParams"))("ShowToolbar", false);
} }
/**
 * Custom Content Source form that conditionally shows/hides Entity-specific fields
 * (EntityID, EntityDocumentID) based on the selected ContentSourceType.
 *
 * When the source type is "Entity", the entity fields are shown and URL is hidden.
 * For all other source types, URL is shown and entity fields are hidden.
 */
let MJContentSourceFormComponentExtended = class MJContentSourceFormComponentExtended extends MJContentSourceFormComponent {
    /**
     * Whether the current source type is "Entity", which enables
     * EntityID and EntityDocumentID fields and hides the URL field.
     */
    get IsEntitySourceType() {
        if (!this.record)
            return false;
        const typeName = this.record.ContentSourceType;
        return typeName != null && typeName.trim().toLowerCase() === 'entity';
    }
    static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMJContentSourceFormComponentExtended_BaseFactory; return function MJContentSourceFormComponentExtended_Factory(__ngFactoryType__) { return (ɵMJContentSourceFormComponentExtended_BaseFactory || (ɵMJContentSourceFormComponentExtended_BaseFactory = i0.ɵɵgetInheritedFactory(MJContentSourceFormComponentExtended)))(__ngFactoryType__ || MJContentSourceFormComponentExtended); }; })(); }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJContentSourceFormComponentExtended, selectors: [["mj-content-source-form-extended"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 23, vars: 65, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["SectionKey", "connectionDetails", "SectionName", "Connection Details", "Icon", "fa fa-align-left", 3, "Form", "FormContext"], ["FieldName", "Name", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ContentSourceTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "URL", "Type", "textarea", "LinkType", "URL", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "contentClassification", "SectionName", "Content Classification", "Icon", "fa fa-info-circle", 3, "Form", "FormContext"], ["FieldName", "ContentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ContentFileTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "aIIndexing", "SectionName", "AI & Indexing", "Icon", "fa fa-info-circle", 3, "Form", "FormContext"], ["FieldName", "EmbeddingModelID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "VectorIndexID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "sourceConfiguration", "SectionName", "Source Configuration", "Icon", "fa fa-sliders-h", 3, "Form", "FormContext"], ["FieldName", "Configuration", "Type", "code", 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", "mJContentItems", "SectionName", "Content Items", "Icon", "fa fa-file-alt", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJContentProcessRuns", "SectionName", "Content Process Runs", "Icon", "fa fa-cogs", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJContentSourceParams", "SectionName", "Content Source Params", "Icon", "fa fa-cogs", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["FieldName", "EntityID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "EntityDocumentID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"]], template: function MJContentSourceFormComponentExtended_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "mj-record-form-container", 0);
            i0.ɵɵlistener("Navigate", function MJContentSourceFormComponentExtended_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function MJContentSourceFormComponentExtended_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function MJContentSourceFormComponentExtended_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function MJContentSourceFormComponentExtended_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function MJContentSourceFormComponentExtended_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.ɵɵconditionalCreate(4, MJContentSourceFormComponentExtended_Conditional_4_Template, 1, 4, "mj-form-field", 4);
            i0.ɵɵconditionalCreate(5, MJContentSourceFormComponentExtended_Conditional_5_Template, 2, 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(6, "mj-collapsible-panel", 5);
            i0.ɵɵelement(7, "mj-form-field", 6)(8, "mj-form-field", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "mj-collapsible-panel", 8);
            i0.ɵɵelement(10, "mj-form-field", 9)(11, "mj-form-field", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "mj-collapsible-panel", 11);
            i0.ɵɵelement(13, "mj-form-field", 12);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(14, "mj-collapsible-panel", 13);
            i0.ɵɵelement(15, "mj-form-field", 14)(16, "mj-form-field", 15);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "mj-collapsible-panel", 16);
            i0.ɵɵconditionalCreate(18, MJContentSourceFormComponentExtended_Conditional_18_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(19, "mj-collapsible-panel", 17);
            i0.ɵɵconditionalCreate(20, MJContentSourceFormComponentExtended_Conditional_20_Template, 2, 4, "div");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "mj-collapsible-panel", 18);
            i0.ɵɵconditionalCreate(22, MJContentSourceFormComponentExtended_Conditional_22_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.ɵɵconditional(!ctx.IsEntitySourceType ? 4 : -1);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.IsEntitySourceType ? 5 : -1);
            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);
            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("mJContentItems"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 18 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJContentProcessRuns"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 20 : -1);
            i0.ɵɵadvance();
            i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJContentSourceParams"))("DefaultExpanded", false);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.record.IsSaved ? 22 : -1);
        } }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i1.MjRecordFormContainerComponent, i1.ExplorerEntityDataGridComponent], encapsulation: 2 }); }
};
MJContentSourceFormComponentExtended = __decorate([
    RegisterClass(BaseFormComponent, 'MJ: Content Sources')
], MJContentSourceFormComponentExtended);
export { MJContentSourceFormComponentExtended };
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJContentSourceFormComponentExtended, [{
        type: Component,
        args: [{ standalone: false, selector: 'mj-content-source-form-extended', 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    <!-- Connection Details Section -->\n    <mj-collapsible-panel\n        SectionKey=\"connectionDetails\"\n        SectionName=\"Connection Details\"\n        Icon=\"fa fa-align-left\"\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=\"ContentSourceTypeID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n\n        <!-- URL: shown for non-Entity source types -->\n        @if (!IsEntitySourceType) {\n        <mj-form-field\n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"URL\"\n            Type=\"textarea\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"URL\"\n        ></mj-form-field>\n        }\n\n        <!-- Entity fields: shown only for Entity source type -->\n        @if (IsEntitySourceType) {\n        <mj-form-field\n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"EntityID\"\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=\"EntityDocumentID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Content Classification Section -->\n    <mj-collapsible-panel\n        SectionKey=\"contentClassification\"\n        SectionName=\"Content Classification\"\n        Icon=\"fa fa-info-circle\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field\n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"ContentTypeID\"\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=\"ContentFileTypeID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n    </mj-collapsible-panel>\n\n    <!-- AI & Indexing Section -->\n    <mj-collapsible-panel\n        SectionKey=\"aIIndexing\"\n        SectionName=\"AI & Indexing\"\n        Icon=\"fa fa-info-circle\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field\n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"EmbeddingModelID\"\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=\"VectorIndexID\"\n            Type=\"textbox\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n            LinkType=\"Record\"\n        ></mj-form-field>\n    </mj-collapsible-panel>\n\n    <!-- Source Configuration Section -->\n    <mj-collapsible-panel\n        SectionKey=\"sourceConfiguration\"\n        SectionName=\"Source Configuration\"\n        Icon=\"fa fa-sliders-h\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\">\n        <mj-form-field\n            [Record]=\"record\"\n            [ShowLabel]=\"true\"\n            FieldName=\"Configuration\"\n            Type=\"code\"\n            [EditMode]=\"EditMode\"\n            [FormContext]=\"formContext\"\n        ></mj-form-field>\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    </mj-collapsible-panel>\n\n    <!-- Related Entity Panels -->\n\n    <!-- Content Items Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJContentItems\"\n        SectionName=\"Content Items\"\n        Icon=\"fa fa-file-alt\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJContentItems')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Content Items','ContentSourceID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Content Items')\"\n                [AllowLoad]=\"IsSectionExpanded('mJContentItems')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJContentItems', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Content Process Runs Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJContentProcessRuns\"\n        SectionName=\"Content Process Runs\"\n        Icon=\"fa fa-cogs\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJContentProcessRuns')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Content Process Runs','SourceID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Content Process Runs')\"\n                [AllowLoad]=\"IsSectionExpanded('mJContentProcessRuns')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJContentProcessRuns', $event.totalRowCount)\"\n                >\n            </mj-explorer-entity-data-grid>\n        </div>\n        }\n    </mj-collapsible-panel>\n\n    <!-- Content Source Params Section -->\n    <mj-collapsible-panel\n        SectionKey=\"mJContentSourceParams\"\n        SectionName=\"Content Source Params\"\n        Icon=\"fa fa-cogs\"\n        Variant=\"related-entity\"\n        [Form]=\"this\"\n        [FormContext]=\"formContext\"\n        [BadgeCount]=\"GetSectionRowCount('mJContentSourceParams')\"\n        [DefaultExpanded]=\"false\">\n        @if (record.IsSaved) {\n        <div>\n            <mj-explorer-entity-data-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: Content Source Params','ContentSourceID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: Content Source Params')\"\n                [AllowLoad]=\"IsSectionExpanded('mJContentSourceParams')\"\n                [ShowToolbar]=\"false\"\n                (Navigate)=\"OnFormNavigate($event)\"\n                (AfterDataLoad)=\"SetSectionRowCount('mJContentSourceParams', $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(MJContentSourceFormComponentExtended, { className: "MJContentSourceFormComponentExtended", filePath: "src/lib/custom/ContentSources/content-source-form.component.ts", lineNumber: 20 }); })();
export function LoadContentSourceFormExtended() {
    // Prevents tree-shaking
}
//# sourceMappingURL=content-source-form.component.js.map