@redneckz/wildless-cms-uni-blocks 0.14.742 → 0.14.744

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 (268) hide show
  1. package/bundle/bundle.umd.js +112 -156
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/OfficesAtmsMap/{renderFiltrationForm.d.ts → FiltrationForm.d.ts} +2 -2
  4. package/bundle/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  5. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  6. package/bundle/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  7. package/bundle/ui-kit/Button/IconButton.d.ts +10 -0
  8. package/bundle/ui-kit/Foldable/Foldable.d.ts +0 -6
  9. package/bundle/utils/capitalize.d.ts +1 -0
  10. package/bundle/utils/dataAttributes.d.ts +2 -2
  11. package/dist/components/ApplicationLeadForm/GroupedConsents.js +6 -7
  12. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  13. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  14. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  15. package/{lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts → dist/components/OfficesAtmsMap/FiltrationForm.d.ts} +2 -2
  16. package/dist/components/OfficesAtmsMap/FiltrationForm.js +24 -0
  17. package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  18. package/dist/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  19. package/dist/components/OfficesAtmsMap/FoldableCardContent.js +13 -0
  20. package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  21. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  22. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  23. package/dist/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  24. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  25. package/dist/components/OfficesAtmsMap/renderFoldButton.js +2 -4
  26. package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  27. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  28. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  29. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  30. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  31. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  32. package/dist/components/RollupItem/RollupItem.js +17 -13
  33. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  34. package/dist/components/TariffsTable/TariffsTable.js +3 -1
  35. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  36. package/dist/ui-kit/BaseFiltration/FilteredBlocks.js +2 -2
  37. package/dist/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  38. package/dist/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  39. package/dist/ui-kit/BaseFiltration/{renderGridBlocks.js → GridBlocks.js} +8 -7
  40. package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  41. package/dist/ui-kit/Button/IconButton.d.ts +10 -0
  42. package/dist/ui-kit/Button/IconButton.js +13 -0
  43. package/dist/ui-kit/Button/IconButton.js.map +1 -0
  44. package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  45. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  46. package/dist/ui-kit/Foldable/Foldable.d.ts +0 -6
  47. package/dist/ui-kit/Foldable/Foldable.js +3 -10
  48. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  49. package/dist/ui-kit/FormField/getObjectValidator.js +3 -3
  50. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  51. package/dist/utils/capitalize.d.ts +1 -0
  52. package/dist/utils/capitalize.js +5 -0
  53. package/dist/utils/capitalize.js.map +1 -0
  54. package/dist/utils/dataAttributes.d.ts +2 -2
  55. package/dist/utils/dataAttributes.js +1 -6
  56. package/dist/utils/dataAttributes.js.map +1 -1
  57. package/lib/common.css +1 -1
  58. package/lib/components/ApplicationLeadForm/GroupedConsents.js +7 -8
  59. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  60. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  61. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  62. package/{dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts → lib/components/OfficesAtmsMap/FiltrationForm.d.ts} +2 -2
  63. package/lib/components/OfficesAtmsMap/FiltrationForm.js +21 -0
  64. package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  65. package/lib/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  66. package/lib/components/OfficesAtmsMap/FoldableCardContent.js +11 -0
  67. package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  68. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  69. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  70. package/lib/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  71. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  72. package/lib/components/OfficesAtmsMap/renderFoldButton.js +3 -5
  73. package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  74. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  75. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  76. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  77. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  78. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  79. package/lib/components/RollupItem/RollupItem.js +18 -14
  80. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  81. package/lib/components/TariffsTable/TariffsTable.js +3 -1
  82. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  83. package/lib/ui-kit/BaseFiltration/FilteredBlocks.js +3 -3
  84. package/lib/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  85. package/lib/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  86. package/{mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.js → lib/ui-kit/BaseFiltration/GridBlocks.js} +7 -5
  87. package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  88. package/lib/ui-kit/Button/IconButton.d.ts +10 -0
  89. package/lib/ui-kit/Button/IconButton.js +11 -0
  90. package/lib/ui-kit/Button/IconButton.js.map +1 -0
  91. package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  92. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  93. package/lib/ui-kit/Foldable/Foldable.d.ts +0 -6
  94. package/lib/ui-kit/Foldable/Foldable.js +4 -11
  95. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  96. package/lib/ui-kit/FormField/getObjectValidator.js +3 -3
  97. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  98. package/lib/utils/capitalize.d.ts +1 -0
  99. package/lib/utils/capitalize.js +2 -0
  100. package/lib/utils/capitalize.js.map +1 -0
  101. package/lib/utils/dataAttributes.d.ts +2 -2
  102. package/lib/utils/dataAttributes.js +1 -6
  103. package/lib/utils/dataAttributes.js.map +1 -1
  104. package/mobile/bundle/bundle.umd.js +112 -156
  105. package/mobile/bundle/bundle.umd.min.js +1 -1
  106. package/mobile/bundle/components/OfficesAtmsMap/{renderFiltrationForm.d.ts → FiltrationForm.d.ts} +2 -2
  107. package/mobile/bundle/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  108. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  109. package/mobile/bundle/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  110. package/mobile/bundle/ui-kit/Button/IconButton.d.ts +10 -0
  111. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +0 -6
  112. package/mobile/bundle/utils/capitalize.d.ts +1 -0
  113. package/mobile/bundle/utils/dataAttributes.d.ts +2 -2
  114. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +6 -7
  115. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  116. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  117. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  118. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +13 -0
  119. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +24 -0
  120. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  121. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  122. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +13 -0
  123. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  124. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  125. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  126. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  127. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  128. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +2 -4
  129. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  130. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  131. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  132. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  133. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  134. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  135. package/mobile/dist/components/RollupItem/RollupItem.js +17 -13
  136. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  137. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -1
  138. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  139. package/mobile/dist/ui-kit/BaseFiltration/FilteredBlocks.js +2 -2
  140. package/mobile/dist/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  141. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  142. package/mobile/dist/ui-kit/BaseFiltration/{renderGridBlocks.js → GridBlocks.js} +8 -7
  143. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  144. package/mobile/dist/ui-kit/Button/IconButton.d.ts +10 -0
  145. package/mobile/dist/ui-kit/Button/IconButton.js +13 -0
  146. package/mobile/dist/ui-kit/Button/IconButton.js.map +1 -0
  147. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  148. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  149. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +0 -6
  150. package/mobile/dist/ui-kit/Foldable/Foldable.js +3 -10
  151. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  152. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -3
  153. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  154. package/mobile/dist/utils/capitalize.d.ts +1 -0
  155. package/mobile/dist/utils/capitalize.js +5 -0
  156. package/mobile/dist/utils/capitalize.js.map +1 -0
  157. package/mobile/dist/utils/dataAttributes.d.ts +2 -2
  158. package/mobile/dist/utils/dataAttributes.js +1 -6
  159. package/mobile/dist/utils/dataAttributes.js.map +1 -1
  160. package/mobile/lib/common.css +1 -1
  161. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +7 -8
  162. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  163. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  164. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  165. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +13 -0
  166. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +21 -0
  167. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  168. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  169. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +11 -0
  170. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  171. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  172. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  173. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  174. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  175. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +3 -5
  176. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  177. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  178. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  179. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  180. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  181. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  182. package/mobile/lib/components/RollupItem/RollupItem.js +18 -14
  183. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  184. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -1
  185. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  186. package/mobile/lib/ui-kit/BaseFiltration/FilteredBlocks.js +3 -3
  187. package/mobile/lib/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  188. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  189. package/{lib/ui-kit/BaseFiltration/renderGridBlocks.js → mobile/lib/ui-kit/BaseFiltration/GridBlocks.js} +7 -5
  190. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  191. package/mobile/lib/ui-kit/Button/IconButton.d.ts +10 -0
  192. package/mobile/lib/ui-kit/Button/IconButton.js +11 -0
  193. package/mobile/lib/ui-kit/Button/IconButton.js.map +1 -0
  194. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  195. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  196. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +0 -6
  197. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -11
  198. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  199. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +3 -3
  200. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  201. package/mobile/lib/utils/capitalize.d.ts +1 -0
  202. package/mobile/lib/utils/capitalize.js +2 -0
  203. package/mobile/lib/utils/capitalize.js.map +1 -0
  204. package/mobile/lib/utils/dataAttributes.d.ts +2 -2
  205. package/mobile/lib/utils/dataAttributes.js +1 -6
  206. package/mobile/lib/utils/dataAttributes.js.map +1 -1
  207. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +26 -44
  208. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +21 -36
  209. package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +79 -0
  210. package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +16 -0
  211. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +7 -9
  212. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +12 -27
  213. package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +6 -12
  214. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +9 -56
  215. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +4 -21
  216. package/mobile/src/components/RollupItem/RollupItem.tsx +29 -27
  217. package/mobile/src/components/TariffsTable/TariffsTable.tsx +10 -9
  218. package/mobile/src/ui-kit/BaseFiltration/FilteredBlocks.tsx +2 -2
  219. package/mobile/src/ui-kit/BaseFiltration/{renderGridBlocks.tsx → GridBlocks.tsx} +29 -32
  220. package/mobile/src/ui-kit/Button/IconButton.tsx +36 -0
  221. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +7 -12
  222. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -37
  223. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +3 -3
  224. package/mobile/src/utils/capitalize.ts +2 -0
  225. package/mobile/src/utils/dataAttributes.ts +1 -7
  226. package/package.json +1 -1
  227. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +26 -44
  228. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +21 -36
  229. package/src/components/OfficesAtmsMap/FiltrationForm.tsx +79 -0
  230. package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +16 -0
  231. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +7 -9
  232. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +12 -27
  233. package/src/components/OfficesAtmsMap/renderFoldButton.tsx +6 -12
  234. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +9 -56
  235. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +4 -21
  236. package/src/components/RollupItem/RollupItem.tsx +29 -27
  237. package/src/components/TariffsTable/TariffsTable.tsx +10 -9
  238. package/src/icons/IconName.ts +4 -4
  239. package/src/ui-kit/BaseFiltration/FilteredBlocks.tsx +2 -2
  240. package/src/ui-kit/BaseFiltration/{renderGridBlocks.tsx → GridBlocks.tsx} +29 -32
  241. package/src/ui-kit/Button/IconButton.tsx +36 -0
  242. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +7 -12
  243. package/src/ui-kit/Foldable/Foldable.tsx +7 -37
  244. package/src/ui-kit/FormField/getObjectValidator.tsx +3 -3
  245. package/src/utils/capitalize.ts +2 -0
  246. package/src/utils/dataAttributes.ts +1 -7
  247. package/bundle/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  248. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +0 -26
  249. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  250. package/dist/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  251. package/dist/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  252. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +0 -22
  253. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  254. package/lib/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  255. package/lib/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  256. package/mobile/bundle/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  257. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +0 -13
  258. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +0 -26
  259. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  260. package/mobile/dist/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  261. package/mobile/dist/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  262. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +0 -13
  263. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +0 -22
  264. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  265. package/mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  266. package/mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  267. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +0 -87
  268. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +0 -87
