@redneckz/wildless-cms-uni-blocks 0.14.367 → 0.14.369

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.
@@ -297,7 +297,10 @@
297
297
  const isHash = (href) => Boolean(href?.startsWith('#'));
298
298
  const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
299
299
  const joinPath = (...path) => path.filter(Boolean).join('/').replace(/\/+/g, '/');
300
- const hasPrefix = (href, prefix) => prefix && href && href.startsWith(prefix);
300
+ const hasPrefix = (href, prefix) => Boolean(prefix &&
301
+ href &&
302
+ href.startsWith(prefix) &&
303
+ [prefix === '/', href === prefix, href[prefix.length] === '/'].some(Boolean));
301
304
 
302
305
  var url = /*#__PURE__*/Object.freeze({
303
306
  __proto__: null,
@@ -4497,7 +4500,7 @@
4497
4500
  ? handleIntersectionActivation(index)
4498
4501
  : handleIntersectionDeactivation(index));
4499
4502
  }), [subItems]);
4500
- return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", role: "menu", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem, ariaLabel: dropdownMenuAriaLabel })) : null, jsxs("div", { className: "flex gap-s", children: [projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT, ariaLabel: chatBotAriaLabel })) : null, jsx(InternetBankButton, { version: version, ...internetBankButton })] })] }));
4503
+ return (jsxs("nav", { className: "relative mt-s flex gap-s items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", role: "menu", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem, ariaLabel: dropdownMenuAriaLabel })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { iconVersion: iconVersion, chat: projectSettings.CHAT_BOT, ariaLabel: chatBotAriaLabel })) : null, jsx(InternetBankButton, { version: version, ...internetBankButton })] }));
4501
4504
  });
4502
4505
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
4503
4506
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
@@ -6314,7 +6317,7 @@
6314
6317
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6315
6318
  });
6316
6319
 
6317
- const packageVersion = "0.14.366";
6320
+ const packageVersion = "0.14.368";
6318
6321
 
6319
6322
  exports.Blocks = Blocks;
6320
6323
  exports.ContentPage = ContentPage;