Files
url_tracker_tool/node_modules/@chakra-ui/utils/dist/cjs/is-element.cjs
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

36 lines
1.2 KiB
JavaScript

'use strict';
function isHTMLElement(el) {
return el != null && typeof el == "object" && "nodeType" in el && el.nodeType === Node.ELEMENT_NODE;
}
function isBrowser() {
return Boolean(globalThis?.document);
}
function isInputElement(element) {
return isHTMLElement(element) && element.localName === "input" && "select" in element;
}
function isActiveElement(element) {
const doc = isHTMLElement(element) ? element.ownerDocument : document;
return doc.activeElement === element;
}
function isHiddenElement(element) {
if (element.parentElement && isHiddenElement(element.parentElement))
return true;
return element.hidden;
}
function isContentEditableElement(element) {
const value = element.getAttribute("contenteditable");
return value !== "false" && value != null;
}
function isDisabledElement(element) {
return Boolean(element.getAttribute("disabled")) === true || Boolean(element.getAttribute("aria-disabled")) === true;
}
exports.isActiveElement = isActiveElement;
exports.isBrowser = isBrowser;
exports.isContentEditableElement = isContentEditableElement;
exports.isDisabledElement = isDisabledElement;
exports.isHTMLElement = isHTMLElement;
exports.isHiddenElement = isHiddenElement;
exports.isInputElement = isInputElement;