@redneckz/wildless-cms-uni-blocks 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +90 -97
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/ProjectSettings.d.ts +2 -3
  5. package/dist/ProjectSettings.js +2 -2
  6. package/dist/ProjectSettings.js.map +1 -1
  7. package/dist/api/LikeAPI.d.ts +1 -1
  8. package/dist/api/LikeAPI.js +6 -5
  9. package/dist/api/LikeAPI.js.map +1 -1
  10. package/dist/components/Accordion/Accordion.js +1 -1
  11. package/dist/components/Accordion/Accordion.js.map +1 -1
  12. package/dist/components/BaseTile/BaseTile.js +1 -1
  13. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  14. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  15. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  16. package/dist/components/BlockContent.d.ts +1 -2
  17. package/dist/components/Blocks.d.ts +0 -1
  18. package/dist/components/Blocks.js +0 -2
  19. package/dist/components/Blocks.js.map +1 -1
  20. package/dist/components/Footer/MediaButton.d.ts +1 -1
  21. package/dist/components/Footer/SocialMedia.d.ts +1 -1
  22. package/dist/components/Footer/SocialMedia.mobile.d.ts +1 -1
  23. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  24. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  25. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  26. package/dist/components/PictureText/PictureText.js +14 -5
  27. package/dist/components/PictureText/PictureText.js.map +1 -1
  28. package/dist/components/PictureText/PictureTextContent.d.ts +8 -16
  29. package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  30. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  31. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  32. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  33. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  34. package/dist/components/ProductBlock/renderBenefit.d.ts +4 -2
  35. package/dist/components/ProductBlock/renderBenefit.js +3 -22
  36. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  37. package/dist/components/ProductGallery/ProductGallery.js +5 -5
  38. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  39. package/dist/components/ProductTile/ProductTile.js +2 -2
  40. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  41. package/dist/components/PromoTile/PromoTile.js +1 -1
  42. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  43. package/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
  44. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  45. package/dist/components/Tile/Tile.js +1 -1
  46. package/dist/components/Tile/Tile.js.map +1 -1
  47. package/dist/hooks/useLikeService.js +1 -3
  48. package/dist/hooks/useLikeService.js.map +1 -1
  49. package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  50. package/dist/ui-kit/BenefitItem/BenefitItem.js +29 -0
  51. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  52. package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  53. package/dist/{components/Insurance/InsuranceContent.js → ui-kit/BenefitItem/BenefitItemProps.js} +1 -1
  54. package/dist/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  55. package/dist/ui-kit/Foldable/Foldable.js +1 -1
  56. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  57. package/lib/ProjectSettings.d.ts +2 -3
  58. package/lib/ProjectSettings.js +2 -2
  59. package/lib/ProjectSettings.js.map +1 -1
  60. package/lib/api/LikeAPI.d.ts +1 -1
  61. package/lib/api/LikeAPI.js +6 -5
  62. package/lib/api/LikeAPI.js.map +1 -1
  63. package/lib/common.css +1 -1
  64. package/lib/components/Accordion/Accordion.js +1 -1
  65. package/lib/components/Accordion/Accordion.js.map +1 -1
  66. package/lib/components/BaseTile/BaseTile.js +1 -1
  67. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  68. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  69. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  70. package/lib/components/BlockContent.d.ts +1 -2
  71. package/lib/components/Blocks.d.ts +0 -1
  72. package/lib/components/Blocks.js +0 -2
  73. package/lib/components/Blocks.js.map +1 -1
  74. package/lib/components/Footer/MediaButton.d.ts +1 -1
  75. package/lib/components/Footer/SocialMedia.d.ts +1 -1
  76. package/lib/components/Footer/SocialMedia.mobile.d.ts +1 -1
  77. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  78. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  79. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  80. package/lib/components/PictureText/PictureText.fixture.d.ts +4 -0
  81. package/lib/components/PictureText/PictureText.js +14 -5
  82. package/lib/components/PictureText/PictureText.js.map +1 -1
  83. package/lib/components/PictureText/PictureTextContent.d.ts +8 -16
  84. package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  85. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  86. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  87. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  88. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  89. package/lib/components/ProductBlock/renderBenefit.d.ts +4 -3
  90. package/lib/components/ProductBlock/renderBenefit.js +4 -23
  91. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  92. package/lib/components/ProductGallery/ProductGallery.js +5 -5
  93. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  94. package/lib/components/ProductTile/ProductTile.js +2 -2
  95. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  96. package/lib/components/PromoTile/PromoTile.js +1 -1
  97. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  98. package/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
  99. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  100. package/lib/components/Tile/Tile.js +1 -1
  101. package/lib/components/Tile/Tile.js.map +1 -1
  102. package/lib/hooks/useLikeService.js +1 -3
  103. package/lib/hooks/useLikeService.js.map +1 -1
  104. package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  105. package/lib/ui-kit/BenefitItem/BenefitItem.js +27 -0
  106. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  107. package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  108. package/lib/ui-kit/BenefitItem/BenefitItemProps.js +2 -0
  109. package/lib/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  110. package/lib/ui-kit/Foldable/Foldable.js +1 -1
  111. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  112. package/mobile/bundle/bundle.umd.js +57 -51
  113. package/mobile/bundle/bundle.umd.min.js +1 -1
  114. package/mobile/dist/ProjectSettings.d.ts +2 -3
  115. package/mobile/dist/ProjectSettings.js +2 -2
  116. package/mobile/dist/ProjectSettings.js.map +1 -1
  117. package/mobile/dist/api/LikeAPI.d.ts +1 -1
  118. package/mobile/dist/api/LikeAPI.js +6 -5
  119. package/mobile/dist/api/LikeAPI.js.map +1 -1
  120. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  121. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  122. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  123. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  124. package/mobile/dist/components/BlockContent.d.ts +1 -2
  125. package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
  126. package/mobile/dist/components/Footer/SocialMedia.d.ts +1 -1
  127. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  128. package/mobile/dist/components/PictureText/PictureText.js +14 -5
  129. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  130. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +8 -16
  131. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  132. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  133. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  134. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +4 -2
  135. package/mobile/dist/components/ProductBlock/renderBenefit.js +3 -19
  136. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  137. package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
  138. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  139. package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
  140. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  141. package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
  142. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  143. package/mobile/dist/components/Tile/Tile.js +1 -1
  144. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  145. package/mobile/dist/hooks/useLikeService.js +1 -3
  146. package/mobile/dist/hooks/useLikeService.js.map +1 -1
  147. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  148. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +29 -0
  149. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  150. package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  151. package/mobile/dist/{components/Insurance/InsuranceContent.js → ui-kit/BenefitItem/BenefitItemProps.js} +1 -1
  152. package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  153. package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
  154. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  155. package/mobile/lib/ProjectSettings.d.ts +2 -3
  156. package/mobile/lib/ProjectSettings.js +2 -2
  157. package/mobile/lib/ProjectSettings.js.map +1 -1
  158. package/mobile/lib/api/LikeAPI.d.ts +1 -1
  159. package/mobile/lib/api/LikeAPI.js +6 -5
  160. package/mobile/lib/api/LikeAPI.js.map +1 -1
  161. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  162. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  163. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  164. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  165. package/mobile/lib/components/BlockContent.d.ts +1 -2
  166. package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
  167. package/mobile/lib/components/Footer/SocialMedia.d.ts +1 -1
  168. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  169. package/mobile/lib/components/PictureText/PictureText.js +14 -5
  170. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  171. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +8 -16
  172. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  173. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  174. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  175. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +4 -2
  176. package/mobile/lib/components/ProductBlock/renderBenefit.js +4 -20
  177. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  178. package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
  179. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  180. package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
  181. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  182. package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
  183. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  184. package/mobile/lib/components/Tile/Tile.js +1 -1
  185. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  186. package/mobile/lib/hooks/useLikeService.js +1 -3
  187. package/mobile/lib/hooks/useLikeService.js.map +1 -1
  188. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  189. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +27 -0
  190. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  191. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  192. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.js +2 -0
  193. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  194. package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
  195. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  196. package/mobile/src/ProjectSettings.ts +3 -4
  197. package/mobile/src/api/LikeAPI.ts +21 -16
  198. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  199. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +2 -2
  200. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  201. package/mobile/src/components/BlockContent.ts +0 -2
  202. package/mobile/src/components/ContentPage/ContentPage.page.json +41 -41
  203. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  204. package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
  205. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  206. package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -1
  207. package/mobile/src/components/PictureText/PictureText.example.json +7 -4
  208. package/mobile/src/components/PictureText/PictureText.tsx +55 -34
  209. package/mobile/src/components/PictureText/PictureTextContent.ts +8 -17
  210. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -17
  211. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -5
  212. package/mobile/src/components/ProductBlock/renderBenefit.tsx +17 -42
  213. package/mobile/src/components/ProductTile/ProductTile.tsx +3 -2
  214. package/mobile/src/components/PromoTile/PromoTile.tsx +4 -3
  215. package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
  216. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +1 -1
  217. package/mobile/src/components/Tile/Tile.tsx +2 -2
  218. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +15 -30
  219. package/mobile/src/hooks/useLikeService.ts +1 -4
  220. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +58 -0
  221. package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +27 -0
  222. package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
  223. package/package.json +1 -1
  224. package/src/ProjectSettings.ts +3 -4
  225. package/src/api/LikeAPI.ts +21 -16
  226. package/src/components/Accordion/Accordion.tsx +1 -0
  227. package/src/components/BaseTile/BaseTile.tsx +2 -2
  228. package/src/components/BenefitsBlock/BenefitsBlock.tsx +2 -2
  229. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  230. package/src/components/BlockContent.ts +0 -2
  231. package/src/components/Blocks.ts +0 -2
  232. package/src/components/ContentPage/ContentPage.page.json +41 -41
  233. package/src/components/Footer/MediaButton.tsx +1 -1
  234. package/src/components/Footer/SocialMedia.mobile.tsx +1 -1
  235. package/src/components/Footer/SocialMedia.tsx +1 -1
  236. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  237. package/src/components/Gallery/GalleryContainer.tsx +0 -1
  238. package/src/components/LinkDocs/LinkDocs.tsx +1 -0
  239. package/src/components/PictureText/PictureText.example.json +7 -4
  240. package/src/components/PictureText/PictureText.fixture.tsx +74 -5
  241. package/src/components/PictureText/PictureText.tsx +55 -34
  242. package/src/components/PictureText/PictureTextContent.ts +8 -17
  243. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
  244. package/src/components/ProductBlock/ProductBlock.fixture.tsx +28 -6
  245. package/src/components/ProductBlock/ProductBlockContent.ts +3 -17
  246. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -5
  247. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -3
  248. package/src/components/ProductBlock/renderBenefit.tsx +17 -51
  249. package/src/components/ProductGallery/ProductGallery.tsx +5 -4
  250. package/src/components/ProductTile/ProductTile.tsx +3 -2
  251. package/src/components/PromoTile/PromoTile.tsx +4 -3
  252. package/src/components/Recommendation/RecommendationCard.tsx +1 -1
  253. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +1 -1
  254. package/src/components/Tile/Tile.tsx +2 -2
  255. package/src/components/__snapshots__/Blocks.spec.tsx.snap +15 -30
  256. package/src/hooks/useLikeService.ts +1 -4
  257. package/src/ui-kit/BenefitItem/BenefitItem.tsx +58 -0
  258. package/src/ui-kit/BenefitItem/BenefitItemProps.ts +27 -0
  259. package/src/ui-kit/Foldable/Foldable.tsx +1 -1
  260. package/dist/components/Insurance/Insurance.d.ts +0 -5
  261. package/dist/components/Insurance/Insurance.js +0 -24
  262. package/dist/components/Insurance/Insurance.js.map +0 -1
  263. package/dist/components/Insurance/InsuranceContent.d.ts +0 -27
  264. package/dist/components/Insurance/InsuranceContent.js.map +0 -1
  265. package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +0 -3
  266. package/dist/components/ProductBlock/renderBenefit.mobile.js +0 -25
  267. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +0 -1
  268. package/lib/components/Insurance/Insurance.d.ts +0 -5
  269. package/lib/components/Insurance/Insurance.fixture.d.ts +0 -6
  270. package/lib/components/Insurance/Insurance.js +0 -22
  271. package/lib/components/Insurance/Insurance.js.map +0 -1
  272. package/lib/components/Insurance/InsuranceContent.d.ts +0 -27
  273. package/lib/components/Insurance/InsuranceContent.js +0 -2
  274. package/lib/components/Insurance/InsuranceContent.js.map +0 -1
  275. package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +0 -3
  276. package/lib/components/ProductBlock/renderBenefit.mobile.js +0 -22
  277. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +0 -1
  278. package/mobile/dist/components/Insurance/Insurance.d.ts +0 -5
  279. package/mobile/dist/components/Insurance/Insurance.js +0 -24
  280. package/mobile/dist/components/Insurance/Insurance.js.map +0 -1
  281. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +0 -27
  282. package/mobile/dist/components/Insurance/InsuranceContent.js.map +0 -1
  283. package/mobile/lib/components/Insurance/Insurance.d.ts +0 -5
  284. package/mobile/lib/components/Insurance/Insurance.js +0 -22
  285. package/mobile/lib/components/Insurance/Insurance.js.map +0 -1
  286. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +0 -27
  287. package/mobile/lib/components/Insurance/InsuranceContent.js +0 -2
  288. package/mobile/lib/components/Insurance/InsuranceContent.js.map +0 -1
  289. package/mobile/src/components/Insurance/Insurance.example.json +0 -29
  290. package/mobile/src/components/Insurance/Insurance.tsx +0 -83
  291. package/mobile/src/components/Insurance/InsuranceContent.ts +0 -29
  292. package/src/components/Insurance/Insurance.example.json +0 -29
  293. package/src/components/Insurance/Insurance.fixture.tsx +0 -70
  294. package/src/components/Insurance/Insurance.tsx +0 -83
  295. package/src/components/Insurance/InsuranceContent.ts +0 -29
  296. package/src/components/ProductBlock/renderBenefit.mobile.tsx +0 -44
