@redneckz/wildless-cms-uni-blocks 0.14.93 → 0.14.95

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 (183) hide show
  1. package/bundle/bundle.umd.js +27 -32
  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/ExchangeRateTile/renderInput.js +1 -1
  25. package/dist/ui-kit/Select/Select.js +1 -1
  26. package/dist/ui-kit/Select/Select.js.map +1 -1
  27. package/dist/utils/toLocalNumberFormat.d.ts +3 -1
  28. package/dist/utils/toLocalNumberFormat.js +2 -2
  29. package/dist/utils/toLocalNumberFormat.js.map +1 -1
  30. package/lib/common.css +1 -1
  31. package/lib/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  32. package/lib/components/Calculator/CalculatorValueBlock.js +3 -1
  33. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  34. package/lib/components/Calculator/Rate.d.ts +2 -2
  35. package/lib/components/Calculator/Rate.js +2 -1
  36. package/lib/components/Calculator/Rate.js.map +1 -1
  37. package/lib/components/Calculator/getDefaultValues.d.ts +0 -1
  38. package/lib/components/Calculator/getDefaultValues.js +1 -6
  39. package/lib/components/Calculator/getDefaultValues.js.map +1 -1
  40. package/lib/components/Calculator/rangeHelpers.d.ts +0 -1
  41. package/lib/components/Calculator/rangeHelpers.js +0 -2
  42. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  43. package/lib/components/Calculator/renderRate.d.ts +4 -9
  44. package/lib/components/Calculator/renderRate.js +1 -8
  45. package/lib/components/Calculator/renderRate.js.map +1 -1
  46. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  47. package/lib/ui-kit/Select/Select.js +1 -1
  48. package/lib/ui-kit/Select/Select.js.map +1 -1
  49. package/lib/utils/toLocalNumberFormat.d.ts +3 -1
  50. package/lib/utils/toLocalNumberFormat.js +2 -2
  51. package/lib/utils/toLocalNumberFormat.js.map +1 -1
  52. package/mobile/bundle/bundle.umd.js +27 -32
  53. package/mobile/bundle/bundle.umd.min.js +1 -1
  54. package/mobile/bundle/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  55. package/mobile/bundle/components/Calculator/Rate.d.ts +2 -2
  56. package/mobile/bundle/components/Calculator/getDefaultValues.d.ts +0 -1
  57. package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +0 -1
  58. package/mobile/bundle/components/Calculator/renderRate.d.ts +4 -9
  59. package/mobile/bundle/utils/toLocalNumberFormat.d.ts +3 -1
  60. package/mobile/dist/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  61. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +3 -1
  62. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  63. package/mobile/dist/components/Calculator/Rate.d.ts +2 -2
  64. package/mobile/dist/components/Calculator/Rate.js +2 -1
  65. package/mobile/dist/components/Calculator/Rate.js.map +1 -1
  66. package/mobile/dist/components/Calculator/getDefaultValues.d.ts +0 -1
  67. package/mobile/dist/components/Calculator/getDefaultValues.js +1 -7
  68. package/mobile/dist/components/Calculator/getDefaultValues.js.map +1 -1
  69. package/mobile/dist/components/Calculator/rangeHelpers.d.ts +0 -1
  70. package/mobile/dist/components/Calculator/rangeHelpers.js +1 -4
  71. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  72. package/mobile/dist/components/Calculator/renderRate.d.ts +4 -9
  73. package/mobile/dist/components/Calculator/renderRate.js +1 -8
  74. package/mobile/dist/components/Calculator/renderRate.js.map +1 -1
  75. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  76. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  77. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  78. package/mobile/dist/utils/toLocalNumberFormat.d.ts +3 -1
  79. package/mobile/dist/utils/toLocalNumberFormat.js +2 -2
  80. package/mobile/dist/utils/toLocalNumberFormat.js.map +1 -1
  81. package/mobile/lib/common.css +1 -1
  82. package/mobile/lib/components/Calculator/CalculatorValueBlock.d.ts +4 -2
  83. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +3 -1
  84. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  85. package/mobile/lib/components/Calculator/Rate.d.ts +2 -2
  86. package/mobile/lib/components/Calculator/Rate.js +2 -1
  87. package/mobile/lib/components/Calculator/Rate.js.map +1 -1
  88. package/mobile/lib/components/Calculator/getDefaultValues.d.ts +0 -1
  89. package/mobile/lib/components/Calculator/getDefaultValues.js +1 -6
  90. package/mobile/lib/components/Calculator/getDefaultValues.js.map +1 -1
  91. package/mobile/lib/components/Calculator/rangeHelpers.d.ts +0 -1
  92. package/mobile/lib/components/Calculator/rangeHelpers.js +0 -2
  93. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  94. package/mobile/lib/components/Calculator/renderRate.d.ts +4 -9
  95. package/mobile/lib/components/Calculator/renderRate.js +1 -8
  96. package/mobile/lib/components/Calculator/renderRate.js.map +1 -1
  97. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  98. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  99. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  100. package/mobile/lib/utils/toLocalNumberFormat.d.ts +3 -1
  101. package/mobile/lib/utils/toLocalNumberFormat.js +2 -2
  102. package/mobile/lib/utils/toLocalNumberFormat.js.map +1 -1
  103. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +8 -4
  104. package/mobile/src/components/Calculator/Rate.tsx +5 -4
  105. package/mobile/src/components/Calculator/getDefaultValues.ts +0 -9
  106. package/mobile/src/components/Calculator/rangeHelpers.ts +0 -10
  107. package/mobile/src/components/Calculator/renderRate.tsx +23 -44
  108. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -1
  109. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  110. package/mobile/src/utils/toLocalNumberFormat.ts +2 -2
  111. package/package.json +1 -1
  112. package/src/components/Calculator/CalculatorValueBlock.tsx +8 -4
  113. package/src/components/Calculator/Rate.tsx +5 -4
  114. package/src/components/Calculator/getDefaultValues.ts +0 -9
  115. package/src/components/Calculator/rangeHelpers.ts +0 -10
  116. package/src/components/Calculator/renderRate.tsx +23 -44
  117. package/src/components/ExchangeRateTile/renderInput.tsx +1 -1
  118. package/src/ui-kit/Select/Select.tsx +1 -1
  119. package/src/utils/toLocalNumberFormat.ts +2 -2
  120. package/bundle/components/Calculator/getCreditRate.d.ts +0 -7
  121. package/bundle/components/Calculator/getDefaultMonths.d.ts +0 -1
  122. package/bundle/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  123. package/bundle/components/Calculator/renderRealEstateValue.d.ts +0 -6
  124. package/dist/components/Calculator/getCreditRate.d.ts +0 -7
  125. package/dist/components/Calculator/getCreditRate.js +0 -14
  126. package/dist/components/Calculator/getCreditRate.js.map +0 -1
  127. package/dist/components/Calculator/getDefaultMonths.d.ts +0 -1
  128. package/dist/components/Calculator/getDefaultMonths.js +0 -5
  129. package/dist/components/Calculator/getDefaultMonths.js.map +0 -1
  130. package/dist/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  131. package/dist/components/Calculator/renderInitialFeeInput.js +0 -19
  132. package/dist/components/Calculator/renderInitialFeeInput.js.map +0 -1
  133. package/dist/components/Calculator/renderRealEstateValue.d.ts +0 -6
  134. package/dist/components/Calculator/renderRealEstateValue.js +0 -16
  135. package/dist/components/Calculator/renderRealEstateValue.js.map +0 -1
  136. package/lib/components/Calculator/getCreditRate.d.ts +0 -7
  137. package/lib/components/Calculator/getCreditRate.js +0 -11
  138. package/lib/components/Calculator/getCreditRate.js.map +0 -1
  139. package/lib/components/Calculator/getDefaultMonths.d.ts +0 -1
  140. package/lib/components/Calculator/getDefaultMonths.js +0 -2
  141. package/lib/components/Calculator/getDefaultMonths.js.map +0 -1
  142. package/lib/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  143. package/lib/components/Calculator/renderInitialFeeInput.js +0 -16
  144. package/lib/components/Calculator/renderInitialFeeInput.js.map +0 -1
  145. package/lib/components/Calculator/renderRealEstateValue.d.ts +0 -6
  146. package/lib/components/Calculator/renderRealEstateValue.js +0 -13
  147. package/lib/components/Calculator/renderRealEstateValue.js.map +0 -1
  148. package/mobile/bundle/components/Calculator/getCreditRate.d.ts +0 -7
  149. package/mobile/bundle/components/Calculator/getDefaultMonths.d.ts +0 -1
  150. package/mobile/bundle/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  151. package/mobile/bundle/components/Calculator/renderRealEstateValue.d.ts +0 -6
  152. package/mobile/dist/components/Calculator/getCreditRate.d.ts +0 -7
  153. package/mobile/dist/components/Calculator/getCreditRate.js +0 -14
  154. package/mobile/dist/components/Calculator/getCreditRate.js.map +0 -1
  155. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +0 -1
  156. package/mobile/dist/components/Calculator/getDefaultMonths.js +0 -5
  157. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +0 -1
  158. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  159. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +0 -19
  160. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +0 -1
  161. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +0 -6
  162. package/mobile/dist/components/Calculator/renderRealEstateValue.js +0 -16
  163. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +0 -1
  164. package/mobile/lib/components/Calculator/getCreditRate.d.ts +0 -7
  165. package/mobile/lib/components/Calculator/getCreditRate.js +0 -11
  166. package/mobile/lib/components/Calculator/getCreditRate.js.map +0 -1
  167. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +0 -1
  168. package/mobile/lib/components/Calculator/getDefaultMonths.js +0 -2
  169. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +0 -1
  170. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +0 -6
  171. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +0 -16
  172. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +0 -1
  173. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +0 -6
  174. package/mobile/lib/components/Calculator/renderRealEstateValue.js +0 -13
  175. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +0 -1
  176. package/mobile/src/components/Calculator/getCreditRate.ts +0 -20
  177. package/mobile/src/components/Calculator/getDefaultMonths.ts +0 -2
  178. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +0 -36
  179. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +0 -33
  180. package/src/components/Calculator/getCreditRate.ts +0 -20
  181. package/src/components/Calculator/getDefaultMonths.ts +0 -2
  182. package/src/components/Calculator/renderInitialFeeInput.tsx +0 -36
  183. package/src/components/Calculator/renderRealEstateValue.tsx +0 -33
