@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
19 lines (15 loc) • 828 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
const isNavbarGroup = (nav) => Object.prototype.hasOwnProperty.call(nav, "children");
const isNavbarItem = (nav) => !Object.prototype.hasOwnProperty.call(nav, "children");
const isLinkExternal = (path) => !!(path == null ? void 0 : path.startsWith("http"));
const isMailto = (path) => !!(path == null ? void 0 : path.startsWith("mailto:"));
const isTel = (path) => !!(path == null ? void 0 : path.startsWith("tel:"));
const isExternal = (path) => isLinkExternal(path) || isMailto(path) || isTel(path) || false;
exports.isExternal = isExternal;
exports.isLinkExternal = isLinkExternal;
exports.isMailto = isMailto;
exports.isNavbarGroup = isNavbarGroup;
exports.isNavbarItem = isNavbarItem;
exports.isTel = isTel;
//# sourceMappingURL=navbar.js.map