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 "@angular/common";
import * as i2 from "@memberjunction/ng-user-view-grid";
import * as i3 from "@memberjunction/ng-base-forms";
import * as i4 from "@memberjunction/ng-form-toolbar";
function RoleFormComponent_div_10_Template(rf, ctx) { if (rf & 1) {
    const _r1 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_10_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("authorizationRoles", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Authorization Roles", "RoleName"))("NewRecordValues", ctx_r1.NewRecordValues("Authorization Roles"))("AllowLoad", ctx_r1.IsSectionExpanded("authorizationRoles"))("EditMode", ctx_r1.GridEditMode());
} }
function RoleFormComponent_div_12_Template(rf, ctx) { if (rf & 1) {
    const _r3 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_12_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("employeeRoles", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Employee Roles", "RoleID"))("NewRecordValues", ctx_r1.NewRecordValues("Employee Roles"))("AllowLoad", ctx_r1.IsSectionExpanded("employeeRoles"))("EditMode", ctx_r1.GridEditMode());
} }
function RoleFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_14_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("entityPermissions", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Entity Permissions", "RoleName"))("NewRecordValues", ctx_r1.NewRecordValues("Entity Permissions"))("AllowLoad", ctx_r1.IsSectionExpanded("entityPermissions"))("EditMode", ctx_r1.GridEditMode());
} }
function RoleFormComponent_div_16_Template(rf, ctx) { if (rf & 1) {
    const _r5 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_16_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("queryPermissions", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Query Permissions", "RoleName"))("NewRecordValues", ctx_r1.NewRecordValues("Query Permissions"))("AllowLoad", ctx_r1.IsSectionExpanded("queryPermissions"))("EditMode", ctx_r1.GridEditMode());
} }
function RoleFormComponent_div_18_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_18_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("userRoles", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("User Roles", "RoleName"))("NewRecordValues", ctx_r1.NewRecordValues("User Roles"))("AllowLoad", ctx_r1.IsSectionExpanded("userRoles"))("EditMode", ctx_r1.GridEditMode());
} }
function RoleFormComponent_div_20_Template(rf, ctx) { if (rf & 1) {
    const _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_20_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("resourcePermissions", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Resource Permissions", "RoleID"))("NewRecordValues", ctx_r1.NewRecordValues("Resource Permissions"))("AllowLoad", ctx_r1.IsSectionExpanded("resourcePermissions"))("EditMode", ctx_r1.GridEditMode());
} }
function RoleFormComponent_div_22_Template(rf, ctx) { if (rf & 1) {
    const _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div")(1, "mj-user-view-grid", 17);
    i0.ɵɵlistener("dataLoaded", function RoleFormComponent_div_22_Template_mj_user_view_grid_dataLoaded_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJAIAgentPermissions", $event.totalRowCount)); });
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ: AI Agent Permissions", "RoleID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ: AI Agent Permissions"))("AllowLoad", ctx_r1.IsSectionExpanded("mJAIAgentPermissions"))("EditMode", ctx_r1.GridEditMode());
} }
let RoleFormComponent = class RoleFormComponent extends BaseFormComponent {
    async ngOnInit() {
        await super.ngOnInit();
        this.initSections([
            { sectionKey: 'coreRoleDetails', sectionName: 'Core Role Details', isExpanded: true },
            { sectionKey: 'systemMetadata', sectionName: 'System Metadata', isExpanded: false },
            { sectionKey: 'authorizationRoles', sectionName: 'Authorization Roles', isExpanded: false },
            { sectionKey: 'employeeRoles', sectionName: 'Employee Roles', isExpanded: false },
            { sectionKey: 'entityPermissions', sectionName: 'Entity Permissions', isExpanded: false },
            { sectionKey: 'queryPermissions', sectionName: 'Query Permissions', isExpanded: false },
            { sectionKey: 'userRoles', sectionName: 'User Roles', isExpanded: false },
            { sectionKey: 'resourcePermissions', sectionName: 'Resource Permissions', isExpanded: false },
            { sectionKey: 'mJAIAgentPermissions', sectionName: 'MJ: AI Agent Permissions', isExpanded: false }
        ]);
    }
    static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRoleFormComponent_BaseFactory; return function RoleFormComponent_Factory(t) { return (ɵRoleFormComponent_BaseFactory || (ɵRoleFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RoleFormComponent)))(t || RoleFormComponent); }; })(); }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RoleFormComponent, selectors: [["gen-role-form"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 23, vars: 58, consts: [[3, "record", "formComponent"], ["slot", "field-panels", "sectionKey", "coreRoleDetails", "sectionName", "Core Role Details", "icon", "fa fa-shield-alt", 3, "form", "formContext"], ["FieldName", "Name", "Type", "textbox", 3, "record", "ShowLabel", "EditMode", "formContext"], ["FieldName", "Description", "Type", "textarea", 3, "record", "ShowLabel", "EditMode", "formContext"], ["FieldName", "DirectoryID", "Type", "textarea", 3, "record", "ShowLabel", "EditMode", "formContext"], ["FieldName", "SQLName", "Type", "textarea", 3, "record", "ShowLabel", "EditMode", "formContext"], ["slot", "field-panels", "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"], ["slot", "after-panels", "sectionKey", "authorizationRoles", "sectionName", "Authorization Roles", "icon", "fa fa-user-shield", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], [4, "ngIf"], ["slot", "after-panels", "sectionKey", "employeeRoles", "sectionName", "Employee Roles", "icon", "fa fa-user-tag", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], ["slot", "after-panels", "sectionKey", "entityPermissions", "sectionName", "Entity Permissions", "icon", "fa fa-shield-alt", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], ["slot", "after-panels", "sectionKey", "queryPermissions", "sectionName", "Query Permissions", "icon", "fa fa-shield-alt", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], ["slot", "after-panels", "sectionKey", "userRoles", "sectionName", "User Roles", "icon", "fa fa-user-shield", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], ["slot", "after-panels", "sectionKey", "resourcePermissions", "sectionName", "Resource Permissions", "icon", "fa fa-lock", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], ["slot", "after-panels", "sectionKey", "mJAIAgentPermissions", "sectionName", "MJ: AI Agent Permissions", "icon", "fa fa-robot", "variant", "related-entity", 3, "form", "formContext", "badgeCount"], [3, "dataLoaded", "Params", "NewRecordValues", "AllowLoad", "EditMode"]], template: function RoleFormComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "mj-record-form-container", 0)(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);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(6, "mj-collapsible-panel", 6);
            i0.ɵɵelement(7, "mj-form-field", 7)(8, "mj-form-field", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "mj-collapsible-panel", 9);
            i0.ɵɵtemplate(10, RoleFormComponent_div_10_Template, 2, 4, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(11, "mj-collapsible-panel", 11);
            i0.ɵɵtemplate(12, RoleFormComponent_div_12_Template, 2, 4, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(13, "mj-collapsible-panel", 12);
            i0.ɵɵtemplate(14, RoleFormComponent_div_14_Template, 2, 4, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(15, "mj-collapsible-panel", 13);
            i0.ɵɵtemplate(16, RoleFormComponent_div_16_Template, 2, 4, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "mj-collapsible-panel", 14);
            i0.ɵɵtemplate(18, RoleFormComponent_div_18_Template, 2, 4, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(19, "mj-collapsible-panel", 15);
            i0.ɵɵtemplate(20, RoleFormComponent_div_20_Template, 2, 4, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "mj-collapsible-panel", 16);
            i0.ɵɵtemplate(22, RoleFormComponent_div_22_Template, 2, 4, "div", 10);
            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("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("authorizationRoles"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
            i0.ɵɵadvance();
            i0.ɵɵproperty("form", ctx)("formContext", ctx.formContext)("badgeCount", ctx.GetSectionRowCount("employeeRoles"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
            i0.ɵɵadvance();
            i0.ɵɵproperty("form", ctx)("formContext", ctx.formContext)("badgeCount", ctx.GetSectionRowCount("entityPermissions"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
            i0.ɵɵadvance();
            i0.ɵɵproperty("form", ctx)("formContext", ctx.formContext)("badgeCount", ctx.GetSectionRowCount("queryPermissions"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
            i0.ɵɵadvance();
            i0.ɵɵproperty("form", ctx)("formContext", ctx.formContext)("badgeCount", ctx.GetSectionRowCount("userRoles"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
            i0.ɵɵadvance();
            i0.ɵɵproperty("form", ctx)("formContext", ctx.formContext)("badgeCount", ctx.GetSectionRowCount("resourcePermissions"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
            i0.ɵɵadvance();
            i0.ɵɵproperty("form", ctx)("formContext", ctx.formContext)("badgeCount", ctx.GetSectionRowCount("mJAIAgentPermissions"));
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.record.IsSaved);
        } }, dependencies: [i1.NgIf, i2.UserViewGridComponent, i3.MJFormField, i3.CollapsiblePanelComponent, i4.RecordFormContainerComponent], encapsulation: 2 }); }
};
RoleFormComponent = __decorate([
    RegisterClass(BaseFormComponent, 'Roles') // Tell MemberJunction about this class
], RoleFormComponent);
export { RoleFormComponent };
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RoleFormComponent, [{
        type: Component,
        args: [{ selector: 'gen-role-form', template: "<mj-record-form-container [record]=\"record\" [formComponent]=\"this\">\n\n    <!-- ========================================\n         FIELD PANELS\n         ======================================== -->\n    <!-- Core Role Details Section -->\n    <mj-collapsible-panel slot=\"field-panels\"\n        sectionKey=\"coreRoleDetails\"\n        sectionName=\"Core Role Details\"\n        icon=\"fa fa-shield-alt\"\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=\"DirectoryID\"\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=\"SQLName\"\n            Type=\"textarea\"\n            [EditMode]=\"EditMode\"\n            [formContext]=\"formContext\"\n        ></mj-form-field>\n\n    </mj-collapsible-panel>\n\n    <!-- System Metadata Section -->\n    <mj-collapsible-panel slot=\"field-panels\"\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         RELATED ENTITY PANELS - AFTER\n         ======================================== -->\n\n    <!-- Authorization Roles Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"authorizationRoles\"\n        sectionName=\"Authorization Roles\"\n        icon=\"fa fa-user-shield\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('authorizationRoles')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('Authorization Roles','RoleName')\"\n                [NewRecordValues]=\"NewRecordValues('Authorization Roles')\"\n                [AllowLoad]=\"IsSectionExpanded('authorizationRoles')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('authorizationRoles', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n\n    <!-- Employee Roles Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"employeeRoles\"\n        sectionName=\"Employee Roles\"\n        icon=\"fa fa-user-tag\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('employeeRoles')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('Employee Roles','RoleID')\"\n                [NewRecordValues]=\"NewRecordValues('Employee Roles')\"\n                [AllowLoad]=\"IsSectionExpanded('employeeRoles')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('employeeRoles', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n\n    <!-- Entity Permissions Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"entityPermissions\"\n        sectionName=\"Entity Permissions\"\n        icon=\"fa fa-shield-alt\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('entityPermissions')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('Entity Permissions','RoleName')\"\n                [NewRecordValues]=\"NewRecordValues('Entity Permissions')\"\n                [AllowLoad]=\"IsSectionExpanded('entityPermissions')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('entityPermissions', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n\n    <!-- Query Permissions Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"queryPermissions\"\n        sectionName=\"Query Permissions\"\n        icon=\"fa fa-shield-alt\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('queryPermissions')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('Query Permissions','RoleName')\"\n                [NewRecordValues]=\"NewRecordValues('Query Permissions')\"\n                [AllowLoad]=\"IsSectionExpanded('queryPermissions')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('queryPermissions', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n\n    <!-- User Roles Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"userRoles\"\n        sectionName=\"User Roles\"\n        icon=\"fa fa-user-shield\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('userRoles')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('User Roles','RoleName')\"\n                [NewRecordValues]=\"NewRecordValues('User Roles')\"\n                [AllowLoad]=\"IsSectionExpanded('userRoles')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('userRoles', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n\n    <!-- Resource Permissions Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"resourcePermissions\"\n        sectionName=\"Resource Permissions\"\n        icon=\"fa fa-lock\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('resourcePermissions')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('Resource Permissions','RoleID')\"\n                [NewRecordValues]=\"NewRecordValues('Resource Permissions')\"\n                [AllowLoad]=\"IsSectionExpanded('resourcePermissions')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('resourcePermissions', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n\n    <!-- MJ: AI Agent Permissions Section -->\n    <mj-collapsible-panel slot=\"after-panels\"\n        sectionKey=\"mJAIAgentPermissions\"\n        sectionName=\"MJ: AI Agent Permissions\"\n        icon=\"fa fa-robot\"\n        variant=\"related-entity\"\n        [form]=\"this\"\n        [formContext]=\"formContext\"\n        [badgeCount]=\"GetSectionRowCount('mJAIAgentPermissions')\">\n        <div *ngIf=\"record.IsSaved\">\n            <mj-user-view-grid\n                [Params]=\"BuildRelationshipViewParamsByEntityName('MJ: AI Agent Permissions','RoleID')\"\n                [NewRecordValues]=\"NewRecordValues('MJ: AI Agent Permissions')\"\n                [AllowLoad]=\"IsSectionExpanded('mJAIAgentPermissions')\"\n                [EditMode]=\"GridEditMode()\"\n                (dataLoaded)=\"SetSectionRowCount('mJAIAgentPermissions', $event.totalRowCount)\"\n                >\n            </mj-user-view-grid>\n        </div>\n    </mj-collapsible-panel>\n</mj-record-form-container>\n        " }]
    }], null, null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RoleFormComponent, { className: "RoleFormComponent", filePath: "src/lib/generated/Entities/Role/role.form.component.ts", lineNumber: 12 }); })();
export function LoadRoleFormComponent() {
    // does nothing, but called to prevent tree-shaking from eliminating this component from the build
}
//# sourceMappingURL=role.form.component.js.map