@@ -52,17 +52,48 @@
52
52
  };
53
53
  }
54
54
 
55
+ const projectSettings = new (class {
56
+ _ = {
57
+ PROD_BRANCH: 'master',
58
+ FORCED_DRAFT_FLOW: false,
59
+ };
60
+ setup(_) {
61
+ this._ = _;
62
+ }
63
+ get TEST_BRANCH() {
64
+ return this._.TEST_BRANCH;
65
+ }
66
+ get RC_BRANCH() {
67
+ return this._.RC_BRANCH;
68
+ }
69
+ get PROD_BRANCH() {
70
+ return this._.PROD_BRANCH;
71
+ }
72
+ get FORCED_DRAFT_FLOW() {
73
+ return this._.FORCED_DRAFT_FLOW;
74
+ }
75
+ get ASSIST_PROJECT_ID() {
76
+ return this._.ASSIST_PROJECT_ID;
77
+ }
78
+ get SITEMAP() {
79
+ return this._.SITEMAP;
80
+ }
81
+ get CDN() {
82
+ return this._.CDN;
83
+ }
84
+ })();
85
+
55
86
  const AUTH_PREFIX = 'guest';
56
87
  const STORAGE_KEY = 'likesToken';
57
88
  // eslint-disable-next-line max-lines-per-function
