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