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";
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.10", ngImport: i0, type: NgmConfirmDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", 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        {{ 'COMPONENTS.CONFIRM.DELETE' | translate: {Default: 'Confirm Delete'} }}\n      @if (data?.value) {\n        [<span class=\"font-bold\">{{data.value}}</span>]\n      }\n    </h4>\n</header>\n\n<mat-dialog-content class=\"mat-typography min-h-[100px]\">\n    <div>{{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.10", 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        {{ 'COMPONENTS.CONFIRM.DELETE' | translate: {Default: 'Confirm Delete'} }}\n      @if (data?.value) {\n        [<span class=\"font-bold\">{{data.value}}</span>]\n      }\n    </h4>\n</header>\n\n<mat-dialog-content class=\"mat-typography min-h-[100px]\">\n    <div>{{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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1kZWxldGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21tb24vY29uZmlybS9jb25maXJtLWRlbGV0ZS9jb25maXJtLWRlbGV0ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL2NvbW1vbi9jb25maXJtL2NvbmZpcm0tZGVsZXRlL2NvbmZpcm0tZGVsZXRlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUM5RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUE7Ozs7Ozs7QUFPMUQsTUFBTSxPQUFPLHlCQUF5QjtJQUx0QztRQU1XLFNBQUksR0FBRyxNQUFNLENBQXNDLGVBQWUsQ0FBQyxDQUFBO1FBRWpDLHNCQUFpQixHQUFHLElBQUksQ0FBQTtLQUNwRTsrR0FKWSx5QkFBeUI7bUdBQXpCLHlCQUF5Qiw0SUNSdEMsbTRCQXVCQTs7NEZEZmEseUJBQXlCO2tCQUxyQyxT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