/**
 * amis v3.1.0
 * Copyright 2018-2023 baidu
 */

import { __extends, __assign, __decorate } from 'tslib';
import React from 'react';
import { resolveVariableAndFilter, Renderer } from 'amis-core';
import { MultilineText } from 'amis-ui';

var MultilineTextField = /** @class */ (function (_super) {
    __extends(MultilineTextField, _super);
    function MultilineTextField() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MultilineTextField.prototype.render = function () {
        var _a = this.props, data = _a.data, originText = _a.text;
        var text = resolveVariableAndFilter(originText, data, '| raw');
        return React.createElement(MultilineText, __assign({}, this.props, { text: text }));
    };
    return MultilineTextField;
}(React.Component));
/** @class */ ((function (_super) {
    __extends(MultilineTextFieldRenderer, _super);
    function MultilineTextFieldRenderer() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MultilineTextFieldRenderer = __decorate([
        Renderer({
            type: 'multiline-text'
        })
    ], MultilineTextFieldRenderer);
    return MultilineTextFieldRenderer;
})(MultilineTextField));

export { MultilineTextField };
