import { __decorate, __metadata } from "tslib";
import { Component, Input } from '@angular/core';
import { AbstractVariable } from '@iotize/tap/data';
import { MonitoringAppGenComponent, AppGenField, } from '../../metadata/decorators';
import * as i0 from "@angular/core";
import * as i1 from "../tap-variable-toggle/tap-variable-toggle.component";
let TapVariableGpioValueComponent = class TapVariableGpioValueComponent {
    constructor() { }
};
/** @nocollapse */ /** @nocollapse */ TapVariableGpioValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: TapVariableGpioValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ /** @nocollapse */ TapVariableGpioValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: TapVariableGpioValueComponent, selector: "tap-variable-gpio-value", inputs: { variable: "variable", editable: "editable" }, ngImport: i0, template: "<tap-variable-toggle [variable]=\"variable\" [editable]=\"editable\">\n</tap-variable-toggle>\n", styles: [""], components: [{ type: i1.TapVariableToggleComponent, selector: "tap-variable-toggle", inputs: ["textOnLeft", "textOnRight", "lines", "variable", "editable", "valueOn", "valueOff"] }] });
__decorate([
    AppGenField({
        schema: {
            type: 'boolean',
        },
    }),
    __metadata("design:type", Boolean)
], TapVariableGpioValueComponent.prototype, "editable", void 0);
TapVariableGpioValueComponent = __decorate([
    MonitoringAppGenComponent({
        constraints: {
            isArray: 'NO',
            isNumber: 'YES',
        },
    }),
    __metadata("design:paramtypes", [])
], TapVariableGpioValueComponent);
export { TapVariableGpioValueComponent };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: TapVariableGpioValueComponent, decorators: [{
            type: Component,
            args: [{ selector: 'tap-variable-gpio-value', template: "<tap-variable-toggle [variable]=\"variable\" [editable]=\"editable\">\n</tap-variable-toggle>\n", styles: [""] }]
        }], ctorParameters: function () { return []; }, propDecorators: { variable: [{
                type: Input
            }], editable: [{
                type: Input
            }] } });
//# source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