@redneckz/wildless-cms-uni-blocks 0.2.109 → 0.2.111

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 (113) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +31 -67
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/BaseTile/BaseTile.js +6 -3
  5. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  6. package/dist/components/Blocks.d.ts +1 -1
  7. package/dist/components/{MobileBlocks.d.ts → Blocks.mobile.d.ts} +5 -4
  8. package/dist/components/{MobileBlocks.js → Blocks.mobile.js} +11 -9
  9. package/dist/components/Blocks.mobile.js.map +1 -0
  10. package/dist/components/Gallery/Gallery.d.ts +1 -4
  11. package/dist/components/Gallery/Gallery.js.map +1 -1
  12. package/dist/components/Gallery/Gallery.mobile.d.ts +1 -1
  13. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  14. package/dist/components/Gallery/GalleryCardInner.js +1 -1
  15. package/dist/components/Gallery/GalleryContent.d.ts +6 -6
  16. package/dist/components/Gallery/GalleryProps.d.ts +4 -0
  17. package/dist/components/Gallery/GalleryProps.js +2 -0
  18. package/dist/components/Gallery/GalleryProps.js.map +1 -0
  19. package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
  20. package/dist/components/ProductTile/ProductTile.d.ts +1 -1
  21. package/dist/components/ProductTile/ProductTile.js +6 -6
  22. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  23. package/dist/components/ProductTile/ProductTileContent.d.ts +4 -1
  24. package/dist/components/StepsBlock/StepsBlock.mobile.js +5 -4
  25. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  26. package/dist/index.d.ts +0 -1
  27. package/dist/index.js +1 -3
  28. package/dist/index.js.map +1 -1
  29. package/dist/ui-kit/BlockItem/BlockItem.js +1 -1
  30. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  31. package/dist/ui-kit/Img.d.ts +2 -2
  32. package/dist/ui-kit/Img.js.map +1 -1
  33. package/dist/ui-kit/Title/Title.d.ts +2 -1
  34. package/dist/ui-kit/Title/Title.js +10 -3
  35. package/dist/ui-kit/Title/Title.js.map +1 -1
  36. package/dist/ui-kit/Title/Title.mobile.d.ts +3 -0
  37. package/dist/ui-kit/Title/Title.mobile.js +18 -0
  38. package/dist/ui-kit/Title/Title.mobile.js.map +1 -0
  39. package/dist/ui-kit/Title/TitleProps.d.ts +1 -10
  40. package/dist/ui-kit/Title/TitleProps.js +0 -11
  41. package/dist/ui-kit/Title/TitleProps.js.map +1 -1
  42. package/lib/common.css +1 -1
  43. package/lib/components/BaseTile/BaseTile.js +6 -3
  44. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  45. package/lib/components/Blocks.d.ts +1 -1
  46. package/lib/components/{MobileBlocks.d.ts → Blocks.mobile.d.ts} +5 -4
  47. package/lib/components/{MobileBlocks.js → Blocks.mobile.js} +7 -5
  48. package/lib/components/Blocks.mobile.js.map +1 -0
  49. package/lib/components/ContentPage/ContentPage.fixture.d.ts +0 -1
  50. package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +4 -0
  51. package/lib/components/Gallery/Gallery.d.ts +1 -4
  52. package/lib/components/Gallery/Gallery.fixture.d.ts +0 -1
  53. package/lib/components/Gallery/Gallery.js.map +1 -1
  54. package/lib/components/Gallery/Gallery.mobile.d.ts +1 -1
  55. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  56. package/lib/components/Gallery/GalleryCardInner.js +1 -1
  57. package/lib/components/Gallery/GalleryContent.d.ts +6 -6
  58. package/lib/components/Gallery/GalleryProps.d.ts +4 -0
  59. package/lib/components/Gallery/GalleryProps.js +2 -0
  60. package/lib/components/Gallery/GalleryProps.js.map +1 -0
  61. package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
  62. package/lib/components/ProductTile/ProductTile.d.ts +1 -1
  63. package/lib/components/ProductTile/ProductTile.js +6 -6
  64. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  65. package/lib/components/ProductTile/ProductTileContent.d.ts +4 -1
  66. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +0 -5
  67. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +8 -0
  68. package/lib/components/StepsBlock/StepsBlock.mobile.js +5 -4
  69. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  70. package/lib/index.d.ts +0 -1
  71. package/lib/index.js +0 -1
  72. package/lib/index.js.map +1 -1
  73. package/lib/ui-kit/BlockItem/BlockItem.js +1 -1
  74. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  75. package/lib/ui-kit/Img.d.ts +2 -2
  76. package/lib/ui-kit/Img.js.map +1 -1
  77. package/lib/ui-kit/Title/Title.d.ts +2 -1
  78. package/lib/ui-kit/Title/Title.js +8 -1
  79. package/lib/ui-kit/Title/Title.js.map +1 -1
  80. package/lib/ui-kit/Title/Title.mobile.d.ts +3 -0
  81. package/lib/ui-kit/Title/Title.mobile.js +16 -0
  82. package/lib/ui-kit/Title/Title.mobile.js.map +1 -0
  83. package/lib/ui-kit/Title/TitleProps.d.ts +1 -10
  84. package/lib/ui-kit/Title/TitleProps.js +1 -10
  85. package/lib/ui-kit/Title/TitleProps.js.map +1 -1
  86. package/package.json +31 -6
  87. package/src/components/BaseTile/BaseTile.tsx +7 -3
  88. package/src/components/{MobileBlocks.ts → Blocks.mobile.ts} +6 -4
  89. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +19 -0
  90. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -11
  91. package/src/components/Gallery/Gallery.example.json +0 -13
  92. package/src/components/Gallery/Gallery.fixture.tsx +2 -7
  93. package/src/components/Gallery/Gallery.mobile.tsx +2 -2
  94. package/src/components/Gallery/Gallery.tsx +1 -4
  95. package/src/components/Gallery/GalleryCardInner.tsx +1 -1
  96. package/src/components/Gallery/GalleryContent.ts +6 -6
  97. package/src/components/Gallery/GalleryProps.ts +4 -0
  98. package/src/components/MiniGallery/MiniGallery.example.json +0 -11
  99. package/src/components/ProductBlock/ProductBlock.mobile.tsx +2 -2
  100. package/src/components/ProductTile/ProductTile.fixture.tsx +25 -25
  101. package/src/components/ProductTile/ProductTile.tsx +16 -15
  102. package/src/components/ProductTile/ProductTileContent.ts +4 -1
  103. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +96 -0
  104. package/src/components/StepsBlock/StepsBlock.fixture.tsx +0 -77
  105. package/src/components/StepsBlock/StepsBlock.mobile.tsx +7 -6
  106. package/src/index.ts +0 -1
  107. package/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
  108. package/src/ui-kit/Img.tsx +2 -2
  109. package/src/ui-kit/Title/Title.mobile.tsx +22 -0
  110. package/src/ui-kit/Title/Title.tsx +10 -1
  111. package/src/ui-kit/Title/TitleProps.ts +1 -11
  112. package/dist/components/MobileBlocks.js.map +0 -1
  113. package/lib/components/MobileBlocks.js.map +0 -1
