import { Component } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./smz-ui-block.service";
import * as i2 from "@angular/common";
import * as i3 from "primeng/blockui";
export class SmzUiBlockComponent {
    constructor(service, cdf) {
        this.service = service;
        this.cdf = cdf;
    }
    ngOnInit() {
        this.service.onChanges.subscribe(() => {
            this.cdf.markForCheck();
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzUiBlockComponent, deps: [{ token: i1.SmzUiBlockService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: SmzUiBlockComponent, selector: "smz-ui-block", ngImport: i0, template: `
  <ng-container *ngFor="let block of service.blocks">
    <p-blockUI [target]="block.component" [blocked]="block.blocked">
      <i class="pi pi-lock" style="font-size: 2rem"></i>
    </p-blockUI>
  </ng-container>
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.BlockUI, selector: "p-blockUI", inputs: ["target", "autoZIndex", "baseZIndex", "styleClass", "blocked"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzUiBlockComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'smz-ui-block',
                    template: `
  <ng-container *ngFor="let block of service.blocks">
    <p-blockUI [target]="block.component" [blocked]="block.blocked">
      <i class="pi pi-lock" style="font-size: 2rem"></i>
    </p-blockUI>
  </ng-container>
  `
                }]
        }], ctorParameters: () => [{ type: i1.SmzUiBlockService }, { type: i0.ChangeDetectorRef }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic216LXVpLWJsb2NrLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiL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