@redneckz/wildless-cms-uni-blocks 0.3.4 → 0.3.5

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 (175) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +8 -8
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  5. package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  6. package/dist/components/Blocks.mobile.d.ts +3 -1
  7. package/dist/components/Blocks.mobile.js +5 -1
  8. package/dist/components/Blocks.mobile.js.map +1 -1
  9. package/dist/components/ContentPage/ContentPage.js +2 -2
  10. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  11. package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  12. package/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  13. package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  14. package/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
  15. package/dist/components/ContentPage/normalizePage.js +1 -1
  16. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  17. package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
  18. package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
  19. package/dist/components/Headline/HeadlineContent.d.ts +1 -1
  20. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  21. package/dist/components/Placeholder/Placeholder.js +8 -3
  22. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  23. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  24. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  25. package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  26. package/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  27. package/dist/components/Tile/TileContent.d.ts +1 -1
  28. package/dist/types.d.ts +1 -1
  29. package/dist/ui-kit/Description/Description.d.ts +4 -1
  30. package/dist/ui-kit/Description/Description.js.map +1 -1
  31. package/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  32. package/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  33. package/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  34. package/lib/common.css +1 -1
  35. package/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  36. package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  37. package/lib/components/Blocks.mobile.d.ts +3 -1
  38. package/lib/components/Blocks.mobile.js +5 -1
  39. package/lib/components/Blocks.mobile.js.map +1 -1
  40. package/lib/components/ContentPage/ContentPage.js +2 -2
  41. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  42. package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  43. package/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  44. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  45. package/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
  46. package/lib/components/ContentPage/normalizePage.js +1 -1
  47. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  48. package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
  49. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
  50. package/lib/components/Headline/HeadlineContent.d.ts +1 -1
  51. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  52. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -0
  53. package/lib/components/Placeholder/Placeholder.js +9 -4
  54. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  55. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  56. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  57. package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  58. package/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  59. package/lib/components/Tile/TileContent.d.ts +1 -1
  60. package/lib/types.d.ts +1 -1
  61. package/lib/ui-kit/Description/Description.d.ts +4 -1
  62. package/lib/ui-kit/Description/Description.js.map +1 -1
  63. package/{mobile/dist/ui-kit/Description/DescriptionProps.d.ts → lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  64. package/lib/ui-kit/Description/DescriptionContent.js +2 -0
  65. package/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  66. package/mobile/bundle/bundle.umd.js +203 -201
  67. package/mobile/bundle/bundle.umd.min.js +1 -1
  68. package/mobile/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  69. package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  70. package/mobile/dist/components/Blocks.d.ts +3 -1
  71. package/mobile/dist/components/Blocks.js +5 -1
  72. package/mobile/dist/components/Blocks.js.map +1 -1
  73. package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
  74. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  75. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  76. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  77. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  78. package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
  79. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  80. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
  81. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  82. package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
  83. package/mobile/dist/components/Placeholder/Placeholder.js +8 -3
  84. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  85. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  86. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  87. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  88. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  89. package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
  90. package/mobile/dist/types.d.ts +1 -1
  91. package/mobile/dist/ui-kit/Description/Description.d.ts +4 -1
  92. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  93. package/mobile/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  94. package/mobile/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  95. package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  96. package/mobile/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  97. package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  98. package/mobile/lib/components/Blocks.d.ts +3 -1
  99. package/mobile/lib/components/Blocks.js +5 -1
  100. package/mobile/lib/components/Blocks.js.map +1 -1
  101. package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
  102. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  103. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  104. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  105. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  106. package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
  107. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  108. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
  109. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  110. package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
  111. package/mobile/lib/components/Placeholder/Placeholder.js +9 -4
  112. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  113. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  114. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  115. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  116. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  117. package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
  118. package/mobile/lib/types.d.ts +1 -1
  119. package/mobile/lib/ui-kit/Description/Description.d.ts +4 -1
  120. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  121. package/{dist/ui-kit/Description/DescriptionProps.d.ts → mobile/lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  122. package/mobile/lib/ui-kit/Description/DescriptionContent.js +2 -0
  123. package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  124. package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  125. package/mobile/src/components/Blocks.ts +5 -1
  126. package/mobile/src/components/ContentPage/ContentPage.page.json +37 -43
  127. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  128. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  129. package/mobile/src/components/ContentPage/normalizePage.ts +4 -1
  130. package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
  131. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  132. package/mobile/src/components/Placeholder/Placeholder.tsx +36 -14
  133. package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
  134. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  135. package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
  136. package/mobile/src/components/PromoTile/PromoTileContent.ts +1 -1
  137. package/mobile/src/components/Tile/TileContent.ts +1 -1
  138. package/mobile/src/types.ts +1 -1
  139. package/mobile/src/ui-kit/Description/Description.tsx +5 -1
  140. package/mobile/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  141. package/package.json +1 -1
  142. package/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  143. package/src/components/Blocks.mobile.ts +5 -1
  144. package/src/components/ContentPage/ContentPage.page.json +37 -43
  145. package/src/components/ContentPage/ContentPage.tsx +2 -2
  146. package/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  147. package/src/components/ContentPage/normalizePage.mobile.ts +4 -1
  148. package/src/components/ContentPage/normalizePage.ts +1 -1
  149. package/src/components/Headline/HeadlineContent.ts +1 -1
  150. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  151. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +9 -0
  152. package/src/components/Placeholder/Placeholder.tsx +35 -8
  153. package/src/components/Placeholder/PlaceholderContent.ts +2 -1
  154. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +6 -0
  155. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  156. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +8 -0
  157. package/src/components/ProductTile/ProductTileContent.ts +1 -1
  158. package/src/components/PromoTile/PromoTileContent.ts +1 -1
  159. package/src/components/Tile/TileContent.ts +1 -1
  160. package/src/types.ts +1 -1
  161. package/src/ui-kit/Description/Description.tsx +5 -1
  162. package/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  163. package/dist/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  164. package/dist/components/Placeholder/Placeholder.mobile.js +0 -15
  165. package/dist/components/Placeholder/Placeholder.mobile.js.map +0 -1
  166. package/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  167. package/lib/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  168. package/lib/components/Placeholder/Placeholder.mobile.js +0 -13
  169. package/lib/components/Placeholder/Placeholder.mobile.js.map +0 -1
  170. package/lib/ui-kit/Description/DescriptionProps.js +0 -2
  171. package/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  172. package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  173. package/mobile/lib/ui-kit/Description/DescriptionProps.js +0 -2
  174. package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  175. package/src/components/Placeholder/Placeholder.mobile.tsx +0 -35
@@ -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";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l=e=>e?.includes("//"),s=e=>(e||"").replace(/\/?\?.*/,""),c=e=>{if(!e||!l(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var o=Object.freeze({__proto__:null,isURL:l,withoutQuery:s,getOrigin:c});const m="/mobile",d=(e,t)=>{if(!e)return e;const n=c(t?.href);return n?e.replace(n,"")||"/":e},h=e=>e;function x({router:e,handlerDecorator:t=h},n){const r=((e,t)=>{if(!e)return e;const n=d(e,t)||"",r=t?.pathname.startsWith(m);return r&&!l(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!l(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const u=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},p={none:"",primary:"text-primary-main"},f=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,color:s="primary",...c})=>{const o=`${u.CDN||""}icons/${t}.svg`;return l?r("svg",{className:`${p[s]} ${e}`,...c,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:a,title:i,...c,"aria-hidden":"true"})})),g=a((({text:e,aboveText:t,appendLeft:a,rounded:i,version:l})=>{const s=!e&&!t&&Boolean(a);return function({buttonInnerClasses:e,appendLeft:t,withoutText:a,aboveText:i,text:l}){return r("div",{className:e,children:[t||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:i}),n("div",{className:"text-m-button font-medium text-left",children:l})]})]})}({buttonInnerClasses:"link"!==l?`flex items-center justify-center\n ${s?"h-12 w-12":"px-8 gap-2 "+(t?"py-2":"py-3.5")} ${i?"rounded-full":""}`:null,appendLeft:a,withoutText:s,aboveText:t,text:e})}));const b={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},N={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},v="w-full text-center font-sans select-none",y=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:m,version:d="primary",ariaLabel:h,...x})=>{const u=c??n(g,{text:t,aboveText:r,appendLeft:a,rounded:m,version:d});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${v} ${N[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:u}):n("a",{className:`${v} inline-block cursor-pointer no-underline ${b[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:u})})),w=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(y,e?{appendLeft:n(f,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(x({router:i,handlerDecorator:a},e),t)))}):null}));const k={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},$=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium ${k[r]} ${t||""}`,children:a})})),S=a((({className:e="",title:t,children:a,buttons:i,image:l})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between",children:[n("div",{children:a}),n("div",{children:i})]}),l]})]}))),C=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function T(e=""){const t=C(e);return t<=4?"h4":t<=8?"h3":"h2"}function _(e=""){const t=C(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function D(e=""){const t=C(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const j="https://www.cbr-xml-daily.ru/daily_json.js",I=["USD","EUR"],L={USD:"DollarIcon",EUR:"EuroIcon"},B=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],R=a((({className:e="",context:t,title:a="Курсы обмена валют"})=>{const{data:i}=t.useAsyncData(j,A);return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${D(e)} ${_(e)} `,children:n(S,{context:t,title:a&&n($,{headingType:T(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:B?.length?n(w,{context:t,buttons:B,className:"flex mt-9 gap-3"}):null,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(V,{children:"Валюта"}),n(V,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:I.map(Z(i))})]})})})})),V=a((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),O=a((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function A(){const e=await fetch(j);return await e.json()}const M=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),P=e=>e?M.format(e):"",Z=e=>t=>{const a=(e?.Valute||{})[t]?.Value;return r("tr",{children:[n(O,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(f,{name:L[t],width:"24",height:"24"}),n("span",{className:"ml-2",children:t})]})}),n(O,{className:"pt-4 pl-11",children:P(a)})]},t)},H=a((({className:e="",image:t})=>{if(!t)return null;const a={width:t.size?.width?`${t.size?.width}px`:"100%",height:t.size?.height?`${t.size?.height}px`:"100%"};return r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:E(t)},`${r}_${e}`))):null,n("img",{src:t.src,className:`m-auto ${t.className||""}`,alt:t.alt||t.title,title:t.title,style:a,...t.size})]})}));function E(e){return e?`image/${String(e)}`:void 0}const z=a((({bgColor:e="transparent",className:t="",title:a,description:i,image:l})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[a&&n($,{headingType:"h2",className:"text-primary-text",title:a}),i&&n("p",{className:"font-normal text-m-md "+(a?"mt-2.5":""),children:i}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(H,{image:l})})]}))),G=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full ${e}`,role:"listitem",...r,children:t}))),W=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),F=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:i=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...W(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(G,{style:W(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(G,{children:t})}))),U=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-[22px] w-fit",children:e?.map(((e,a)=>n("div",{className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:J(a,t,r),"aria-hidden":!0},String(a))))}):null)),J=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},X=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:s=!0})=>{const[c,o]=t.useState(0),[m,d]=t.useState(0);return r("div",{className:e,children:[n(F,{gap:i,padding:l,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:s}=e.currentTarget,c=s[0].offsetWidth-l/2,m=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:i})=>{const l=i+e,s=r-n,c=n-e-t,o=a-2,m=new Array(a).fill(0).map(((e,t)=>0===t||t===o?[t>0?s-c:0,t>0?s:c]:[(t-1)*l+c,t*l+c]));return m[a-1]=[s,r],m})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:c}),{index:h,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,m);o(h),d(x)},children:a}),n(U,{activeIndex:c,indexFraction:m,showDots:s,children:a})]})})),K=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:s})=>{const{text:c,fileSize:o,...m}=l;return r("a",{className:e,role:"link",...m,children:[s?n(f,{className:t,name:s,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:m?.href&&Q(Y(m.href),o)})]}):null]})})),Q=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Y=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},q=a((({className:e="",doc:t,icon:r})=>n(K,{className:`flex h-full ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),ee=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(X,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(q,{className:t?"rounded-md border-main-stroke border p-4":"",doc:e,icon:a},String(r)))):null}))),te=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(q,{className:e?"rounded-md border-main-stroke border p-4":"",doc:t,icon:r})},String(a)))):null}))),ne=a((({className:e="",context:t,title:a,subtitle:i,icon:l="DocIconMonoColor",documents:s,listMode:c="vertical",hasBorder:o=!0})=>r("section",{className:`font-sans py-6 px-4 bg-white ${e}`,children:[a?n($,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mb-5 text-center text-m-md",children:i}):null,"vertical"===c?n(te,{hasBorder:o,documents:s,icon:l}):n(ee,{context:t,hasBorder:o,documents:s,icon:l})]}))),re=a((({className:e="",title:t,image:a,benefits:i})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n($,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(H,{className:"mr-6",image:a}),i?.length?n("div",{className:"flex flex-col",children:i.map(ae)}):null]})]})));function ae(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(f,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const ie={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},le={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},se=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-center ${e}`,role:"listitem",children:[t&&n("div",{className:ce(i)}),n("span",{className:ie[i],children:a})]}))),ce=e=>`rounded-full inline-block mr-3 ${le[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,oe=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:i,version:l}=e;return n("section",{className:`${t}`,role:"list",children:i?.length?i.map(((e,t)=>n(se,{className:r,isDotted:a,version:l,children:e},String(t)))):null})})),me={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},de=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s="",items:c,isDotted:o=!0})=>{const m=me[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${m.background} ${s}`,children:["small"===i?he(m.icon):null,"big"===i?xe(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${m.title}`,children:e}):null,t?n("div",{className:`text-sm ${m.description}`,children:t}):null,c?.length?n(oe,{items:c,isDotted:o,version:"gray",className:"mt-1 text-m-sm text-secondary-text"}):null]})]})}));function he(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function xe(e){return e?.src?n(H,{className:"pb-3 mr-auto",image:e}):null}const ue=a((e=>{const{className:t,description:r}=e;return n("div",{className:`font-normal text-base ${t||""}`,children:r})})),pe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},fe=a((e=>{const{context:t,title:a,description:i,items:l,children:s,buttons:c,image:o,className:m="",version:d="primary",role:h}=e;return n("section",{className:`font-sans p-9 box-border ${m} ${pe[d]} ${D(m)} ${_(m)} `,role:h,children:r(S,{context:t,title:a&&n($,{headingType:T(m),title:a,className:"whitespace-pre-wrap max-w-[600px] "+("primary"===d?"text-primary-text":"")}),buttons:c?.length?n(w,{context:t,buttons:c,className:"flex mt-9 gap-3"}):null,image:o?.src&&n(H,{className:"mt-auto ml-7",image:o}),children:[i&&n(ue,{className:"mt-4 max-w-[600px]",description:i}),s,l?.length?n(oe,{items:l}):null]})})})),ge={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},be=a((({context:e,className:t="",title:a,description:i,benefits:l,buttons:s,image:c,version:o="primary"})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${ge[o]} ${D(t)} ${_(t)} `,children:r(S,{context:e,title:a&&n($,{headingType:T(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(w,{context:e,buttons:s,className:"flex mt-9 gap-3"}):null,image:c?.src&&n(H,{className:"mt-auto ml-7",image:c}),children:[i&&n(ue,{className:"mt-4 max-w-[600px]",description:i}),r("div",{className:"flex mt-5 mb-1",children:[l?.length?n("div",{className:"mr-8",children:l.map(Ne)}):null,l?.length?n("div",{className:"pt-1",children:l.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,o)))}):null]})]})})));function Ne(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const ve={primary:"bg-white",secondary:"bg-primary-main text-white"},ye=a((({context:e,title:t,description:a,cards:i=[],className:l,isScroll:s=!0})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[n($,{headingType:"h2",className:"text-center",title:t}),a?n("div",{className:"font-normal text-m-md max-w-[600px] mt-2",children:a}):null]}),we(s,i,e)]})));function we(e,t,r){return e?n(X,{context:r,children:t?.map(ke)}):n("div",{className:"grid gap-[14px]",children:t?.map(ke)})}function ke(e,t){return r("div",{className:`box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ve[e.version??"primary"]}`,role:"listitem",children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(H,{className:"mb-6",image:e.image})}):null,e.title?n("h4",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?$e(e):null,e.items?.length?(a=e.items,n("section",{className:"mt-3",children:a.map((e=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm text-secondary-text pl-2",children:e.text})]})))})):null]}),e?.button?.href?n(y,{className:"mt-3",...e.button}):null]},t);var a}function $e(e){return n("div",{className:"text-secondary-text mt-2 "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const Se=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...s,...r},a)))}))),Ce=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],Te=a((({className:e,disabled:t,...r})=>n(y,{rounded:!0,className:`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,...r,children:n(Se,{paths:Ce,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),_e={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},De={normal:3,mini:4},je={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Ie={normal:380,mini:276},Le={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Be={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},Re=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary"})=>r("div",{className:`font-sans flex items-center ${e}`,role:"listitem",children:[t&&n("div",{className:Ve(l)}),n("span",{className:Le[l],children:a||i})]}))),Ve=e=>`rounded-full inline-block mr-3 ${Be[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,Oe=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>r("div",{children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(H,{className:"mb-6",image:a})}):null,e&&Ae(e,t,i),t?n("div",{className:"font-normal text-sm mt-2",children:t}):null,i?.length?n("section",{className:"max-w-[308px] mt-2",role:"list",children:i.filter((e=>e?.text)).map(((e,t)=>function(e,t,r){return n(Re,{version:r??"primary",children:n("span",{className:"text-sm",children:e})},String(t))}(e.text,t,s)))}):null]}),l?.text&&n(y,{className:"mt-6",...l})]})));function Ae(e,t,r){return n("div",{className:"font-medium text-xl m-0 "+(t||r?.length?"":"text-center"),children:e})}const Me=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:s})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n($,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${i?.length<=De[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${s*Ie[l]}px)`},role:"list",children:i?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${je[t]} ${_e[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Oe,{...e})},String(r))}({card:t,version:l,context:e},r)))})]})));const Pe=a((({context:e,cards:t=[],className:a="",version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>De[i],m=o&&t?.length-s>De[i],d=o&&s>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[n(Me,{context:e,cards:t,version:i,activeCardIndex:s,...l}),d&&n(Te,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),m&&n(Te,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),Ze=a((e=>n(Pe,{...e,version:"mini"}))),He={Headline:z,LinkDocs:ne,TextBlock:de,PictureText:re,Tile:fe,ProductTile:be,Gallery:ye,MiniGallery:Ze},Ee=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(ze(t)):null}))),ze=e=>(t,r)=>{const a=t?.accordionBlockType;if(!a||!(a in He))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(He[a],{context:e,...t,className:"!p-0"})},`block_${r}`)},Ge=a((({label:e,blocks:t,bordered:a,context:i})=>{const{hasContent:l,icon:s,handleToggle:c}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),a=t?.length;return{isActive:n,hasContent:a,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;r(!n);const t=(({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:t});return r("li",{className:(a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" border-solid border-main-divider",children:[r("button",{className:"border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n "+(l?"group cursor-pointer":""),onClick:c,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(l?"group-hover:text-primary-main":""),children:e}),l?n(f,{name:s,width:"24",height:"24",asSVG:!0}):null]}),l?n(Ee,{blocks:t,context:i}):null]})})),We=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:s})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${s?"px-4":""} ${l}`,children:[e?n($,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Ge,{...e,context:i,bordered:s},`AccordionItem${t}`)))}):null]}))),Fe=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Ue={"bg-white":"text-primary-main",transparent:"text-white"},Je={"bg-white":"text-black",transparent:"text-white"},Xe=a((({className:e="",href:t,children:a,targetBlank:i,bgColor:l="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(Se,{className:`${Ue[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Fe.map((e=>({d:e})))}),!s&&n("span",{className:`${Je[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),Ke=a((({className:e,title:t="Мобильное приложение",description:a,href:i="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:i?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(Xe,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:a})]})]}):null}))),Qe=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Ye):null,a?n(y,{version:"primary",className:"my-4",...x({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Ye=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:qe(a,i)}),n("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},qe=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${et(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},et=e=>e.replaceAll(/\D/g,""),tt=a((({title:e,links:t,className:a="",context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(nt,{index:t,...x({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),nt=a((({className:e="",index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),rt=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],at=a((({href:e})=>{const{icon:t,width:r,height:a,label:i}=rt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:f&&n(f,{name:t,width:r,height:a,asSVG:!0,className:"block"})}):null})),it=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:i}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(at,{...x({router:a,handlerDecorator:i},e)},String(t))))})})),lt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(st,{index:t,...x({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),st=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),ct=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(f,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input"}),n(y,{version:"primary",text:"Найти",className:"w-auto invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),ot=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),mt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:ot(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Qe,{className:"overflow-hidden",items:i,context:c,hasButton:!0}),n(We,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(dt)}),n(Ke,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(ct,{context:c,className:"grow"}),n(it,{className:"pb-4",media:l,context:c}),n(tt,{title:o,links:a,context:c}),n(lt,{links:t,context:c})]})})),dt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(y,{href:i,className:"flex text-sm mb-4",children:[a?n(f,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`footer-${t}`)},ht=(e,t,n=((e,t)=>t.startsWith(e)))=>n(s(e),(e=>(e||"").replace(m,""))(s(l(e)?t.href:t.pathname))),xt=e=>t=>ht(t.href,e),ut=e=>t=>t.items?.some(xt(e))||ht(t.href,e)||((e,t)=>c(e)===c(t.href))(t.href,e),pt=e=>t=>e?.href===t?.href,ft=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(pt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(pt(e))))));var n,r,a};async function gt(){const e=await fetch(bt());return await e.json()}function bt(){return`/wcms-resources/${u.SITEMAP||"sitemap"}.json`}const Nt="absolute left-0 -bottom-3 w-full h-[2px]",vt=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[n("span",{className:yt(o,l),children:t||c}),l?n("div",{className:wt(o,l)}):null]}))),yt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},wt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Nt}`:Nt,kt=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[s,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:a,children:n(f,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(y,{onClick:c,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(f,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),s]}),l,n("div",{className:"mb-7",children:t?.map($t)}),n(ct,{context:e,className:"grow"})]})})),$t=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(y,{href:i,className:"flex text-sm mb-4",children:[a?n(f,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},St=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pr-4",onClick:e,"aria-label":"Открыть меню",children:n(f,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(Xe,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),Ct=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l,burgerSubMenu:s})=>{const c=i.useRouter(),o=function(e){const{data:t}=e(bt(),gt);return t||{}}(i.useAsyncData),{handlerDecorator:m}=i,d=ft(o.topItems,l).find(ut(c))?.items,h=(e=>(t=[])=>{const n=t?.filter(xt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(d),[u,p]=i.useState(!1),f=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n(St,{onClick:f,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:d?.map(((e,t)=>Tt({...x({router:c,handlerDecorator:m},e),active:e===h,bgColor:a},t)))})})]}),u?n(kt,{context:i,onClick:f,burgerSubMenu:s,defaultLocation:t,children:n(We,{context:i,accordionItems:ot(l),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Tt=(e,t)=>n(vt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),_t=a((({className:e="",context:t,title:r})=>n(fe,{className:`pr-0 min-h-0 ${e}`,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0",children:Dt()})}))),Dt=(e=3)=>It(100,e).map((e=>Math.floor(e))).map(jt),jt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),It=(e,t)=>[e].concat(t>0?It(e/1.618,t-1):[]),Lt={primary:"text-primary-text",secondary:"text-white"},Bt={primary:"text-secondary-text",secondary:"text-white"};const Rt=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:s,buttons:c,image:o,items:m,version:d="primary"})=>r("div",{className:`${e}`,children:[n("div",{children:r(S,{context:t,title:a&&n($,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?n(w,{context:t,buttons:c,className:"flex mt-9 gap-3"}):null,children:[l&&n(ue,{description:l}),s?.length?n("div",{className:"mt-[19px]",children:s.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(f,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0}),n("div",{className:`font-medium text-m-base m-0 ${Lt[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${Bt[a]}`,children:e.description})]},String(t))}(e,t,d)))}):null,m?.length?n(oe,{items:m}):null]})}),o?.src&&n("div",{className:"mt-5",children:n(H,{image:{className:"block",...o}})})]}))),Vt=a((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(Rt,{...e})})})),Ot=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(Rt,{context:r,headingType:t||"h2",...e})})}))),At=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:l.map(((e,r)=>n(Ot,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:r,onClick:a,duration:i}){const l=t===r?"animate-slide bg-primary-main":"bg-main-divider";return n("button",{type:"button",onClick:a,"aria-label":e?.title,className:"relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0",children:n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] ${l}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(t))}({slide:e.productBlock,i:t,activeSlideIndex:s,onClick:()=>c(t),duration:a})))})]})}));const Mt=a((({className:e,title:t,description:a,steps:i,size:l="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n($,{headingType:"h3",className:"text-center",title:t}),a&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:a}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(((e,t)=>Pt({step:e,size:l,i:t,length:i.length})))})}):null]}))),Pt=e=>{const{step:t,size:a,i:i,length:l}=e,s=l-1===i,c="normal"===a?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[Zt(t,a,i),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(i))},String(i))},Zt=(e,t,r)=>{const a="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(f,{name:e.icon,width:a,height:a,asSVG:!0})||r+1})})},Ht={ExchangeRateTile:R,Footer:mt,Header:Ct,Headline:z,LinkDocs:ne,Placeholder:_t,ProductBlock:Vt,ProductGallery:At,TextBlock:de,StepsBlock:Mt},Et=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:zt()}))),zt=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},Gt=a((({className:e,context:t})=>{const a=t.useLikeService();return r("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:[n(Et,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Et,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Wt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Ft=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=Wt})=>{const{header:d}=s;return r("section",{className:`relative ${Jt(i)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${Jt(d?.style)}`,children:d.blocks.map(((e,n)=>Ut({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Ut({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Gt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function Ut({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l in r||console.warn(`No block with "${l}" is registered`);const s=r[l]||_t;return t({blockClassName:Jt(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return n(s,{className:e.blockClassName,version:t,context:a,...r},`${l}-${i}`)}},`block-${i}`)}function Jt(e){return e?e.join(" "):""}const Xt=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&n("meta",{name:"description",content:l}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function Kt(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Qt(e){return e?.filter((e=>function(e,t){return e.type in t}(e,Ht)&&!e.mobile?.hidden)).map(Kt)}e.Blocks=Ht,e.ContentPage=Ft,e.ContentPageHead=Xt,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))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ct,e.Icon=f,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Qt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Qt(n[t].blocks)}})),{})}},e.projectSettings=u,e.setup=t,e.url=o,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";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},s=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium ${l[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},o={none:"",primary:"text-primary-main"},m=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,color:s="primary",...m})=>{const d=`${c.CDN||""}icons/${t}.svg`;return l?r("svg",{className:`${o[s]} ${e}`,...m,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:a,title:i,...m,"aria-hidden":"true"})})),d=a((({className:e="",image:t})=>{if(!t)return null;const a={width:t.size?.width?`${t.size?.width}px`:"100%",height:t.size?.height?`${t.size?.height}px`:"100%"};return r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:h(t)},`${r}_${e}`))):null,n("img",{src:t.src,className:`m-auto ${t.className||""}`,alt:t.alt||t.title,title:t.title,style:a,...t.size})]})}));function h(e){return e?`image/${String(e)}`:void 0}const x=a((({bgColor:e="transparent",className:t="",title:a,description:i,image:l})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[a&&n(s,{headingType:"h2",className:"text-primary-text",title:a}),i&&n("p",{className:"font-normal text-m-md "+(a?"mt-2.5":""),children:i}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(d,{image:l})})]}))),p=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full ${e}`,role:"listitem",...r,children:t}))),u=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),f=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:i=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...u(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(p,{style:u(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(p,{children:t})}))),b=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-[22px] w-fit",children:e?.map(((e,a)=>n("div",{className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:g(a,t,r),"aria-hidden":!0},String(a))))}):null)),g=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},N=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:s=!0})=>{const[c,o]=t.useState(0),[m,d]=t.useState(0);return r("div",{className:e,children:[n(f,{gap:i,padding:l,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:s}=e.currentTarget,c=s[0].offsetWidth-l/2,m=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:i})=>{const l=i+e,s=r-n,c=n-e-t,o=a-2,m=new Array(a).fill(0).map(((e,t)=>0===t||t===o?[t>0?s-c:0,t>0?s:c]:[(t-1)*l+c,t*l+c]));return m[a-1]=[s,r],m})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:c}),{index:h,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,m);o(h),d(x)},children:a}),n(b,{activeIndex:c,indexFraction:m,showDots:s,children:a})]})})),v=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:s})=>{const{text:c,fileSize:o,...d}=l;return r("a",{className:e,role:"link",...d,children:[s?n(m,{className:t,name:s,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:d?.href&&y(w(d.href),o)})]}):null]})})),y=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),w=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},k=a((({className:e="",doc:t,icon:r})=>n(v,{className:`flex h-full ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),$=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(N,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(k,{className:t?"rounded-md border-main-stroke border p-4":"",doc:e,icon:a},String(r)))):null}))),S=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(k,{className:e?"rounded-md border-main-stroke border p-4":"",doc:t,icon:r})},String(a)))):null}))),C=a((({className:e="",context:t,title:a,subtitle:i,icon:l="DocIconMonoColor",documents:c,listMode:o="vertical",hasBorder:m=!0})=>r("section",{className:`font-sans py-6 px-4 bg-white ${e}`,children:[a?n(s,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mb-5 text-center text-m-md",children:i}):null,"vertical"===o?n(S,{hasBorder:m,documents:c,icon:l}):n($,{context:t,hasBorder:m,documents:c,icon:l})]}))),T=a((({className:e="",title:t,image:a,benefits:i})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(d,{className:"mr-6",image:a}),i?.length?n("div",{className:"flex flex-col",children:i.map(_)}):null]})]})));function _(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(m,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const D={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},j={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},I=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-center ${e}`,role:"listitem",children:[t&&n("div",{className:L(i)}),n("span",{className:D[i],children:a})]}))),L=e=>`rounded-full inline-block mr-3 ${j[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,B=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:i,version:l}=e;return n("section",{className:`${t}`,role:"list",children:i?.length?i.map(((e,t)=>n(I,{className:r,isDotted:a,version:l,children:e},String(t)))):null})})),R={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},A=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s="",items:c,isDotted:o=!0})=>{const m=R[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${m.background} ${s}`,children:["small"===i?V(m.icon):null,"big"===i?O(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${m.title}`,children:e}):null,t?n("div",{className:`text-sm ${m.description}`,children:t}):null,c?.length?n(B,{items:c,isDotted:o,version:"gray",className:"mt-1 text-m-sm text-secondary-text"}):null]})]})}));function V(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function O(e){return e?.src?n(d,{className:"pb-3 mr-auto",image:e}):null}const M=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),Z=e=>{if(!e||!M(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var H=Object.freeze({__proto__:null,isURL:M,withoutQuery:P,getOrigin:Z});const E="/mobile",z=(e,t)=>{if(!e)return e;const n=Z(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function W({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=z(e,t)||"",r=t?.pathname.startsWith(E);return r&&!M(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!M(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const F=a((({text:e,aboveText:t,appendLeft:a,rounded:i,version:l})=>{const s=!e&&!t&&Boolean(a);return function({buttonInnerClasses:e,appendLeft:t,withoutText:a,aboveText:i,text:l}){return r("div",{className:e,children:[t||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:i}),n("div",{className:"text-m-button font-medium text-left",children:l})]})]})}({buttonInnerClasses:"link"!==l?`flex items-center justify-center\n ${s?"h-12 w-12":"px-8 gap-2 "+(t?"py-2":"py-3.5")} ${i?"rounded-full":""}`:null,appendLeft:a,withoutText:s,aboveText:t,text:e})}));const U={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},J={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},X="w-full text-center font-sans select-none",K=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:m,version:d="primary",ariaLabel:h,...x})=>{const p=c??n(F,{text:t,aboveText:r,appendLeft:a,rounded:m,version:d});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${X} ${J[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${X} inline-block cursor-pointer no-underline ${U[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:p})})),Q=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(K,e?{appendLeft:n(m,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(W({router:i,handlerDecorator:a},e),t)))}):null}));const Y=a((e=>{const{className:t,description:r}=e;return n("div",{className:`font-normal text-base ${t||""}`,children:r})})),q=a((({className:e="",title:t,children:a,buttons:i,image:l})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between",children:[n("div",{children:a}),n("div",{children:i})]}),l]})]}))),ee=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function te(e=""){const t=ee(e);return t<=4?"h4":t<=8?"h3":"h2"}function ne(e=""){const t=ee(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function re(e=""){const t=ee(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ae={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ie=a((e=>{const{context:t,title:a,description:i,items:l,children:c,buttons:o,image:m,className:h="",version:x="primary",role:p}=e;return n("section",{className:`font-sans p-9 box-border ${h} ${ae[x]} ${re(h)} ${ne(h)} `,role:p,children:r(q,{context:t,title:a&&n(s,{headingType:te(h),title:a,className:"whitespace-pre-wrap max-w-[600px] "+("primary"===x?"text-primary-text":"")}),buttons:o?.length?n(Q,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,image:m?.src&&n(d,{className:"mt-auto ml-7",image:m}),children:[i&&n(Y,{className:"mt-4 max-w-[600px]",description:i}),c,l?.length?n(B,{items:l}):null]})})})),le={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},se=a((({context:e,className:t="",title:a,description:i,benefits:l,buttons:c,image:o,version:m="primary"})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${le[m]} ${re(t)} ${ne(t)} `,children:r(q,{context:e,title:a&&n(s,{headingType:te(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?n(Q,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:o?.src&&n(d,{className:"mt-auto ml-7",image:o}),children:[i&&n(Y,{className:"mt-4 max-w-[600px]",description:i}),r("div",{className:"flex mt-5 mb-1",children:[l?.length?n("div",{className:"mr-8",children:l.map(ce)}):null,l?.length?n("div",{className:"pt-1",children:l.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,m)))}):null]})]})})));function ce(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const oe={primary:"bg-white",secondary:"bg-primary-main text-white"},me=a((({context:e,title:t,description:a,cards:i=[],className:l,isScroll:c=!0})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[n(s,{headingType:"h2",className:"text-center",title:t}),a?n("div",{className:"font-normal text-m-md max-w-[600px] mt-2",children:a}):null]}),de(c,i,e)]})));function de(e,t,r){return e?n(N,{context:r,children:t?.map(he)}):n("div",{className:"grid gap-[14px]",children:t?.map(he)})}function he(e,t){return r("div",{className:`box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${oe[e.version??"primary"]}`,role:"listitem",children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(d,{className:"mb-6",image:e.image})}):null,e.title?n("h4",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?xe(e):null,e.items?.length?(a=e.items,n("section",{className:"mt-3",children:a.map((e=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm text-secondary-text pl-2",children:e.text})]})))})):null]}),e?.button?.href?n(K,{className:"mt-3",...e.button}):null]},t);var a}function xe(e){return n("div",{className:"text-secondary-text mt-2 "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const pe=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...s,...r},a)))}))),ue=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],fe=a((({className:e,disabled:t,...r})=>n(K,{rounded:!0,className:`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,...r,children:n(pe,{paths:ue,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),be={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},ge={normal:3,mini:4},Ne={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},ve={normal:380,mini:276},ye={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},we={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},ke=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary"})=>r("div",{className:`font-sans flex items-center ${e}`,role:"listitem",children:[t&&n("div",{className:$e(l)}),n("span",{className:ye[l],children:a||i})]}))),$e=e=>`rounded-full inline-block mr-3 ${we[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,Se=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>r("div",{children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(d,{className:"mb-6",image:a})}):null,e&&Ce(e,t,i),t?n("div",{className:"font-normal text-sm mt-2",children:t}):null,i?.length?n("section",{className:"max-w-[308px] mt-2",role:"list",children:i.filter((e=>e?.text)).map(((e,t)=>function(e,t,r){return n(ke,{version:r??"primary",children:n("span",{className:"text-sm",children:e})},String(t))}(e.text,t,s)))}):null]}),l?.text&&n(K,{className:"mt-6",...l})]})));function Ce(e,t,r){return n("div",{className:"font-medium text-xl m-0 "+(t||r?.length?"":"text-center"),children:e})}const Te=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${i?.length<=ge[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*ve[l]}px)`},role:"list",children:i?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${Ne[t]} ${be[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Se,{...e})},String(r))}({card:t,version:l,context:e},r)))})]})));const _e=a((({context:e,cards:t=[],className:a="",version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>ge[i],m=o&&t?.length-s>ge[i],d=o&&s>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[n(Te,{context:e,cards:t,version:i,activeCardIndex:s,...l}),d&&n(fe,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),m&&n(fe,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),De={Headline:x,LinkDocs:C,TextBlock:A,PictureText:T,Tile:ie,ProductTile:se,Gallery:me,MiniGallery:a((e=>n(_e,{...e,version:"mini"})))},je=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(Ie(t)):null}))),Ie=e=>(t,r)=>{const a=t?.accordionBlockType;if(!a||!(a in De))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(De[a],{context:e,...t,className:"!p-0"})},`block_${r}`)},Le=a((({label:e,blocks:t,bordered:a,context:i})=>{const{hasContent:l,icon:s,handleToggle:c}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),a=t?.length;return{isActive:n,hasContent:a,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;r(!n);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:t});return r("li",{className:(a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" border-solid border-main-divider",children:[r("button",{className:"border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n "+(l?"group cursor-pointer":""),onClick:c,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(l?"group-hover:text-primary-main":""),children:e}),l?n(m,{name:s,width:"24",height:"24",asSVG:!0}):null]}),l?n(je,{blocks:t,context:i}):null]})})),Be=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:c})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${c?"px-4":""} ${l}`,children:[e?n(s,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Le,{...e,context:i,bordered:c},`AccordionItem${t}`)))}):null]}))),Re="https://www.cbr-xml-daily.ru/daily_json.js",Ae=["USD","EUR"],Ve={USD:"DollarIcon",EUR:"EuroIcon"},Oe=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],Me=a((({className:e="",context:t,title:a="Курсы обмена валют"})=>{const{data:i}=t.useAsyncData(Re,He);return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${re(e)} ${ne(e)} `,children:n(q,{context:t,title:a&&n(s,{headingType:te(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:Oe?.length?n(Q,{context:t,buttons:Oe,className:"flex mt-9 gap-3"}):null,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(Pe,{children:"Валюта"}),n(Pe,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:Ae.map(Ge(i))})]})})})})),Pe=a((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),Ze=a((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function He(){const e=await fetch(Re);return await e.json()}const Ee=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),ze=e=>e?Ee.format(e):"",Ge=e=>t=>{const a=(e?.Valute||{})[t]?.Value;return r("tr",{children:[n(Ze,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(m,{name:Ve[t],width:"24",height:"24"}),n("span",{className:"ml-2",children:t})]})}),n(Ze,{className:"pt-4 pl-11",children:ze(a)})]},t)},We=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Fe={"bg-white":"text-primary-main",transparent:"text-white"},Ue={"bg-white":"text-black",transparent:"text-white"},Je=a((({className:e="",href:t,children:a,targetBlank:i,bgColor:l="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(pe,{className:`${Fe[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:We.map((e=>({d:e})))}),!s&&n("span",{className:`${Ue[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),Xe=a((({className:e,title:t="Мобильное приложение",description:a,href:i="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:i?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(Je,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:a})]})]}):null}))),Ke=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Qe):null,a?n(K,{version:"primary",className:"my-4",...W({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Qe=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:Ye(a,i)}),n("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},Ye=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${qe(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},qe=e=>e.replaceAll(/\D/g,""),et=a((({title:e,links:t,className:a="",context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(tt,{index:t,...W({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),tt=a((({className:e="",index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),nt=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],rt=a((({href:e})=>{const{icon:t,width:r,height:a,label:i}=nt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:m&&n(m,{name:t,width:r,height:a,asSVG:!0,className:"block"})}):null})),at=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:i}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(rt,{...W({router:a,handlerDecorator:i},e)},String(t))))})})),it=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(lt,{index:t,...W({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),lt=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),st=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(m,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input"}),n(K,{version:"primary",text:"Найти",className:"w-auto invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),ct=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),ot=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:ct(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Ke,{className:"overflow-hidden",items:i,context:c,hasButton:!0}),n(Be,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(mt)}),n(Xe,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(st,{context:c,className:"grow"}),n(at,{className:"pb-4",media:l,context:c}),n(et,{title:o,links:a,context:c}),n(it,{links:t,context:c})]})})),mt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(K,{href:i,className:"flex text-sm mb-4",children:[a?n(m,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`footer-${t}`)},dt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(E,""))(P(M(e)?t.href:t.pathname))),ht=e=>t=>dt(t.href,e),xt=e=>t=>t.items?.some(ht(e))||dt(t.href,e)||((e,t)=>Z(e)===Z(t.href))(t.href,e),pt=e=>t=>e?.href===t?.href,ut=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(pt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(pt(e))))));var n,r,a};async function ft(){const e=await fetch(bt());return await e.json()}function bt(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const gt="absolute left-0 -bottom-3 w-full h-[2px]",Nt=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[n("span",{className:vt(o,l),children:t||c}),l?n("div",{className:yt(o,l)}):null]}))),vt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},yt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${gt}`:gt,wt=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[s,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:a,children:n(m,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(K,{onClick:c,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(m,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),s]}),l,n("div",{className:"mb-7",children:t?.map(kt)}),n(st,{context:e,className:"grow"})]})})),kt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(K,{href:i,className:"flex text-sm mb-4",children:[a?n(m,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},$t=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pr-4",onClick:e,"aria-label":"Открыть меню",children:n(m,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(Je,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),St=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l,burgerSubMenu:s})=>{const c=i.useRouter(),o=function(e){const{data:t}=e(bt(),ft);return t||{}}(i.useAsyncData),{handlerDecorator:m}=i,d=ut(o.topItems,l).find(xt(c))?.items,h=(e=>(t=[])=>{const n=t?.filter(ht(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(d),[x,p]=i.useState(!1),u=()=>p(!x);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n($t,{onClick:u,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:d?.map(((e,t)=>Ct({...W({router:c,handlerDecorator:m},e),active:e===h,bgColor:a},t)))})})]}),x?n(wt,{context:i,onClick:u,burgerSubMenu:s,defaultLocation:t,children:n(Be,{context:i,accordionItems:ct(l),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Ct=(e,t)=>n(Nt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),Tt=a((({className:e,context:t,title:a,description:i="Блок в разработке..."})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${re(e)} ${ne(e)} `,children:r(q,{context:t,title:a?n(s,{headingType:te(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[i?n(Y,{className:"mt-4 max-w-[600px]",description:i}):null,n("figure",{className:"m-0 min-w-[600px]",children:_t()})]})}))),_t=(e=3)=>jt(100,e).map((e=>Math.floor(e))).map(Dt),Dt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),jt=(e,t)=>[e].concat(t>0?jt(e/1.618,t-1):[]),It={primary:"text-primary-text",secondary:"text-white"},Lt={primary:"text-secondary-text",secondary:"text-white"};const Bt=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:c,buttons:o,image:h,items:x,version:p="primary"})=>r("div",{className:`${e}`,children:[n("div",{children:r(q,{context:t,title:a&&n(s,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:o?.length?n(Q,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:[l&&n(Y,{description:l}),c?.length?n("div",{className:"mt-[19px]",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(m,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0}),n("div",{className:`font-medium text-m-base m-0 ${It[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${Lt[a]}`,children:e.description})]},String(t))}(e,t,p)))}):null,x?.length?n(B,{items:x}):null]})}),h?.src&&n("div",{className:"mt-5",children:n(d,{image:{className:"block",...h}})})]}))),Rt=a((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(Bt,{...e})})})),At=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(Bt,{context:r,headingType:t||"h2",...e})})}))),Vt=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:l.map(((e,r)=>n(At,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:r,onClick:a,duration:i}){const l=t===r?"animate-slide bg-primary-main":"bg-main-divider";return n("button",{type:"button",onClick:a,"aria-label":e?.title,className:"relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0",children:n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] ${l}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(t))}({slide:e.productBlock,i:t,activeSlideIndex:s,onClick:()=>c(t),duration:a})))})]})}));const Ot=a((({className:e,title:t,description:a,steps:i,size:l="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n(s,{headingType:"h3",className:"text-center",title:t}),a&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:a}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(((e,t)=>Mt({step:e,size:l,i:t,length:i.length})))})}):null]}))),Mt=e=>{const{step:t,size:a,i:i,length:l}=e,s=l-1===i,c="normal"===a?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[Pt(t,a,i),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(i))},String(i))},Pt=(e,t,r)=>{const a="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(m,{name:e.icon,width:a,height:a,asSVG:!0})||r+1})})},Zt={Accordion:Be,ExchangeRateTile:Me,Footer:ot,Header:St,Headline:x,LinkDocs:C,MobileAppTile:Xe,Placeholder:Tt,ProductBlock:Rt,ProductGallery:Vt,StepsBlock:Ot,TextBlock:A},Ht=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Et()}))),Et=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},zt=a((({className:e,context:t})=>{const a=t.useLikeService();return r("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:[n(Ht,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Ht,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Gt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Wt=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=Gt})=>{const{header:d}=s;return r("section",{className:`relative ${Ut(i)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${Ut(d?.style)}`,children:d.blocks.map(((e,n)=>Ft({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Ft({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(zt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function Ft({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const s=r[l||"Placeholder"]||Tt;return t({blockClassName:Ut(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return n(s,{className:e.blockClassName,version:t,context:a,...r},`${l}-${i}`)}},`block-${i}`)}function Ut(e){return e?e.join(" "):""}const Jt=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&n("meta",{name:"description",content:l}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function Xt(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Kt(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Zt&&!e.mobile?.hidden)).map(Xt)}e.Blocks=Zt,e.ContentPage=Wt,e.ContentPageHead=Jt,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))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=St,e.Icon=m,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Kt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Kt(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=H,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -4,7 +4,7 @@ const isActiveHandler = ({ context, blocks }) => {
4
4
  const [isActive, setIsActive] = context.useState(false);
5
5
  const hasContent = blocks?.length;
6
6
  const icon = isActive ? 'MinusIcon' : 'PlusIcon';
7
- const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
7
+ const getContentBlock = ({ currentTarget }) => currentTarget.nextSibling;
8
8
  const handleToggle = (e) => {
9
9
  if (!hasContent) {
10
10
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACrC,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;IAEnF,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AArBW,QAAA,eAAe,mBAqB1B"}
1
+ {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,eAAe,mBAoB1B"}
@@ -1,12 +1,14 @@
1
1
  export declare const Blocks: {
2
+ Accordion: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Accordion/Accordion").AccordionProps, any>, context?: any) => any;
2
3
  ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
3
4
  Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
4
5
  Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
5
6
  Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
6
7
  LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
8
+ MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
7
9
  Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
8
10
  ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
9
11
  ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
10
- TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
11
12
  StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
13
+ TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
12
14
  };
@@ -1,25 +1,29 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Blocks = void 0;
3
+ const Accordion_1 = require("./Accordion/Accordion");
3
4
  const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
4
5
  const Footer_1 = require("./Footer/Footer");
5
6
  const Header_1 = require("./Header/Header");
6
7
  const Headline_1 = require("./Headline/Headline");
7
8
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
9
+ const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
8
10
  const Placeholder_1 = require("./Placeholder/Placeholder");
9
11
  const ProductBlock_1 = require("./ProductBlock/ProductBlock");
10
12
  const ProductGallery_1 = require("./ProductGallery/ProductGallery");
11
13
  const StepsBlock_1 = require("./StepsBlock/StepsBlock");
12
14
  const TextBlock_1 = require("./TextBlock/TextBlock");
13
15
  exports.Blocks = {
16
+ Accordion: Accordion_1.Accordion,
14
17
  ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
15
18
  Footer: Footer_1.Footer,
16
19
  Header: Header_1.Header,
17
20
  Headline: Headline_1.Headline,
18
21
  LinkDocs: LinkDocs_1.LinkDocs,
22
+ MobileAppTile: MobileAppTile_1.MobileAppTile,
19
23
  Placeholder: Placeholder_1.Placeholder,
20
24
  ProductBlock: ProductBlock_1.ProductBlock,
21
25
  ProductGallery: ProductGallery_1.ProductGallery,
22
- TextBlock: TextBlock_1.TextBlock,
23
26
  StepsBlock: StepsBlock_1.StepsBlock,
27
+ TextBlock: TextBlock_1.TextBlock,
24
28
  };
25
29
  //# sourceMappingURL=Blocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,SAAS,EAAT,qBAAS;IACT,UAAU,EAAV,uBAAU;CACX,CAAC"}
1
+ {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,0EAAuE;AACvE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,SAAS,EAAT,qBAAS;CACV,CAAC"}
@@ -11,10 +11,10 @@ exports.ContentPage = (0, uni_jsx_1.JSX)(({ className, context, blocksRegistry,
11
11
  });
12
12
  function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
13
13
  const { type } = block;
14
- if (!(type in blocksRegistry)) {
14
+ if (!(type && type in blocksRegistry)) {
15
15
  console.warn(`No block with "${type}" is registered`);
16
16
  }
17
- const BlockComponent = blocksRegistry[type] || Placeholder_1.Placeholder;
17
+ const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder_1.Placeholder;
18
18
  return blockDecorator({
19
19
  blockClassName: style2className(block.style),
20
20
  block,
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAA2D;AAG3D,4DAAyD;AACzD,4DAAyD;AAkCzD,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI,EAAE,EAChF,cAAc,GAAG,qBAAqB,GACvC,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,OAAO,CACL,qCACE,SAAS,EAAE,YAAY,eAAe,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,gBAC1D,YAAY,aAEvB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,gCAAK,SAAS,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,YAChD,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC9B,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,gCAAK,SAAS,EAAC,mCAAmC,YAC/C,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CACvB,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,WAAW,IAAI,CACd,gCAAK,SAAS,EAAC,qEAAqE,YAClF,uBAAC,yBAAW,IACV,SAAS,EAAC,mDAAmD,EAC7D,OAAO,EAAE,OAAO,GAChB,GACE,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAmB,EACnE,CAAS;IAET,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,IAAI,CAAC,CAAC,IAAI,IAAI,cAAc,CAAC,EAAE;QAC7B,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IAED,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,yBAAW,CAAC;IAC3D,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;QAC5C,KAAK;QACL,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;YACzC,OAAO,CACL,uBAAC,cAAc,IAEb,SAAS,EAAE,KAAK,CAAC,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,OAAO,IAJN,GAAG,IAAI,IAAI,CAAC,EAAE,CAKnB,CACH,CAAC;QACJ,CAAC;KACF,EACD,SAAS,CAAC,EAAE,CACb,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAkC;IACzD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC"}
1
+ {"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAA2D;AAG3D,4DAAyD;AACzD,4DAAyD;AAkCzD,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI,EAAE,EAChF,cAAc,GAAG,qBAAqB,GACvC,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,OAAO,CACL,qCACE,SAAS,EAAE,YAAY,eAAe,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,gBAC1D,YAAY,aAEvB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,gCAAK,SAAS,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,YAChD,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC9B,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,gCAAK,SAAS,EAAC,mCAAmC,YAC/C,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CACvB,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,WAAW,IAAI,CACd,gCAAK,SAAS,EAAC,qEAAqE,YAClF,uBAAC,yBAAW,IACV,SAAS,EAAC,mDAAmD,EAC7D,OAAO,EAAE,OAAO,GAChB,GACE,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAmB,EACnE,CAAS;IAET,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IAED,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,yBAAW,CAAC;IAC5E,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;QAC5C,KAAK;QACL,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;YACzC,OAAO,CACL,uBAAC,cAAc,IAEb,SAAS,EAAE,KAAK,CAAC,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,OAAO,IAJN,GAAG,IAAI,IAAI,CAAC,EAAE,CAKnB,CACH,CAAC;QACJ,CAAC;KACF,EACD,SAAS,CAAC,EAAE,CACb,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAkC;IACzD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC"}
@@ -1,2 +1 @@
1
- import { BlockDef } from '../../types';
2
- export declare function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>): boolean;
1
+ export declare function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>): boolean;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.isBlockInRegistry = void 0;
3
- function isBlockInRegistry(block, registry) {
4
- return block.type in registry;
3
+ function isBlockInRegistry(blockType, registry) {
4
+ return (blockType || '') in registry;
5
5
  }
6
6
  exports.isBlockInRegistry = isBlockInRegistry;
7
7
  //# sourceMappingURL=isBlockInRegistry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":";;AAEA,SAAgB,iBAAiB,CAAI,KAAe,EAAE,QAA2B;IAC/E,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC;AAChC,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":";;AAAA,SAAgB,iBAAiB,CAAI,SAA6B,EAAE,QAA2B;IAC7F,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC;AAFD,8CAEC"}
@@ -24,7 +24,7 @@ function normalizePage(contentPage) {
24
24
  exports.normalizePage = normalizePage;
25
25
  function getMobileBlocks(blocks) {
26
26
  return blocks
27
- ?.filter((block) => (0, isBlockInRegistry_1.isBlockInRegistry)(block, Blocks_1.Blocks) && !block.mobile?.hidden)
27
+ ?.filter((block) => (0, isBlockInRegistry_1.isBlockInRegistry)(block?.type || block?.mobile?.type, Blocks_1.Blocks) && !block.mobile?.hidden)
28
28
  .map(normalizeBlock_1.normalizeBlock);
29
29
  }
30
30
  //# sourceMappingURL=normalizePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AACA,sCAAmC;AACnC,2DAAwD;AACxD,qDAAkD;AAElD,SAAgB,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;iBAC3C;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAzBD,sCAyBC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,qCAAiB,EAAC,KAAK,EAAE,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC;SAC7E,GAAG,CAAC,+BAAc,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AACA,sCAAmC;AACnC,2DAAwD;AACxD,qDAAkD;AAElD,SAAgB,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;iBAC3C;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAzBD,sCAyBC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,IAAA,qCAAiB,EAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACzF;SACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AACzB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
5
  import type { AlignType } from '../BaseTile/BaseTileProps';
@@ -1,5 +1,5 @@
1
1
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  /**
5
5
  * @title QR код
@@ -1,5 +1,5 @@
1
+ import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
1
2
  import type { UniBlockProps } from '../../types';
2
- import type { PlaceholderContent } from './PlaceholderContent';
3
3
  export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
4
4
  className?: string;
5
5
  }
@@ -2,10 +2,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Placeholder = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Tile_1 = require("../Tile/Tile");
5
+ const Description_1 = require("../../ui-kit/Description/Description");
6
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
7
+ const BaseTile_1 = require("../BaseTile/BaseTile");
8
+ const getTileHeadingType_1 = require("../BaseTile/getTileHeadingType");
9
+ const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
10
+ const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
6
11
  const GOLDEN_RATIO = 1.618;
7
- exports.Placeholder = (0, uni_jsx_1.JSX)(({ className = '', context, title }) => {
8
- return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: (0, jsx_runtime_1.jsx)("figure", { className: "m-0", children: renderShimmer() }) }));
12
+ exports.Placeholder = (0, uni_jsx_1.JSX)(({ className, context, title, description = 'Блок в разработке...' }) => {
13
+ return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-4 max-w-[600px]", description: description })) : null, (0, jsx_runtime_1.jsx)("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() })] }) }));
9
14
  });
10
15
  const renderShimmer = (size = 3) => goldenSequence(100, size)
11
16
  .map((_) => Math.floor(_))
@@ -1 +1 @@
1
- {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,uBAAC,WAAI,IACH,SAAS,EAAE,gBAAgB,SAAS,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,iGAAsB,YAElC,mCAAQ,SAAS,EAAC,KAAK,YAAE,aAAa,EAAE,GAAU,GAC7C,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CACjC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CACxD,gCAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,sEAAmE;AACnE,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mEAAgE;AAChE,yEAAsE;AAMtE,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,GAAG,sBAAsB,EAAE,EAAE,EAAE;IACtE,OAAO,CACL,oCACE,SAAS,EAAE,uDAAuD,SAAS,IAAI,IAAA,yCAAmB,EAChG,SAAS,CACV,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,YAEnC,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,iBAAO,IACN,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAE,WAAW,GAAI,CACzE,CAAC,CAAC,CAAC,IAAI,EACR,mCAAQ,SAAS,EAAC,mBAAmB,YAAE,aAAa,EAAE,GAAU,IACvD,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CACjC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CACxD,gCAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
1
2
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
2
3
  /**
3
4
  * @hidden
4
5
  */
5
- export declare type PlaceholderContent = HeadingContent;
6
+ export declare type PlaceholderContent = HeadingContent & DescriptionContent;
@@ -1,7 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
4
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
4
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
5
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
7
7
  import type { ListContent } from '../../ui-kit/List/ListContent';
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  /**
6
6
  * @title Акции
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { ListContent } from '../../ui-kit/List/ListContent';
@@ -3,7 +3,7 @@ import type { ContentPageContext } from './components/ContentPage/ContentPageCon
3
3
  import type { BlockVersion } from './model/BlockVersion';
4
4
  export declare type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
5
5
  export interface BaseBlockDef {
6
- type: string;
6
+ type?: string;
7
7
  style?: string[];
8
8
  content?: BlockContent;
9
9
  version?: BlockVersion;
@@ -1,2 +1,5 @@
1
- import { DescriptionProps } from './DescriptionProps';
1
+ import { DescriptionContent } from './DescriptionContent';
2
+ export interface DescriptionProps extends DescriptionContent {
3
+ className?: string;
4
+ }
2
5
  export declare const Description: (props: import("@redneckz/uni-jsx").PropsWithChildren<DescriptionProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,gCAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAO3B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,gCAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
@@ -2,6 +2,3 @@ export interface DescriptionContent {
2
2
  /** @title Описание */
3
3
  description?: string;
4
4
  }
5
- export interface DescriptionProps extends DescriptionContent {
6
- className?: string;
7
- }
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=DescriptionProps.js.map
2
+ //# sourceMappingURL=DescriptionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/DescriptionContent.ts"],"names":[],"mappings":""}
@@ -2,7 +2,7 @@ export const isActiveHandler = ({ context, blocks }) => {
2
2
  const [isActive, setIsActive] = context.useState(false);
3
3
  const hasContent = blocks?.length;
4
4
  const icon = isActive ? 'MinusIcon' : 'PlusIcon';
5
- const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
5
+ const getContentBlock = ({ currentTarget }) => currentTarget.nextSibling;
6
6
  const handleToggle = (e) => {
7
7
  if (!hasContent) {
8
8
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACrC,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;IAEnF,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
1
+ {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
@@ -1,12 +1,14 @@
1
1
  export declare const Blocks: {
2
+ Accordion: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Accordion/Accordion").AccordionProps, any>, context?: any) => any;
2
3
  ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
3
4
  Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
4
5
  Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
5
6
  Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
6
7
  LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
8
+ MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
7
9
  Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
8
10
  ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
9
11
  ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
10
- TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
11
12
  StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
13
+ TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
12
14
  };