58
- function LikeAPI(projectId, baseURL = '') {
89
+ function LikeAPI() {
59
90
  async function getLikeCount(...nodeIds) {
60
91
  if (!nodeIds.length) {
61
92
  return [];
62
93
  }
63
94
  const { token: Authorization } = await auth();
64
95
  try {
65
- const response = await fetch(`${baseURL}/assist/v1/public/projects/${projectId}/nodes/likes`, {
96
+ const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/likes`, {
66
97
  method: 'POST',
67
98
  mode: 'cors',
68
99
  headers: { 'Content-Type': 'application/json', Authorization },
@@ -84,7 +115,7 @@
84
115
  }
85
116
  const { token: Authorization, name } = await auth();
86
117
  try {
87
- const response = await fetch(`${baseURL}/assist/v1/public/projects/${projectId}/nodes/like`, {
118
+ const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/like`, {
88
119
  method: 'POST',
89
120
  mode: 'cors',
90
121
  headers: {
@@ -111,7 +142,7 @@
111
142
  }
112
143
  const { token: Authorization, name } = await auth();
113
144
  try {
114
- const response = await fetch(`${baseURL}/assist/v1/public/projects/${projectId}/nodes/unlike`, {
145
+ const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/unlike`, {
115
146
  method: 'POST',
116
147
  mode: 'cors',
117
148
  headers: {
@@ -143,7 +174,7 @@
143
174
  // do nothing
144
175
  }
145
176
  try {
146
- const response = await fetch(`${baseURL}/assist/v1/public/auth`, {
177
+ const response = await fetch(`/assist/v1/public/auth`, {
147
178
  method: 'POST',
148
179
  mode: 'cors',
149
180
  headers: {
@@ -425,37 +456,6 @@
425
456
  IconTitleMap["WateringCan"] = "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0434\u0443\u043A\u0442";
426
457
  })(IconTitleMap || (IconTitleMap = {}));
427
458
 
428
- const projectSettings = new (class {
429
- _ = {
430
- PROD_BRANCH: 'master',
431
- FORCED_DRAFT_FLOW: false,
432
- };
433
- setup(_) {
434
- this._ = _;
435
- }
436
- get TEST_BRANCH() {
437
- return this._.TEST_BRANCH;
438
- }
439
- get RC_BRANCH() {
440
- return this._.RC_BRANCH;
441
- }
442
- get PROD_BRANCH() {
443
- return this._.PROD_BRANCH;
444
- }
445
- get FORCED_DRAFT_FLOW() {
446
- return this._.FORCED_DRAFT_FLOW;
447
- }
448
- get ENABLE_ASSIST() {
449
- return this._.ENABLE_ASSIST;
450
- }
451
- get SITEMAP() {
452
- return this._.SITEMAP;
453
- }
454
- get CDN() {
455
- return this._.CDN;
456
- }
457
- })();
458
-
459
459
  const svgUseStyleMap = {
460
460
  normal: 'text-primary-main',
461
461
  black: 'text-black',
@@ -615,18 +615,51 @@
615
615
  single: 'flex gap-3.5 flex-col',
616
616
  };
617
617
  const LinkDocs = JSX(({ context, className = '', title, description, align = 'center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => {
618
- return (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-[50px] bg-white ${className}`, context: context, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, context: context, align: align, headlineVersion: "M" }), jsx(LinkDocsList, { className: `mt-8 ${linkColumnsModeStyleMap[columnsMode]}`, columnsMode: columnsMode, documents: documents, icon: icon })] }));
618
+ return (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-[50px] bg-white ${className}`, context: context, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, context: context, align: align, headlineVersion: "M", as: "h2" }), jsx(LinkDocsList, { className: `mt-8 ${linkColumnsModeStyleMap[columnsMode]}`, columnsMode: columnsMode, documents: documents, icon: icon })] }));
619
619
  });
620
620
 
621
+ const titleStyleMap = {
622
+ primary: 'text-primary-text',
623
+ secondary: 'text-white',
624
+ };
625
+ const descStyleMap = {
626
+ primary: 'text-secondary-text',
627
+ secondary: 'text-white',
628
+ };
629
+ const BenefitItem = JSX((props) => {
630
+ const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
631
+ const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
632
+ return (jsxs("div", { className: `flex items-center gap-5 ${className}`, children: [icon ? (jsx(Img, { className: renderBenefitIconBgStyle(version, benefitsVersion), image: { ...icon, iconVersion: isIconWhite ? 'white' : 'normal' }, asSVG: true })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
633
+ });
634
+ function renderBenefitIconBgStyle(version, benefitsVersion) {
635
+ let bgColorStyle = 'bg-primary-main text-black';
636
+ if (version === 'secondary') {
637
+ bgColorStyle = 'bg-white/30 text-black';
638
+ }
639
+ else if (benefitsVersion === 'normal') {
640
+ bgColorStyle = 'bg-secondary-light text-primary-main';
641
+ }
642
+ return `w-[50px] h-[50px] rounded-full p-[10px] box-border ${bgColorStyle}`;
643
+ }
644
+
645
+ const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', { maximumSignificantDigits: 3 }).format(number);
646
+
621
647
  const pictureTextStyleMap = {
622
648
  primary: 'bg-white text-primary-text',
623
649
  secondary: 'bg-primary-main text-white',
624
650
  };
625
- const PictureText = JSX(({ className = '', title, image, benefits, version = 'primary', directionRight = false, ...rest }) => {
626
- return (jsxs(BlockWrapper, { className: `relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`, ...rest, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: directionRight ? 'order-2 ml-6' : 'mr-6', image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map((_, i) => renderBenefit$2(_, i, version)) })) : null] })] }));
651
+ const PictureText = JSX(({ className = '', context, title, description, image, benefits, version = 'primary', sum, monthLimit, directionRight = false, ...rest }) => {
652
+ return (jsxs(BlockWrapper, { className: `relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center" }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src && jsx(Img, { className: directionRight ? 'order-2 ml-6' : 'mr-6', image: image }), jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$1(version)) })) : null, renderInsuranceSumMonth(sum, monthLimit)] })] })] }));
627
653
  });
628
- function renderBenefit$2(benefit, i, version) {
629
- return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon ? (jsx(Img, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", image: benefit.icon, width: "48", height: "48", asSVG: true })) : null, jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit?.label ? (jsx("div", { className: `text-xl m-0 ${version === 'primary' ? 'text-primary-text' : ''}`, children: benefit.label })) : null, benefit?.description ? (jsx("div", { className: `text-s ${version === 'primary' ? 'text-secondary-text' : ''}`, children: benefit.description })) : null] })] }, String(i)));
654
+ const renderBenefit$1 = (version) => (benefit, i) => (jsx(BenefitItem, { icon: benefit.icon, label: benefit.label, description: benefit.description, version: version }, String(i)));
655
+ function renderInsuranceSumMonth(sum, monthLimit) {
656
+ return sum || monthLimit ? (jsxs("div", { className: "bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4", children: [Number.isFinite(sum) ? renderValueBlock$1('Страховая сумма:', sum, Boolean(monthLimit)) : null, Number.isFinite(monthLimit)
657
+ ? renderValueBlock$1('Ежемесячный лимит:', monthLimit, Boolean(sum))
658
+ : null] })) : null;
659
+ }
660
+ function renderValueBlock$1(title, sum = 0, isAnotherBlock = false) {
661
+ const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
662
+ return (jsxs("div", { className: `flex justify-between items-center gap-2 w-full ${widthStyle}`, children: [jsx("span", { className: "text-secondary-text text-l-light", children: title }), jsxs("span", { className: "text-primary-main text-h6", children: [addSpacesBetweenNumbers(sum), " \u20BD"] })] }));
630
663
  }
631
664
 
632
665
  const isURL = (href) => href?.includes('//');
@@ -805,34 +838,15 @@
805
838
  });
806
839
 
807
840
  const BaseTile = JSX(({ className = '', title = '', children, buttons, image }) => {
808
- return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { children: children }), buttons ? jsx("div", { children: buttons }) : null] }), image] })] }));
841
+ return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col w-full", children: [jsx("div", { children: children }), buttons ? jsx("div", { className: "mt-9", children: buttons }) : null] }), image] })] }));
809
842
  });
