/**
 * @fileoverview added by tsickle
 * Generated from: lib/dialog/common-delete-dialog/index.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Inject } from "@angular/core";
import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material/dialog";
import { getTranslation } from "../../utils/utils";
/**
 * @record
 */
export function DialogConfig() { }
if (false) {
    /** @type {?|undefined} */
    DialogConfig.prototype.title;
    /** @type {?|undefined} */
    DialogConfig.prototype.description;
    /** @type {?|undefined} */
    DialogConfig.prototype.saveBtnLabel;
    /** @type {?|undefined} */
    DialogConfig.prototype.cancelBtnLabel;
    /** @type {?|undefined} */
    DialogConfig.prototype.discardBtnLabel;
    /** @type {?|undefined} */
    DialogConfig.prototype.showErrorIcon;
    /** @type {?|undefined} */
    DialogConfig.prototype.hideCloseIcon;
    /** @type {?|undefined} */
    DialogConfig.prototype.size;
    /** @type {?|undefined} */
    DialogConfig.prototype.hideSaveBtn;
    /** @type {?|undefined} */
    DialogConfig.prototype.hideCloseBtn;
    /** @type {?|undefined} */
    DialogConfig.prototype.hideDiscardBtn;
    /** @type {?|undefined} */
    DialogConfig.prototype.showZoomBtn;
    /** @type {?|undefined} */
    DialogConfig.prototype.onCloseRequest;
}
var CommonDeleteComponent = /** @class */ (function () {
    function CommonDeleteComponent(data, dialogRef) {
        this.data = data;
        this.dialogRef = dialogRef;
        this.title = "";
        this.saveBtnLabel = "";
        this.cancelBtnLabel = "";
        this.discardBtnLabel = "";
        this.description = "";
        this.size = "small";
        this.showZoomBtn = false;
        this.isMultiLine = false;
    }
    /**
     * @return {?}
     */
    CommonDeleteComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
        this.translation = getTranslation();
        this.title =
            this.data.title || this.translation["DELETE_RECORD"] || ".DELETE_RECORD";
        this.saveBtnLabel =
            this.data.saveBtnLabel || this.translation.DELETE || ".DELETE";
        this.cancelBtnLabel =
            this.data.cancelBtnLabel || this.translation.CANCEL || ".CANCEL";
        this.discardBtnLabel = this.data.discardBtnLabel;
        this.description =
            this.data.description ||
                this.translation.IF_YOU_DELETE_THIS_RECORD_WARNING ||
                ".If you delete this record, you won't be able to recover it. Do you want to delete it?";
        this.size = this.data.size || "small";
        this.showZoomBtn = this.data.showZoomBtn || false;
        this.isMultiLine = Array.isArray(this.description);
    };
    CommonDeleteComponent.decorators = [
        { type: Component, args: [{
                    selector: "kt-common-delete-dialog",
                    template: "<rs-common-dialog\r\n  [size]=\"size\"\r\n  [title]=\"title\"\r\n  [hideHeader]=\"false\"\r\n  [hideCloseBtn]=\"data.hideCloseBtn === undefined ? false : data.hideCloseBtn\"\r\n  [hideSaveBtn]=\"data.hideSaveBtn === undefined ? false : data.hideSaveBtn\"\r\n  [hideDiscardBtn]=\"\r\n    data.hideDiscardBtn === undefined ? true : data.hideDiscardBtn\r\n  \"\r\n  [saveBtnLabel]=\"saveBtnLabel\"\r\n  [cancelBtnLabel]=\"cancelBtnLabel\"\r\n  [discardBtnLabel]=\"discardBtnLabel\"\r\n  [showErrorIcon]=\"\r\n    data.showErrorIcon === undefined ? false : data.showErrorIcon\r\n  \"\r\n  [hideCloseIcon]=\"\r\n    data.hideCloseIcon === undefined ? false : data.hideCloseIcon\r\n  \"\r\n  [showZoomBtn]=\"data.showZoomBtn\"\r\n>\r\n  <div class=\"mapping-dialog\">\r\n    <div *ngIf=\"isMultiLine\">\r\n      <div *ngFor=\"let item of description\" class=\"description-item\">\r\n        {{ item }}\r\n      </div>\r\n    </div>\r\n    <div *ngIf=\"!isMultiLine\">\r\n      {{ description }}\r\n    </div>\r\n  </div>\r\n</rs-common-dialog>\r\n",
                    styles: [".mapping-dialog{color:#44566c;font-family:Arial;font-size:12px;line-height:16px;white-space:pre-line}.mapping-dialog .description-item{line-height:26px}"]
                }] }
    ];
    /** @nocollapse */
    CommonDeleteComponent.ctorParameters = function () { return [
        { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
        { type: MatDialogRef }
    ]; };
    return CommonDeleteComponent;
}());
export { CommonDeleteComponent };
if (false) {
    /** @type {?} */
    CommonDeleteComponent.prototype.translation;
    /** @type {?} */
    CommonDeleteComponent.prototype.title;
    /** @type {?} */
    CommonDeleteComponent.prototype.saveBtnLabel;
    /** @type {?} */
    CommonDeleteComponent.prototype.cancelBtnLabel;
    /** @type {?} */
    CommonDeleteComponent.prototype.discardBtnLabel;
    /** @type {?} */
    CommonDeleteComponent.prototype.description;
    /** @type {?} */
    CommonDeleteComponent.prototype.size;
    /** @type {?} */
    CommonDeleteComponent.prototype.showZoomBtn;
    /** @type {?} */
    CommonDeleteComponent.prototype.isMultiLine;
    /** @type {?} */
    CommonDeleteComponent.prototype.data;
    /** @type {?} */
    CommonDeleteComponent.prototype.dialogRef;
}
//# sourceMappingURL=data:application/json;base64, 