"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNodeApparentTextContent = void 0;
const isTextField_1 = require("../../isTextField");
const getNodeApparentTextContent = (node) => {
    if (node instanceof HTMLElement) {
        if ((0, isTextField_1.isTextField)(node)) {
            return node.value;
        }
    }
    return node.textContent;
};
exports.getNodeApparentTextContent = getNodeApparentTextContent;
//# sourceMappingURL=getNodeApparentTextContent.js.map