810
843
 
811
- const benefitTitleStyleMap = {
812
- primary: 'text-primary-text',
813
- secondary: 'text-white',
814
- };
815
- const benefitDescStyleMap = {
816
- primary: 'text-secondary-text',
817
- secondary: 'text-white',
844
+ const renderBenefit = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => {
845
+ return (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
818
846
  };
819
- function renderBenefit$1({ benefit, version = 'primary', benefitsVersion = 'normal' }, i) {
820
- const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
821
- return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(Img, { className: renderBenefitIconBgStyle(version, benefitsVersion), image: { ...benefit?.icon, iconVersion: isIconWhite ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true })) : null, jsxs("div", { className: "flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]", children: [jsx("div", { className: `text-h6 m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description ? (jsx("div", { className: `text-m-light ${benefitDescStyleMap[version]}`, children: benefit.description })) : null] })] }, String(i)));
822
- }
823
- function renderBenefitIconBgStyle(version, benefitsVersion) {
824
- let bgColorStyle = 'bg-primary-main text-black';
825
- if (version === 'secondary') {
826
- bgColorStyle = 'bg-white/30 text-black';
827
- }
828
- else if (benefitsVersion === 'normal') {
829
- bgColorStyle = 'bg-secondary-light text-primary-main';
830
- }
831
- return `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${bgColorStyle}`;
832
- }
833
847
 
834
848
  const ProductBlockInner = JSX(({ className = '', context, title, headlineVersion = 'L', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
835
- return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { context: context, title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left" }), jsxs(BaseTile, { context: context, buttons: getButtons(context, buttons), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((benefit, i) => renderBenefit$1({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(Img, { className: "mt-[-50px]", image: image })] }));
849
+ return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { context: context, title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left" }), jsxs(BaseTile, { context: context, buttons: getButtons(context, buttons), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map(renderBenefit(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(Img, { className: "mt-[-50px]", image: image })] }));
836
850
  });
837
851
  const getButtons = (context, buttons) => {
838
852
  return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex gap-4" })) : null;
@@ -931,7 +945,7 @@
931
945
  };
932
946
  const Tile = JSX((props) => {
933
947
  const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, className = '', version = 'primary', ...rest } = props;
934
- return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] text-h4
948
+ return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] text-h4
935
949
  ${version === 'primary' ? 'text-primary-text' : ''}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src ? jsx(Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2", description: description })) : null, children, renderList$2(items, version, isDotted)] }) }));
936
950
  });
937
951
  function renderList$2(items, version, isDotted) {
@@ -944,12 +958,12 @@
944
958
  secondary: 'bg-primary-main text-white',
945
959
  };
946
960
  const ProductTile = JSX(({ context, className = '', title, headlineVersion = 'S', description, additionalDescription, benefits, buttons, image, version = 'primary', ...rest }) => {
947
- return (jsxs(BlockWrapper, { context: context, className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border min-h-[364px] relative justify-between grid ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: [jsxs("div", { className: "z-[1]", children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left" }), renderBenefits$1(benefits || [], version), additionalDescription
961
+ return (jsxs(BlockWrapper, { context: context, className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border min-h-[364px] relative justify-between grid ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: [jsxs("div", { className: "z-[1]", children: [jsx(Headline, { context: context, className: "!p-0", as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left" }), renderBenefits$1(benefits || [], version), additionalDescription
948
962
  ? renderAdditionalDescription(additionalDescription, version)
949
963
  : null] }), buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex self-end mt-5 gap-4 z-[1] text-l" })) : null, image?.src ? jsx(Img, { className: "absolute right-0 bottom-0", image: image }) : null] }));
950
964
  });
951
965
  function renderBenefits$1(benefits, version) {
952
- return (jsxs("div", { className: "flex mt-4", children: [benefits.length ? (jsx("div", { className: "mr-6 gap-2.5 text-h6", children: benefits.map(renderBenefitLabel) })) : null, benefits.length ? (jsx("div", { className: "pt-1 text-m", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] }));
966
+ return (jsxs("div", { className: "flex mt-3.5", children: [benefits.length ? (jsx("div", { className: "mr-6 gap-2.5 text-h6", children: benefits.map(renderBenefitLabel) })) : null, benefits.length ? (jsx("div", { className: "pt-1 text-m", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] }));
953
967
  }
954
968
  function renderBenefitLabel(benefit, i) {
955
969
  return (jsx("div", { className: `${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
@@ -1116,7 +1130,7 @@
1116
1130
  right: 'text-right',
1117
1131
  };
1118
1132
  const Accordion = JSX(({ title, description, accordionItems, context, className = '', accordionAlignTitle = 'center', ...rest }) => {
1119
- return (jsxs(BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? jsx("div", { className: "mb-2.5 text-l", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context }, `AccordionItem${i}`))) })) : null] }));
1133
+ return (jsxs(BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? jsx("div", { className: "mb-2.5 text-l", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context }, `AccordionItem${i}`))) })) : null] }));
1120
1134
  });
