import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
import { MatIconButton } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/icon";
/**
 * Component used to show a close button at the top of a dialog, floating in a corner.
 */
export class DbxDialogContentCloseComponent {
    padded = input(true);
    close = output();
    closeClicked() {
        this.close.emit(undefined);
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDialogContentCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: DbxDialogContentCloseComponent, isStandalone: true, selector: "dbx-dialog-content-close", inputs: { padded: { classPropertyName: "padded", publicName: "padded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, host: { properties: { "class.dbx-dialog-content-close-padding": "padded()" }, classAttribute: "dbx-dialog-content-close" }, ngImport: i0, template: `
    <button class="dbx-dialog-content-close-button" mat-icon-button (click)="closeClicked()">
      <mat-icon>close</mat-icon>
    </button>
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDialogContentCloseComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'dbx-dialog-content-close',
                    template: `
    <button class="dbx-dialog-content-close-button" mat-icon-button (click)="closeClicked()">
      <mat-icon>close</mat-icon>
    </button>
  `,
                    host: {
                        class: 'dbx-dialog-content-close',
                        '[class.dbx-dialog-content-close-padding]': 'padded()'
                    },
                    standalone: true,
                    imports: [MatIconModule, MatIconButton],
                    changeDetection: ChangeDetectionStrategy.OnPush
                }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLmNvbnRlbnQuY2xvc2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZGJ4LXdlYi9zcmMvbGliL2ludGVyYWN0aW9uL2RpYWxvZy9kaWFsb2cuY29udGVudC5jbG9zZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7OztBQUV2RDs7R0FFRztBQWdCSCxNQUFNLE9BQU8sOEJBQThCO0lBQ2hDLE1BQU0sR0FBRyxLQUFLLENBQVUsSUFBSSxDQUFDLENBQUM7SUFFOUIsS0FBSyxHQUFHLE1BQU0sRUFBUSxDQUFDO0lBRWhDLFlBQVk7UUFDVixJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUM3QixDQUFDO3dHQVBVLDhCQUE4Qjs0RkFBOUIsOEJBQThCLG9YQWIvQjs7OztHQUlULDJEQU1TLGFBQWEsb0xBQUUsYUFBYTs7NEZBRzNCLDhCQUE4QjtrQkFmMUMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsMEJBQTBCO29CQUNwQyxRQUFRLEVBQUU7Ozs7R0FJVDtvQkFDRCxJQUFJLEVBQUU7d0JBQ0osS0FBSyxFQUFFLDBCQUEwQjt3QkFDakMsMENBQTBDLEVBQU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