@redneckz/wildless-cms-uni-blocks 0.14.840 → 0.14.841

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 (336) hide show
  1. package/bin/migration-scripts/0.14.832.js +1 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +47 -325
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/dist/components/Blocks.js +0 -6
  6. package/dist/components/Blocks.js.map +1 -1
  7. package/dist/components/Blocks.mobile.js +0 -4
  8. package/dist/components/Blocks.mobile.js.map +1 -1
  9. package/lib/common.css +1 -1
  10. package/lib/components/Blocks.js +0 -6
  11. package/lib/components/Blocks.js.map +1 -1
  12. package/lib/components/Blocks.mobile.js +0 -4
  13. package/lib/components/Blocks.mobile.js.map +1 -1
  14. package/mobile/bundle/bundle.umd.js +20 -226
  15. package/mobile/bundle/bundle.umd.min.js +1 -1
  16. package/mobile/dist/components/Blocks.js +0 -4
  17. package/mobile/dist/components/Blocks.js.map +1 -1
  18. package/mobile/lib/common.css +1 -1
  19. package/mobile/lib/components/Blocks.js +0 -4
  20. package/mobile/lib/components/Blocks.js.map +1 -1
  21. package/mobile/src/components/Blocks.ts +0 -4
  22. package/package.json +2 -2
  23. package/src/components/Blocks.mobile.ts +0 -4
  24. package/src/components/Blocks.ts +0 -6
  25. package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  26. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  27. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  28. package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  29. package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  30. package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  31. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  32. package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  33. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  34. package/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  35. package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  36. package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  37. package/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  38. package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  39. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  40. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  41. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  42. package/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  43. package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  44. package/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  45. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  46. package/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  47. package/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  48. package/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  49. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  50. package/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  51. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  52. package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  53. package/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  54. package/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  55. package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  56. package/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  57. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  58. package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  59. package/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  60. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  61. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  62. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  63. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  64. package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  65. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  66. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  67. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  68. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  69. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  70. package/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  71. package/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  72. package/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  73. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  74. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  75. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  76. package/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  77. package/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  78. package/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  79. package/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  80. package/dist/components/ExchangeRateTile/renderInput.js +0 -16
  81. package/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  82. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  83. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  84. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  85. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  86. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  87. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  88. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  89. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  90. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  91. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  92. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  93. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  94. package/dist/ui-kit/Rating/Rating.d.ts +0 -1
  95. package/dist/ui-kit/Rating/Rating.js +0 -21
  96. package/dist/ui-kit/Rating/Rating.js.map +0 -1
  97. package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  98. package/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  99. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  100. package/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  101. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +0 -5
  102. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +0 -5
  103. package/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  104. package/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  105. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  106. package/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  107. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  108. package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  109. package/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  110. package/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  111. package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  112. package/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  113. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  114. package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  115. package/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  116. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  117. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  118. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  119. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  120. package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  121. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +0 -5
  122. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +0 -5
  123. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  124. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  125. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  126. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  127. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  128. package/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  129. package/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  130. package/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  131. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  132. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  133. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  134. package/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  135. package/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  136. package/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  137. package/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  138. package/lib/components/ExchangeRateTile/renderInput.js +0 -13
  139. package/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  140. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  141. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  142. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  143. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  144. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +0 -5
  145. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  146. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  147. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  148. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  149. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  150. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  151. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  152. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  153. package/lib/ui-kit/Rating/Rating.d.ts +0 -1
  154. package/lib/ui-kit/Rating/Rating.fixture.d.ts +0 -5
  155. package/lib/ui-kit/Rating/Rating.js +0 -18
  156. package/lib/ui-kit/Rating/Rating.js.map +0 -1
  157. package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  158. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  159. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  160. package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  161. package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  162. package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  163. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  164. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  165. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  166. package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  167. package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  168. package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  169. package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  170. package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  171. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  172. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  173. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  174. package/mobile/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  175. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  176. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  177. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  178. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  179. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  180. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  181. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  182. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  183. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  184. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  185. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  186. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  187. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  188. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  189. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  190. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  191. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  192. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  193. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  194. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  195. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  196. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  197. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  198. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  199. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  200. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  201. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  202. package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  203. package/mobile/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  204. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  205. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  206. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  207. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  208. package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  209. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  210. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  211. package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  212. package/mobile/dist/components/ExchangeRateTile/renderInput.js +0 -16
  213. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  214. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  215. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  216. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  217. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  218. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  219. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  220. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  221. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  222. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  223. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  224. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  225. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  226. package/mobile/dist/ui-kit/Rating/Rating.d.ts +0 -1
  227. package/mobile/dist/ui-kit/Rating/Rating.js +0 -21
  228. package/mobile/dist/ui-kit/Rating/Rating.js.map +0 -1
  229. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  230. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  231. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  232. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  233. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  234. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  235. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  236. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  237. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  238. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  239. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  240. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  241. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  242. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  243. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  244. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  245. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  246. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  247. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  248. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  249. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  250. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  251. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  252. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  253. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  254. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  255. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  256. package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  257. package/mobile/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  258. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  259. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  260. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  261. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  262. package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  263. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  264. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  265. package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  266. package/mobile/lib/components/ExchangeRateTile/renderInput.js +0 -13
  267. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  268. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  269. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  270. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  271. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  272. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  273. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  274. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  275. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  276. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  277. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  278. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  279. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  280. package/mobile/lib/ui-kit/Rating/Rating.d.ts +0 -1
  281. package/mobile/lib/ui-kit/Rating/Rating.js +0 -18
  282. package/mobile/lib/ui-kit/Rating/Rating.js.map +0 -1
  283. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  284. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  285. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  286. package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  287. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  288. package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  289. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  290. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  291. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  292. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  293. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  294. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  295. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  296. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  297. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  298. package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  299. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  300. package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  301. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  302. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  303. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  304. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  305. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  306. package/mobile/src/ui-kit/Rating/Rating.tsx +0 -39
  307. package/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  308. package/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  309. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +0 -83
  310. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +0 -40
  311. package/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  312. package/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  313. package/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  314. package/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  315. package/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  316. package/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  317. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  318. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  319. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +0 -19
  320. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +0 -21
  321. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  322. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  323. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  324. package/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  325. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  326. package/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  327. package/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  328. package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  329. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  330. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -62
  331. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  332. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  333. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  334. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  335. package/src/ui-kit/Rating/Rating.fixture.tsx +0 -7
  336. package/src/ui-kit/Rating/Rating.tsx +0 -39
