@redneckz/wildless-cms-uni-blocks 0.14.0 → 0.14.2

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 (677) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +221 -315
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  5. package/bundle/components/OfficesAtmsMap/Badge.d.ts +11 -0
  6. package/bundle/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  7. package/bundle/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  8. package/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  9. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  10. package/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  11. package/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  12. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  13. package/bundle/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  14. package/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  15. package/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  16. package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
  17. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  18. package/cosmos-static/icons/CloseIcon.svg +1 -1
  19. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  20. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  21. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  22. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  23. package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  24. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  26. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  28. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  29. package/dist/components/Blocks.js +2 -6
  30. package/dist/components/Blocks.js.map +1 -1
  31. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  32. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  33. package/dist/components/CarouselLinks/CarouselLinkButton.js +2 -2
  34. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  35. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  36. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  37. package/dist/components/Header/HeaderSubMenu.js +2 -1
  38. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  39. package/dist/components/MobileAppTile/MobileAppTile.js +3 -2
  40. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  41. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  42. package/dist/components/OfficesAtmsMap/Badge.d.ts +11 -0
  43. package/dist/components/OfficesAtmsMap/Badge.js +14 -0
  44. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -0
  45. package/dist/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  46. package/dist/components/OfficesAtmsMap/CardCell.js +14 -0
  47. package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -0
  48. package/dist/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  49. package/dist/components/OfficesAtmsMap/CardRow.js +7 -0
  50. package/dist/components/OfficesAtmsMap/CardRow.js.map +1 -0
  51. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  52. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +74 -0
  53. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  54. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  55. package/dist/components/{OfficeMap/OfficeMapContent.js → OfficesAtmsMap/OfficesAtmsMapContent.js} +1 -1
  56. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  57. package/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  58. package/dist/components/OfficesAtmsMap/renderAtmCard.js +31 -0
  59. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  60. package/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  61. package/dist/components/OfficesAtmsMap/renderLunchHour.js +10 -0
  62. package/dist/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  63. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  64. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +50 -0
  65. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  66. package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  67. package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +19 -0
  68. package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  69. package/dist/components/PictureText/renderInsuranceSumMonth.js +2 -2
  70. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  71. package/dist/components/ProductTile/ProductTile.js +1 -1
  72. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  73. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  74. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  75. package/dist/ui-kit/BaseTile/BaseTile.js +5 -5
  76. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  77. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  78. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  79. package/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  80. package/dist/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  81. package/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  82. package/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  83. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  84. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  85. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  86. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  87. package/dist/ui-kit/Sitemap/Sitemap.js +4 -4
  88. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  89. package/dist/ui-kit/Text/TextProps.d.ts +1 -1
  90. package/dist/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  91. package/dist/ui-kit/YandexMap/YandexMap.js +13 -22
  92. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  93. package/dist/ui-kit/YandexMap/renderClusterer.js +2 -2
  94. package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  95. package/dist/ui-kit/YandexMap/renderSearchField.js +2 -1
  96. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  97. package/dist/utils/fetchJSON.js +1 -1
  98. package/dist/utils/fetchJSON.js.map +1 -1
  99. package/lib/common.css +1 -1
  100. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  101. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  102. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  103. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  105. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  107. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  108. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  109. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  110. package/lib/components/Blocks.js +2 -6
  111. package/lib/components/Blocks.js.map +1 -1
  112. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  113. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  114. package/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
  115. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  116. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  117. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  118. package/lib/components/Header/HeaderSubMenu.js +2 -1
  119. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  120. package/lib/components/MobileAppTile/MobileAppTile.js +3 -2
  121. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  122. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  123. package/lib/components/OfficesAtmsMap/Badge.d.ts +11 -0
  124. package/lib/components/OfficesAtmsMap/Badge.js +12 -0
  125. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -0
  126. package/lib/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  127. package/lib/components/OfficesAtmsMap/CardCell.js +12 -0
  128. package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -0
  129. package/lib/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  130. package/lib/components/OfficesAtmsMap/CardRow.js +5 -0
  131. package/lib/components/OfficesAtmsMap/CardRow.js.map +1 -0
  132. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  133. package/lib/components/{OfficeMap/OfficeMap.fixture.d.ts → OfficesAtmsMap/OfficesAtmsMap.fixture.d.ts} +2 -2
  134. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +72 -0
  135. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  136. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  137. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js +2 -0
  138. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  139. package/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  140. package/lib/components/OfficesAtmsMap/renderAtmCard.js +28 -0
  141. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  142. package/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  143. package/lib/components/OfficesAtmsMap/renderLunchHour.js +7 -0
  144. package/lib/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  145. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  146. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +44 -0
  147. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  148. package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  149. package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +16 -0
  150. package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  151. package/lib/components/PictureText/renderInsuranceSumMonth.js +2 -2
  152. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  153. package/lib/components/ProductTile/ProductTile.js +1 -1
  154. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  155. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  156. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  157. package/lib/ui-kit/BaseTile/BaseTile.js +5 -5
  158. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  159. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  160. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  161. package/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  162. package/lib/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  163. package/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  164. package/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  165. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  166. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  167. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  168. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  169. package/lib/ui-kit/Sitemap/Sitemap.js +4 -4
  170. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  171. package/lib/ui-kit/Text/TextProps.d.ts +1 -1
  172. package/lib/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  173. package/lib/ui-kit/YandexMap/YandexMap.js +13 -22
  174. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  175. package/lib/ui-kit/YandexMap/renderClusterer.js +2 -2
  176. package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  177. package/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -0
  178. package/lib/ui-kit/YandexMap/renderSearchField.js +2 -1
  179. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  180. package/lib/utils/fetchJSON.js +1 -1
  181. package/lib/utils/fetchJSON.js.map +1 -1
  182. package/mobile/bundle/bundle.umd.js +69 -135
  183. package/mobile/bundle/bundle.umd.min.js +1 -1
  184. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  185. package/mobile/bundle/components/OfficesAtmsMap/Badge.d.ts +11 -0
  186. package/mobile/bundle/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  187. package/mobile/bundle/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  188. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  189. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  190. package/mobile/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  191. package/mobile/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  192. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  193. package/mobile/bundle/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  194. package/mobile/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  195. package/mobile/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  196. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
  197. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  198. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  199. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  200. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  201. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  202. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  203. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  204. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  205. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  206. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  207. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  208. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  209. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  210. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +2 -2
  211. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  212. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  213. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  214. package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
  215. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  216. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -2
  217. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  218. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  219. package/mobile/dist/components/OfficesAtmsMap/Badge.d.ts +11 -0
  220. package/mobile/dist/components/OfficesAtmsMap/Badge.js +14 -0
  221. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -0
  222. package/mobile/dist/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  223. package/mobile/dist/components/OfficesAtmsMap/CardCell.js +14 -0
  224. package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -0
  225. package/mobile/dist/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  226. package/mobile/dist/components/OfficesAtmsMap/CardRow.js +7 -0
  227. package/mobile/dist/components/OfficesAtmsMap/CardRow.js.map +1 -0
  228. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  229. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +74 -0
  230. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  231. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  232. package/mobile/dist/components/{OfficeMap/OfficeMapContent.js → OfficesAtmsMap/OfficesAtmsMapContent.js} +1 -1
  233. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  234. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  235. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +31 -0
  236. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  237. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  238. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js +10 -0
  239. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  240. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  241. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +50 -0
  242. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  243. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  244. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +19 -0
  245. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  246. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +2 -2
  247. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  248. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  249. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  250. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  251. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  252. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +5 -5
  253. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  254. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  255. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  256. package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  257. package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  258. package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  259. package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  260. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  261. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  262. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  263. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  264. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +4 -4
  265. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  266. package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
  267. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  268. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +13 -22
  269. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  270. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +2 -2
  271. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  272. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +2 -1
  273. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  274. package/mobile/dist/utils/fetchJSON.js +1 -1
  275. package/mobile/dist/utils/fetchJSON.js.map +1 -1
  276. package/mobile/lib/common.css +1 -1
  277. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  278. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  279. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  280. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  281. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  282. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  283. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  284. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  285. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  286. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  287. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  288. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  289. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
  290. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  291. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  292. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  293. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
  294. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  295. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -2
  296. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  297. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  298. package/mobile/lib/components/OfficesAtmsMap/Badge.d.ts +11 -0
  299. package/mobile/lib/components/OfficesAtmsMap/Badge.js +12 -0
  300. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -0
  301. package/mobile/lib/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  302. package/mobile/lib/components/OfficesAtmsMap/CardCell.js +12 -0
  303. package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -0
  304. package/mobile/lib/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  305. package/mobile/lib/components/OfficesAtmsMap/CardRow.js +5 -0
  306. package/mobile/lib/components/OfficesAtmsMap/CardRow.js.map +1 -0
  307. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  308. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +72 -0
  309. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  310. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  311. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js +2 -0
  312. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  313. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  314. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +28 -0
  315. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  316. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  317. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js +7 -0
  318. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  319. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  320. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +44 -0
  321. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  322. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  323. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +16 -0
  324. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  325. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +2 -2
  326. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  327. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  328. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  329. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  330. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  331. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +5 -5
  332. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  333. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  334. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  335. package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  336. package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  337. package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  338. package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  339. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  340. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  341. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  342. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  343. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +4 -4
  344. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  345. package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
  346. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  347. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +13 -22
  348. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  349. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +2 -2
  350. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  351. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +2 -1
  352. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  353. package/mobile/lib/utils/fetchJSON.js +1 -1
  354. package/mobile/lib/utils/fetchJSON.js.map +1 -1
  355. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
  356. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
  357. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  358. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
  359. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  360. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  361. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +2 -2
  362. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  363. package/mobile/src/components/Header/HeaderSubMenu.tsx +6 -1
  364. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
  365. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  366. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +30 -0
  367. package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +40 -0
  368. package/mobile/src/components/OfficesAtmsMap/CardRow.tsx +17 -0
  369. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +165 -0
  370. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +40 -0
  371. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +60 -0
  372. package/mobile/src/components/OfficesAtmsMap/renderLunchHour.tsx +28 -0
  373. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +121 -0
  374. package/mobile/src/components/OfficesAtmsMap/useOfficesAtmsMap.ts +118 -0
  375. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +6 -6
  376. package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
  377. package/mobile/src/icons/CloseIcon.svg +4 -4
  378. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +22 -10
  379. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +5 -5
  380. package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  381. package/mobile/src/ui-kit/BenefitItem/renderBenefitText.tsx +10 -2
  382. package/mobile/src/ui-kit/BenefitsList/BenefitsListProps.ts +1 -0
  383. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  384. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +2 -2
  385. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
  386. package/mobile/src/ui-kit/Text/TextProps.ts +2 -0
  387. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +70 -79
  388. package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +2 -2
  389. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
  390. package/mobile/src/utils/fetchJSON.ts +1 -1
  391. package/package.json +1 -1
  392. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
  393. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
  394. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  395. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
  396. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  397. package/src/components/Blocks.ts +2 -6
  398. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +1 -1
  399. package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -3
  400. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  401. package/src/components/CarouselLinks/CarouselLinkButton.tsx +2 -2
  402. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  403. package/src/components/Header/HeaderSubMenu.tsx +6 -1
  404. package/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
  405. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  406. package/src/components/OfficesAtmsMap/Badge.tsx +30 -0
  407. package/src/components/OfficesAtmsMap/CardCell.tsx +40 -0
  408. package/src/components/OfficesAtmsMap/CardRow.tsx +17 -0
  409. package/src/components/OfficesAtmsMap/OfficesAtmsMap.fixture.tsx +41 -0
  410. package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +165 -0
  411. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +40 -0
  412. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +60 -0
  413. package/src/components/OfficesAtmsMap/renderLunchHour.tsx +28 -0
  414. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +121 -0
  415. package/src/components/OfficesAtmsMap/useOfficesAtmsMap.ts +118 -0
  416. package/src/components/PictureText/renderInsuranceSumMonth.tsx +6 -6
  417. package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +7 -4
  418. package/src/components/ProductTile/ProductTile.tsx +1 -1
  419. package/src/icons/CloseIcon.svg +4 -4
  420. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +22 -10
  421. package/src/ui-kit/BaseTile/BaseTile.tsx +5 -5
  422. package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  423. package/src/ui-kit/BenefitItem/renderBenefitText.tsx +10 -2
  424. package/src/ui-kit/BenefitsList/BenefitsListProps.ts +1 -0
  425. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  426. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +2 -2
  427. package/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
  428. package/src/ui-kit/Text/TextProps.ts +2 -0
  429. package/src/ui-kit/YandexMap/YandexMap.tsx +70 -79
  430. package/src/ui-kit/YandexMap/renderClusterer.ts +2 -2
  431. package/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
  432. package/src/utils/fetchJSON.ts +1 -1
  433. package/bundle/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  434. package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  435. package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  436. package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  437. package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  438. package/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  439. package/bundle/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
  440. package/bundle/components/OfficeMap/OfficeMap.d.ts +0 -5
  441. package/bundle/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  442. package/bundle/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  443. package/bundle/components/OfficeMap/nearbyOffices.d.ts +0 -2
  444. package/bundle/components/OfficeMap/renderFunctions.d.ts +0 -5
  445. package/bundle/components/OfficeMap/useOfficeMap.d.ts +0 -59
  446. package/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  447. package/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  448. package/dist/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  449. package/dist/components/ExchangeRateOffice/Currencies.js +0 -12
  450. package/dist/components/ExchangeRateOffice/Currencies.js.map +0 -1
  451. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  452. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -16
  453. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  454. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  455. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +0 -2
  456. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  457. package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  458. package/dist/components/ExchangeRateOffice/renderCurrencies.js +0 -30
  459. package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  460. package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  461. package/dist/components/ExchangeRateOffice/renderTableHeader.js +0 -9
  462. package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  463. package/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  464. package/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -6
  465. package/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  466. package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
  467. package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -13
  468. package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
  469. package/dist/components/OfficeMap/OfficeMap.d.ts +0 -5
  470. package/dist/components/OfficeMap/OfficeMap.js +0 -43
  471. package/dist/components/OfficeMap/OfficeMap.js.map +0 -1
  472. package/dist/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  473. package/dist/components/OfficeMap/OfficeMapContent.js.map +0 -1
  474. package/dist/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  475. package/dist/components/OfficeMap/mockOfficeMap.js +0 -82
  476. package/dist/components/OfficeMap/mockOfficeMap.js.map +0 -1
  477. package/dist/components/OfficeMap/nearbyOffices.d.ts +0 -2
  478. package/dist/components/OfficeMap/nearbyOffices.js +0 -9
  479. package/dist/components/OfficeMap/nearbyOffices.js.map +0 -1
  480. package/dist/components/OfficeMap/renderFunctions.d.ts +0 -5
  481. package/dist/components/OfficeMap/renderFunctions.js +0 -20
  482. package/dist/components/OfficeMap/renderFunctions.js.map +0 -1
  483. package/dist/components/OfficeMap/useOfficeMap.d.ts +0 -59
  484. package/dist/components/OfficeMap/useOfficeMap.js +0 -20
  485. package/dist/components/OfficeMap/useOfficeMap.js.map +0 -1
  486. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  487. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -12
  488. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  489. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  490. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  491. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  492. package/lib/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  493. package/lib/components/ExchangeRateOffice/Currencies.js +0 -10
  494. package/lib/components/ExchangeRateOffice/Currencies.js.map +0 -1
  495. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  496. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +0 -6
  497. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -14
  498. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  499. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  500. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +0 -2
  501. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  502. package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  503. package/lib/components/ExchangeRateOffice/renderCurrencies.js +0 -27
  504. package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  505. package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  506. package/lib/components/ExchangeRateOffice/renderTableHeader.js +0 -6
  507. package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  508. package/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  509. package/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -3
  510. package/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  511. package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -2
  512. package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -10
  513. package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
  514. package/lib/components/OfficeMap/OfficeMap.d.ts +0 -5
  515. package/lib/components/OfficeMap/OfficeMap.js +0 -41
  516. package/lib/components/OfficeMap/OfficeMap.js.map +0 -1
  517. package/lib/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  518. package/lib/components/OfficeMap/OfficeMapContent.js +0 -2
  519. package/lib/components/OfficeMap/OfficeMapContent.js.map +0 -1
  520. package/lib/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  521. package/lib/components/OfficeMap/mockOfficeMap.js +0 -80
  522. package/lib/components/OfficeMap/mockOfficeMap.js.map +0 -1
  523. package/lib/components/OfficeMap/nearbyOffices.d.ts +0 -2
  524. package/lib/components/OfficeMap/nearbyOffices.js +0 -7
  525. package/lib/components/OfficeMap/nearbyOffices.js.map +0 -1
  526. package/lib/components/OfficeMap/renderFunctions.d.ts +0 -5
  527. package/lib/components/OfficeMap/renderFunctions.js +0 -15
  528. package/lib/components/OfficeMap/renderFunctions.js.map +0 -1
  529. package/lib/components/OfficeMap/useOfficeMap.d.ts +0 -59
  530. package/lib/components/OfficeMap/useOfficeMap.js +0 -17
  531. package/lib/components/OfficeMap/useOfficeMap.js.map +0 -1
  532. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  533. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +0 -6
  534. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -10
  535. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  536. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  537. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  538. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  539. package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  540. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  541. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  542. package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  543. package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  544. package/mobile/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  545. package/mobile/bundle/components/OfficeMap/OfficeMap.d.ts +0 -5
  546. package/mobile/bundle/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  547. package/mobile/bundle/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  548. package/mobile/bundle/components/OfficeMap/nearbyOffices.d.ts +0 -2
  549. package/mobile/bundle/components/OfficeMap/renderFunctions.d.ts +0 -5
  550. package/mobile/bundle/components/OfficeMap/useOfficeMap.d.ts +0 -59
  551. package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  552. package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  553. package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  554. package/mobile/dist/components/ExchangeRateOffice/Currencies.js +0 -12
  555. package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +0 -1
  556. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  557. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -16
  558. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  559. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  560. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +0 -2
  561. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  562. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  563. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +0 -30
  564. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  565. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  566. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +0 -9
  567. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  568. package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  569. package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -13
  570. package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  571. package/mobile/dist/components/OfficeMap/OfficeMap.d.ts +0 -5
  572. package/mobile/dist/components/OfficeMap/OfficeMap.js +0 -43
  573. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +0 -1
  574. package/mobile/dist/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  575. package/mobile/dist/components/OfficeMap/OfficeMapContent.js.map +0 -1
  576. package/mobile/dist/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  577. package/mobile/dist/components/OfficeMap/mockOfficeMap.js +0 -82
  578. package/mobile/dist/components/OfficeMap/mockOfficeMap.js.map +0 -1
  579. package/mobile/dist/components/OfficeMap/nearbyOffices.d.ts +0 -2
  580. package/mobile/dist/components/OfficeMap/nearbyOffices.js +0 -9
  581. package/mobile/dist/components/OfficeMap/nearbyOffices.js.map +0 -1
  582. package/mobile/dist/components/OfficeMap/renderFunctions.d.ts +0 -5
  583. package/mobile/dist/components/OfficeMap/renderFunctions.js +0 -20
  584. package/mobile/dist/components/OfficeMap/renderFunctions.js.map +0 -1
  585. package/mobile/dist/components/OfficeMap/useOfficeMap.d.ts +0 -59
  586. package/mobile/dist/components/OfficeMap/useOfficeMap.js +0 -20
  587. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +0 -1
  588. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  589. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -12
  590. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  591. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  592. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  593. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  594. package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  595. package/mobile/lib/components/ExchangeRateOffice/Currencies.js +0 -10
  596. package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +0 -1
  597. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  598. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -14
  599. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  600. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  601. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +0 -2
  602. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  603. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  604. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +0 -27
  605. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  606. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  607. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +0 -6
  608. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  609. package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  610. package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -10
  611. package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  612. package/mobile/lib/components/OfficeMap/OfficeMap.d.ts +0 -5
  613. package/mobile/lib/components/OfficeMap/OfficeMap.js +0 -41
  614. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +0 -1
  615. package/mobile/lib/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  616. package/mobile/lib/components/OfficeMap/OfficeMapContent.js +0 -2
  617. package/mobile/lib/components/OfficeMap/OfficeMapContent.js.map +0 -1
  618. package/mobile/lib/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  619. package/mobile/lib/components/OfficeMap/mockOfficeMap.js +0 -80
  620. package/mobile/lib/components/OfficeMap/mockOfficeMap.js.map +0 -1
  621. package/mobile/lib/components/OfficeMap/nearbyOffices.d.ts +0 -2
  622. package/mobile/lib/components/OfficeMap/nearbyOffices.js +0 -7
  623. package/mobile/lib/components/OfficeMap/nearbyOffices.js.map +0 -1
  624. package/mobile/lib/components/OfficeMap/renderFunctions.d.ts +0 -5
  625. package/mobile/lib/components/OfficeMap/renderFunctions.js +0 -15
  626. package/mobile/lib/components/OfficeMap/renderFunctions.js.map +0 -1
  627. package/mobile/lib/components/OfficeMap/useOfficeMap.d.ts +0 -59
  628. package/mobile/lib/components/OfficeMap/useOfficeMap.js +0 -17
  629. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +0 -1
  630. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  631. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -10
  632. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  633. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  634. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  635. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  636. package/mobile/src/components/ExchangeRateOffice/Currencies.ts +0 -8
  637. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +0 -32
  638. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +0 -62
  639. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +0 -36
  640. package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +0 -73
  641. package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +0 -11
  642. package/mobile/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -12
  643. package/mobile/src/components/OfficeMap/OfficeMap.tsx +0 -76
  644. package/mobile/src/components/OfficeMap/OfficeMapContent.ts +0 -42
  645. package/mobile/src/components/OfficeMap/mockOfficeMap.ts +0 -79
  646. package/mobile/src/components/OfficeMap/nearbyOffices.ts +0 -8
  647. package/mobile/src/components/OfficeMap/renderFunctions.tsx +0 -75
  648. package/mobile/src/components/OfficeMap/useOfficeMap.ts +0 -24
  649. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +0 -49
  650. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +0 -37
  651. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +0 -11
  652. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +0 -14
  653. package/src/components/ExchangeRateOffice/Currencies.ts +0 -8
  654. package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +0 -32
  655. package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +0 -79
  656. package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +0 -62
  657. package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +0 -36
  658. package/src/components/ExchangeRateOffice/renderCurrencies.tsx +0 -73
  659. package/src/components/ExchangeRateOffice/renderTableHeader.tsx +0 -11
  660. package/src/components/MobileAppTile/buttonsConditionStyle.mobile.tsx +0 -12
  661. package/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -5
  662. package/src/components/OfficeMap/OfficeMap.fixture.tsx +0 -11
  663. package/src/components/OfficeMap/OfficeMap.tsx +0 -76
  664. package/src/components/OfficeMap/OfficeMapContent.ts +0 -42
  665. package/src/components/OfficeMap/mockOfficeMap.ts +0 -79
  666. package/src/components/OfficeMap/nearbyOffices.ts +0 -8
  667. package/src/components/OfficeMap/renderFunctions.tsx +0 -75
  668. package/src/components/OfficeMap/useOfficeMap.ts +0 -24
  669. package/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +0 -49
  670. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +0 -44
  671. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +0 -37
  672. package/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +0 -11
  673. package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +0 -14
  674. /package/mobile/src/components/{ExchangeRateOffice/ExchangeRateOffice.ui.json → OfficesAtmsMap/OfficesAtmsMap.ui.json} +0 -0
  675. /package/mobile/src/components/{OfficeMap/OfficeMap.ui.json → OfficesAtmsMap/OfficesAtmsMaps.example.json} +0 -0
  676. /package/src/components/{ExchangeRateOffice/ExchangeRateOffice.ui.json → OfficesAtmsMap/OfficesAtmsMap.ui.json} +0 -0
  677. /package/src/components/{OfficeMap/OfficeMap.ui.json → OfficesAtmsMap/OfficesAtmsMaps.example.json} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAChE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC5D,GAAG,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE;CACpD,CAAC;AAOW,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAChF,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,qDAAqD,EACrD,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EACxB,SAAS,CACV,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,YAC9C,QAAQ,GACJ,GACH,CACP,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { TextColor } from '../../ui-kit/Text/TextProps';
