@redneckz/wildless-cms-uni-blocks 0.14.94 → 0.14.96

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.
Files changed (175) hide show
  1. package/bundle/bundle.umd.js +25 -30
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  4. package/bundle/components/Calculator/Rate.d.ts +2 -2
  5. package/bundle/components/Calculator/getDefaultValues.d.ts +0 -1
  6. package/bundle/components/Calculator/rangeHelpers.d.ts +0 -1
  7. package/bundle/components/Calculator/renderRate.d.ts +4 -9
  8. package/bundle/utils/toLocalNumberFormat.d.ts +3 -1
  9. package/dist/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  10. package/dist/components/Calculator/CalculatorValueBlock.js +3 -1
  11. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  12. package/dist/components/Calculator/Rate.d.ts +2 -2
  13. package/dist/components/Calculator/Rate.js +2 -1
  14. package/dist/components/Calculator/Rate.js.map +1 -1
  15. package/dist/components/Calculator/getDefaultValues.d.ts +0 -1
  16. package/dist/components/Calculator/getDefaultValues.js +1 -7
  17. package/dist/components/Calculator/getDefaultValues.js.map +1 -1
  18. package/dist/components/Calculator/rangeHelpers.d.ts +0 -1
  19. package/dist/components/Calculator/rangeHelpers.js +1 -4
  20. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  21. package/dist/components/Calculator/renderRate.d.ts +4 -9
  22. package/dist/components/Calculator/renderRate.js +1 -8
  23. package/dist/components/Calculator/renderRate.js.map +1 -1
  24. package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js +1 -4
  25. package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  26. package/dist/utils/toLocalNumberFormat.d.ts +3 -1
  27. package/dist/utils/toLocalNumberFormat.js +2 -2
  28. package/dist/utils/toLocalNumberFormat.js.map +1 -1
  29. package/lib/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  30. package/lib/components/Calculator/CalculatorValueBlock.js +3 -1
  31. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  32. package/lib/components/Calculator/Rate.d.ts +2 -2
  33. package/lib/components/Calculator/Rate.js +2 -1
  34. package/lib/components/Calculator/Rate.js.map +1 -1
  35. package/lib/components/Calculator/getDefaultValues.d.ts +0 -1
  36. package/lib/components/Calculator/getDefaultValues.js +1 -6
  37. package/lib/components/Calculator/getDefaultValues.js.map +1 -1
  38. package/lib/components/Calculator/rangeHelpers.d.ts +0 -1
  39. package/lib/components/Calculator/rangeHelpers.js +0 -2
  40. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  41. package/lib/components/Calculator/renderRate.d.ts +4 -9
  42. package/lib/components/Calculator/renderRate.js +1 -8
  43. package/lib/components/Calculator/renderRate.js.map +1 -1
  44. package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js +1 -4
  45. package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  46. package/lib/utils/toLocalNumberFormat.d.ts +3 -1
  47. package/lib/utils/toLocalNumberFormat.js +2 -2
  48. package/lib/utils/toLocalNumberFormat.js.map +1 -1
  49. package/mobile/bundle/bundle.umd.js +26 -34
  50. package/mobile/bundle/bundle.umd.min.js +1 -1
  51. package/mobile/bundle/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  52. package/mobile/bundle/components/Calculator/Rate.d.ts +2 -2
  53. package/mobile/bundle/components/Calculator/getDefaultValues.d.ts +0 -1
  54. package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +0 -1
  55. package/mobile/bundle/components/Calculator/renderRate.d.ts +4 -9
  56. package/mobile/bundle/utils/toLocalNumberFormat.d.ts +3 -1
  57. package/mobile/dist/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  58. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +3 -1
  59. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  60. package/mobile/dist/components/Calculator/Rate.d.ts +2 -2
  61. package/mobile/dist/components/Calculator/Rate.js +2 -1
  62. package/mobile/dist/components/Calculator/Rate.js.map +1 -1
  63. package/mobile/dist/components/Calculator/getDefaultValues.d.ts +0 -1
  64. package/mobile/dist/components/Calculator/getDefaultValues.js +1 -7
  65. package/mobile/dist/components/Calculator/getDefaultValues.js.map +1 -1
  66. package/mobile/dist/components/Calculator/rangeHelpers.d.ts +0 -1
  67. package/mobile/dist/components/Calculator/rangeHelpers.js +1 -4
  68. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  69. package/mobile/dist/components/Calculator/renderRate.d.ts +4 -9
  70. package/mobile/dist/components/Calculator/renderRate.js +1 -8
  71. package/mobile/dist/components/Calculator/renderRate.js.map +1 -1
  72. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js +1 -4
  73. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  74. package/mobile/dist/utils/toLocalNumberFormat.d.ts +3 -1
  75. package/mobile/dist/utils/toLocalNumberFormat.js +2 -2
  76. package/mobile/dist/utils/toLocalNumberFormat.js.map +1 -1
  77. package/mobile/lib/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  78. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +3 -1
  79. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  80. package/mobile/lib/components/Calculator/Rate.d.ts +2 -2
  81. package/mobile/lib/components/Calculator/Rate.js +2 -1
  82. package/mobile/lib/components/Calculator/Rate.js.map +1 -1
  83. package/mobile/lib/components/Calculator/getDefaultValues.d.ts +0 -1
  84. package/mobile/lib/components/Calculator/getDefaultValues.js +1 -6
  85. package/mobile/lib/components/Calculator/getDefaultValues.js.map +1 -1
  86. package/mobile/lib/components/Calculator/rangeHelpers.d.ts +0 -1
  87. package/mobile/lib/components/Calculator/rangeHelpers.js +0 -2
  88. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  89. package/mobile/lib/components/Calculator/renderRate.d.ts +4 -9
  90. package/mobile/lib/components/Calculator/renderRate.js +1 -8
  91. package/mobile/lib/components/Calculator/renderRate.js.map +1 -1
  92. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js +1 -4
  93. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  94. package/mobile/lib/utils/toLocalNumberFormat.d.ts +3 -1
  95. package/mobile/lib/utils/toLocalNumberFormat.js +2 -2
  96. package/mobile/lib/utils/toLocalNumberFormat.js.map +1 -1
  97. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +8 -4
  98. package/mobile/src/components/Calculator/Rate.tsx +5 -4
  99. package/mobile/src/components/Calculator/getDefaultValues.ts +0 -9
  100. package/mobile/src/components/Calculator/rangeHelpers.ts +0 -10
  101. package/mobile/src/components/Calculator/renderRate.tsx +23 -44
  102. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +1 -5
  103. package/mobile/src/utils/toLocalNumberFormat.ts +2 -2
  104. package/package.json +1 -1
  105. package/src/components/Calculator/CalculatorValueBlock.tsx +8 -4
  106. package/src/components/Calculator/Rate.tsx +5 -4
  107. package/src/components/Calculator/getDefaultValues.ts +0 -9
  108. package/src/components/Calculator/rangeHelpers.ts +0 -10
  109. package/src/components/Calculator/renderRate.tsx +23 -44
  110. package/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +1 -5
  111. package/src/utils/toLocalNumberFormat.ts +2 -2
  112. package/bundle/components/Calculator/getCreditRate.d.ts +0 -7
  113. package/bundle/components/Calculator/getDefaultMonths.d.ts +0 -1
  114. package/bundle/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  115. package/bundle/components/Calculator/renderRealEstateValue.d.ts +0 -6
  116. package/dist/components/Calculator/getCreditRate.d.ts +0 -7
  117. package/dist/components/Calculator/getCreditRate.js +0 -14
  118. package/dist/components/Calculator/getCreditRate.js.map +0 -1
  119. package/dist/components/Calculator/getDefaultMonths.d.ts +0 -1
  120. package/dist/components/Calculator/getDefaultMonths.js +0 -5
  121. package/dist/components/Calculator/getDefaultMonths.js.map +0 -1
  122. package/dist/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  123. package/dist/components/Calculator/renderInitialFeeInput.js +0 -19
  124. package/dist/components/Calculator/renderInitialFeeInput.js.map +0 -1
  125. package/dist/components/Calculator/renderRealEstateValue.d.ts +0 -6
  126. package/dist/components/Calculator/renderRealEstateValue.js +0 -16
  127. package/dist/components/Calculator/renderRealEstateValue.js.map +0 -1
  128. package/lib/components/Calculator/getCreditRate.d.ts +0 -7
  129. package/lib/components/Calculator/getCreditRate.js +0 -11
  130. package/lib/components/Calculator/getCreditRate.js.map +0 -1
  131. package/lib/components/Calculator/getDefaultMonths.d.ts +0 -1
  132. package/lib/components/Calculator/getDefaultMonths.js +0 -2
  133. package/lib/components/Calculator/getDefaultMonths.js.map +0 -1
  134. package/lib/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  135. package/lib/components/Calculator/renderInitialFeeInput.js +0 -16
  136. package/lib/components/Calculator/renderInitialFeeInput.js.map +0 -1
  137. package/lib/components/Calculator/renderRealEstateValue.d.ts +0 -6
  138. package/lib/components/Calculator/renderRealEstateValue.js +0 -13
  139. package/lib/components/Calculator/renderRealEstateValue.js.map +0 -1
  140. package/mobile/bundle/components/Calculator/getCreditRate.d.ts +0 -7
  141. package/mobile/bundle/components/Calculator/getDefaultMonths.d.ts +0 -1
  142. package/mobile/bundle/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  143. package/mobile/bundle/components/Calculator/renderRealEstateValue.d.ts +0 -6
  144. package/mobile/dist/components/Calculator/getCreditRate.d.ts +0 -7
  145. package/mobile/dist/components/Calculator/getCreditRate.js +0 -14
  146. package/mobile/dist/components/Calculator/getCreditRate.js.map +0 -1
  147. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +0 -1
  148. package/mobile/dist/components/Calculator/getDefaultMonths.js +0 -5
  149. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +0 -1
  150. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  151. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +0 -19
  152. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +0 -1
  153. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +0 -6
  154. package/mobile/dist/components/Calculator/renderRealEstateValue.js +0 -16
  155. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +0 -1
  156. package/mobile/lib/components/Calculator/getCreditRate.d.ts +0 -7
  157. package/mobile/lib/components/Calculator/getCreditRate.js +0 -11
  158. package/mobile/lib/components/Calculator/getCreditRate.js.map +0 -1
  159. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +0 -1
  160. package/mobile/lib/components/Calculator/getDefaultMonths.js +0 -2
  161. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +0 -1
  162. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  163. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +0 -16
  164. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +0 -1
  165. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +0 -6
  166. package/mobile/lib/components/Calculator/renderRealEstateValue.js +0 -13
  167. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +0 -1
  168. package/mobile/src/components/Calculator/getCreditRate.ts +0 -20
  169. package/mobile/src/components/Calculator/getDefaultMonths.ts +0 -2
  170. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +0 -36
  171. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +0 -33
  172. package/src/components/Calculator/getCreditRate.ts +0 -20
  173. package/src/components/Calculator/getDefaultMonths.ts +0 -2
  174. package/src/components/Calculator/renderInitialFeeInput.tsx +0 -36
  175. package/src/components/Calculator/renderRealEstateValue.tsx +0 -33
