import "vue"; import { unrefElement } from "@vueuse/core"; //#region src/components/hooks/use-motion-elm.ts /** * Get the actual motion element, skipping text and comment nodes * @param el - The HTML element to check * @returns The first non-text/comment element */ function getMotionElement(el) { if (!el) return void 0; if (el.nodeType === 3 || el.nodeType === 8) return getMotionElement(el.nextSibling); return el; } /** * Get the actual element, skipping text and comment nodes * @param target - The element to check * @returns The first non-text/comment element */ function getElement(target) { return getMotionElement(unrefElement(target)); } //#endregion export { getElement, getMotionElement };