2
+ export interface CardCellProps {
3
+ className?: string;
4
+ label?: string;
5
+ value?: string;
6
+ subText?: string;
7
+ subColor?: TextColor;
8
+ }
9
+ export declare const CardCell: import("@redneckz/uni-jsx").UNIComponent<CardCellProps, any, any>;
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CardCell = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const Text_1 = require("../../ui-kit/Text/Text");
6
+ const style_1 = require("../../utils/style");
7
+ exports.CardCell = (0, uni_jsx_1.JSX)(({ className, label, value, subText, subColor }) => {
8
+ const textItems = value?.split(',') ?? [];
9
+ if (!textItems.length && !subText) {
10
+ return null;
11
+ }
12
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", size: "text-m", children: label })) : null, textItems.filter(Boolean).map((text, i) => ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: subColor, size: "text-m", children: subText })) : null] }));
13
+ });
14
+ //# sourceMappingURL=CardCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardCell.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAU7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5F,MAAM,SAAS,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAE1C,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE;QACjC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,4CAA4C,EAAE,SAAS,CAAC,aAC3E,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,YAC9D,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1C,uBAAC,WAAI,IAAiB,IAAI,EAAC,QAAQ,YAChC,IAAI,CAAC,IAAI,EAAE,IADH,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,EACD,OAAO,CAAC,CAAC,CAAC,CACT,uBAAC,WAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAC,QAAQ,YACjC,OAAO,GACH,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface CardRowProps {
2
+ className?: string;
3
+ }
4
+ export declare const CardRow: import("@redneckz/uni-jsx").UNIComponent<CardRowProps, any, any>;
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CardRow = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const style_1 = require("../../utils/style");
6
+ exports.CardRow = (0, uni_jsx_1.JSX)(({ className, children }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex border-t border-solid border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
7
+ //# sourceMappingURL=CardRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardRow.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAM7B,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpE,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,yEAAyE,EACzE,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { OfficesAtmsMapContent } from './OfficesAtmsMapContent';
3
+ export interface OfficesAtmsMapProps extends OfficesAtmsMapContent, UniBlockProps {
4
+ }
5
+ export declare const OfficesAtmsMap: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapProps, any, any>;
@@ -0,0 +1,74 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.OfficesAtmsMap = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
7
+ const useLocation_1 = require("../../hooks/useLocation");
8
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
9
+ const Button_1 = require("../../ui-kit/Button/Button");
10
+ const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
11
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
12
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
13
+ const Img_1 = require("../../ui-kit/Img/Img");
14
+ const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
15
+ const Text_1 = require("../../ui-kit/Text/Text");
16
+ const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
17
+ const style_1 = require("../../utils/style");
18
+ const renderAtmCard_1 = require("./renderAtmCard");
19
+ const renderOfficeCard_1 = require("./renderOfficeCard");
20
+ const useOfficesAtmsMap_1 = require("./useOfficesAtmsMap");
21
+ const INITIAL_FILTRATION_OFFICES_STATE = {
22
+ safeBoxCaseVolumes: false,
23
+ workingSaturday: false,
24
+ };
25
+ const INITIAL_FILTRATION_ATMS_STATE = {
26
+ terminalTypeAtms: true,
27
+ terminalTypeTerm: false,
28
+ workAllTime: false,
29
+ billAcceptorEnable: false,
30
+ };
31
+ const FILTRATION_LABELS = {
32
+ safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
33
+ workingSaturday: 'Открыты по субботам',
34
+ terminalTypeAtms: 'Банкоматы',
35
+ terminalTypeTerm: 'Терминалы',
36
+ workAllTime: 'Круглосуточно',
37
+ billAcceptorEnable: 'Прием наличных',
38
+ };
39
+ const FILTRATION_BRANCHES_PREDICATES = {
40
+ safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
41
+ workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
42
+ };
43
+ const FILTRATION_ATMS_PREDICATES = {
44
+ terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
45
+ terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
46
+ workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
47
+ billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
48
+ };
49
+ exports.OfficesAtmsMap = (0, uni_jsx_1.JSX)(({ data, className = '', ...rest }) => {
50
+ const dataType = data?.dataType ?? 'offices';
51
+ const initialState = dataType === 'offices' ? INITIAL_FILTRATION_OFFICES_STATE : INITIAL_FILTRATION_ATMS_STATE;
52
+ const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initialState);
53
+ const [currentLocation] = (0, useLocation_1.useLocation)();
54
+ const [regionCode, title] = (0, hooks_1.useMemo)(() => [currentLocation?.code || '000', getTitle(currentLocation?.name, dataType)], [currentLocation, dataType]);
55
+ const officesAtmsData = (0, useOfficesAtmsMap_1.useOfficesAtmsMap)(regionCode, dataType);
56
+ const filteredOfficesAtmsData = filterOfficesAtms(officesAtmsData, filtrationState);
57
+ const lengthOfficesAtms = filteredOfficesAtmsData.length;
58
+ const points = filteredOfficesAtmsData
59
+ .map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
60
+ .filter((_) => _ && _.length === 2);
61
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { version: "transparent", className: (0, style_1.style)('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "col-span-12 bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "pt-6xl px-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2 pb-2xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard_1.renderOfficeCard : renderAtmCard_1.renderAtmCard)] }));
62
+ });
63
+ const filterOfficesAtms = (data, filtrationState) => {
64
+ const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
65
+ return 'name' in data
66
+ ? data.filter(filterOffices(truthyFilters))
67
+ : data.filter(filterAtms(truthyFilters));
68
+ };
69
+ const filterOffices = (filters) => (item) => filters.every((filterName) => FILTRATION_BRANCHES_PREDICATES[filterName](item));
70
+ const filterAtms = (filters) => (item) => filters.every((filterName) => FILTRATION_ATMS_PREDICATES[filterName](item));
71
+ const getTitle = (name = '', dataType = 'offices') => dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
72
+ const renderFiltrationForm = (filters, { field, reset }) => ((0, jsx_runtime_1.jsxs)("div", { className: "pb-2xl", children: [filters?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, (0, jsx_runtime_1.jsx)(Button_1.Button, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
73
+ const renderDescriptionBlock = ({ description, list }) => ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [(0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: description }), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
74
+ //# sourceMappingURL=OfficesAtmsMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,iDAAmE;AACnE,yDAAsD;AAEtD,4DAAyD;AACzD,uDAAoD;AACpD,6DAA0D;AAC1D,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAC9C,gEAA6D;AAC7D,6CAA0C;AAE1C,mDAAgD;AAChD,yDAAsD;AACtD,2DAAqE;AAErE,MAAM,gCAAgC,GAAG;IACvC,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,6BAA6B,GAAG;IACpC,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,KAAK;IACvB,WAAW,EAAE,KAAK;IAClB,kBAAkB,EAAE,KAAK;CAC1B,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,kBAAkB,EAAE,sCAAsC;IAC1D,eAAe,EAAE,qBAAqB;IACtC,gBAAgB,EAAE,WAAW;IAC7B,gBAAgB,EAAE,WAAW;IAC7B,WAAW,EAAE,eAAe;IAC5B,kBAAkB,EAAE,gBAAgB;CACrC,CAAC;AAEF,MAAM,8BAA8B,GAAG;IACrC,kBAAkB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC;IACtE,eAAe,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,OAAO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C,IAAI,GACL,CACR,CAAC,CAAC,CAAC,IAAI,KANA,MAAM,CAAC,CAAC,CAAC,CAOb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { EmptyOption } from '../../model/EmptyOptionType';
2
+ import type { UniBlockContent } from '../../model/JSXBlock';
3
+ import type { Picture } from '../../model/Picture';
4
+ /**
5
+ * @title Пункт
6
+ */
7
+ export declare type ItemList = {
8
+ text?: string;
9
+ image?: Picture;
10
+ };
11
+ /**
12
+ * @title Офисы
13
+ * @default {"dataType": "offices"}
14
+ */
15
+ export declare type OfficesDef = {
16
+ dataType: 'offices';
17
+ };
18
+ /**
19
+ * @title Банкоматы
20
+ * @default {"dataType": "atms"}
21
+ */
22
+ export declare type AtmsDef = {
23
+ dataType: 'atms';
24
+ /** @title Описание */
25
+ description: string;
26
+ /** @title Список */
27
+ list?: ItemList[];
28
+ };
29
+ /**
30
+ * @title Данные
31
+ */
32
+ export declare type OfficesAtmsBlockDef = EmptyOption | OfficesDef | AtmsDef;
33
+ export declare type OfficesAtmsMapContent = UniBlockContent & {
34
+ data?: OfficesAtmsBlockDef;
35
+ };
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=OfficeMapContent.js.map
2
+ //# sourceMappingURL=OfficesAtmsMapContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfficesAtmsMapContent.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { Atm } from './useOfficesAtmsMap';
3
+ export declare const renderAtmCard: ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode, atmAccess, workTime, }: Atm, index: number) => JSX.Element;
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderAtmCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
5
+ const Text_1 = require("../../ui-kit/Text/Text");
6
+ const Badge_1 = require("./Badge");
7
+ const CardCell_1 = require("./CardCell");
8
+ const CardRow_1 = require("./CardRow");
9
+ const renderAtmCard = ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode = '', atmAccess = '', workTime, }, index) => {
10
+ const additionalInfo = [
11
+ {
12
+ label: 'Устройство',
13
+ value: capitalizedFirstLetter(terminalType),
14
+ },
15
+ { label: 'Модуль приема наличных', value: billAcceptorEnable ? 'Да' : 'Нет' },
16
+ {
17
+ label: 'Прием наличных пачкой',
18
+ value: billAcceptorType === 'банкомат принимает пачками' ? 'Да' : 'Нет',
19
+ },
20
+ {
21
+ label: 'Доступность',
22
+ value: ['внешняя установка', 'территория банка'].includes(atmAccess) ? 'Общедоступный' : '',
23
+ },
24
+ { label: 'Регистрационный номер', value: atmCode },
25
+ ];
26
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: capitalizedFirstLetter(location) }), (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: capitalizedFirstLetter(workTime) })] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) })] }, String(index)));
27
+ };
28
+ exports.renderAtmCard = renderAtmCard;
29
+ const renderInfo = (item, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { ...item }, String(index)));
30
+ const capitalizedFirstLetter = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
31
+ //# sourceMappingURL=renderAtmCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderAtmCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderAtmCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;AAG7B,MAAM,aAAa,GAAG,CAC3B,EACE,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,EAAE,EACd,QAAQ,GACJ,EACN,KAAa,EACb,EAAE;IACF,MAAM,cAAc,GAAG;QACrB;YACE,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,sBAAsB,CAAC,YAAY,CAAC;SAC5C;QACD,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE;QAC7E;YACE,KAAK,EAAE,uBAAuB;YAC9B,KAAK,EAAE,gBAAgB,KAAK,4BAA4B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;SACxE;QACD;YACE,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;SAC5F;QACD,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,OAAO,EAAE;KACnD,CAAC;IAEF,OAAO,CACL,iCAAyB,SAAS,EAAC,gDAAgD,aACjF,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAQ,EAC9D,uBAAC,aAAK,IAAC,KAAK,EAAC,OAAO,YAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAS,IAC3D,EACL,OAAO,CAAC,CAAC,CAAC,CACT,iCAAK,SAAS,EAAC,0BAA0B,aACvC,uBAAC,WAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,EACtD,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,YAAE,OAAO,GAAQ,IAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,iBAAO,IAAC,SAAS,EAAC,WAAW,YAAE,cAAc,EAAE,GAAG,CAAC,UAAU,CAAC,GAAW,KAXlE,MAAM,CAAC,KAAK,CAAC,CAYjB,CACP,CAAC;AACJ,CAAC,CAAC;AA7CW,QAAA,aAAa,iBA6CxB;AAEF,MAAM,UAAU,GAAG,CAAC,IAA4B,EAAE,KAAa,EAAE,EAAE,CAAC,CAClE,uBAAC,mBAAQ,OAAyB,IAAI,IAAvB,MAAM,CAAC,KAAK,CAAC,CAAc,CAC3C,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,IAAa,EAAE,EAAE,CAC/C,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderLunchHour = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Text_1 = require("../../ui-kit/Text/Text");
5
+ const renderLunchHour = (lunchHour) => {
6
+ const hasLunch = /\d+/gi.test(lunchHour);
7
+ return hasLunch ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row w-full pb-2xs", children: [(0, jsx_runtime_1.jsx)("div", { className: "pr-s", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-error", children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-error", children: lunchHour }) })] })) : ((0, jsx_runtime_1.jsx)("div", { className: "items-center w-full pb-2xs", children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: "text-primary-main", font: "font-light", children: lunchHour }) }) }));
8
+ };
9
+ exports.renderLunchHour = renderLunchHour;
10
+ //# sourceMappingURL=renderLunchHour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderLunchHour.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderLunchHour.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAEvC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEzC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,2DAE/B,GACH,EACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,YACnC,SAAS,GACL,GACH,IACF,CACP,CAAC,CAAC,CAAC,CACF,gCAAK,SAAS,EAAC,4BAA4B,YACzC,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,SAAS,GACL,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,eAAe,mBAyB1B"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { Branch, Currency, WorkScheduleWeek } from './useOfficesAtmsMap';
3
+ export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element;
4
+ export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
5
+ export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek) => JSX.Element | null;
6
+ export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -0,0 +1,50 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderDay = exports.renderCurrentDaySchedule = exports.renderCurrency = exports.renderOfficeCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
5
+ const Text_1 = require("../../ui-kit/Text/Text");
6
+ const Badge_1 = require("./Badge");
7
+ const CardCell_1 = require("./CardCell");
8
+ const CardRow_1 = require("./CardRow");
9
+ const WEEKDAY_MAP = [
10
+ ['Понедельник', 'workingMonday'],
11
+ ['Вторник', 'workingTuesday'],
12
+ ['Среда', 'workingWednesday'],
13
+ ['Четверг', 'workingThursday'],
14
+ ['Пятница', 'workingFriday'],
15
+ ['Суббота', 'workingSaturday'],
16
+ ['Воскресенье', 'workingSunday'],
17
+ ];
18
+ const currentWeekDayIdx = new Date().getDay();
19
+ const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
20
+ const workScheduleWeek = workSchedule ? getWorkScheduleWeek(workSchedule) : null;
21
+ const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
22
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: name }), (0, exports.renderCurrentDaySchedule)(currentWeekDay)] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "flex-wrap", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workScheduleWeek?.length ? (0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { children: workScheduleWeek?.map(exports.renderDay) }) : null, exchangeRate?.currencies?.length ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(exports.renderCurrency) })) : null] }, String(index)));
23
+ };
24
+ exports.renderOfficeCard = renderOfficeCard;
25
+ const getWorkScheduleWeek = (workSchedule) => WEEKDAY_MAP.map(([title, key]) => {
26
+ const dayOff = ['workingSaturday', 'workingSunday'].includes(key);
27
+ return {
28
+ title,
29
+ status: Boolean(workSchedule?.[key]),
30
+ workTime: dayOff ? workSchedule?.workTimeSaturday : workSchedule?.workTime,
31
+ lunchHour: dayOff ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour,
32
+ get hasLunch() {
33
+ return /\d+/.test(this.lunchHour ?? '');
34
+ },
35
+ };
36
+ });
37
+ const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg h-full", children: [currency?.currency ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
38
+ exports.renderCurrency = renderCurrency;
39
+ //TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
40
+ const renderCurrentDaySchedule = (workScheduleWeek) => {
41
+ if (!workScheduleWeek) {
42
+ return null;
43
+ }
44
+ const { lunchHour, status, workTime, hasLunch } = workScheduleWeek;
45
+ return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: lunchHour }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
46
+ };
47
+ exports.renderCurrentDaySchedule = renderCurrentDaySchedule;
48
+ const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText: !status ? 'Выходной' : lunchHour, subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
49
+ exports.renderDay = renderDay;
50
+ //# sourceMappingURL=renderOfficeCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;AAGpC,MAAM,WAAW,GAAG;IAClB,CAAC,aAAa,EAAE,eAAe,CAAC;IAChC,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC7B,CAAC,OAAO,EAAE,kBAAkB,CAAC;IAC7B,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAC9B,CAAC,SAAS,EAAE,eAAe,CAAC;IAC5B,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAC9B,CAAC,aAAa,EAAE,eAAe,CAAC;CACjC,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;AAEvC,MAAM,gBAAgB,GAAG,CAC9B,EACE,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,aAAa,EACb,YAA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E,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAoB,EAClE,KAAa,EACb,EAAE,CAAC,CACH,uBAAC,mBAAQ,IAEP,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EACzC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EACzC,QAAQ,EAAE,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,IAJ3D,MAAM,CAAC,KAAK,CAAC,CAKlB,CACH,CAAC;AAXW,QAAA,SAAS,aAWpB"}
@@ -0,0 +1,90 @@
1
+ import { IconName } from '../../icons/IconName';
2
+ declare const MAP_URL: {
3
+ offices: string;
4
+ atms: string;
5
+ };
6
+ export declare type DataType = keyof typeof MAP_URL;
7
+ export interface Currency {
8
+ buyExchangeRate?: number;
9
+ saleExchangeRate?: number;
10
+ currency?: {
11
+ id?: number;
12
+ code?: string;
13
+ currency?: string;
14
+ name?: string;
15
+ };
16
+ }
17
+ export interface ExchangeRate {
18
+ currencies?: Currency[];
19
+ }
20
+ export declare type WorkScheduleWeek = {
21
+ title?: string;
22
+ status?: boolean;
23
+ workTime?: string;
24
+ lunchHour?: string;
25
+ hasLunch?: boolean;
26
+ };
27
+ export declare type NearbyOffices = {
28
+ title?: string;
29
+ time?: string;
30
+ distance?: string;
31
+ icon?: IconName;
32
+ };
33
+ export declare type WorkSchedule = {
34
+ workTime?: string;
35
+ lunchHour?: string;
36
+ workTimeSaturday?: string;
37
+ lunchHourSaturday?: string;
38
+ workingMonday?: boolean;
39
+ workingTuesday?: boolean;
40
+ workingWednesday?: boolean;
41
+ workingThursday?: boolean;
42
+ workingFriday?: boolean;
43
+ workingSaturday?: boolean;
44
+ workingSunday?: boolean;
45
+ };
46
+ export declare type SafeBoxCaseTariff = {
47
+ id?: number;
48
+ tariffType?: string;
49
+ tariffValue?: number;
50
+ tariffTypeDescription?: string;
51
+ };
52
+ export declare type SafeBoxCase = {
53
+ id?: number;
54
+ count?: number;
55
+ safeBoxCasesSize?: string;
56
+ tariffs: SafeBoxCaseTariff[];
57
+ };
58
+ export declare type SafeBoxCaseVolume = {
59
+ volume?: string;
60
+ safeBoxCases?: SafeBoxCase[];
61
+ };
62
+ export interface Branch {
63
+ name?: string;
64
+ address?: string;
65
+ phone?: string;
66
+ fax?: string;
67
+ phoneBusiness?: string;
68
+ phoneNatural?: string;
69
+ phoneCurrencyControl?: string;
70
+ phoneCallCentre?: string;
71
+ workSchedule?: WorkSchedule;
72
+ gpsLatitude?: number;
73
+ gpsLongitude?: number;
74
+ exchangeRate?: ExchangeRate;
75
+ safeBoxCaseVolumes?: SafeBoxCaseVolume[];
76
+ }
77
+ export interface Atm {
78
+ location?: string;
79
+ address?: string;
80
+ billAcceptorType?: string;
81
+ terminalType?: string;
82
+ billAcceptorEnable?: boolean;
83
+ atmAccess?: string;
84
+ atmCode?: string;
85
+ workTime?: string;
86
+ gpsLatitude?: number;
87
+ gpsLongitude?: number;
88
+ }
89
+ export declare function useOfficesAtmsMap(regionCode?: string, type?: DataType): Branch[] | Atm[];
90
+ export {};
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useOfficesAtmsMap = void 0;
3
+ const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
4
+ const fetchJSON_1 = require("../../utils/fetchJSON");
5
+ const MAP_URL = {
6
+ offices: '/api/v1/branches',
7
+ atms: '/api/v1/atms',
8
+ };
9
+ const EMPTY_VALUE = [];
10
+ function useOfficesAtmsMap(regionCode, type = 'offices') {
11
+ const { data } = (0, useAsyncData_1.useAsyncData)(`${MAP_URL[type]}?regionCode=${regionCode}`, fetchMap);
12
+ return data || EMPTY_VALUE;
13
+ }
14
+ exports.useOfficesAtmsMap = useOfficesAtmsMap;
15
+ const fetchMap = async (url) => {
16
+ const result = await (0, fetchJSON_1.fetchJSON)(url, { method: 'GET' });
17
+ return result || EMPTY_VALUE;
18
+ };
19
+ //# sourceMappingURL=useOfficesAtmsMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/useOfficesAtmsMap.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,qDAAkD;AAElD,MAAM,OAAO,GAAG;IACd,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,cAAc;CACrB,CAAC;AACF,MAAM,WAAW,GAAG,EAAE,CAAC;AAgGvB,SAAgB,iBAAiB,CAAC,UAAmB,EAAE,OAAiB,SAAS;IAC/E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,UAAU,EAAE,EAC3C,QAAQ,CACT,CAAC;IAEF,OAAO,IAAI,IAAI,WAAW,CAAC;AAC7B,CAAC;AAPD,8CAOC;AAED,MAAM,QAAQ,GAAG,KAAK,EAAE,GAAW,EAA6B,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAS,EAAmB,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEzE,OAAO,MAAM,IAAI,WAAW,CAAC;AAC/B,CAAC,CAAC"}
@@ -3,7 +3,7 @@ exports.renderInsuranceSumMonth = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const Text_1 = require("../../ui-kit/Text/Text");
5
5
  const toLocalNumberFormat_1 = require("../../utils/toLocalNumberFormat");