@@ -520,13 +520,8 @@
520
520
  };
521
521
 
522
522
  const getAspectsAttributes = (data) => {
523
- if (!Array.isArray(data) || !data.length) {
524
- return {};
525
- }
526
523
  try {
527
- return {
528
- 'data-aspects': JSON.stringify(data),
529
- };
524
+ return Array.isArray(data) && data.length ? { 'data-aspects': JSON.stringify(data) } : {};
530
525
  }
531
526
  catch (_) {
532
527
  return {};
@@ -2693,9 +2688,9 @@
2693
2688
  serviceDirection: defaultSelectValidator(),
2694
2689
  secondaryPhone: phoneValidator('Укажите номер телефона'),
2695
2690
  region: defaultSelectValidator(),
2696
- surname: nameValidator('Укажите свою фамилию'),
2697
- name: nameValidator('Укажите своё имя'),
2698
- middleName: nameValidator('Укажите своё отчество'),
2691
+ surname: nameValidator('Укажите свою фамилию на кириллице'),
2692
+ name: nameValidator('Укажите своё имя на кириллице'),
2693
+ middleName: nameValidator('Укажите своё отчество на кириллице'),
2699
2694
  birthday: defaultValidator('Укажите дату рождения'),
2700
2695
  phone: phoneValidator('Укажите номер телефона'),
2701
2696
  email: emailValidator('Укажите электронную почту'),
@@ -3314,15 +3309,21 @@
3314
3309
  };
3315
3310
  const formatCoordinate = (coordinate) => Number(coordinate.toString().replace(',', '.'));
3316
3311
 
3317
- const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
3318
- const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
3319
- const onToggle = useCallback(() => {
3320
- setIsUnfolded((_) => !_);
3321
- }, []);
3322
- const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
3323
- const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
3324
- return isFoldButtonOnTop ? (jsxs("div", { className: className, role: "group", children: [buttonNode, sectionNode] })) : (jsxs("div", { className: className, role: "group", children: [sectionNode, buttonNode] }));
3312
+ const CardCell = JSX(({ value, subText, children, isPhone, ...props }) => {
3313
+ const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
3314
+ if ([textItems.length, children, subText].every((_) => !_)) {
3315
+ return null;
3316
+ }
3317
+ return renderCardCell({ textItems, subText, children, isPhone, ...props });
3325
3318
  });
3319
+ const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, isPhone = false, }) => (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: labelSize, children: label })) : null, children || renderTextItems(textItems, isPhone), subText ? (jsx(Text, { color: subColor, size: "text-m", children: subText })) : null] }));
3320
+ const renderTextItems = (textItems, isPhone) => textItems.filter(Boolean).map((text, i) => (jsx(Text, { size: "text-l", children: isPhone ? jsx("a", { href: `tel:${cleanPhoneNumber(text)}`, children: text.trim() }) : text.trim() }, String(i))));
3321
+ const cleanPhoneNumber = (phone) => phone.replace(/\D/g, '');
3322
+
3323
+ const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
3324
+
3325
+ // TODO Не особо полезно, в итоге
3326
+ const Foldable = JSX(({ className, children }) => (jsx("div", { className: style(className), role: "group", children: children })));
3326
3327
 