@@ -727,8 +727,8 @@
727
727
  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;
728
728
  });
729
729
 
730
- const toLocalNumberFormat = (fractionDigits = 0) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
731
- minimumFractionDigits: 0,
730
+ const toLocalNumberFormat = (fractionDigits = 0, { fixed } = {}) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
731
+ minimumFractionDigits: fixed ? fractionDigits : 0,
732
732
  maximumFractionDigits: fractionDigits,
733
733
  }).format(Number(_) || 0);
734
734
 
@@ -1134,7 +1134,7 @@
1134
1134
  onClose: handleClose,
1135
1135
  iconVersion,
1136
1136
  });
1137
- return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1137
+ return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-8 flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1138
1138
  });
1139
1139
  const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
1140
1140
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
@@ -1848,7 +1848,9 @@
1848
1848
  }
1849
1849
 
1850
1850
  const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
1851
- 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: "-" }) }))] })));
1851
+ 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]
1852
+ .filter(Boolean)
1853
+ .join(' ') }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
1852
1854
 
1853
1855
  const DEFAULT_MIN_SUM$1 = 10000;
1854
1856
  const DEFAULT_MAX_SUM$1 = 5000000;
@@ -1942,18 +1944,11 @@
1942
1944
 
1943
1945
  const renderFootnote = (text) => text ? (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: text })) : null;
