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

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 (625) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +211 -305
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/OfficesAtmsMap/Badge.d.ts +11 -0
  5. package/bundle/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  6. package/bundle/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  7. package/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  8. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  9. package/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  10. package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -0
  11. package/bundle/components/OfficesAtmsMap/renderDay.d.ts +1 -0
  12. package/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  13. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  14. package/bundle/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  15. package/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  16. package/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  17. package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
  18. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  19. package/cosmos-static/icons/CloseIcon.svg +1 -1
  20. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  21. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  22. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  23. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  24. package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  26. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  28. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  29. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  30. package/dist/components/Blocks.js +2 -6
  31. package/dist/components/Blocks.js.map +1 -1
  32. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  33. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  34. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  35. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  36. package/dist/components/OfficesAtmsMap/Badge.d.ts +11 -0
  37. package/dist/components/OfficesAtmsMap/Badge.js +14 -0
  38. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -0
  39. package/dist/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  40. package/dist/components/OfficesAtmsMap/CardCell.js +14 -0
  41. package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -0
  42. package/dist/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  43. package/dist/components/OfficesAtmsMap/CardRow.js +7 -0
  44. package/dist/components/OfficesAtmsMap/CardRow.js.map +1 -0
  45. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  46. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +74 -0
  47. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  48. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  49. package/dist/components/{ExchangeRateOffice/ExchangeRateOfficeContent.js → OfficesAtmsMap/OfficesAtmsMapContent.js} +1 -1
  50. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  51. package/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  52. package/dist/components/OfficesAtmsMap/renderAtmCard.js +31 -0
  53. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  54. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -0
  55. package/{mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js → dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js} +1 -1
  56. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  57. package/dist/components/OfficesAtmsMap/renderDay.d.ts +1 -0
  58. package/dist/components/{OfficeMap/OfficeMapContent.js → OfficesAtmsMap/renderDay.js} +1 -1
  59. package/dist/components/OfficesAtmsMap/renderDay.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/Text/TextProps.d.ts +1 -1
  86. package/dist/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  87. package/dist/ui-kit/YandexMap/YandexMap.js +13 -22
  88. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  89. package/dist/ui-kit/YandexMap/renderClusterer.js +2 -2
  90. package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  91. package/dist/ui-kit/YandexMap/renderSearchField.js +2 -1
  92. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  93. package/dist/utils/fetchJSON.js +1 -1
  94. package/dist/utils/fetchJSON.js.map +1 -1
  95. package/lib/common.css +1 -1
  96. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  97. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  98. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  99. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  100. package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  101. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  102. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  103. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  105. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  106. package/lib/components/Blocks.js +2 -6
  107. package/lib/components/Blocks.js.map +1 -1
  108. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  109. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  110. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  111. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  112. package/lib/components/OfficesAtmsMap/Badge.d.ts +11 -0
  113. package/lib/components/OfficesAtmsMap/Badge.js +12 -0
  114. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -0
  115. package/lib/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  116. package/lib/components/OfficesAtmsMap/CardCell.js +12 -0
  117. package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -0
  118. package/lib/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  119. package/lib/components/OfficesAtmsMap/CardRow.js +5 -0
  120. package/lib/components/OfficesAtmsMap/CardRow.js.map +1 -0
  121. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  122. package/lib/components/{OfficeMap/OfficeMap.fixture.d.ts → OfficesAtmsMap/OfficesAtmsMap.fixture.d.ts} +2 -2
  123. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +72 -0
  124. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  125. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  126. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js +2 -0
  127. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  128. package/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  129. package/lib/components/OfficesAtmsMap/renderAtmCard.js +28 -0
  130. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  131. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -0
  132. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +2 -0
  133. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  134. package/lib/components/OfficesAtmsMap/renderDay.d.ts +1 -0
  135. package/lib/components/OfficesAtmsMap/renderDay.js +2 -0
  136. package/lib/components/OfficesAtmsMap/renderDay.js.map +1 -0
  137. package/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  138. package/lib/components/OfficesAtmsMap/renderLunchHour.js +7 -0
  139. package/lib/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  140. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  141. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +44 -0
  142. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  143. package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  144. package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +16 -0
  145. package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  146. package/lib/components/PictureText/renderInsuranceSumMonth.js +2 -2
  147. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  148. package/lib/components/ProductTile/ProductTile.js +1 -1
  149. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  150. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  151. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  152. package/lib/ui-kit/BaseTile/BaseTile.js +5 -5
  153. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  154. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  155. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  156. package/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  157. package/lib/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  158. package/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  159. package/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  160. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  161. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  162. package/lib/ui-kit/Text/TextProps.d.ts +1 -1
  163. package/lib/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  164. package/lib/ui-kit/YandexMap/YandexMap.js +13 -22
  165. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  166. package/lib/ui-kit/YandexMap/renderClusterer.js +2 -2
  167. package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  168. package/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -0
  169. package/lib/ui-kit/YandexMap/renderSearchField.js +2 -1
  170. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  171. package/lib/utils/fetchJSON.js +1 -1
  172. package/lib/utils/fetchJSON.js.map +1 -1
  173. package/mobile/bundle/bundle.umd.js +61 -120
  174. package/mobile/bundle/bundle.umd.min.js +1 -1
  175. package/mobile/bundle/components/OfficesAtmsMap/Badge.d.ts +11 -0
  176. package/mobile/bundle/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  177. package/mobile/bundle/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  178. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  179. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  180. package/mobile/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  181. package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -0
  182. package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +1 -0
  183. package/mobile/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  184. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  185. package/mobile/bundle/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  186. package/mobile/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  187. package/mobile/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  188. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
  189. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  194. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  195. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  196. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  197. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  198. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  199. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  200. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  201. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  202. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  203. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  204. package/mobile/dist/components/OfficesAtmsMap/Badge.d.ts +11 -0
  205. package/mobile/dist/components/OfficesAtmsMap/Badge.js +14 -0
  206. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -0
  207. package/mobile/dist/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  208. package/mobile/dist/components/OfficesAtmsMap/CardCell.js +14 -0
  209. package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -0
  210. package/mobile/dist/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  211. package/mobile/dist/components/OfficesAtmsMap/CardRow.js +7 -0
  212. package/mobile/dist/components/OfficesAtmsMap/CardRow.js.map +1 -0
  213. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  214. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +74 -0
  215. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  216. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  217. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.js +2 -0
  218. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  219. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  220. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +31 -0
  221. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  222. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -0
  223. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +2 -0
  224. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  225. package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +1 -0
  226. package/mobile/dist/components/{OfficeMap/OfficeMapContent.js → OfficesAtmsMap/renderDay.js} +1 -1
  227. package/mobile/dist/components/OfficesAtmsMap/renderDay.js.map +1 -0
  228. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  229. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js +10 -0
  230. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  231. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  232. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +50 -0
  233. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  234. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  235. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +19 -0
  236. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  237. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +2 -2
  238. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  239. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  240. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  241. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  242. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  243. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +5 -5
  244. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  245. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  246. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  247. package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  248. package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  249. package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  250. package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  251. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  252. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  253. package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
  254. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  255. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +13 -22
  256. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  257. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +2 -2
  258. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  259. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +2 -1
  260. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  261. package/mobile/dist/utils/fetchJSON.js +1 -1
  262. package/mobile/dist/utils/fetchJSON.js.map +1 -1
  263. package/mobile/lib/common.css +1 -1
  264. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  265. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  266. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
  267. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  268. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  269. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  270. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  271. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  272. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  273. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  274. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  275. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  276. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  277. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  278. package/mobile/lib/components/OfficesAtmsMap/Badge.d.ts +11 -0
  279. package/mobile/lib/components/OfficesAtmsMap/Badge.js +12 -0
  280. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -0
  281. package/mobile/lib/components/OfficesAtmsMap/CardCell.d.ts +9 -0
  282. package/mobile/lib/components/OfficesAtmsMap/CardCell.js +12 -0
  283. package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -0
  284. package/mobile/lib/components/OfficesAtmsMap/CardRow.d.ts +4 -0
  285. package/mobile/lib/components/OfficesAtmsMap/CardRow.js +5 -0
  286. package/mobile/lib/components/OfficesAtmsMap/CardRow.js.map +1 -0
  287. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +5 -0
  288. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +72 -0
  289. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -0
  290. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +35 -0
  291. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js +2 -0
  292. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.js.map +1 -0
  293. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +3 -0
  294. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +28 -0
  295. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -0
  296. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -0
  297. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +2 -0
  298. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
  299. package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +1 -0
  300. package/mobile/lib/components/OfficesAtmsMap/renderDay.js +2 -0
  301. package/mobile/lib/components/OfficesAtmsMap/renderDay.js.map +1 -0
  302. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +2 -0
  303. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js +7 -0
  304. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js.map +1 -0
  305. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +6 -0
  306. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +44 -0
  307. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -0
  308. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +90 -0
  309. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +16 -0
  310. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +1 -0
  311. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +2 -2
  312. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  313. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  314. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  315. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  316. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  317. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +5 -5
  318. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  319. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  320. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  321. package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +4 -1
  322. package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js +1 -1
  323. package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -1
  324. package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +1 -0
  325. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  326. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  327. package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
  328. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +0 -1
  329. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +13 -22
  330. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  331. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +2 -2
  332. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  333. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +2 -1
  334. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  335. package/mobile/lib/utils/fetchJSON.js +1 -1
  336. package/mobile/lib/utils/fetchJSON.js.map +1 -1
  337. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
  338. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
  339. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  340. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
  341. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  342. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  343. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  344. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +30 -0
  345. package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +40 -0
  346. package/mobile/src/components/OfficesAtmsMap/CardRow.tsx +17 -0
  347. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +165 -0
  348. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +40 -0
  349. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +60 -0
  350. package/mobile/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +2 -0
  351. package/mobile/src/components/OfficesAtmsMap/renderDay.tsx +2 -0
  352. package/mobile/src/components/OfficesAtmsMap/renderLunchHour.tsx +28 -0
  353. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +121 -0
  354. package/mobile/src/components/OfficesAtmsMap/useOfficesAtmsMap.ts +118 -0
  355. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +6 -6
  356. package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
  357. package/mobile/src/icons/CloseIcon.svg +4 -4
  358. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +22 -10
  359. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +5 -5
  360. package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  361. package/mobile/src/ui-kit/BenefitItem/renderBenefitText.tsx +10 -2
  362. package/mobile/src/ui-kit/BenefitsList/BenefitsListProps.ts +1 -0
  363. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  364. package/mobile/src/ui-kit/Text/TextProps.ts +2 -0
  365. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +70 -79
  366. package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +2 -2
  367. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
  368. package/mobile/src/utils/fetchJSON.ts +1 -1
  369. package/package.json +1 -1
  370. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
  371. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
  372. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  373. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
  374. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  375. package/src/components/Blocks.ts +2 -6
  376. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +1 -1
  377. package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -3
  378. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  379. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  380. package/src/components/OfficesAtmsMap/Badge.tsx +30 -0
  381. package/src/components/OfficesAtmsMap/CardCell.tsx +40 -0
  382. package/src/components/OfficesAtmsMap/CardRow.tsx +17 -0
  383. package/src/components/OfficesAtmsMap/OfficesAtmsMap.fixture.tsx +41 -0
  384. package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +165 -0
  385. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +40 -0
  386. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +60 -0
  387. package/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +2 -0
  388. package/src/components/OfficesAtmsMap/renderDay.tsx +2 -0
  389. package/src/components/OfficesAtmsMap/renderLunchHour.tsx +28 -0
  390. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +121 -0
  391. package/src/components/OfficesAtmsMap/useOfficesAtmsMap.ts +118 -0
  392. package/src/components/PictureText/renderInsuranceSumMonth.tsx +6 -6
  393. package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +7 -4
  394. package/src/components/ProductTile/ProductTile.tsx +1 -1
  395. package/src/icons/CloseIcon.svg +4 -4
  396. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +22 -10
  397. package/src/ui-kit/BaseTile/BaseTile.tsx +5 -5
  398. package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  399. package/src/ui-kit/BenefitItem/renderBenefitText.tsx +10 -2
  400. package/src/ui-kit/BenefitsList/BenefitsListProps.ts +1 -0
  401. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  402. package/src/ui-kit/Text/TextProps.ts +2 -0
  403. package/src/ui-kit/YandexMap/YandexMap.tsx +70 -79
  404. package/src/ui-kit/YandexMap/renderClusterer.ts +2 -2
  405. package/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
  406. package/src/utils/fetchJSON.ts +1 -1
  407. package/bundle/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  408. package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  409. package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  410. package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  411. package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  412. package/bundle/components/OfficeMap/OfficeMap.d.ts +0 -5
  413. package/bundle/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  414. package/bundle/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  415. package/bundle/components/OfficeMap/nearbyOffices.d.ts +0 -2
  416. package/bundle/components/OfficeMap/renderFunctions.d.ts +0 -5
  417. package/bundle/components/OfficeMap/useOfficeMap.d.ts +0 -59
  418. package/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  419. package/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  420. package/dist/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  421. package/dist/components/ExchangeRateOffice/Currencies.js +0 -12
  422. package/dist/components/ExchangeRateOffice/Currencies.js.map +0 -1
  423. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  424. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -16
  425. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  426. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  427. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  428. package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  429. package/dist/components/ExchangeRateOffice/renderCurrencies.js +0 -30
  430. package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  431. package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  432. package/dist/components/ExchangeRateOffice/renderTableHeader.js +0 -9
  433. package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  434. package/dist/components/OfficeMap/OfficeMap.d.ts +0 -5
  435. package/dist/components/OfficeMap/OfficeMap.js +0 -43
  436. package/dist/components/OfficeMap/OfficeMap.js.map +0 -1
  437. package/dist/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  438. package/dist/components/OfficeMap/OfficeMapContent.js.map +0 -1
  439. package/dist/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  440. package/dist/components/OfficeMap/mockOfficeMap.js +0 -82
  441. package/dist/components/OfficeMap/mockOfficeMap.js.map +0 -1
  442. package/dist/components/OfficeMap/nearbyOffices.d.ts +0 -2
  443. package/dist/components/OfficeMap/nearbyOffices.js +0 -9
  444. package/dist/components/OfficeMap/nearbyOffices.js.map +0 -1
  445. package/dist/components/OfficeMap/renderFunctions.d.ts +0 -5
  446. package/dist/components/OfficeMap/renderFunctions.js +0 -20
  447. package/dist/components/OfficeMap/renderFunctions.js.map +0 -1
  448. package/dist/components/OfficeMap/useOfficeMap.d.ts +0 -59
  449. package/dist/components/OfficeMap/useOfficeMap.js +0 -20
  450. package/dist/components/OfficeMap/useOfficeMap.js.map +0 -1
  451. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  452. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -12
  453. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  454. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  455. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  456. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  457. package/lib/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  458. package/lib/components/ExchangeRateOffice/Currencies.js +0 -10
  459. package/lib/components/ExchangeRateOffice/Currencies.js.map +0 -1
  460. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  461. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +0 -6
  462. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -14
  463. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  464. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  465. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +0 -2
  466. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  467. package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  468. package/lib/components/ExchangeRateOffice/renderCurrencies.js +0 -27
  469. package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  470. package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  471. package/lib/components/ExchangeRateOffice/renderTableHeader.js +0 -6
  472. package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  473. package/lib/components/OfficeMap/OfficeMap.d.ts +0 -5
  474. package/lib/components/OfficeMap/OfficeMap.js +0 -41
  475. package/lib/components/OfficeMap/OfficeMap.js.map +0 -1
  476. package/lib/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  477. package/lib/components/OfficeMap/OfficeMapContent.js +0 -2
  478. package/lib/components/OfficeMap/OfficeMapContent.js.map +0 -1
  479. package/lib/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  480. package/lib/components/OfficeMap/mockOfficeMap.js +0 -80
  481. package/lib/components/OfficeMap/mockOfficeMap.js.map +0 -1
  482. package/lib/components/OfficeMap/nearbyOffices.d.ts +0 -2
  483. package/lib/components/OfficeMap/nearbyOffices.js +0 -7
  484. package/lib/components/OfficeMap/nearbyOffices.js.map +0 -1
  485. package/lib/components/OfficeMap/renderFunctions.d.ts +0 -5
  486. package/lib/components/OfficeMap/renderFunctions.js +0 -15
  487. package/lib/components/OfficeMap/renderFunctions.js.map +0 -1
  488. package/lib/components/OfficeMap/useOfficeMap.d.ts +0 -59
  489. package/lib/components/OfficeMap/useOfficeMap.js +0 -17
  490. package/lib/components/OfficeMap/useOfficeMap.js.map +0 -1
  491. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  492. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +0 -6
  493. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -10
  494. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  495. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  496. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  497. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  498. package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  499. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  500. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  501. package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  502. package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  503. package/mobile/bundle/components/OfficeMap/OfficeMap.d.ts +0 -5
  504. package/mobile/bundle/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  505. package/mobile/bundle/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  506. package/mobile/bundle/components/OfficeMap/nearbyOffices.d.ts +0 -2
  507. package/mobile/bundle/components/OfficeMap/renderFunctions.d.ts +0 -5
  508. package/mobile/bundle/components/OfficeMap/useOfficeMap.d.ts +0 -59
  509. package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  510. package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  511. package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  512. package/mobile/dist/components/ExchangeRateOffice/Currencies.js +0 -12
  513. package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +0 -1
  514. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  515. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -16
  516. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  517. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  518. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  519. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  520. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +0 -30
  521. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  522. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  523. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +0 -9
  524. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  525. package/mobile/dist/components/OfficeMap/OfficeMap.d.ts +0 -5
  526. package/mobile/dist/components/OfficeMap/OfficeMap.js +0 -43
  527. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +0 -1
  528. package/mobile/dist/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  529. package/mobile/dist/components/OfficeMap/OfficeMapContent.js.map +0 -1
  530. package/mobile/dist/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  531. package/mobile/dist/components/OfficeMap/mockOfficeMap.js +0 -82
  532. package/mobile/dist/components/OfficeMap/mockOfficeMap.js.map +0 -1
  533. package/mobile/dist/components/OfficeMap/nearbyOffices.d.ts +0 -2
  534. package/mobile/dist/components/OfficeMap/nearbyOffices.js +0 -9
  535. package/mobile/dist/components/OfficeMap/nearbyOffices.js.map +0 -1
  536. package/mobile/dist/components/OfficeMap/renderFunctions.d.ts +0 -5
  537. package/mobile/dist/components/OfficeMap/renderFunctions.js +0 -20
  538. package/mobile/dist/components/OfficeMap/renderFunctions.js.map +0 -1
  539. package/mobile/dist/components/OfficeMap/useOfficeMap.d.ts +0 -59
  540. package/mobile/dist/components/OfficeMap/useOfficeMap.js +0 -20
  541. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +0 -1
  542. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  543. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -12
  544. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  545. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  546. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  547. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  548. package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +0 -8
  549. package/mobile/lib/components/ExchangeRateOffice/Currencies.js +0 -10
  550. package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +0 -1
  551. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +0 -5
  552. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +0 -14
  553. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +0 -1
  554. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +0 -36
  555. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +0 -2
  556. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +0 -1
  557. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +0 -3
  558. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +0 -27
  559. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +0 -1
  560. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +0 -2
  561. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +0 -6
  562. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +0 -1
  563. package/mobile/lib/components/OfficeMap/OfficeMap.d.ts +0 -5
  564. package/mobile/lib/components/OfficeMap/OfficeMap.js +0 -41
  565. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +0 -1
  566. package/mobile/lib/components/OfficeMap/OfficeMapContent.d.ts +0 -38
  567. package/mobile/lib/components/OfficeMap/OfficeMapContent.js +0 -2
  568. package/mobile/lib/components/OfficeMap/OfficeMapContent.js.map +0 -1
  569. package/mobile/lib/components/OfficeMap/mockOfficeMap.d.ts +0 -57
  570. package/mobile/lib/components/OfficeMap/mockOfficeMap.js +0 -80
  571. package/mobile/lib/components/OfficeMap/mockOfficeMap.js.map +0 -1
  572. package/mobile/lib/components/OfficeMap/nearbyOffices.d.ts +0 -2
  573. package/mobile/lib/components/OfficeMap/nearbyOffices.js +0 -7
  574. package/mobile/lib/components/OfficeMap/nearbyOffices.js.map +0 -1
  575. package/mobile/lib/components/OfficeMap/renderFunctions.d.ts +0 -5
  576. package/mobile/lib/components/OfficeMap/renderFunctions.js +0 -15
  577. package/mobile/lib/components/OfficeMap/renderFunctions.js.map +0 -1
  578. package/mobile/lib/components/OfficeMap/useOfficeMap.d.ts +0 -59
  579. package/mobile/lib/components/OfficeMap/useOfficeMap.js +0 -17
  580. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +0 -1
  581. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +0 -5
  582. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +0 -10
  583. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +0 -1
  584. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +0 -11
  585. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js +0 -2
  586. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +0 -1
  587. package/mobile/src/components/ExchangeRateOffice/Currencies.ts +0 -8
  588. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +0 -32
  589. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +0 -62
  590. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +0 -36
  591. package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +0 -73
  592. package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +0 -11
  593. package/mobile/src/components/OfficeMap/OfficeMap.tsx +0 -76
  594. package/mobile/src/components/OfficeMap/OfficeMapContent.ts +0 -42
  595. package/mobile/src/components/OfficeMap/mockOfficeMap.ts +0 -79
  596. package/mobile/src/components/OfficeMap/nearbyOffices.ts +0 -8
  597. package/mobile/src/components/OfficeMap/renderFunctions.tsx +0 -75
  598. package/mobile/src/components/OfficeMap/useOfficeMap.ts +0 -24
  599. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +0 -49
  600. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +0 -37
  601. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +0 -11
  602. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +0 -14
  603. package/src/components/ExchangeRateOffice/Currencies.ts +0 -8
  604. package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +0 -32
  605. package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +0 -79
  606. package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +0 -62
  607. package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +0 -36
  608. package/src/components/ExchangeRateOffice/renderCurrencies.tsx +0 -73
  609. package/src/components/ExchangeRateOffice/renderTableHeader.tsx +0 -11
  610. package/src/components/OfficeMap/OfficeMap.fixture.tsx +0 -11
  611. package/src/components/OfficeMap/OfficeMap.tsx +0 -76
  612. package/src/components/OfficeMap/OfficeMapContent.ts +0 -42
  613. package/src/components/OfficeMap/mockOfficeMap.ts +0 -79
  614. package/src/components/OfficeMap/nearbyOffices.ts +0 -8
  615. package/src/components/OfficeMap/renderFunctions.tsx +0 -75
  616. package/src/components/OfficeMap/useOfficeMap.ts +0 -24
  617. package/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +0 -49
  618. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +0 -44
  619. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +0 -37
  620. package/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +0 -11
  621. package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +0 -14
  622. /package/mobile/src/components/{ExchangeRateOffice/ExchangeRateOffice.ui.json → OfficesAtmsMap/OfficesAtmsMap.ui.json} +0 -0
  623. /package/mobile/src/components/{OfficeMap/OfficeMap.ui.json → OfficesAtmsMap/OfficesAtmsMaps.example.json} +0 -0
  624. /package/src/components/{ExchangeRateOffice/ExchangeRateOffice.ui.json → OfficesAtmsMap/OfficesAtmsMap.ui.json} +0 -0
  625. /package/src/components/{OfficeMap/OfficeMap.ui.json → OfficesAtmsMap/OfficesAtmsMaps.example.json} +0 -0