@@ -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).UniBlocks={})}(this,(function(e){"use strict";const t=(e,r)=>{t._jsx=e,t._jsxs=r||e};t.vue=e=>{t(((t,{children:r,dangerouslySetInnerHTML:n,...a}={})=>{const i=Object.assign({},a,n?{innerHTML:n.__html}:{});return e(t,i,"string"!=typeof t?()=>r:r)}))};const r=(...e)=>t._jsx(...e),n=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,r){const{children:n,...a}=t||{},i=r?.slots?.default,l=n||i&&i();return e(Object.assign(a,l&&{children:l}),r)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";var l;!function(e){e.XL="text-title-lg",e.L="text-title",e.M="text-title-sm",e.S="text-title-xs",e.XS="text-title-xs",e["2XS"]="text-title-2xs",e["3XS"]="text-title-3xs"}(l||(l={}));const s=a((({size:e="L",className:t,children:n,...a})=>r("XL"===e?"h1":"h2",{className:c(l[e],t),...a,children:n}))),c=(...e)=>e.filter(Boolean).join(" "),o=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}},d=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,...s})=>{const c=`${o.CDN||""}icons/${t}.svg`;return l?n("svg",{className:e,...s,"aria-hidden":"true",children:[i?r("title",{children:i}):null,a?r("desc",{children:a}):null,r("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):r("img",{className:e,src:c,alt:a,title:i,...s,"aria-hidden":"true"})})),m={left:"text-left",center:"text-center",right:"text-right"},h=a((({bgColor:e="transparent",align:t="left",className:a,title:i,description:l})=>{const c=m[t];return n("section",{className:`p-[50px] ${e} ${a||""} `,children:[i&&r(s,{size:"L",className:`text-primary-text mt-0 font-medium ${c}`,children:i}),l&&r("p",{className:`font-normal text-base mt-4 ${c}`,children:l})]})})),x={left:"text-left",center:"text-center",right:"text-right"},p={double:"mb-8",single:"mb-[26px]"},u={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},b=a((({className:e,title:t,align:a,documents:i,icon:l,columnsMode:c="double"})=>{const o=u[c];return n("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&r(s,{className:`font-medium mt-0 ${p[c]} ${x[a??"center"]}`,children:t}),r("div",{className:`flex ${o}`,role:"list",children:i?.length?i.map((({text:e,fileSize:t,...a},i)=>n("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...a,children:[l&&r(d,{className:"mr-2.5 h-fit",name:l,width:"24px",height:"24px"}),n("span",{className:"self-center",children:[e,r("span",{className:"text-secondary-text group-hover:text-primary-main",children:a?.href&&g(f(a.href),t)})]})]},String(i)))):null})]})})),f=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},g=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),v=a((({className:e,image:{size:t,...a}})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return n("picture",{className:`flex-none ${e||""}`,children:[a.sources?.length?a.sources.map((({src:e,format:t},n)=>r("source",{srcSet:e,type:N(t)},`${n}_${e}`))):null,r("img",{src:a.src,alt:a.alt||a.title,title:a.title,style:i,...t})]})}));function N(e){return e?`image/${String(e)}`:void 0}const y=a((({className:e,title:t,image:a,benefits:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[r(s,{className:"font-medium m-0 text-center",children:t}),n("div",{className:"flex justify-center mt-9",children:[a?.src&&r(v,{className:"mr-6",image:a}),i?.length?r("div",{className:"flex flex-col",children:i.map(w)}):null]})]})));function w(e,t){return n("div",{className:"flex flex-row mb-8",children:[e.icon&&r(d,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),n("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&r("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const k={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((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s})=>{const c=k[a];return n("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:[i&&"small"===i?S(c.icon):null,i&&"big"===i?C(l):null,n("div",{className:"py-0.5",children:[e&&r("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&r("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function S(e){return r("div",{className:"pt-1.5 pl-1 pr-4",children:r("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function C(e){return e?.src?r(v,{className:"pt-0.5 pr-3",image:e}):null}const L={Headline:h,LinkDocs:b,TextBlock:$,PictureText:y},D=a((({label:e,blocks:t,context:a})=>{const[i,l]=a.useState(!1),s=t?.length,c=i?"MinusIcon":"PlusIcon";return n("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[n("button",{className:"border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text\n "+(s?"group cursor-pointer":""),onClick:e=>{if(!s)return;l(!i);const t=R(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`},children:[r("span",{className:"m-0 text-xl pr-2.5 font-medium "+(s?"group-hover:text-primary-main":""),children:e}),s?r(d,{name:c,width:"24",height:"24"}):null]}),s?r("div",{className:(i?"pb-5":"")+" text-sm transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:t?.length?t.map(((e,t)=>j(e,t,a))):null}):null]})})),j=(e,t,n)=>{const a=e?.accordionBlockType;if(!a||!(a in L))return null;return r("div",{className:"mb-5 last:mb-0",children:r(L[a],{context:n,...e})},`block_${t}`)},R=({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling,_=a((({title:e,accordionItems:t,context:a,className:i})=>n("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i||""}`,children:[e?r(s,{className:"m-0 mb-2.5",children:e}):null,t?.length?r("ul",{className:"list-none m-0 p-0",children:t.map(((e,t)=>r(D,{...e,context:a},`AccordionItem${t}`)))}):null]}))),I=a((({className:e,title:t,benefits:a})=>n("section",{className:`font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${e||""}`,children:[t?r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}):null,a?.length?r("div",{className:"grid grid-cols-2 gap-5 mt-9",children:a.map(T)}):null]}))),T=(e,t)=>n("div",{className:"flex items-center p-10 gap-5 max-w-[580px]",children:[e.icon&&r(d,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",name:e.icon,width:"70",height:"70"}),n("div",{children:[r("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),A=({colData:e,colsLengthForScroll:t,activeCardIndex:r,setActiveCardIndex:n})=>{const a=e?.length&&e.length>t;return{nextClick:()=>n(r+1),prevClick:()=>n(r-1),isScrollAvailable:a,showNextButton:a&&e?.length-r>t,showPrevButton:a&&r>0}},M=e=>e?.includes("//"),B=e=>(e||"").replace(/\/?\?.*/,""),P=e=>{if(!e||!M(e))return;const t=e,r=t.indexOf("//"),n=t.indexOf("/",r+"//".length);return-1!==n?t.substring(0,n):t};var O=Object.freeze({__proto__:null,isURL:M,withoutQuery:B,getOrigin:P});const F="/mobile",V=(e,t)=>{if(!e)return e;const r=P(t?.href);return r?e.replace(r,"")||"/":e},H=e=>e;function Z({router:e,handlerDecorator:t=H},r){const n=((e,t)=>{if(!e)return e;const r=V(e,t)||"",n=t?.pathname.startsWith(F);return n&&!M(r)?`/mobile${r}`:r})(r.href,e);return{...r,href:n,ariaLabel:r.text,onClick:t((t=>{const a=n&&!M(n),i=!r.target||"_self"===r.target;a&&i&&(t.preventDefault(),e.push(n))}),r)}}const z={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"},E={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},G="inline-block text-center font-sans select-none",W=a((({className:e,text:t,aboveText:n,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:d,version:m="none",ariaLabel:h,...x})=>{const p=c??r(U,{text:t,aboveText:n,appendLeft:a,rounded:d});return o?r("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`${G} ${E[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):r("a",{className:`${G} cursor-pointer no-underline ${z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:p})})),U=a((({text:e,aboveText:t,appendLeft:a,rounded:i})=>{const l=!e&&!t&&Boolean(a);return n("div",{className:`flex items-center justify-center ${l?"h-12 w-12 min-h-12 min-w-12":"px-8 gap-2 "+(t?"py-2":"py-[13px]")} ${i?"rounded-full":""}`,children:[a||null,l?null:n("div",{children:[r("div",{className:"text-2xs text-left",children:t}),r("div",{className:"text-sm font-medium text-left",children:e})]})]})})),X=a((({className:e,viewBox:t,fill:n="none",width:a,height:i,paths:l,...s})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:i,children:l.map((({d:e,fill:t,...n},a)=>r("path",{d:e,fill:t||"currentColor",...s,...n},a)))}))),J=[{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"}],Q=a((({className:e,disabled:t,...n})=>r(W,{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,...n,children:r(X,{paths:J,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),q="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",K="border-main-stroke border-solid border",Y="border-main-divider border border-t-0 border-x-0",ee="w-[200px] mr-6",te=a((({icon:e,image:t,title:a,link:i})=>n("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${K} ${q}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&r(d,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&r(v,{className:"mb-[18px]",image:t}),a&&r(s,{size:"S",className:"font-medium m-0 text-center text-white",children:a}),i?.text&&r("div",{className:"mt-auto w-full",children:r(W,{href:i.href,target:i.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:r("div",{className:"font-medium text-xs py-[11px]",children:i.text})})})]}))),re={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ne=a((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>r("div",{className:"flex flex-1 overflow-hidden",children:r("div",{className:re[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),ae=a((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>r("div",{className:`w-80 box-border flex flex-col ${K} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?q:""}`,role:"cell",children:r("div",{className:`mx-7 h-full ${Y} ${a&&t?"border-t":""} ${n?"":"border-solid"}`,children:e.map(((e,t)=>ie(e,t,a)))})}))),ie=({label:e,description:t},a,i)=>n("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&r("h5",{className:"text-xl font-medium m-0 "+(i?"text-white":""),children:e}),t&&r("div",{className:"text-sm opacity-80 "+(i?"text-white":"text-secondary-text"),children:t})]},String(a)),le=a((({children:e})=>r("div",{className:"self-start flex flex-col",role:"row",children:r("div",{className:"flex",children:e})}))),se=a((({row:{header:e,data:t},activeCardIndex:a,isColoredFirstColumn:i,isFirstRow:l,isLastRow:s})=>n(le,{children:[e?.title?r("div",{className:`text-sm py-7 ${Y} w-[200px] mr-6 ${s?"":"border-solid"}`,children:e.title}):null,t?.length?r(ne,{activeCardIndex:a,columnWidth:336,children:t.map(((e,t)=>r(ae,{cell:e,isFirstRow:l,isLastRow:s,isFillGradient:i&&0===t},String(t))))}):null]}))),ce=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:o=!1})=>{const d=t.useRouter(),{handlerDecorator:m}=t,[h,x]=t.useState(0),[p,u]=t.useState(!c),b=l?.map((({header:e})=>e||{})),f=l?.map((({data:e})=>e))||[],g=i?.map(((e,t)=>({header:e,data:f.map((e=>e?.[t]||[{}]))}))).slice(0,p?i.length:c),{nextClick:v,prevClick:N,isScrollAvailable:y,showNextButton:w,showPrevButton:k}=A({colData:f,colsLengthForScroll:2,activeCardIndex:h,setActiveCardIndex:x});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[b?.length?n(le,{children:[r("div",{className:ee,role:"columnheader",scope:"col"}),r(ne,{activeCardIndex:h,columnWidth:336,children:b.map(((e,t)=>r(te,{...e,link:e.link&&Z({router:d,handlerDecorator:m},e.link)},String(t))))})]}):null,g?.length?n("div",{className:"relative",children:[g.map(((e,t,{length:n})=>r(se,{row:e,isFirstRow:0===t,isLastRow:t+1===n,activeCardIndex:h,isColoredFirstColumn:o},String(t)))),y?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(Q,{onClick:v,disabled:!w,ariaLabel:"Пролистать вправо"}),r(Q,{className:"mt-4 rotate-180",onClick:N,disabled:!k,ariaLabel:"Пролистать влево"})]})}):null]}):null]}),y?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null,c?r("div",{className:"pr-[50px]",children:n("div",{className:"flex w-full",children:[r("div",{className:ee}),r("button",{onClick:()=>u(!p),className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:r("div",{className:"font-sans font-medium text-xs py-[11px]",children:p?"Скрыть":"Показать все параметры"})})]})}):null]})}));function oe(e,t){const{data:r}=e(de(t),(()=>async function(e){const t=await fetch(de(e));return await t.json()}(t)));return r||{}}function de(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}const me=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],he=a((({text:e,checked:t,onChange:a,className:i})=>r("div",{className:i,children:n("label",{className:"flex items-center cursor-pointer relative",children:[r("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{a(e.target.checked)},checked:t}),r(X,{paths:me,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?r("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),xe=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),pe=a((({className:e,title:t,items:a=[],min:i=1,max:l=100,step:s=1,value:c=i,onChange:o})=>{const d=e=>{if(!o)return;const t=Number(e.replace(/\D/g,""));o(t)},m={backgroundSize:`${(100*(c-i)/(l-i)).toFixed(2)}% 100%`};return n("div",{className:e,children:[n("label",{className:"block relative",children:[t?r("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,r("input",{className:"m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 m-0 box-border text-primary-text "+(t?"pt-4":""),value:xe(c),onChange:e=>d(e.target.value),onBlur:()=>{o&&(c<i&&o(i),c>l&&o(l))}}),r("div",{className:"absolute inset-x-0 top-8 px-4",children:r("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:i,max:l,step:s,value:c,onChange:e=>d(e.target.value),style:m})})]}),r("div",{className:"flex justify-between my-3",children:a.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})})),ue=(e,t,r)=>Math.max(t,Math.min(e,r)),be=3e4,fe=3e6,ge=Math.round(41.5),ve=a((({context:e,className:t,directoryName:a})=>{const[i,l]=e.useState(void 0),[s,c]=e.useState(void 0),[o,d]=e.useState(!0),[m,h]=e.useState(!0),x=(e=>{const{tableRows:t,isAnnuity:r=!1}=e;return t&&t.find((e=>e.isAnnuity===r))||{}})({tableRows:oe(e.useAsyncData,a).rows,isAnnuity:o}),p=x.maxSum&&x.minSum?(x.maxSum-x.minSum)/2:1485e3,u=x.maxMonths&&x.minMonths?Math.round((x.maxMonths-x.minMonths)/2):ge,b=x?.minSum||be,f=x?.maxSum||fe,g=x?.minMonths||1,v=x?.maxMonths||84,N=(e=>{const{calculatorParams:t,isInsurance:r}=e;return t?r?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:m}),y=(e=>{const{calculatorParams:t,paymentType:r,rate:n,sum:a,months:i}=e;if(!t)return 0;const l=ue(a,t.minSum||be,t.maxSum||fe);if("annuity"===r){const e=Number(n)/1200;return l*(e+e/(Math.pow(1+e,i)-1))}return l/i+l*(Number(n)/12)})({calculatorParams:x,paymentType:"annuity",rate:N,sum:i||p,months:s||u}),w=((e,t)=>{const r=Math.ceil((t-e)/12),n=Math.floor(e/12)+1,a=new Array(Math.min(r-1,5)).fill(0).map(((e,t)=>n+t)),i=r+n-1;return a.concat(i)})(g,v);function k(e){c(ue(12*e,g,v))}return r("section",{className:`font-sans text-primary-text p-10 bg-white ${t||""}`,children:n("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[n("div",{className:"flex justify-between ",children:[n("div",{className:"mr-[42px]",children:[r(pe,{title:"Желаемая сумма кредита, ₽",items:[`От ${xe(b)} рублей`,`До ${xe(f)} рублей`],min:b,max:f,step:1e3,value:i||p,onChange:l}),r(pe,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:g,max:v,step:1,value:s||u,onChange:c}),r("div",{className:"flex mb-7",children:w.map(((e,t)=>function(e,t,a){return r("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>a(e),children:n("span",{className:"font-semibold text-sm",children:[e," ",1===e?"год":e>4?"лет":"года"]})},String(t))}(e,t,k)))}),r(he,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:d}),r(he,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:h})]}),n("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[r("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),r("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),n("div",{className:"text-lg mb-3",children:[xe(Math.round(y))," ₽"]}),r("div",{className:"text-sm opacity-60",children:"Ставка"}),n("div",{className:"text-lg",children:[N," %"]})]})]}),n("div",{className:"flex items-center",children:[r(W,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),r("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})}));const Ne=e=>{const t="col-span-",r=e.split(/\s+/).find((e=>e.startsWith(t)));return r?parseInt(r.substring(t.length),10):12},ye={primary:"text-primary-text",secondary:"text-secondary-text"},we={primary:"bg-primary-main",secondary:"bg-secondary-text"},ke=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary",white:s})=>n("div",{className:`font-sans inline-block flex ${e}`,role:"listitem",children:[t&&r("div",{className:$e(l,s)}),r("span",{className:s?"text-white":ye[l],children:a||i})]}))),$e=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":we[e]} ${"primary"===e?"w-[8px] h-[8px] min-w-[8px] min-h-[8px] mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`,Se=a((({className:e,context:t,title:a,titleSize:i,description:l,children:c,buttons:o,image:m,items:h,version:x="primary"})=>{const p=t.useRouter(),{handlerDecorator:u}=t;return n("div",{className:"font-sans flex flex-col grow h-full items-start",children:[a&&r(s,{size:i||Ce(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===x?"text-primary-text":""),children:a}),n("div",{className:"flex grow w-full justify-between",children:[n("div",{className:"flex flex-col justify-between items-start",children:[n("div",{children:[l&&r("div",{className:"font-normal text-base mt-4 max-w-[600px]",children:l}),c,h?.length?Le(h,x):null]}),o?.length?r("div",{className:"flex mt-9 gap-3",children:o.map(((e,t)=>function({icon:e,asSVG:t,...n},a){if(!n?.text)return;return r(W,e?{appendLeft:r(d,{name:e,asSVG:!0,width:"24",height:"24"}),...n}:{...n},String(a))}(Z({router:p,handlerDecorator:u},e),t)))}):null]}),m?.src&&r(v,{className:"mt-auto ml-7",image:m})]})]})}));function Ce(e=""){const t=Ne(e);return t<=4?"S":t<=8?"M":"L"}function Le(e=[],t){return r("section",{className:"max-w-[600px] mt-5",role:"list",children:e.map(((e,n)=>r(ke,{className:n?"mt-2.5":"",text:e,white:"primary"!==t},String(n))))})}const De={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},je=a((e=>{const{children:t,className:n="",version:a="primary",role:i}=e;return r("section",{className:`font-sans p-9 box-border ${n} ${De[a]} ${Re(n)} ${_e(n)} `,role:i,children:r(Se,{...e,children:t})})}));function Re(e=""){const t=Ne(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function _e(e=""){const t=Ne(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Ie="https://www.cbr-xml-daily.ru/daily_json.js",Te=["USD","EUR"],Ae={USD:"DollarIcon",EUR:"EuroIcon"},Me=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],Be=a((({className:e,context:t,title:a})=>{const{data:i}=t.useAsyncData(Ie,Fe);return r(je,{className:e,context:t,title:a||"Курсы обмена валют",buttons:Me,children:n("table",{children:[r("thead",{children:n("tr",{children:[r(Pe,{children:"Валюта"}),r(Pe,{className:"pl-11",children:"Курс"})]})}),r("tbody",{children:Te.map((e=>{const t=(i?.Valute||{})[e]?.Value;return n("tr",{children:[r(Oe,{className:"pt-4",children:n("div",{className:"flex items-center",children:[r(d,{name:Ae[e],width:"24",height:"24"}),r("span",{className:"ml-2",children:e})]})}),r(Oe,{className:"pt-4 pl-11",children:He(t)})]},e)}))})]})})})),Pe=a((({className:e="",children:t})=>r("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),Oe=a((({className:e="",children:t})=>r("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function Fe(){const e=await fetch(Ie);return await e.json()}const Ve=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),He=e=>e?Ve.format(e):"",Ze=["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"],ze={"bg-white":"text-primary-main",transparent:"text-white"},Ee={"bg-white":"text-black",transparent:"text-white"},Ge=a((({className:e,href:t,children:a,targetBlank:i,bgColor:l="bg-white"})=>n("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self",children:[r(X,{className:`${ze[l]} w-10`,viewBox:"0 0 40 45",paths:Ze.map((e=>({d:e})))}),r("span",{className:`${Ee[l]} text-base font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),We=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return n("form",{className:`relative ${e||""}`,children:[n("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[r("div",{className:"w-[24px] h-[24px]",children:r(d,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&r("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-base text-secondary-text",children:"Поиск по сайту"})]}),r("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"}),r(W,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:r("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Ue=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return n("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Xe):null,a?r(W,{version:"primary",className:"my-4",...Z({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Xe=(e,t)=>{const{type:a,text:i,description:l}=e;return n("div",{className:"mb-4",children:[r("div",{children:Je(a,i)}),r("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},Je=(e,t="")=>{switch(e){case"tel":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Qe(t)}`,children:t});case"email":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return r("span",{children:t})}},Qe=e=>e.replaceAll(/\D/g,""),qe=a((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`${e||""}`,children:t?.length?r("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>r(Ke,{index:t,...Z({router:a,handlerDecorator:i},e)},String(t))))}):null})})),Ke=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:n||`Документ ${t}`}))),Ye=e=>t=>e?.href===t?.href,et=(e,t)=>{return(n=e,a=t,(n||[]).map((e=>a?.find(Ye(e))||e))).concat((r=e,(t||[]).filter((e=>!r?.find(Ye(e))))));var r,n,a};function tt(e){const{data:t}=e(nt(),rt);return t||{}}async function rt(){const e=await fetch(nt());return await e.json()}function nt(){return`/wcms-resources/${o.SITEMAP||"sitemap"}.json`}const at=a((({className:e,items:t,context:n})=>{const a=tt(n.useAsyncData),i=et(a.topItems,t),l={router:n.useRouter(),handlerDecorator:n.handlerDecorator};return r("div",{className:`flex items-start justify-start gap-11 xl:gap-5 ${e||""}`,children:i?.map(((e,t)=>it(e,t,l)))})})),it=(e,t,{router:a,handlerDecorator:i})=>{const{text:l,href:s,items:c,target:o}=e;return n("div",{className:"flex flex-col gap-[14px]",children:[r("a",{className:"block font-sans font-medium text-base text-primary-text no-underline",href:s,target:o||"_self",children:l||`Раздел ${t}`}),c?.map(((e,t)=>r(lt,{...Z({router:a,handlerDecorator:i},e),index:t},String(t))))]},String(t))},lt=a((({text:e,href:t,target:n,index:a})=>r("a",{className:"block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),st=[{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"}],ct=a((({className:e,media:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`flex items-end justify-end gap-2 pt-[30px] pb-7 ${e||""}`,children:t?.map(((e,t)=>r(ot,{...Z({router:a,handlerDecorator:i},e)},String(t))))})})),ot=a((({href:e})=>{const{icon:t,label:n,width:a,height:i}=st.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?r("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,target:"_blank",rel:"noopener noreferrer",children:d&&r(d,{name:t,width:a,height:i,asSVG:!0,className:"block"})}):null})),dt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`${e||""}`,children:[r("div",{className:"pt-5 pb-[5px]",children:r("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?r("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>r(mt,{index:t,...Z({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),mt=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("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:n||`Документ ${t}`}))),ht=a((({className:e,documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c})=>n("footer",{className:`px-9 py-10 bg-white ${e||""}`,children:[n("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[r(Ge,{className:"w-[280px] xl:w-[220px]"}),r(We,{context:c,className:"grow"})]}),n("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[r(Ue,{className:"w-[280px] shrink-0 overflow-hidden xl:w-[220px]",items:i,context:c,hasButton:!0}),r(at,{className:"pt-[3px]",context:c,items:s})]}),r(ct,{media:l,context:c}),r(qe,{links:a,context:c}),r(dt,{links:t,context:c})]}))),xt={primary:"text-secondary-text",secondary:""},pt={normal:3,mini:4},ut={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},bt={normal:380,mini:276},ft=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>{const c=xt[s??"primary"];return n("div",{children:[n("div",{children:[a?.src?r("div",{className:"flex justify-center",children:r(v,{className:"mb-6",image:a})}):null,e&&gt(e,t,i),t&&r("div",{className:`font-normal text-sm mt-2 ${c}`,children:t}),i?.length?r("section",{className:`max-w-[308px] mt-2 ${c}`,role:"list",children:i.map(((e,t)=>function(e,t,n){return r(ke,{version:n??"primary",children:r("span",{className:"text-sm",children:e})},String(t))}(e,t,s)))}):null]}),l?.href&&r(W,{className:"mt-6",...l})]})}));function gt(e,t,n){return r("div",{className:"font-medium text-xl m-0 "+(t||n?.length?"":"text-center"),children:e})}const vt=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>n("div",{children:[r("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),n("div",{className:"flex flex-col items-center mb-8",children:[t?r(s,{className:"font-medium m-0 text-center",children:t}):null,a?r("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),r("div",{className:`flex ${i?.length<=pt[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*bt[l]}px)`},role:"list",children:i?.map(((t,n)=>function({card:e,version:t,context:n},a){return r(je,{context:n,className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${ut[t]} w-full col-span-4`,version:e.version,role:"listitem",children:r(ft,{...e})},String(a))}({card:t,version:l,context:e},n)))})]})));const Nt=a((({context:e,cards:t=[],className:a,version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>pt[i],d=o&&t?.length-s>pt[i],m=o&&s>0;return n("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[r(vt,{context:e,cards:t,version:i,activeCardIndex:s,...l}),m&&r(Q,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),d&&r(Q,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),yt=a((e=>r(Nt,{...e,version:"normal"}))),wt=(e,t,r=((e,t)=>t.startsWith(e)))=>r(B(e),(e=>(e||"").replace(F,""))(B(M(e)?t.href:t.pathname))),kt=e=>t=>wt(t.href,e),$t=e=>(t=[])=>{const r=t?.filter(kt(e));var n;return r?.length?(n=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>n(e)>n(t)?e:t)))(r):null},St="absolute left-0 -bottom-2 w-full h-[2px]",Ct=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c,bgColor:o="bg-white"})=>n("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[r("span",{className:Lt(o,l),children:t||c}),l?r("div",{className:Dt(o,l)}):null]}))),Lt=(e,t)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${r} font-sans font-normal text-base`},Dt=(e,t)=>t?`${"bg-white"===e?e:"bg-primary-main"} ${St}`:St,jt=a((({className:e="",text:t,href:n,target:a,active:i,flat:l,onClick:s,children:c,ariaLabel:o,bgColor:d="bg-white"})=>r("a",{className:`${Rt(d,i,l)} ${e}`,href:n,target:a,onClick:s,rel:"noopener noreferrer","aria-label":o,children:r("span",{className:_t(d,i,l),children:t||c})}))),Rt=(e,t,r)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${r?"":"px-4 py-2"}`},_t=(e,t,r)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":(r?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${n} font-sans font-normal text-sm`},It=a((({className:e="",children:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":n,children:t}))),Tt={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},At={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Mt={"bg-white":"GridIcon",transparent:"GridIconWhite"},Bt=a((({context:e,className:t,defaultLocation:a="",bgColor:i="bg-white"})=>{const[l,s]=e.useGeolocation(a);return n("div",{className:`flex items-center ${t||""}`,children:[r(jt,{className:"mr-5",flat:!0,href:"#",text:l,ariaLabel:"Местоположение",onClick:s,bgColor:i}),r(jt,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:i}),r(It,{className:`mr-5 ${Tt[i]}`,ariaLabel:"Поиск по сайту",children:r(d,{name:"LoupeIcon",className:"h-full",asSVG:!0})}),r(It,{className:`mr-5 ${Tt[i]}`,ariaLabel:"Профиль",children:r(d,{name:"ProfileIcon",className:"h-full",asSVG:!0})}),r(It,{className:`${At[i]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:r(d,{name:Mt[i],className:"h-full",asSVG:!0})})]})})),Pt={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ot=a((({className:e,defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l})=>{const s=i.useRouter(),c=tt(i.useAsyncData),{handlerDecorator:o}=i,d=et(c.topItems,l),m=d.find((e=>t=>t.items?.some(kt(e))||wt(t.href,e))(s)),h=m?.items,x=$t(s)(h),p=d.map(((e,t)=>r(jt,{active:e===m,...Z({router:s,handlerDecorator:o},e),ariaLabel:e.text,bgColor:a},String(t)))),u=h?.map((e=>r(Ct,{className:"mr-8",active:e===x,...Z({router:s,handlerDecorator:o},e),bgColor:a},e.href)));return r("header",{className:`pt-5 pb-8 px-20 ${a} ${e||""}`,children:n("div",{className:"container",children:[n("div",{className:"flex items-center",children:[r(Ge,{className:"mr-8",bgColor:a}),p,r(Bt,{context:i,className:"ml-auto",defaultLocation:t,bgColor:a})]}),r("div",{className:`mt-5 h-[1px] ${Pt[a]}`}),r("nav",{className:"mt-5",children:u})]})})})),Ft=a((e=>r(Nt,{...e,version:"mini"}))),Vt=a((({className:e,context:t,title:a="Мобильное приложение",qr:i,buttons:l=[]})=>r(je,{className:e,context:t,title:a,buttons:l,children:n("div",{className:"flex items-center",children:[i?.src&&i?.href&&r("a",{href:i.href,target:"_blank",children:r("img",{src:i.src,alt:a,title:a,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),r("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})}))),Ht=a((({className:e,text:t,onClick:n,href:a,target:i,isActive:l})=>r("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${l?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:n,href:a,target:i,children:t}))),Zt=a((({className:e,context:t,title:a,buttons:i})=>{const l=t.useRouter(),{handlerDecorator:s}=t,c=$t(l)(i);return n("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,children:[r("h2",{className:"font-medium text-xl m-0",children:a}),i?.length?r("div",{className:"flex rounded-md overflow-hidden bg-white",children:i.filter((({text:e})=>e)).map(((e,t)=>r(Ht,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...Z({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),zt=a((({className:e,context:t,title:n})=>r(je,{className:e,context:t,title:n,description:"Блок в разработке...",children:r("figure",{className:"m-0 min-w-[600px]",children:Et()})}))),Et=(e=3)=>Wt(100,e).map((e=>Math.floor(e))).map(Gt),Gt=(e=100,t)=>r("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Wt=(e,t)=>[e].concat(t>0?Wt(e/1.618,t-1):[]),Ut=a((({text:e,href:t,target:n,onClick:a,className:i,children:l})=>t?r("a",{className:`no-underline ${i||""}`,href:t,target:n,onClick:a,children:r("span",{className:`${i||""}`,children:e||l})}):r("span",{className:`${i||""}`,children:e||l})));function Xt(e){return t=>t.reduce(((t,r,n)=>t.length?t.concat({...e,key:n},r):[r]),[])}const Jt={primary:"bg-main",secondary:"bg-white/30"},Qt={primary:"text-primary-text",secondary:"text-white"},qt={primary:"text-secondary-text",secondary:"text-white"},Kt=a((({className:e,context:t,title:a,titleSize:i,description:l,benefits:s,buttons:c,image:o,items:m,version:h="primary"})=>n("div",{className:`flex grow justify-between items-stretch ${e||""}`,children:[r("div",{className:"flex flex-col",children:r(Se,{context:t,title:a,titleSize:i||"XL",description:l,items:m,buttons:c,version:h,children:s?.length?r("div",{className:"flex gap-6 mt-6 mb-3.5",children:s.map(((e,t)=>function(e,t,a){return n("div",{className:"flex gap-4 items-center",children:[e.icon&&r(d,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${Jt[a]}`,name:e.icon,width:"24",height:"24"}),n("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[r("h4",{className:`font-medium text-xl m-0 ${Qt[a]}`,children:e.label}),e.description&&r("div",{className:`font-normal text-sm ${qt[a]}`,children:e.description})]})]},String(t))}(e,t,h)))}):null})}),o?.src&&r(v,{className:"mt-auto",image:o})]})));const Yt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},er={primary:"text-secondary-text",secondary:"text-white/80"},tr=a((e=>{const{context:t,className:a,breadcrumbs:i,version:l="primary"}=e,s=t.useRouter(),{handlerDecorator:c}=t;return n("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${a||""} ${Yt[l]}`,children:[i?.length?r("div",{className:"text-xs mb-6",children:Xt(r("span",{className:`mx-2 ${er[l]}`,children:"/"}))(i.map(((e,t)=>r(Ut,{...Z({router:s,handlerDecorator:c},{className:er[l],...e})},String(t)))))}):null,r(Kt,{...e})]})})),rr=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.nav)),s=i.map((e=>e.productBlock)),[c,o]=t.useState(0);return n("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[r("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){return r("section",{className:"flex grow-0 shrink-0 basis-full",role:"listitem",children:r("div",{className:"p-10 flex grow",children:r(Kt,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:n,...e})})},String(t))}(e,n,t)))}),r("div",{className:"flex",children:l.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:i,duration:l}){const s=t===a,c=s?"animate-slide":"";return n("button",{type:"button",onClick:i,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-5 grow basis-0",children:[n("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[r("div",{className:"text-sm font-medium pb-1 group-hover:text-primary-text "+(s?"text-primary-text":"text-secondary-text"),children:e?.title}),r("div",{className:"text-xs text-secondary-text pb-[2px]",children:e.desc})]}),r("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${c}`,style:{animationDuration:`${l}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>o(t),duration:a})))})]})}));const nr=a((e=>{const{benefits:t,version:a}=e;return r(je,{...e,children:n("div",{className:"flex mt-5 mb-1",children:[t?.length?r("div",{className:"mr-8",children:t.map(ar)}):null,t?.length?r("div",{className:"pt-1",children:t.map(((e,t)=>function(e,t,n="primary"){return r("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e.label},String(t))}(e,t,a)))}):null]})})}));function ar(e,t){return r("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.description},String(t))}const ir=a((({className:e,context:t,title:a="Акции и спецпредложения",date:i,description:l,buttons:s=[],version:c})=>r(je,{className:e,context:t,title:a,buttons:s,version:c,children:n("div",{className:"mt-1.5",children:[i&&r("div",{className:"text-sm mb-2",children:lr(i)}),r("div",{className:"text-base",children:l})]})})));function lr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const sr=a((({className:e,title:t,showLines:a=!0,steps:i})=>n("section",{className:`box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col items-center ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 "+(t?"mt-9":""),children:[r("div",{className:"flex items-center px-[88px]",children:Xt(r("div",{className:"h-0.5 w-full bg-secondary-light "+(a?"":"opacity-0")}))(i.map(((e,t)=>cr(e,t))))}),r("div",{className:"flex justify-between gap-x-[101px]",children:i.map(or)})]}):null]}))),cr=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative",children:r("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon&&r(d,{name:e.icon,width:"48",height:"48"})||r("span",{className:"font-medium text-title-sm text-secondary-text",children:t+1})})},String(t)),or=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[e.label&&r("div",{className:"font-medium text-xl m-0 mt-4",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]},String(t)),dr=a((({cell:e,isLastRow:t})=>r("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:r("div",{children:e.map(((e,t)=>mr(e,t)))})}))),mr=({label:e,description:t,list:a,image:i,buttons:l},s)=>n("div",{className:"first:pt-5 last:pb-5",children:[s>0&&r("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e&&r("div",{className:"text-xl font-medium m-0",children:e}),t&&r("div",{className:"text-sm text-secondary-text",children:t}),a?.items?.length?r("div",{className:"flex flex-col justify-between items-start",children:r("div",{role:"list",children:a.items.map(((e,t)=>r(ke,{text:e,version:a.version??"secondary",isDotted:a.isDotted??!0},String(t))))})}):null,i&&r(v,{image:i}),l?.length?l.map((({icon:e,...t},n)=>r(W,{className:(n>0?"ml-3":"")+" w-12 h-12",appendLeft:e&&r(d,{name:e,width:"24px",height:"24px"}),...t},String(n)))):null]},String(s)),hr=a((({row:{header:e,data:t},activeCardIndex:a,isLastRow:i})=>n(le,{children:[r("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(i?"":"border-solid"),children:n("div",{className:"flex items-center text-primary-text",children:[e?.icon&&r(d,{className:"mr-[14px] max-w-6 max-h-6",name:e.icon,width:"24px",height:"24px"}),e?.title]})}),t?.length?r(ne,{activeCardIndex:a,columnWidth:360,version:"tariff",children:t.map(((e,t)=>r(dr,{cell:e,isLastRow:i},String(t))))}):null]}))),xr=a((({className:e,context:t,title:a,rowHeaders:i,columns:l})=>{const[c,o]=t.useState(0),d=l?.map((({data:e})=>e))||[],m=i?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))),{nextClick:h,prevClick:x,isScrollAvailable:p,showNextButton:u,showPrevButton:b}=A({colData:d,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:o});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[m?.length?n("div",{className:"relative",children:[m.map(((e,t,{length:n})=>r(hr,{row:e,isLastRow:t+1===n,activeCardIndex:c},String(t)))),p?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(Q,{onClick:h,disabled:!u,ariaLabel:"Пролистать вправо"}),r(Q,{className:"mt-4 rotate-180",onClick:x,disabled:!b,ariaLabel:"Пролистать влево"})]})}):null]}):null,p?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})]})})),pr={Accordion:_,BenefitsBlock:I,ComparisonTable:ce,CreditCalculator:ve,ExchangeRateTile:Be,Footer:ht,Gallery:yt,Header:Ot,Headline:h,LinkDocs:b,MiniGallery:Ft,MobileAppTile:Vt,PictureText:y,Placeholder:zt,ProductBlock:tr,ProductGallery:rr,ProductTile:nr,PromoTile:ir,StepsBlock:sr,TariffsTable:xr,TextBlock:$,Tile:je,Navigation:Zt},ur=a((({className:e,onClick:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:br()}))),br=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r("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"}),r("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"})]})},fr=a((({className:e,context:t})=>{const a=t.useLikeService();return n("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:[r(ur,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),r(ur,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),r("span",{className:"select-none",children:a.likeCount})]})})),gr=({blockClassName:e,block:t,render:r})=>r({blockClassName:e,block:t}),vr=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:d=gr})=>{const{header:m}=s;return n("section",{className:`relative ${yr(i)} ${e||""}`,"data-theme":o,children:[m?.blocks?.length?r("div",{className:`${yr(m?.style)}`,children:m.blocks.map(((e,r)=>Nr({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,l?.length?r("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,r)=>Nr({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,c&&r("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:r(fr,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function Nr({block:e,blockDecorator:t,blocksRegistry:n,context:a},i){const{type:l}=e;l in n||console.warn(`No block with "${l}" is registered`);const s=n[l]||zt;return t({blockClassName:yr(e.style),block:e,render:e=>{const{version:c,content:o,blocks:d}=e.block;return r(s,{className:e.blockClassName,version:c,context:a,...o,children:d?.length?d.map(((e,r)=>Nr({block:e,blockDecorator:t,blocksRegistry:n,context:a},r))):null},`${l}-${i}`)}},`block-${i}`)}function yr(e){return e?e.join(" "):""}const wr=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return n(e,{children:[r("title",{children:i}),r("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&r("meta",{name:"description",content:l}),s&&r("meta",{name:"keywords",content:s.join(",")}),c&&r("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>r("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function kr(e){return e?.filter((({mobile:e})=>!e?.hidden)).map($r)}function $r(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}const Sr=a((({className:e,context:t})=>r("footer",{className:`${e} px-9 py-2 bg-white rounded-bl-3xl rounded-br-3xl`,children:r(dt,{context:t})}))),Cr=a((({title:e,description:t,cards:a=[],className:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-4 overflow-hidden ${i}`,children:[n("div",{className:"flex flex-col items-center mb-8",children:[r(s,{className:"font-medium m-0 text-centers",children:e}),t?r("div",{className:"font-normal text-base max-w-[600px] mt-3",children:t}):null]}),r("div",{className:"horizontal-list no-scrollbar",role:"list",children:a?.map(Lr)})]})));function Lr(e,t){return n("div",{className:"box-border horizontal-list-item border-solid border rounded-md border-main-divider p-4 mx-1 flex flex-col justify-between items-stretch",role:"listitem",children:[n("div",{children:[e.image?.src?r("div",{className:"flex justify-center",children:r(v,{className:"mb-6",image:e.image})}):null,e.title?r("h4",{className:"font-medium text-xl m-0 "+(e.description||e.items?.length?"":"text-center"),children:e.title}):null,e.description?r("div",{className:"font-normal text-sm text-secondary-text mt-2",children:e.description}):null,e.items?.length?Dr(e.items):null]}),e?.button?.href?r(W,{className:"mt-6",...e.button}):null]},t)}function Dr(e=[]){return r("section",{className:"max-w-[308px] mt-2",role:"list",children:e.map(((e,t)=>r(ke,{children:r("span",{className:"text-sm text-secondary-text",children:e})},String(t))))})}const jr=a((({titleSize:e,image:t,benefits:n,...a})=>{const{className:i}=a;return r("section",{className:`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] ${i||""}`,children:r(Kt,{...a,titleSize:"L"})})})),Rr={ExchangeRateTile:Be,Footer:Sr,Gallery:Cr,Header:Ot,Headline:h,MobileAppTile:Vt,PictureText:y,Placeholder:zt,ProductBlock:jr,ProductTile:nr,TextBlock:$,Tile:je,Navigation:Zt};e.Blocks=pr,e.ContentPage=vr,e.ContentPageHead=wr,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))))))(),r=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await r.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ot,e.Icon=d,e.LikeAPI=function(e,t=""){async function r(){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:r,name:n}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:r,name:n})),{token:r,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...n){if(!n.length)return[];const{token:a}=await r();try{const r=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:n})}),{likes:i}=await r.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=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:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=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:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}}}},e.MobileBlocks=Rr,e.joinList=Xt,e.projectSettings=o,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:r}=e;return{...e,blocks:kr(t),slots:r&&Object.keys(r).reduce(((e,t)=>({...e,[t]:{...r[t],blocks:kr(r[t].blocks)}})),{})}},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).UniBlocks={})}(this,(function(e){"use strict";const t=(e,r)=>{t._jsx=e,t._jsxs=r||e};t.vue=e=>{t(((t,{children:r,dangerouslySetInnerHTML:n,...a}={})=>{const i=Object.assign({},a,n?{innerHTML:n.__html}:{});return e(t,i,"string"!=typeof t?()=>r:r)}))};const r=(...e)=>t._jsx(...e),n=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,r){const{children:n,...a}=t||{},i=r?.slots?.default,l=n||i&&i();return e(Object.assign(a,l&&{children:l}),r)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l={XL:"text-title-lg",L:"text-title",M:"text-title-sm",S:"text-title-xs","2XS":"text-title-2xs","3XS":"text-title-2xs"},s=a((({size:e="L",className:t,children:n,...a})=>r("XL"===e?"h1":"h2",{className:c(l[e],t),...a,children:n}))),c=(...e)=>e.filter(Boolean).join(" "),o=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}},d=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,...s})=>{const c=`${o.CDN||""}icons/${t}.svg`;return l?n("svg",{className:e,...s,"aria-hidden":"true",children:[i?r("title",{children:i}):null,a?r("desc",{children:a}):null,r("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):r("img",{className:e,src:c,alt:a,title:i,...s,"aria-hidden":"true"})})),m={left:"text-left",center:"text-center",right:"text-right"},h=a((({bgColor:e="transparent",align:t="left",className:a,title:i,description:l})=>{const c=m[t];return n("section",{className:`p-[50px] ${e} ${a||""} `,children:[i&&r(s,{size:"L",className:`text-primary-text mt-0 font-medium ${c}`,children:i}),l&&r("p",{className:`font-normal text-base mt-4 ${c}`,children:l})]})})),x={left:"text-left",center:"text-center",right:"text-right"},p={double:"mb-8",single:"mb-[26px]"},u={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},b=a((({className:e,title:t,align:a,documents:i,icon:l,columnsMode:c="double"})=>{const o=u[c];return n("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&r(s,{className:`font-medium mt-0 ${p[c]} ${x[a??"center"]}`,children:t}),r("div",{className:`flex ${o}`,role:"list",children:i?.length?i.map((({text:e,fileSize:t,...a},i)=>n("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...a,children:[l&&r(d,{className:"mr-2.5 h-fit",name:l,width:"24px",height:"24px"}),n("span",{className:"self-center",children:[e,r("span",{className:"text-secondary-text group-hover:text-primary-main",children:a?.href&&g(f(a.href),t)})]})]},String(i)))):null})]})})),f=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},g=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),v=a((({className:e,image:{size:t,...a}})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return n("picture",{className:`flex-none ${e||""}`,children:[a.sources?.length?a.sources.map((({src:e,format:t},n)=>r("source",{srcSet:e,type:N(t)},`${n}_${e}`))):null,r("img",{src:a.src,alt:a.alt||a.title,title:a.title,style:i,...t})]})}));function N(e){return e?`image/${String(e)}`:void 0}const y=a((({className:e,title:t,image:a,benefits:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[r(s,{className:"font-medium m-0 text-center",children:t}),n("div",{className:"flex justify-center mt-9",children:[a?.src&&r(v,{className:"mr-6",image:a}),i?.length?r("div",{className:"flex flex-col",children:i.map(w)}):null]})]})));function w(e,t){return n("div",{className:"flex flex-row mb-8",children:[e.icon&&r(d,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),n("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&r("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const k={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((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s})=>{const c=k[a];return n("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:[i&&"small"===i?C(c.icon):null,i&&"big"===i?S(l):null,n("div",{className:"py-0.5",children:[e&&r("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&r("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function C(e){return r("div",{className:"pt-1.5 pl-1 pr-4",children:r("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function S(e){return e?.src?r(v,{className:"pt-0.5 pr-3",image:e}):null}const L={Headline:h,LinkDocs:b,TextBlock:$,PictureText:y},D=a((({label:e,blocks:t,context:a})=>{const[i,l]=a.useState(!1),s=t?.length,c=i?"MinusIcon":"PlusIcon";return n("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[n("button",{className:"border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text\n "+(s?"group cursor-pointer":""),onClick:e=>{if(!s)return;l(!i);const t=_(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`},children:[r("span",{className:"m-0 text-xl pr-2.5 font-medium "+(s?"group-hover:text-primary-main":""),children:e}),s?r(d,{name:c,width:"24",height:"24"}):null]}),s?r("div",{className:(i?"pb-5":"")+" text-sm transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:t?.length?t.map(((e,t)=>j(e,t,a))):null}):null]})})),j=(e,t,n)=>{const a=e?.accordionBlockType;if(!a||!(a in L))return null;return r("div",{className:"mb-5 last:mb-0",children:r(L[a],{context:n,...e})},`block_${t}`)},_=({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling,R=a((({title:e,accordionItems:t,context:a,className:i})=>n("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i||""}`,children:[e?r(s,{className:"m-0 mb-2.5",children:e}):null,t?.length?r("ul",{className:"list-none m-0 p-0",children:t.map(((e,t)=>r(D,{...e,context:a},`AccordionItem${t}`)))}):null]}))),I=a((({className:e,title:t,benefits:a})=>n("section",{className:`font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${e||""}`,children:[t?r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}):null,a?.length?r("div",{className:"grid grid-cols-2 gap-5 mt-9",children:a.map(T)}):null]}))),T=(e,t)=>n("div",{className:"flex items-center p-10 gap-5 max-w-[580px]",children:[e.icon&&r(d,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",name:e.icon,width:"70",height:"70"}),n("div",{children:[r("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),A=({colData:e,colsLengthForScroll:t,activeCardIndex:r,setActiveCardIndex:n})=>{const a=e?.length&&e.length>t;return{nextClick:()=>n(r+1),prevClick:()=>n(r-1),isScrollAvailable:a,showNextButton:a&&e?.length-r>t,showPrevButton:a&&r>0}},M=e=>e?.includes("//"),B=e=>(e||"").replace(/\/?\?.*/,""),P=e=>{if(!e||!M(e))return;const t=e,r=t.indexOf("//"),n=t.indexOf("/",r+"//".length);return-1!==n?t.substring(0,n):t};var O=Object.freeze({__proto__:null,isURL:M,withoutQuery:B,getOrigin:P});const F="/mobile",V=(e,t)=>{if(!e)return e;const r=P(t?.href);return r?e.replace(r,"")||"/":e},Z=e=>e;function H({router:e,handlerDecorator:t=Z},r){const n=((e,t)=>{if(!e)return e;const r=V(e,t)||"",n=t?.pathname.startsWith(F);return n&&!M(r)?`/mobile${r}`:r})(r.href,e);return{...r,href:n,ariaLabel:r.text,onClick:t((t=>{const a=n&&!M(n),i=!r.target||"_self"===r.target;a&&i&&(t.preventDefault(),e.push(n))}),r)}}const z={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"},E={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},G="inline-block text-center font-sans select-none",W=a((({className:e,text:t,aboveText:n,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:d,version:m="none",ariaLabel:h,...x})=>{const p=c??r(U,{text:t,aboveText:n,appendLeft:a,rounded:d});return o?r("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`${G} ${E[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):r("a",{className:`${G} cursor-pointer no-underline ${z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:p})})),U=a((({text:e,aboveText:t,appendLeft:a,rounded:i})=>{const l=!e&&!t&&Boolean(a);return n("div",{className:`flex items-center justify-center ${l?"h-12 w-12 min-h-12 min-w-12":"px-8 gap-2 "+(t?"py-2":"py-[13px]")} ${i?"rounded-full":""}`,children:[a||null,l?null:n("div",{children:[r("div",{className:"text-2xs text-left",children:t}),r("div",{className:"text-sm font-medium text-left",children:e})]})]})})),X=a((({className:e,viewBox:t,fill:n="none",width:a,height:i,paths:l,...s})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:i,children:l.map((({d:e,fill:t,...n},a)=>r("path",{d:e,fill:t||"currentColor",...s,...n},a)))}))),J=[{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"}],Q=a((({className:e,disabled:t,...n})=>r(W,{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,...n,children:r(X,{paths:J,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),q="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",K="border-main-stroke border-solid border",Y="border-main-divider border border-t-0 border-x-0",ee="w-[200px] mr-6",te=a((({icon:e,image:t,title:a,link:i})=>n("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${K} ${q}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&r(d,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&r(v,{className:"mb-[18px]",image:t}),a&&r(s,{size:"S",className:"font-medium m-0 text-center text-white",children:a}),i?.text&&r("div",{className:"mt-auto w-full",children:r(W,{href:i.href,target:i.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:r("div",{className:"font-medium text-xs py-[11px]",children:i.text})})})]}))),re={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ne=a((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>r("div",{className:"flex flex-1 overflow-hidden",children:r("div",{className:re[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),ae=a((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>r("div",{className:`w-80 box-border flex flex-col ${K} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?q:""}`,role:"cell",children:r("div",{className:`mx-7 h-full ${Y} ${a&&t?"border-t":""} ${n?"":"border-solid"}`,children:e.map(((e,t)=>ie(e,t,a)))})}))),ie=({label:e,description:t},a,i)=>n("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&r("h5",{className:"text-xl font-medium m-0 "+(i?"text-white":""),children:e}),t&&r("div",{className:"text-sm opacity-80 "+(i?"text-white":"text-secondary-text"),children:t})]},String(a)),le=a((({children:e})=>r("div",{className:"self-start flex flex-col",role:"row",children:r("div",{className:"flex",children:e})}))),se=a((({row:{header:e,data:t},activeCardIndex:a,isColoredFirstColumn:i,isFirstRow:l,isLastRow:s})=>n(le,{children:[e?.title?r("div",{className:`text-sm py-7 ${Y} w-[200px] mr-6 ${s?"":"border-solid"}`,children:e.title}):null,t?.length?r(ne,{activeCardIndex:a,columnWidth:336,children:t.map(((e,t)=>r(ae,{cell:e,isFirstRow:l,isLastRow:s,isFillGradient:i&&0===t},String(t))))}):null]}))),ce=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:o=!1})=>{const d=t.useRouter(),{handlerDecorator:m}=t,[h,x]=t.useState(0),[p,u]=t.useState(!c),b=l?.map((({header:e})=>e||{})),f=l?.map((({data:e})=>e))||[],g=i?.map(((e,t)=>({header:e,data:f.map((e=>e?.[t]||[{}]))}))).slice(0,p?i.length:c),{nextClick:v,prevClick:N,isScrollAvailable:y,showNextButton:w,showPrevButton:k}=A({colData:f,colsLengthForScroll:2,activeCardIndex:h,setActiveCardIndex:x});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[b?.length?n(le,{children:[r("div",{className:ee,role:"columnheader",scope:"col"}),r(ne,{activeCardIndex:h,columnWidth:336,children:b.map(((e,t)=>r(te,{...e,link:e.link&&H({router:d,handlerDecorator:m},e.link)},String(t))))})]}):null,g?.length?n("div",{className:"relative",children:[g.map(((e,t,{length:n})=>r(se,{row:e,isFirstRow:0===t,isLastRow:t+1===n,activeCardIndex:h,isColoredFirstColumn:o},String(t)))),y?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(Q,{onClick:v,disabled:!w,ariaLabel:"Пролистать вправо"}),r(Q,{className:"mt-4 rotate-180",onClick:N,disabled:!k,ariaLabel:"Пролистать влево"})]})}):null]}):null]}),y?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null,c?r("div",{className:"pr-[50px]",children:n("div",{className:"flex w-full",children:[r("div",{className:ee}),r("button",{onClick:()=>u(!p),className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:r("div",{className:"font-sans font-medium text-xs py-[11px]",children:p?"Скрыть":"Показать все параметры"})})]})}):null]})}));function oe(e,t){const{data:r}=e(de(t),(()=>async function(e){const t=await fetch(de(e));return await t.json()}(t)));return r||{}}function de(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}const me=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],he=a((({text:e,checked:t,onChange:a,className:i})=>r("div",{className:i,children:n("label",{className:"flex items-center cursor-pointer relative",children:[r("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{a(e.target.checked)},checked:t}),r(X,{paths:me,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?r("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),xe=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),pe=a((({className:e,title:t,items:a=[],min:i=1,max:l=100,step:s=1,value:c=i,onChange:o})=>{const d=e=>{if(!o)return;const t=Number(e.replace(/\D/g,""));o(t)},m={backgroundSize:`${(100*(c-i)/(l-i)).toFixed(2)}% 100%`};return n("div",{className:e,children:[n("label",{className:"block relative",children:[t?r("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,r("input",{className:"m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 m-0 box-border text-primary-text "+(t?"pt-4":""),value:xe(c),onChange:e=>d(e.target.value),onBlur:()=>{o&&(c<i&&o(i),c>l&&o(l))}}),r("div",{className:"absolute inset-x-0 top-8 px-4",children:r("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:i,max:l,step:s,value:c,onChange:e=>d(e.target.value),style:m})})]}),r("div",{className:"flex justify-between my-3",children:a.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})})),ue=(e,t,r)=>Math.max(t,Math.min(e,r)),be=3e4,fe=3e6,ge=Math.round(41.5),ve=a((({context:e,className:t,directoryName:a})=>{const[i,l]=e.useState(void 0),[s,c]=e.useState(void 0),[o,d]=e.useState(!0),[m,h]=e.useState(!0),x=(e=>{const{tableRows:t,isAnnuity:r=!1}=e;return t&&t.find((e=>e.isAnnuity===r))||{}})({tableRows:oe(e.useAsyncData,a).rows,isAnnuity:o}),p=x.maxSum&&x.minSum?(x.maxSum-x.minSum)/2:1485e3,u=x.maxMonths&&x.minMonths?Math.round((x.maxMonths-x.minMonths)/2):ge,b=x?.minSum||be,f=x?.maxSum||fe,g=x?.minMonths||1,v=x?.maxMonths||84,N=(e=>{const{calculatorParams:t,isInsurance:r}=e;return t?r?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:m}),y=(e=>{const{calculatorParams:t,paymentType:r,rate:n,sum:a,months:i}=e;if(!t)return 0;const l=ue(a,t.minSum||be,t.maxSum||fe);if("annuity"===r){const e=Number(n)/1200;return l*(e+e/(Math.pow(1+e,i)-1))}return l/i+l*(Number(n)/12)})({calculatorParams:x,paymentType:"annuity",rate:N,sum:i||p,months:s||u}),w=((e,t)=>{const r=Math.ceil((t-e)/12),n=Math.floor(e/12)+1,a=new Array(Math.min(r-1,5)).fill(0).map(((e,t)=>n+t)),i=r+n-1;return a.concat(i)})(g,v);function k(e){c(ue(12*e,g,v))}return r("section",{className:`font-sans text-primary-text p-10 bg-white ${t||""}`,children:n("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[n("div",{className:"flex justify-between ",children:[n("div",{className:"mr-[42px]",children:[r(pe,{title:"Желаемая сумма кредита, ₽",items:[`От ${xe(b)} рублей`,`До ${xe(f)} рублей`],min:b,max:f,step:1e3,value:i||p,onChange:l}),r(pe,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:g,max:v,step:1,value:s||u,onChange:c}),r("div",{className:"flex mb-7",children:w.map(((e,t)=>function(e,t,a){return r("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>a(e),children:n("span",{className:"font-semibold text-sm",children:[e," ",1===e?"год":e>4?"лет":"года"]})},String(t))}(e,t,k)))}),r(he,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:d}),r(he,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:h})]}),n("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[r("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),r("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),n("div",{className:"text-lg mb-3",children:[xe(Math.round(y))," ₽"]}),r("div",{className:"text-sm opacity-60",children:"Ставка"}),n("div",{className:"text-lg",children:[N," %"]})]})]}),n("div",{className:"flex items-center",children:[r(W,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),r("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})}));const Ne=e=>{const t="col-span-",r=e.split(/\s+/).find((e=>e.startsWith(t)));return r?parseInt(r.substring(t.length),10):12},ye={primary:"text-primary-text",secondary:"text-secondary-text"},we={primary:"bg-primary-main",secondary:"bg-secondary-text"},ke=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary",white:s})=>n("div",{className:`font-sans inline-block flex items-baseline ${e}`,role:"listitem",children:[t&&r("div",{className:$e(l,s)}),r("span",{className:s?"text-white":ye[l],children:a||i})]}))),$e=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":we[e]} ${"primary"===e?"w-[8px] h-[8px] min-w-[8px] min-h-[8px] mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`,Ce=a((({className:e,context:t,title:a,titleSize:i,description:l,children:c,buttons:o,image:m,items:h,version:x="primary"})=>{const p=t.useRouter(),{handlerDecorator:u}=t;return n("div",{className:"font-sans flex flex-col grow h-full items-start",children:[a&&r(s,{size:Se(i,e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===x?"text-primary-text":""),children:a}),n("div",{className:"flex grow w-full justify-between",children:[n("div",{className:"flex flex-col justify-between items-start",children:[n("div",{children:[l&&r("div",{className:"font-normal text-base mt-4 max-w-[600px]",children:l}),c,h?.length?Le(h,x):null]}),o?.length?r("div",{className:"flex mt-9 gap-3",children:o.map(((e,t)=>function({icon:e,asSVG:t,...n},a){if(!n?.text)return;return r(W,e?{appendLeft:r(d,{name:e,asSVG:t,width:"24",height:"24"}),...n}:{...n},String(a))}(H({router:p,handlerDecorator:u},e),t)))}):null]}),m?.src&&r(v,{className:"mt-auto ml-7",image:m})]})]})}));function Se(e,t=""){if(e)return e;const r=Ne(t);return r<=4?"S":r<=8?"M":"L"}function Le(e=[],t){return r("section",{className:"max-w-[600px] mt-5",role:"list",children:e.map(((e,n)=>r(ke,{className:n?"mt-2.5":"",text:e,white:"primary"!==t},String(n))))})}const De={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},je=a((e=>{const{children:t,className:n="",version:a="primary",role:i}=e;return r("section",{className:`font-sans p-9 box-border ${n} ${De[a]} ${_e(n)} ${Re(n)} `,role:i,children:r(Ce,{...e,children:t})})}));function _e(e=""){const t=Ne(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function Re(e=""){const t=Ne(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Ie="https://www.cbr-xml-daily.ru/daily_json.js",Te=["USD","EUR"],Ae={USD:"DollarIcon",EUR:"EuroIcon"},Me=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],Be=a((({className:e,context:t,title:a})=>{const{data:i}=t.useAsyncData(Ie,Fe);return r(je,{className:e,context:t,title:a||"Курсы обмена валют",buttons:Me,children:n("table",{children:[r("thead",{children:n("tr",{children:[r(Pe,{children:"Валюта"}),r(Pe,{className:"pl-11",children:"Курс"})]})}),r("tbody",{children:Te.map((e=>{const t=(i?.Valute||{})[e]?.Value;return n("tr",{children:[r(Oe,{className:"pt-4",children:n("div",{className:"flex items-center",children:[r(d,{name:Ae[e],width:"24",height:"24"}),r("span",{className:"ml-2",children:e})]})}),r(Oe,{className:"pt-4 pl-11",children:Ze(t)})]},e)}))})]})})})),Pe=a((({className:e="",children:t})=>r("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),Oe=a((({className:e="",children:t})=>r("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function Fe(){const e=await fetch(Ie);return await e.json()}const Ve=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ze=e=>e?Ve.format(e):"",He=["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"],ze={"bg-white":"text-primary-main",transparent:"text-white"},Ee={"bg-white":"text-black",transparent:"text-white"},Ge=a((({className:e,href:t,children:a,targetBlank:i,bgColor:l="bg-white"})=>n("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self",children:[r(X,{className:`${ze[l]} w-10`,viewBox:"0 0 40 45",paths:He.map((e=>({d:e})))}),r("span",{className:`${Ee[l]} text-base font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),We=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return n("form",{className:`relative ${e||""}`,children:[n("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[r("div",{className:"w-[24px] h-[24px]",children:r(d,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&r("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-base text-secondary-text",children:"Поиск по сайту"})]}),r("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"}),r(W,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:r("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Ue=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return n("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Xe):null,a?r(W,{version:"primary",className:"my-4",...H({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Xe=(e,t)=>{const{type:a,text:i,description:l}=e;return n("div",{className:"mb-4",children:[r("div",{children:Je(a,i)}),r("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},Je=(e,t="")=>{switch(e){case"tel":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Qe(t)}`,children:t});case"email":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return r("span",{children:t})}},Qe=e=>e.replaceAll(/\D/g,""),qe=a((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`${e||""}`,children:t?.length?r("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>r(Ke,{index:t,...H({router:a,handlerDecorator:i},e)},String(t))))}):null})})),Ke=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:n||`Документ ${t}`}))),Ye=e=>t=>e?.href===t?.href,et=(e,t)=>{return(n=e,a=t,(n||[]).map((e=>a?.find(Ye(e))||e))).concat((r=e,(t||[]).filter((e=>!r?.find(Ye(e))))));var r,n,a};function tt(e){const{data:t}=e(nt(),rt);return t||{}}async function rt(){const e=await fetch(nt());return await e.json()}function nt(){return`/wcms-resources/${o.SITEMAP||"sitemap"}.json`}const at=a((({className:e,items:t,context:n})=>{const a=tt(n.useAsyncData),i=et(a.topItems,t),l={router:n.useRouter(),handlerDecorator:n.handlerDecorator};return r("div",{className:`flex items-start justify-start gap-11 xl:gap-5 ${e||""}`,children:i?.map(((e,t)=>it(e,t,l)))})})),it=(e,t,{router:a,handlerDecorator:i})=>{const{text:l,href:s,items:c,target:o}=e;return n("div",{className:"flex flex-col gap-[14px]",children:[r("a",{className:"block font-sans font-medium text-base text-primary-text no-underline",href:s,target:o||"_self",children:l||`Раздел ${t}`}),c?.map(((e,t)=>r(lt,{...H({router:a,handlerDecorator:i},e),index:t},String(t))))]},String(t))},lt=a((({text:e,href:t,target:n,index:a})=>r("a",{className:"block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),st=[{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"}],ct=a((({className:e,media:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`flex items-end justify-end gap-2 pt-[30px] pb-7 ${e||""}`,children:t?.map(((e,t)=>r(ot,{...H({router:a,handlerDecorator:i},e)},String(t))))})})),ot=a((({href:e})=>{const{icon:t,label:n,width:a,height:i}=st.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?r("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,target:"_blank",rel:"noopener noreferrer",children:d&&r(d,{name:t,width:a,height:i,asSVG:!0,className:"block"})}):null})),dt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`${e||""}`,children:[r("div",{className:"pt-5 pb-[5px]",children:r("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?r("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>r(mt,{index:t,...H({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),mt=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("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:n||`Документ ${t}`}))),ht=a((({className:e,documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c})=>n("footer",{className:`px-9 py-10 bg-white ${e||""}`,children:[n("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[r(Ge,{className:"w-[280px] xl:w-[220px]"}),r(We,{context:c,className:"grow"})]}),n("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[r(Ue,{className:"w-[280px] shrink-0 overflow-hidden xl:w-[220px]",items:i,context:c,hasButton:!0}),r(at,{className:"pt-[3px]",context:c,items:s})]}),r(ct,{media:l,context:c}),r(qe,{links:a,context:c}),r(dt,{links:t,context:c})]}))),xt={primary:"text-secondary-text",secondary:""},pt={normal:3,mini:4},ut={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},bt={normal:380,mini:276},ft=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>{const c=xt[s??"primary"];return n("div",{children:[n("div",{children:[a?.src?r("div",{className:"flex justify-center",children:r(v,{className:"mb-6",image:a})}):null,e&&gt(e,t,i),t&&r("div",{className:`font-normal text-sm mt-2 ${c}`,children:t}),i?.length?r("section",{className:`max-w-[308px] mt-2 ${c}`,role:"list",children:i.map(((e,t)=>function(e,t,n){return r(ke,{version:n??"primary",children:r("span",{className:"text-sm",children:e})},String(t))}(e,t,s)))}):null]}),l?.text&&r(W,{className:"mt-6",...l})]})}));function gt(e,t,n){return r("div",{className:"font-medium text-xl m-0 "+(t||n?.length?"":"text-center"),children:e})}const vt=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>n("div",{children:[r("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),n("div",{className:"flex flex-col items-center mb-8",children:[t?r(s,{className:"font-medium m-0 text-center",children:t}):null,a?r("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),r("div",{className:`flex ${i?.length<=pt[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*bt[l]}px)`},role:"list",children:i?.map(((t,n)=>function({card:e,version:t,context:n},a){return r(je,{context:n,className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${ut[t]} w-full col-span-4`,version:e.version,role:"listitem",children:r(ft,{...e})},String(a))}({card:t,version:l,context:e},n)))})]})));const Nt=a((({context:e,cards:t=[],className:a,version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>pt[i],d=o&&t?.length-s>pt[i],m=o&&s>0;return n("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[r(vt,{context:e,cards:t,version:i,activeCardIndex:s,...l}),m&&r(Q,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),d&&r(Q,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),yt=a((e=>r(Nt,{...e,version:"normal"}))),wt=(e,t,r=((e,t)=>t.startsWith(e)))=>r(B(e),(e=>(e||"").replace(F,""))(B(M(e)?t.href:t.pathname))),kt=e=>t=>wt(t.href,e),$t=e=>(t=[])=>{const r=t?.filter(kt(e));var n;return r?.length?(n=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>n(e)>n(t)?e:t)))(r):null},Ct="absolute left-0 -bottom-2 w-full h-[2px]",St=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c,bgColor:o="bg-white"})=>n("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[r("span",{className:Lt(o,l),children:t||c}),l?r("div",{className:Dt(o,l)}):null]}))),Lt=(e,t)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${r} font-sans font-normal text-base`},Dt=(e,t)=>t?`${"bg-white"===e?e:"bg-primary-main"} ${Ct}`:Ct,jt=a((({className:e="",text:t,href:n,target:a,active:i,flat:l,onClick:s,children:c,ariaLabel:o,bgColor:d="bg-white"})=>r("a",{className:`${_t(d,i,l)} ${e}`,href:n,target:a,onClick:s,rel:"noopener noreferrer","aria-label":o,children:r("span",{className:Rt(d,i,l),children:t||c})}))),_t=(e,t,r)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${r?"":"px-4 py-2"}`},Rt=(e,t,r)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":(r?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${n} font-sans font-normal text-sm`},It=a((({className:e="",children:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":n,children:t}))),Tt={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},At={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Mt={"bg-white":"GridIcon",transparent:"GridIconWhite"},Bt=a((({context:e,className:t,defaultLocation:a="",bgColor:i="bg-white"})=>{const[l,s]=e.useGeolocation(a);return n("div",{className:`flex items-center ${t||""}`,children:[r(jt,{className:"mr-5",flat:!0,href:"#",text:l,ariaLabel:"Местоположение",onClick:s,bgColor:i}),r(jt,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:i}),r(It,{className:`mr-5 ${Tt[i]}`,ariaLabel:"Поиск по сайту",children:r(d,{name:"LoupeIcon",className:"h-full",asSVG:!0})}),r(It,{className:`mr-5 ${Tt[i]}`,ariaLabel:"Профиль",children:r(d,{name:"ProfileIcon",className:"h-full",asSVG:!0})}),r(It,{className:`${At[i]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:r(d,{name:Mt[i],className:"h-full",asSVG:!0})})]})})),Pt={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ot=a((({className:e,defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l})=>{const s=i.useRouter(),c=tt(i.useAsyncData),{handlerDecorator:o}=i,d=et(c.topItems,l),m=d.find((e=>t=>t.items?.some(kt(e))||wt(t.href,e))(s)),h=m?.items,x=$t(s)(h),p=d.map(((e,t)=>r(jt,{active:e===m,...H({router:s,handlerDecorator:o},e),ariaLabel:e.text,bgColor:a},String(t)))),u=h?.map((e=>r(St,{className:"mr-8",active:e===x,...H({router:s,handlerDecorator:o},e),bgColor:a},e.href)));return r("header",{className:`pt-5 pb-8 px-20 ${a} ${e||""}`,children:n("div",{className:"container",children:[n("div",{className:"flex items-center",children:[r(Ge,{className:"mr-8",bgColor:a}),p,r(Bt,{context:i,className:"ml-auto",defaultLocation:t,bgColor:a})]}),r("div",{className:`mt-5 h-[1px] ${Pt[a]}`}),r("nav",{className:"mt-5",children:u})]})})})),Ft=a((e=>r(Nt,{...e,version:"mini"}))),Vt=a((({className:e,context:t,title:a="Мобильное приложение",qr:i,buttons:l=[]})=>r(je,{className:e,context:t,title:a,buttons:l,children:n("div",{className:"flex items-center",children:[i?.src&&i?.href&&r("a",{href:i.href,target:"_blank",children:r("img",{src:i.src,alt:a,title:a,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),r("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})}))),Zt=a((({className:e,text:t,onClick:n,href:a,target:i,isActive:l})=>r("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${l?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:n,href:a,target:i,children:t}))),Ht=a((({className:e,context:t,title:a,buttons:i})=>{const l=t.useRouter(),{handlerDecorator:s}=t,c=$t(l)(i);return n("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,children:[r("h2",{className:"font-medium text-xl m-0",children:a}),i?.length?r("div",{className:"flex rounded-md overflow-hidden bg-white",children:i.filter((({text:e})=>e)).map(((e,t)=>r(Zt,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...H({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),zt=a((({className:e,context:t,title:n})=>r(je,{className:e,context:t,title:n,description:"Блок в разработке...",children:r("figure",{className:"m-0 min-w-[600px]",children:Et()})}))),Et=(e=3)=>Wt(100,e).map((e=>Math.floor(e))).map(Gt),Gt=(e=100,t)=>r("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Wt=(e,t)=>[e].concat(t>0?Wt(e/1.618,t-1):[]),Ut=a((({text:e,href:t,target:n,onClick:a,className:i,children:l})=>t?r("a",{className:`no-underline ${i||""}`,href:t,target:n,onClick:a,children:r("span",{className:`${i||""}`,children:e||l})}):r("span",{className:`${i||""}`,children:e||l})));function Xt(e){return t=>t.reduce(((t,r,n)=>t.length?t.concat({...e,key:n},r):[r]),[])}const Jt={primary:"bg-main",secondary:"bg-white/30"},Qt={primary:"text-primary-text",secondary:"text-white"},qt={primary:"text-secondary-text",secondary:"text-white"},Kt=a((({className:e,context:t,title:a,titleSize:i,description:l,benefits:s,buttons:c,image:o,items:m,version:h="primary"})=>n("div",{className:`flex grow justify-between items-stretch ${e||""}`,children:[r("div",{className:"flex flex-col",children:r(Ce,{context:t,title:a,titleSize:i||"XL",description:l,items:m,buttons:c,version:h,children:s?.length?r("div",{className:"flex gap-6 mt-6 mb-3.5",children:s.map(((e,t)=>function(e,t,a){return n("div",{className:"flex gap-4 items-center",children:[e.icon&&r(d,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${Jt[a]}`,name:e.icon,width:"24",height:"24"}),n("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[r("h4",{className:`font-medium text-xl m-0 ${Qt[a]}`,children:e.label}),e.description&&r("div",{className:`font-normal text-sm ${qt[a]}`,children:e.description})]})]},String(t))}(e,t,h)))}):null})}),o?.src&&r(v,{className:"mt-auto",image:o})]})));const Yt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},er={primary:"text-secondary-text",secondary:"text-white/80"},tr=a((e=>{const{context:t,className:a,breadcrumbs:i,version:l="primary"}=e,s=t.useRouter(),{handlerDecorator:c}=t;return n("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${a||""} ${Yt[l]}`,children:[i?.length?r("div",{className:"text-xs mb-6",children:Xt(r("span",{className:`mx-2 ${er[l]}`,children:"/"}))(i.map(((e,t)=>r(Ut,{...H({router:s,handlerDecorator:c},{className:er[l],...e})},String(t)))))}):null,r(Kt,{...e})]})})),rr=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.nav)),s=i.map((e=>e.productBlock)),[c,o]=t.useState(0);return n("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[r("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){return r("section",{className:"flex grow-0 shrink-0 basis-full",role:"listitem",children:r("div",{className:"p-10 flex grow",children:r(Kt,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:n,...e})})},String(t))}(e,n,t)))}),r("div",{className:"flex",children:l.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:i,duration:l}){const s=t===a,c=s?"animate-slide":"";return n("button",{type:"button",onClick:i,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-5 grow basis-0",children:[n("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[r("div",{className:"text-sm font-medium pb-1 group-hover:text-primary-text "+(s?"text-primary-text":"text-secondary-text"),children:e?.title}),r("div",{className:"text-xs text-secondary-text pb-[2px]",children:e.desc})]}),r("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${c}`,style:{animationDuration:`${l}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>o(t),duration:a})))})]})}));const nr=a((e=>{const{benefits:t,version:a}=e;return r(je,{...e,children:n("div",{className:"flex mt-5 mb-1",children:[t?.length?r("div",{className:"mr-8",children:t.map(ar)}):null,t?.length?r("div",{className:"pt-1",children:t.map(((e,t)=>function(e,t,n="primary"){return r("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e.description},String(t))}(e,t,a)))}):null]})})}));function ar(e,t){return r("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const ir=a((({className:e,context:t,title:a="Акции и спецпредложения",date:i,description:l,buttons:s=[],version:c})=>r(je,{className:e,context:t,title:a,buttons:s,version:c,children:n("div",{className:"mt-1.5",children:[i&&r("div",{className:"text-sm mb-2",children:lr(i)}),r("div",{className:"text-base",children:l})]})})));function lr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const sr=a((({className:e,title:t,showLines:a=!0,steps:i})=>n("section",{className:`box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col items-center ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 "+(t?"mt-9":""),children:[r("div",{className:"flex items-center px-[88px]",children:Xt(r("div",{className:"h-0.5 w-full bg-secondary-light "+(a?"":"opacity-0")}))(i.map(((e,t)=>cr(e,t))))}),r("div",{className:"flex justify-between gap-x-[101px]",children:i.map(or)})]}):null]}))),cr=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative",children:r("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon&&r(d,{name:e.icon,width:"48",height:"48"})||r("span",{className:"font-medium text-title-sm text-secondary-text",children:t+1})})},String(t)),or=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[e.label&&r("div",{className:"font-medium text-xl m-0 mt-4",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]},String(t)),dr=a((({cell:e,isLastRow:t})=>r("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:r("div",{children:e.map(((e,t)=>mr(e,t)))})}))),mr=({label:e,description:t,list:a,image:i,buttons:l},s)=>n("div",{className:"first:pt-5 last:pb-5",children:[s>0&&r("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e&&r("div",{className:"text-xl font-medium m-0",children:e}),t&&r("div",{className:"text-sm text-secondary-text",children:t}),a?.items?.length?r("div",{className:"flex flex-col justify-between items-start",children:r("div",{role:"list",children:a.items.map(((e,t)=>r(ke,{text:e,version:a.version??"secondary",isDotted:a.isDotted??!0},String(t))))})}):null,i&&r(v,{image:i}),l?.length?l.map((({icon:e,...t},n)=>r(W,{className:(n>0?"ml-3":"")+" w-12 h-12",appendLeft:e&&r(d,{name:e,width:"24px",height:"24px"}),...t},String(n)))):null]},String(s)),hr=a((({row:{header:e,data:t},activeCardIndex:a,isLastRow:i})=>n(le,{children:[r("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(i?"":"border-solid"),children:n("div",{className:"flex items-center text-primary-text",children:[e?.icon&&r(d,{className:"mr-[14px] max-w-6 max-h-6",name:e.icon,width:"24px",height:"24px"}),e?.title]})}),t?.length?r(ne,{activeCardIndex:a,columnWidth:360,version:"tariff",children:t.map(((e,t)=>r(dr,{cell:e,isLastRow:i},String(t))))}):null]}))),xr=a((({className:e,context:t,title:a,rowHeaders:i,columns:l})=>{const[c,o]=t.useState(0),d=l?.map((({data:e})=>e))||[],m=i?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))),{nextClick:h,prevClick:x,isScrollAvailable:p,showNextButton:u,showPrevButton:b}=A({colData:d,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:o});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[m?.length?n("div",{className:"relative",children:[m.map(((e,t,{length:n})=>r(hr,{row:e,isLastRow:t+1===n,activeCardIndex:c},String(t)))),p?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(Q,{onClick:h,disabled:!u,ariaLabel:"Пролистать вправо"}),r(Q,{className:"mt-4 rotate-180",onClick:x,disabled:!b,ariaLabel:"Пролистать влево"})]})}):null]}):null,p?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})]})})),pr={Accordion:R,BenefitsBlock:I,ComparisonTable:ce,CreditCalculator:ve,ExchangeRateTile:Be,Footer:ht,Gallery:yt,Header:Ot,Headline:h,LinkDocs:b,MiniGallery:Ft,MobileAppTile:Vt,PictureText:y,Placeholder:zt,ProductBlock:tr,ProductGallery:rr,ProductTile:nr,PromoTile:ir,StepsBlock:sr,TariffsTable:xr,TextBlock:$,Tile:je,Navigation:Ht},ur=a((({className:e,onClick:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:br()}))),br=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r("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"}),r("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"})]})},fr=a((({className:e,context:t})=>{const a=t.useLikeService();return n("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:[r(ur,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),r(ur,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),r("span",{className:"select-none",children:a.likeCount})]})})),gr=({blockClassName:e,block:t,render:r})=>r({blockClassName:e,block:t}),vr=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:d=gr})=>{const{header:m}=s;return n("section",{className:`relative ${yr(i)} ${e||""}`,"data-theme":o,children:[m?.blocks?.length?r("div",{className:`${yr(m?.style)}`,children:m.blocks.map(((e,r)=>Nr({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,l?.length?r("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,r)=>Nr({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,c&&r("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:r(fr,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function Nr({block:e,blockDecorator:t,blocksRegistry:n,context:a},i){const{type:l}=e;l in n||console.warn(`No block with "${l}" is registered`);const s=n[l]||zt;return t({blockClassName:yr(e.style),block:e,render:e=>{const{version:c,content:o,blocks:d}=e.block;return r(s,{className:e.blockClassName,version:c,context:a,...o,children:d?.length?d.map(((e,r)=>Nr({block:e,blockDecorator:t,blocksRegistry:n,context:a},r))):null},`${l}-${i}`)}},`block-${i}`)}function yr(e){return e?e.join(" "):""}const wr=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return n(e,{children:[r("title",{children:i}),r("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&r("meta",{name:"description",content:l}),s&&r("meta",{name:"keywords",content:s.join(",")}),c&&r("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>r("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function kr(e){return e?.filter((({mobile:e})=>!e?.hidden)).map($r)}function $r(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=pr,e.ContentPage=vr,e.ContentPageHead=wr,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))))))(),r=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await r.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ot,e.Icon=d,e.LikeAPI=function(e,t=""){async function r(){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:r,name:n}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:r,name:n})),{token:r,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...n){if(!n.length)return[];const{token:a}=await r();try{const r=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:n})}),{likes:i}=await r.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=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:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=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:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=Xt,e.projectSettings=o,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:r}=e;return{...e,blocks:kr(t),slots:r&&Object.keys(r).reduce(((e,t)=>({...e,[t]:{...r[t],blocks:kr(r[t].blocks)}})),{})}},e.url=O,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -13,9 +13,12 @@ const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
13
13
  exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', }) => {
14
14
  const router = context.useRouter();
15
15
  const { handlerDecorator } = context;
16
- return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), (0, jsx_runtime_1.jsxs)("div", { className: "flex grow w-full justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between items-start", children: [(0, jsx_runtime_1.jsxs)("div", { children: [description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })), children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image })] })] }));
16
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: getTitleSize(titleSize, className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), (0, jsx_runtime_1.jsxs)("div", { className: "flex grow w-full justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between items-start", children: [(0, jsx_runtime_1.jsxs)("div", { children: [description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })), children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image })] })] }));
17
17
  });