1121
1135
 
1122
1136
  const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => {
@@ -1173,8 +1187,6 @@
1173
1187
  return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(Img, { className: "h-[180px] w-[160px] min-w-[160px] min-h-[160px]", image: bonusBenefit.icon, width: "160", height: "180" })) : null, jsx("div", { children: bonusBenefit?.label ? jsx("span", { className: "text-h6 m-0", children: bonusBenefit.label }) : null })] }, String(i)));
1174
1188
  };
1175
1189
 
1176
- const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', { maximumSignificantDigits: 3 }).format(number);
1177
-
1178
1190
  const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => {
1179
1191
  return (jsxs("div", { className: `mb-5 ${className}`, children: [title ? jsx("div", { className: "text-l-light", children: title }) : null, value ? (jsxs("div", { className: "text-h3", children: [prefix, " ", addSpacesBetweenNumbers(Math.round(value)), " ", postfix] })) : null] }));
1180
1192
  });
@@ -2352,22 +2364,6 @@
2352
2364
  return (jsx(BlockWrapper, { tag: "header", context: context, className: `pt-6 pb-5 px-20 ${bgColor} ${className}`, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topMenu, jsx(HeaderSecondaryMenu, { className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), jsx("div", { className: `mt-6 h-[1px] ${BORDER_COLORS[bgColor]}` }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { context: context, subItems: activeTopItem.items, bgColor: bgColor })) : null] }) }));
