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 { BaseResourceComponent } from '@memberjunction/ng-shared';
import * as i0 from "@angular/core";
import * as i1 from "./component-studio-dashboard.component";
/**
 * ComponentStudioResource — BaseResourceComponent wrapper that lets the
 * Component Studio dashboard sit alongside Form Studio as a nav item under
 * the Component Studio application. The inner `<mj-component-studio-dashboard>`
 * owns its own load lifecycle and calls NotifyLoadComplete; this wrapper
 * forwards the same signal so the shell loading screen clears whichever
 * way the user arrives.
 */
let ComponentStudioResourceComponent = class ComponentStudioResourceComponent extends BaseResourceComponent {
    ngOnInit() {
        super.ngOnInit();
        this.NotifyLoadComplete();
    }
    async GetResourceDisplayName(_data) {
        return 'Components';
    }
    async GetResourceIconClass(_data) {
        return 'fa-solid fa-puzzle-piece';
    }
    static ɵfac = /*@__PURE__*/ (() => { let ɵComponentStudioResourceComponent_BaseFactory; return function ComponentStudioResourceComponent_Factory(__ngFactoryType__) { return (ɵComponentStudioResourceComponent_BaseFactory || (ɵComponentStudioResourceComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ComponentStudioResourceComponent)))(__ngFactoryType__ || ComponentStudioResourceComponent); }; })();
    static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComponentStudioResourceComponent, selectors: [["mj-component-studio-resource"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 0, consts: [[1, "resource-container"]], template: function ComponentStudioResourceComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "mj-component-studio-dashboard");
            i0.ɵɵelementEnd();
        } }, dependencies: [i1.ComponentStudioDashboardComponent], styles: [".resource-container[_ngcontent-%COMP%] {\n      width: 100%;\n      height: 100%;\n      overflow: hidden;\n      display: flex;\n      box-sizing: border-box;\n    }\n    .resource-container[_ngcontent-%COMP%]    > *[_ngcontent-%COMP%] {\n      flex: 1;\n      min-width: 0;\n    }"] });
};
ComponentStudioResourceComponent = __decorate([
    RegisterClass(BaseResourceComponent, 'ComponentStudioResource')
], ComponentStudioResourceComponent);
export { ComponentStudioResourceComponent };
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComponentStudioResourceComponent, [{
        type: Component,
        args: [{ standalone: false, selector: 'mj-component-studio-resource', template: `
    <div class="resource-container">
      <mj-component-studio-dashboard></mj-component-studio-dashboard>
    </div>
  `, styles: ["\n    .resource-container {\n      width: 100%;\n      height: 100%;\n      overflow: hidden;\n      display: flex;\n      box-sizing: border-box;\n    }\n    .resource-container > * {\n      flex: 1;\n      min-width: 0;\n    }\n  "] }]
    }], null, null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ComponentStudioResourceComponent, { className: "ComponentStudioResourceComponent", filePath: "src/ComponentStudio/component-studio-resource.component.ts", lineNumber: 37 }); })();
/** Tree-shake protection — referenced from the dashboards module loader. */
export function LoadComponentStudioResourceComponent() {
    // Intentional no-op. Keeps the @RegisterClass side effect alive.
}
//# sourceMappingURL=component-studio-resource.component.js.map