18
- function getTitleSizeByClassName(className = '') {
18
+ function getTitleSize(titleSize, className = '') {
19
+ if (titleSize) {
20
+ return titleSize;
21
+ }
19
22
  const colSpan = (0, getColSpan_1.getColSpan)(className);
20
23
  if (colSpan <= 4) {
21
24
  return 'S';
@@ -33,6 +36,6 @@ function renderItems(items = [], version) {
33
36
  function renderButton({ icon, asSVG, ...button }, i) {
34
37
  if (!button?.text)
35
38
  return;
36
- return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { appendLeft: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, asSVG: true, width: "24", height: "24" }), ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button }, String(i)));
39
+ return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { appendLeft: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, asSVG: asSVG, width: "24", height: "24" }), ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button }, String(i)));
37
40
  }
38
41
  //# sourceMappingURL=BaseTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gEAA6D;AAC7D,uDAAoD;AACpD,iDAA8C;AAC9C,0CAAuC;AACvC,oDAAiD;AACjD,uDAAo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,CAAC,CAAC,CACZ,uBAAC,eAAM,IAEL,UAAU,EAAE,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,KACjE,MAAM,IAFL,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
@@ -5,7 +5,7 @@ export declare const Blocks: {
5
5
  CreditCalculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./CreditCalculator/CreditCalculator").CreditCalculatorProps, any>, context?: any) => any;
6
6
  ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
7
7
  Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
8
- Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
8
+ Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
9
9
  Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
10
10
  Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
11
11
  LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
@@ -1,15 +1,16 @@
1
- export declare const MobileBlocks: {
1
+ export declare const Blocks: {
2
2
  ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
3
- Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer.mobile").FooterProps, any>, context?: any) => any;
4
- Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
3
+ Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
4
+ Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
5
5
  Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
6
6
  Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
7
7
  MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
8
8
  PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
9
9
  Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
10
- ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock.mobile").ProductBlockProps, any>, context?: any) => any;
10
+ ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
11
11
  ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
12
12
  TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
13
13
  Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
14
14
  Navigation: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Navigation/Navigation").NavigationProps, any>, context?: any) => any;
15
+ StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
15
16
  };
@@ -1,31 +1,33 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.MobileBlocks = void 0;
2
+ exports.Blocks = void 0;
3
3
  const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
4
- const Footer_mobile_1 = require("./Footer/Footer.mobile");
5
- const Gallery_mobile_1 = require("./Gallery/Gallery.mobile");
4
+ const Footer_1 = require("./Footer/Footer");
5
+ const Gallery_1 = require("./Gallery/Gallery");
6
6
  const Header_1 = require("./Header/Header");
7
7
  const Headline_1 = require("./Headline/Headline");
8
8
  const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
9
9
  const Navigation_1 = require("./Navigation/Navigation");
10
10
  const PictureText_1 = require("./PictureText/PictureText");
11
11
  const Placeholder_1 = require("./Placeholder/Placeholder");
12
- const ProductBlock_mobile_1 = require("./ProductBlock/ProductBlock.mobile");
12
+ const ProductBlock_1 = require("./ProductBlock/ProductBlock");
13
13
  const ProductTile_1 = require("./ProductTile/ProductTile");
14
+ const StepsBlock_1 = require("./StepsBlock/StepsBlock");
14
15
  const TextBlock_1 = require("./TextBlock/TextBlock");
15
16
  const Tile_1 = require("./Tile/Tile");
16
- exports.MobileBlocks = {
17
+ exports.Blocks = {
17
18
  ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
18
- Footer: Footer_mobile_1.Footer,
19
- Gallery: Gallery_mobile_1.Gallery,
19
+ Footer: Footer_1.Footer,
20
+ Gallery: Gallery_1.Gallery,
20
21
  Header: Header_1.Header,
21
22
  Headline: Headline_1.Headline,
22
23
  MobileAppTile: MobileAppTile_1.MobileAppTile,
23
24
  PictureText: PictureText_1.PictureText,
24
25
  Placeholder: Placeholder_1.Placeholder,
25
- ProductBlock: ProductBlock_mobile_1.ProductBlock,
26
+ ProductBlock: ProductBlock_1.ProductBlock,
26
27
  ProductTile: ProductTile_1.ProductTile,
27
28
  TextBlock: TextBlock_1.TextBlock,
28
29
  Tile: Tile_1.Tile,
29
30
  Navigation: Navigation_1.Navigation,
31
+ StepsBlock: StepsBlock_1.StepsBlock,
30
32
  };
31
- //# sourceMappingURL=MobileBlocks.js.map
33
+ //# sourceMappingURL=Blocks.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,iEAA8D;AAC9D,wDAAqD;AACrD,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,2DAAwD;AACxD,wDAAqD;AACrD,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;IACV,UAAU,EAAV,uBAAU;CACX,CAAC"}
@@ -1,5 +1,2 @@
1
- import { GalleryContent } from './GalleryContent';
2
- import type { UniBlockProps } from '../../types';
3
- export interface GalleryProps extends GalleryContent, UniBlockProps {
4
- }
1
+ import type { GalleryProps } from './GalleryProps';
5
2
  export declare const Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<GalleryProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAKjC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAC,2BAAY,OAAK,KAAK,EAAE,OAAO,EAAC,QAAQ,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAGjC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAC,2BAAY,OAAK,KAAK,EAAE,OAAO,EAAC,QAAQ,GAAG,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- import type { GalleryProps } from './Gallery';
1
+ import type { GalleryProps } from './GalleryProps';
2
2
  export declare const Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<GalleryProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,gEAA6D;AAC7D,uDAAoD;AACpD,0CAAuC;AACvC,oDAAiD;AAEpC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,qCACE,SAAS,EAAE,qEAAqE,SAAS,EAAE,aAE3F,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,aAAK,IAAC,SAAS,EAAC,8BAA8B,YAAE,KAAK,GAAS,EAC9D,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,CAC9E,CAAC,CAAC,CAAC,IAAI,IACJ,EACN,gCAAK,SAAS,EAAC,8BAA8B,EAAC,IAAI,EAAC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AC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACZ,+BACE,SAAS,EAAE,2BACT,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,YAED,IAAI,CAAC,KAAK,GACR,CACN,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,8CAA8C,YAAE,IAAI,CAAC,WAAW,GAAO,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAChD,EACL,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,KAtBpE,GAAG,CAuBJ,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,QAAkB,EAAE;IACvC,OAAO,CACL,oCAAS,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,MAAM,YAChD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,qBAAS,cACR,iCAAM,SAAS,EAAC,6BAA6B,YAAE,IAAI,GAAQ,IAD7C,MAAM,CAAC,CAAC,CAAC,CAEb,CACb,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
@@ -8,7 +8,7 @@ const Img_1 = require("../../ui-kit/Img");
8
8
  const constants_1 = require("./constants");
9
9
  exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, description, image, items, button, version }) => {
10
10
  const cardVersionClasses = constants_1.cardVersionMap[version ?? 'primary'];
11
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { children: [image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm mt-2 ${cardVersionClasses}`, children: description })), items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: `max-w-[308px] mt-2 ${cardVersionClasses}`, role: "list", children: items.map((item, i) => renderItem(item, i, version)) })) : null] }), button?.href && (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6", ...button })] }));
11
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { children: [image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm mt-2 ${cardVersionClasses}`, children: description })), items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: `max-w-[308px] mt-2 ${cardVersionClasses}`, role: "list", children: items.map((item, i) => renderItem(item, i, version)) })) : null] }), button?.text && (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6", ...button })] }));
12
12
  });