6
- const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit) : null] })) : null;
6
+ const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит', monthLimit) : null] })) : null;
7
7
  exports.renderInsuranceSumMonth = renderInsuranceSumMonth;
8
- const renderValueBlock = (title, value = 0) => ((0, jsx_runtime_1.jsxs)("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-l", children: title }), (0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-h6", color: "text-primary-text", children: [(0, toLocalNumberFormat_1.toLocalNumberFormat)(2)(value), " \u20BD"] })] }));
8
+ const renderValueBlock = (title, value = 0) => ((0, jsx_runtime_1.jsxs)("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: title }), (0, jsx_runtime_1.jsxs)("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [(0, toLocalNumberFormat_1.toLocalNumberFormat)(2)(value), " \u20BD"] })] }));
9
9
  //# sourceMappingURL=renderInsuranceSumMonth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,yEAAsE;AAE/D,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAE,UAAmB,EAAE,EAAE,CAC3E,GAAG,IA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,CAAC,CAAC,CAAC,IAAI,IAC9E,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AANE,QAAA,uBAAuB,2BAMzB;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CACrD,iCAAK,SAAS,EAAC,iJAAiJ,aAC9J,uBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,kCAAM,SAAS,EAAC,0DAA0D,aACvE,IAAA,yCAAmB,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eACzB,IACH,CACP,CAAC"}
