import { AXButtonModule } from '@acorex/components/button';
import { AXDecoratorModule } from '@acorex/components/decorators';
import { AXPWidgetCoreModule } from '@acorex/platform/layout/widget-core';
import { AXPLayoutDesignerComponent } from '@acorex/platform/layout/designer';
import { AXPWidgetsModule } from '@acorex/platform/layout/widgets';
import * as i0 from '@angular/core';
import { inject, signal, Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

class AXMFormTemplateManagementModuleDesignerPage {
    constructor() {
        this.router = inject(ActivatedRoute);
        this.templateId = signal(this.router.snapshot.queryParams['id'], ...(ngDevMode ? [{ debugName: "templateId" }] : []));
        this.strategy = signal(this.router.snapshot.queryParams['strategy'], ...(ngDevMode ? [{ debugName: "strategy" }] : []));
    }
    ngAfterViewInit() {
        document.querySelector('html')?.classList.remove('ax-dark');
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXMFormTemplateManagementModuleDesignerPage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: AXMFormTemplateManagementModuleDesignerPage, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<axp-layout-designer [id]=\"templateId()\" [strategy]=\"strategy()\"> </axp-layout-designer>", dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: AXPLayoutDesignerComponent, selector: "axp-layout-designer", inputs: ["id", "strategy"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXMFormTemplateManagementModuleDesignerPage, decorators: [{
            type: Component,
            args: [{ imports: [
                        AXDecoratorModule,
                        AXPWidgetsModule,
                        AXPWidgetCoreModule,
                        AXButtonModule,
                        AXPLayoutDesignerComponent
                    ], template: "<axp-layout-designer [id]=\"templateId()\" [strategy]=\"strategy()\"> </axp-layout-designer>" }]
        }] });

export { AXMFormTemplateManagementModuleDesignerPage };
//# sourceMappingURL=acorex-modules-form-template-management-designer.page-DmN4rBrf.mjs.map
