/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
/**
 * Service managing overlay windows
 * This is Magic's default provider
 */
import { Injectable } from "@angular/core";
import { MagicAlertComponent } from '../ui/components/magic-alert.component';
import { MagicConfirmationBoxComponent } from "../ui/components/magic-confirmation-box.component";
/**
 * Service managing alert and confirmation windows
 * This is Magic's default provider
 */
var ConfirmationComponentsMagicProvider = /** @class */ (function () {
    function ConfirmationComponentsMagicProvider() {
    }
    /**
     * Return true when use default javascript alert and confirmation or return false to provide custom components
     *  @returns true is we want to use default javascript alert and confirmation
     */
    /**
     * Return true when use default javascript alert and confirmation or return false to provide custom components
     * @return {?} true is we want to use default javascript alert and confirmation
     */
    ConfirmationComponentsMagicProvider.prototype.showDefaultConfirmations = /**
     * Return true when use default javascript alert and confirmation or return false to provide custom components
     * @return {?} true is we want to use default javascript alert and confirmation
     */
    function () {
        return true;
    };
    /**
     * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
     *  @returns component that will replace javascript Alert
     */
    /**
     * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
     * @return {?} component that will replace javascript Alert
     */
    ConfirmationComponentsMagicProvider.prototype.getAlertComponent = /**
     * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
     * @return {?} component that will replace javascript Alert
     */
    function () {
        return MagicAlertComponent;
    };
    /**
     * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
     *  @returns component that will replace javascript confirmation box
     */
    /**
     * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
     * @return {?} component that will replace javascript confirmation box
     */
    ConfirmationComponentsMagicProvider.prototype.getConfirmtionComponent = /**
     * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
     * @return {?} component that will replace javascript confirmation box
     */
    function () {
        return MagicConfirmationBoxComponent;
    };
    ConfirmationComponentsMagicProvider.decorators = [
        { type: Injectable },
    ];
    return ConfirmationComponentsMagicProvider;
}());
export { ConfirmationComponentsMagicProvider };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybWF0aW9uLmNvbXBvbmVudHMubWFnaWMucHJvdmlkZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbWFnaWMteHBhL2FuZ3VsYXIvIiwic291cmNlcyI6WyJzcmMvc2VydmljZXMvY29uZmlybWF0aW9uLmNvbXBvbmVudHMubWFnaWMucHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQzdFLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLG1EQUFtRCxDQUFDOzs7OztBQU1sRztJQUFBO0lBNkJBLENBQUM7SUExQkM7OztPQUdHOzs7OztJQUNILHNFQUF3Qjs7OztJQUF4QjtRQUNFLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVEOzs7T0FHRzs7Ozs7SUFDSCwrREFBaUI7Ozs7SUFBakI7UUFDRSxPQUFPLG1CQUFtQixDQUFDO0lBQzdCLENBQUM7SUFFRDs7O09BR0c7Ozs7O0lBQ0gscUVBQXVCOzs7O0lBQXZCO1FBQ0UsT0FBTyw2QkFBNkIsQ0FBQztJQUN2QyxDQUFDOztnQkF6QkYsVUFBVTs7SUE2QlgsMENBQUM7Q0FBQSxBQTdCRCxJQTZCQztTQTVCWSxtQ0FBbUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogU2VydmljZSBtYW5hZ2luZyBvdmVybGF5IHdpbmRvd3NcclxuICogVGhpcyBpcyBNYWdpYydzIGRlZmF1bHQgcHJvdmlkZXJcclxuICovXHJcbmltcG9ydCB7IElu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