"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomIsChecked = void 0;
const _extract_js_1 = require("./_extract.js");
class DomIsChecked extends _extract_js_1.DomExtractPipe {
    getDatum(info) {
        return info.nodeName === 'OPTION' ? !!info.selected : !!info.checked && !info.indeterminate;
    }
}
exports.DomIsChecked = DomIsChecked;
DomIsChecked.$type = 'DOM.isSelected';
DomIsChecked.$help = `
For each element returns the value of its \`selected\` or \`checked\` DOM property.

### Use For

- extracting boolean values of checkboxes, radio buttons and \`option\` elements
`;
//# sourceMappingURL=DOM.isSelected.js.map