@@ -5,5 +5,5 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
6
6
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
7
  const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
8
- exports.ProductTile = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isBackground: true, ...imageOptions }, ...rest, children: additionalDescription ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
8
+ exports.ProductTile = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isBackground: true, ...imageOptions }, ...rest, children: additionalDescription ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
9
9
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,iBAAiB,GAAG,IAAI,EACxB,qBAAqB,EACrB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,MAAM,EACrB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,KACjD,IAAI,YAEP,qBAAqB,CAAC,CAAC,CAAC,CACvB,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,wCAAwC,YACtF,qBAAqB,GACZ,CACb,CAAC,CAAC,CAAC,IAAI,GACQ,GACL,CAChB,CACF,CAAC"}
1
+ {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,iBAAiB,GAAG,IAAI,EACxB,qBAAqB,EACrB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,eAAe,EAC9B,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,KACjD,IAAI,YAEP,qBAAqB,CAAC,CAAC,CAAC,CACvB,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,wCAAwC,YACtF,qBAAqB,GACZ,CACb,CAAC,CAAC,CAAC,IAAI,GACQ,GACL,CAChB,CACF,CAAC"}
@@ -12,10 +12,11 @@ const RichText_1 = require("../RichText/RichText");
12
12
  const Tags_1 = require("../Tags/Tags");
13
13
  exports.BaseProductTile = (0, uni_jsx_1.JSX)(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground, isImageAlwaysOnRight, } = {}, children, }) => {
14
14
  const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null;
15
- const headline = ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
15
+ const headline = renderHeadline({ title, description, headlineVersion, align });
16
16
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
17
- return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
17
+ return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
18
18
  });
