import { Component } from '@angular/core';
import { DynamicDialogRef } from 'primeng/dynamicdialog';
import { DynamicDialogConfig } from 'primeng/dynamicdialog';
import * as i0 from "@angular/core";
import * as i1 from "primeng/dynamicdialog";
import * as i2 from "primeng/button";
export class DeleteDialogComponent {
    constructor(ref, config) {
        this.ref = ref;
        this.config = config;
        this.yesDelete = 'Delete';
        this.cancelDelete = 'Cancel';
    }
    ngOnInit() {
        this.yesDelete = this.config.data.yesDelete;
        this.cancelDelete = this.config.data.cancelDelete;
    }
    exitDeleteWindow(deleteConfirmed) {
        this.ref.close(deleteConfirmed);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DeleteDialogComponent, deps: [{ token: i1.DynamicDialogRef }, { token: i1.DynamicDialogConfig }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DeleteDialogComponent, selector: "ocx-delete-dialog", ngImport: i0, template: "<div class=\"div-delete-btn\">\n  <button\n    type=\"button\"\n    pButton\n    icon=\"pi pi-check\"\n    class=\"deleteBtn\"\n    (click)=\"exitDeleteWindow(true)\"\n    label=\"{{ this.yesDelete }}\"\n  ></button>\n  <button\n    type=\"button\"\n    class=\"deleteBtn\"\n    pButton\n    icon=\"pi pi-times\"\n    (click)=\"exitDeleteWindow(false)\"\n    label=\"{{ this.cancelDelete }}\"\n  ></button>\n</div>\n", styles: [".deleteBtn{padding-right:12px;margin-top:7px;margin-right:15px}.div-delete-btn{display:flex;justify-content:flex-start;flex-wrap:wrap}\n"], dependencies: [{ kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DeleteDialogComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ocx-delete-dialog', template: "<div class=\"div-delete-btn\">\n  <button\n    type=\"button\"\n    pButton\n    icon=\"pi pi-check\"\n    class=\"deleteBtn\"\n    (click)=\"exitDeleteWindow(true)\"\n    label=\"{{ this.yesDelete }}\"\n  ></button>\n  <button\n    type=\"button\"\n    class=\"deleteBtn\"\n    pButton\n    icon=\"pi pi-times\"\n    (click)=\"exitDeleteWindow(false)\"\n    label=\"{{ this.cancelDelete }}\"\n  ></button>\n</div>\n", styles: [".deleteBtn{padding-right:12px;margin-top:7px;margin-right:15px}.div-delete-btn{display:flex;justify-content:flex-start;flex-wrap:wrap}\n"] }]
        }], ctorParameters: () => [{ type: i1.DynamicDialogRef }, { type: i1.DynamicDialogConfig }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BvcnRhbC1pbnRlZ3JhdGlvbi1hbmd1bGFyL3NyYy9saWIvY29yZS9jb21wb25lbnRzL2RlbGV0ZS1kaWFsb2cvZGVsZXRlLWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BvcnRhbC1pbnRlZ3JhdGlvbi1hbmd1bGFyL3NyYy9saWIvY29yZS9jb21wb25lbnRzL2RlbGV0ZS1kaWFsb2cvZGVsZXRlLWRpYWxvZy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFBO0FBQ2pELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHVCQUF1QixDQUFBO0FBQ3hELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHVCQUF1QixDQUFBOzs7O0FBTzN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