"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomText = void 0;
const _extract_js_1 = require("./_extract.js");
class DomText extends _extract_js_1.DomExtractPipe {
    getDatum(info) {
        return info.text;
    }
}
exports.DomText = DomText;
DomText.$type = 'DOM.getText';
DomText.$help = `
Returns text extracted from DOM element by reading its
innerText, textContent or value (whichever first is defined)
and normalizing the whitespace.

### Use For

- general purpose text extraction from the page

### See Also

- DOM.getValue, DOM.getInnerText, DOM.getTextContent:
  for more specialized extractors that don't fallback over multiple text sources
`;
//# sourceMappingURL=DOM.getText.js.map