1944
1946
 
1945
- 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] })] })));
1947
+ 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] })] })));
1946
1948
 
1947
1949
  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" })) })] })));
1948
1950
 
1949
- const renderDesktopRate = ({ rate, depositeName, fractionDigits, isShowDepositeName, title, unit, }) => (jsx(Rate, { rate: rate, depositeName: depositeName, fractionDigits: fractionDigits, isShowDepositeName: isShowDepositeName, unit: unit, title: title }));
1950
- const renderMobileRate = ({ rate, title, unit }) => (jsx(CalculatorValueBlock, { title: title, value: rate, postfix: unit }));
1951
- const renderRate = ({ isUnknownRateShown = true, isUnavailableByTerm = false, title = 'Ставка', unit = '%', rate = 0, ...rest }) => {
1952
- if (isUnknownRateShown && rate === 0) {
1953
- return jsx(UnknownRate, { isUnavailableByTerm: isUnavailableByTerm, title: title });
1954
- }
1955
- 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 }) })] }));
1956
- };
1951
+ 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 }) })] }));
1957
1952
 
1958
1953
  const DEFAULT_MONEY_STEP = 1000;
1959
1954
  function renderWantedSumInput({ isShowItems = true, step = DEFAULT_MONEY_STEP, ...rest }) {
@@ -2058,23 +2053,6 @@
2058
2053
  const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
2059
2054
  const max = maxBy();
2060
2055
 
2061
- const mergeIntervals = (intervals) => {
2062
- const result = [...intervals];
2063
- result.sort(([a], [c]) => a - c);
2064
- let i = 1;
2065
- while (i < result.length) {
2066
- const [a, b] = result[i - 1];
2067
- const [c, d] = result[i];
2068
- if (b >= c) {
2069
- result.splice(i - 1, 2, [a, Math.max(b, d)]);
2070
- }
2071
- else {
2072
- i++;
2073
- }
2074
- }
2075
- return result;
2076
- };
2077
-
2078
2056
  const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
2079
2057
  const min = minBy();
2080
2058
 
@@ -2335,6 +2313,23 @@
2335
2313
 
2336
2314
  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);