3327
3328
  function useResizeObserver(callback, deps) {
3328
3329
  const ref = useRef(null);
@@ -3354,18 +3355,17 @@
3354
3355
  return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} `, children: jsx("div", { className: className, ref: childrenWrapperRef, children: children }) }));
3355
3356
  });
3356
3357
 
3357
- const CardCell = JSX(({ value, subText, children, isPhone, ...props }) => {
3358
- const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
3359
- if ([textItems.length, children, subText].every((_) => !_)) {
3360
- return null;
3361
- }
3362
- return renderCardCell({ textItems, subText, children, isPhone, ...props });
3358
+ const IconButton = JSX(({ className, name, text, data, onClick }) => {
3359
+ const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
3360
+ return (jsxs("button", { className: style('text-primary-main flex justify-between items-center border-none px-m', text ? 'pt-lg' : 'py-2xs', className), type: "button", ...aspectsAttrs, onClick: onClick, children: [text ? jsx("div", { className: "pr-m", children: text }) : null, jsx(Icon, { className: "text-primary-text", name: name, width: "16", height: "16" })] }));
3363
3361
  });
3364
- const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, isPhone = false, }) => (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: labelSize, children: label })) : null, children || renderTextItems(textItems, isPhone), subText ? (jsx(Text, { color: subColor, size: "text-m", children: subText })) : null] }));
3365
- const renderTextItems = (textItems, isPhone) => textItems.filter(Boolean).map((text, i) => (jsx(Text, { size: "text-l", children: isPhone ? jsx("a", { href: `tel:${cleanPhoneNumber(text)}`, children: text.trim() }) : text.trim() }, String(i))));
3366
- const cleanPhoneNumber = (phone) => phone.replace(/\D/g, '');
3367
3362
 
3368
- const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
3363
+ const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsx(IconButton, { className: "w-full border-b border-solid border-main-divider", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', text: isUnfolded ? 'Скрыть' : 'Подробнее', onClick: onToggle }));
3364
+
3365
+ const FoldableCardContent = JSX(({ children }) => {
3366
+ const [isUnfolded, { toggle }] = useBool(false);
3367
+ return (jsxs(Foldable, { className: "block sm:hidden", children: [jsx(FoldableSection, { isUnfolded: isUnfolded, children: children }), renderFoldButton$2({ isUnfolded, onToggle: toggle })] }));
3368
+ });
3369
3369
 
3370
3370
  const getScheduleDescription = (workScheduleWeek) => {
3371
3371
  const rows = getDateDescription(workScheduleWeek);
@@ -3476,10 +3476,6 @@
3476
3476
  };
3477
3477
  const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, i) => (jsx(CardCell, { label: title, value: status && workTime ? workTime : '', subText: getSubTextLunch({ lunchHour, hasLunch, status }), subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(i)));
3478
3478
 
3479
- const ICONS$1 = ['ArrowDownIcon', 'ArrowUpIcon'];
3480
- const labels = ['Подробнее', 'Скрыть'];
3481
- const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider", onClick: onToggle, type: "button", children: [jsx("div", { className: "pr-m", children: labels[Number(isUnfolded)] }), jsx(Icon, { className: "text-primary-text", name: ICONS$1[Number(isUnfolded)], width: "16", height: "16" })] }));
3482
-
3483
3479
  const renderWorkSchedule = (workSchedule) => {
3484
3480
  const workScheduleWeek = getWorkScheduleWeek(workSchedule);
3485
3481
  const timeOfWork = workSchedule ? getDateDescription(workScheduleWeek) : '';
@@ -3500,34 +3496,12 @@
3500
3496
  const renderMatchingTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${timeOfWork}</p>`;
