@triptease/tt-navbar 0.0.70 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.70
2
+ * @triptease/tt-navbar v0.0.72
3
3
  */
4
4
 
5
5
  // src/Config.ts
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.70
2
+ * @triptease/tt-navbar v0.0.72
3
3
  */
4
4
 
5
5
  // src/Routes.ts
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.70
2
+ * @triptease/tt-navbar v0.0.72
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2126,24 +2126,24 @@ var TtNavbar = class extends i4 {
2126
2126
  if (mappedUrl) {
2127
2127
  const clientSpecificUrl = mappedUrl.replace("$CLIENT_KEY", this.clientKey);
2128
2128
  const links = Object.values(this.allNavLinks);
2129
- bestMatch = links.find((link) => link.href.includes(clientSpecificUrl));
2129
+ bestMatch = links.find((link2) => link2.href.includes(clientSpecificUrl));
2130
2130
  }
2131
2131
  }
2132
2132
  if (!bestMatch) {
2133
- for (const link of this.allNavLinks) {
2134
- const linkPath = new URL(link.href).pathname;
2133
+ for (const link2 of this.allNavLinks) {
2134
+ const linkPath = new URL(link2.href).pathname;
2135
2135
  if (currentPath.startsWith(linkPath)) {
2136
2136
  if (linkPath.length > bestMatchLength) {
2137
- bestMatch = link;
2137
+ bestMatch = link2;
2138
2138
  bestMatchLength = linkPath.length;
2139
2139
  }
2140
2140
  }
2141
2141
  }
2142
2142
  }
2143
- for (const link of this.allNavLinks) {
2144
- link.classList.remove("current-page");
2145
- if (link.hasAttribute("aria-current")) {
2146
- link.attributes.removeNamedItem("aria-current");
2143
+ for (const link2 of this.allNavLinks) {
2144
+ link2.classList.remove("current-page");
2145
+ if (link2.hasAttribute("aria-current")) {
2146
+ link2.attributes.removeNamedItem("aria-current");
2147
2147
  }
2148
2148
  }
2149
2149
  if (bestMatch) {