19
19
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
20
20
  const renderTags = (tags) => (tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags }) : null);
21
+ const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
21
22
  //# sourceMappingURL=BaseProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAG9D,mDAAgD;AAChD,+DAA4D;AAC5D,yEAAsE;AACtE,oCAAiC;AACjC,uCAAoC;AACpC,mDAAgD;AAChD,uCAAoC;AAKvB,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,WAAW,EACnB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,gBAAgB,GAAG,IAAI,EACvB,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,YAAY,EACZ,IAAI,GAAG,EAAE,EACT,OAAO,EACP,KAAK,EACL,YAAY,EAAE,EACZ,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,IAAI,EACrB,YAAY,EACZ,oBAAoB,GACrB,GAAG,EAAE,EACN,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM,QAAQ,GAAG,CACf,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,K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AACJ,CAAC,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,GAAU,EAAE,cAAuB,EAAE,EAAE,CAC/D,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAG9D,mDAAgD;AAChD,+DAA4D;AAC5D,yEAAsE;AACtE,oCAAiC;AACjC,uCAAoC;AACpC,mDAAgD;AAChD,uCAAoC;AAOvB,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,WAAW,EACnB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,gBAAgB,GAAG,IAAI,EACvB,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,YAAY,EACZ,IAAI,GAAG,EAAE,EACT,OAAO,EACP,KAAK,EACL,YAAY,EAAE,EACZ,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,IAAI,EACrB,YAAY,EACZ,oBAAoB,GACrB,GAAG,EAAE,EACN,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM,QAAQ,GAAG,cAAc,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,CAAC,IACb,GACG,CACZ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,GAAU,EAAE,cAAuB,EAAE,EAAE,CAC/D,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AASpF,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAkB,EAAE,EAAE,CACxF,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CACrB,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,IAAI,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -4,12 +4,12 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const style_1 = require("../../utils/style");
