import { Component, Input, Output, EventEmitter } from '@angular/core';
import { NgClass } from '@angular/common';
import * as i0 from "@angular/core";
export class CollapseOptionComponent {
    isCollapsed = false;
    toggleCollapsed = new EventEmitter();
    onClick() {
        this.toggleCollapsed.emit(!this.isCollapsed);
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollapseOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CollapseOptionComponent, isStandalone: true, selector: "s-collapse-option", inputs: { isCollapsed: "isCollapsed" }, outputs: { toggleCollapsed: "toggleCollapsed" }, ngImport: i0, template: "<div\n    class=\"collapse-option\"\n    (click)=\"onClick()\"\n>\n    <div class=\"collapse-option__icon\">\n        <span\n            class=\"fas\"\n            [ngClass]=\"{\n                'fa-minus': !isCollapsed,\n                'fa-plus': isCollapsed,\n            }\"\n        >\n        </span>\n    </div>\n</div>\n", styles: [".collapse-option{align-items:center;background-color:#428bca;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;margin:4px;width:24px}.collapse-option .collapse-option__icon{color:#fff}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollapseOptionComponent, decorators: [{
            type: Component,
            args: [{ selector: 's-collapse-option', standalone: true, imports: [NgClass], template: "<div\n    class=\"collapse-option\"\n    (click)=\"onClick()\"\n>\n    <div class=\"collapse-option__icon\">\n        <span\n            class=\"fas\"\n            [ngClass]=\"{\n                'fa-minus': !isCollapsed,\n                'fa-plus': isCollapsed,\n            }\"\n        >\n        </span>\n    </div>\n</div>\n", styles: [".collapse-option{align-items:center;background-color:#428bca;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;margin:4px;width:24px}.collapse-option .collapse-option__icon{color:#fff}\n"] }]
        }], propDecorators: { isCollapsed: [{
                type: Input
            }], toggleCollapsed: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2Utb3B0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy90aW1lbGluZS9zcmMvbGliL3RpbWVsaW5lL2NvbXBvbmVudHMvdmVydGljYWwtdGltZWxpbmUvY29tcG9uZW50cy9jb2xsYXBzZS1vcHRpb24vY29sbGFwc2Utb3B0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy90aW1lbGluZS9zcmMvbGliL3RpbWVsaW5lL2NvbXBvbmVudHMvdmVydGljYWwtdGltZWxpbmUvY29tcG9uZW50cy9jb2xsYXBzZS1vcHRpb24vY29sbGFwc2Utb3B0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQVMxQyxNQUFNLE9BQU8sdUJBQXVCO0lBRXpCLFdBQVcsR0FBRyxLQUFLLENBQUM7SUFHcEIsZUFBZSxHQUFHLElBQUksWUFBWSxFQUFXLENBQUM7SUFFOUMsT0FBTztRQUNWLElBQUksQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQ2pELENBQUM7d0dBVFEsdUJBQXVCOzRGQUF2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