import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/forms";
import * as i3 from "primeng/inputswitch";
import * as i4 from "../validation-messages/validation-messages.component";
export class InputSwitchComponent {
    constructor() { }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: InputSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: InputSwitchComponent, selector: "smz-input-switch", inputs: { input: "input", control: "control", behaviors: "behaviors" }, host: { classAttribute: "grid grid-nogutter" }, ngImport: i0, template: "<div class=\"grid col-12 grid-nogutter input_inner__wrapper flex-gap-1\">\r\n    <label *ngIf=\"input.hideLabel != true\" class=\"col-12 smz__input_name\" [for]=\"input.propertyName\" [innerHTML]=\"input.name\"></label>\r\n    <p-inputSwitch\r\n        class=\"smz__input_value\"\r\n        [name]=\"input.propertyName\"\r\n        [id]=\"input.propertyName\"\r\n        [formControl]=\"control\"\r\n        [attr.disabled]=\"input.isDisabled\"\r\n        binary=\"true\">\r\n    </p-inputSwitch>\r\n    <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i3.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabel", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors", "extraMessages"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: InputSwitchComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-input-switch', host: { class: 'grid grid-nogutter' }, template: "<div class=\"grid col-12 grid-nogutter input_inner__wrapper flex-gap-1\">\r\n    <label *ngIf=\"input.hideLabel != true\" class=\"col-12 smz__input_name\" [for]=\"input.propertyName\" [innerHTML]=\"input.name\"></label>\r\n    <p-inputSwitch\r\n        class=\"smz__input_value\"\r\n        [name]=\"input.propertyName\"\r\n        [id]=\"input.propertyName\"\r\n        [formControl]=\"control\"\r\n        [attr.disabled]=\"input.isDisabled\"\r\n        binary=\"true\">\r\n    </p-inputSwitch>\r\n    <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n</div>" }]
        }], ctorParameters: () => [], propDecorators: { input: [{
                type: Input
            }], control: [{
                type: Input
            }], behaviors: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtc3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1mb3Jtcy9jb21wb25lbnRzL2lucHV0LXN3aXRjaC9pbnB1dC1zd2l0Y2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtei11aS9zcmMvbGliL21vZHVsZXMvc216LWZvcm1zL2NvbXBvbmVudHMvaW5wdXQtc3dpdGNoL2lucHV0LXN3aXRjaC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUy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