@redneckz/wildless-cms-uni-blocks 0.12.7 → 0.12.8

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 (254) hide show
  1. package/bin/migration-scripts/0.12.8.js +45 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +21 -11
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Header/HeaderContent.d.ts +1 -13
  6. package/bundle/components/Header/HeaderTop.d.ts +1 -3
  7. package/bundle/components/LinkDocs/LinkDocItem.d.ts +6 -0
  8. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +30 -6
  9. package/bundle/components/LinkDocs/linkIconStyle.d.ts +1 -0
  10. package/bundle/components/LinkDocs/linkIconStyle.mobile.d.ts +1 -0
  11. package/bundle/content-page-repository/transformDocument.d.ts +3 -0
  12. package/bundle/hooks/useRouter.d.ts +1 -0
  13. package/bundle/icons/IconName.d.ts +2 -2
  14. package/bundle/model/Attachment.d.ts +4 -0
  15. package/dist/components/Header/Header.mobile.js +2 -2
  16. package/dist/components/Header/Header.mobile.js.map +1 -1
  17. package/dist/components/Header/HeaderContent.d.ts +1 -13
  18. package/dist/components/Header/HeaderTop.d.ts +1 -3
  19. package/dist/components/Header/HeaderTop.js +10 -5
  20. package/dist/components/Header/HeaderTop.js.map +1 -1
  21. package/dist/components/LinkDocs/LinkDocItem.d.ts +6 -0
  22. package/dist/components/LinkDocs/LinkDocItem.js +20 -0
  23. package/dist/components/LinkDocs/LinkDocItem.js.map +1 -0
  24. package/dist/components/LinkDocs/LinkDocs.js +16 -4
  25. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  26. package/dist/components/LinkDocs/LinkDocsContent.d.ts +30 -6
  27. package/dist/components/LinkDocs/linkDocsContentExample.js +20 -8
  28. package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  29. package/dist/components/LinkDocs/linkIconStyle.d.ts +1 -0
  30. package/dist/components/LinkDocs/linkIconStyle.js +4 -0
  31. package/dist/components/LinkDocs/linkIconStyle.js.map +1 -0
  32. package/dist/components/LinkDocs/linkIconStyle.mobile.d.ts +1 -0
  33. package/dist/components/LinkDocs/linkIconStyle.mobile.js +4 -0
  34. package/dist/components/LinkDocs/linkIconStyle.mobile.js.map +1 -0
  35. package/dist/content-page-repository/transformContentPage.js +15 -5
  36. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  37. package/dist/content-page-repository/transformDocument.d.ts +3 -0
  38. package/{mobile/dist/content-page-repository/transformDocumentLink.js → dist/content-page-repository/transformDocument.js} +11 -11
  39. package/dist/content-page-repository/transformDocument.js.map +1 -0
  40. package/dist/hooks/useRouter.d.ts +1 -0
  41. package/dist/hooks/useRouter.js +3 -0
  42. package/dist/hooks/useRouter.js.map +1 -1
  43. package/dist/icons/IconName.d.ts +2 -2
  44. package/dist/icons/IconName.js +1 -1
  45. package/dist/icons/IconName.js.map +1 -1
  46. package/dist/model/Attachment.d.ts +4 -0
  47. package/dist/model/Attachment.js +2 -0
  48. package/dist/model/Attachment.js.map +1 -0
  49. package/dist/setup-fixture.js +4 -1
  50. package/dist/setup-fixture.js.map +1 -1
  51. package/dist/ui-kit/Logo/Logo.js +2 -3
  52. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  53. package/dist/ui-kit/TopItem/TopItem.js +1 -0
  54. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  55. package/lib/common.css +1 -1
  56. package/lib/components/Header/Header.fixture.mobile.d.ts +0 -2
  57. package/lib/components/Header/Header.mobile.js +2 -2
  58. package/lib/components/Header/Header.mobile.js.map +1 -1
  59. package/lib/components/Header/HeaderContent.d.ts +1 -13
  60. package/lib/components/Header/HeaderTop.d.ts +1 -3
  61. package/lib/components/Header/HeaderTop.js +10 -5
  62. package/lib/components/Header/HeaderTop.js.map +1 -1
  63. package/lib/components/LinkDocs/LinkDocItem.d.ts +6 -0
  64. package/{mobile/lib/components/LinkDocs/LinkDocsListItem.js → lib/components/LinkDocs/LinkDocItem.js} +2 -5
  65. package/lib/components/LinkDocs/LinkDocItem.js.map +1 -0
  66. package/lib/components/LinkDocs/LinkDocs.js +16 -4
  67. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  68. package/lib/components/LinkDocs/LinkDocsContent.d.ts +30 -6
  69. package/lib/components/LinkDocs/linkDocsContentExample.js +20 -8
  70. package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  71. package/lib/components/LinkDocs/linkIconStyle.d.ts +1 -0
  72. package/lib/components/LinkDocs/linkIconStyle.js +2 -0
  73. package/lib/components/LinkDocs/linkIconStyle.js.map +1 -0
  74. package/lib/components/LinkDocs/linkIconStyle.mobile.d.ts +1 -0
  75. package/lib/components/LinkDocs/linkIconStyle.mobile.js +2 -0
  76. package/lib/components/LinkDocs/linkIconStyle.mobile.js.map +1 -0
  77. package/lib/content-page-repository/transformContentPage.js +15 -5
  78. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  79. package/lib/content-page-repository/transformDocument.d.ts +3 -0
  80. package/{mobile/lib/content-page-repository/transformDocumentLink.js → lib/content-page-repository/transformDocument.js} +9 -9
  81. package/lib/content-page-repository/transformDocument.js.map +1 -0
  82. package/lib/hooks/useRouter.d.ts +1 -0
  83. package/lib/hooks/useRouter.js +3 -0
  84. package/lib/hooks/useRouter.js.map +1 -1
  85. package/lib/icons/IconName.d.ts +2 -2
  86. package/lib/icons/IconName.js +1 -1
  87. package/lib/icons/IconName.js.map +1 -1
  88. package/lib/model/Attachment.d.ts +4 -0
  89. package/lib/model/Attachment.js +2 -0
  90. package/lib/model/Attachment.js.map +1 -0
  91. package/lib/setup-fixture.js +4 -1
  92. package/lib/setup-fixture.js.map +1 -1
  93. package/lib/ui-kit/Logo/Logo.js +2 -3
  94. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  95. package/lib/ui-kit/TopItem/TopItem.js +1 -0
  96. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  97. package/mobile/bundle/bundle.umd.js +31 -13
  98. package/mobile/bundle/bundle.umd.min.js +1 -1
  99. package/mobile/bundle/components/Header/HeaderContent.d.ts +1 -13
  100. package/mobile/bundle/components/Header/HeaderTop.d.ts +1 -3
  101. package/mobile/bundle/components/LinkDocs/LinkDocItem.d.ts +6 -0
  102. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +30 -6
  103. package/mobile/bundle/components/LinkDocs/linkIconStyle.d.ts +1 -0
  104. package/mobile/bundle/content-page-repository/transformDocument.d.ts +3 -0
  105. package/mobile/bundle/hooks/useRouter.d.ts +1 -0
  106. package/mobile/bundle/icons/IconName.d.ts +2 -2
  107. package/mobile/bundle/model/Attachment.d.ts +4 -0
  108. package/mobile/dist/components/Header/Header.js +2 -2
  109. package/mobile/dist/components/Header/Header.js.map +1 -1
  110. package/mobile/dist/components/Header/HeaderContent.d.ts +1 -13
  111. package/mobile/dist/components/Header/HeaderTop.d.ts +1 -3
  112. package/mobile/dist/components/Header/HeaderTop.js +10 -5
  113. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  114. package/mobile/dist/components/LinkDocs/LinkDocItem.d.ts +6 -0
  115. package/mobile/dist/components/LinkDocs/LinkDocItem.js +20 -0
  116. package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -0
  117. package/mobile/dist/components/LinkDocs/LinkDocs.js +19 -2
  118. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  119. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +30 -6
  120. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +20 -8
  121. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  122. package/mobile/dist/components/LinkDocs/linkIconStyle.d.ts +1 -0
  123. package/mobile/dist/components/LinkDocs/linkIconStyle.js +4 -0
  124. package/mobile/dist/components/LinkDocs/linkIconStyle.js.map +1 -0
  125. package/mobile/dist/content-page-repository/transformContentPage.js +15 -5
  126. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  127. package/mobile/dist/content-page-repository/transformDocument.d.ts +3 -0
  128. package/{dist/content-page-repository/transformDocumentLink.js → mobile/dist/content-page-repository/transformDocument.js} +11 -11
  129. package/mobile/dist/content-page-repository/transformDocument.js.map +1 -0
  130. package/mobile/dist/hooks/useRouter.d.ts +1 -0
  131. package/mobile/dist/hooks/useRouter.js +3 -0
  132. package/mobile/dist/hooks/useRouter.js.map +1 -1
  133. package/mobile/dist/icons/IconName.d.ts +2 -2
  134. package/mobile/dist/icons/IconName.js +1 -1
  135. package/mobile/dist/icons/IconName.js.map +1 -1
  136. package/mobile/dist/model/Attachment.d.ts +4 -0
  137. package/mobile/dist/model/Attachment.js +2 -0
  138. package/mobile/dist/model/Attachment.js.map +1 -0
  139. package/mobile/dist/setup-fixture.js +4 -1
  140. package/mobile/dist/setup-fixture.js.map +1 -1
  141. package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -0
  142. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  143. package/mobile/lib/common.css +1 -1
  144. package/mobile/lib/components/Header/Header.js +2 -2
  145. package/mobile/lib/components/Header/Header.js.map +1 -1
  146. package/mobile/lib/components/Header/HeaderContent.d.ts +1 -13
  147. package/mobile/lib/components/Header/HeaderTop.d.ts +1 -3
  148. package/mobile/lib/components/Header/HeaderTop.js +10 -5
  149. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  150. package/mobile/lib/components/LinkDocs/LinkDocItem.d.ts +6 -0
  151. package/{lib/components/LinkDocs/LinkDocsListItem.js → mobile/lib/components/LinkDocs/LinkDocItem.js} +2 -5
  152. package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -0
  153. package/mobile/lib/components/LinkDocs/LinkDocs.js +19 -2
  154. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  155. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +30 -6
  156. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +20 -8
  157. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  158. package/mobile/lib/components/LinkDocs/linkIconStyle.d.ts +1 -0
  159. package/mobile/lib/components/LinkDocs/linkIconStyle.js +2 -0
  160. package/mobile/lib/components/LinkDocs/linkIconStyle.js.map +1 -0
  161. package/mobile/lib/content-page-repository/transformContentPage.js +15 -5
  162. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  163. package/mobile/lib/content-page-repository/transformDocument.d.ts +3 -0
  164. package/{lib/content-page-repository/transformDocumentLink.js → mobile/lib/content-page-repository/transformDocument.js} +9 -9
  165. package/mobile/lib/content-page-repository/transformDocument.js.map +1 -0
  166. package/mobile/lib/hooks/useRouter.d.ts +1 -0
  167. package/mobile/lib/hooks/useRouter.js +3 -0
  168. package/mobile/lib/hooks/useRouter.js.map +1 -1
  169. package/mobile/lib/icons/IconName.d.ts +2 -2
  170. package/mobile/lib/icons/IconName.js +1 -1
  171. package/mobile/lib/icons/IconName.js.map +1 -1
  172. package/mobile/lib/model/Attachment.d.ts +4 -0
  173. package/mobile/lib/model/Attachment.js +2 -0
  174. package/mobile/lib/model/Attachment.js.map +1 -0
  175. package/mobile/lib/setup-fixture.js +4 -1
  176. package/mobile/lib/setup-fixture.js.map +1 -1
  177. package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -0
  178. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  179. package/mobile/src/components/Header/Header.tsx +1 -7
  180. package/mobile/src/components/Header/HeaderContent.ts +1 -15
  181. package/mobile/src/components/Header/HeaderTop.tsx +41 -50
  182. package/mobile/src/components/LinkDocs/LinkDocItem.tsx +44 -0
  183. package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -0
  184. package/mobile/src/components/LinkDocs/LinkDocs.tsx +65 -36
  185. package/mobile/src/components/LinkDocs/LinkDocs.ui.json +8 -1
  186. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +34 -6
  187. package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +20 -8
  188. package/mobile/src/components/LinkDocs/linkIconStyle.ts +1 -0
  189. package/mobile/src/content-page-repository/transformContentPage.ts +17 -7
  190. package/{src/content-page-repository/transformDocumentLink.ts → mobile/src/content-page-repository/transformDocument.ts} +11 -11
  191. package/mobile/src/hooks/useRouter.ts +4 -0
  192. package/mobile/src/icons/ChevronLeft.svg +1 -1
  193. package/mobile/src/icons/IconName.ts +2 -2
  194. package/mobile/src/model/Attachment.ts +4 -0
  195. package/mobile/src/setup-fixture.ts +4 -1
  196. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -0
  197. package/package.json +1 -1
  198. package/src/components/Header/Header.fixture.mobile.tsx +0 -5
  199. package/src/components/Header/Header.mobile.tsx +1 -7
  200. package/src/components/Header/HeaderContent.ts +1 -15
  201. package/src/components/Header/HeaderTop.tsx +41 -50
  202. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +3 -3
  203. package/src/components/LinkDocs/LinkDocItem.tsx +44 -0
  204. package/src/components/LinkDocs/LinkDocs.example.json +4 -0
  205. package/src/components/LinkDocs/LinkDocs.tsx +58 -36
  206. package/src/components/LinkDocs/LinkDocs.ui.json +8 -1
  207. package/src/components/LinkDocs/LinkDocsContent.ts +34 -6
  208. package/src/components/LinkDocs/linkDocsContentExample.ts +20 -8
  209. package/src/components/LinkDocs/linkIconStyle.mobile.ts +1 -0
  210. package/src/components/LinkDocs/linkIconStyle.ts +1 -0
  211. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +4 -4
  212. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +3 -3
  213. package/src/content-page-repository/transformContentPage.ts +17 -7
  214. package/{mobile/src/content-page-repository/transformDocumentLink.ts → src/content-page-repository/transformDocument.ts} +11 -11
  215. package/src/hooks/useRouter.ts +4 -0
  216. package/src/icons/ChevronLeft.svg +1 -1
  217. package/src/icons/IconName.ts +386 -6
  218. package/src/model/Attachment.ts +4 -0
  219. package/src/setup-fixture.ts +4 -1
  220. package/src/ui-kit/Logo/Logo.tsx +13 -14
  221. package/src/ui-kit/TopItem/TopItem.tsx +1 -0
  222. package/tailwind.config.cjs +1 -1
  223. package/bundle/components/LinkDocs/LinkDocs.mobile.d.ts +0 -5
  224. package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
  225. package/bundle/content-page-repository/transformDocumentLink.d.ts +0 -3
  226. package/dist/components/LinkDocs/LinkDocs.mobile.d.ts +0 -5
  227. package/dist/components/LinkDocs/LinkDocs.mobile.js +0 -10
  228. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +0 -1
  229. package/dist/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
  230. package/dist/components/LinkDocs/LinkDocsListItem.js +0 -23
  231. package/dist/components/LinkDocs/LinkDocsListItem.js.map +0 -1
  232. package/dist/content-page-repository/transformDocumentLink.d.ts +0 -3
  233. package/dist/content-page-repository/transformDocumentLink.js.map +0 -1
  234. package/lib/components/LinkDocs/LinkDocs.mobile.d.ts +0 -5
  235. package/lib/components/LinkDocs/LinkDocs.mobile.js +0 -8
  236. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +0 -1
  237. package/lib/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
  238. package/lib/components/LinkDocs/LinkDocsListItem.js.map +0 -1
  239. package/lib/content-page-repository/transformDocumentLink.d.ts +0 -3
  240. package/lib/content-page-repository/transformDocumentLink.js.map +0 -1
  241. package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
  242. package/mobile/bundle/content-page-repository/transformDocumentLink.d.ts +0 -3
  243. package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
  244. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +0 -23
  245. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +0 -1
  246. package/mobile/dist/content-page-repository/transformDocumentLink.d.ts +0 -3
  247. package/mobile/dist/content-page-repository/transformDocumentLink.js.map +0 -1
  248. package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
  249. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +0 -1
  250. package/mobile/lib/content-page-repository/transformDocumentLink.d.ts +0 -3
  251. package/mobile/lib/content-page-repository/transformDocumentLink.js.map +0 -1
  252. package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +0 -49
  253. package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -52
  254. package/src/components/LinkDocs/LinkDocsListItem.tsx +0 -49
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const i=e=>(...i)=>t[e](...i),l=i("useState"),n=i("useEffect"),r=i("useCallback"),a=i("useMemo"),s=i("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:i}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:i})),{token:t,name:i}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:i,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:i,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),g=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:f(e)),t._tmpl},f=e=>{function t(t,i){const{children:l,...n}=t||{},r=i?.slots?.default,a=l||r&&r();return e(Object.assign(n,a&&{children:a}),i)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const i=this.subjectsStateMap[e];return i&&t(i),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const x=new b;function y(e,{sensitivity:t,rootRef:i}={}){const l=s(null),r=a((()=>({threshold:v(t),root:i?.current})),[t,i?.current]);return n((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function v(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,i)=>Math.min(i/t)),1).concat(1)}const N=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},C=p((({className:e,version:t="primary",isTheme:i=!0,defaultPadding:a="p-m",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,g=function(e){return y(r((t=>{if(!e||!t?.length)return;const i=t[t.length-1];N.fire("intersection",{block:e,intersection:i})}),[e]),{sensitivity:1})}(o),[p,f]=l(!1);n((()=>x.subscribe("tab",(e=>{f(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const b=t&&i;return u(h,{className:w("font-sans",b?"group":"",k[t],p?"hidden":"",s||a,e),...b?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:g}:{},role:d,children:m})})),T={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},S={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},_=p((({className:e="",headingType:t="h3",as:i="h3",title:l,children:n})=>{const r=T[i]||"h3";return u(r,{className:w("font-sans m-0",S[t],e),children:l||n})})),I=p((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),P={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-m"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-text"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},R={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},B=p((({className:e,version:t="",headlineVersion:i="XL",title:l,description:n,align:r="text-center",as:a,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=P[i],m={marginTop:d.descriptionStyle};return g(C,{className:e,defaultPadding:s?"p-default":"",version:t,isTheme:o,...c,children:[l?u(_,{className:w("whitespace-pre-wrap",r),...d?.title,as:a||d?.title.as,title:l}):null,n?u(I,{size:d.descriptionSize,font:d.descriptionWeight,align:r,...m,children:n}):null]})})),A=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),j=p((({className:e="",style:t,idx:i,activeIndex:l,observerOptions:n,children:a,onIntersection:s})=>{const o=y(r((e=>{e.length&&s&&s(i||0,e[e.length-1])}),[s,i]),n);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(i===l),ref:o,children:a})})),z=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],$=p((({className:e="",containerRef:t,activeIndex:i,visibleItemCount:l=0,gap:n=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:g})=>{const p={sensitivity:1,rootRef:t},f=s([]),b=r(((e,t)=>{const i=[...f.current||[]];i[e]=t,f.current=i,h&&h(i),g&&g(L(i))}),[h,g]),x=l>0?n*Number(l)-1:0,y="vertical-list"===o,v="horizontal-list"===o,N={...v?V(a,x):{},...y?A(d):{},gap:`${n}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(j,{className:w(c,l?z[l-1]:"",y?"h-full":""),style:v?V(a/4):{},activeIndex:i,idx:t,observerOptions:p,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),V=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),L=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),D={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},M={"horizontal-list":"w-6","vertical-list":"h-6"},O=p((({containerRef:e,activeIndex:t,dotCount:i=0,listType:l="horizontal-list",version:n})=>i?u("div",{className:w("flex gap-2",D[l],n?"group":""),...n?{"data-ver":n}:{},children:new Array(i).fill(null).map(((i,n)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?M[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(i=>{i!==t&&e?.current&&e.current.children[i]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(n)},String(n))))}):null)),F=e=>e,H=(e=F)=>t=>t.reduceRight(((t,i)=>e(t)>e(i)?t:i)),E=(e=F)=>H((t=>-e(t))),U=e=>t=>e.scrollWidth/t,W=e=>(t,i)=>{e.scrollBy({left:i*U(e)(t),behavior:"smooth"})},X=({itemCount:e,isCyclic:t,onVisibleIndicesChange:i})=>{const n=s(null),[a,o]=l([]),c=r((e=>{o((t=>{return(i=t)===(l=e)||Boolean(i&&l&&i?.length===l?.length&&i.every(((e,t)=>e===l[t])))?t:e;var i,l})),i&&i(e)}),[e]),[d,m]=a.length?[E()(a),H()(a)]:[-1,-1],h=d>0,u=m<e-1,g=r((()=>{var i;n.current&&(t&&!h?(i=n.current).scrollTo({left:i.scrollWidth,behavior:"smooth"}):W(n.current)(e,-1))}),[t,e,h]),p=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):W(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:g,scrollRight:p,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},G=p((({className:e,version:t,gap:i=14,padding:l=16,showDots:n=!0,minHeight:r,children:a,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(a)?a.length:0,[d,m]=X({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return g("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u($,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:i,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:r,children:a}),n?u(O,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})}));function J(){return J._impl()}J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),J.setup=e=>{J._impl=e};const Y=e=>Boolean(e?.includes(":")),K=(e,t)=>Boolean(e&&!Y(e)&&(!t||"_self"===t)),q=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var Q=Object.freeze({__proto__:null,isURL:Y,isLocalURL:K,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:q});const Z=e=>(t,i=d.BASE_PATH)=>{if(!t||Y(t)||ee(t,d.CDN))return t;const l=t.startsWith("/");return q(ee(t,i)?"":i,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},ee=(e,t)=>t&&e&&e.startsWith(t),te={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},ie=p((({className:e="",imageClassName:t="",name:i="",alt:l=`Иконка ${i}`,title:n=l,iconVersion:r="color",...a})=>{const s=J(),o=Z(s)(q(d.CDN,"/icons",`${i}.svg`));return"normal"!==r?u(ne,{className:e,children:g("svg",{className:w(le(a.width),te[r],"white"===r?"invert":"",t),...a,"aria-hidden":"true",children:[n?u("title",{children:n}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(a.style={height:`${a.height}px`}),u("img",{className:e,src:o,alt:l,title:n,"aria-hidden":"true",...a}))})),le=e=>e?"":"w-full h-full",ne=p((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),re=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ae=p((({className:e="",image:t,imageClassName:i="",pathPrefix:l})=>{const n=J();return g("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(re).map((({src:e,format:i,media:r},a)=>u("source",{srcSet:oe(n,l)(e),type:ce(i),media:r?`(max-width: ${r}px)`:"",...t.size},`${a}_${e}`))):null,t?.src?se({...t,src:oe(n,l)(t.src)},i):null]})})),se=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),oe=(e,t)=>i=>i&&!Y(i)?Z(e)(q(t,i)):i,ce=e=>e?`image/${String(e)}`:void 0,de=p((({className:e="",image:t,imageClassName:i="",pathPrefix:l,...n})=>t?.src||t?.icon?t.icon?u(ie,{className:e,imageClassName:i,iconVersion:t?.iconVersion,name:t.icon,...n}):u(ae,{className:e,imageClassName:i,image:t,pathPrefix:l}):null)),me=p((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he="text-left",ue=(e,t,i)=>u(G,{children:e.map(((e,t)=>(({icon:e,title:t,description:i},l)=>g("div",{className:w("flex flex-col","justify-between p-4 h-full border border-gray",i||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:he,children:t}):null,e?u(de,{image:e,height:"180",className:"w-auto"}):null,i?u(me,{size:"text-h6",font:"font-normal",align:he,children:i}):null]},String(l)))({...e},t)))}),ge=p((({bonusBenefits:e,cardTextAlign:t="center",className:i="",columnsCount:l="4",subtitle:n,title:r,...a})=>g(C,{className:w("p-default",i),defaultPadding:"p-default",...a,children:[u(B,{className:"mb-4 sm:mb-8",isPadding:!1,title:r,description:n,headlineVersion:"M"}),e?.length?ue(e):null]}))),pe=(e,t)=>pe._impl(e,t);function fe(e={}){const{isRemote:t,basePath:i}=e,l=J(),{close:n}=((e="")=>({open:t=>x.fire("dialog",{type:"open",id:e,message:t}),close:()=>x.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!i?e.href:Z(l)(e.href,i),"aria-label":e.text,onClick:pe(r(e),e)});function r({href:e,target:i,onClick:r}){return a=>{r&&r(a),e&&!t&&K(e,i)&&(n(),a?.preventDefault(),l.push(e))}}}pe._impl=e=>e,pe.setup=e=>{pe._impl=e};const be={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},xe="bg-main-divider text-main-disabled",ye={primary:xe,secondary:xe,white:xe,link:"",transparent:"",gray:xe,"":""},ve="text-center font-sans select-none",Ne={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},we=p((e=>{const{text:t,aboveText:i,appendLeft:l,appendRight:n,version:r="primary"}=e;return g("div",{className:w(ke(e),"flex gap-2"),children:[l?u("div",{className:Ne[r],children:l}):null,Ce(e)?g("div",{children:[i?u("div",{className:"text-xs font-light text-left",children:i}):null,u("div",{className:"text-left "+(i?"text-s -mt-0.5":"text-l"),children:t})]}):null,n?u("div",{className:Ne[r],children:n}):null]})})),ke=e=>{const{version:t,aboveText:i,rounded:l}=e;if("link"===t)return"";const n=""+(i?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",Ce(e)?n:"h-12 w-12",l?"rounded-full":""].join(" ")},Ce=({text:e,aboveText:t,appendLeft:i})=>Boolean(e||t||!i),Te=({className:e,rounded:t,version:i})=>["inline-block",ve,i?ye[i]:"",t?"rounded-full":"rounded-md",e].join(" "),Se=({className:e,rounded:t,version:i})=>[ve,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",i?be[i]:"",t?"rounded-full":"rounded-md",e].join(" "),_e=p((({disabled:e,children:t,...i})=>{const l=fe()(i),n=t??u(we,{...l});return u(e?Pe:Ie,{...l,children:n})})),Ie=p((({className:e="",href:t,rel:i,target:l,ariaLabel:n,version:r,rounded:a,onClick:s,children:o})=>u("a",{className:Se({className:e,version:r,rounded:a}),href:t,rel:i,target:l,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),Pe=p((({className:e,ariaLabel:t,version:i,rounded:l,children:n})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Te({className:e,rounded:l,version:i}),children:n}))),Re=(e,{className:t,buttonClassName:i,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-s",t),children:e.map(Be(i))}):null,Be=(e="")=>(t,i)=>{const{text:l,icon:n,iconRight:r,version:a,...s}=t||{},o="secondary"===a?"color":"white",c=n?.iconVersion?n?.iconVersion:o;return l||n?.icon?u(_e,{className:w("basis-full sm:basis-auto",e),appendLeft:Ae({...n,iconVersion:c}),appendRight:Ae({...r,iconVersion:c}),version:a,text:l,...s},i?String(i):""):null},Ae=e=>e?.icon||e?.src?u(de,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,je=p((({buttons:e,className:t,...i})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...i,children:Re(e)}))),ze=e=>e,$e=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0),Ve=p((({key:e,className:t="",inputClassName:i="",id:l,name:n,type:a="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:p,onBlur:f,pattern:b})=>{const x=r((e=>{h&&h(e.target?.value||"")}),[h]),y=m?"pr-8":"",v=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return g("div",{className:w("relative",t),children:[g("label",{children:[s?u("div",{className:"mb-2",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",y,v,i),id:l,name:n||l,placeholder:o,type:a,value:c,onInput:x,onFocus:p,onBlur:f,pattern:b},e)]}),m]})})),Le=p((e=>{const{onChange:t,min:i,max:n,defaultValue:a="0",fractionDigits:s=0,...o}=e,c=((e,{normalize:t,format:i})=>{const{value:n,onFocus:a,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=r((e=>{d(!0),a&&a(e)}),[]),h=r((()=>{d(!1),o&&o(t(n)),s&&s()}),[o,n]);return{value:c||!i?n:i(n),onFocus:m,onBlur:h}})(e,{normalize:(e=a)=>i&&n?String(((e,t,i)=>Math.max(t,Math.min(e,i)))(Number(De(e)),i,n)):De(e),format:$e(s)}),d=r((e=>t&&t(De(e))),[t]);return u(Ve,{onChange:d,...o,...c})})),De=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Me=p((e=>u(Le,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),Oe="amount",Fe={[Oe]:1500},He=p((({className:e="",title:t="Укажите сумму перевода",label:i="Сумма перевода",placeholder:n="1500",button:a,...o})=>{const[{amount:c},{field:d}]=((e,t)=>{const[i,n]=l(e),[a,o]=l(!1),[c,d]=l({}),m=s({}),h=r(((e,t)=>{const{parse:l=ze,format:r=ze}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{n((i=>({...i,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:r(i[e]),isDirty:a||c[e],onChange:m.current[e]}}),[i,a,c]),u=r((()=>{n(e),o(!1),d({})}),[e]),g=r((e=>{e.preventDefault(),o(!0),t&&t(i)}),[t,i]);return[i,{isDirty:a||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:g}]})(Fe),m=c<=0,h=m?Te({version:a?.version}):Se({className:"text-white",version:a?.version}),p=fe();return g(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-default",...o,children:[t?u(_,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,g("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(Me,{name:Oe,valid:!m,placeholder:n,label:i,...d(Oe,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",h),disabled:m,...p(a),children:a.text}):null]})]})})),Ee=({blockClassName:e,block:t,render:i})=>i({blockClassName:e,block:t}),Ue=[];function We(e,t,{className:i,...l}={}){const{key:n,blockDecorator:r=Ee,blocksRegistry:a={},ancestors:s=Ue}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return r({blockClassName:w("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:s,render:({block:i,blockClassName:r})=>{const{content:a}=i;return c?u(c,{className:r,block:e,options:t,...a,...l},n):null}},n)}const Xe=[],Ge=(e,{key:t,ancestors:i=Xe,slotName:l=null,renderProps:n=We,...r})=>(e||[]).map(((e,a)=>n(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...i||Xe,[r.parent,l]]:i})));function Je({children:e,block:t,options:i,renderProps:l}){return e||(t&&i?Ge(t.blocks,{...i,parent:t,renderProps:l}):null)}const Ye=p((({className:e,disabled:t,...i})=>u(_e,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...i,children:u(de,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),Ke=p((e=>u(Ye,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),qe=p((e=>u(Ye,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Qe="absolute top-[calc(50%-24px)] z-40",Ze="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",et=p((({scroll:e,arrowsPadded:t,isBlur:i,onScrollLeft:l,onScrollRight:n,hasEdgeBlocks:a,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,p=a?s>0:c,f=a?s<o-1:d,b=r((()=>{a?(c&&s!==o-1&&m(),l()):m()}),[m,l,a,c,s,o]),x=r((()=>{a?(d&&0!==s&&h(),n()):h()}),[h,n,a,c,s,o]);return g("div",{children:[tt(i,e),p?u(Ke,{className:w(Qe,t?"left-8":"left-0"),onClick:b}):null,f?u(qe,{className:w(Qe,t?"right-8":"right-0"),onClick:x}):null]})})),tt=(e,t)=>e?g("div",{children:[t.canScrollLeft?u("div",{className:w(Ze,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Ze,"right-0 bg-opacity-to-white")}):null]}):null,it=({showArrows:e,showDots:t,scrollButtonsProps:i,dotsProps:l})=>[e?u(et,{...i},"0"):null,t?u(O,{...l,listType:"horizontal-list"},"1"):null],lt=p((({className:e="",itemCount:t,visibleItemCount:i=0,isBlur:n=!0,isCyclic:a=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,showArrows:m=!0,isGap:h=!0,...p})=>{const{blocks:f=[]}=p.block||{},b=t||f?.length,[x,y]=l(Math.floor(i/2)),v=r((()=>y((e=>e+1))),[]),N=r((()=>y((e=>e-1))),[]),[k,T]=X({itemCount:b,isCyclic:a}),[S]=T.visibleIndicesRange,_=f&&"CarouselBankHistoryCard"===f[0]?.type;return u(C,{className:e,defaultPadding:nt(o),...p,children:g("div",{className:w(rt(d),"relative max-w-full"),children:[u($,{containerRef:k,visibleItemCount:i,snapAlign:"snap-start",gap:h?16:void 0,onVisibleIndicesChange:T.handleVisibleIndicesChange,children:Je({...p,renderProps:_?(e,t)=>We(e,t,{blocksLength:f?.length,activeIndex:x}):We})}),it({showArrows:m,showDots:c,scrollButtonsProps:{scroll:T,arrowsPadded:s,isBlur:n,onScrollLeft:N,onScrollRight:v,hasEdgeBlocks:_,activeIndex:x,itemCount:b},dotsProps:{containerRef:k,activeIndex:S,dotCount:b}})]})})}));lt.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const nt=e=>e?"p-default":"",rt=e=>e?"flex justify-center":"",at=p((({title:e,description:t,className:i})=>u(C,{className:w(i),defaultPadding:"p-default",children:u(B,{headlineVersion:"S",title:e,description:t,align:"text-left",className:"text-primary-text",isPadding:!1})}))),st=p((({className:e="",href:t,target:i,isRemote:l=!1,children:n})=>{const r=fe({isRemote:l})({href:t,target:i});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:n})})),ot=p((({className:e="",title:t,icon:i,list:l=[],href:n,target:r,...a})=>u(C,{className:w("border border-gray",e),defaultPadding:"p-lg sm:p-0",...a,children:g(st,{className:"sm:flex sm:items-center",href:n,target:r,children:[u("div",{className:"min-w-[200px] flex justify-center",children:i?.src||i?.icon?u(de,{image:i}):null}),g("div",{className:"sm:px-3 py-xl",children:[t?u(_,{className:"mb-2 sm:mb-3.5",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-2 sm:gap-3",children:l?.map(ct)}):null]})]})}))),ct=(e,t)=>g("div",{className:"flex flex-row-reverse justify-between gap-y-1 sm:flex-col",children:[e.title?u(me,{size:"text-l",font:"font-light",children:e.title}):null,e.description?u(I,{size:"text-l",font:"font-light",color:"",children:e.description}):null]},String(t)),dt={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},mt=p((({className:e,isDotted:t=!0,children:i,size:l="M"})=>g("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",dt[l])})}):null,u("span",{children:i})]}))),ht={S:"text-l font-light",M:"text-h6",L:"text-h5"},ut={S:"ml-2",M:"ml-3",L:"ml-4"},gt=p((({className:e,hasIndent:t,isDotted:i,items:l,listItemSize:n="M"})=>l?.length?u("section",{className:w("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",ht[n],t?ut[n]:"",e),role:"list",children:l.map(((e,t)=>u(mt,{isDotted:i,size:n,children:e},String(t))))}):null)),pt={default:"w-24 h-14",small:"w-12 h-12"},ft=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",pt[t]),bt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],xt=p((({buttonSize:e="default",rounded:t=!1,icon:i,...l})=>{const{href:n,version:r,text:a=""}=l,{iconMapped:s,label:o}=bt.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{},c=yt(i)??s;return u(_e,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",ft(a,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:a,version:r,...l,children:c&&!a?u(de,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),yt=e=>e?.src||e?.icon?e:void 0,vt=p((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(xt,{...e},String(t))))}))),Nt=p((({className:e="",description:t,href:i,icon:l,items:n=[],socialMedia:r=[],target:a,title:s,align:o="text-left",...c})=>u(C,{className:w("relative box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-default",...c,children:g(st,{href:i,target:a,children:[u(B,{className:"mb-2",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),n.length?u(gt,{className:"flex flex-col gap-2",items:n,listItemSize:"S"}):null,wt(l),r.length?u(vt,{className:"mt-5",media:r}):null]})}))),wt=e=>e?.src||e?.icon?u("div",{children:u(de,{image:e})}):null,kt=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:i=!1,renderFoldableSection:n,renderFoldButton:a})=>{const[s,o]=l(i),c=r((()=>{o((e=>!e))}),[]),d=n({isUnfolded:s,onToggle:c}),m=a?a({isUnfolded:s,onToggle:c}):null;return g("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ct=p((({className:e="",isUnfolded:t,children:i})=>{const l=s(null);return n((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,i?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:i})})),Tt=(e=!1)=>e?"p-default mt-6":"mt-6 p-default",St=(e,t)=>{const{title:i,description:l,buttons:n}=e;return g("div",{className:"py-5 border-b border-main-divider",children:[i?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:i})}):null,l?u("div",{className:"mt-1",children:u(me,{size:"text-l",color:"text-primary-text",children:l})}):null,n?.length?u("div",{className:"text-primary-main",children:Re(n)}):null]},String(t))},_t=p((({className:e="",title:t,icon:i,isHighlighting:l=!1,button:n,cardCells:r=[],...a})=>{const s=r.map(St),o=s.slice(0,1),c=s.slice(1);return g(C,{className:w("relative border border-gray flex flex-col",e),defaultPadding:Tt(l),...a,children:[l?Rt():null,It(i),t?u(_,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?u(_e,{className:"w-full mt-4",...n}):null,r.length?u(kt,{renderFoldableSection:({isUnfolded:e})=>g("div",{children:[o,u(Ct,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Pt:null}):null]})})),It=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(de,{image:e}):null}),Pt=({isUnfolded:e,onToggle:t})=>g("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(ie,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Rt=()=>g("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(ie,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(I,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Bt={normal:"min-w-[970px]",small:"min-w-[355px]"};function At(e="",t="normal"){const i=(e=>{const t="col-span-",i=e?.split(/\s+/).find((e=>e.startsWith(t)));return i?parseInt(i.substring(t.length),10):12})(e);return i<=4?"w-[375px]":Bt[t]}const jt="absolute border border-solid border-gray w-full h-full sm:hidden",zt=p((({className:e="",button:t,description:i,title:l,carouselVersion:n="normal",version:r=""})=>u("section",{className:w("flex pb-9 pl-12 sm:p-5 border-box h-full sm:max-w-[375px]",At(e,n),e),children:g("div",{className:"relative w-full",children:[u("div",{className:`${jt} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${jt} z-10 top-6 right-8 bg-green`}),u("div",{className:`${jt} z-10 top-3 right-4 bg-green-light`}),g("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(B,{className:"!p-0",title:l,description:i,headlineVersion:"XS",align:"text-left",version:r}),Re([t],{className:"mt-14 sm:justify-center",isVertical:!0})]})]})}))),$t={black:"bg-black",white:"bg-white"},Vt=p((({className:e="",title:t,description:i,image:l,price:n,button:r,colors:a,...s})=>g(C,{className:w("border box-border border-gray p-default sm:p-7 h-full flex flex-col justify-left",e),...s,children:[l?.src?u(de,{className:"mb-5 flex justify-center",image:l}):null,t?u(_,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,i?u("div",{className:"mb-4",children:u(I,{size:"text-m",align:"text-left",font:"font-light",children:i})}):null,a?.length?g("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),a.map(Lt)]}):null,n?g(me,{size:"text-h3",align:"text-left",children:[n," ₽"]}):null,Re([r],{buttonClassName:"mt-5 w-full"})]}))),Lt=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${$t[e]}`},String(t)),Dt=p((({additionalDescription:e,align:t="text-center",button:i={},className:l="",description:n,headlineSmallVersion:r="H6",href:a,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...p})=>g(C,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),defaultPadding:"p-0",version:u,...p,children:[g(st,{className:"p-s",href:a,target:m,children:[Mt(s),Ot(r,h),Ft(n,h),Et(d,o,u),Ht(e)]}),Re([i],{className:w("p-s pt-0",c?"":"self-center min-w-[158px]"),isVertical:c})]}))),Mt=e=>g("div",{className:"flex justify-center",children:[e?.src?u(de,{className:"mb-5",image:e}):null,e?.icon?u(de,{className:"w-8 h-8 min-w-8 mb-5",image:e}):null]}),Ot=(e,t)=>t?u("div",{children:u(me,{size:R[e],children:t})}):null,Ft=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(I,{size:"text-l",children:e})}):null,Ht=e=>e?u("div",{className:"mt-auto",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Et=(e,t,i="primary")=>e?.length?u(gt,{className:w("max-w-[308px] mt-2 text-s","primary"===i?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,Ut=(e=!1)=>e?"text-white":"",Wt=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Xt=p((({icon:e,image:t,title:i,subtitle:l,isFillGradient:n})=>g("div",{role:"columnheader",children:[e?u(de,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(de,{image:t})}),i?u(_,{headingType:"h4",className:Ut(n),title:i}):null,l?u("div",{className:Wt(n),children:l}):null]}))),Gt=p((({cell:e,rowHeader:t,isFillGradient:i=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Jt(i,t))})}))),Jt=(e,t)=>({label:i,description:l},n)=>g("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),g("div",{className:"basis-1/2",children:[i?u("div",{className:"text-right "+(e?"text-white":""),children:i}):null,l?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l}):null]})]},String(n)),Yt=p((({header:e,columnData:t,visibleRowLength:i=0,isFillGradient:l,showRow:n,onToggleColumn:r})=>{const a=t?.slice(0,n?t.length:i),s=l?"secondary":"primary";return g("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(Xt,{...e,isFillGradient:l}),a?.length?a.map((({rowHeader:e,cell:t},i)=>u(Gt,{cell:t,rowHeader:e,isFillGradient:l},String(i)))):null,n&&e?.link?u(_e,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Kt({onToggleColumn:r,isFillGradient:l,showRow:n})]})})),Kt=({onToggleColumn:e,isFillGradient:t,showRow:i})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:i?"Скрыть":"Показать описание"})}),qt=p((e=>{const{className:t,title:i}=e;return g("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[i?u(_,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:i}):null,u("div",{role:"table",children:u(Qt,{...e})})]})})),Qt=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:i,visibleRowLength:n,orientation:a,...s})=>{const[o,c]=l(new Array(e.length).fill(!n)),d=r((e=>{const t=(t,i)=>i===e?!t:t;c((e=>e.map(t)))}),[]),m=r((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:l},r)=>{return u(Yt,{visibleRowLength:n,showRow:o[r],header:l,columnData:(a=e,a?.map(((e,i)=>({cell:e,rowHeader:t?.[i]?.title})))),isFillGradient:0===r&&i,onToggleColumn:()=>d(r),...s},String(r));var a}));return"horizontal"===a?u(G,{onVisibleIndicesChange:m,children:h}):h})),Zt=e=>null!=e,ei=new Map;function ti(e,t,{fallback:i,cache:r}={}){const s=a((()=>ii(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);n((()=>{!s.some(Zt)||(async()=>{try{const e=await(o?((e,t=ei)=>i=>{const l=t.get(i);if(Zt(l))return l;const n=e(i);return Zt(n)?t.set(i,Promise.resolve(n)):t.delete(i),n})(t,r)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,r,s]);const u=i&&o&&i[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ii(e){return Array.isArray(e)?e:e instanceof Function?ii(e()):[e]}async function li(e,t){const i=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await i.json()}const ni={};function ri(e,t={}){const{data:i}=ti(`/wcms-resources/${e}.json`,li,{fallback:t});return i||ni}const ai=p((({className:e="",items:t})=>t?.length?u("ul",{className:w("flex flex-col p-0","",e),children:t.map(si)}):null)),si=(e,t)=>{const{text:i,...l}=e;return u("li",{className:"list-none mb-4 sm:mb-6 sm:last:mb-0",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...l,children:i||null})},`list_item_${String(t)}`)},oi=p((({className:e="",label:t,icon:i,dataTheme:l="",disabled:n=!1,onClick:r})=>g("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",n?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:n,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),i?u(de,{image:{icon:i,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),ci=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",di={primary:"bg-main-divider",secondary:"bg-white/30","secondary-light":"bg-secondary-light"},mi=p((({iconBgVersion:e="primary",size:t,icon:i,...l})=>{const n=String(t?.width||24),r=String(t?.height||24);return i?u("div",{className:w("rounded-icon p-2.5",di[e]),children:u(ie,{...l,width:n,height:r,name:i})}):null})),hi=(e,t)=>u(mi,{...e,iconBgVersion:t}),ui=p((({className:e="",label:t="Развернуть",labelIcon:i,labelIconBgVersion:l,isExpanded:n,isFoldButtonOnTop:r=!0,version:a="primary",...s})=>u(C,{className:w("w-full","",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(kt,{isFoldButtonOnTop:r,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(Ct,{className:w("gap-5 [&>*]:p-0","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:Je(s)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>gi({version:a,label:t,labelIcon:i,labelIconBgVersion:l,isUnfolded:e,onToggle:n})})})));ui.childrenTypes={exclude:["RollupItem"]};const gi=({version:e,label:t,labelIcon:i,labelIconBgVersion:l,isUnfolded:n,onToggle:r})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?pi({label:a,labelIcon:i,labelIconBgVersion:l,icon:ci(n),onToggle:r}):u(oi,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},pi=({label:e,labelIconBgVersion:t,icon:i,onToggle:l,labelIcon:n})=>g("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",n?.icon?"py-2":"py-5"),onClick:l,children:[g("div",{className:"flex items-center group-hover/button:text-primary-main",children:[hi(n,t),e?u(me,{size:"text-l",font:"font-normal",children:e}):null]}),i?u(ie,{name:i,iconVersion:"normal",width:"24",height:"24"}):null]}),fi=p((({className:e="",items:t,hasButton:i})=>g("div",{className:e,children:[t?.length?t.map(bi):null,i?u(_e,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),bi=(e,t)=>g("div",{className:"mb-6",children:[u("div",{className:"mb-4",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(xi)})]},String(t)),xi=(e,t)=>g("div",{className:"mb-4",children:[u("div",{children:yi(e.type,e.text)}),u("div",{className:"mt-1 text-s font-light text-secondary-text",children:e.description})]},String(t)),yi=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${vi(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},vi=e=>e.replaceAll(/\D/g,""),Ni=p((({className:e="",index:t,text:i,...l})=>{const n=fe(),{href:r,target:a,onClick:s}=n(l);return u("a",{className:w("",e),href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),wi=p((({title:e,links:t,className:i=""})=>g("div",{className:i,children:[u(me,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(Ni,{index:t,...e},String(t))))}):null]}))),ki=p((({className:e="",index:t,...i})=>{const l=fe({isRemote:!0}),{href:n,target:r,text:a,onClick:s}=l(i);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:n,target:r,onClick:s,children:a||`Документ ${t}`})})),Ci=p((({className:e="",links:t})=>g("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(ki,{index:t,...e},String(t))))}):null]}))),Ti=p((({className:e="",...t})=>{const i=t.options?.page?.fallback,l=ri(d.SITEMAP||"sitemap",i),{relatedEnterprises:n,contacts:r,socialMedia:a,horizontalNavigationTitle:s}=ri(d.FOOTER||"footer",i);return g(C,{tag:"footer",className:e,defaultPadding:"px-4 py-6",...t,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:l.topItems?.map(((e,t)=>u(ui,{label:e?.text,labelIcon:e?.icon,children:u(ai,{items:e.items,className:"my-3"})},String(t))))}),u(fi,{className:"overflow-hidden",items:r}),u(vt,{className:"mb-4",media:a}),u(_e,{className:"w-full mb-4",text:"Google Play",version:"secondary",href:"/",target:"_blank"}),u(wi,{className:"pt-4 pb-7 border-y border-main-divider",title:s,links:n}),u(Ci,{})]})})),Si={"bg-white":"color",transparent:"white"},_i={"bg-white":"text-primary-main",transparent:"text-white"},Ii=(e,t,i)=>u(de,t?.src?{image:t,className:_i[e],width:i?.width,height:i?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Si[e]},className:_i[e],width:i?.width,height:i?.height}),Pi={"bg-white":"text-primary-text",transparent:"text-white"},Ri=(e,t,i)=>u("span",{className:`${Pi[t]} ml-2.5 font-medium ${i||""}`,children:e||"Россельхозбанк"}),Bi=p((({bgColor:e="bg-white",children:t,className:i="",href:l,logo:n,showTitle:r=!0,targetBlank:a})=>g("a",{className:`inline-flex items-center font-sans no-underline ${i}`,href:l||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[Ii(e,n?.image,{width:"34",height:"34"}),r?Ri(t||n?.title,e,"text-s"):null]}))),Ai={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},ji=p((({bgColor:e,logo:t,internetBankUrl:i,version:l,mobileHeaderType:n,mobileTitle:r,mobileBackwardButtonTitle:a})=>{const s="none"===n,o="withTitle"===n;return g("div",{className:"flex items-center justify-between w-full",children:[s||o?u(Bi,{bgColor:e,logo:t,showTitle:s}):null,o?r:null,"backwardButton"===n?g(_e,{className:"flex items-center text-l",children:[u(de,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),a]}):null,i?u(_e,{href:i,ariaLabel:"Войти",target:"_blank",className:w("p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover",Ai["transparent"===l?"transparent":"default"]),children:"Войти"}):null]})})),zi={"bg-white":"primary",transparent:"transparent"},$i=p((({bgColor:e="bg-white",version:t=zi[e],mobileHeaderType:i="none",...l})=>{const n=l.options?.page?.fallback,{logo:r,internetBankUrl:a}=ri(d.SITEMAP||"sitemap",n);return u(C,{tag:"header",defaultPadding:"",version:t,...l,children:u("div",{className:"container px-4 py-1 box-border",children:u(ji,{bgColor:e,logo:r,internetBankUrl:a,version:t,mobileHeaderType:i,...l})})})})),Vi=p((e=>{const{className:t,image:i,...l}=e;return u(C,{className:t,defaultPadding:"p-0",...l,children:u(de,{image:i})})})),Li=p((({doc:e,icon:t})=>{const{text:i,fileSize:l,...n}=e;return g("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...n,children:[t,i?g(me,{size:"text-l",font:"font-light",children:[i,u(me,{color:"text-secondary-text",children:n?.href&&Di(Mi(n.href),l)})]}):null]})})),Di=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Mi=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Oi=p((({className:e="",title:t,description:i,icon:l={icon:"DocDownloadIcon",iconVersion:"black"},documents:n,align:r,...a})=>g(C,{className:e,defaultPadding:"p-default",...a,children:[u(B,{isPadding:!1,title:t,description:i,align:r,headlineVersion:"M"}),n?.length?u("div",{className:"mt-5 flex flex-col gap-6",role:"list",children:n.map(((e,t)=>u("div",{role:"listitem",children:u(Li,{doc:e,icon:l?u(de,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:l,width:"24",height:"24"}):null})},String(t))))}):null]}))),Fi={left:"text-left",center:"text-center",right:"text-right"},Hi={start:"self-start",center:"self-center",end:"self-end"},Ei=p((({className:e,defaultPadding:t,padding:i,title:l="",insetTitle:n="",buttons:r,leftImage:a,rightImage:s,imageAlign:o,backImage:c,children:d})=>g("div",{className:w("relative flex flex-col gap-lg font-sans overflow-hidden",i||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,l?u("div",{className:"relative",children:l}):null,g("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-lg",children:[Ui(a,{imageAlign:o}),g("div",{className:w("flex flex-col gap-lg max-w-[600px] xl:max-w-[728px]",a?"":"grow"),children:[n,u("div",{className:"grow",children:d}),r]}),Ui(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),Ui=(e,{className:t,imageAlign:i})=>e?u("div",{className:w("flex-shrink-0",i&&Hi[i],t),children:e}):null,Wi=e=>e?u("div",{className:"mb-5 pt-0.5 sm:mb-0 sm:pt-0",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,Xi=e=>e?.length?u(gt,{items:e,className:"text-l font-light mb-2 last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Gi=p((({className:e,padding:t,alignTitle:i="left",buttons:l=[],description:n,headingType:r="h4",image:a,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-3.5 min-w-[120px]":"min-w-[92px]";return u(C,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:g(Ei,{className:"h-full",padding:t,defaultPadding:"p-default",title:c?u(_,{headingType:r,title:c,className:w("whitespace-pre-wrap",Fi[i])}):null,backImage:a?.src?u(de,{image:a}):null,buttons:Re(l,{isVertical:l.length>3}),children:[Wi(n),g("div",{className:"flex flex-1 gap-s items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(de,{className:"w-fit",image:o})}):null,Xi(s)]})]})})})),Ji=(e=[])=>e?.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e)/e.length:0,Yi=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(de,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Ki=p((e=>{const{__html:t="",richVersion:i=""}=e;return u("div",{className:w(i,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),qi=(e,t)=>e?u(I,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Qi=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Zi=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Ki,{...e},`rte-${t}`):["label"in e?Qi(e.label,t):null,"description"in e?qi(e.description,t):null],el=p((({className:e,benefitsVersion:t,...i})=>g("div",{className:w("flex gap-s","description"in i&&i.description?"items-start":"items-center",e),children:["icon"in i?Yi(i.icon,t):null,u("div",{children:Zi(i)})]}))),tl=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),il=e=>{return((t=e.map(tl))?.length?Math.sqrt(Math.abs(Ji(t.map((e=>e**2)))-Ji(t)**2)):0)>16;var t},ll=p((({className:e,benefitsVersion:t="normal",benefits:i})=>i?.length?u("div",{className:w("flex gap-x-m gap-y-s",il(i)?"flex-col":"flex-wrap",e),children:i.map(((e,i)=>u(el,{benefitsVersion:t,...e},String(i))))}):null)),nl=p((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(Zi)}):null)),rl=p((({isTabularBenefits:e,...t})=>u(e?nl:ll,{...t}))),al=p((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(sl)}):null)),sl=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),ol=p((({className:e,padding:t,defaultPadding:i,title:l,description:n,headlineVersion:r="L",align:a="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:p=!0,listItemSize:f,tags:b,buttons:x,image:y,imageOptions:{imageAlign:v="end",directionRight:N=!0,isBackground:w}={},children:k})=>{const C=y?.src?u(de,{image:y}):null,T=u(B,{title:l,description:n,headlineVersion:r,align:a,isPadding:!1});return u(Ei,{className:e,padding:t,defaultPadding:i,...s?{insetTitle:T}:{title:T},...w?{backImage:C}:cl(C,N),imageAlign:v,buttons:Re(x),children:g("div",{className:"flex flex-col gap-m",children:[u(rl,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Ki,{__html:m}):null,h?.length?u(gt,{items:h,isDotted:p,listItemSize:f}):null,k,b?.length?u(al,{tags:b}):null]})})})),cl=(e,t)=>t?{rightImage:e}:{leftImage:e},dl=(e,t)=>e||t?g("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-m",children:[Number(e)>0?ml("Страховая сумма:",e):null,Number(t)>0?ml("Ежемесячный лимит:",t):null]}):null,ml=(e,t=0)=>g("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),g(me,{size:"text-h6",color:"text-primary-text",children:[$e(2)(t)," ₽"]})]}),hl=p((({className:e,padding:t,headlineVersion:i="M",align:l="text-center",sum:n,monthLimit:r,imageOptions:a,...s})=>u(C,{className:e,padding:"p-0",...s,children:u(ol,{className:"h-full",defaultPadding:"p-default",padding:t,headlineVersion:i,align:l,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...a},...s,children:dl(Number(n),Number(r))})}))),ul=p((({className:e,title:t,description:i="Блок в разработке...",...l})=>g(C,{className:w("box-border",e),...l,children:[u(B,{className:"max-w-[600px]",title:t,description:i,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-m min-w-[80%]",children:gl()})]}))),gl=(e=3)=>fl(100,e).map((e=>Math.floor(e))).map(pl),pl=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),fl=(e,t)=>[e].concat(t>0?fl(e/1.618,t-1):[]);function bl({text:e,href:t,target:i,icon:l},n){const r="primary"===n?"white":"black",a={text:e,href:t,target:i,ariaLabel:e};return g("div",{className:"flex items-center gap-3",children:[u(_e,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:n,rounded:!0,...a,children:u(de,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||r}})}),u(_e,{version:"link",...a})]})}const xl=p((({className:e,padding:t,backwardButton:i,...l})=>g(C,{className:w("overflow-hidden flex flex-col gap-lg box-border",e),defaultPadding:"p-default",padding:t,...l,children:[i?.text?bl(i,l.version&&"primary"!==l.version?"white":"primary"):null,u(ol,{className:"grow h-full",...l})]}))),yl=p((({className:e,padding:t,slides:i=[],...l})=>u(C,{className:w("overflow-hidden relative",e),padding:t,...l,children:u(G,{gap:0,padding:0,children:i.map((e=>e.productBlock)).map(((e,t)=>u("div",{className:"box-border h-full",role:"listitem",children:u(ol,{className:"px-5 h-full",headlineVersion:"L",...e,...l})},String(t))))})}))),vl=p((e=>{const{__html:t,richVersion:i,...l}=e;return u(C,{defaultPadding:"p-0",...l,children:u(Ki,{__html:t,richVersion:i})})}));function Nl(e){throw new Error(e)}const wl={normal:{icon:"h-11 w-11",image:"h-14 w-14"},small:{icon:"h-12 w-12",image:"h-14 w-14"}},kl={normal:"",small:"min-h-12"},Cl={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Tl=p((({className:e="",title:t,description:i,steps:l,buttons:n,size:r="normal",version:a="primary",...s})=>g(C,{className:w("box-border flex flex-col gap-2",e),defaultPadding:"p-default",version:a,...s,children:[t?u(_,{headingType:"h3",className:"text-left",title:t}):null,i?u(I,{size:"text-xl",font:"font-light",children:u("span",{className:Cl.description,children:i})}):null,l?.length?u("div",{className:"box-border",children:u("div",{className:"flex flex-col justify-between",children:l.map(Sl(r,a))})}):null,Re(n,{className:"mt-3",isVertical:!0})]}))),Sl=(e,t)=>(i,l)=>{const{type:n}=i;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return _l(e,t)(i,l);case"rte":return u(Ki,{__html:i.__html});default:Nl(i)}},_l=(e,t)=>(i,l)=>u("div",{className:"contents",children:g("div",{className:"flex flex-row text-center relative py-3",children:[u("div",{className:"overflow-hidden flex flex-shrink-0 items-center",children:Il(e,t)(i,l)}),g("div",{className:w("flex flex-col justify-center h-fit",kl[e]),children:[i.label?u("div",{className:"text-l m-0 text-left",children:i.label}):null,i.description?u("div",{className:w("text-s font-light text-left",Cl.description),children:i.description}):null]})]})},String(l)),Il=(e,t)=>(i,l)=>{const n="normal"===e?"38":"24",r="secondary"===t?"white":"color",a=Boolean(i?.icon?.src),s=wl[e][a?"image":"icon"];return u("div",{className:w(s,a?"":`rounded-md ${Cl.iconBackground}`,"z-10 mr-3 flex justify-center content-center"),children:u("span",{className:"flex self-center text-h4 text-secondary-text group-data-secondary:text-white",children:(o=i?.icon,Boolean(o?.icon||o?.src)?u(de,{image:{...i.icon,iconVersion:i.icon?.iconVersion||r},width:n,height:n}):u("span",{children:l+1}))})});var o},Pl="h-12 flex-1 flex items-center justify-center cursor-pointer",Rl="font-sans text-m text-center",Bl="text-secondary-text sm:group-hover/btn:text-primary-main",Al={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Pl} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Pl} group/btn bg-white`},centered:{active:`px-4 rounded-md ${Pl} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${Pl} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${Pl} bg-primary-main text-white whitespace-nowrap`,default:`${Pl} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${Rl} flex items-center h-full border-0 border-b-2`,default:`${Rl} ${Bl}`},centered:{active:`${Rl} text-white`,default:`${Rl} ${Bl}`},wideScreen:{active:`${Rl} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${Rl} ${Bl} px-2.5 bg-white`}}},jl=(e,t,i)=>{const l=t?"active":"default";return Al[e][i||"wideScreen"][l]},zl=p((e=>{const{tab:t,currentTab:i,onClick:l,tabsMode:n}=e,r="link"===i?.type&&i.href===t.href,a=fe()(t);return u("div",{className:jl("block",r,n),role:"tab","aria-selected":r,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",jl("text",r,n)),target:t.target,href:a.href,onClick:e=>{a.onClick(e),l(t)},children:u("span",{children:t.text})})})})),$l=(e,t,i)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center",i&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),Vl=({page:e,showCounter:t,...i})=>(l,n)=>{const r=l.type;if("group"!==r&&"link"!==r)return null;switch(r){case"group":return(({page:e,currentTab:t,showCounter:i,onClick:l,tabsMode:n})=>(r,a)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:jl("block",s,n),role:"tab","aria-selected":s,onClick:()=>l(r),children:g("div",{className:w("flex flex-1 items-center justify-center h-full",jl("text",s,n)),children:[u("span",{children:r.title}),i&&o?$l(n,o,s):null]})},`group-${String(a)}`)})({page:e,showCounter:t,...i})(l,n);case"link":return u(zl,{tab:l,...i},String(n));default:Nl(r)}return null},Ll=p((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(Vl({...t}))}))),Dl=p((e=>{const{tabs:t,...i}=e,[l,n]=X({itemCount:t?.length||0,isCyclic:!1});return g("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u($,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:n.handleVisibleIndicesChange,children:t?.map(Vl({...i}))})}),n.canScrollLeft?u(Ke,{className:"absolute z-40 top-0 left-6",onClick:n.scrollLeft}):null,n.canScrollRight?u(qe,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:n.scrollRight}):null]})})),Ml=p((e=>{const{className:t="",isSticky:i,tabs:a,...s}=e,[o,c]=l(a?a[0]:void 0);n((()=>{a&&a[0]&&Fl(a[0])}),[]),n((()=>{"group"===o?.type&&x.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=r((e=>{Fl(e),c(e)}),[]);return u(C,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",i?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:Ol({tabs:a,onClick:d,currentTab:o,...s})})})),Ol=({tabsMode:e,tabs:t,...i})=>{switch(e){case"wideScreen":return t?.map(Vl({tabsMode:e,...i}));case"centered":return u(Ll,{tabs:t,tabsMode:e,...i});case"scrollable":return u(Dl,{tabs:t,tabsMode:e,...i})}return null},Fl=e=>{"group"===e.type&&x.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&x.fire("tab",{type:e.type,label:e.href})},Hl={Buttons:({buttons:e})=>Re(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(de,{image:e,className:"m-0",imageClassName:"m-0"}):null,List:({isDotted:e,...t})=>u(gt,{className:"flex flex-col justify-between items-start text-m pl-2 text-base",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>g("div",{children:[e?u("div",{className:"mb-2",children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},El=p((({title:e,icon:t})=>g("div",{className:"mb-2",children:[e?u(me,{size:"text-l",font:"font-light",children:e}):null,t?u(de,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),Ul=p((({tile:e,...t})=>g("div",{className:"h-full",children:[u(El,{title:e?.header?.title}),e?.data?.length?e.data.map(((e,i)=>u("div",{className:"mb-2",children:Wl(e,t)},String(i)))):null]})));function Wl(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Hl))return null;const i=Hl[e.tableCellType];return u(i,{displayTable:()=>null,isVisible:!0,...e,...t})}const Xl=p((({tiles:e,...t})=>e?.length?u(G,{...t,padding:void 0,children:e.map(((e,i)=>u(Ul,{tile:e,...t},String(i))))}):null)),Gl=p((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,i)=>u(Ul,{tile:e,...t},String(i))))}):null)),Jl=p((({className:e,title:t,description:i,tariffsColumns:l,rowHeaders:n,orientation:r="vertical",...a})=>{const s=Yl(l),o=Kl(n,s);return g("section",{className:`p-default bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[u(B,{title:t,description:i,headlineVersion:"M",align:"text-left",isPadding:!1,className:"mb-8"}),u("vertical"===r?Gl:Xl,{tiles:o,...a})]})})),Yl=e=>e?.[0]?.data?e[0].data:[],Kl=(e,t)=>e?.map(((e,i)=>({header:e,data:t?.[i]||[{}]}))),ql=p((({className:e="",title:t,description:i,iconVersion:l,image:n,__html:r,items:a=[],...s})=>g(C,{className:w("flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:Ql()}):null,"big"===l?Zl(n):null,g("div",{className:"flex flex-col w-fit gap-3",children:[t?u(me,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,i?en(i):null,a?.length?tn(a,!0):null,r?u(Ki,{__html:r}):null]})]}))),Ql=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Zl=e=>e?.src?u(de,{className:"h-fit",image:e}):null,en=e=>u(I,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),tn=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),ln={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},nn={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},rn=p((({className:e="",gap:t="",align:i="stretch",isPadding:l=!1,isInnerPadding:n=!0,version:r="transparent",isTheme:a=!1,...s})=>{const o=n?"":"!p-0";return u(C,{className:w("relative","flex flex-col [&>*]:max-w-full",ln[t],i&&nn[i],e),defaultPadding:l?"p-default":"",version:r,isTheme:a,...s,children:Je({...s,renderProps:(e,t)=>We(e,t,{className:o})})})}));rn.childrenTypes=[];const an=p((({className:e="",title:t,benefitList:i,...l})=>g(C,{className:e,defaultPadding:"p-default",...l,children:[t?u(_,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,i?.length?u("div",{className:"sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8",role:"list",children:i.map(sn)}):null]}))),sn=(e,t)=>g("div",{className:"flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14",role:"listitem",children:[e?.icon?.icon?u(de,{className:w("p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black","w-56 h-56 min-w-56"),image:e.icon}):null,e?.icon?.src?u(de,{className:"mr-5 shrink-0",image:e.icon}):null,e?.label?g("div",{className:"sm:h-full",children:[u(_,{headingType:"h6",children:e.label}),on(e.description)]}):null]},String(t)),on=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?dn(e):cn(e)}):null},cn=e=>e?.name||null,dn=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},mn={ButtonsBlock:je,BonusBenefitsBlock:ge,CardTransfer:He,Carousel:lt,CarouselCard:zt,CarouselCatalogCard:Vt,CarouselProductCard:Dt,CarouselBankHistoryCard:at,CarouselTariffsCard:_t,ComparisonTable:qt,Footer:Ti,Header:$i,Headline:B,ImgBlock:Vi,LinkDocs:Oi,MobileAppTile:Gi,PictureText:hl,Placeholder:ul,ProductBlock:xl,StepsBlock:Tl,Tabs:Ml,TariffsTable:Jl,TextBlock:ql,RichTextBlock:vl,RollupItem:ui,VerticalLayout:rn,CarouselRecommendationCard:Nt,CarouselProgramsCard:ot,ProductGallery:yl,BenefitsBlock:an};function hn(e=!1){const[t,i]=l(e),n=r((()=>i(!0)),[]),a=r((()=>i(!1)),[]),s=r((()=>i((e=>!e))),[]);return[t,{setValue:i,setTrue:n,setFalse:a,toggle:s}]}const un=["Header","Footer"],gn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function pn(e=globalThis){const t=s(new Map);n((()=>N.subscribe("intersection",(({block:e,intersection:i})=>{t.current&&t.current.set(e,i)}))),[]),n((()=>{const i=((e,t=600)=>{let i;const l=(...n)=>{l.dispose(),i=setTimeout((()=>{e(...n)}),t)};return l.dispose=()=>{i&&clearTimeout(i)},l})((()=>{!function(e){const t=`#${i=e?.anchor,i?.replace("#","")||""}`;var i;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!un.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[i]=t.length>0?E(gn)(t):[];return i}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",i),()=>{i.dispose(),e.removeEventListener("scroll",i)}}),[e])}const fn=p((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(de,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function bn({onOpen:e,onClose:t}={}){n((()=>x.subscribe("dialog",(i=>{switch(i.type){case"open":e&&e(i);break;case"close":t&&t();break;default:Nl(i)}}))),[e,t])}const xn="cookie",yn=p((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:i,open:a,close:o}=function(e,t=!1){const[i,{setTrue:n,setFalse:a}]=hn(t),[o,c]=l({id:e}),d=s(i);d.current||=i;const m=r((t=>{t.id===e?(c(t),n()):a()}),[e]),h=r((()=>{a(),x.fire("dialog",{type:"close"})}),[]);return bn({onOpen:m,onClose:a}),{...o,isOpened:i,wasOpened:d.current,open:n,close:a,onClose:h}}(xn);((e,t,i=300)=>{n((()=>{const t=setTimeout(e,i);return()=>{clearTimeout(t)}}),t)})((()=>{globalThis.localStorage?.getItem(xn)||a()}),[],3e3);const c=r((()=>{globalThis.localStorage?.setItem(xn,"true"),o()}),[o]);return i?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:g("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:g(I,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(st,{isRemote:!0,className:w(vn(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(st,{isRemote:!0,className:w(vn(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(fn,{className:"bg-main-gray rounded-md",onClick:c})})]})}):null})),vn=e=>["inline mx-1",e?"text-green-dark":""],Nn=h();const wn=p((({className:e,onClick:t,ariaLabel:i})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":i,children:kn()}))),kn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return g("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Cn=p((({className:e=""})=>{const t=function(e){const[t,i]=l(0);return n((()=>{(async()=>{const[t]=await Nn.getLikeCount(e);i(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{i(await Nn.like(e))}),[e]),dislike:r((async()=>{i(await Nn.dislike(e))}),[e])}}(J().pathname);return g("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(wn,{onClick:pe(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(wn,{onClick:pe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Tn=p((e=>{const{className:t="",blocksRegistry:i,blockDecorator:l,data:n={}}=e,{style:r,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=n,d={key:"",page:n,blocksRegistry:i,blockDecorator:l,parent:n};pn();const[m,{setTrue:h,setFalse:p}]=hn();return bn({onOpen:h,onClose:p}),g("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Ge(s?.header,{...d,slotName:"header"})}):null,g("div",{className:"container grid grid-cols-12 gap-1",children:[Ge(a,d),s?.footer?Ge(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Cn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(yn,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));Tn.childrenTypes=[],Tn.slots=()=>["header","footer"];e.Blocks=mn,e.ContentPage=Tn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),i=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await i.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=pe,e.joinList=e=>t=>t.reduce(((t,i,l)=>t.length?t.concat({...e,key:`sep-${l}`},i):[i]),[]),e.packageVersion="0.12.7",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Q,e.useRouter=J,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const i=e=>(...i)=>t[e](...i),l=i("useState"),n=i("useEffect"),r=i("useCallback"),a=i("useMemo"),s=i("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:i}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:i})),{token:t,name:i}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:i,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:i,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),g=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:f(e)),t._tmpl},f=e=>{function t(t,i){const{children:l,...n}=t||{},r=i?.slots?.default,a=l||r&&r();return e(Object.assign(n,a&&{children:a}),i)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const i=this.subjectsStateMap[e];return i&&t(i),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const x=new b;function y(e,{sensitivity:t,rootRef:i}={}){const l=s(null),r=a((()=>({threshold:v(t),root:i?.current})),[t,i?.current]);return n((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function v(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,i)=>Math.min(i/t)),1).concat(1)}const N=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},C=p((({className:e,version:t="primary",isTheme:i=!0,defaultPadding:a="p-m",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,g=function(e){return y(r((t=>{if(!e||!t?.length)return;const i=t[t.length-1];N.fire("intersection",{block:e,intersection:i})}),[e]),{sensitivity:1})}(o),[p,f]=l(!1);n((()=>x.subscribe("tab",(e=>{f(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const b=t&&i;return u(h,{className:w("font-sans",b?"group":"",k[t],p?"hidden":"",s||a,e),...b?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:g}:{},role:d,children:m})})),T={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},S={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},_=p((({className:e="",headingType:t="h3",as:i="h3",title:l,children:n})=>{const r=T[i]||"h3";return u(r,{className:w("font-sans m-0",S[t],e),children:l||n})})),I=p((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),P={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-m"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-text"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},R={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},B=p((({className:e,version:t="",headlineVersion:i="XL",title:l,description:n,align:r="text-center",as:a,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=P[i],m={marginTop:d.descriptionStyle};return g(C,{className:e,defaultPadding:s?"p-default":"",version:t,isTheme:o,...c,children:[l?u(_,{className:w("whitespace-pre-wrap",r),...d?.title,as:a||d?.title.as,title:l}):null,n?u(I,{size:d.descriptionSize,font:d.descriptionWeight,align:r,...m,children:n}):null]})})),A=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),j=p((({className:e="",style:t,idx:i,activeIndex:l,observerOptions:n,children:a,onIntersection:s})=>{const o=y(r((e=>{e.length&&s&&s(i||0,e[e.length-1])}),[s,i]),n);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(i===l),ref:o,children:a})})),z=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],$=p((({className:e="",containerRef:t,activeIndex:i,visibleItemCount:l=0,gap:n=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:g})=>{const p={sensitivity:1,rootRef:t},f=s([]),b=r(((e,t)=>{const i=[...f.current||[]];i[e]=t,f.current=i,h&&h(i),g&&g(V(i))}),[h,g]),x=l>0?n*Number(l)-1:0,y="vertical-list"===o,v="horizontal-list"===o,N={...v?L(a,x):{},...y?A(d):{},gap:`${n}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(j,{className:w(c,l?z[l-1]:"",y?"h-full":""),style:v?L(a/4):{},activeIndex:i,idx:t,observerOptions:p,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),L=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),V=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),D={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},M={"horizontal-list":"w-6","vertical-list":"h-6"},O=p((({containerRef:e,activeIndex:t,dotCount:i=0,listType:l="horizontal-list",version:n})=>i?u("div",{className:w("flex gap-2",D[l],n?"group":""),...n?{"data-ver":n}:{},children:new Array(i).fill(null).map(((i,n)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?M[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(i=>{i!==t&&e?.current&&e.current.children[i]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(n)},String(n))))}):null)),F=e=>e,H=(e=F)=>t=>t.reduceRight(((t,i)=>e(t)>e(i)?t:i)),E=(e=F)=>H((t=>-e(t))),U=e=>t=>e.scrollWidth/t,W=e=>(t,i)=>{e.scrollBy({left:i*U(e)(t),behavior:"smooth"})},X=({itemCount:e,isCyclic:t,onVisibleIndicesChange:i})=>{const n=s(null),[a,o]=l([]),c=r((e=>{o((t=>{return(i=t)===(l=e)||Boolean(i&&l&&i?.length===l?.length&&i.every(((e,t)=>e===l[t])))?t:e;var i,l})),i&&i(e)}),[e]),[d,m]=a.length?[E()(a),H()(a)]:[-1,-1],h=d>0,u=m<e-1,g=r((()=>{var i;n.current&&(t&&!h?(i=n.current).scrollTo({left:i.scrollWidth,behavior:"smooth"}):W(n.current)(e,-1))}),[t,e,h]),p=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):W(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:g,scrollRight:p,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},G=p((({className:e,version:t,gap:i=14,padding:l=16,showDots:n=!0,minHeight:r,children:a,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(a)?a.length:0,[d,m]=X({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return g("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u($,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:i,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:r,children:a}),n?u(O,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})}));function J(){return J._impl()}J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const Y=e=>Boolean(e?.includes(":")),K=(e,t)=>Boolean(e&&!Y(e)&&(!t||"_self"===t)),q=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var Q=Object.freeze({__proto__:null,isURL:Y,isLocalURL:K,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:q});const Z=e=>(t,i=d.BASE_PATH)=>{if(!t||Y(t)||ee(t,d.CDN))return t;const l=t.startsWith("/");return q(ee(t,i)?"":i,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},ee=(e,t)=>t&&e&&e.startsWith(t),te={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},ie=p((({className:e="",imageClassName:t="",name:i="",alt:l=`Иконка ${i}`,title:n=l,iconVersion:r="color",...a})=>{const s=J(),o=Z(s)(q(d.CDN,"/icons",`${i}.svg`));return"normal"!==r?u(ne,{className:e,children:g("svg",{className:w(le(a.width),te[r],"white"===r?"invert":"",t),...a,"aria-hidden":"true",children:[n?u("title",{children:n}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(a.style={height:`${a.height}px`}),u("img",{className:e,src:o,alt:l,title:n,"aria-hidden":"true",...a}))})),le=e=>e?"":"w-full h-full",ne=p((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),re=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ae=p((({className:e="",image:t,imageClassName:i="",pathPrefix:l})=>{const n=J();return g("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(re).map((({src:e,format:i,media:r},a)=>u("source",{srcSet:oe(n,l)(e),type:ce(i),media:r?`(max-width: ${r}px)`:"",...t.size},`${a}_${e}`))):null,t?.src?se({...t,src:oe(n,l)(t.src)},i):null]})})),se=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),oe=(e,t)=>i=>i&&!Y(i)?Z(e)(q(t,i)):i,ce=e=>e?`image/${String(e)}`:void 0,de=p((({className:e="",image:t,imageClassName:i="",pathPrefix:l,...n})=>t?.src||t?.icon?t.icon?u(ie,{className:e,imageClassName:i,iconVersion:t?.iconVersion,name:t.icon,...n}):u(ae,{className:e,imageClassName:i,image:t,pathPrefix:l}):null)),me=p((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he="text-left",ue=(e,t,i)=>u(G,{children:e.map(((e,t)=>(({icon:e,title:t,description:i},l)=>g("div",{className:w("flex flex-col","justify-between p-4 h-full border border-gray",i||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:he,children:t}):null,e?u(de,{image:e,height:"180",className:"w-auto"}):null,i?u(me,{size:"text-h6",font:"font-normal",align:he,children:i}):null]},String(l)))({...e},t)))}),ge=p((({bonusBenefits:e,cardTextAlign:t="center",className:i="",columnsCount:l="4",subtitle:n,title:r,...a})=>g(C,{className:w("p-default",i),defaultPadding:"p-default",...a,children:[u(B,{className:"mb-4 sm:mb-8",isPadding:!1,title:r,description:n,headlineVersion:"M"}),e?.length?ue(e):null]}))),pe=(e,t)=>pe._impl(e,t);function fe(e={}){const{isRemote:t,basePath:i}=e,l=J(),{close:n}=((e="")=>({open:t=>x.fire("dialog",{type:"open",id:e,message:t}),close:()=>x.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!i?e.href:Z(l)(e.href,i),"aria-label":e.text,onClick:pe(r(e),e)});function r({href:e,target:i,onClick:r}){return a=>{r&&r(a),e&&!t&&K(e,i)&&(n(),a?.preventDefault(),l.push(e))}}}pe._impl=e=>e,pe.setup=e=>{pe._impl=e};const be={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},xe="bg-main-divider text-main-disabled",ye={primary:xe,secondary:xe,white:xe,link:"",transparent:"",gray:xe,"":""},ve="text-center font-sans select-none",Ne={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},we=p((e=>{const{text:t,aboveText:i,appendLeft:l,appendRight:n,version:r="primary"}=e;return g("div",{className:w(ke(e),"flex gap-2"),children:[l?u("div",{className:Ne[r],children:l}):null,Ce(e)?g("div",{children:[i?u("div",{className:"text-xs font-light text-left",children:i}):null,u("div",{className:"text-left "+(i?"text-s -mt-0.5":"text-l"),children:t})]}):null,n?u("div",{className:Ne[r],children:n}):null]})})),ke=e=>{const{version:t,aboveText:i,rounded:l}=e;if("link"===t)return"";const n=""+(i?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",Ce(e)?n:"h-12 w-12",l?"rounded-full":""].join(" ")},Ce=({text:e,aboveText:t,appendLeft:i})=>Boolean(e||t||!i),Te=({className:e,rounded:t,version:i})=>["inline-block",ve,i?ye[i]:"",t?"rounded-full":"rounded-md",e].join(" "),Se=({className:e,rounded:t,version:i})=>[ve,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",i?be[i]:"",t?"rounded-full":"rounded-md",e].join(" "),_e=p((({disabled:e,children:t,...i})=>{const l=fe()(i),n=t??u(we,{...l});return u(e?Pe:Ie,{...l,children:n})})),Ie=p((({className:e="",href:t,rel:i,target:l,ariaLabel:n,version:r,rounded:a,onClick:s,children:o})=>u("a",{className:Se({className:e,version:r,rounded:a}),href:t,rel:i,target:l,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),Pe=p((({className:e,ariaLabel:t,version:i,rounded:l,children:n})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Te({className:e,rounded:l,version:i}),children:n}))),Re=(e,{className:t,buttonClassName:i,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-s",t),children:e.map(Be(i))}):null,Be=(e="")=>(t,i)=>{const{text:l,icon:n,iconRight:r,version:a,...s}=t||{},o="secondary"===a?"color":"white",c=n?.iconVersion?n?.iconVersion:o;return l||n?.icon?u(_e,{className:w("basis-full sm:basis-auto",e),appendLeft:Ae({...n,iconVersion:c}),appendRight:Ae({...r,iconVersion:c}),version:a,text:l,...s},i?String(i):""):null},Ae=e=>e?.icon||e?.src?u(de,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,je=p((({buttons:e,className:t,...i})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...i,children:Re(e)}))),ze=e=>e,$e=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0),Le=p((({key:e,className:t="",inputClassName:i="",id:l,name:n,type:a="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:p,onBlur:f,pattern:b})=>{const x=r((e=>{h&&h(e.target?.value||"")}),[h]),y=m?"pr-8":"",v=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return g("div",{className:w("relative",t),children:[g("label",{children:[s?u("div",{className:"mb-2",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",y,v,i),id:l,name:n||l,placeholder:o,type:a,value:c,onInput:x,onFocus:p,onBlur:f,pattern:b},e)]}),m]})})),Ve=p((e=>{const{onChange:t,min:i,max:n,defaultValue:a="0",fractionDigits:s=0,...o}=e,c=((e,{normalize:t,format:i})=>{const{value:n,onFocus:a,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=r((e=>{d(!0),a&&a(e)}),[]),h=r((()=>{d(!1),o&&o(t(n)),s&&s()}),[o,n]);return{value:c||!i?n:i(n),onFocus:m,onBlur:h}})(e,{normalize:(e=a)=>i&&n?String(((e,t,i)=>Math.max(t,Math.min(e,i)))(Number(De(e)),i,n)):De(e),format:$e(s)}),d=r((e=>t&&t(De(e))),[t]);return u(Le,{onChange:d,...o,...c})})),De=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Me=p((e=>u(Ve,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),Oe="amount",Fe={[Oe]:1500},He=p((({className:e="",title:t="Укажите сумму перевода",label:i="Сумма перевода",placeholder:n="1500",button:a,...o})=>{const[{amount:c},{field:d}]=((e,t)=>{const[i,n]=l(e),[a,o]=l(!1),[c,d]=l({}),m=s({}),h=r(((e,t)=>{const{parse:l=ze,format:r=ze}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{n((i=>({...i,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:r(i[e]),isDirty:a||c[e],onChange:m.current[e]}}),[i,a,c]),u=r((()=>{n(e),o(!1),d({})}),[e]),g=r((e=>{e.preventDefault(),o(!0),t&&t(i)}),[t,i]);return[i,{isDirty:a||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:g}]})(Fe),m=c<=0,h=m?Te({version:a?.version}):Se({className:"text-white",version:a?.version}),p=fe();return g(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-default",...o,children:[t?u(_,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,g("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(Me,{name:Oe,valid:!m,placeholder:n,label:i,...d(Oe,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",h),disabled:m,...p(a),children:a.text}):null]})]})})),Ee=({blockClassName:e,block:t,render:i})=>i({blockClassName:e,block:t}),Ue=[];function We(e,t,{className:i,...l}={}){const{key:n,blockDecorator:r=Ee,blocksRegistry:a={},ancestors:s=Ue}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return r({blockClassName:w("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:s,render:({block:i,blockClassName:r})=>{const{content:a}=i;return c?u(c,{className:r,block:e,options:t,...a,...l},n):null}},n)}const Xe=[],Ge=(e,{key:t,ancestors:i=Xe,slotName:l=null,renderProps:n=We,...r})=>(e||[]).map(((e,a)=>n(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...i||Xe,[r.parent,l]]:i})));function Je({children:e,block:t,options:i,renderProps:l}){return e||(t&&i?Ge(t.blocks,{...i,parent:t,renderProps:l}):null)}const Ye=p((({className:e,disabled:t,...i})=>u(_e,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...i,children:u(de,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),Ke=p((e=>u(Ye,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),qe=p((e=>u(Ye,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Qe="absolute top-[calc(50%-24px)] z-40",Ze="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",et=p((({scroll:e,arrowsPadded:t,isBlur:i,onScrollLeft:l,onScrollRight:n,hasEdgeBlocks:a,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,p=a?s>0:c,f=a?s<o-1:d,b=r((()=>{a?(c&&s!==o-1&&m(),l()):m()}),[m,l,a,c,s,o]),x=r((()=>{a?(d&&0!==s&&h(),n()):h()}),[h,n,a,c,s,o]);return g("div",{children:[tt(i,e),p?u(Ke,{className:w(Qe,t?"left-8":"left-0"),onClick:b}):null,f?u(qe,{className:w(Qe,t?"right-8":"right-0"),onClick:x}):null]})})),tt=(e,t)=>e?g("div",{children:[t.canScrollLeft?u("div",{className:w(Ze,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Ze,"right-0 bg-opacity-to-white")}):null]}):null,it=({showArrows:e,showDots:t,scrollButtonsProps:i,dotsProps:l})=>[e?u(et,{...i},"0"):null,t?u(O,{...l,listType:"horizontal-list"},"1"):null],lt=p((({className:e="",itemCount:t,visibleItemCount:i=0,isBlur:n=!0,isCyclic:a=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,showArrows:m=!0,isGap:h=!0,...p})=>{const{blocks:f=[]}=p.block||{},b=t||f?.length,[x,y]=l(Math.floor(i/2)),v=r((()=>y((e=>e+1))),[]),N=r((()=>y((e=>e-1))),[]),[k,T]=X({itemCount:b,isCyclic:a}),[S]=T.visibleIndicesRange,_=f&&"CarouselBankHistoryCard"===f[0]?.type;return u(C,{className:e,defaultPadding:nt(o),...p,children:g("div",{className:w(rt(d),"relative max-w-full"),children:[u($,{containerRef:k,visibleItemCount:i,snapAlign:"snap-start",gap:h?16:void 0,onVisibleIndicesChange:T.handleVisibleIndicesChange,children:Je({...p,renderProps:_?(e,t)=>We(e,t,{blocksLength:f?.length,activeIndex:x}):We})}),it({showArrows:m,showDots:c,scrollButtonsProps:{scroll:T,arrowsPadded:s,isBlur:n,onScrollLeft:N,onScrollRight:v,hasEdgeBlocks:_,activeIndex:x,itemCount:b},dotsProps:{containerRef:k,activeIndex:S,dotCount:b}})]})})}));lt.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const nt=e=>e?"p-default":"",rt=e=>e?"flex justify-center":"",at=p((({title:e,description:t,className:i})=>u(C,{className:w(i),defaultPadding:"p-default",children:u(B,{headlineVersion:"S",title:e,description:t,align:"text-left",className:"text-primary-text",isPadding:!1})}))),st=p((({className:e="",href:t,target:i,isRemote:l=!1,children:n})=>{const r=fe({isRemote:l})({href:t,target:i});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:n})})),ot=p((({className:e="",title:t,icon:i,list:l=[],href:n,target:r,...a})=>u(C,{className:w("border border-gray",e),defaultPadding:"p-lg sm:p-0",...a,children:g(st,{className:"sm:flex sm:items-center",href:n,target:r,children:[u("div",{className:"min-w-[200px] flex justify-center",children:i?.src||i?.icon?u(de,{image:i}):null}),g("div",{className:"sm:px-3 py-xl",children:[t?u(_,{className:"mb-2 sm:mb-3.5",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-2 sm:gap-3",children:l?.map(ct)}):null]})]})}))),ct=(e,t)=>g("div",{className:"flex flex-row-reverse justify-between gap-y-1 sm:flex-col",children:[e.title?u(me,{size:"text-l",font:"font-light",children:e.title}):null,e.description?u(I,{size:"text-l",font:"font-light",color:"",children:e.description}):null]},String(t)),dt={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},mt=p((({className:e,isDotted:t=!0,children:i,size:l="M"})=>g("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",dt[l])})}):null,u("span",{children:i})]}))),ht={S:"text-l font-light",M:"text-h6",L:"text-h5"},ut={S:"ml-2",M:"ml-3",L:"ml-4"},gt=p((({className:e,hasIndent:t,isDotted:i,items:l,listItemSize:n="M"})=>l?.length?u("section",{className:w("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",ht[n],t?ut[n]:"",e),role:"list",children:l.map(((e,t)=>u(mt,{isDotted:i,size:n,children:e},String(t))))}):null)),pt={default:"w-24 h-14",small:"w-12 h-12"},ft=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",pt[t]),bt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],xt=p((({buttonSize:e="default",rounded:t=!1,icon:i,...l})=>{const{href:n,version:r,text:a=""}=l,{iconMapped:s,label:o}=bt.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{},c=yt(i)??s;return u(_e,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",ft(a,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:a,version:r,...l,children:c&&!a?u(de,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),yt=e=>e?.src||e?.icon?e:void 0,vt=p((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(xt,{...e},String(t))))}))),Nt=p((({className:e="",description:t,href:i,icon:l,items:n=[],socialMedia:r=[],target:a,title:s,align:o="text-left",...c})=>u(C,{className:w("relative box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-default",...c,children:g(st,{href:i,target:a,children:[u(B,{className:"mb-2",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),n.length?u(gt,{className:"flex flex-col gap-2",items:n,listItemSize:"S"}):null,wt(l),r.length?u(vt,{className:"mt-5",media:r}):null]})}))),wt=e=>e?.src||e?.icon?u("div",{children:u(de,{image:e})}):null,kt=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:i=!1,renderFoldableSection:n,renderFoldButton:a})=>{const[s,o]=l(i),c=r((()=>{o((e=>!e))}),[]),d=n({isUnfolded:s,onToggle:c}),m=a?a({isUnfolded:s,onToggle:c}):null;return g("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ct=p((({className:e="",isUnfolded:t,children:i})=>{const l=s(null);return n((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,i?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:i})})),Tt=(e=!1)=>e?"p-default mt-6":"mt-6 p-default",St=(e,t)=>{const{title:i,description:l,buttons:n}=e;return g("div",{className:"py-5 border-b border-main-divider",children:[i?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:i})}):null,l?u("div",{className:"mt-1",children:u(me,{size:"text-l",color:"text-primary-text",children:l})}):null,n?.length?u("div",{className:"text-primary-main",children:Re(n)}):null]},String(t))},_t=p((({className:e="",title:t,icon:i,isHighlighting:l=!1,button:n,cardCells:r=[],...a})=>{const s=r.map(St),o=s.slice(0,1),c=s.slice(1);return g(C,{className:w("relative border border-gray flex flex-col",e),defaultPadding:Tt(l),...a,children:[l?Rt():null,It(i),t?u(_,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?u(_e,{className:"w-full mt-4",...n}):null,r.length?u(kt,{renderFoldableSection:({isUnfolded:e})=>g("div",{children:[o,u(Ct,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Pt:null}):null]})})),It=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(de,{image:e}):null}),Pt=({isUnfolded:e,onToggle:t})=>g("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(ie,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Rt=()=>g("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(ie,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(I,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Bt={normal:"min-w-[970px]",small:"min-w-[355px]"};function At(e="",t="normal"){const i=(e=>{const t="col-span-",i=e?.split(/\s+/).find((e=>e.startsWith(t)));return i?parseInt(i.substring(t.length),10):12})(e);return i<=4?"w-[375px]":Bt[t]}const jt="absolute border border-solid border-gray w-full h-full sm:hidden",zt=p((({className:e="",button:t,description:i,title:l,carouselVersion:n="normal",version:r=""})=>u("section",{className:w("flex pb-9 pl-12 sm:p-5 border-box h-full sm:max-w-[375px]",At(e,n),e),children:g("div",{className:"relative w-full",children:[u("div",{className:`${jt} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${jt} z-10 top-6 right-8 bg-green`}),u("div",{className:`${jt} z-10 top-3 right-4 bg-green-light`}),g("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(B,{className:"!p-0",title:l,description:i,headlineVersion:"XS",align:"text-left",version:r}),Re([t],{className:"mt-14 sm:justify-center",isVertical:!0})]})]})}))),$t={black:"bg-black",white:"bg-white"},Lt=p((({className:e="",title:t,description:i,image:l,price:n,button:r,colors:a,...s})=>g(C,{className:w("border box-border border-gray p-default sm:p-7 h-full flex flex-col justify-left",e),...s,children:[l?.src?u(de,{className:"mb-5 flex justify-center",image:l}):null,t?u(_,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,i?u("div",{className:"mb-4",children:u(I,{size:"text-m",align:"text-left",font:"font-light",children:i})}):null,a?.length?g("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),a.map(Vt)]}):null,n?g(me,{size:"text-h3",align:"text-left",children:[n," ₽"]}):null,Re([r],{buttonClassName:"mt-5 w-full"})]}))),Vt=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${$t[e]}`},String(t)),Dt=p((({additionalDescription:e,align:t="text-center",button:i={},className:l="",description:n,headlineSmallVersion:r="H6",href:a,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...p})=>g(C,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),defaultPadding:"p-0",version:u,...p,children:[g(st,{className:"p-s",href:a,target:m,children:[Mt(s),Ot(r,h),Ft(n,h),Et(d,o,u),Ht(e)]}),Re([i],{className:w("p-s pt-0",c?"":"self-center min-w-[158px]"),isVertical:c})]}))),Mt=e=>g("div",{className:"flex justify-center",children:[e?.src?u(de,{className:"mb-5",image:e}):null,e?.icon?u(de,{className:"w-8 h-8 min-w-8 mb-5",image:e}):null]}),Ot=(e,t)=>t?u("div",{children:u(me,{size:R[e],children:t})}):null,Ft=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(I,{size:"text-l",children:e})}):null,Ht=e=>e?u("div",{className:"mt-auto",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Et=(e,t,i="primary")=>e?.length?u(gt,{className:w("max-w-[308px] mt-2 text-s","primary"===i?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,Ut=(e=!1)=>e?"text-white":"",Wt=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Xt=p((({icon:e,image:t,title:i,subtitle:l,isFillGradient:n})=>g("div",{role:"columnheader",children:[e?u(de,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(de,{image:t})}),i?u(_,{headingType:"h4",className:Ut(n),title:i}):null,l?u("div",{className:Wt(n),children:l}):null]}))),Gt=p((({cell:e,rowHeader:t,isFillGradient:i=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Jt(i,t))})}))),Jt=(e,t)=>({label:i,description:l},n)=>g("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),g("div",{className:"basis-1/2",children:[i?u("div",{className:"text-right "+(e?"text-white":""),children:i}):null,l?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l}):null]})]},String(n)),Yt=p((({header:e,columnData:t,visibleRowLength:i=0,isFillGradient:l,showRow:n,onToggleColumn:r})=>{const a=t?.slice(0,n?t.length:i),s=l?"secondary":"primary";return g("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(Xt,{...e,isFillGradient:l}),a?.length?a.map((({rowHeader:e,cell:t},i)=>u(Gt,{cell:t,rowHeader:e,isFillGradient:l},String(i)))):null,n&&e?.link?u(_e,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Kt({onToggleColumn:r,isFillGradient:l,showRow:n})]})})),Kt=({onToggleColumn:e,isFillGradient:t,showRow:i})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:i?"Скрыть":"Показать описание"})}),qt=p((e=>{const{className:t,title:i}=e;return g("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[i?u(_,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:i}):null,u("div",{role:"table",children:u(Qt,{...e})})]})})),Qt=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:i,visibleRowLength:n,orientation:a,...s})=>{const[o,c]=l(new Array(e.length).fill(!n)),d=r((e=>{const t=(t,i)=>i===e?!t:t;c((e=>e.map(t)))}),[]),m=r((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:l},r)=>{return u(Yt,{visibleRowLength:n,showRow:o[r],header:l,columnData:(a=e,a?.map(((e,i)=>({cell:e,rowHeader:t?.[i]?.title})))),isFillGradient:0===r&&i,onToggleColumn:()=>d(r),...s},String(r));var a}));return"horizontal"===a?u(G,{onVisibleIndicesChange:m,children:h}):h})),Zt=e=>null!=e,ei=new Map;function ti(e,t,{fallback:i,cache:r}={}){const s=a((()=>ii(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);n((()=>{!s.some(Zt)||(async()=>{try{const e=await(o?((e,t=ei)=>i=>{const l=t.get(i);if(Zt(l))return l;const n=e(i);return Zt(n)?t.set(i,Promise.resolve(n)):t.delete(i),n})(t,r)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,r,s]);const u=i&&o&&i[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ii(e){return Array.isArray(e)?e:e instanceof Function?ii(e()):[e]}async function li(e,t){const i=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await i.json()}const ni={};function ri(e,t={}){const{data:i}=ti(`/wcms-resources/${e}.json`,li,{fallback:t});return i||ni}const ai=p((({className:e="",items:t})=>t?.length?u("ul",{className:w("flex flex-col p-0","",e),children:t.map(si)}):null)),si=(e,t)=>{const{text:i,...l}=e;return u("li",{className:"list-none mb-4 sm:mb-6 sm:last:mb-0",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...l,children:i||null})},`list_item_${String(t)}`)},oi=p((({className:e="",label:t,icon:i,dataTheme:l="",disabled:n=!1,onClick:r})=>g("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",n?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:n,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),i?u(de,{image:{icon:i,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),ci=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",di={primary:"bg-main-divider",secondary:"bg-white/30","secondary-light":"bg-secondary-light"},mi=p((({iconBgVersion:e="primary",size:t,icon:i,...l})=>{const n=String(t?.width||24),r=String(t?.height||24);return i?u("div",{className:w("rounded-icon p-2.5",di[e]),children:u(ie,{...l,width:n,height:r,name:i})}):null})),hi=(e,t)=>u(mi,{...e,iconBgVersion:t}),ui=p((({className:e="",label:t="Развернуть",labelIcon:i,labelIconBgVersion:l,isExpanded:n,isFoldButtonOnTop:r=!0,version:a="primary",...s})=>u(C,{className:w("w-full","",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(kt,{isFoldButtonOnTop:r,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(Ct,{className:w("gap-5 [&>*]:p-0","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:Je(s)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>gi({version:a,label:t,labelIcon:i,labelIconBgVersion:l,isUnfolded:e,onToggle:n})})})));ui.childrenTypes={exclude:["RollupItem"]};const gi=({version:e,label:t,labelIcon:i,labelIconBgVersion:l,isUnfolded:n,onToggle:r})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?pi({label:a,labelIcon:i,labelIconBgVersion:l,icon:ci(n),onToggle:r}):u(oi,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},pi=({label:e,labelIconBgVersion:t,icon:i,onToggle:l,labelIcon:n})=>g("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",n?.icon?"py-2":"py-5"),onClick:l,children:[g("div",{className:"flex items-center group-hover/button:text-primary-main",children:[hi(n,t),e?u(me,{size:"text-l",font:"font-normal",children:e}):null]}),i?u(ie,{name:i,iconVersion:"normal",width:"24",height:"24"}):null]}),fi=p((({className:e="",items:t,hasButton:i})=>g("div",{className:e,children:[t?.length?t.map(bi):null,i?u(_e,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),bi=(e,t)=>g("div",{className:"mb-6",children:[u("div",{className:"mb-4",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(xi)})]},String(t)),xi=(e,t)=>g("div",{className:"mb-4",children:[u("div",{children:yi(e.type,e.text)}),u("div",{className:"mt-1 text-s font-light text-secondary-text",children:e.description})]},String(t)),yi=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${vi(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},vi=e=>e.replaceAll(/\D/g,""),Ni=p((({className:e="",index:t,text:i,...l})=>{const n=fe(),{href:r,target:a,onClick:s}=n(l);return u("a",{className:w("",e),href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),wi=p((({title:e,links:t,className:i=""})=>g("div",{className:i,children:[u(me,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(Ni,{index:t,...e},String(t))))}):null]}))),ki=p((({className:e="",index:t,...i})=>{const l=fe({isRemote:!0}),{href:n,target:r,text:a,onClick:s}=l(i);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:n,target:r,onClick:s,children:a||`Документ ${t}`})})),Ci=p((({className:e="",links:t})=>g("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(ki,{index:t,...e},String(t))))}):null]}))),Ti=p((({className:e="",...t})=>{const i=t.options?.page?.fallback,l=ri(d.SITEMAP||"sitemap",i),{relatedEnterprises:n,contacts:r,socialMedia:a,horizontalNavigationTitle:s}=ri(d.FOOTER||"footer",i);return g(C,{tag:"footer",className:e,defaultPadding:"px-4 py-6",...t,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:l.topItems?.map(((e,t)=>u(ui,{label:e?.text,labelIcon:e?.icon,children:u(ai,{items:e.items,className:"my-3"})},String(t))))}),u(fi,{className:"overflow-hidden",items:r}),u(vt,{className:"mb-4",media:a}),u(_e,{className:"w-full mb-4",text:"Google Play",version:"secondary",href:"/",target:"_blank"}),u(wi,{className:"pt-4 pb-7 border-y border-main-divider",title:s,links:n}),u(Ci,{})]})})),Si={"bg-white":"color",transparent:"white"},_i={"bg-white":"text-primary-main",transparent:"text-white"},Ii=(e,t,i)=>u(de,t?.src?{image:t,className:_i[e],width:i?.width,height:i?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Si[e]},className:_i[e],width:i?.width,height:i?.height}),Pi={"bg-white":"text-primary-text",transparent:"text-white"},Ri=(e,t,i)=>u("span",{className:`${Pi[t]} ml-2.5 font-medium ${i||""}`,children:e||"Россельхозбанк"}),Bi=p((({bgColor:e="bg-white",children:t,className:i="",href:l,logo:n,showTitle:r=!0,targetBlank:a})=>g("a",{className:`inline-flex items-center font-sans no-underline ${i}`,href:l||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[Ii(e,n?.image,{width:"34",height:"34"}),r?Ri(t||n?.title,e,"text-s"):null]}))),Ai={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},ji=p((({bgColor:e,logo:t,internetBankUrl:i,version:l})=>{const n=J(),a="/"===n.pathname,s=r((()=>{n.back()}),[]);return g("div",{className:"flex items-center justify-between w-full",children:[a?u(Bi,{bgColor:e,logo:t}):g(_e,{className:"flex items-center text-l",ariaLabel:"Вернуться назад",onClick:s,children:[u(de,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),"Вернуться назад"]}),i?u(_e,{href:i,ariaLabel:"Войти",target:"_blank",className:w("p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover",Ai["transparent"===l?"transparent":"default"]),children:"Войти"}):null]})})),zi={"bg-white":"primary",transparent:"transparent"},$i=p((({bgColor:e="bg-white",version:t=zi[e],...i})=>{const l=i.options?.page?.fallback,{logo:n,internetBankUrl:r}=ri(d.SITEMAP||"sitemap",l);return u(C,{tag:"header",defaultPadding:"",version:t,...i,children:u("div",{className:"container px-4 py-1 box-border",children:u(ji,{bgColor:e,logo:n,internetBankUrl:r,version:t,...i})})})})),Li=p((e=>{const{className:t,image:i,...l}=e;return u(C,{className:t,defaultPadding:"p-0",...l,children:u(de,{image:i})})})),Vi=p((({icon:e,text:t,fileSize:i,...l})=>g("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...l,children:[e,t?g(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:l?.href&&Di(Mi(l.href),i)})]}):null]}))),Di=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Mi=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Oi={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Fi=p((({className:e="",title:t,description:i,align:l="text-center",documents:n,icon:r={icon:"DocIcon"},columnsMode:a="double",...s})=>{const o=J();return g(C,{className:e,defaultPadding:"p-default",...s,children:[u(B,{className:"!p-0",title:t,description:i,align:l,headlineVersion:"M",as:"h2"}),n?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",Oi[a]),role:"list",children:n.map(Hi(o,a,r))}):null]})})),Hi=(e,t,i)=>(l,n)=>{const r="Attachment"===l?.docType?Z(e)(l?.attachment?.src):l?.href;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Vi,{...l,href:r,icon:i?u(de,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:i,width:"24",height:"24"}):null})},String(n))},Ei={left:"text-left",center:"text-center",right:"text-right"},Ui={start:"self-start",center:"self-center",end:"self-end"},Wi=p((({className:e,defaultPadding:t,padding:i,title:l="",insetTitle:n="",buttons:r,leftImage:a,rightImage:s,imageAlign:o,backImage:c,children:d})=>g("div",{className:w("relative flex flex-col gap-lg font-sans overflow-hidden",i||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,l?u("div",{className:"relative",children:l}):null,g("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-lg",children:[Xi(a,{imageAlign:o}),g("div",{className:w("flex flex-col gap-lg max-w-[600px] xl:max-w-[728px]",a?"":"grow"),children:[n,u("div",{className:"grow",children:d}),r]}),Xi(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),Xi=(e,{className:t,imageAlign:i})=>e?u("div",{className:w("flex-shrink-0",i&&Ui[i],t),children:e}):null,Gi=e=>e?u("div",{className:"mb-5 pt-0.5 sm:mb-0 sm:pt-0",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,Ji=e=>e?.length?u(gt,{items:e,className:"text-l font-light mb-2 last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Yi=p((({className:e,padding:t,alignTitle:i="left",buttons:l=[],description:n,headingType:r="h4",image:a,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-3.5 min-w-[120px]":"min-w-[92px]";return u(C,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:g(Wi,{className:"h-full",padding:t,defaultPadding:"p-default",title:c?u(_,{headingType:r,title:c,className:w("whitespace-pre-wrap",Ei[i])}):null,backImage:a?.src?u(de,{image:a}):null,buttons:Re(l,{isVertical:l.length>3}),children:[Gi(n),g("div",{className:"flex flex-1 gap-s items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(de,{className:"w-fit",image:o})}):null,Ji(s)]})]})})})),Ki=(e=[])=>e?.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e)/e.length:0,qi=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(de,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Qi=p((e=>{const{__html:t="",richVersion:i=""}=e;return u("div",{className:w(i,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Zi=(e,t)=>e?u(I,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,el=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,tl=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Qi,{...e},`rte-${t}`):["label"in e?el(e.label,t):null,"description"in e?Zi(e.description,t):null],il=p((({className:e,benefitsVersion:t,...i})=>g("div",{className:w("flex gap-s","description"in i&&i.description?"items-start":"items-center",e),children:["icon"in i?qi(i.icon,t):null,u("div",{children:tl(i)})]}))),ll=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),nl=e=>{return((t=e.map(ll))?.length?Math.sqrt(Math.abs(Ki(t.map((e=>e**2)))-Ki(t)**2)):0)>16;var t},rl=p((({className:e,benefitsVersion:t="normal",benefits:i})=>i?.length?u("div",{className:w("flex gap-x-m gap-y-s",nl(i)?"flex-col":"flex-wrap",e),children:i.map(((e,i)=>u(il,{benefitsVersion:t,...e},String(i))))}):null)),al=p((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(tl)}):null)),sl=p((({isTabularBenefits:e,...t})=>u(e?al:rl,{...t}))),ol=p((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(cl)}):null)),cl=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),dl=p((({className:e,padding:t,defaultPadding:i,title:l,description:n,headlineVersion:r="L",align:a="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:p=!0,listItemSize:f,tags:b,buttons:x,image:y,imageOptions:{imageAlign:v="end",directionRight:N=!0,isBackground:w}={},children:k})=>{const C=y?.src?u(de,{image:y}):null,T=u(B,{title:l,description:n,headlineVersion:r,align:a,isPadding:!1});return u(Wi,{className:e,padding:t,defaultPadding:i,...s?{insetTitle:T}:{title:T},...w?{backImage:C}:ml(C,N),imageAlign:v,buttons:Re(x),children:g("div",{className:"flex flex-col gap-m",children:[u(sl,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Qi,{__html:m}):null,h?.length?u(gt,{items:h,isDotted:p,listItemSize:f}):null,k,b?.length?u(ol,{tags:b}):null]})})})),ml=(e,t)=>t?{rightImage:e}:{leftImage:e},hl=(e,t)=>e||t?g("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-m",children:[Number(e)>0?ul("Страховая сумма:",e):null,Number(t)>0?ul("Ежемесячный лимит:",t):null]}):null,ul=(e,t=0)=>g("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),g(me,{size:"text-h6",color:"text-primary-text",children:[$e(2)(t)," ₽"]})]}),gl=p((({className:e,padding:t,headlineVersion:i="M",align:l="text-center",sum:n,monthLimit:r,imageOptions:a,...s})=>u(C,{className:e,padding:"p-0",...s,children:u(dl,{className:"h-full",defaultPadding:"p-default",padding:t,headlineVersion:i,align:l,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...a},...s,children:hl(Number(n),Number(r))})}))),pl=p((({className:e,title:t,description:i="Блок в разработке...",...l})=>g(C,{className:w("box-border",e),...l,children:[u(B,{className:"max-w-[600px]",title:t,description:i,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-m min-w-[80%]",children:fl()})]}))),fl=(e=3)=>xl(100,e).map((e=>Math.floor(e))).map(bl),bl=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),xl=(e,t)=>[e].concat(t>0?xl(e/1.618,t-1):[]);function yl({text:e,href:t,target:i,icon:l},n){const r="primary"===n?"white":"black",a={text:e,href:t,target:i,ariaLabel:e};return g("div",{className:"flex items-center gap-3",children:[u(_e,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:n,rounded:!0,...a,children:u(de,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||r}})}),u(_e,{version:"link",...a})]})}const vl=p((({className:e,padding:t,backwardButton:i,...l})=>g(C,{className:w("overflow-hidden flex flex-col gap-lg box-border",e),defaultPadding:"p-default",padding:t,...l,children:[i?.text?yl(i,l.version&&"primary"!==l.version?"white":"primary"):null,u(dl,{className:"grow h-full",...l})]}))),Nl=p((({className:e,padding:t,slides:i=[],...l})=>u(C,{className:w("overflow-hidden relative",e),padding:t,...l,children:u(G,{gap:0,padding:0,children:i.map((e=>e.productBlock)).map(((e,t)=>u("div",{className:"box-border h-full",role:"listitem",children:u(dl,{className:"px-5 h-full",headlineVersion:"L",...e,...l})},String(t))))})}))),wl=p((e=>{const{__html:t,richVersion:i,...l}=e;return u(C,{defaultPadding:"p-0",...l,children:u(Qi,{__html:t,richVersion:i})})}));function kl(e){throw new Error(e)}const Cl={normal:{icon:"h-11 w-11",image:"h-14 w-14"},small:{icon:"h-12 w-12",image:"h-14 w-14"}},Tl={normal:"",small:"min-h-12"},Sl={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},_l=p((({className:e="",title:t,description:i,steps:l,buttons:n,size:r="normal",version:a="primary",...s})=>g(C,{className:w("box-border flex flex-col gap-2",e),defaultPadding:"p-default",version:a,...s,children:[t?u(_,{headingType:"h3",className:"text-left",title:t}):null,i?u(I,{size:"text-xl",font:"font-light",children:u("span",{className:Sl.description,children:i})}):null,l?.length?u("div",{className:"box-border",children:u("div",{className:"flex flex-col justify-between",children:l.map(Il(r,a))})}):null,Re(n,{className:"mt-3",isVertical:!0})]}))),Il=(e,t)=>(i,l)=>{const{type:n}=i;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return Pl(e,t)(i,l);case"rte":return u(Qi,{__html:i.__html});default:kl(i)}},Pl=(e,t)=>(i,l)=>u("div",{className:"contents",children:g("div",{className:"flex flex-row text-center relative py-3",children:[u("div",{className:"overflow-hidden flex flex-shrink-0 items-center",children:Rl(e,t)(i,l)}),g("div",{className:w("flex flex-col justify-center h-fit",Tl[e]),children:[i.label?u("div",{className:"text-l m-0 text-left",children:i.label}):null,i.description?u("div",{className:w("text-s font-light text-left",Sl.description),children:i.description}):null]})]})},String(l)),Rl=(e,t)=>(i,l)=>{const n="normal"===e?"38":"24",r="secondary"===t?"white":"color",a=Boolean(i?.icon?.src),s=Cl[e][a?"image":"icon"];return u("div",{className:w(s,a?"":`rounded-md ${Sl.iconBackground}`,"z-10 mr-3 flex justify-center content-center"),children:u("span",{className:"flex self-center text-h4 text-secondary-text group-data-secondary:text-white",children:(o=i?.icon,Boolean(o?.icon||o?.src)?u(de,{image:{...i.icon,iconVersion:i.icon?.iconVersion||r},width:n,height:n}):u("span",{children:l+1}))})});var o},Bl="h-12 flex-1 flex items-center justify-center cursor-pointer",Al="font-sans text-m text-center",jl="text-secondary-text sm:group-hover/btn:text-primary-main",zl={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Bl} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Bl} group/btn bg-white`},centered:{active:`px-4 rounded-md ${Bl} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${Bl} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${Bl} bg-primary-main text-white whitespace-nowrap`,default:`${Bl} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${Al} flex items-center h-full border-0 border-b-2`,default:`${Al} ${jl}`},centered:{active:`${Al} text-white`,default:`${Al} ${jl}`},wideScreen:{active:`${Al} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${Al} ${jl} px-2.5 bg-white`}}},$l=(e,t,i)=>{const l=t?"active":"default";return zl[e][i||"wideScreen"][l]},Ll=p((e=>{const{tab:t,currentTab:i,onClick:l,tabsMode:n}=e,r="link"===i?.type&&i.href===t.href,a=fe()(t);return u("div",{className:$l("block",r,n),role:"tab","aria-selected":r,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",$l("text",r,n)),target:t.target,href:a.href,onClick:e=>{a.onClick(e),l(t)},children:u("span",{children:t.text})})})})),Vl=(e,t,i)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center",i&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),Dl=({page:e,showCounter:t,...i})=>(l,n)=>{const r=l.type;if("group"!==r&&"link"!==r)return null;switch(r){case"group":return(({page:e,currentTab:t,showCounter:i,onClick:l,tabsMode:n})=>(r,a)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:$l("block",s,n),role:"tab","aria-selected":s,onClick:()=>l(r),children:g("div",{className:w("flex flex-1 items-center justify-center h-full",$l("text",s,n)),children:[u("span",{children:r.title}),i&&o?Vl(n,o,s):null]})},`group-${String(a)}`)})({page:e,showCounter:t,...i})(l,n);case"link":return u(Ll,{tab:l,...i},String(n));default:kl(r)}return null},Ml=p((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(Dl({...t}))}))),Ol=p((e=>{const{tabs:t,...i}=e,[l,n]=X({itemCount:t?.length||0,isCyclic:!1});return g("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u($,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:n.handleVisibleIndicesChange,children:t?.map(Dl({...i}))})}),n.canScrollLeft?u(Ke,{className:"absolute z-40 top-0 left-6",onClick:n.scrollLeft}):null,n.canScrollRight?u(qe,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:n.scrollRight}):null]})})),Fl=p((e=>{const{className:t="",isSticky:i,tabs:a,...s}=e,[o,c]=l(a?a[0]:void 0);n((()=>{a&&a[0]&&El(a[0])}),[]),n((()=>{"group"===o?.type&&x.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=r((e=>{El(e),c(e)}),[]);return u(C,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",i?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:Hl({tabs:a,onClick:d,currentTab:o,...s})})})),Hl=({tabsMode:e,tabs:t,...i})=>{switch(e){case"wideScreen":return t?.map(Dl({tabsMode:e,...i}));case"centered":return u(Ml,{tabs:t,tabsMode:e,...i});case"scrollable":return u(Ol,{tabs:t,tabsMode:e,...i})}return null},El=e=>{"group"===e.type&&x.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&x.fire("tab",{type:e.type,label:e.href})},Ul={Buttons:({buttons:e})=>Re(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(de,{image:e,className:"m-0",imageClassName:"m-0"}):null,List:({isDotted:e,...t})=>u(gt,{className:"flex flex-col justify-between items-start text-m pl-2 text-base",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>g("div",{children:[e?u("div",{className:"mb-2",children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},Wl=p((({title:e,icon:t})=>g("div",{className:"mb-2",children:[e?u(me,{size:"text-l",font:"font-light",children:e}):null,t?u(de,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),Xl=p((({tile:e,...t})=>g("div",{className:"h-full",children:[u(Wl,{title:e?.header?.title}),e?.data?.length?e.data.map(((e,i)=>u("div",{className:"mb-2",children:Gl(e,t)},String(i)))):null]})));function Gl(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Ul))return null;const i=Ul[e.tableCellType];return u(i,{displayTable:()=>null,isVisible:!0,...e,...t})}const Jl=p((({tiles:e,...t})=>e?.length?u(G,{...t,padding:void 0,children:e.map(((e,i)=>u(Xl,{tile:e,...t},String(i))))}):null)),Yl=p((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,i)=>u(Xl,{tile:e,...t},String(i))))}):null)),Kl=p((({className:e,title:t,description:i,tariffsColumns:l,rowHeaders:n,orientation:r="vertical",...a})=>{const s=ql(l),o=Ql(n,s);return g("section",{className:`p-default bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[u(B,{title:t,description:i,headlineVersion:"M",align:"text-left",isPadding:!1,className:"mb-8"}),u("vertical"===r?Yl:Jl,{tiles:o,...a})]})})),ql=e=>e?.[0]?.data?e[0].data:[],Ql=(e,t)=>e?.map(((e,i)=>({header:e,data:t?.[i]||[{}]}))),Zl=p((({className:e="",title:t,description:i,iconVersion:l,image:n,__html:r,items:a=[],...s})=>g(C,{className:w("flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:en()}):null,"big"===l?tn(n):null,g("div",{className:"flex flex-col w-fit gap-3",children:[t?u(me,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,i?ln(i):null,a?.length?nn(a,!0):null,r?u(Qi,{__html:r}):null]})]}))),en=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),tn=e=>e?.src?u(de,{className:"h-fit",image:e}):null,ln=e=>u(I,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),nn=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),rn={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},an={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},sn=p((({className:e="",gap:t="",align:i="stretch",isPadding:l=!1,isInnerPadding:n=!0,version:r="transparent",isTheme:a=!1,...s})=>{const o=n?"":"!p-0";return u(C,{className:w("relative","flex flex-col [&>*]:max-w-full",rn[t],i&&an[i],e),defaultPadding:l?"p-default":"",version:r,isTheme:a,...s,children:Je({...s,renderProps:(e,t)=>We(e,t,{className:o})})})}));sn.childrenTypes=[];const on=p((({className:e="",title:t,benefitList:i,...l})=>g(C,{className:e,defaultPadding:"p-default",...l,children:[t?u(_,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,i?.length?u("div",{className:"sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8",role:"list",children:i.map(cn)}):null]}))),cn=(e,t)=>g("div",{className:"flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14",role:"listitem",children:[e?.icon?.icon?u(de,{className:w("p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black","w-56 h-56 min-w-56"),image:e.icon}):null,e?.icon?.src?u(de,{className:"mr-5 shrink-0",image:e.icon}):null,e?.label?g("div",{className:"sm:h-full",children:[u(_,{headingType:"h6",children:e.label}),dn(e.description)]}):null]},String(t)),dn=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?hn(e):mn(e)}):null},mn=e=>e?.name||null,hn=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},un={ButtonsBlock:je,BonusBenefitsBlock:ge,CardTransfer:He,Carousel:lt,CarouselCard:zt,CarouselCatalogCard:Lt,CarouselProductCard:Dt,CarouselBankHistoryCard:at,CarouselTariffsCard:_t,ComparisonTable:qt,Footer:Ti,Header:$i,Headline:B,ImgBlock:Li,LinkDocs:Fi,MobileAppTile:Yi,PictureText:gl,Placeholder:pl,ProductBlock:vl,StepsBlock:_l,Tabs:Fl,TariffsTable:Kl,TextBlock:Zl,RichTextBlock:wl,RollupItem:ui,VerticalLayout:sn,CarouselRecommendationCard:Nt,CarouselProgramsCard:ot,ProductGallery:Nl,BenefitsBlock:on};function gn(e=!1){const[t,i]=l(e),n=r((()=>i(!0)),[]),a=r((()=>i(!1)),[]),s=r((()=>i((e=>!e))),[]);return[t,{setValue:i,setTrue:n,setFalse:a,toggle:s}]}const pn=["Header","Footer"],fn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function bn(e=globalThis){const t=s(new Map);n((()=>N.subscribe("intersection",(({block:e,intersection:i})=>{t.current&&t.current.set(e,i)}))),[]),n((()=>{const i=((e,t=600)=>{let i;const l=(...n)=>{l.dispose(),i=setTimeout((()=>{e(...n)}),t)};return l.dispose=()=>{i&&clearTimeout(i)},l})((()=>{!function(e){const t=`#${i=e?.anchor,i?.replace("#","")||""}`;var i;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!pn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[i]=t.length>0?E(fn)(t):[];return i}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",i),()=>{i.dispose(),e.removeEventListener("scroll",i)}}),[e])}const xn=p((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(de,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function yn({onOpen:e,onClose:t}={}){n((()=>x.subscribe("dialog",(i=>{switch(i.type){case"open":e&&e(i);break;case"close":t&&t();break;default:kl(i)}}))),[e,t])}const vn="cookie",Nn=p((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:i,open:a,close:o}=function(e,t=!1){const[i,{setTrue:n,setFalse:a}]=gn(t),[o,c]=l({id:e}),d=s(i);d.current||=i;const m=r((t=>{t.id===e?(c(t),n()):a()}),[e]),h=r((()=>{a(),x.fire("dialog",{type:"close"})}),[]);return yn({onOpen:m,onClose:a}),{...o,isOpened:i,wasOpened:d.current,open:n,close:a,onClose:h}}(vn);((e,t,i=300)=>{n((()=>{const t=setTimeout(e,i);return()=>{clearTimeout(t)}}),t)})((()=>{globalThis.localStorage?.getItem(vn)||a()}),[],3e3);const c=r((()=>{globalThis.localStorage?.setItem(vn,"true"),o()}),[o]);return i?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:g("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:g(I,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(st,{isRemote:!0,className:w(wn(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(st,{isRemote:!0,className:w(wn(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(xn,{className:"bg-main-gray rounded-md",onClick:c})})]})}):null})),wn=e=>["inline mx-1",e?"text-green-dark":""],kn=h();const Cn=p((({className:e,onClick:t,ariaLabel:i})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":i,children:Tn()}))),Tn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return g("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Sn=p((({className:e=""})=>{const t=function(e){const[t,i]=l(0);return n((()=>{(async()=>{const[t]=await kn.getLikeCount(e);i(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{i(await kn.like(e))}),[e]),dislike:r((async()=>{i(await kn.dislike(e))}),[e])}}(J().pathname);return g("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Cn,{onClick:pe(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Cn,{onClick:pe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),_n=p((e=>{const{className:t="",blocksRegistry:i,blockDecorator:l,data:n={}}=e,{style:r,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=n,d={key:"",page:n,blocksRegistry:i,blockDecorator:l,parent:n};bn();const[m,{setTrue:h,setFalse:p}]=gn();return yn({onOpen:h,onClose:p}),g("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Ge(s?.header,{...d,slotName:"header"})}):null,g("div",{className:"container grid grid-cols-12 gap-1",children:[Ge(a,d),s?.footer?Ge(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Sn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Nn,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));_n.childrenTypes=[],_n.slots=()=>["header","footer"];e.Blocks=un,e.ContentPage=_n,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),i=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await i.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=pe,e.joinList=e=>t=>t.reduce(((t,i,l)=>t.length?t.concat({...e,key:`sep-${l}`},i):[i]),[]),e.packageVersion="0.12.8",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Q,e.useRouter=J,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -21,22 +21,10 @@ export declare type Logo = ImageContent & {
21
21
  /** @title Текст логотипа */
22
22
  title?: string;
23
23
  };
24
- /**
25
- * @title Мобильный тип шапки
26
- * @enumNames ["Не выбрано", "Название", "Кнопка возврата"]
27
- */
28
- export declare type MobileHeaderType = 'none' | 'withTitle' | 'backwardButton';
29
- export interface MobileHeaderProps {
30
- mobileHeaderType?: MobileHeaderType;
31
- /** @title Название (мобильная версия) */
32
- mobileTitle?: string;
33
- /** @title Кнопка возврата (мобильная версия) */
34
- mobileBackwardButtonTitle?: string;
35
- }
36
24
  /**
37
25
  * @title Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)
38
26
  */
39
- export interface HeaderContent extends MobileHeaderProps {
27
+ export interface HeaderContent {
40
28
  /** @hidden */
41
29
  showSubMenu?: boolean;
42
30
  /** @hidden */
@@ -1,12 +1,10 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
2
  import type { LogoType } from '../../model/LogoType';
3
3
  import type { BlockVersion } from '../../model/BlockVersion';
4
- import type { MobileHeaderProps, MobileHeaderType } from './HeaderContent';
5
- export interface HeaderTopProps extends MobileHeaderProps {
4
+ export interface HeaderTopProps {
6
5
  bgColor?: BgColorVersion;
7
6
  logo?: LogoType;
8
7
  internetBankUrl?: string;
9
8
  version?: BlockVersion;
10
- mobileHeaderType?: MobileHeaderType;
11
9
  }
12
10
  export declare const HeaderTop: import("@redneckz/uni-jsx").UNIComponent<HeaderTopProps, any, any>;
@@ -0,0 +1,6 @@
1
+ import type { VNode } from '../../model/VNode';
2
+ import type { LinkDoc } from './LinkDocsContent';
3
+ export interface LinkDocItemProps extends LinkDoc {
4
+ icon?: VNode;
5
+ }
6
+ export declare const LinkDocItem: import("@redneckz/uni-jsx").UNIComponent<LinkDocItemProps, any, any>;
@@ -1,6 +1,8 @@
1
+ import { Attachment } from '../../model/Attachment';
2
+ import { EmptyOption } from '../../model/EmptyOptionType';
1
3
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
4
  import type { UniBlockContent } from '../../model/JSXBlock';
3
- import type { LinkProps } from '../../model/LinkProps';
5
+ import type { LinkProps, Target } from '../../model/LinkProps';
4
6
  import type { IconProps } from '../../model/Picture';
5
7
  import type { TextAlign } from '../../ui-kit/Text/TextProps';
6
8
  /**
@@ -11,19 +13,41 @@ import type { TextAlign } from '../../ui-kit/Text/TextProps';
11
13
  * ]
12
14
  */
13
15
  export declare type LinkColumnsMode = 'single' | 'double';
14
- /**
15
- * @title Элемент списка
16
- */
17
- export interface LinkDocsItem extends LinkProps {
16
+ export interface LinkDoc extends LinkProps {
17
+ /** @title размер файла */
18
+ fileSize?: string;
19
+ }
20
+ export interface AttachmentDoc {
21
+ /** @title Текст */
22
+ text?: string;
23
+ /** @title */
24
+ attachment?: Attachment;
18
25
  /** @title размер файла */
19
26
  fileSize?: string;
27
+ /** @default "" */
28
+ target?: Target;
20
29
  }
30
+ /**
31
+ * @title Ссылка на документ
32
+ * @default {"docType": "Link"}
33
+ */
34
+ export declare type LinkDocDef = LinkDoc & {
35
+ docType: 'Link';
36
+ };
37
+ /**
38
+ * @title Файл
39
+ * @default {"docType": "Attachment"}
40
+ */
41
+ export declare type AttachmentDocDef = AttachmentDoc & {
42
+ docType: 'Attachment';
43
+ };
44
+ export declare type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
21
45
  /**
22
46
  * @title Список документов
23
47
  */
24
48
  export declare type LinkDocsContent = UniBlockContent & HeadlineCommonProps & IconProps & {
25
49
  /** @title Список */
26
- documents?: LinkDocsItem[];
50
+ documents?: DocBlockDef[];
27
51
  columnsMode?: LinkColumnsMode;
28
52
  /** @title Выравнивание */
29
53
  align?: TextAlign;
@@ -0,0 +1 @@
1
+ export declare const linkIconStyle = "min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md";
@@ -0,0 +1,3 @@
1
+ import { Attachment } from '../model/Attachment';
2
+ import type { TransformationOptions } from './TransformationOptions';
3
+ export declare function transformDocument(attachment: Attachment, pagePath: string, options: TransformationOptions): Promise<Attachment>;
@@ -8,6 +8,7 @@ export interface Router {
8
8
  basePath?: string;
9
9
  push: (url: string, as?: string, options?: RouterOptions) => void;
10
10
  replace: (url: string, as?: string, options?: RouterOptions) => void;
11
+ back: () => void;
11
12
  }
12
13
  export declare function useRouter(): Router;
13
14
  export declare namespace useRouter {
@@ -142,7 +142,7 @@ export declare enum IconTitleMap {
142
142
  CardWithGemIcon = "\u041A\u0430\u0440\u0442\u0430 \u0441 \u0434\u0440\u0430\u0433\u043E\u0446\u0435\u043D\u043D\u043E\u0441\u0442\u044F\u043C\u0438",
143
143
  CarIcon = "\u041C\u0430\u0448\u0438\u043D\u0430",
144
144
  ChartSquareIcon = "\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430",
145
- ChevronLeft = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043F\u0440\u0430\u0432\u043E'",
145
+ ChevronLeft = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043B\u0435\u0432\u043E'",
146
146
  CinemaIcon = "\u041A\u0438\u043D\u043E\u0442\u0435\u0430\u0442\u0440",
147
147
  ClientIcon = "\u041A\u043B\u0438\u0435\u043D\u0442",
148
148
  ClockIcon = "\u0427\u0430\u0441\u044B",
@@ -232,7 +232,7 @@ export declare enum IconTitleMap {
232
232
  * @title Иконка
233
233
  * @enumNames [
234
234
  * "",
235
- * 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Вправо\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
235
+ * 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
236
236
  * ]
237
237
  */
238
238
  export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BelarusianFlag' | 'BriefcaseIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'ChevronLeft' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponceFailIcon' | 'ResponceOKIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon';
@@ -0,0 +1,4 @@
1
+ export interface Attachment {
2
+ /** @title */
3
+ src?: string;
4
+ }
@@ -10,9 +10,9 @@ const BG_COLOR_TO_BLOCK_VERSION = {
10
10
  'bg-white': 'primary',
11
11
  transparent: 'transparent',
12
12
  };
13
- exports.Header = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], mobileHeaderType = 'none', ...rest }) => {
13
+ exports.Header = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
14
14
  const fallback = rest.options?.page?.fallback;
15
15
  const { logo, internetBankUrl } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
16
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: (0, jsx_runtime_1.jsx)("div", { className: "container px-4 py-1 box-border", children: (0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, mobileHeaderType: mobileHeaderType, ...rest }) }) }));
16
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: (0, jsx_runtime_1.jsx)("div", { className: "container px-4 py-1 box-border", children: (0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, ...rest }) }) }));
17
17
  });
18
18
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAK5D,2DAAwD;AAExD,4DAAyD;AAEzD,2CAAwC;AAIxC,MAAM,yBAAyB,GAAyC;IACtE,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,OAAO,GAAG,UAAU,EACpB,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC,EAC5C,gBAAgB,GAAG,MAAM,EACzB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,QAAQ,GAAyB,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IACpE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,IAAA,+BAAc,EAC9C,iCAAe,CAAC,OAAO,IAAI,SAAS,EACpC,QAAQ,CACT,CAAC;IAEF,OAAO,CACL,uBAAC,2BAAY,IAAC,GAAG,EAAC,QAAQ,EAAC,cAAc,EAAC,EAAE,EAAC,OAAO,EAAE,OAAO,KAAM,IAAI,YACrE,gCAAK,SAAS,EAAC,gCAAgC,YAC7C,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,KAC9B,IAAI,GACR,GACE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAK5D,2DAAwD;AAExD,4DAAyD;AAEzD,2CAAwC;AAIxC,MAAM,yBAAyB,GAAyC;IACtE,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,OAAO,GAAG,UAAU,EAAE,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClF,MAAM,QAAQ,GAAyB,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IACpE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,IAAA,+BAAc,EAC9C,iCAAe,CAAC,OAAO,IAAI,SAAS,EACpC,QAAQ,CACT,CAAC;IAEF,OAAO,CACL,uBAAC,2BAAY,IAAC,GAAG,EAAC,QAAQ,EAAC,cAAc,EAAC,EAAE,EAAC,OAAO,EAAE,OAAO,KAAM,IAAI,YACrE,gCAAK,SAAS,EAAC,gCAAgC,YAC7C,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,KACZ,IAAI,GACR,GACE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}