import { Component, input, ChangeDetectionStrategy } from '@angular/core';
import { MatIconModule } from '@angular/material/icon';
import { DbxBarDirective } from './bar.directive';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/icon";
/**
 * Acts as a divider between content and centers a label within a background.
 */
export class DbxBarHeaderComponent {
    text = input();
    icon = input();
    color = input();
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxBarHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DbxBarHeaderComponent, isStandalone: true, selector: "dbx-bar-header", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "dbx-bar-header dbx-hint" }, ngImport: i0, template: `
    <dbx-bar [color]="color()">
      @if (icon()) {
        <mat-icon class="button-spacer">{{ icon() }}</mat-icon>
      }
      @if (text()) {
        <span>{{ text() }}</span>
      }
      <ng-content></ng-content>
    </dbx-bar>
  `, isInline: true, dependencies: [{ kind: "directive", type: DbxBarDirective, selector: "dbx-bar,[dbxBar]", inputs: ["color"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxBarHeaderComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'dbx-bar-header',
                    template: `
    <dbx-bar [color]="color()">
      @if (icon()) {
        <mat-icon class="button-spacer">{{ icon() }}</mat-icon>
      }
      @if (text()) {
        <span>{{ text() }}</span>
      }
      <ng-content></ng-content>
    </dbx-bar>
  `,
                    host: {
                        class: 'dbx-bar-header dbx-hint'
                    },
                    imports: [DbxBarDirective, MatIconModule],
                    changeDetection: ChangeDetectionStrategy.OnPush,
                    standalone: true
                }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFyLmhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtd2ViL3NyYy9saWIvbGF5b3V0L2Jhci9iYXIuaGVhZGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcxRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7QUFFbEQ7O0dBRUc7QUFxQkgsTUFBTSxPQUFPLHFCQUFxQjtJQUN2QixJQUFJLEdBQUcsS0FBSyxFQUFpQixDQUFDO0lBQzlCLElBQUksR0FBRyxLQUFLLEVBQWlCLENBQUM7SUFDOUIsS0FBSyxHQUFHLEtBQUssRUFBc0IsQ0FBQzt3R0FIbEMscUJBQXFCOzRGQUFyQixxQkFBcUIsNmVBbEJ0Qjs7Ozs7Ozs7OztHQVVULDREQUlTLGVBQWUsK0VBQUUsYUFBYTs7NEZBSTdCLHFCQUFxQjtrQkFwQmpDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLGdCQUFnQjtvQkFDMUIsUUFBUSxFQUFFOzs7Ozs7Ozs7O0dBVVQ7b0JBQ0QsSUFBSSxFQUFFO3dCQUNKLEtBQUssRUFBRSx5QkFBeUI7cUJBQ2pDO29CQUNELE9B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