@@ -735,8 +735,8 @@
735
735
  return items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', versionStyle.textSize, className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, dotClassName: style(dotClassName || 'bg-primary-text', versionStyle.dotStyle), children: item }, String(i)))) })) : null;
736
736
  });
737
737
 
738
- const toLocalNumberFormat = (fractionDigits = 0) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
739
- minimumFractionDigits: 0,
738
+ const toLocalNumberFormat = (fractionDigits = 0, { fixed } = {}) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
739
+ minimumFractionDigits: fixed ? fractionDigits : 0,
740
740
  maximumFractionDigits: fractionDigits,
741
741
  }).format(Number(_) || 0);
742
742
 
@@ -2054,7 +2054,9 @@
2054
2054
  });
2055
2055
 
2056
2056
  const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
2057
- const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (jsxs("div", { className: style(calculatorValueBlockStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsxs(Text, { size: "text-h3", children: [prefix, " ", toLocalNumberFormat(2)(Math.round(value)), " ", postfix] }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
2057
+ const CalculatorValueBlock = JSX(({ className, title, value, fractionDigits, fixed, prefix, postfix }) => (jsxs("div", { className: style(calculatorValueBlockStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsx(Text, { size: "text-h3", children: [prefix, toLocalNumberFormat(fractionDigits, { fixed })(value), postfix]
2058
+ .filter(Boolean)
2059
+ .join(' ') }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
2058
2060
 
2059
2061
  const DEFAULT_MIN_SUM$1 = 10000;
2060
2062
  const DEFAULT_MAX_SUM$1 = 5000000;
@@ -2148,18 +2150,11 @@
2148
2150
 
2149
2151
  const renderFootnote = (text) => text ? (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: text })) : null;
2150
2152
 
2151
- const Rate = JSX(({ rate, title = 'Ставка', unit, depositeName, isShowDepositeName, fractionDigits = 2 }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex justify-start gradient-color-text", children: [jsx("span", { className: "font-mohave text-title-huge pr-xl -mt-m tracking-[-15px]", children: String(rate.toFixed(fractionDigits)).replace('.', ',') }), unit ? jsx("span", { className: "text-7xl", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
2153
+ const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex justify-start gradient-color-text", children: [jsx("span", { className: "font-mohave text-title-huge pr-xl -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
2152
2154
 
2153
2155
  const UnknownRate = JSX(({ title = 'Ставка', isUnavailableByTerm = false }) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx(Icon, { className: "w-10 h-10 @5xl:h-auto @5xl:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: isUnavailableByTerm ? (jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] })) : (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044E \u0441\u0443\u043C\u043C\u0443 \u0438\u043B\u0438 \u0441\u0440\u043E\u043A" })) })] })));
2154
2156
 
2155
- const renderDesktopRate = ({ rate, depositeName, fractionDigits, isShowDepositeName, title, unit, }) => (jsx(Rate, { rate: rate, depositeName: depositeName, fractionDigits: fractionDigits, isShowDepositeName: isShowDepositeName, unit: unit, title: title }));
2156
- const renderMobileRate = ({ rate, title, unit }) => (jsx(CalculatorValueBlock, { title: title, value: rate, postfix: unit }));
2157
- const renderRate = ({ isUnknownRateShown = true, isUnavailableByTerm = false, title = 'Ставка', unit = '%', rate = 0, ...rest }) => {
2158
- if (isUnknownRateShown && rate === 0) {
2159
- return jsx(UnknownRate, { isUnavailableByTerm: isUnavailableByTerm, title: title });
2160
- }
2161
- return (jsxs("div", { children: [jsx("div", { className: "hidden @xl:block", children: renderDesktopRate({ title, unit, rate, ...rest }) }), jsx("div", { className: "@xl:hidden", children: renderMobileRate({ title, unit, rate, ...rest }) })] }));
2162
- };
2157
+ const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, isUnknownRateShown = true, ...rest }) => isUnknownRateShown && rate === 0 ? (jsx(UnknownRate, { title: title, ...rest })) : (jsxs("div", { children: [jsx("div", { className: "hidden @xl:block", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, ...rest }) }), jsx("div", { className: "@xl:hidden", children: jsx(CalculatorValueBlock, { title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, ...rest }) })] }));
2163
2158
 