2337
2315
 
2316
+ const mergeIntervals = (intervals) => {
2317
+ const result = [...intervals];
2318
+ result.sort(([a], [c]) => a - c);
2319
+ let i = 1;
2320
+ while (i < result.length) {
2321
+ const [a, b] = result[i - 1];
2322
+ const [c, d] = result[i];
2323
+ if (b >= c) {
2324
+ result.splice(i - 1, 2, [a, Math.max(b, d)]);
2325
+ }
2326
+ else {
2327
+ i++;
2328
+ }
2329
+ }
2330
+ return result;
2331
+ };
2332
+
2338
2333
  const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
2339
2334
  const { moneyValue, monthsValue } = userInputParams;
2340
2335
  const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
@@ -3626,7 +3621,7 @@
3626
3621
  text: _?.currency?.currency ?? '',
3627
3622
  }));
3628
3623
  const selectedValue = { key: selected, text: selected };
3629
- return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none -mr-24", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
3624
+ return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none -mr-20", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
3630
3625
  }
3631
3626
 
3632
3627
  const ExchangeCurrencyCalculator = JSX(({ className = '', currencyRatesBuy, currencyRatesSell, button }) => {
@@ -5796,7 +5791,7 @@
5796
5791
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5797
5792
  }
5798
5793
 
5799
- const packageVersion = "0.14.92";
5794
+ const packageVersion = "0.14.94";
5800
5795
 
5801
5796
  exports.Blocks = Blocks;
5802
5797
  exports.ContentPage = ContentPage;