"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputFormulaRenderer = void 0;
var tslib_1 = require("tslib");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
var Item_1 = (0, tslib_1.__importDefault)(require("./Item"));
var Picker_1 = (0, tslib_1.__importDefault)(require("../../components/formula/Picker"));
var InputFormulaRenderer = /** @class */ (function (_super) {
    (0, tslib_1.__extends)(InputFormulaRenderer, _super);
    function InputFormulaRenderer() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    InputFormulaRenderer.prototype.render = function () {
        var _a = this.props, selectedOptions = _a.selectedOptions, disabled = _a.disabled, onChange = _a.onChange, evalMode = _a.evalMode, variables = _a.variables, variableMode = _a.variableMode, functions = _a.functions, header = _a.header, label = _a.label, value = _a.value, clearable = _a.clearable, className = _a.className, ns = _a.classPrefix, cx = _a.classnames, _b = _a.allowInput, allowInput = _b === void 0 ? true : _b, borderMode = _a.borderMode, placeholder = _a.placeholder, inputMode = _a.inputMode, btnLabel = _a.btnLabel, level = _a.level, btnSize = _a.btnSize, icon = _a.icon, title = _a.title, variableClassName = _a.variableClassName, functionClassName = _a.functionClassName, data = _a.data;
        return (react_1.default.createElement(Picker_1.default, { className: className, value: value, disabled: disabled, allowInput: allowInput, onChange: onChange, evalMode: evalMode, variables: variables, variableMode: variableMode, functions: functions, header: header || label || '', borderMode: borderMode, placeholder: placeholder, mode: inputMode, btnLabel: btnLabel, level: level, btnSize: btnSize, icon: icon, title: title, clearable: clearable, variableClassName: variableClassName, functionClassName: functionClassName, data: data }));
    };
    InputFormulaRenderer.defaultProps = {
        inputMode: 'input-button',
        borderMode: 'full'
    };
    InputFormulaRenderer = (0, tslib_1.__decorate)([
        (0, Item_1.default)({
            type: 'input-formula'
        })
    ], InputFormulaRenderer);
    return InputFormulaRenderer;
}(react_1.default.Component));
exports.InputFormulaRenderer = InputFormulaRenderer;
//# sourceMappingURL=./renderers/Form/InputFormula.js.map
