import { Directive, HostListener } from '@angular/core';
import { BsModalHostComponent } from '../../components/modal-host/modal-host.component';
import * as i0 from "@angular/core";
import * as i1 from "../../components/modal-host/modal-host.component";
export class BsModalCloseDirective {
    constructor(host) {
        this.host = host;
    }
    onClick() {
        this.host.isOpen = false;
    }
}
BsModalCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsModalCloseDirective, deps: [{ token: i1.BsModalHostComponent }], target: i0.ɵɵFactoryTarget.Directive });
BsModalCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.7", type: BsModalCloseDirective, selector: "[bsModalClose]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsModalCloseDirective, decorators: [{
            type: Directive,
            args: [{
                    selector: '[bsModalClose]'
                }]
        }], ctorParameters: function () { return [{ type: i1.BsModalHostComponent }]; }, propDecorators: { onClick: [{
                type: HostListener,
                args: ['click']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtY2xvc2UuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9tb2RhbC9zcmMvZGlyZWN0aXZlcy9tb2RhbC1jbG9zZS9tb2RhbC1jbG9zZS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDeEQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0RBQWtELENBQUM7OztBQUt4RixNQUFNLE9BQU8scUJBQXFCO0lBRWhDLFlBQW9CLElBQT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