6
6
  const imageAlignmentMap = {
7
- start: '@lg:self-start',
8
- center: '@lg:self-center',
9
- end: '@lg:self-end',
7
+ start: '@xl:self-start',
8
+ center: '@xl:self-center',
9
+ end: '@xl:self-end',
10
10
  };
11
- exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? (0, jsx_runtime_1.jsx)("div", { className: "relative", children: title }) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('grow relative flex justify-around @lg:justify-between items-stretch gap-3xl', isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row'), children: [renderImageContainer(leftImage, { imageAlign }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, (0, jsx_runtime_1.jsx)("div", { className: "grow", children: children }), backImage ? ((0, jsx_runtime_1.jsx)("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
12
- className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
11
+ exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? (0, jsx_runtime_1.jsx)("div", { className: "relative", children: title }) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('grow relative flex justify-around @lg:justify-between items-stretch gap-3xl', isImageAlwaysOnRight ? 'flex-row' : 'flex-col-reverse @lg:flex-row'), children: [renderImageContainer(leftImage, { imageAlign }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, (0, jsx_runtime_1.jsx)("div", { className: "grow", children: children }), backImage ? ((0, jsx_runtime_1.jsx)("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
12
+ className: isImageAlwaysOnRight ? '' : '@xl:order-1',
13
13
  imageAlign,
14
14
  })] })] })));