@@ -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,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { Text } from '../../ui-kit/Text/Text.js';
4
+ import { style } from '../../utils/style.js';
5
+ export const CardCell = JSX(({ className, label, value, subText, subColor }) => {
6
+ const textItems = value?.split(',') ?? [];
7
+ if (!textItems.length && !subText) {
8
+ return null;
9
+ }
10
+ return (_jsxs("div", { className: style('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? (_jsx(Text, { color: "text-secondary-text", font: "font-light", size: "text-m", children: label })) : null, textItems.filter(Boolean).map((text, i) => (_jsx(Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? (_jsx(Text, { color: subColor, size: "text-m", children: subText })) : null] }));
11
+ });
12
+ //# sourceMappingURL=CardCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardCell.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAU1C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,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,eAAK,SAAS,EAAE,KAAK,CAAC,4CAA4C,EAAE,SAAS,CAAC,aAC3E,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,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,KAAC,IAAI,IAAiB,IAAI,EAAC,QAAQ,YAChC,IAAI,CAAC,IAAI,EAAE,IADH,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,EACD,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,IAAI,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,5 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { style } from '../../utils/style.js';
4
+ export const CardRow = JSX(({ className, children }) => (_jsx("div", { className: style('flex border-t border-solid border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
5
+ //# sourceMappingURL=CardRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardRow.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAM1C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpE,cACE,SAAS,EAAE,KAAK,CACd,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,72 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
4
+ import { useForm } from '../../hooks/useForm.js';
5
+ import { useLocation } from '../../hooks/useLocation.js';
6
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
7
+ import { Button } from '../../ui-kit/Button/Button.js';
8
+ import { Checkbox } from '../../ui-kit/Checkbox/Checkbox.js';
9
+ import { Heading } from '../../ui-kit/Heading/Heading.js';
10
+ import { Icon } from '../../ui-kit/Icon/Icon.js';
11
+ import { Img } from '../../ui-kit/Img/Img.js';
12
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
13
+ import { Text } from '../../ui-kit/Text/Text.js';
14
+ import { YandexMap } from '../../ui-kit/YandexMap/YandexMap.js';
15
+ import { style } from '../../utils/style.js';
16
+ import { renderAtmCard } from './renderAtmCard.js';
17
+ import { renderOfficeCard } from './renderOfficeCard.js';
18
+ import { useOfficesAtmsMap } from './useOfficesAtmsMap.js';
19
+ const INITIAL_FILTRATION_OFFICES_STATE = {
20
+ safeBoxCaseVolumes: false,
21
+ workingSaturday: false,
22
+ };
23
+ const INITIAL_FILTRATION_ATMS_STATE = {
24
+ terminalTypeAtms: true,
25
+ terminalTypeTerm: false,
26
+ workAllTime: false,
27
+ billAcceptorEnable: false,
28
+ };
29
+ const FILTRATION_LABELS = {
30
+ safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
31
+ workingSaturday: 'Открыты по субботам',
32
+ terminalTypeAtms: 'Банкоматы',
33
+ terminalTypeTerm: 'Терминалы',
34
+ workAllTime: 'Круглосуточно',
35
+ billAcceptorEnable: 'Прием наличных',
36
+ };
37
+ const FILTRATION_BRANCHES_PREDICATES = {
38
+ safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
39
+ workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
40
+ };
41
+ const FILTRATION_ATMS_PREDICATES = {
42
+ terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
43
+ terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
44
+ workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
45
+ billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
46
+ };
47
+ export const OfficesAtmsMap = JSX(({ data, className = '', ...rest }) => {
48
+ const dataType = data?.dataType ?? 'offices';
49
+ const initialState = dataType === 'offices' ? INITIAL_FILTRATION_OFFICES_STATE : INITIAL_FILTRATION_ATMS_STATE;
50
+ const [filtrationState, { field, reset }] = useForm(initialState);
51
+ const [currentLocation] = useLocation();
52
+ const [regionCode, title] = useMemo(() => [currentLocation?.code || '000', getTitle(currentLocation?.name, dataType)], [currentLocation, dataType]);
53
+ const officesAtmsData = useOfficesAtmsMap(regionCode, dataType);
54
+ const filteredOfficesAtmsData = filterOfficesAtms(officesAtmsData, filtrationState);
55
+ const lengthOfficesAtms = filteredOfficesAtmsData.length;
56
+ const points = filteredOfficesAtmsData
57
+ .map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
58
+ .filter((_) => _ && _.length === 2);
59
+ return (_jsxs(BlockWrapper, { version: "transparent", className: style('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [_jsxs("div", { className: "col-span-12 bg-white", children: [_jsxs("div", { className: "pt-6xl px-6xl", children: [_jsxs("div", { className: "flex gap-2 pb-2xl", children: [_jsx(Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? (_jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), _jsx("div", { className: "h-[600px]", children: _jsx(YandexMap, { points: points, className: "h-full" }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)] }));
60
+ });
61
+ const filterOfficesAtms = (data, filtrationState) => {
62
+ const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
63
+ return 'name' in data
64
+ ? data.filter(filterOffices(truthyFilters))
65
+ : data.filter(filterAtms(truthyFilters));
66
+ };
67
+ const filterOffices = (filters) => (item) => filters.every((filterName) => FILTRATION_BRANCHES_PREDICATES[filterName](item));
68
+ const filterAtms = (filters) => (item) => filters.every((filterName) => FILTRATION_ATMS_PREDICATES[filterName](item));
69
+ const getTitle = (name = '', dataType = 'offices') => dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
70
+ const renderFiltrationForm = (filters, { field, reset }) => (_jsxs("div", { className: "pb-2xl", children: [filters?.length ? (_jsx("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => (_jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, _jsx(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: _jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
71
+ const renderDescriptionBlock = ({ description, list }) => (_jsxs("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [_jsx(Paragraph, { size: "text-l", font: "font-light", children: description }), list?.length ? (_jsx("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => (_jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? _jsx(Img, { image: item.image }) : null, item?.text ? (_jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
72
+ //# sourceMappingURL=OfficesAtmsMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAuB,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAe,iBAAiB,EAAE,MAAM,qBAAq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E,EAAE,CAAC,CACjE,eAAK,SAAS,EAAC,2CAA2C,aACxD,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YACvC,WAAW,GACF,EACX,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAC,8BAA8B,YAC1C,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,eAAqB,SAAS,EAAC,0BAA0B,aACtD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,CAAC,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
+ };
@@ -0,0 +1,2 @@
1
+ export {};
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,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { Icon } from '../../ui-kit/Icon/Icon.js';
3
+ import { Text } from '../../ui-kit/Text/Text.js';
4
+ import { Badge } from './Badge.js';
5
+ import { CardCell } from './CardCell.js';
6
+ import { CardRow } from './CardRow.js';
7
+ export const renderAtmCard = ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode = '', atmAccess = '', workTime, }, index) => {
8
+ const additionalInfo = [
9
+ {
10
+ label: 'Устройство',
11
+ value: capitalizedFirstLetter(terminalType),
12
+ },
13
+ { label: 'Модуль приема наличных', value: billAcceptorEnable ? 'Да' : 'Нет' },
14
+ {
15
+ label: 'Прием наличных пачкой',
16
+ value: billAcceptorType === 'банкомат принимает пачками' ? 'Да' : 'Нет',
17
+ },
18
+ {
19
+ label: 'Доступность',
20
+ value: ['внешняя установка', 'территория банка'].includes(atmAccess) ? 'Общедоступный' : '',
21
+ },
22
+ { label: 'Регистрационный номер', value: atmCode },
23
+ ];
24
+ return (_jsxs("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [_jsxs("div", { className: "flex justify-between", children: [_jsx(Text, { size: "text-h4", children: capitalizedFirstLetter(location) }), _jsx(Badge, { color: "green", children: capitalizedFirstLetter(workTime) })] }), address ? (_jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [_jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), _jsx(Text, { size: "text-l", children: address })] })) : null, _jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) })] }, String(index)));
25
+ };
26
+ const renderInfo = (item, index) => (_jsx(CardCell, { ...item }, String(index)));
27
+ const capitalizedFirstLetter = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
28
+ //# sourceMappingURL=renderAtmCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderAtmCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderAtmCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,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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,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=renderCurrentDaySchedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderCurrentDaySchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=renderDay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderDay.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDay.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { Text } from '../../ui-kit/Text/Text.js';
3
+ export const renderLunchHour = (lunchHour) => {
4
+ const hasLunch = /\d+/gi.test(lunchHour);
5
+ return hasLunch ? (_jsxs("div", { className: "flex flex-row w-full pb-2xs", children: [_jsx("div", { className: "pr-s", children: _jsx(Text, { size: "text-l", color: "text-error", children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }) }), _jsx("div", { children: _jsx(Text, { size: "text-l", color: "text-error", children: lunchHour }) })] })) : (_jsx("div", { className: "items-center w-full pb-2xs", children: _jsx("div", { children: _jsx(Text, { size: "text-m", color: "text-primary-main", font: "font-light", children: lunchHour }) }) }));
6
+ };
7
+ //# sourceMappingURL=renderLunchHour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderLunchHour.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderLunchHour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,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,eAAK,SAAS,EAAC,6BAA6B,aAC1C,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,2DAE/B,GACH,EACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,YACnC,SAAS,GACL,GACH,IACF,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,4BAA4B,YACzC,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,SAAS,GACL,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -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,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { Icon } from '../../ui-kit/Icon/Icon.js';
3
+ import { Text } from '../../ui-kit/Text/Text.js';
4
+ import { Badge } from './Badge.js';
5
+ import { CardCell } from './CardCell.js';
6
+ import { CardRow } from './CardRow.js';
7
+ const WEEKDAY_MAP = [
8
+ ['Понедельник', 'workingMonday'],
9
+ ['Вторник', 'workingTuesday'],
10
+ ['Среда', 'workingWednesday'],
11
+ ['Четверг', 'workingThursday'],
12
+ ['Пятница', 'workingFriday'],
13
+ ['Суббота', 'workingSaturday'],
14
+ ['Воскресенье', 'workingSunday'],
15
+ ];
16
+ const currentWeekDayIdx = new Date().getDay();
17
+ export const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
18
+ const workScheduleWeek = workSchedule ? getWorkScheduleWeek(workSchedule) : null;
19
+ const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
20
+ return (_jsxs("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [_jsxs("div", { className: "flex justify-between", children: [_jsx(Text, { size: "text-h4", children: name }), renderCurrentDaySchedule(currentWeekDay)] }), address ? (_jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [_jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), _jsx(Text, { size: "text-l", children: address })] })) : null, _jsxs(CardRow, { className: "flex-wrap", children: [_jsx(CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), _jsx(CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), _jsx(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 }), _jsx(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 }), _jsx(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 }), _jsx(CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workScheduleWeek?.length ? _jsx(CardRow, { children: workScheduleWeek?.map(renderDay) }) : null, exchangeRate?.currencies?.length ? (_jsx(CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(renderCurrency) })) : null] }, String(index)));
21
+ };
22
+ const getWorkScheduleWeek = (workSchedule) => WEEKDAY_MAP.map(([title, key]) => {
23
+ const dayOff = ['workingSaturday', 'workingSunday'].includes(key);
24
+ return {
25
+ title,
26
+ status: Boolean(workSchedule?.[key]),
27
+ workTime: dayOff ? workSchedule?.workTimeSaturday : workSchedule?.workTime,
28
+ lunchHour: dayOff ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour,
29
+ get hasLunch() {
30
+ return /\d+/.test(this.lunchHour ?? '');
31
+ },
32
+ };
33
+ });
34
+ export const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => (_jsxs("div", { className: "flex gap-lg h-full", children: [currency?.currency ? _jsx(CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? _jsx(CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? _jsx(CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
35
+ //TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
36
+ export const renderCurrentDaySchedule = (workScheduleWeek) => {
37
+ if (!workScheduleWeek) {
38
+ return null;
39
+ }
40
+ const { lunchHour, status, workTime, hasLunch } = workScheduleWeek;
41
+ return status ? (_jsxs("div", { className: "flex gap-s", children: [workTime ? _jsx(Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? _jsx(Badge, { color: "yellow", children: lunchHour }) : null] })) : (_jsx(Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
42
+ };
43
+ export const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => (_jsx(CardCell, { label: title, value: status && workTime ? workTime : '', subText: !status ? 'Выходной' : lunchHour, subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
44
+ //# sourceMappingURL=renderOfficeCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;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;AAE9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,EACE,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB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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"}
@@ -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,16 @@
1
+ import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
+ import { fetchJSON } from '../../utils/fetchJSON.js';
3
+ const MAP_URL = {
4
+ offices: '/api/v1/branches',
5
+ atms: '/api/v1/atms',
6
+ };
7
+ const EMPTY_VALUE = [];
8
+ export function useOfficesAtmsMap(regionCode, type = 'offices') {
9
+ const { data } = useAsyncData(`${MAP_URL[type]}?regionCode=${regionCode}`, fetchMap);
10
+ return data || EMPTY_VALUE;
11
+ }
12
+ const fetchMap = async (url) => {
13
+ const result = await fetchJSON(url, { method: 'GET' });
14
+ return result || EMPTY_VALUE;
15
+ };
16
+ //# sourceMappingURL=useOfficesAtmsMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/useOfficesAtmsMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,OAAO,GAAG;IACd,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,cAAc;CACrB,CAAC;AACF,MAAM,WAAW,GAAG,EAAE,CAAC;AAgGvB,MAAM,UAAU,iBAAiB,CAAC,UAAmB,EAAE,OAAiB,SAAS;IAC/E,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,UAAU,EAAE,EAC3C,QAAQ,CACT,CAAC;IAEF,OAAO,IAAI,IAAI,WAAW,CAAC;AAC7B,CAAC;AAED,MAAM,QAAQ,GAAG,KAAK,EAAE,GAAW,EAA6B,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAmB,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEzE,OAAO,MAAM,IAAI,WAAW,CAAC;AAC/B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { Text } from '../../ui-kit/Text/Text.js';
3
3
  import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat.js';
4
- export const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (_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;
5
- const renderValueBlock = (title, value = 0) => (_jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre", children: [_jsx(Text, { font: "font-light", size: "text-l", children: title }), _jsxs(Text, { size: "text-h6", color: "text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
4
+ export const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (_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;
5
+ const renderValueBlock = (title, value = 0) => (_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: [_jsx(Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: title }), _jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
6
6
  //# sourceMappingURL=renderInsuranceSumMonth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAE,UAAmB,EAAE,EAAE,CAC3E,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,eAAK,SAAS,EAAC,4EAA4E,aACxF,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAClE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/E,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,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,CAAC,CAAC,KAAK,CAAC,eACzB,IACH,CACP,CAAC"}
@@ -3,5 +3,5 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
5
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
6
- export const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (_jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: _jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isBackground: true, ...imageOptions }, ...rest, children: additionalDescription ? (_jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
6
+ export const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (_jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: _jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isBackground: true, ...imageOptions }, ...rest, children: additionalDescription ? (_jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
7
7
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAK7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,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,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,KAAC,eAAe,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,KAAC,SAAS,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,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAK7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,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,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,KAAC,eAAe,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,KAAC,SAAS,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"}
@@ -10,10 +10,11 @@ import { RichText } from '../RichText/RichText.js';
10
10
  import { Tags } from '../Tags/Tags.js';
11
11
  export const BaseProductTile = 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, }) => {
12
12
  const img = image?.src ? _jsx(Img, { image: image }) : null;
13
- const headline = (_jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
13
+ const headline = renderHeadline({ title, description, headlineVersion, align });
14
14
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
15
- return (_jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: _jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (_jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? _jsx(RichText, { __html: __html }) : null, items?.length ? (_jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
15
+ return (_jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: _jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (_jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? _jsx(RichText, { __html: __html }) : null, items?.length ? (_jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
16
16
  });
17
17
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
18
18
  const renderTags = (tags) => (tags?.length ? _jsx(Tags, { tags: tags }) : null);
19
+ const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? (_jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
19
20
  //# sourceMappingURL=BaseProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAG9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,YAA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F,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,KAAC,IAAI,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,KAAC,QAAQ,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"}
@@ -2,12 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { style } from '../../utils/style.js';
4
4
  const imageAlignmentMap = {
5
- start: '@lg:self-start',
6
- center: '@lg:self-center',
7
- end: '@lg:self-end',
5
+ start: '@xl:self-start',
6
+ center: '@xl:self-center',
7
+ end: '@xl:self-end',
8
8
  };
9
- export const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => (_jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? _jsx("div", { className: "relative", children: title }) : null, _jsxs("div", { className: 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 }), _jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, _jsx("div", { className: "grow", children: children }), backImage ? (_jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
10
- className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
9
+ export const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => (_jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? _jsx("div", { className: "relative", children: title }) : null, _jsxs("div", { className: 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 }), _jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, _jsx("div", { className: "grow", children: children }), backImage ? (_jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
10
+ className: isImageAlwaysOnRight ? '' : '@xl:order-1',
11
11
  imageAlign,
12
12
  })] })] })));
13
13
  const renderImageContainer = (image, { className, imageAlign }) => image ? (_jsx("div", { className: 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,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1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ACxB,aAEA,UAAU,EACX,cAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAO,EACrC,SAAS,CAAC,CAAC,CAAC,CACX,cAAK,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,cACE,SAAS,EAAE,KAAK,CACd,8BAA8B,EAC9B,UAAU,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAC3C,SAAS,CACV,YAEA,KAAK,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { style } from '../../utils/style.js';
3
3
  import { Img } from '../Img/Img.js';
4
- export const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? (_jsx("div", { className: style('w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
4
+ export const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? (_jsx("div", { className: 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'
5
5
  ? 'bg-secondary-light text-primary-main'
6
6
  : 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: _jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
7
7
  //# sourceMappingURL=renderBenefitIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,CAAC,CAAC,CAAC,CACL,cACE,SAAS,EAAE,KAAK,CACd,6EAA6E,EAC7E,eAAe,KAAK,QAAQ;QAC1B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAClG,YAED,KAAC,GAAG,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"}
1
+ {"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,CAAC,CAAC,CAAC,CACL,cACE,SAAS,EAAE,KAAK,CACd,yGAAyG,EACzG,eAAe,KAAK,QAAQ;QAC1B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAClG,YAED,KAAC,GAAG,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"}
@@ -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)[];
@@ -4,6 +4,6 @@ import { renderBenefitDescription } from './renderBenefitDescription.js';
4
4
  import { renderBenefitLabel } from './renderBenefitLabel.js';
5
5
  export const renderBenefitText = (_, i) => _.type === 'rte' && '__html' in _ && _.__html ? (_jsx(RichText, { ..._ }, `rte-${i}`)) : ([
6
6
  'label' in _ ? renderBenefitLabel(_.label, i) : null,
7
- 'description' in _ ? renderBenefitDescription(_.description, i) : null,
7
+ 'description' in _ ? (_jsx("span", { className: _.descriptionClassName, children: renderBenefitDescription(_.description, i) }, String(i))) : null,
8
8
  ]);
9
9
  //# sourceMappingURL=renderBenefitText.js.map