2164
2159
  const DEFAULT_MONEY_STEP = 1000;
2165
2160
  function renderWantedSumInput({ isShowItems = true, step = DEFAULT_MONEY_STEP, ...rest }) {
@@ -2260,23 +2255,6 @@
2260
2255
  ],
2261
2256
  });
2262
2257
 
2263
- const mergeIntervals = (intervals) => {
2264
- const result = [...intervals];
2265
- result.sort(([a], [c]) => a - c);
2266
- let i = 1;
2267
- while (i < result.length) {
2268
- const [a, b] = result[i - 1];
2269
- const [c, d] = result[i];
2270
- if (b >= c) {
2271
- result.splice(i - 1, 2, [a, Math.max(b, d)]);
2272
- }
2273
- else {
2274
- i++;
2275
- }
2276
- }
2277
- return result;
2278
- };
2279
-
2280
2258
  const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
2281
2259
  ? {
2282
2260
  [minKey]: limitParams[minKey],
@@ -2534,6 +2512,23 @@
2534
2512
 
2535
2513
  const arrayByRange = (start, stop, step = 1) => Array.from({ length: Math.abs(stop - start) / step + 1 }, (value, index) => stop >= start ? start + index * step : start - index * step);
2536
2514
 
2515
+ const mergeIntervals = (intervals) => {
2516
+ const result = [...intervals];
2517
+ result.sort(([a], [c]) => a - c);
2518
+ let i = 1;
2519
+ while (i < result.length) {
2520
+ const [a, b] = result[i - 1];
2521
+ const [c, d] = result[i];
2522
+ if (b >= c) {
2523
+ result.splice(i - 1, 2, [a, Math.max(b, d)]);
2524
+ }
2525
+ else {
2526
+ i++;
2527
+ }
2528
+ }
2529
+ return result;
2530
+ };
2531
+
2537
2532
  const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
2538
2533
  const { moneyValue, monthsValue } = userInputParams;
2539
2534
  const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
@@ -4565,11 +4560,8 @@
4565
4560
 
4566
4561
  const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => {
4567
4562
  const isAnotherPortal = !projectSettings?.BASE_PATH || !item?.href?.startsWith(projectSettings.BASE_PATH);
4568
- const _href = !projectSettings.BASE_PATH
4569
- ? item?.href
4570
- : item?.href?.replace(projectSettings.BASE_PATH, '');
4571
4563
  const link = useLink({ isRemote: isAnotherPortal });
4572
- const { href, onClick: handleClick } = link({ href: _href, onClick });
4564
+ const { href, onClick: handleClick } = link({ href: item?.href, onClick });
4573
4565
  return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), href: href, target: "_self", title: item?.title || '', onClick: handleClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] }));
4574
4566
  });
4575
4567
 
@@ -5410,7 +5402,7 @@
5410
5402
 
5411
5403
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5412
5404
 
5413
- const packageVersion = "0.14.93";
5405
+ const packageVersion = "0.14.95";
5414
5406
 
5415
5407
  exports.Blocks = Blocks;
5416
5408
  exports.ContentPage = ContentPage;