Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
No EOL
465 B
Text
17 lines
No EOL
465 B
Text
import css from './css';
|
|
import ownerDocument from './ownerDocument';
|
|
|
|
var isHTMLElement = function isHTMLElement(e) {
|
|
return !!e && 'offsetParent' in e;
|
|
};
|
|
|
|
export default function offsetParent(node) {
|
|
var doc = ownerDocument(node);
|
|
var parent = node && node.offsetParent;
|
|
|
|
while (isHTMLElement(parent) && parent.nodeName !== 'HTML' && css(parent, 'position') === 'static') {
|
|
parent = parent.offsetParent;
|
|
}
|
|
|
|
return parent || doc.documentElement;
|
|
} |