"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const element_1 = require("../../../../../client/element");
class _Text extends element_1.Element {
    constructor($props, $system) {
        super($props, $system);
        const { value = '' } = $props;
        const text_node = this.$system.api.document.createTextNode(value);
        this._text_el = text_node;
        this.$element = text_node;
    }
    onPropChanged(prop, current) {
        if (prop === 'value') {
            this._text_el.nodeValue = current !== null && current !== void 0 ? current : '';
        }
    }
    focus(options = { preventScroll: true }) {
        // NOOP
    }
    blur() {
        // NOOP
    }
    onMount() {
        // console.log('_Text', 'onMount')
    }
    onUnmount() {
        // console.log('_Text', 'onUnmount')
    }
    domAppendChild(component) {
        // NOOP
    }
    domRemoveChild(component) {
        // NOOP
    }
    domInsertParentChildAt(component) {
        // NOOP
    }
    domRemoveParentChildAt(component) {
        // NOOP
    }
}
exports.default = _Text;
//# sourceMappingURL=Component.js.map