import { Component, ChangeDetectionStrategy } from '@angular/core';
import { LayoutComponentRendererSADirective } from '@anglr/dynamic/layout';
import { HostDisplayBlockStyle } from '@anglr/common';
import { IfBlockSAComponent } from '../ifBlock.component';
import * as i0 from "@angular/core";
/**
 * Component used for displaying if block designer
 */
export class IfBlockDesignerSAComponent extends IfBlockSAComponent {
    //######################### protected - overrides #########################
    /**
     * @inheritdoc
     */
    onOptionsSet() {
        super.onOptionsSet();
        if (this.condition) {
            this.componentElement.nativeElement.classList.remove('dynamic-hidden');
        }
        else {
            this.componentElement.nativeElement.classList.add('dynamic-hidden');
        }
    }
}
IfBlockDesignerSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IfBlockDesignerSAComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
IfBlockDesignerSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: IfBlockDesignerSAComponent, isStandalone: true, selector: "if-block-designer", usesInheritance: true, ngImport: i0, template: "<ng-template [layoutComponentRenderer]=\"options?.content\"></ng-template>", styles: [":host{display: block;}"], dependencies: [{ kind: "directive", type: LayoutComponentRendererSADirective, selector: "[layoutComponentRenderer]", inputs: ["layoutComponentRenderer", "layoutComponentRendererInjector", "layoutComponentRendererDisableTransformer"], outputs: ["layoutComponentRendererComponentChange", "componentElementChange"], exportAs: ["layoutComponentRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: IfBlockDesignerSAComponent, decorators: [{
            type: Component,
            args: [{ selector: 'if-block-designer', standalone: true, imports: [
                        LayoutComponentRendererSADirective,
                    ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [layoutComponentRenderer]=\"options?.content\"></ng-template>", styles: [":host{display: block;}"] }]
        }] });
//# sourceMappingURL=ifBlockDesigner.component.js.map