import { Component, HostBinding, inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import * as i0 from "@angular/core";
import * as i1 from "@angular/cdk/drag-drop";
import * as i2 from "@angular/material/dialog";
import * as i3 from "@angular/material/button";
import * as i4 from "@metad/ocap-angular/core";
import * as i5 from "@ngx-translate/core";
/**
 * @deprecated CdkConfirmDeleteComponent
 */
export class NgmConfirmDeleteComponent {
    constructor() {
        this.data = inject(MAT_DIALOG_DATA);
        this.isDialogContainer = true;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NgmConfirmDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: NgmConfirmDeleteComponent, selector: "ngm-confirm-delete", host: { properties: { "class.ngm-dialog-container": "this.isDialogContainer" } }, ngImport: i0, template: "<header mat-dialog-title cdkDrag cdkDragRootElement=\".cdk-overlay-pane\" cdkDragHandle>\n  <h4 style=\"pointer-events: none;\">\n    @if (data.title) {\n      {{ data.title }}\n    } @else {\n      {{ 'COMPONENTS.CONFIRM.DELETE' | translate: {Default: 'Confirm Delete'} }}\n      @if (data?.value) {\n          [<span class=\"font-bold\">{{data.value}}</span>]\n      }\n      ?\n    }\n  </h4>\n</header>\n\n<mat-dialog-content class=\"mat-typography min-h-[100px]\">\n  <div class=\"whitespace-pre-line\">{{data?.information}}</div>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n  <div ngmButtonGroup>\n    <button mat-button mat-dialog-close>\n      {{ 'COMPONENTS.COMMON.CANCEL' | translate: {Default: 'Cancel'} }}\n    </button>\n    <button mat-raised-button color=\"accent\" cdkFocusInitial [mat-dialog-close]=\"true\">\n      {{ 'COMPONENTS.COMMON.Confirm' | translate: {Default: 'Confirm'} }}\n    </button>\n  </div>\n</mat-dialog-actions>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatButton, selector: "    button[mat-button], button[mat-raised-button], button[mat-flat-button],    button[mat-stroked-button]  ", exportAs: ["matButton"] }, { kind: "directive", type: i4.ButtonGroupDirective, selector: "[ngmButtonGroup]" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NgmConfirmDeleteComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ngm-confirm-delete', template: "<header mat-dialog-title cdkDrag cdkDragRootElement=\".cdk-overlay-pane\" cdkDragHandle>\n  <h4 style=\"pointer-events: none;\">\n    @if (data.title) {\n      {{ data.title }}\n    } @else {\n      {{ 'COMPONENTS.CONFIRM.DELETE' | translate: {Default: 'Confirm Delete'} }}\n      @if (data?.value) {\n          [<span class=\"font-bold\">{{data.value}}</span>]\n      }\n      ?\n    }\n  </h4>\n</header>\n\n<mat-dialog-content class=\"mat-typography min-h-[100px]\">\n  <div class=\"whitespace-pre-line\">{{data?.information}}</div>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n  <div ngmButtonGroup>\n    <button mat-button mat-dialog-close>\n      {{ 'COMPONENTS.COMMON.CANCEL' | translate: {Default: 'Cancel'} }}\n    </button>\n    <button mat-raised-button color=\"accent\" cdkFocusInitial [mat-dialog-close]=\"true\">\n      {{ 'COMPONENTS.COMMON.Confirm' | translate: {Default: 'Confirm'} }}\n    </button>\n  </div>\n</mat-dialog-actions>\n" }]
        }], propDecorators: { isDialogContainer: [{
                type: HostBinding,
                args: ['class.ngm-dialog-container']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1kZWxldGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21tb24vY29uZmlybS9jb25maXJtLWRlbGV0ZS9jb25maXJtLWRlbGV0ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL2NvbW1vbi9jb25maXJtL2NvbmZpcm0tZGVsZXRlL2NvbmZpcm0tZGVsZXRlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUM5RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUE7Ozs7Ozs7QUFFMUQ7O0dBRUc7QUFNSCxNQUFNLE9BQU8seUJBQXlCO0lBTHRDO1FBTVcsU0FBSSxHQUFHLE1BQU0sQ0FBc0Q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