13
13
  function renderCardTitle(title, description, items) {
14
14
  return ((0, jsx_runtime_1.jsx)("div", { className: `font-medium text-xl m-0 ${!description && !items?.length ? 'text-center' : ''}`, children: title }));
@@ -10,12 +10,9 @@ export interface GalleryCard {
10
10
  /** @title Описание */
11
11
  description?: string;
12
12
  image?: Picture;
13
- /** @title Ссылка */
13
+ /** @title Кнопка */
14
14
  button?: BaseTileIconButton;
15
- /**
16
- * @title Список
17
- * @minItems 4
18
- */
15
+ /** @title Список */
19
16
  items?: string[];
20
17
  version?: BlockVersion;
21
18
  }
@@ -27,6 +24,9 @@ export interface GalleryContent {
27
24
  title?: string;
28
25
  /** @title Описание */
29
26
  description?: string;
30
- /** @title Карточки */
27
+ /**
28
+ * @title Карточки
29
+ * @minItems 4
30
+ */
31
31
  cards?: GalleryCard[];
32
32
  }
@@ -0,0 +1,4 @@
1
+ import type { UniBlockProps } from '../../types';
2
+ import { GalleryContent } from './GalleryContent';
3
+ export interface GalleryProps extends GalleryContent, UniBlockProps {
4
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=GalleryProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GalleryProps.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryProps.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import type { UniBlockProps } from '../../types';
2
- import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
3
- export interface ProductBlockProps extends ProductBlockInnerCommonProps, UniBlockProps {
2
+ import type { ProductBlockContent } from './ProductBlockContent';
3
+ export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {
4
4
  }
5
5
  export declare const ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockProps, any>, context?: any) => any;
@@ -1,5 +1,5 @@
1
- import type { ProductTileContent } from './ProductTileContent';
2
1
  import type { UniBlockProps } from '../../types';
2
+ import type { ProductTileContent } from './ProductTileContent';
3
3
  export interface ProductTileProps extends ProductTileContent, UniBlockProps {
4
4
  }
5
5
  export declare const ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductTileProps, any>, context?: any) => any;
@@ -5,16 +5,16 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Tile_1 = require("../Tile/Tile");
6
6
  exports.ProductTile = (0, uni_jsx_1.JSX)((props) => {
7
7
  const { benefits, version } = props;
8
- return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { ...props, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "mr-8", children: benefits.map(renderBenefitDescription) })) : null, benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitLabel(_, i, version)) })) : null] }) }));
8
+ return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { ...props, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (0, jsx_runtime_1.jsx)("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) }) : null, benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] }) }));
9
9
  });
10
- function renderBenefitLabel(benefit, i, version = 'primary') {
10
+ function renderBenefitLabel(benefit, i) {
11
+ return ((0, jsx_runtime_1.jsx)("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
12
+ }
13
+ function renderBenefitDescription(benefit, i, version = 'primary') {
11
14
  const labelStyleMap = {
12
15
  primary: 'text-secondary-text',
13
16
  secondary: 'text-white',
14
17
  };
15
- return ((0, jsx_runtime_1.jsx)("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.label }, String(i)));
16
- }
17
- function renderBenefitDescription(benefit, i) {
18
- return ((0, jsx_runtime_1.jsx)("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.description }, String(i)));
18
+ return ((0, jsx_runtime_1.jsx)("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
19
19
  }
20
20
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,uCAAoC;AAKvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE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