15
15
  const renderImageContainer = (image, { className, imageAlign }) => image ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,6CAA0C;AAa1C,MAAM,iBAAiB,GAA0B;IAC/C,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,GAAG,EAAE,cAAc;CACpB,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,cAAc,EACd,OAAO,EACP,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,EAAE,EACf,OAAO,EACP,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,oBAAoB,GAAG,KAAK,EAC5B,QAAQ,GACT,EAAE,EAAE,CAAC,CACJ,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,0DAA0D,EAC1D,OAAO,IAAI,cAAc,EACzB,SAAS,CACV,aAEA,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,UAAU,YAAE,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACvD,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,6EAA6E,EAC7E,oBAAoB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAuB,CAC5D,aAEA,oBAAoB,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,CAAC,EAChD,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,uDAAuD,EACvD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CACxB,aAEA,UAAU,EACX,gCAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAO,EACrC,SAAS,CAAC,CAAC,CAAC,CACX,gCAAK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A,aAAK,EACd,6EAA6E,EAC7E,oBAAoB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,+BAA+B,CACpE,aAEA,oBAAoB,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,CAAC,EAChD,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,uDAAuD,EACvD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CACxB,aAEA,UAAU,EACX,gCAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAO,EACrC,SAAS,CAAC,CAAC,CAAC,CACX,gCAAK,SAAS,EAAC,sEAAsE,YAClF,SAAS,GACN,CACP,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,IACJ,EACL,oBAAoB,CAAC,UAAU,EAAE;oBAChC,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa;oBACpD,UAAU;iBACX,CAAC,IACE,IACF,CACP,CACF,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAC3B,KAAwB,EACxB,EAAE,SAAS,EAAE,UAAU,EAA8C,EACrE,EAAE,CACF,KAAK,CAAC,CAAC,CAAC,CACN,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,8BAA8B,EAC9B,UAAU,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAC3C,SAAS,CACV,YAEA,KAAK,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -3,7 +3,7 @@ exports.renderBenefitIcon = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const style_1 = require("../../utils/style");