@@ -751,10 +751,10 @@
751
751
  const and = (a, b) => (...args) => a(...args) && b(...args);
752
752
 
753
753
  const table = (...table) => (...input) => {
754
- const [, unit] = assertNonEmpty$1(table.find(([predicate]) => predicate(...input)));
754
+ const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(...input)));
755
755
  return unit(...input);
756
756
  };
757
- function assertNonEmpty$1(value) {
757
+ function assertNonEmpty(value) {
758
758
  if (!value) {
759
759
  throw new Error('Value should be fulfilled');
760
760
  }
@@ -6323,7 +6323,7 @@
6323
6323
  const inactiveDotStyle = 'w-2 h-2 opacity-30';
6324
6324
  const renderDotButton = ({ activeIndex, onClick, listType = 'horizontal-list' }) => (_, idx) => (jsx("div", { className: style(dotStyle, idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle), role: "button", "aria-hidden": true, onClick: () => onClick(idx) }, String(idx)));
6325
6325
 
6326
- const renderNavButton$2 = ({ activeIndex, onClick }) => (nav, i) => {
6326
+ const renderNavButton = ({ activeIndex, onClick }) => (nav, i) => {
6327
6327
  const isActive = i === activeIndex;
6328
6328
  const btnClassName = isActive
6329
6329
  ? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
@@ -6428,7 +6428,7 @@
6428
6428
  }
6429
6429
  }, [containerRef?.current]);
6430
6430
  if (navButtons?.length && !isMobileMode) {
6431
- return (jsx(SwipeListContainer, { containerRef: navRef, snapAlign: "snap-start", itemClassName: "h-36 flex items-stretch w-screen", gap: 8, children: navButtons.map(renderNavButton$2({ activeIndex, onClick: onChangeActiveIndex })) }));
6431
+ return (jsx(SwipeListContainer, { containerRef: navRef, snapAlign: "snap-start", itemClassName: "h-36 flex items-stretch w-screen", gap: 8, children: navButtons.map(renderNavButton({ activeIndex, onClick: onChangeActiveIndex })) }));
6432
6432
  }
6433
6433
  else if (dotCount) {
6434
6434
  return (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className, { 'pb-xl': navButtons?.length && isMobileMode }), "data-ver": version, children: Array.from({ length: dotCount })
@@ -7463,19 +7463,6 @@
7463
7463
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align, className: "min-h-24" }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
7464
7464
  const renderColorOption = (color, i) => (jsx("figure", { className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
7465
7465
 
7466
- const CarouselLinkButton = JSX(({ icon, ...linkProps }) => {
7467
- const link = useLink();
7468
- const { text, href, target, onClick } = link(linkProps);
7469
- const textStyle = 'font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap';
7470
- return text ? (jsx("div", { className: style('p-3 rounded-lg bg-white text-secondary-text flex justify-center'), children: jsx("a", { role: "link", href: href, target: target, onClick: onClick, children: jsxs("div", { className: "flex flex-col items-center gap-3 break-words max-w-[150px]", children: [icon ? (jsx(Img, { className: "w-7 h-7 md:w-12 md:h-12", image: {
7471
- ...icon,
7472
- iconVersion: icon?.iconVersion,
7473
- }, alt: text })) : null, jsx("div", { className: textStyle, children: text })] }) }) })) : null;
7474
- });
7475
-
7476
- const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-5xl", className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col lg:flex-row gap-5 justify-between", children: [jsxs("div", { className: "flex-1", children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left", headlineVersion: "XL" }), jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })] }), links?.length ? renderLinks(links) : null] }) })));
7477
- const renderLinks = (links) => (jsx("div", { className: style('lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3', 'lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6', 'grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2', 'grid gap-3 lg:gap-5'), children: links.map((link, i) => (jsx(CarouselLinkButton, { ...link }, String(i)))) }));
7478
-
7479
7466
  const LinkWrapper = JSX(({ className = '', href, target, onClick, data, children }) => {
7480
7467
  const link = useLink();
7481
7468
  const linkProps = link({ href, target, onClick });
@@ -9532,214 +9519,6 @@
9532
9519
  };
9533
9520
  const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true, className: "mb-2xl last:mb-0" }), button?.text ? (jsx(LinkButton, { version: button?.version, text: button?.text, ...button })) : null] })));
9534
9521
 
9535
- const REGION_URL = `${API_BASE_URI$1}/region`;
9536
- function useLocation(defaultLocation = 'Москва') {
9537
- const locationStore = useLocalStore();
9538
- return locationStore.location ?? { name: defaultLocation };
9539
- }
9540
- function useDefaultLocation(defaultLocation = 'Москва') {
9541
- const locationStore = useLocalStore();
9542
- const preselectLocation = useCallback(async () => {
9543
- if (!locationStore.location) {
9544
- const region = await fetchJSON(REGION_URL);
9545
- locationStore.location = region ?? { name: defaultLocation };
9546
- }
9547
- }, [locationStore, defaultLocation]);
9548
- useAsyncData(REGION_URL, preselectLocation);
9549
- return locationStore;
9550
- }
9551
-
9552
- var Currency;
9553
- (function (Currency) {
9554
- Currency["RUB"] = "RUB";
9555
- Currency["EUR"] = "EUR";
9556
- Currency["USD"] = "USD";
9557
- Currency["CNY"] = "CNY";
9558
- })(Currency || (Currency = {}));
9559
-
9560
- const currencyNumberFormat = new Intl.NumberFormat('ru', {
9561
- style: 'currency',
9562
- currency: Currency.RUB,
9563
- });
9564
- const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
9565
-
9566
- const TABLE_STYLE_BASE = 'text-m font-light text-secondary-text ';
9567
- const TABLE_HEAD_STYLE = `${TABLE_STYLE_BASE} text-left`;
9568
- const TABLE_HEAD_STYLE_CENTER = `${TABLE_STYLE_BASE} pl-5xl text-center`;
9569
- const TABLE_HEAD_STYLE_RIGHT = `${TABLE_STYLE_BASE} pl-5xl text-right`;
9570
- const CURRENCY_ICONS_MAP = {
9571
- USD: 'DollarIcon',
9572
- EUR: 'EuroIcon',
9573
- CNY: 'ChineseYuanRenminbiIcon',
9574
- };
9575
- const CurrencyTable = JSX(({ className, exchangeCurrencyItems }) => (jsxs("table", { className: style('h-fit w-full', className), children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { className: TABLE_HEAD_STYLE, children: jsx(Text, { size: "text-m", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }) }), jsx("th", { className: TABLE_HEAD_STYLE_CENTER, children: jsx(Text, { size: "text-m", children: "\u041A\u0443\u043F\u0438\u0442\u044C" }) }), jsx("th", { className: TABLE_HEAD_STYLE_RIGHT, children: jsx(Text, { size: "text-m", children: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C" }) })] }) }), jsx("tbody", { children: exchangeCurrencyItems.map(renderCurrencyRow) })] })));
9576
- const renderCurrencyRow = (exchangeCurrencyItem) => {
9577
- const currency = exchangeCurrencyItem?.currency?.currency;
9578
- return (jsxs("tr", { className: "pb-2xs text-h6", children: [jsx("td", { className: "pt-m m-auto flex text-left", children: jsxs("div", { className: "flex items-center gap-xs", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx(Text, { size: "text-h6", children: currency })] }) }), jsx("td", { className: "pt-m pl-5xl text-center", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }) }), jsx("td", { className: "pt-m pl-5xl text-right", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) }) })] }, currency));
9579
- };
9580
-
9581
- const icon = { icon: 'GpsIcon' };
9582
- const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
9583
-
9584
- const roundTo = (value, precision = 2) => {
9585
- const factor = 10 ** precision;
9586
- return Math.round(parseFloat(String(value)) * factor) / factor;
9587
- };
9588
-
9589
- const calculateResult = (value, rate, precision) => {
9590
- const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
9591
- return Number.isInteger(result) ? result : roundTo(result);
9592
- };
9593
- const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
9594
-
9595
- function assertNonEmpty(value) {
9596
- if (!value) {
9597
- throw new Error('Value should be fulfilled');
9598
- }
9599
- return value;
9600
- }
9601
-
9602
- const baseTableFunc = (table) => (input) => {
9603
- const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
9604
- return unit(input);
9605
- };
9606
- const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
9607
- tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
9608
- class TableFuncBuilder {
9609
- parent;
9610
- predicate;
9611
- unit;
9612
- get entry() {
9613
- return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
9614
- }
9615
- constructor(parent, predicate, unit) {
9616
- this.parent = parent;
9617
- this.predicate = predicate;
9618
- this.unit = unit;
9619
- }
9620
- if(predicate) {
9621
- return new TableFuncBuilder(this, predicate);
9622
- }
9623
- then(unit) {
9624
- return new TableFuncBuilder(this.parent, this.predicate, unit);
9625
- }
9626
- else(unit) {
9627
- return baseTableFunc([...buildTable(this), [() => true, unit]]);
9628
- }
9629
- }
9630
- const buildTable = (builder) => [
9631
- ...(builder?.parent ? buildTable(builder.parent) : []),
9632
- builder.entry,
9633
- ];
9634
-
9635
- const callbackCurrencySelect = (props) => tableFunc([
9636
- [
9637
- (_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
9638
- () => props.handleConvert(props.value, Currency.RUB),
9639
- ],
9640
- [
9641
- (_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
9642
- () => props.handleConvert(props.value, Currency.USD),
9643
- ],
9644
- [
9645
- (_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
9646
- () => props.handleConvert(props.value, Currency.CNY),
9647
- ],
9648
- [() => true, () => props.handleConvert(props.value)],
9649
- ])(props)?.();
9650
-
9651
- function renderInput(props) {
9652
- const { placeholder, rates, selected, value, onChange, setSelected } = props;
9653
- const ratesOptions = rates.map((_) => ({
9654
- key: _?.currency?.currency ?? '',
9655
- text: _?.currency?.currency ?? '',
9656
- }));
9657
- const selectedValue = { key: selected, text: selected };
9658
- 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: onChange }), ratesOptions.length ? (jsx(Select, { className: "absolute right-0", isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
9659
- }
9660
-
9661
- const ExchangeCurrencyCalculator = JSX(({ className = '', currencyRatesBuy, currencyRatesSell, button }) => {
9662
- const [calcState, setCalcState] = useState({
9663
- inputSell: '',
9664
- inputBuy: '',
9665
- selectSell: currencyRatesBuy?.[0]?.currency?.currency || Currency.RUB,
9666
- selectBuy: currencyRatesSell?.[0]?.currency?.currency || Currency.USD,
9667
- });
9668
- const handleSetCalcState = useCallback((newState) => setCalcState((oldState) => ({ ...oldState, ...newState })), []);
9669
- return (jsxs("div", { className: `flex flex-col gap-m pt-2xl ${className}`, children: [currencyRatesBuy && currencyRatesSell ? (jsxs("div", { className: "grid gap-m", children: [renderInput({
9670
- placeholder: 'Хочу продать',
9671
- rates: currencyRatesSell,
9672
- selected: calcState.selectSell,
9673
- setSelected: handleSelectSell(calcState, handleSetCalcState, currencyRatesSell),
9674
- value: calcState.inputSell,
9675
- onChange: (value) => handleInputSell(handleSetCalcState, currencyRatesSell)(value, calcState.selectSell, calcState.selectBuy),
9676
- }), renderInput({
9677
- placeholder: 'Получу',
9678
- rates: currencyRatesBuy,
9679
- selected: calcState.selectBuy,
9680
- setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
9681
- value: calcState.inputBuy,
9682
- onChange: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
9683
- })] })) : null, button?.text ? (jsx(LinkButton, { text: button.text, version: button?.version, ...button })) : null] }));
9684
- });
9685
- const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
9686
- setCalcState({ selectSell: value });
9687
- callbackCurrencySelect({
9688
- value,
9689
- oppositeValue: calcState.selectBuy,
9690
- handleConvert: (currencyFrom = calcState.selectSell, currencyTo = calcState.selectBuy) => {
9691
- handleInputSell(setCalcState, currencyRatesSell)(calcState.inputSell, currencyFrom, currencyTo);
9692
- },
9693
- });
9694
- };
9695
- const handleSelectBuy = (calcState, setCalcState, currencyRatesBuy) => (value) => {
9696
- setCalcState({ selectBuy: value });
9697
- callbackCurrencySelect({
9698
- value,
9699
- oppositeValue: calcState.selectSell,
9700
- handleConvert: (currencyTo = calcState.selectBuy, currencyFrom = calcState.selectSell) => handleInputBuy(setCalcState, currencyRatesBuy)(calcState.inputBuy, currencyTo, currencyFrom),
9701
- });
9702
- };
9703
- const handleInputSell = (setCalcState, currencyRatesSell) => (value, currencyFrom, currencyTo) => {
9704
- setCalcState({ inputSell: formatValue(value), selectBuy: currencyTo });
9705
- const rate = currencyRatesSell.find((_) => _.currency?.currency === currencyTo)?.buyExchangeRate ||
9706
- currencyRatesSell.find((_) => _.currency?.currency === currencyFrom)?.buyExchangeRate;
9707
- if (rate) {
9708
- setCalcState({
9709
- inputBuy: String(calculateResult(value, rate, currencyFrom === Currency.RUB) || ''),
9710
- });
9711
- }
9712
- };
9713
- const handleInputBuy = (setCalcState, currencyRatesBuy) => (value, currencyTo, currencyFrom) => {
9714
- setCalcState({ inputBuy: formatValue(value), selectSell: currencyFrom });
9715
- const rate = currencyRatesBuy.find((_) => _.currency?.currency === currencyFrom)?.saleExchangeRate ||
9716
- currencyRatesBuy.find((_) => _.currency?.currency === currencyTo)?.saleExchangeRate;
9717
- if (rate) {
9718
- setCalcState({
9719
- inputSell: String(calculateResult(value, rate, currencyTo === Currency.RUB) || ''),
9720
- });
9721
- }
9722
- };
9723
-
9724
- const EXCHANGE_RATES_URL = `${API_BASE_URI$1}/exchangerates`;
9725
- function useFetchExchangeRateData(currentRegion) {
9726
- const regionCode = currentRegion?.code || '000';
9727
- const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
9728
- return data || {};
9729
- }
9730
-
9731
- const ExchangeRateTile = JSX(({ className = '', title = 'Курсы обмена валют', button, ...rest }) => {
9732
- const currentLocation = useLocation();
9733
- const exchangeRates = useFetchExchangeRateData(currentLocation);
9734
- const currencyRates = getCurrencyRates(exchangeRates?.exchangeRate?.currencies);
9735
- const currencyRatesBuy = currencyRates.filter((_) => _.buyExchangeRate);
9736
- currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
9737
- const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
9738
- currencyRatesSell.push({ currency: { currency: Currency.RUB } });
9739
- return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex w-full gap-6xl flex-wrap @lg:flex-nowrap", children: [jsxs("div", { className: "w-full @2xl:w-auto @5xl:w-1/2", children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), jsx(ExchangeCurrencyCalculator, { className: "grow w-1/2", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })] }) }) }));
9740
- });
9741
- const getCurrencyRates = (currencies) => currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
9742
-
9743
9522
  const LinkList = JSX(({ className = '', items }) => {
9744
9523
  const link = useLink();
9745
9524
  return (jsx("ul", { className: style('flex flex-col gap-s w-full', className), children: items?.map(renderLinkListItem(link)) }));
@@ -10303,6 +10082,23 @@
10303
10082
  const handleIntersectionActivation$1 = (index) => (prev) => Math.max(prev, index + 1);
10304
10083
  const handleIntersectionDeactivation$1 = (index) => (prev) => Math.min(prev, index);
10305
10084
 
10085
+ const REGION_URL = `${API_BASE_URI$1}/region`;
10086
+ function useLocation(defaultLocation = 'Москва') {
10087
+ const locationStore = useLocalStore();
10088
+ return locationStore.location ?? { name: defaultLocation };
10089
+ }
10090
+ function useDefaultLocation(defaultLocation = 'Москва') {
10091
+ const locationStore = useLocalStore();
10092
+ const preselectLocation = useCallback(async () => {
10093
+ if (!locationStore.location) {
10094
+ const region = await fetchJSON(REGION_URL);
10095
+ locationStore.location = region ?? { name: defaultLocation };
10096
+ }
10097
+ }, [locationStore, defaultLocation]);
10098
+ useAsyncData(REGION_URL, preselectLocation);
10099
+ return locationStore;
10100
+ }
10101
+
10306
10102
  const groupBy = (list, keyGetter) => {
10307
10103
  const result = new Map();
10308
10104
  for (const item of list) {
@@ -10448,102 +10244,6 @@
10448
10244
  return (jsx(BlockWrapper, { className: style(alignStyle, className), defaultPadding: "p-0", ...rest, children: jsx(Img, { image: image }) }));
10449
10245
  });
10450
10246
 
10451
- const useCarouselControls = (props, initialIndex = 0) => {
10452
- const { itemCount, visibleItemCount } = props;
10453
- const [activeIndex, setActiveIndex] = useState(initialIndex);
10454
- const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
10455
- const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
10456
- const canInc = visibleItemCount
10457
- ? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
10458
- : activeIndex < itemCount - 1;
10459
- const canDec = activeIndex > 0;
10460
- const isScrollAvailable = canDec || canInc;
10461
- return [
10462
- activeIndex,
10463
- {
10464
- inc,
10465
- dec,
10466
- canInc,
10467
- canDec,
10468
- isScrollAvailable,
10469
- },
10470
- ];
10471
- };
10472
-
10473
- /** @deprecated */
10474
- const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
10475
-
10476
- const InsuranceAmountBlockInner = JSX(({ className = '', cards = [], button }) => {
10477
- const [selectedCardIndex, setSelectedCardIndex] = useState(0);
10478
- const handleSelectedCardIndex = useCallback((_) => setSelectedCardIndex(_), []);
10479
- const galleryLength = cards.length;
10480
- const CARD_VIEW_COUNT = 2;
10481
- const [activeIndex, controls] = useCarouselControls({
10482
- itemCount: galleryLength,
10483
- visibleItemCount: CARD_VIEW_COUNT,
10484
- });
10485
- const { canDec, canInc } = controls;
10486
- const activeHref = cards[activeIndex]?.href;
10487
- return (jsxs("section", { role: "listitem", className: `min-w-full text-center ${className}`, children: [jsxs("div", { className: "relative overflow-hidden", "aria-label": "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u044B\u0435 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B", children: [galleryLength
10488
- ? renderGallery({
10489
- activeIndex,
10490
- cards,
10491
- selectedCardIndex,
10492
- onClick: handleSelectedCardIndex,
10493
- })
10494
- : null, renderArrows({
10495
- ...controls,
10496
- btnClass: ['left-12', 'right-12'],
10497
- className: 'top-16',
10498
- }), canDec ? (jsx("div", { className: "absolute top-0 left-0 h-full w-32 bg-opacity-from-white" })) : null, canInc ? (jsx("div", { className: "absolute top-0 right-0 h-full w-32 bg-opacity-to-white" })) : null] }), jsx(LinkButton, { className: "w-60 text-center", version: "primary", ...button, href: activeHref })] }));
10499
- });
10500
- function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }) {
10501
- const tabsShiftWidth = activeIndex * 460;
10502
- const cardsAlignStyle = cards.length > 2 ? 'justify-start' : 'justify-center';
10503
- return (jsx("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-6xl", children: jsx("div", { className: `w-full flex flex-nowrap gap-s pb-6xl ${cardsAlignStyle}`, children: cards.map((slide, i) => renderNavButton$1({
10504
- slide,
10505
- i,
10506
- isActive: Boolean(i === selectedCardIndex),
10507
- onClick: () => onClick(i),
10508
- })) }) }));
10509
- }
10510
- function renderNavButton$1({ slide, i, isActive, onClick }) {
10511
- const btnClassName = isActive
10512
- ? 'shadow-dark-blue border-primary-main'
10513
- : `ease-in duration-300 border-gray`;
10514
- return (jsxs("button", { type: "button", onClick: onClick, className: `p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(Img, { className: "p-lg rounded-full bg-secondary-light", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-s", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActive)] }, String(i)));
10515
- }
10516
- function renderValueBlock(title, sum) {
10517
- return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs(Text, { size: "text-h6", children: [toLocalNumberFormat(2)(sum), " \u20BD"] }), jsx("div", { className: "mt-2xs", children: jsx(Text, { size: "text-l", color: "text-secondary-text", children: title }) })] }));
10518
- }
10519
- function renderDoneIcon(isActive) {
10520
- return isActive ? (jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: { icon: 'DoneIcon' }, width: "24", height: "24" })) : null;
10521
- }
10522
-
10523
- const InsuranceAmountBlock = JSX(({ className = '', title, insuranceTabs = [], button, ...rest }) => {
10524
- const [activeSlideIndex, setActiveSlideIndex] = useState(0);
10525
- const handleActiveSlideIndex = useCallback((_) => setActiveSlideIndex(_), []);
10526
- return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative px-0 space-y-2xl', className), defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? (jsx("div", { className: "p-xs bg-secondary-light w-fit mx-auto rounded-md", children: insuranceTabs.map((item, i) => renderNavButton({
10527
- title: item?.title,
10528
- i,
10529
- isActive: Boolean(i === activeSlideIndex),
10530
- onClick: () => handleActiveSlideIndex(i),
10531
- })) })) : null, jsx("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
10532
- insuranceTabs,
10533
- button,
10534
- }) })] }));
10535
- });
10536
- const renderInsuranceGalleries = ({ insuranceTabs, button }) => {
10537
- const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
10538
- return insuranceGalleries?.length
10539
- ? insuranceGalleries.map((cards, i) => (jsx(InsuranceAmountBlockInner, { button: button, cards: cards }, String(i))))
10540
- : null;
10541
- };
10542
- function renderNavButton({ title, i, isActive, onClick }) {
10543
- const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
10544
- return (jsx("button", { type: "button", onClick: onClick, "aria-label": `Кнопка ${title}`, className: `box-border px-m py-s text-m font-light ${btnClassName}`, children: title }, String(i)));
10545
- }
10546
-
10547
10247
  const KILO = 1024;
10548
10248
  const KILO_SIZES = ['байт', 'Кб', 'Мб', 'Гб', 'Тб', 'Пб'];
10549
10249
  const formatBytes = (bytes, decimals = 2) => {
@@ -11051,6 +10751,28 @@
11051
10751
  ? Number(paramsId)
11052
10752
  : tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
11053
10753
 
10754
+ const useCarouselControls = (props, initialIndex = 0) => {
10755
+ const { itemCount, visibleItemCount } = props;
10756
+ const [activeIndex, setActiveIndex] = useState(initialIndex);
10757
+ const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
10758
+ const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
10759
+ const canInc = visibleItemCount
10760
+ ? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
10761
+ : activeIndex < itemCount - 1;
10762
+ const canDec = activeIndex > 0;
10763
+ const isScrollAvailable = canDec || canInc;
10764
+ return [
10765
+ activeIndex,
10766
+ {
10767
+ inc,
10768
+ dec,
10769
+ canInc,
10770
+ canDec,
10771
+ isScrollAvailable,
10772
+ },
10773
+ ];
10774
+ };
10775
+
11054
10776
  const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
11055
10777
  const firstCellStyle = 'w-80 flex-shrink-0';
11056
10778
  const COLS_LENGTH_FOR_SCROLL = 2;
@@ -11120,6 +10842,9 @@
11120
10842
  ? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
11121
10843
  : null })));
11122
10844
 
10845
+ /** @deprecated */
10846
+ const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
10847
+
11123
10848
  const COLUMN_WIDTH = 140;
11124
10849
  const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
11125
10850
 
@@ -11257,14 +10982,12 @@
11257
10982
  Carousel,
11258
10983
  CarouselCard,
11259
10984
  CarouselCatalogCard,
11260
- CarouselLinks,
11261
10985
  CarouselRecommendationCard,
11262
10986
  CarouselTariffsCard,
11263
10987
  ContactsBlock,
11264
10988
  DepositFiltration,
11265
10989
  Depository,
11266
10990
  ErrorBlock,
11267
- ExchangeRateTile,
11268
10991
  Footer,
11269
10992
  GalleryLayout,
11270
10993
  GrantSupport,
@@ -11272,7 +10995,6 @@
11272
10995
  Headline,
11273
10996
  HorizontalLayout,
11274
10997
  ImgBlock,
11275
- InsuranceAmountBlock,
11276
10998
  LinkDocs,
11277
10999
  MobileAppTile,
11278
11000
  OfficesAtmsMap,
@@ -11431,7 +11153,7 @@
11431
11153
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11432
11154
  });
11433
11155
 
11434
- const packageVersion = "0.14.839";
11156
+ const packageVersion = "0.14.840";
11435
11157
 
11436
11158
  exports.Blocks = Blocks;
11437
11159
  exports.ContentPage = ContentPage;