import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function FilterFooterComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "button", 4);
    i0.ɵɵlistener("click", function FilterFooterComponent_ng_container_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.clearAllValue.emit(); });
    i0.ɵɵtext(2, " Clear All ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 5);
    i0.ɵɵelementStart(4, "button", 4);
    i0.ɵɵlistener("click", function FilterFooterComponent_ng_container_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.closeFilter.emit(); });
    i0.ɵɵtext(5, "Close");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "button", 6);
    i0.ɵɵlistener("click", function FilterFooterComponent_ng_container_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.applyFilter.emit(); });
    i0.ɵɵtext(7, " Apply ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} }
function FilterFooterComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵtext(1, " No Records Found ");
    i0.ɵɵelementEnd();
} }
export class FilterFooterComponent {
    constructor() {
        this.clearAllValue = new EventEmitter();
        this.applyFilter = new EventEmitter();
        this.closeFilter = new EventEmitter();
    }
    ngOnInit() {
    }
}
FilterFooterComponent.ɵfac = function FilterFooterComponent_Factory(t) { return new (t || FilterFooterComponent)(); };
FilterFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterFooterComponent, selectors: [["lib-filter-footer"]], inputs: { isFilterValue: "isFilterValue" }, outputs: { clearAllValue: "clearAllValue", applyFilter: "applyFilter", closeFilter: "closeFilter" }, decls: 5, vars: 2, consts: [[1, "filter-buttons"], [1, "flex", "gap-0", "items-center", "justify-between", "w-full"], [4, "ngIf", "ngIfElse"], ["isFilterValueEmpty", ""], [1, "light-btn", "axo-font", 3, "click"], [1, "flex", "items-center"], [1, "link-btn", "axo-font", 3, "click"], [1, "text-center"]], template: function FilterFooterComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵtemplate(2, FilterFooterComponent_ng_container_2_Template, 8, 0, "ng-container", 2);
        i0.ɵɵtemplate(3, FilterFooterComponent_ng_template_3_Template, 2, 0, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        const _r1 = i0.ɵɵreference(4);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.isFilterValue)("ngIfElse", _r1);
    } }, directives: [i1.NgIf], styles: ["lib-filter-footer .filter-buttons{justify-content:space-between;bottom:0;border-top:1px solid #dcdcdc;padding:0 .8rem}lib-filter-footer .link-btn,lib-filter-footer .light-btn{min-width:2rem;padding:0 .5rem;min-height:1.5rem!important;max-height:1.5rem!important;line-height:1.5rem!important;font-size:12px!important}lib-filter-footer .filter-buttons{display:flex;align-items:center;z-index:10;background-color:#fff;position:sticky;height:3rem!important}\n"], encapsulation: 2 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterFooterComponent, [{
        type: Component,
        args: [{ selector: 'lib-filter-footer', encapsulation: ViewEncapsulation.None, template: "<div class=\"filter-buttons\">\n    <div class=\"flex gap-0 items-center justify-between w-full\">\n        <ng-container *ngIf=\"isFilterValue; else isFilterValueEmpty\">\n            <button (click)=\"clearAllValue.emit()\" class=\"light-btn axo-font\">\n                Clear All\n            </button>\n            <div class=\"flex items-center \">\n                <button class=\"light-btn axo-font\" (click)=\"closeFilter.emit()\">Close</button>\n                <button class=\"link-btn axo-font\" (click)=\"applyFilter.emit()\">\n                    Apply\n                </button>\n            </div>\n\n        </ng-container>\n        <ng-template #isFilterValueEmpty>\n            <div class=\"text-center\">\n                No Records Found\n            </div>\n        </ng-template>\n    </div>\n</div>\n", styles: ["lib-filter-footer .filter-buttons{justify-content:space-between;bottom:0;border-top:1px solid #dcdcdc;padding:0 .8rem}lib-filter-footer .link-btn,lib-filter-footer .light-btn{min-width:2rem;padding:0 .5rem;min-height:1.5rem!important;max-height:1.5rem!important;line-height:1.5rem!important;font-size:12px!important}lib-filter-footer .filter-buttons{display:flex;align-items:center;z-index:10;background-color:#fff;position:sticky;height:3rem!important}\n"] }]
    }], function () { return []; }, { isFilterValue: [{
            type: Input
        }], clearAllValue: [{
            type: Output
        }], applyFilter: [{
            type: Output
        }], closeFilter: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLWZvb3Rlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVpLWxpYi9zcmMvbGliL2ZpbHRlcnMvZmlsdGVyLWZvb3Rlci9maWx0ZXItZm9vdGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9heC1jb21tb24tdWktbGliL3NyYy9saWIvZmlsdGVycy9maWx0ZXItZm9vdGVyL2ZpbHRlci1mb290ZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7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