5
5
  const Img_1 = require("../Img/Img");
6
- const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
6
+ const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
7
7
  ? 'bg-secondary-light text-primary-main'
8
8
  : 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
9
9
  exports.renderBenefitIcon = renderBenefitIcon;
@@ -1 +1 @@
1
- {"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,oCAAiC;AAE1B,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,CAAC,CAAC,CAAC,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,6EAA6E,EAC7E,eAAe,KAAK,QAAQ;QAC1B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAClG,YAED,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,eAAe,EAAE,GACpE,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAlBE,QAAA,iBAAiB,qBAkBnB"}
1
+ {"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,oCAAiC;AAE1B,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,CAAC,CAAC,CAAC,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,yGAAyG,EACzG,eAAe,KAAK,QAAQ;QAC1B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAClG,YAED,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,eAAe,EAAE,GACpE,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAlBE,QAAA,iBAAiB,qBAkBnB"}
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ComplexBenefitContent } from './BenefitItemContent';
3
- export declare const renderBenefitText: (_: ComplexBenefitContent, i?: number) => JSX.Element | (JSX.Element | null)[];
3
+ export declare type BenefitTextProps = ComplexBenefitContent & {
4
+ descriptionClassName?: string;
5
+ };
6
+ export declare const renderBenefitText: (_: BenefitTextProps, i?: number) => JSX.Element | (JSX.Element | null)[];