3501
3497
  const renderDefaultTimeOfWork = (timeOfWork, businessTimeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${businessTimeOfWork}</p>`;
3502
3498
 
3503
- const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, i) => {
3504
- if (!workSchedule) {
3499
+ const renderOfficeCard = (branch, i) => {
3500
+ if (!branch.workSchedule) {
3505
3501
  return null;
3506
3502
  }
3507
- const workScheduleWeek = getWorkScheduleWeek(workSchedule);
3508
- return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: name }), 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] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx("div", { className: "hidden sm:block", children: renderCardContent$1({
3509
- phone,
3510
- fax,
3511
- phoneBusiness,
3512
- phoneNatural,
3513
- phoneCallCentre,
3514
- phoneCurrencyControl,
3515
- workSchedule,
3516
- exchangeRate,
3517
- }) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
3518
- return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent$1({
3519
- phone,
3520
- fax,
3521
- phoneBusiness,
3522
- phoneNatural,
3523
- phoneCallCentre,
3524
- phoneCurrencyControl,
3525
- workSchedule,
3526
- exchangeRate,
3527
- }) }));
3528
- },
3529
- //** TODO: remove styles with refactoring DefaultFoldButton*/
3530
- renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton$2({ isUnfolded, onToggle }) })] }, String(i)));
3503
+ const workScheduleWeek = getWorkScheduleWeek(branch.workSchedule);
3504
+ return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: branch.name }), branch.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: branch.address })] })) : null] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx("div", { className: "hidden sm:block", children: renderCardContent$1(branch) }), jsx(FoldableCardContent, { children: renderCardContent$1(branch) })] }, String(i)));
3531
3505
  };
3532
3506
  const renderCardContent$1 = ({ phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }) => {
3533
3507
  const workScheduleWeek = getWorkScheduleWeek(workSchedule);
@@ -3538,9 +3512,9 @@
3538
3512
  ? renderBusinessSchedule(workSchedule?.businessScheduleDescription)
3539
3513
  : null, exchangeRate?.currencies?.length ? (jsx(CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(renderCurrency) })) : null] }));
3540
3514
  };
3541
- const capitalizedFirstLetter$1 = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
3515
+ const capitalizedFirstLetter = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
3542
3516
  const getOfficePoint = ({ name = '', address = '', workSchedule }) => {
3543
- const header = capitalizedFirstLetter$1(name);
3517
+ const header = capitalizedFirstLetter(name);
3544
3518
  const body = `${address} ${renderWorkSchedule(workSchedule)}`;
3545
3519
  return { header, body };
3546
3520
  };
@@ -4460,20 +4434,18 @@
4460
4434
  const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
4461
4435
  const GroupedConsents = JSX(({ inputs = [], field, key }) => {
4462
4436
  const isChecked = inputs.every((_) => Boolean(field(_.name).value));
4463
- const handleGeneralToggle = (value) => {
4437
+ const handleGeneralToggle = useCallback((value) => {
4464
4438
  for (const item of inputs) {
4465
4439
  const itemField = field(item.name);
4466
4440
  itemField.onChange?.(value);
4467
4441
  }
4468
- };
4442
+ }, [inputs]);
4469
4443
  const hasValidationErrors = useMemo(() => inputs
4470
4444
  ?.filter((_) => _.required)
4471
4445
  ?.some((_) => Boolean(withValidator(field(_?.name), validatorObj[_?.name]).error)), [inputs]);
4472
- return (jsx("div", { className: "w-fit", children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: true, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col pl-2xl", children:
4473
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
4474
- inputs.map(getField(field, {}, { ...InputsConsentsMap })) })), renderFoldButton: renderGeneralCheckbox(jsxs("div", { children: [jsx(Checkbox, { value: isChecked, onChange: handleGeneralToggle, text: CONSENT_ALL_DOCS_TEXT }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] })) }) }));
4446
+ const [isUnfolded, { toggle }] = useBool(true);
4447
+ return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(IconButton, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: toggle })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
4475
4448
  });
4476
- const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (jsxs("div", { className: "flex items-start", children: [generalCheckBox, jsx("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", type: "button", children: jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
4477
4449
 
4478
4450
  const renderInputs$2 = ({ field, inputs }) => {
4479
4451
  const { consentInputs, restInputs } = splitInputs(inputs || []);
@@ -5422,6 +5394,30 @@
5422
5394
  return (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon', iconVersion: 'normal' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: isMobileMode ? 'L' : 'S', isEmbedded: true, className: "space-y-s" })] }));
5423
5395
  });
5424
5396
 
5397
+ const isOdd = (n) => n % 2 !== 0;
5398
+
5399
+ const TextWithIcon = JSX(({ textNode, iconNode, tag, onClick, justifyContent = 'between', className, role, ...rest }) => {
5400
+ const Tag = tag;
5401
+ return (jsxs(Tag, { tag: tag, className: style('flex items-center w-full gap-1', justifyContent === 'between' ? 'justify-between' : 'justify-center', className), onClick: onClick, role: role, ...rest, children: [textNode ? jsx("div", { children: textNode }) : null, iconNode ? jsx("div", { children: iconNode }) : null] }));
5402
+ });
5403
+
5404
+ const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = 'pc', disabled = false, onClick }) => (jsx(TextWithIcon, { tag: "button", onClick: onClick, disabled: disabled, "data-theme": dataTheme, justifyContent: "center", role: "button", className: style('py-4 border border-transparent outline-none focus:border-primary-text space-x-s', disabled
5405
+ ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
5406
+ : 'bg-primary-main text-white hover:bg-primary-hove', className), textNode: jsx(Text, { size: "text-h4", children: label }), iconNode: icon ? (jsx(Img, { image: {
5407
+ icon,
5408
+ iconVersion: 'white',
5409
+ }, className: "my-auto", width: "20", height: "20" })) : null })));
5410
+ const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', label: isUnfolded ? 'Скрыть' : 'Развернуть', onClick: onToggle }));
5411
+
5412
+ const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs';
5413
+ const GridBlocks = JSX(({ topItemsCount = 0, label = '', block, blocksToRender = [], ...rest }) => {
5414
+ const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
5415
+ ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
5416
+ : [blocksToRender, []];
5417
+ const [isUnfolded, { toggle }] = useBool(false);
5418
+ return (jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsxs(Foldable, { children: [jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsx(DefaultFoldButton, { className: style({ hidden: topItemsCount < 1 }), dataTheme: rest.options?.page?.colorPalette, disabled: !hiddenBlocks?.length, label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: toggle })] })] }));
5419
+ });
5420
+
5425
5421
  const getBorderStyle = (showBorder = false) => showBorder
5426
5422
  ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
5427
5423
  : '';
@@ -5682,38 +5678,10 @@
5682
5678
  renderProps: (block, options, i) => (jsx("div", { className: style('relative min-w-80', getBorderStyle(true)), children: renderBlock$1(block, options) }, String(i))),
5683
5679
  }) }));
5684
5680
 
5685
- const isOdd = (n) => n % 2 !== 0;
5686
-
5687
- const TextWithIcon = JSX(({ textNode, iconNode, tag, onClick, justifyContent = 'between', className, role, ...rest }) => {
5688
- const Tag = tag;
5689
- return (jsxs(Tag, { tag: tag, className: style('flex items-center w-full gap-1', justifyContent === 'between' ? 'justify-between' : 'justify-center', className), onClick: onClick, role: role, ...rest, children: [textNode ? jsx("div", { children: textNode }) : null, iconNode ? jsx("div", { children: iconNode }) : null] }));
5690
- });
5691
-
5692
- const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = 'pc', disabled = false, onClick }) => (jsx(TextWithIcon, { tag: "button", onClick: onClick, disabled: disabled, "data-theme": dataTheme, justifyContent: "center", role: "button", className: style('py-4 border border-transparent outline-none focus:border-primary-text space-x-s', disabled
5693
- ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
5694
- : 'bg-primary-main text-white hover:bg-primary-hove', className), textNode: jsx(Text, { size: "text-h4", children: label }), iconNode: icon ? (jsx(Img, { image: {
5695
- icon,
5696
- iconVersion: 'white',
5697
- }, className: "my-auto", width: "20", height: "20" })) : null })));
5698
- const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
5699
- const labels = ['Развернуть', 'Скрыть'];
5700
- const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
5701
- return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
5702
- };
5703
-
5704
- const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
5705
- const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs';
5706
- const renderGridBlocks = ({ topItemsCount = 0, label = '', block, blocksToRender = [], ...rest }) => {
5707
- const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
5708
- ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
5709
- : [blocksToRender, []];
5710
- return (jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style({ hidden: topItemsCount < 1 }), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] }));
5711
- };
5712
-
5713
5681
  const FilteredBlocks = JSX(({ blocksSection, blocksToRender = [], notFound, ...rest }) => {
5714
5682
  switch (blocksSection?.view) {
5715
5683
  case 'grid':
5716
- return (jsxs("div", { children: [renderNotFound(notFound, blocksToRender), renderGridBlocks({ ...blocksSection, ...rest, blocksToRender })] }));
5684
+ return (jsxs("div", { children: [renderNotFound(notFound, blocksToRender), jsx(GridBlocks, { ...blocksSection, ...rest, blocksToRender: blocksToRender })] }));
5717
5685
  case 'carousel':
5718
5686
  return (jsxs("div", { className: "relative", children: [renderNotFound(notFound, blocksToRender), renderCarouselBlocks({ ...rest, blocksToRender })] }));
5719
5687
  default:
@@ -5740,7 +5708,7 @@
5740
5708
  return items.map((item) => (jsx(SlideCheckbox, { text: item?.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
5741
5709
  });
5742
5710
 
5743
- const FiltrationForm = JSX(({ children, filtrationSchema, resetButton, field, reset }) => (jsxs("form", { className: "flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0", children: [jsxs("div", { className: "flex flex-col @4xl:flex-row gap-xl", children: [children, joinList((jsx("div", { className: "h-full w-px bg-gray hidden @4xl:block" })))(Object.entries(filtrationSchema).map(renderFormItem(field)).filter(Boolean))] }), resetButton ? (jsx("div", { children: jsx(Button, { type: "reset", className: "w-full @4xl:w-56 @4xl:ml-s", onClick: reset, children: resetButton?.text }) })) : null] })));
5711
+ const FiltrationForm$1 = JSX(({ children, filtrationSchema, resetButton, field, reset }) => (jsxs("form", { className: "flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0", children: [jsxs("div", { className: "flex flex-col @4xl:flex-row gap-xl", children: [children, joinList((jsx("div", { className: "h-full w-px bg-gray hidden @4xl:block" })))(Object.entries(filtrationSchema).map(renderFormItem(field)).filter(Boolean))] }), resetButton ? (jsx("div", { children: jsx(Button, { type: "reset", className: "w-full @4xl:w-56 @4xl:ml-s", onClick: reset, children: resetButton?.text }) })) : null] })));
5744
5712
  const renderFormItem = (field) => ([key, item]) => {
5745
5713
  const type = item?.type;
5746
5714
  switch (type) {
@@ -5822,7 +5790,7 @@
5822
5790
  parse: ({ key }) => [key],
5823
5791
  format: ([value] = []) => stringArrayToOptions(consumerField).find((_) => _.key === value) || { key: '' },
5824
5792
  }) }));
5825
- return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(FiltrationForm, { filtrationSchema: filtrationSchema, field: field, reset: reset, children: jsxs("div", { children: [ConsumerSelect, jsx("div", { children: jsx(Button, { type: "reset", className: "mt-lg w-64", onClick: reset, version: resetButton?.version, children: resetButton?.text }) })] }) }), jsx(FilteredBlocks, { blocksToRender: blocksToRender, ...rest })] }));
5793
+ return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(FiltrationForm$1, { filtrationSchema: filtrationSchema, field: field, reset: reset, children: jsxs("div", { children: [ConsumerSelect, jsx("div", { children: jsx(Button, { type: "reset", className: "mt-lg w-64", onClick: reset, version: resetButton?.version, children: resetButton?.text }) })] }) }), jsx(FilteredBlocks, { blocksToRender: blocksToRender, ...rest })] }));
5826
5794
  }, {
5827
5795
  childrenTypes: ['CarouselTariffsCard'],
5828
5796
  childSchema: (content) => ({
@@ -6752,16 +6720,18 @@
6752
6720
  setIsVisible(event.isUnfolded);
6753
6721
  }
6754
6722
  }), [options?.parent]);
6755
- const toggle = useCallback(() => {
6723
+ const handleFold = useCallback(() => {
6756
6724
  carouselTariffsCardEventBus.fire('fold', {
6757
6725
  type: 'fold',
6758
6726
  isUnfolded: !isVisible,
6759
6727
  parent: options?.parent,
6760
6728
  });
6761
6729
  }, [isVisible, options?.parent]);
6762
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: () => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] })), renderFoldButton: () => cardCells.length >= visibleCellsCount ? (jsx(FoldButton, { data: data, isUnfolded: isVisible, onClick: toggle })) : null })) : (jsx("div", { children: visibleCells }))] }));
6730
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsxs(Foldable, { children: [jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] }), cardCells.length >= visibleCellsCount ? (jsx(FoldButton, { isUnfolded: isVisible, data: data, onClick: handleFold })) : null] })) : (jsx("div", { children: visibleCells }))] }));
6763
6731
  });
6764
- const FoldButton = JSX(({ data, isUnfolded = false, onClick }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", type: "button", onClick: onClick, ...(isUnfolded ? getAspectsAttributes(data) : {}), children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] })));
6732
+ const FoldButton = JSX(({ data, isUnfolded, onClick }) => (jsx(IconButton, { className: "w-full", ...(isUnfolded
6733
+ ? { name: 'ArrowUpIcon', text: 'Скрыть', data }
6734
+ : { name: 'ArrowDownIcon', text: 'Подробнее о тарифе' }), onClick: onClick })));
6765
6735
 
6766
6736
  const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
6767
6737
  const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
@@ -8177,7 +8147,7 @@
8177
8147
  });
8178
8148
  const rateRows = blocksWithProps.map(([, _]) => _?.paramsSource?.rows?.[0]?.rates);
8179
8149
  const months = getMonths(rateRows);
8180
- return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(FiltrationForm, { filtrationSchema: filtrationSchema, resetButton: resetButton, field: field, reset: reset, children: jsxs("div", { className: "@4xl:max-w-xs space-y-lg", children: [jsx(CurrencyInput, { label: sumInput?.title, min: DEFAULT_MIN_SUM, max: DEFAULT_MAX_SUM, ...field('sum', {
8150
+ return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(FiltrationForm$1, { filtrationSchema: filtrationSchema, resetButton: resetButton, field: field, reset: reset, children: jsxs("div", { className: "@4xl:max-w-xs space-y-lg", children: [jsx(CurrencyInput, { label: sumInput?.title, min: DEFAULT_MIN_SUM, max: DEFAULT_MAX_SUM, ...field('sum', {
8181
8151
  parse: (min) => ({ min: Number(min), max: DEFAULT_MAX_SUM }),
8182
8152
  format: ({ min }) => String(min),
8183
8153
  }) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'], list: months, ...field('period') })] }) }), jsx(FilteredBlocks, { blocksToRender: blocksToRender, ...rest })] }));
@@ -9490,12 +9460,25 @@
9490
9460
  blocks: rest.block?.blocks,
9491
9461
  onFiltrationStateChange: handleFiltrationStateChange,
9492
9462
  });
9493
- return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), jsx(FiltrationForm, { filtrationSchema: filtrationSchema, resetButton: resetButton, field: field, reset: reset }), jsx(FilteredBlocks, { blocksToRender: blocksToRender, ...rest })] }));
9463
+ return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), jsx(FiltrationForm$1, { filtrationSchema: filtrationSchema, resetButton: resetButton, field: field, reset: reset }), jsx(FilteredBlocks, { blocksToRender: blocksToRender, ...rest })] }));
9494
9464
  }, {
9495
9465
  childrenTypes: ['ProductBlock'],
9496
9466
  childSchema: (content) => content?.filtrationSchema || {},
9497
9467
  });
9498
9468
 
9469
+ const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
9470
+ const FiltrationForm = JSX(({ filters, field: { field, reset }, onlyOffice, labels }) => {
9471
+ const visibleFiltersNum = onlyOffice ? 5 : 6;
9472
+ const filtersCheckbox = (filters || []).map((key) => (jsx(Checkbox, { text: labels[key], ...field(key) }, key)));
9473
+ const [visibleFilters, hiddenFilters] = visibleFiltersNum > 0
9474
+ ? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
9475
+ : [filtersCheckbox, []];
9476
+ const [isUnfolded, { toggle }] = useBool(false);
9477
+ return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] }), renderFoldButton$1(reset, onlyOffice)({ isUnfolded, onToggle: toggle })] }) })) : null }));
9478
+ });
9479
+ // TODO Столько разных кнопок с иконками, но эта самая творчески-ударённая реализация))
9480
+ const renderFoldButton$1 = (reset, onlyOffice = false) => ({ isUnfolded, onToggle }) => (jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", appendRight: jsx(Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }), text: isUnfolded ? 'Меньше фильтров' : 'Больше фильтров', onClick: onToggle })) : null, jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, children: jsxs("div", { className: "flex items-center", children: ["\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", jsx(Icon, { name: "CloseIcon", width: "16", height: "16", className: "ml-2xs" })] }) })] }));
9481
+
9499
9482
  const renderButtonsGroup = (data, activeButton, onButtonClick) => {
9500
9483
  const allButtonVersion = getVersion(activeButton === 'all');
9501
9484
  const businessButtonVersion = getVersion(activeButton === 'business');
@@ -9512,22 +9495,6 @@
9512
9495
 
9513
9496
  const renderDescriptionBlock$1 = ({ __html, list, richVersion }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html, richVersion: richVersion }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", 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] })) : null;
9514
9497
 
9515
- const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
9516
- const renderFiltrationForm = ({ filters, field: { field, reset }, onlyOffice, labels, }) => {
9517
- const visibleFiltersNum = onlyOffice ? 5 : 6;
9518
- const filtersCheckbox = (filters || []).map((key) => (jsx(Checkbox, { text: labels[key], ...field(key) }, key)));
9519
- const [visibleFilters, hiddenFilters] = visibleFiltersNum > 0
9520
- ? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
9521
- : [filtersCheckbox, []];
9522
- return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] })), renderFoldButton: renderFoldButton$1(reset, onlyOffice) }) })) : null }));
9523
- };
9524
- const renderFoldButton$1 = (reset, onlyOffice = false) => ({ isUnfolded, onToggle }) => {
9525
- const labels = ['Больше фильтров', 'Меньше фильтров'];
9526
- const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
9527
- return (jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", appendRight: jsx(Icon, { name: icons[Number(isUnfolded)], width: "16", height: "16" }), text: labels[Number(isUnfolded)], onClick: onToggle })) : null, jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, children: renderBtnInner() })] }));
9528
- };
9529
- const renderBtnInner = () => (jsxs("div", { className: "flex items-center", children: ["\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", jsx(Icon, { name: "CloseIcon", width: "16", height: "16", className: "ml-2xs" })] }));
9530
-
9531
9498
  const renderHeading = (title, lengthItems) => (jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h3", children: [jsx("span", { suppressHydrationWarning: true, children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: jsx("span", { suppressHydrationWarning: true, children: ` (${lengthItems})` }) })) : null] }) }));
9532
9499
 
9533
9500
  const defaultEmptyFunction = () => void 0;
@@ -9543,21 +9510,17 @@
9543
9510
  getBalloonRemoteWorkplaces,
9544
9511
  });
9545
9512
  const [activeButton, setActiveButton] = useState('all');
9546
- const filterOptions = {
9547
- filters: getFiltersWithNonEmptyData([...data, ...remoteWorkplaces]),
9548
- field: { field, reset },
9549
- onlyOffice,
9550
- labels: FILTRATION_LABELS,
9551
- };
9552
- return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [renderHeading(title, lengthItems), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(filterOptions) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, isLoad: isLoad, className: "h-full" }) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
9513
+ return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [renderHeading(title, lengthItems), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: jsx(FiltrationForm, { filters: getFiltersWithNonEmptyData([...data, ...remoteWorkplaces]), field: { field, reset }, onlyOffice: onlyOffice, labels: FILTRATION_LABELS }) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, isLoad: isLoad, className: "h-full" }) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
9553
9514
  });
9554
9515
  const getFiltersWithNonEmptyData = (data) => Object.keys(INITIAL_FILTRATION_STATE$1).filter((_) => data.filter((item) => FILTRATION_PREDICATES$1[_](item)).length);
9555
9516
 
9517
+ const capitalize = (text) => text ? `${text.charAt(0).toUpperCase()}${text.slice(1)}` : '';
9518
+
9556
9519
  const renderAtmCard = ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode = '', atmAccess = '', workTime, }, i) => {
9557
9520
  const additionalInfo = [
9558
9521
  {
9559
9522
  label: 'Устройство',
9560
- value: capitalizedFirstLetter(terminalType),
9523
+ value: capitalize(terminalType),
9561
9524
  },
9562
9525
  { label: 'Модуль приема наличных', value: billAcceptorEnable ? 'Да' : 'Нет' },
9563
9526
  {
@@ -9570,19 +9533,14 @@
9570
9533
  },
9571
9534
  { label: 'Регистрационный номер', value: atmCode },
9572
9535
  ];
9573
- return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalizedFirstLetter(location) }), 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("div", { className: "whitespace-nowrap", children: jsx(Badge$1, { color: "green", children: capitalizedFirstLetter(workTime) }) })] }), jsx("div", { className: "hidden sm:block", children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
9574
- return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }));
9575
- },
9576
- //** TODO: Remove styles with refactoring DefaultFoldButton*/
9577
- renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton$2({ isUnfolded, onToggle }) })] }, String(i)));
9536
+ return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalize(location) }), 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("div", { className: "whitespace-nowrap", children: jsx(Badge$1, { color: "green", children: capitalize(workTime) }) })] }), jsx("div", { className: "hidden sm:block", children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }), jsx(FoldableCardContent, { children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) })] }, String(i)));
9578
9537
  };
9579
9538
  const getAtmPoint = ({ address = '', terminalType, atmCode = '' }) => {
9580
- const header = `${capitalizedFirstLetter(terminalType)} №${atmCode}`;
9539
+ const header = `${capitalize(terminalType)} №${atmCode}`;
9581
9540
  const body = address.toUpperCase();
9582
9541
  return { header, body };
9583
9542
  };
9584
- const renderInfo = (item, i) => (jsx(CardCell, { ...item }, String(i)));
9585
- const capitalizedFirstLetter = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
9543
+ const renderInfo = (item, i) => jsx(CardCell, { ...item }, String(i));
9586
9544
 
9587
9545
  const EMPTY_VALUE$2 = [];
9588
9546
  function useAtms(regionCode) {
@@ -9634,15 +9592,9 @@
9634
9592
  if (!workScheduleDescription) {
9635
9593
  return null;
9636
9594
  }
9637
- return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-yellow sm:border", children: [jsx("div", { className: "sm:flex sm:justify-between", children: jsxs("div", { children: [jsx(Text, { size: "text-h4", children: "\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u043E\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043C\u0435\u0441\u0442\u043E" }), 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("div", { className: "hidden sm:block", children: renderCardContent({
9638
- workScheduleDescription,
9639
- }) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent({
9640
- workScheduleDescription,
9641
- }) })),
9642
- //** TODO: remove styles with refactoring DefaultFoldButton*/
9643
- renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton$2({ isUnfolded, onToggle }) })] }, String(i)));
9595
+ return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-yellow sm:border", children: [jsx("div", { className: "sm:flex sm:justify-between", children: jsxs("div", { children: [jsx(Text, { size: "text-h4", children: "\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u043E\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043C\u0435\u0441\u0442\u043E" }), 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("div", { className: "hidden sm:block", children: renderCardContent(workScheduleDescription) }), jsx(FoldableCardContent, { children: renderCardContent(workScheduleDescription) })] }, String(i)));
9644
9596
  };
9645
- const renderCardContent = ({ workScheduleDescription }) => {
9597
+ const renderCardContent = (workScheduleDescription) => {
9646
9598
  return (jsxs("div", { children: [jsxs(CardRow, { className: "flex", children: [jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432, \u0441\u0447\u0435\u0442\u043E\u0432, \u0432\u043A\u043B\u0430\u0434\u043E\u0432" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u0438\u0445 \u043A\u0430\u0440\u0442" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u0418\u043D\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u0438 \u043D\u0430\u043A\u043E\u043F\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u0411\u0435\u0437\u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0440\u0443\u0431\u043B\u044F\u0445, \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B \u0431\u0435\u0437 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0441\u0447\u0451\u0442\u0430" }) })] }), jsx("hr", { className: "text-main-divider pb-xl" }), jsx(CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", className: "max-w-none", children: jsx(Text, { children: workScheduleDescription }) })] }));
9647
9599
  };
9648
9600
  const getRemoteWorkplacePoint = ({ address = '', workScheduleDescription, }) => {
@@ -9730,22 +9682,25 @@
9730
9682
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9731
9683
  version, role, ...rest }) => {
9732
9684
  const isMobile = useMobileMode();
9733
- return (jsx(BlockWrapper, { className: style('w-full border-0 border-b border-solid border-main-divider last:border-b-0', className), defaultPadding: "p-0", tag: "div", version: "transparent", role: role, ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', getFoldableStyles(isMobile)), isUnfolded: isUnfolded, children: renderChildren({
9734
- ...rest,
9735
- extraProps: { className: 'w-full', padding: 'p-0' },
9736
- }) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
9737
- foldButtonVersion,
9738
- label,
9739
- labelIcon,
9740
- labelIconBgVersion,
9741
- isUnfolded,
9742
- onToggle,
9743
- isMobile,
9744
- }) }) }));
9685
+ const [isUnfolded, { toggle }] = useBool(isExpanded);
9686
+ const foldableSection = (jsx(FoldableSection, { className: style('gap-lg', getFoldableStyles(isMobile)), isUnfolded: isUnfolded, children: renderChildren({
9687
+ ...rest,
9688
+ extraProps: { className: 'w-full', padding: 'p-0' },
9689
+ }) }));
9690
+ const foldButton = renderFoldButton({
9691
+ foldButtonVersion,
9692
+ label,
9693
+ labelIcon,
9694
+ labelIconBgVersion,
9695
+ isMobile,
9696
+ isUnfolded,
9697
+ onToggle: toggle,
9698
+ });
9699
+ return (jsx(BlockWrapper, { className: style('w-full border-0 border-b border-solid border-main-divider last:border-b-0', className), defaultPadding: "p-0", tag: "div", version: "transparent", role: role, ...rest, children: jsxs(Foldable, { children: [isFoldButtonOnTop ? foldButton : foldableSection, isFoldButtonOnTop ? foldableSection : foldButton] }) }));
9745
9700
  }, {
9746
9701
  childrenTypes: { exclude: ['RollupItem'] },
9747
9702
  });
9748
- const renderFoldButton = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, isMobile = false, }) => {
9703
+ const renderFoldButton = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, isMobile = false, onToggle, }) => {
9749
9704
  const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
9750
9705
  const icon = getIconName(isUnfolded, isMobile);
9751
9706
  return foldButtonVersion === 'accordion' ? (jsx(AccordionFoldButton, { label: label, labelIcon: labelIcon, labelIconBgVersion: labelIconBgVersion, icon: icon, onToggle: onToggle })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
@@ -10191,7 +10146,8 @@
10191
10146
  });
10192
10147
  const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
10193
10148
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
10194
- return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10149
+ const [isUnfolded, { toggle }] = useBool(false);
10150
+ return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), renderDefaultFoldButton({ isUnfolded, onToggle: toggle })] })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10195
10151
  });
10196
10152
 
10197
10153
  const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
@@ -10430,7 +10386,7 @@
10430
10386
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10431
10387
  });
10432
10388
 
10433
- const packageVersion = "0.14.741";
10389
+ const packageVersion = "0.14.743";
10434
10390
 
10435
10391
  exports.Blocks = Blocks;
10436
10392
  exports.ContentPage = ContentPage;