@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
@@ -1 +1 @@
1
- {"version":3,"file":"renderBenefitText.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitText.ts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E,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;IACpD,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,CACnB,eAAsB,SAAS,EAAE,CAAC,CAAC,oBAAoB,YACpD,wBAAwB,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,IADlC,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,CAAC,CAAC,IAAI;CACT,CACF,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { BenefitsListContent } from './BenefitsListContent';
2
2
  export interface BenefitsListProps extends BenefitsListContent {
3
3
  className?: string;
4
+ descriptionClassName?: string;
4
5
  }
@@ -2,7 +2,7 @@ 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
4
  import { Button } from './Button.js';
5
- export const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (_jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
5
+ export const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (_jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-lg sm:gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
6
6
  const renderButton = (buttonClassName = '') => (button, index) => {
7
7
  const { text, icon, iconRight, version, ...rest } = button || {};
8
8
  const iconVersion = getIconVersion(icon, version);
@@ -1 +1 @@
1
- {"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MA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X,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,cAAc,GAAG,CAAC,IAAyB,EAAE,OAAO,GAAG,WAAW,EAAE,EAAE;IAC1E,MAAM,kBAAkB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEvE,OAAO,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CACzC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CACxB,KAAC,GAAG,IACF,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,cAAc,CAAC,EAClD,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -10,7 +10,7 @@ export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h4' | 'text-h
10
10
  /**
11
11
  * @title Цвет текста
12
12
  */
13
- export declare type TextColor = BlockVersionMolecule<'' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-white/80' | 'text-green'>;
13
+ export declare type TextColor = BlockVersionMolecule<'' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-yellow' | 'text-error' | 'text-white' | 'text-white/80' | 'text-green' | 'text-green-dark'>;
14
14
  /**
15
15
  * @title Выравнивание
16
16
  * @enumNames [
@@ -2,7 +2,6 @@ interface YandexMapProps {
2
2
  points?: number[][];
3
3
  className?: string;
4
4
  zoom?: number;
5
- showSearchField?: boolean;
6
5
  }
7
6
  export declare const YandexMap: import("@redneckz/uni-jsx").UNIComponent<YandexMapProps, any, any>;
8
7
  export {};
@@ -3,14 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
3
3
  // @ts-nocheck
4
4
  import { JSX } from '@redneckz/uni-jsx';
5
5
  import { useEffect, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
6
+ import { style } from '../../utils/style.js';
6
7
  import { Icon } from '../Icon/Icon.js';
7
- import { mockPoints } from './mockPoints.js';
8
+ import { ZoomButton } from './ZoomButton.js';
8
9
  import { renderClusterer } from './renderClusterer.js';
9
10
  import { renderOpenMap } from './renderOpenMap.js';
10
- import { renderSearchField } from './renderSearchField.js';
11
11
  import { renderUserGeolocation } from './renderUserGeolocation.js';
12
12
  import { useYandexMaps } from './useYandexMaps.js';
13
- import { ZoomButton } from './ZoomButton.js';
14
13
  const FULLSCREEN_STYLES = {
15
14
  border: 'border border-transparent rounded-md ',
16
15
  position: 'absolute flex items-center justify-center',
@@ -21,15 +20,16 @@ const FULLSCREEN_STYLES = {
21
20
  hover: 'hover:bg-primary-hover',
22
21
  other: 'select-none cursor-pointer',
23
22
  };
23
+ const DEFAULT_CENTER_COORDS = [55.753995, 37.614069];
24
24
  // TODO: Поле для поиска: невыяснено среди каких данных делать поиск (искать в имени офиса, в адресе, метро и т.д.).
25
25
  // Сейчас реализован поиск среди тестовых данных
26
26
  // TODO: Также выяснить что делать когда ничего не найдено
27
27
  // TODO: На макетах также когда есть поле поиска нет кнопки открыть на карте.
28
- export const YandexMap = JSX(({ points, className = '', zoom = 5, showSearchField = false }) => {
28
+ export const YandexMap = JSX(({ points, className = '', zoom = 5 }) => {
29
29
  const map = useRef(null);
30
30
  const yandexMaps = useYandexMaps();
31
31
  const [isFullScreen, setIsFullScreen] = useState();
32
- const pointsCenter = points ? getCenterPoint(points) : [55.753995, 37.614069];
32
+ const pointsCenter = points ? getCenterPoint(points) : DEFAULT_CENTER_COORDS;
33
33
  useEffect(() => {
34
34
  if (!map?.current) {
35
35
  yandexMaps?.ready(() => {
@@ -42,13 +42,13 @@ export const YandexMap = JSX(({ points, className = '', zoom = 5, showSearchFiel
42
42
  renderClusterer(yandexMaps, map.current, points);
43
43
  });
44
44
  }
45
- }, [yandexMaps, map, points]);
46
- useEffect(() => {
47
- if (map.current && points?.length && yandexMaps) {
48
- const newPoints = points.length < 1 ? normalizePoints(mockPoints) : points;
49
- renderClusterer(yandexMaps, map.current, newPoints);
45
+ if (map.current && yandexMaps) {
46
+ renderClusterer(yandexMaps, map.current, points);
47
+ if (!points?.length) {
48
+ map.current.setCenter(DEFAULT_CENTER_COORDS);
49
+ }
50
50
  }
51
- }, [map, points, yandexMaps]);
51
+ }, [yandexMaps, map, points]);
52
52
  if (!yandexMaps) {
53
53
  return null;
54
54
  }
@@ -63,21 +63,12 @@ export const YandexMap = JSX(({ points, className = '', zoom = 5, showSearchFiel
63
63
  setIsFullScreen(container.isFullscreen());
64
64
  };
65
65
  const zIndex = isFullScreen ? 'z-[100000]' : 'z-10';
66
- const updatePointsToRender = (newPoints) => {
67
- if (newPoints) {
68
- const normalizedPoints = normalizePoints(newPoints);
69
- setPointsToRender(normalizedPoints);
70
- }
71
- };
72
- return (_jsxs("div", { id: "map", className: `${isFullScreen ? '' : 'relative'} w-full ${className}`, children: [_jsx("div", { className: `absolute flex left-2 top-4 w-1/2 ${zIndex}`, children: showSearchField
73
- ? renderSearchField(mockPoints, yandexMaps, updatePointsToRender)
74
- : renderOpenMap(pointsCenter) }), _jsx("div", { className: `${Object.values(FULLSCREEN_STYLES).join(' ')} ${zIndex} right-2 top-4 bg-white`, onClick: toggleFullscreen, children: _jsx(Icon, { name: "FullScreenIcon", width: "16", height: "16" }) }), _jsxs("div", { className: `absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${zIndex}`, children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map.current, yandexMaps, `right-2 top-80 ${zIndex}`)] }));
66
+ return (_jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [_jsx("div", { className: style('absolute flex left-2 top-4 w-1/2', zIndex), children: renderOpenMap(pointsCenter) }), _jsx("div", { className: style(Object.values(FULLSCREEN_STYLES), zIndex, 'right-2 top-4 bg-white'), onClick: toggleFullscreen, children: _jsx(Icon, { name: "FullScreenIcon", width: "16", height: "16" }) }), _jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map.current, yandexMaps, style('right-2 top-80', zIndex))] }));
75
67
  });
76
68
  const getCenterPoint = (points) => [
77
69
  getArraySumAndAverage(mapByIndex(points, 0)),
78
70
  getArraySumAndAverage(mapByIndex(points, 1)),
79
71
  ];
80
72
  const mapByIndex = (arr, index) => arr.map((a) => a[index]);
81
- const getArraySumAndAverage = (arr) => arr.reduce((a, b) => a + b) / arr.length;
82
- const normalizePoints = (points) => (points ? points.map((_) => _.coords) : null);
73
+ const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
83
74
  //# sourceMappingURL=YandexMap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAc,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,C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,cAAc,GAAG,CAAC,MAAkB,EAAE,EAAE,CAAC;IAC7C,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,KAAa,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAEhF,MAAM,qBAAqB,GAAG,CAAC,GAAe,EAAE,EAAE,CAChD,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC"}
@@ -4,7 +4,7 @@ export function renderClusterer(yandexMaps, map, points) {
4
4
  const clusterer = new yandexMaps.Clusterer({
5
5
  clusterIcons: [
6
6
  {
7
- href: 'icons/MapMarkerClusterIcon.svg',
7
+ href: '/icons/MapMarkerClusterIcon.svg',
8
8
  size: [78, 84],
9
9
  offset: [-35, -50],
10
10
  },
@@ -15,7 +15,7 @@ export function renderClusterer(yandexMaps, map, points) {
15
15
  });
16
16
  const geoObjects = points.map((point) => new yandexMaps.Placemark(point, {}, {
17
17
  iconLayout: 'default#image',
18
- iconImageHref: 'icons/MapMarkerSingleIcon.svg',
18
+ iconImageHref: '/icons/MapMarkerSingleIcon.svg',
19
19
  iconImageSize: [78, 84],
20
20
  iconImageOffset: [-35, -50],
21
21
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderClusterer.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,UAAwB,EAAE,GAAc,EAAE,MAAkB;IAC1F,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC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x as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { style } from '../../utils/style.js';
2
3
  import { Icon } from '../Icon/Icon.js';
3
4
  const styles = {
4
5
  border: 'border border-transparent rounded-md',
@@ -23,6 +24,6 @@ export const renderSearchField = (points, yandexMaps, updatePointsToRender) => {
23
24
  updatePointsToRender(null);
24
25
  }
25
26
  };
26
- return (_jsxs("div", { className: `${Object.values(styles).join(' ')} bg-white py-s pl-5xl pr-m w-full`, children: [_jsx(Icon, { name: "LoupeIcon", iconVersion: "black", width: "20", height: "20", className: "absolute left-4" }), _jsx("input", { type: "text", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0438\u043B\u0438 \u043C\u0435\u0442\u0440\u043E", onChange: onChange, className: "border-0 focus:border-0 outline-0 w-full" })] }));
27
+ return (_jsxs("div", { className: style(Object.values(styles), 'bg-white py-s pl-5xl pr-m w-full'), children: [_jsx(Icon, { name: "LoupeIcon", iconVersion: "black", width: "20", height: "20", className: "absolute left-4" }), _jsx("input", { type: "text", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0438\u043B\u0438 \u043C\u0435\u0442\u0440\u043E", onChange: onChange, className: "border-0 focus:border-0 outline-0 w-full" })] }));
27
28
  };
28
29
  //# sourceMappingURL=renderSearchField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderSearchField.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderSearchField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,MAAM,GAAG;IACb,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,4BAA4B;IACtC,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,sCAAsC;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,MAAoB,EACpB,UAAqB,EACrB,oBAAwD,EACxD,EAAE;IACF,MAAM,QAAQ,GAAG,CAAC,CAAsC,EAAE,EAAE;QAC1D,MAAM,KAAK,GAAW,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3E,IAAI,KAAK,EAAE;YACT,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAa,EAAE,EAAE;gBACnD,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;gBAC3C,IAAI,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;oBACrC,OAAO,CAAC,CAAC;iBACV;gBAED,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;YACH,oBAAoB,CAAC,YAAY,CAAC,CAAC;SACpC;aAAM;YACL,oBAAoB,CAAC,IAAI,CAAC,CAAC;SAC5B;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,mCAAmC,aACnF,KAAC,IAAI,IACH,IAAI,EAAC,WAAW,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,iBAAiB,GAC3B,EACF,gBACE,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,6HAAyB,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,0CAA0C,GACpD,IACE,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"renderSearchField.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderSearchField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAA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AS,EAAC,0CAA0C,GACpD,IACE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -15,6 +15,6 @@ export async function fetchJSONUnsafe(url, options) {
15
15
  'Content-Type': 'application/json',
16
16
  },
17
17
  });
18
- return await response.json();
18
+ return response.json();
19
19
  }
20
20
  //# sourceMappingURL=fetchJSON.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchJSON.js","sourceRoot":"","sources":["../../src/utils/fetchJSON.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,GAAW,EACX,OAAqB;IAErB,IAAI;QACF,OAAO,GAAG,CAAC,CAAC,CAAC,MAAM,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KACzD;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACpB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAc,GAAW,EAAE,OAAqB;IACnF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAChC,GAAG,OAAO;QACV,OAAO,EAAE;YACP,GAAG,OAAO,EAAE,OAAO;YACnB,cAAc,EAAE,kBAAkB;SACnC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC"}
1
+ {"version":3,"file":"fetchJSON.js","sourceRoot":"","sources":["../../src/utils/fetchJSON.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,GAAW,EACX,OAAqB;IAErB,IAAI;QACF,OAAO,GAAG,CAAC,CAAC,CAAC,MAAM,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KACzD;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACpB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAc,GAAW,EAAE,OAAqB;IACnF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAChC,GAAG,OAAO;QACV,OAAO,EAAE;YACP,GAAG,OAAO,EAAE,OAAO;YACnB,cAAc,EAAE,kBAAkB;SACnC;KACF,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC"}
@@ -51,7 +51,7 @@ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
51
51
  fullName,
52
52
  inn,
53
53
  name,
54
- phone,
54
+ phone: phone.replace(/[^+\d]/g, ''),
55
55
  });
56
56
  },
57
57
  [onSubmit],
@@ -39,9 +39,9 @@ export const ApplicationFormBusinessCard = JSX<ApplicationFormsProps>((props) =>
39
39
  typeForm: 'bcrd',
40
40
  region: region?.text || '',
41
41
  name,
42
- phone,
43
42
  inn,
44
43
  mail,
44
+ phone: phone.replace(/[^+\d]/g, ''),
45
45
  });
46
46
  },
47
47
  [onSubmit],
@@ -49,7 +49,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
49
49
  fullName,
50
50
  inn,
51
51
  name,
52
- phone,
52
+ phone: phone.replace(/[^+\d]/g, ''),
53
53
  mail,
54
54
  region: region?.text || '',
55
55
  department: department?.text || '',
@@ -34,7 +34,7 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
34
34
  onSubmit({
35
35
  typeForm: 'dpst',
36
36
  name,
37
- phone,
37
+ phone: phone.replace(/[^+\d]/g, ''),
38
38
  });
39
39
  },
40
40
  [onSubmit],
@@ -4,6 +4,7 @@ import { useForm } from '../../hooks/useForm';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { objectValidator } from '../../validation/objectValidator';
6
6
  import { isValidationSuccess } from '../../validation/validator';
7
+ import { useGetRegions } from '../SafeDepositRental/useGetRegions';
7
8
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
8
9
  import { Footnote } from './Footnote';
9
10
  import type { WedFormState } from './WedFormState';
@@ -13,7 +14,6 @@ import { renderSubmitButton } from './renderSubmitButton';
13
14
  import { renderWedDataOrganization } from './renderWedDataOrganization';
14
15
  import { renderWedTextarea } from './renderWedTextarea';
15
16
  import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
16
- import { useGetRegions } from '../SafeDepositRental/useGetRegions';
17
17
 
18
18
  const initialFormState: WedFormState = {
19
19
  fullName: '',
@@ -64,7 +64,7 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
64
64
  typeForm: 'KVED',
65
65
  fullName,
66
66
  name,
67
- phone,
67
+ phone: phone.replace(/[^+\d]/g, ''),
68
68
  text,
69
69
  vedTypes: getVedTypes(vedTypes),
70
70
  PartnerComments: text,
@@ -10,12 +10,12 @@ import { titleSize } from './titleSize';
10
10
  export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
11
11
 
12
12
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
13
- const layerStyle = style(layerBaseStyle, 'absolute hidden sm:block border-transparent');
13
+ const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
14
14
 
15
15
  export const CarouselCard = JSX<CarouselCardProps>(
16
16
  ({ className, title, description, button, ...rest }) => (
17
17
  <BlockWrapper
18
- className={style('sm:pl-6xl sm:pb-4xl', className)}
18
+ className={style('sm:pl-6xl sm:pb-4xl @container-normal', className)}
19
19
  defaultPadding="p-0"
20
20
  {...rest}
21
21
  >
@@ -15,7 +15,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
15
15
  title={title}
16
16
  headlineVersion="XS"
17
17
  image={icon}
18
- imageOptions={{ directionRight: false, imageAlign: 'center' }}
18
+ imageOptions={{ directionRight: true, imageAlign: 'center' }}
19
19
  benefits={list?.map((_) => ({
20
20
  type: 'default',
21
21
  label: _.title,
@@ -0,0 +1,30 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { Text } from '../../ui-kit/Text/Text';
3
+ import type { TextColor } from '../../ui-kit/Text/TextProps';
4
+ import { style } from '../../utils/style';
5
+
6
+ const colorStyle: Record<string, { border: string; text: TextColor }> = {
7
+ yellow: { border: 'border-yellow-light', text: 'text-yellow' },
8
+ green: { border: 'border-green-light', text: 'text-green-dark' },
9
+ gray: { border: 'border-gray', text: 'text-secondary-text' },
10
+ red: { border: 'border-error', text: 'text-error' },
11
+ };
12
+
13
+ export interface BadgeProps {
14
+ className?: string;
15
+ color?: keyof typeof colorStyle;
16
+ }
17
+
18
+ export const Badge = JSX<BadgeProps>(({ className, children, color = 'gray' }) => (
19
+ <div
20
+ className={style(
21
+ 'p-s border border-gray rounded-md flex items-center',
22
+ colorStyle[color].border,
23
+ className,
24
+ )}
25
+ >
26
+ <Text size="text-m" color={colorStyle[color].text}>
27
+ {children}
28
+ </Text>
29
+ </div>
30
+ ));
@@ -0,0 +1,40 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { Text } from '../../ui-kit/Text/Text';
3
+ import type { TextColor } from '../../ui-kit/Text/TextProps';
4
+ import { style } from '../../utils/style';
5
+
6
+ export interface CardCellProps {
7
+ className?: string;
8
+ label?: string;
9
+ value?: string;
10
+ subText?: string;
11
+ subColor?: TextColor;
12
+ }
13
+
14
+ export const CardCell = JSX<CardCellProps>(({ className, label, value, subText, subColor }) => {
15
+ const textItems = value?.split(',') ?? [];
16
+
17
+ if (!textItems.length && !subText) {
18
+ return null;
19
+ }
20
+
21
+ return (
22
+ <div className={style('flex gap-2xs flex-col h-full max-w-[300px]', className)}>
23
+ {label ? (
24
+ <Text color="text-secondary-text" font="font-light" size="text-m">
25
+ {label}
26
+ </Text>
27
+ ) : null}
28
+ {textItems.filter(Boolean).map((text, i) => (
29
+ <Text key={String(i)} size="text-l">
30
+ {text.trim()}
31
+ </Text>
32
+ ))}
33
+ {subText ? (
34
+ <Text color={subColor} size="text-m">
35
+ {subText}
36
+ </Text>
37
+ ) : null}
38
+ </div>
39
+ );
40
+ });
@@ -0,0 +1,17 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { style } from '../../utils/style';
3
+
4
+ export interface CardRowProps {
5
+ className?: string;
6
+ }
7
+
8
+ export const CardRow = JSX<CardRowProps>(({ className, children }) => (
9
+ <div
10
+ className={style(
11
+ 'flex border-t border-solid border-main-divider py-xl gap-x-6xl gap-y-xl',
12
+ className,
13
+ )}
14
+ >
15
+ {children}
16
+ </div>
17
+ ));
@@ -0,0 +1,165 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
4
+ import { useLocation } from '../../hooks/useLocation';
5
+ import type { UniBlockProps } from '../../model/JSXBlock';
6
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
+ import { Button } from '../../ui-kit/Button/Button';
8
+ import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
9
+ import { Heading } from '../../ui-kit/Heading/Heading';
10
+ import { Icon } from '../../ui-kit/Icon/Icon';
11
+ import { Img } from '../../ui-kit/Img/Img';
12
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
13
+ import { Text } from '../../ui-kit/Text/Text';
14
+ import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
15
+ import { style } from '../../utils/style';
16
+ import type { AtmsDef, OfficesAtmsMapContent } from './OfficesAtmsMapContent';
17
+ import { renderAtmCard } from './renderAtmCard';
18
+ import { renderOfficeCard } from './renderOfficeCard';
19
+ import { Atm, Branch, useOfficesAtmsMap } from './useOfficesAtmsMap';
20
+
21
+ const INITIAL_FILTRATION_OFFICES_STATE = {
22
+ safeBoxCaseVolumes: false,
23
+ workingSaturday: false,
24
+ };
25
+
26
+ const INITIAL_FILTRATION_ATMS_STATE = {
27
+ terminalTypeAtms: true,
28
+ terminalTypeTerm: false,
29
+ workAllTime: false,
30
+ billAcceptorEnable: false,
31
+ };
32
+
33
+ const FILTRATION_LABELS = {
34
+ safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
35
+ workingSaturday: 'Открыты по субботам',
36
+ terminalTypeAtms: 'Банкоматы',
37
+ terminalTypeTerm: 'Терминалы',
38
+ workAllTime: 'Круглосуточно',
39
+ billAcceptorEnable: 'Прием наличных',
40
+ };
41
+
42
+ const FILTRATION_BRANCHES_PREDICATES = {
43
+ safeBoxCaseVolumes: (item: Branch) => Boolean(item.safeBoxCaseVolumes),
44
+ workingSaturday: (item: Branch) => Boolean(item.workSchedule?.workingSaturday),
45
+ };
46
+
47
+ const FILTRATION_ATMS_PREDICATES = {
48
+ terminalTypeAtms: (item: Atm) => item.terminalType?.toLowerCase() === 'банкомат',
49
+ terminalTypeTerm: (item: Atm) => item.terminalType?.toLowerCase() === 'терминал',
50
+ workAllTime: (item: Atm) => item.workTime?.toLowerCase() === 'круглосуточно',
51
+ billAcceptorEnable: (item: Atm) => Boolean(item.billAcceptorEnable),
52
+ };
53
+
54
+ export interface OfficesAtmsMapProps extends OfficesAtmsMapContent, UniBlockProps {}
55
+
56
+ export const OfficesAtmsMap = JSX<OfficesAtmsMapProps>(({ data, className = '', ...rest }) => {
57
+ const dataType = data?.dataType ?? 'offices';
58
+ const initialState =
59
+ dataType === 'offices' ? INITIAL_FILTRATION_OFFICES_STATE : INITIAL_FILTRATION_ATMS_STATE;
60
+ const [filtrationState, { field, reset }] = useForm(initialState);
61
+
62
+ const [currentLocation] = useLocation();
63
+
64
+ const [regionCode, title] = useMemo(
65
+ () => [currentLocation?.code || '000', getTitle(currentLocation?.name, dataType)],
66
+ [currentLocation, dataType],
67
+ );
68
+
69
+ const officesAtmsData = useOfficesAtmsMap(regionCode, dataType);
70
+
71
+ const filteredOfficesAtmsData = filterOfficesAtms(officesAtmsData, filtrationState);
72
+
73
+ const lengthOfficesAtms = filteredOfficesAtmsData.length;
74
+
75
+ const points = filteredOfficesAtmsData
76
+ .map((_: Branch | Atm) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean) as number[])
77
+ .filter((_) => _ && _.length === 2);
78
+
79
+ return (
80
+ <BlockWrapper
81
+ version="transparent"
82
+ className={style('grid grid-cols-12 gap-1', className)}
83
+ defaultPadding="p-0"
84
+ {...rest}
85
+ >
86
+ <div className="col-span-12 bg-white">
87
+ <div className="pt-6xl px-6xl">
88
+ <div className="flex gap-2 pb-2xl">
89
+ <Heading headingType="h2">{title}</Heading>
90
+ {lengthOfficesAtms ? (
91
+ <Text size="text-h2" color="text-secondary-text">{`(${lengthOfficesAtms})`}</Text>
92
+ ) : null}
93
+ </div>
94
+ {data && 'description' in data ? renderDescriptionBlock(data) : null}
95
+ {renderFiltrationForm(Object.keys(initialState), { field, reset })}
96
+ </div>
97
+ <div className="h-[600px]">
98
+ <YandexMap points={points} className="h-full" />
99
+ </div>
100
+ </div>
101
+ {filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)}
102
+ </BlockWrapper>
103
+ );
104
+ });
105
+
106
+ const filterOfficesAtms = (data: Branch[] | Atm[], filtrationState: Record<string, boolean>) => {
107
+ const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
108
+
109
+ return 'name' in data
110
+ ? (data as Branch[]).filter(filterOffices(truthyFilters))
111
+ : (data as Atm[]).filter(filterAtms(truthyFilters));
112
+ };
113
+
114
+ const filterOffices = (filters: string[]) => (item: Branch) =>
115
+ filters.every((filterName) => FILTRATION_BRANCHES_PREDICATES[filterName](item));
116
+
117
+ const filterAtms = (filters: string[]) => (item: Atm) =>
118
+ filters.every((filterName) => FILTRATION_ATMS_PREDICATES[filterName](item));
119
+
120
+ const getTitle = (name = '', dataType = 'offices') =>
121
+ dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
122
+
123
+ const renderFiltrationForm = (
124
+ filters: string[],
125
+ { field, reset }: { field: FormFieldRegisterer<any>; reset: () => void },
126
+ ) => (
127
+ <div className="pb-2xl">
128
+ {filters?.length ? (
129
+ <div className="flex flex-wrap gap-3xl pb-2xl">
130
+ {filters.map((key) => (
131
+ <Checkbox key={key} text={FILTRATION_LABELS[key]} {...field(key)} />
132
+ ))}
133
+ </div>
134
+ ) : null}
135
+ <Button
136
+ version="transparent"
137
+ className="text-secondary-text [&>*]:p-0"
138
+ onClick={reset}
139
+ text="Очистить фильтр"
140
+ appendRight={<Icon name="CloseIcon" width="16" height="16" />}
141
+ />
142
+ </div>
143
+ );
144
+
145
+ const renderDescriptionBlock = ({ description, list }: AtmsDef) => (
146
+ <div className="p-xl mb-2xl border border-gray rounded-md">
147
+ <Paragraph size="text-l" font="font-light">
148
+ {description}
149
+ </Paragraph>
150
+ {list?.length ? (
151
+ <div className="flex gap-2xl flex-wrap pt-xs">
152
+ {list.map((item, i) => (
153
+ <div key={String(i)} className="flex gap-xs items-center">
154
+ {item?.image ? <Img image={item.image} /> : null}
155
+ {item?.text ? (
156
+ <Text size="text-m" font="font-light">
157
+ {item.text}
158
+ </Text>
159
+ ) : null}
160
+ </div>
161
+ ))}
162
+ </div>
163
+ ) : null}
164
+ </div>
165
+ );
@@ -0,0 +1,40 @@
1
+ import { EmptyOption } from '../../model/EmptyOptionType';
2
+ import type { UniBlockContent } from '../../model/JSXBlock';
3
+ import type { Picture } from '../../model/Picture';
4
+
5
+ /**
6
+ * @title Пункт
7
+ */
8
+ export type ItemList = {
9
+ text?: string;
10
+ image?: Picture;
11
+ };
12
+
13
+ /**
14
+ * @title Офисы
15
+ * @default {"dataType": "offices"}
16
+ */
17
+ export type OfficesDef = {
18
+ dataType: 'offices';
19
+ };
20
+
21
+ /**
22
+ * @title Банкоматы
23
+ * @default {"dataType": "atms"}
24
+ */
25
+ export type AtmsDef = {
26
+ dataType: 'atms';
27
+ /** @title Описание */
28
+ description: string;
29
+ /** @title Список */
30
+ list?: ItemList[];
31
+ };
32
+
33
+ /**
34
+ * @title Данные
35
+ */
36
+ export type OfficesAtmsBlockDef = EmptyOption | OfficesDef | AtmsDef;
37
+
38
+ export type OfficesAtmsMapContent = UniBlockContent & {
39
+ data?: OfficesAtmsBlockDef;
40
+ };