2353
2365
  });
2354
2366
 
2355
- const Insurance = JSX(({ context, className = '', title, description, image, benefits, sum, monthLimit, ...rest }) => {
2356
- return (jsxs(BlockWrapper, { className: `px-[100px] py-[50px] bg-white text-primary-text font-sans ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), jsx("div", { children: jsxs("div", { className: "mx-auto flex justify-center gap-[122px] mt-[30px]", children: [image?.src ? jsx(Img, { image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit) })) : null, renderInsuranceSumMonth(sum, monthLimit)] })] }) })] }));
2357
- });
2358
- function renderBenefit(benefit, i) {
2359
- return (jsxs("div", { className: "flex items-center gap-4", children: [benefit?.icon ? (jsx(Img, { className: "w-12 h-12 min-w-12 p-3 rounded-full bg-secondary-light", image: benefit.icon, asSVG: true })) : null, jsxs("div", { children: [benefit?.label ? jsx("div", { className: "text-h6", children: benefit.label }) : null, benefit?.description ? (jsx("div", { className: "mt-0.5 text-secondary-text text-m", children: benefit.description })) : null] })] }, String(i)));
2360
- }
2361
- function renderInsuranceSumMonth(sum, monthLimit) {
2362
- return sum || monthLimit ? (jsxs("div", { className: "bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4", children: [Number.isFinite(sum) ? renderValueBlock$1('Страховая сумма:', sum, Boolean(monthLimit)) : null, Number.isFinite(monthLimit)
2363
- ? renderValueBlock$1('Ежемесячный лимит:', monthLimit, Boolean(sum))
2364
- : null] })) : null;
2365
- }
2366
- function renderValueBlock$1(title, sum = 0, isAnotherBlock = false) {
2367
- const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
2368
- return (jsxs("div", { className: `flex justify-between items-center gap-2 w-full ${widthStyle}`, children: [jsx("span", { className: "text-secondary-text text-l-light", children: title }), jsxs("span", { className: "text-primary-main text-h6", children: [addSpacesBetweenNumbers(sum), " \u20BD"] })] }));
2369
- }
2370
-
2371
2367
  const InsuranceAmountBlockInner = JSX(({ className = '', cards = [], button }) => {
2372
2368
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
2373
2369
  const [tabsShift, setTabsShift] = useState(0);
@@ -2521,7 +2517,7 @@
2521
2517
  initialState: isUnfolded,
2522
2518
  });
2523
2519
  const buttonClassName = foldButtonClasses ||
2524
- 'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-l flex justify-center cursor-pointer';
2520
+ 'border-none bg-primary-main hover:bg-primary-hover px-0 py-[26px] mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer';
2525
2521
  const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
2526
2522
  return blocks ? (jsxs("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? (jsxs("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [jsx("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? jsx(Icon, { name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true }) : null] })) : null] })) : null;
2527
2523
  });
@@ -2586,7 +2582,7 @@
2586
2582
  const galleryBlocks = slides.map((s) => s.productBlock);
2587
2583
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
2588
2584
  return (jsxs(BlockWrapper, { context: context, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
2589
- ${productGalleryStyleMap[version]}`, ...rest, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
2585
+ ${productGalleryStyleMap[version]}`, ...rest, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28", children: galleryNav.map((slide, i) => renderNavButton({
2590
2586
  slide,
2591
2587
  i,
2592
2588
  activeSlideIndex,
@@ -2597,13 +2593,13 @@
2597
2593
  function renderProductBlock(block, i, context) {
2598
2594
  const { version } = block;
2599
2595
  const additionalClass = version ? productBlockStyleMap[version].title : '';
2600
- return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px] z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
2596
+ return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px] z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block, headlineVersion: "XXL" }) }) }, String(i)));
2601
2597
  }
2602
2598
  function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
2603
2599
  const isActiveBtn = i === activeSlideIndex;
2604
2600
  const btnClassName = isActiveBtn
2605
- ? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
2606
- : `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
2601
+ ? 'bg-white shadow-dark-blue/42 w-[354px] min-w-[354px] border-none'
2602
+ : `min-w-[277px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
2607
2603
  ${productSlideStyleMap[version]}`;
2608
2604
  const btnTitleClassName = isActiveBtn
2609
2605
  ? 'text-primary-text text-h6'
@@ -2612,7 +2608,7 @@
2612
2608
  ? 'text-secondary-text text-m-title-xs mt-2.5'
2613
2609
  : `text-m mt-1.5 ${productBlockStyleMap[version].text}`;
2614
2610
  const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
2615
- return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0
2611
+ return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0 pt-5 pb-[23px]
2616
2612
  ${btnClassName} ${additionalBorder}
2617
2613
  `, children: jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }) }, String(i)));
2618
2614
  }
@@ -2622,7 +2618,7 @@
2622
2618
  secondary: 'bg-primary-main text-white',
2623
2619
  };
2624
2620
  const PromoTile = JSX(({ className = '', context, title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', ...rest }) => {
2625
- return (jsx(BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${promoTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { context: context, title: title ? (jsx("div", { children: jsx(Headline, { context: context, title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "left" }) })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) }));
2621
+ return (jsx(BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${promoTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { context: context, title: title ? (jsx("div", { children: jsx(Headline, { context: context, title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "left", as: "h2" }) })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex gap-3" })) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) }));
2626
2622
  });
2627
2623
  function formatDate(date) {
2628
2624
  const dateObj = new Date(date);
@@ -2961,7 +2957,6 @@
2961
2957
  GracePeriod,
2962
2958
  Header,
2963
2959
  Headline,
2964
- Insurance,
2965
2960
  InsuranceAmountBlock,
2966
2961
  LinkDocs,
2967
2962
  MiniGallery,
@@ -2986,9 +2981,7 @@
2986
2981
  Tabs,
2987
2982
  };
2988
2983
 
2989
- const ASSIST_BASE_URL = process.env.NEXT_PUBLIC_ASSIST_BASE_URL || '';
2990
- const PROJECT_ID = process.env.NEXT_PUBLIC_PROJECT_ID || '';
2991
- const api = LikeAPI(PROJECT_ID, ASSIST_BASE_URL);
2984
+ const api = LikeAPI();
2992
2985
  function useLikeService(pagePath) {
2993
2986
  const [likeCount, setLikeCount] = useState(0);
2994
2987
  useEffect(() => {