import { NgTemplateOutlet } from '@angular/common';
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { MatIconModule } from '@angular/material/icon';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/icon";
export class DbxDetailBlockHeaderComponent {
    icon = input();
    header = input();
    alignHeader = input(false);
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDetailBlockHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DbxDetailBlockHeaderComponent, isStandalone: true, selector: "dbx-detail-block-header", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, alignHeader: { classPropertyName: "alignHeader", publicName: "alignHeader", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "{ \"dbx-detail-block-header-no-icon\": !icon(), \"dbx-detail-block-header-align\": alignHeader() }" }, classAttribute: "dbx-detail-block-header" }, ngImport: i0, template: `
    @if (icon()) {
      <mat-icon>{{ icon() }}</mat-icon>
    }
    @if (header()) {
      <span class="dbx-detail-block-header-label">{{ header() }}</span>
    }
    @if (alignHeader()) {
      <div class="dbx-flex dbx-w100">
        <span class="dbx-spacer"></span>
        <ng-template *ngTemplateOutlet="content"></ng-template>
      </div>
    } @else {
      <ng-template *ngTemplateOutlet="content"></ng-template>
    }
    <ng-template #content>
      <ng-content></ng-content>
    </ng-template>
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDetailBlockHeaderComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'dbx-detail-block-header',
                    template: `
    @if (icon()) {
      <mat-icon>{{ icon() }}</mat-icon>
    }
    @if (header()) {
      <span class="dbx-detail-block-header-label">{{ header() }}</span>
    }
    @if (alignHeader()) {
      <div class="dbx-flex dbx-w100">
        <span class="dbx-spacer"></span>
        <ng-template *ngTemplateOutlet="content"></ng-template>
      </div>
    } @else {
      <ng-template *ngTemplateOutlet="content"></ng-template>
    }
    <ng-template #content>
      <ng-content></ng-content>
    </ng-template>
  `,
                    host: {
                        class: 'dbx-detail-block-header',
                        '[class]': '{ "dbx-detail-block-header-no-icon": !icon(), "dbx-detail-block-header-align": alignHeader() }'
                    },
                    imports: [MatIconModule, NgTemplateOutlet],
                    standalone: true,
                    changeDetection: ChangeDetectionStrategy.OnPush
                }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV0YWlsLmJsb2NrLmhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtd2ViL3NyYy9saWIvbGF5b3V0L3RleHQvZGV0YWlsLmJsb2NrLmhlYWRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDbkQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdCQUF3QixDQUFDOzs7QUFnQ3ZELE1BQU0sT0FBTyw2QkFBNkI7SUFDL0IsSUFBSS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