@redneckz/wildless-cms-uni-blocks 0.3.14 → 0.3.17

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 (68) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +19 -6
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Footer/Footer.mobile.js +1 -1
  5. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  6. package/dist/components/Headline/Headline.js +2 -1
  7. package/dist/components/Headline/Headline.js.map +1 -1
  8. package/dist/components/Headline/Headline.mobile.js +2 -1
  9. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  10. package/dist/components/Headline/constants.d.ts +7 -1
  11. package/dist/components/Headline/constants.js +17 -5
  12. package/dist/components/Headline/constants.js.map +1 -1
  13. package/dist/components/StepsBlock/StepsBlock.mobile.js +28 -6
  14. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  15. package/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -0
  16. package/dist/components/TariffsTable/TariffsTable.js +3 -3
  17. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  18. package/lib/components/Footer/Footer.mobile.js +1 -1
  19. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  20. package/lib/components/Headline/Headline.js +3 -2
  21. package/lib/components/Headline/Headline.js.map +1 -1
  22. package/lib/components/Headline/Headline.mobile.js +3 -2
  23. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  24. package/lib/components/Headline/constants.d.ts +7 -1
  25. package/lib/components/Headline/constants.js +16 -4
  26. package/lib/components/Headline/constants.js.map +1 -1
  27. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -4
  28. package/lib/components/StepsBlock/StepsBlock.mobile.js +28 -6
  29. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  30. package/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -0
  31. package/lib/components/TariffsTable/TariffsTable.js +3 -3
  32. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  33. package/mobile/bundle/bundle.umd.js +58 -23
  34. package/mobile/bundle/bundle.umd.min.js +1 -1
  35. package/mobile/dist/components/Footer/Footer.js +1 -1
  36. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  37. package/mobile/dist/components/Headline/Headline.js +2 -1
  38. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  39. package/mobile/dist/components/Headline/constants.d.ts +7 -1
  40. package/mobile/dist/components/Headline/constants.js +17 -5
  41. package/mobile/dist/components/Headline/constants.js.map +1 -1
  42. package/mobile/dist/components/StepsBlock/StepsBlock.js +28 -6
  43. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  44. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -0
  45. package/mobile/lib/components/Footer/Footer.js +1 -1
  46. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  47. package/mobile/lib/components/Headline/Headline.js +3 -2
  48. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  49. package/mobile/lib/components/Headline/constants.d.ts +7 -1
  50. package/mobile/lib/components/Headline/constants.js +16 -4
  51. package/mobile/lib/components/Headline/constants.js.map +1 -1
  52. package/mobile/lib/components/StepsBlock/StepsBlock.js +28 -6
  53. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  54. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -0
  55. package/mobile/src/components/Footer/Footer.tsx +2 -2
  56. package/mobile/src/components/Headline/Headline.tsx +9 -4
  57. package/mobile/src/components/Headline/constants.ts +22 -4
  58. package/mobile/src/components/StepsBlock/StepsBlock.tsx +60 -19
  59. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +2 -1
  60. package/package.json +1 -1
  61. package/src/components/Footer/Footer.mobile.tsx +2 -2
  62. package/src/components/Headline/Headline.mobile.tsx +9 -4
  63. package/src/components/Headline/Headline.tsx +3 -2
  64. package/src/components/Headline/constants.ts +22 -4
  65. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +127 -72
  66. package/src/components/StepsBlock/StepsBlock.mobile.tsx +60 -19
  67. package/src/components/StepsBlock/StepsBlockContent.ts +2 -1
  68. package/src/components/TariffsTable/TariffsTable.tsx +5 -5
@@ -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,a)=>{t._jsx=e,t._jsxs=a||e};t.vue=e=>{t(((t,{children:a,dangerouslySetInnerHTML:r,...n}={})=>{const l=Object.assign({},n,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>a:a)}))};const a=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),n=e=>(e._tmpl||(e._tmpl=function(t,a){const{children:r,...n}=t||{},l=a?.slots?.default,i=r||l&&l();return e(Object.assign(n,i&&{children:i}),a)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-title-lg tracking-[-0.3px]",h2:"text-title",h3:"text-title-sm",h4:"text-title-xs",h5:"text-title-2xs tracking-[0.2px]",h6:"text-title-2xs tracking-[0.2px]"},s=n((e=>{const{className:t,headingType:r,title:n}=e;if(!r)return;return a(r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:n})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},o={none:"",primary:"text-primary-main"},m=n((({className:e="",name:t,alt:n=`Icon ${t}`,title:l=n,asSVG:i,color:s="primary",...m})=>{const d=`${c.CDN||""}icons/${t}.svg`;return i?r("svg",{className:`${o[s]} ${e}`,...m,"aria-hidden":"true",children:[l?a("title",{children:l}):null,n?a("desc",{children:n}):null,a("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):a("img",{className:e,src:d,alt:n,title:l,...m,"aria-hidden":"true"})})),d={left:"text-left",center:"text-center",right:"text-right"},h={transparent:"bg-transparent",primary:"bg-white",secondary:"bg-primary-main"},x=n((({bgColorHeadline:e="transparent",align:t="left",className:n="",title:l,description:i})=>r("section",{className:`p-[50px] ${h[e]} ${n}`,children:[l&&a(s,{headingType:"h2",className:`text-primary-text ${d[t]}`,title:l}),i&&a("p",{className:`font-normal text-base mt-4 ${d[t]}`,children:i})]}))),p=n((({className:e,iconClassName:t,textClassName:n,suffixClassName:l,doc:i,icon:s})=>{const{text:c,fileSize:o,...d}=i;return r("a",{className:e,role:"link",...d,children:[s?a(m,{className:t,name:s,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:n,children:[c,a("span",{className:l,children:d?.href&&u(b(d.href),o)})]}):null]})})),u=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),b=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},f=n((({className:e="",doc:t,icon:r})=>a(p,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6 text-primary-text",textClassName:"self-center",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:r}))),g=n((({className:e,documents:t,columnsMode:r="double",icon:n})=>t?.length?a("div",{className:e,role:"list",children:t.map(((e,t)=>a("div",{className:"double"===r?"basis-[calc(50%-20px)]":"",role:"listitem",children:a(f,{className:"group flex text-sm align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),N={left:"text-left",center:"text-center",right:"text-right"},v={double:"mb-8",single:"mb-[26px]"},y={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},w=n((({className:e="",title:t,subtitle:n,align:l,documents:i,icon:c="DocIcon",columnsMode:o="double"})=>r("section",{className:`font-sans text-primary-text p-12 bg-white ${e}`,children:[t?a(s,{headingType:"h2",className:`${n?"mb-2.5":v[o]} ${N[l??"center"]}`,title:t}):null,n?a("h3",{className:`text-base mt-0 font-normal ${v[o]} ${N[l??"center"]}`,children:n}):null,a(g,{className:y[o],columnsMode:o,documents:i,icon:c})]}))),$=n((({className:e="",image:{size:t,...n},imageClassName:l=""})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:`flex-none ${e}`,children:[n.sources?.length?n.sources.map((({src:e,format:t},r)=>a("source",{srcSet:e,type:k(t)},`${r}_${e}`))):null,a("img",{className:l,src:n.src,alt:n.alt||n.title,title:n.title,style:i,...t})]})}));function k(e){return e?`image/${String(e)}`:void 0}const C=n((({className:e="",title:t,image:n,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[a(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[n?.src&&a($,{className:"mr-6",image:n}),l?.length?a("div",{className:"flex flex-col",children:l.map(S)}):null]})]})));function S(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&a(m,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&a("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&a("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const T=e=>e?.includes("//"),I=e=>(e||"").replace(/\/?\?.*/,""),D=e=>{if(!e||!T(e))return;const t=e,a=t.indexOf("//"),r=t.indexOf("/",a+"//".length);return-1!==r?t.substring(0,r):t};var R=Object.freeze({__proto__:null,isURL:T,withoutQuery:I,getOrigin:D});const L="/mobile",j=(e,t)=>{if(!e)return e;const a=D(t?.href);return a?e.replace(a,"")||"/":e},_=e=>e;function A({router:e,handlerDecorator:t=_},a){const r=((e,t)=>{if(!e)return e;const a=j(e,t)||"",r=t?.pathname.startsWith(L);return r&&!T(a)?`/mobile${a}`:a})(a.href,e);return{...a,href:r,ariaLabel:a.text,onClick:t((t=>{const n=r&&!T(r),l=!a.target||"_self"===a.target;n&&l&&(t.preventDefault(),e.push(r))}),a)}}const M=n((({text:e,href:t,target:r,onClick:n,className:l="",children:i})=>t?a("a",{className:`no-underline ${l}`,href:t,target:r,onClick:n,children:a("span",{className:l,children:e||i})}):a("span",{className:l,children:e||i})));function V(e){return t=>t.reduce(((t,a,r)=>t.length?t.concat({...e,key:r},a):[a]),[])}const P=n((e=>{const{text:t,aboveText:n,appendLeft:l}=e;return r("div",{className:B(e),children:[l||null,O(e)?r("div",{children:[a("div",{className:"text-m-2xs text-left",children:n}),a("div",{className:"text-m-button font-medium text-left",children:t})]}):null]})})),B=e=>{const{version:t,aboveText:a,rounded:r}=e;if("link"===t)return"";const n="px-8 gap-2 "+(a?"py-2":"py-3.5");return["flex items-center justify-center",O(e)?n:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:a})=>Boolean(e||t||!a),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},G="text-center font-sans select-none",Z=n((e=>{const{text:t,aboveText:r,appendLeft:n,children:l,disabled:i,rounded:s}=e,c=l??a(P,{text:t,aboveText:r,appendLeft:n,rounded:s});return a(i?U:E,{...e,children:c})})),E=n((({className:e,ariaLabel:t,version:r="none",rounded:n,href:l,target:i,children:s,onClick:c,...o})=>a("a",{className:`${G} inline-block cursor-pointer no-underline ${F[r]||""} ${n?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:c,"aria-label":t,role:l?"link":"button",...o,children:s}))),U=n((({className:e,children:t,ariaLabel:r,version:n="none",rounded:l})=>a("div",{role:"button","aria-disabled":"true","aria-label":r,tabIndex:"-1",className:`inline-block ${G} ${H[n]||""} ${l?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),W=n((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:n}=e,l=e.useRouter();return r?.length?a("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return a(Z,e?{appendLeft:a(m,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(A({router:l,handlerDecorator:n},e),t)))}):null}));const z=n((e=>{const{className:t="",description:r}=e;return a("div",{className:`font-normal text-base ${t}`,children:r})})),J={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},X={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},q=n((({className:e="",isDotted:t=!0,children:n,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&a("div",{className:Q(l)}),a("span",{className:`text-m-md ${J[l]}`,children:n})]}))),Q=e=>`rounded-full inline-block mr-3 mt-2 ${X[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,K=n((e=>{const{className:t="",itemClassName:r,isDotted:n,items:l,version:i}=e;return a("section",{className:`${t}`,role:"list",children:l?.length?l.map(((e,t)=>a(q,{className:r,isDotted:n,version:i,children:e},String(t)))):null})})),Y=n((({className:e="",title:t,children:n,buttons:l,image:i})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[a("div",{children:n}),l?.length?a("div",{children:l}):null]}),i]})]}))),ee={primary:"bg-main",secondary:"bg-white/30"},te={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};const re=n((({className:e="",context:t,title:n,headingType:l="h2",description:i,benefits:c,buttons:o,image:d,items:h,version:x="primary"})=>r("div",{className:`flex grow justify-between items-stretch ${e}`,children:[a("div",{className:"flex flex-col",children:r(Y,{context:t,title:n&&a(s,{headingType:l,title:n,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:o?.length?a(W,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:[i&&a(z,{className:"mt-4 max-w-[600px]",description:i}),c?.filter((e=>e.label))?.length?a("div",{className:"flex gap-6 mt-6",children:c.map(((e,t)=>function(e,t,n){return r("div",{className:"flex gap-4 items-center",children:[e.icon&&a(m,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${ee[n]}`,name:e.icon,width:"24",height:"24",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[a("div",{className:`font-medium text-xl m-0 ${te[n]}`,children:e.label}),e.description&&a("div",{className:`font-normal text-sm ${ae[n]}`,children:e.description})]})]},String(t))}(e,t,x)))}):null,h?.length?a(K,{className:"mt-5",items:h,itemClassName:"mb-[10px]",version:x}):null]})}),d?.src&&a($,{className:"mt-auto",image:d})]}))),ne={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},le={primary:"text-secondary-text",secondary:"text-white/80"},ie=n((e=>{const{context:t,className:n,breadcrumbs:l,version:i="primary"}=e,s=t.useRouter(),{handlerDecorator:c}=t;return r("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${n||""} ${ne[i]}`,children:[l?.length?a("div",{className:"text-xs mb-6",children:V(a("span",{className:`mx-2 ${le[i]}`,children:"/"}))(l.map(((e,t)=>a(M,{...A({router:s,handlerDecorator:c},{className:le[i],...e})},String(t)))))}):null,a(re,{...e})]})})),se={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"}},ce=n((({title:e,description:t,blockVersion:n="primary",iconVersion:l,image:i,className:s})=>{const c=se[n];return r("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:["small"===l?oe(c.icon):null,"big"===l?me(i):null,r("div",{className:"py-0.5",children:[e&&a("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&a("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function oe(e){return a("div",{className:"pt-1.5 pl-1 pr-4",children:a("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function me(e){return e?.src?a($,{className:"pt-0.5 pr-3",image:e}):null}const de=e=>{const t="col-span-",a=e.split(/\s+/).find((e=>e.startsWith(t)));return a?parseInt(a.substring(t.length),10):12};function he(e=""){const t=de(e);return t<=4?"h4":t<=8?"h3":"h2"}function xe(e=""){const t=de(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function pe(e=""){const t=de(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},be=n((e=>{const{context:t,title:n,description:l,items:i,children:c,buttons:o,image:m,className:d="",version:h="primary",role:x}=e;return a("section",{className:`overflow-hidden font-sans p-9 box-border ${d} ${ue[h]} ${pe(d)} ${xe(d)} `,role:x,children:r(Y,{context:t,title:n&&a(s,{headingType:he(d),title:n,className:`whitespace-pre-wrap max-w-[600px] ${n?"mb-3":""}\n ${"primary"===h?"text-primary-text":""}`}),buttons:o?.length?a(W,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,image:m?.src&&a($,{className:"mt-auto ml-7",image:m}),children:[l&&a(z,{className:"mt-4 max-w-[600px]",description:l}),c,fe(i,h)]})})}));function fe(e,t){return e?.length?a(K,{items:e,version:t}):null}const ge={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ne=n((({context:e,className:t="",title:n,description:l,benefits:i,buttons:c,image:o,version:m="primary"})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${ge[m]} ${pe(t)} ${xe(t)} `,children:r(Y,{context:e,title:n&&a(s,{headingType:he(t),title:n,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?a(W,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:o?.src&&a($,{className:"mt-auto ml-7",image:o}),children:[l&&a(z,{className:"mt-4 max-w-[600px]",description:l}),r("div",{className:"flex mt-5 mb-1",children:[i?.length?a("div",{className:"mr-8",children:i.map(ve)}):null,i?.length?a("div",{className:"pt-1",children:i.map(((e,t)=>function(e,t,r="primary"){return a("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,m)))}):null]})]})})));function ve(e,t){return a("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const ye=n((({className:e,viewBox:t,fill:r="none",width:n,height:l,paths:i,...s})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:n,height:l,children:i.map((({d:e,fill:t,...r},n)=>a("path",{d:e,fill:t||"currentColor",...s,...r},n)))}))),we=[{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"}],$e=n((({className:e,disabled:t,...r})=>a(Z,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...r,children:a(ye,{paths:we,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),ke={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Ce={normal:3,mini:4},Se={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Te={normal:380,mini:276},Ie={primary:"text-secondary-text",secondary:"text-white",gray:"text-secondary-text"},De={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},Re=n((({className:e="",isDotted:t=!0,text:n,children:l,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&a("div",{className:Le(i)}),a("span",{className:Ie[i],children:n||l})]}))),Le=e=>`rounded-full inline-block mr-3 mt-2 ${De[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,je=n((({title:e,description:t,image:n,items:l,button:i,version:s})=>{const c=function(e,t,a){return`font-medium text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n ${t||a?.length?"":"text-center"}\n `}(s,t,l);return r("div",{children:[r("div",{children:[n?.src?a("div",{className:"flex justify-center",children:a($,{className:"mb-6",image:n})}):null,e?Ae(e,c):null,t?a("div",{className:"font-normal text-sm "+(e?"mt-2":""),children:t}):null,l?.length?Me(l,s):null]}),i?.text?_e(i):null]})}));function _e(e){return a(Z,{className:"mt-6 w-full",appendLeft:e.icon&&a(m,{name:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ae(e,t){return a("div",{className:`font-medium text-xl m-0 ${t}`,children:e})}function Me(e,t){return a("section",{className:"max-w-[308px] mt-2",role:"list",children:e.filter((e=>e?.text)).map(((e,r)=>function(e,t,r){return a(Re,{version:r??"primary",children:a("span",{className:"text-sm",children:e})},String(t))}(e.text,r,t)))})}const Ve=n((({context:e,title:t,description:n,cards:l=[],version:i="normal",activeCardIndex:c})=>r("div",{children:[a("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?a(s,{headingType:"h2",className:"text-center",title:t}):null,n?a("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:n}):null]}),a("div",{className:`flex ${l?.length<=Ce[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*Te[i]}px)`},role:"list",children:l?.map(((t,r)=>function({card:e,version:t},r){return a("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${Se[t]} ${ke[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:a(je,{...e})},String(r))}({card:t,version:i,context:e},r)))})]})));const Pe=n((({context:e,cards:t=[],className:n="",version:l="normal",...i})=>{const[s,c]=e.useState(0),o=t?.length>Ce[l],m=o&&t?.length-s>Ce[l],d=o&&s>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${n}`,children:[a(Ve,{context:e,cards:t,version:l,activeCardIndex:s,...i}),d&&a($e,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(s-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),m&&a($e,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),a("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),a("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),Be=n((e=>a(Pe,{...e,version:"normal"}))),Oe=n((e=>a(Pe,{...e,version:"mini"}))),Fe=n((({className:e="",documents:t})=>a("section",{className:`font-sans bg-white mt-[10px] ${e}`,children:a("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?He(t):null})}))),He=e=>e.map(((e,t)=>{const{text:r,...n}=e;return a("li",{className:"mb-4 list-none",children:a("a",{className:"hover:text-primary-main",role:"link",...n,children:r||null})},`list_item_${String(t)}`)})),Ge={Headline:x,LinkDocs:w,TextBlock:ce,PictureText:C,ProductBlock:ie,Tile:be,ProductTile:Ne,Gallery:Be,MiniGallery:Oe,LinkList:Fe},Ze=n((({blocks:e,columns:t=1,context:r})=>a("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 flex flex-wrap",children:e?.length?e.map(Ee(r,t)):null}))),Ee=(e,t)=>(r,n)=>{const l=r?.accordionBlockType;if(!l||!(l in Ge))return null;return a("div",{className:`mb-5 last:mb-0 pb-5 ${2===t?"w-1/2":""}`,children:a(Ge[l],{context:e,...r,className:"!p-0"})},`block_${n}`)},Ue=n((({label:e,blocks:t,columns:n,context:l})=>{const{hasContent:i,icon:s,handleToggle:c}=(({context:e,blocks:t})=>{const[a,r]=e.useState(!1),n=t?.length;return{isActive:a,hasContent:n,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!n)return;r(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[r("button",{className:"border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text\n "+(i?"group cursor-pointer":""),onClick:c,children:[a("span",{className:"text-xl pr-2.5 font-medium "+(i?"group-hover:text-primary-main":""),children:e}),i?a(m,{name:s,width:"24",height:"24",asSVG:!0}):null]}),i?a(Ze,{columns:n,blocks:t,context:l}):null]})})),We=n((({title:e,accordionItems:t,context:n,className:l})=>r("section",{className:`p-[50px] font-sans bg-white text-primary-text ${l||""}`,children:[e?a(s,{headingType:"h4",className:"mb-2.5",title:e}):null,t?.length?a("ul",{className:"list-none m-0 p-0",children:t.map(((e,t)=>a(Ue,{...e,context:n},`AccordionItem${t}`)))}):null]}))),ze=n((({className:e,title:t,benefits:n})=>r("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e||""}`,children:[t?a(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,n?.length?a("div",{className:"grid grid-cols-2 gap-8 mt-9",children:n.map(Je)}):null]}))),Je=(e,t)=>r("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e.icon&&a(m,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",name:e.icon,width:"70",height:"70"}),r("div",{children:[a("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&a("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),Xe="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",qe="border-main-stroke border-solid border",Qe="border-main-divider border border-t-0 border-x-0",Ke="w-[200px] mr-6",Ye=n((({children:e})=>a("div",{className:"self-start flex flex-col",role:"row",children:a("div",{className:"flex",children:e})}))),et={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},tt=n((({children:e,activeCardIndex:t,columnWidth:r,version:n="comparison"})=>a("div",{className:"flex flex-1 overflow-hidden",children:a("div",{className:et[n],style:{transform:`translateX(-${t*r}px)`},children:e})}))),at=n((({icon:e,image:t,title:n,link:l})=>r("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${qe} ${Xe}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&a(m,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&a($,{className:"mb-[18px]",image:t}),n&&a(s,{headingType:"h4",className:"text-center text-white",title:n}),l?.text&&a("div",{className:"mt-auto w-full",children:a(Z,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:a("div",{className:"font-medium text-xs py-[11px]",children:l.text})})})]}))),rt=n((({colHeaders:e,activeCardIndex:t,router:n,handlerDecorator:l})=>r(Ye,{children:[a("div",{className:Ke,role:"columnheader",scope:"col"}),a(tt,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>a(at,{...e,link:e.link&&A({router:n,handlerDecorator:l},e.link)},String(t))))})]}))),nt=n((({cell:e,isFirstRow:t,isLastRow:r,isFillGradient:n})=>a("div",{className:`w-80 box-border flex flex-col ${qe} ${r?"border-t-0 rounded-b-md":"border-y-0"} ${n?Xe:""}`,role:"cell",children:a("div",{className:`mx-7 h-full ${Qe} ${n&&t?"border-t":""} ${r?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>lt(e,t,n)))})}))),lt=({label:e,description:t},n,l)=>r("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&a("h5",{className:"text-xl font-medium m-0 "+(l?"text-white":""),children:e}),t&&a("div",{className:"text-sm opacity-80 "+(l?"text-white":"text-secondary-text"),children:t})]},String(n)),it=n((({row:{header:e,data:t},activeCardIndex:n,isColoredFirstColumn:l,isFirstRow:i,isLastRow:s})=>r(Ye,{children:[e?.title?a("div",{className:`text-sm py-7 ${Qe} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?a(tt,{activeCardIndex:n,columnWidth:336,children:t.map(((e,t)=>a(nt,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:l&&0===t},String(t))))}):null]}))),st=n((({isScrollAvailable:e,onNextClick:t,onPrevClick:n,showNextButton:l,showPrevButton:i})=>e?a("div",{children:r("div",{className:"absolute top-7 right-7 z-10",children:[a($e,{onClick:t,disabled:!l,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),a($e,{className:"mt-4 rotate-180",onClick:n,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),ct=n((({rowData:e,activeCardIndex:t,isColoredFirstColumn:n,...l})=>r("div",{className:"relative",children:[e.map(((e,r,{length:l})=>a(it,{row:e,isFirstRow:0===r,isLastRow:r+1===l,activeCardIndex:t,isColoredFirstColumn:n},String(r)))),a(st,{...l})]}))),ot=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:a,setActiveCardIndex:r})=>{const n=e>t;return{onNextClick:()=>r(a+1),onPrevClick:()=>r(a-1),isScrollAvailable:n,showNextButton:n&&e-a>t,showPrevButton:Boolean(n&&a>0)}},mt=n((({context:e,columns:t,rowHeaders:n,isShowAllRow:l,visibleRowLength:i,isColoredFirstColumn:s})=>{const c=e.useRouter(),{handlerDecorator:o}=e,m=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],h=n?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,l?n.length:i),[x,p]=e.useState(0),u=ot({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:p}),{isScrollAvailable:b}=u;return r("div",{children:[r("div",{role:"table",children:[m?.length?a(rt,{colHeaders:m,activeCardIndex:x,router:c,handlerDecorator:o}):null,h?.length?a(ct,{rowData:h,activeCardIndex:x,isColoredFirstColumn:s,...u}):null]}),b?a("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),dt=n((({className:e,context:t,title:n,rowHeaders:l,columns:i,visibleRowLength:c=0,isColoredFirstColumn:o=!1})=>{const[m,d]=t.useState(!c);return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[a(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:n}),a(mt,{context:t,columns:i,rowHeaders:l,isShowAllRow:m,isColoredFirstColumn:o,visibleRowLength:c}),c?ht({isShowAllRow:m,onClick:()=>d(!m)}):null]})})),ht=({isShowAllRow:e,onClick:t})=>a("div",{className:"pr-[50px]",children:r("div",{className:"flex w-full",children:[a("div",{className:Ke}),a("button",{onClick:t,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:a("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),xt=n((({tabs:e,currentTabIndex:t,onTabClick:r})=>a("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(pt(t,r))}))),pt=(e,t)=>(n,l)=>{const i=e===l;return r("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 "+(i?"px-2 h-16 pt-4 pb-2 text-white bg-primary-main":"px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke"),role:"tab",onClick:()=>t(l),"aria-selected":String(i),children:[n?.icon?ut(n,i):null,r("div",{children:[n?.title?a("h3",{className:"font-medium m-0 text-base",children:n?.title}):null,n?.description?a("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:n?.description}):null]})]},String(l))},ut=(e,t)=>a("div",{className:"h-full mt-1",style:t?{filter:"invert(1)"}:null,children:a(m,{className:"w-5 h-5 mr-3",name:e?.icon||"CardIcon",asSVG:!t})});async function bt(e){const t=await fetch(e);return await t.json()}const ft=[{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"}],gt=n((({text:e,checked:t,onChange:n,className:l})=>a("div",{className:l,children:r("label",{className:"flex items-center cursor-pointer relative",children:[a("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=>{n(e.target.checked)},checked:t}),a(ye,{paths:ft,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?a("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),Nt=(e,t,a)=>Math.max(t,Math.min(e,a)),vt=3e4,yt=3e6,wt=Math.round(41.5);const $t=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),kt=n((({className:e,title:t,items:n=[],min:l=1,max:i=100,step:s=1,value:c=l,onChange:o})=>{const m=e=>{if(!o)return;const t=Number(e.replace(/\D/g,""));o(t)},d={backgroundSize:`${(100*(c-l)/(i-l)).toFixed(2)}% 100%`};return r("div",{className:e,children:[r("label",{className:"block relative",children:[t?a("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,a("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:$t(c),onChange:e=>m(e.target.value),onBlur:()=>{o&&(c<l&&o(l),c>i&&o(i))}}),a("div",{className:"absolute inset-x-0 top-[35px] px-4 leading-[18px]",children:a("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:i,step:s,value:c,onChange:e=>m(e.target.value),style:d})})]}),a("div",{className:"flex justify-between my-3",children:n.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:[" ",e," "]},String(t))))})]})}));function Ct(e){const{minMonths:t,maxMonths:r,monthsValue:n,defaultMonths:l,setMonthsValue:i}=e;return a(kt,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:r,step:1,value:n||l,onChange:i})}function St(e,t){return r("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[a("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),a("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),r("div",{className:"text-lg mb-3",children:[$t(Math.round(e))," ₽"]}),a("div",{className:"text-sm opacity-60",children:"Ставка"}),r("div",{className:"text-lg",children:[t," %"]})]})}function Tt(e){const{calculatorParams:t,moneyValue:r,defaultSum:n,setMoneyValue:l}=e,i=t?.minSum||vt,s=t?.maxSum||yt;return a(kt,{title:"Желаемая сумма кредита, ₽",items:[`От ${$t(i)} рублей`,`До ${$t(s)} рублей`],min:i,max:s,step:1e3,value:r||n,onChange:l})}const It=n((({context:e,directoryName:t})=>{const[n,l]=e.useState(void 0),[i,s]=e.useState(void 0),[c,o]=e.useState(!0),[m,d]=e.useState(!0),h=function(e,t){const{data:a}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),bt);return a||{}}(e.useAsyncData,t).rows,x=(e=>{const{tableRows:t,isAnnuity:a=!1}=e;return t&&t.find((e=>e.isAnnuity===a))||{}})({tableRows:h,isAnnuity:c}),p=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(x),u=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):wt)(x),b=x?.minMonths||1,f=x?.maxMonths||84,g=(e=>{const{calculatorParams:t,isInsurance:a}=e;return t?a?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:m}),N=(e=>{const{calculatorParams:t,paymentType:a,rate:r,sum:n,months:l}=e;if(!t)return 0;const i=Nt(n,t.minSum||vt,t.maxSum||yt);if("annuity"===a){const e=Number(r)/1200;return i*(e+e/(Math.pow(1+e,l)-1))}return i/l+i*(Number(r)/12)})({calculatorParams:x,paymentType:"annuity",rate:g,sum:n||p,months:i||u}),v=((e,t)=>{const a=Math.ceil((t-e)/12),r=Math.floor(e/12)+1,n=new Array(Math.min(a-1,5)).fill(0).map(((e,t)=>r+t)),l=a+r-1;return n.concat(l)})(b,f);function y(e){s(Nt(12*e,b,f))}return a("section",{className:"mt-7",children:r("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[r("div",{className:"flex justify-between",children:[r("div",{className:"mr-[42px]",children:[Tt({calculatorParams:x,moneyValue:n,defaultSum:p,setMoneyValue:l}),Ct({minMonths:b,maxMonths:f,monthsValue:i,defaultMonths:u,setMonthsValue:s}),a("div",{className:"flex mb-7",children:v.map(((e,t)=>function(e,t,n){return a("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:()=>n(e),children:r("span",{className:"font-semibold text-sm",children:[e," ",1===e?"год":e>4?"лет":"года"]})},String(t))}(e,t,y)))}),a(gt,{text:"Получаю пенсию на карту Россельхозбанка",checked:c,onChange:o}),a(gt,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:d})]}),St(N,g)]}),r("div",{className:"flex items-center",children:[a(Z,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),a("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),Dt=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:"CardIcon"},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:"ChartSquareIcon"},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:"DiscountShapeIcon"}],Rt=n((({className:e="",context:t,tabs:n=Dt})=>{const[l,i]=t.useState(0);return r("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,children:[a(s,{className:"w-full text-center mb-8",headingType:he(e),title:"Калькулятор"}),a(xt,{tabs:n,currentTabIndex:l,onTabClick:i}),a(It,{context:t,directoryName:n[l]?.directoryName})]})}));async function Lt(){try{const e=await fetch(jt);return await e.json()}catch(e){console.error(e)}}const jt="/api/v1/exchangerates.json",_t=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),At=e=>e?_t.format(e):"",Mt="text-left font-normal text-sm text-secondary-text",Vt={USD:"DollarIcon",EUR:"EuroIcon"},Pt=n((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[a("thead",{children:r("tr",{children:[a("th",{className:Mt,children:"Валюта"}),a("th",{className:`${Mt} pl-11`,children:"Купить"}),a("th",{className:`${Mt} pl-11`,children:"Продать"})]})}),a("tbody",{children:t.map((e=>Bt(e)))})]}))),Bt=e=>{const t=e?.currency?.currency;return r("tr",{children:[a("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?a(m,{name:Vt[t],width:"24",height:"24"}):null,a("span",{className:"ml-2",children:t})]})}),a("td",{className:"pt-4 pl-11",children:At(e.buyExchangeRate)}),a("td",{className:"pt-4 pl-11",children:At(e.saleExchangeRate)})]},t)},Ot=n((({className:e="",address:t,distance:n})=>r("div",{className:`flex text-sm ${e}`,children:[a(m,{className:"min-w-fit",name:"GpsIcon",width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-1.5",children:[t?a("p",{className:"m-0",children:t}):null,n?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),Ft=n((({className:e="",id:t,name:r,type:n="text",placeholder:l})=>a("input",{className:e,id:t,name:r||t,type:n,placeholder:l}))),Ht=n((({className:e="",id:t,name:r,children:n})=>a("select",{className:e,id:t,name:r||t,children:n}))),Gt=n((({className:e="",value:t,children:r})=>a("option",{className:e,value:`${t}`,children:r}))),Zt=n((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[Et("Хочу продать",e),Et("Получу",e),a(Z,{className:"box-border mt-3.5 py-3 h-12 w-44",version:"primary",href:"#",children:"Купить валюту"})]})));function Et(e,t){return r("div",{className:"flex items-center",children:[a(Ft,{className:"h-10 border pl-2.5 rounded-md text-m-sm w-full appearance-none",type:"number",placeholder:`${e}`}),t.length?a(Ht,{className:"h-9 -translate-x-16",children:t.map(((e,t)=>a(Gt,{value:e,children:e},String(t))))}):null]})}const Ut=["USD","EUR"],Wt=["RUB","USD","EUR"],zt=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],Jt={address:"Москва, ул.Ленина д.28",distance:"6км"},Xt=n((({className:e="",context:t,title:n="Курсы обмена валют"})=>{const l=function(e){const{data:t}=e(jt,Lt);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==Ut.indexOf(e?.currency?.currency||"")))||zt;return a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,children:a(Y,{context:t,title:a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap mb-3"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-20 pt-3",children:[l?a(Pt,{className:"mb-7",exchangeCurrencyItems:l}):null,a(Ot,{...Jt})]}),l?.length?a(Zt,{className:"grow",exchangeCurrencyItems:l,codes:Wt}):null]})})})})),qt=["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"],Qt={"bg-white":"text-primary-main",transparent:"text-white"},Kt={"bg-white":"text-black",transparent:"text-white"},Yt=n((({className:e,href:t,children:n,targetBlank:l,bgColor:i="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[a(ye,{className:`${Qt[i]} w-10`,viewBox:"0 0 40 45",paths:qt.map((e=>({d:e})))}),!s&&a("span",{className:`${Kt[i]} text-base font-medium ml-2.5`,children:n||"Россельхозбанк"})]}))),ea=n((({className:e,context:t})=>{const{term:n,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[a("div",{className:"w-[24px] h-[24px]",children:a(m,{name:"LoupeIcon",width:"24",height:"24"})}),!n&&a("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-base text-secondary-text",children:"Поиск по сайту"})]}),a("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:n,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),a(Z,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:a("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),ta=n((({className:e,items:t,hasButton:n,context:l})=>{const i=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(aa):null,n?a(Z,{version:"primary",className:"mt-0.5 mb-5",...A({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),aa=(e,t)=>{const{type:n,text:l,description:i}=e;return r("div",{className:"mb-3.5",children:[a("div",{children:ra(n,l)}),a("div",{className:"font-sans text-sm text-secondary-text",children:i})]},String(t))},ra=(e,t="")=>{switch(e){case"tel":return a("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${na(t)}`,children:t});case"email":return a("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return a("span",{children:t})}},na=e=>e.replaceAll(/\D/g,""),la=n((({links:e,className:t="",context:r})=>{const n=r.useRouter(),{handlerDecorator:l}=r;return a("div",{className:t,children:e?.length?a("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>a(ia,{index:t,...A({router:n,handlerDecorator:l},e)},String(t))))}):null})})),ia=n((({className:e="",index:t,text:r,href:n,target:l,onClick:i})=>a("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:n,target:l,onClick:i,children:r||`Документ ${t}`}))),sa=e=>t=>e?.href===t?.href,ca=(e,t)=>{return(r=e,n=t,(r||[]).map((e=>n?.find(sa(e))||e))).concat((a=e,(t||[]).filter((e=>!a?.find(sa(e))))));var a,r,n};function oa(e){const{data:t}=e(da(),ma);return t||{}}async function ma(){const e=await fetch(da());return await e.json()}function da(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const ha=n((({className:e,items:t,context:r})=>{const n=oa(r.useAsyncData),l=ca(n.topItems,t),i={router:r.useRouter(),handlerDecorator:r.handlerDecorator};return a("div",{className:`flex items-start justify-start gap-11 xl:gap-5 ${e||""}`,children:l?.map(((e,t)=>xa(e,t,i)))})})),xa=(e,t,{router:n,handlerDecorator:l})=>{const{text:i,href:s,items:c,target:o}=e;return r("div",{className:"flex flex-col gap-[14px]",children:[a("a",{className:"block font-sans font-medium text-base text-primary-text no-underline",href:s,target:o||"_self",children:i||`Раздел ${t}`}),c?.map(((e,t)=>a(pa,{...A({router:n,handlerDecorator:l},e),index:t},String(t))))]},String(t))},pa=n((({text:e,href:t,target:r,index:n})=>a("a",{className:"block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:r||"_self",children:e||`Раздел ${n}`}))),ua=[{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"}],ba=n((({href:e})=>{const{icon:t,width:r,height:n,label:l}=ua.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?a("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:m&&a(m,{name:t,width:r,height:n,asSVG:!0,className:"block",color:"none"})}):null})),fa=n((({className:e,media:t,context:r})=>{const n=r.useRouter(),{handlerDecorator:l}=r;return a("div",{className:`flex items-end justify-end gap-2 pt-[30px] pb-7 ${e||""}`,children:t?.map(((e,t)=>a(ba,{...A({router:n,handlerDecorator:l},e)},String(t))))})})),ga=n((({className:e,links:t,context:n})=>{const l=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`${e||""}`,children:[a("div",{className:"pt-5 pb-[5px]",children:a("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?a("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>a(Na,{index:t,...A({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),Na=n((({className:e,index:t,text:r,href:n,target:l,onClick:i})=>a("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:n,target:l,onClick:i,children:r||`Документ ${t}`}))),va=n((({className:e,documents:t,relatedEnterprises:n,contacts:l,socialMedia:i,topItems:s,context:c})=>r("footer",{className:`px-9 py-10 bg-white ${e||""}`,children:[r("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[a(Yt,{className:"w-[280px] xl:w-[220px]"}),a(ea,{context:c,className:"grow"})]}),r("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a(ta,{className:"w-[280px] shrink-0 overflow-hidden xl:w-[220px]",items:l,context:c,hasButton:!0}),a(ha,{className:"pt-[3px]",context:c,items:s})]}),a(fa,{media:i,context:c}),a(la,{links:n,context:c}),a(ga,{links:t,context:c})]}))),ya=(e,t,a=((e,t)=>t.startsWith(e)))=>a(I(e),(e=>(e||"").replace(L,""))(I(T(e)?t.href:t.pathname))),wa=e=>t=>ya(t.href,e),$a=e=>(t=[])=>{const a=t?.filter(wa(e));var r;return a?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(a):null},ka=e=>t=>t.items?.some(wa(e))||ya(t.href,e)||((e,t)=>D(e)===D(t.href))(t.href,e),Ca="absolute left-0 -bottom-3 w-full h-[2px]",Sa=n((({className:e,text:t,href:n,target:l,active:i,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:n,target:l,onClick:s,children:[a("span",{className:Ta(o,i),children:t||c}),i?a("div",{className:Ia(o,i)}):null]}))),Ta=(e,t)=>{let a="text-white";return"bg-white"===e&&(a=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${a} font-sans font-normal text-base`},Ia=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ca}`:Ca,Da=n((({className:e="",text:t,href:r,target:n,active:l,flat:i,onClick:s,children:c,ariaLabel:o,bgColor:m="bg-white"})=>a("a",{className:`${Ra(m,l,i)} ${e}`,href:r,target:n,onClick:s,rel:"noopener noreferrer","aria-label":o,children:a("span",{className:La(m,l,i),children:t||c})}))),Ra=(e,t,a)=>{let r="border-transparent";return t&&(r="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${r} inline-block border border-solid bg-transparent text-center no-underline ${a?"":"px-4 py-2"}`},La=(e,t,a)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":(a?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${r} font-sans font-normal text-sm`},ja=n((({className:e="",children:t,ariaLabel:r})=>a("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":r,children:t}))),_a={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Aa={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Ma={"bg-white":"GridIcon",transparent:"GridIconWhite"},Va=n((({context:e,className:t,defaultLocation:n="",bgColor:l="bg-white"})=>{const[i,s]=e.useGeolocation(n);return r("div",{className:`flex items-center ${t||""}`,children:[a(Da,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),a(Da,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),a(ja,{className:`mr-5 ${_a[l]}`,ariaLabel:"Поиск по сайту",children:a(m,{name:"LoupeIcon",className:"h-full",asSVG:!0,color:"none"})}),a(ja,{className:`mr-5 ${_a[l]}`,ariaLabel:"Профиль",children:a(m,{name:"ProfileIcon",className:"h-full",asSVG:!0,color:"none"})}),a(ja,{className:`${Aa[l]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:a(m,{name:Ma[l],className:"h-full",asSVG:!0,color:"none"})})]})})),Pa={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ba=n((({className:e,defaultLocation:t,bgColor:n="bg-white",context:l,topItems:i})=>{const s=l.useRouter(),c=oa(l.useAsyncData),{handlerDecorator:o}=l,m=ca(c.topItems,i),d=m.find(ka(s)),h=d?.items,x=$a(s)(h),p=m.map(((e,t)=>a(Da,{active:e===d,...A({router:s,handlerDecorator:o},e),ariaLabel:e.text,bgColor:n},String(t)))),u=h?.map((e=>a(Sa,{className:"mr-8",active:e===x,...A({router:s,handlerDecorator:o},e),bgColor:n},e.href)));return a("header",{className:`pt-5 pb-8 px-20 ${n} ${e||""}`,children:r("div",{className:"container",children:[r("div",{className:"flex items-center",children:[a(Yt,{className:"mr-8",bgColor:n}),p,a(Va,{context:l,className:"ml-auto",defaultLocation:t,bgColor:n})]}),a("div",{className:`mt-5 h-[1px] ${Pa[n]}`}),a("nav",{className:"mt-5",children:u})]})})})),Oa=n((({className:e="",context:t,title:n="Мобильное приложение",qr:l,buttons:i=[]})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${pe(e)} ${xe(e)} `,children:a(Y,{context:t,title:n&&a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:i?.length?a(W,{context:t,buttons:i,className:"flex mt-9 gap-3"}):null,children:r("div",{className:"flex items-center",children:[l?.src&&l?.href&&a("a",{href:l.href,target:"_blank","aria-label":n,children:a("img",{src:l.src,alt:n,title:n,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),a("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),Fa=n((({className:e,text:t,onClick:r,href:n,target:l,isActive:i})=>a("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:r,href:n,target:l,children:t}))),Ha=n((({className:e,context:t,title:n,buttons:l})=>{const i=t.useRouter(),{handlerDecorator:s}=t,c=$a(i)(l);return r("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,children:[a("h2",{className:"font-medium text-xl m-0",children:n}),l?.length?a("div",{className:"flex rounded-md overflow-hidden bg-white",children:l.filter((({text:e})=>e)).map(((e,t)=>a(Fa,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...A({router:i,handlerDecorator:s},e)},String(t))))}):null]})})),Ga=n((({className:e,context:t,title:n,description:l="Блок в разработке..."})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${pe(e)} ${xe(e)} `,children:r(Y,{context:t,title:n?a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?a(z,{className:"mt-4 max-w-[600px]",description:l}):null,a("figure",{className:"m-0 min-w-[600px]",children:Za()})]})}))),Za=(e=3)=>Ua(100,e).map((e=>Math.floor(e))).map(Ea),Ea=(e=100,t)=>a("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ua=(e,t)=>[e].concat(t>0?Ua(e/1.618,t-1):[]),Wa=n((({className:e,context:t,duration:n=0,slides:l=[]})=>{const i=l.map((e=>e.nav)),s=l.map((e=>e.productBlock)),[c,o]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[a("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:s.map(((e,r)=>function(e,t,r){return a("section",{className:"flex grow-0 shrink-0 basis-full",role:"listitem",children:a("div",{className:"p-10 flex grow",children:a(re,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:r,...e})})},String(t))}(e,r,t)))}),a("div",{className:"flex",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:l,duration:i}){const s=t===n,c=s?"animate-slide":"",o=s?"text-primary-text":"text-secondary-text";return r("button",{type:"button",onClick:l,"aria-label":e?.title,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-[23px] grow basis-0",children:[r("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[a("div",{className:`text-sm font-medium pb-[3px] group-hover:text-primary-text ${o}`,children:e?.title}),a("div",{className:"text-xs text-secondary-text",children:e.desc})]}),a("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${c}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>o(t),duration:n})))})]})}));const za={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ja=n((({className:e="",context:t,title:n="Акции и спецпредложения",date:l,description:i,buttons:c=[],version:o="primary"})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${za[o]} ${pe(e)} ${xe(e)} `,children:a(Y,{context:t,title:n?a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:c?.length?a(W,{context:t,buttons:c,className:"flex mt-9 gap-3"}):null,children:r("div",{className:"mt-1.5",children:[l?a("div",{className:"text-sm mb-2",children:Xa(l)}):null,a("div",{className:"text-base",children:i})]})})})));function Xa(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const qa=n((({context:e,className:t="",title:n,description:l,items:i,image:c,version:o})=>a("section",{className:`border border-solid box-border rounded-md p-7 min-w-[515px] max-w-[515px] ${t}`,role:"listitem",children:r(Y,{context:e,title:n&&a(s,{headingType:"h4",title:n,className:"mb-4"}),image:c?.src&&a($,{className:"mt-auto ml-7",image:c}),children:[l?a(z,{description:l}):null,i?.length?a(K,{items:i,version:o}):null]})}))),Qa="absolute top-0 bottom-0 w-[84px]",Ka=n((({context:e,recommendations:t=[],className:n="",title:l,version:i})=>{const[c,o]=e.useState(0),m="secondary"===i?"border-main-divider":"border-main-stroke";return r("section",{className:`relative font-sans p-[50px] overflow-hidden ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${n}`,children:[l?a(s,{headingType:"h3",className:"mb-8",title:l}):null,a("div",{className:"flex duration-1000 gap-4",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(Ya({context:e,version:i,className:m})):null}),er({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:o}),a("div",{className:`${Qa} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),a("div",{className:`${Qa} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Ya=({context:e,version:t,className:r})=>(n,l)=>a(qa,{context:e,...n,version:t,className:r},String(l)),er=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const l=e>2,i=l&&e-t>2;return r("div",{children:[l&&t>0&&a($e,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-6",onClick:()=>n(t-1),ariaLabel:"Пролистать влево"}),i&&a($e,{className:"absolute top-1/2 right-8 z-10 mt-6",onClick:()=>n(t+1),ariaLabel:"Пролистать вправо"})]})},tr=n((({className:e,title:t,showLines:n=!0,steps:l})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col items-center ${e||""}`,children:[a(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),l?.length?r("div",{className:"box-border py-0.5 mb-0.5 "+(t?"mt-9":""),children:[a("div",{className:"flex items-center px-[88px]",children:V(a("div",{className:"h-0.5 w-full bg-secondary-light "+(n?"":"opacity-0")}))(l.map(((e,t)=>ar(e,t))))}),a("div",{className:"flex justify-between gap-x-[101px]",children:l.map(rr)})]}):null]}))),ar=(e,t)=>a("div",{className:"flex flex-col items-center text-center relative",children:a("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&&a(m,{name:e.icon,width:"48",height:"48"})||a("span",{className:"font-medium text-title-sm text-secondary-text",children:t+1})})},String(t)),rr=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[e.label&&a("div",{className:"font-medium text-xl m-0 mt-4",children:e.label}),e.description&&a("div",{className:"font-normal text-sm text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]},String(t)),nr=n((({cell:e,isLastRow:t})=>a("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:a("div",{children:e.map(lr)})}))),lr=({label:e,description:t,list:n,image:l,buttons:i},s)=>r("div",{className:"first:pt-5 last:pb-5",children:[s>0&&a("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?a("div",{className:"text-xl font-medium m-0",children:e}):null,t?a("div",{className:"text-sm text-secondary-text",children:t}):null,n?.items?.length?a("div",{className:"flex flex-col justify-between items-start",children:a("div",{role:"list",children:n.items.map(((e,t)=>a(Re,{className:"text-sm",text:e,version:"gray",isDotted:n.isDotted??!0},String(t))))})}):null,l&&a($,{image:l}),i?.length?i.map((({icon:e,...t},r)=>a(Z,{className:(r>0?"ml-3":"")+" w-12 h-12",appendLeft:e&&a(m,{name:e,width:"24px",height:"24px",asSVG:!0}),...t},String(r)))):null]},String(s)),ir=n((({row:{header:e,data:t},activeCardIndex:n,isLastRow:l})=>r(Ye,{children:[a("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:r("div",{className:"flex items-center text-primary-text",children:[e?.icon&&a(m,{className:"mr-[14px] max-w-6 max-h-6",name:e.icon,width:"24px",height:"24px",asSVG:!0}),e?.title]})}),t?.length?a(tt,{activeCardIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>a(nr,{cell:e,isLastRow:l},String(t))))}):null]}))),sr=n((({className:e,context:t,title:n,description:l,rowHeaders:i,columns:c})=>{const[o,m]=t.useState(0),d=cr(c),h=or(i,d),x=ot({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:o,setActiveCardIndex:m}),{isScrollAvailable:p}=x;return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[n?a(s,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:n}):null,l?a("div",{className:"mb-9 text-center text-m-base",children:l}):null,h?.length?r("div",{role:"table",children:[r("div",{className:"relative",children:[h.map(((e,t)=>a(ir,{row:e,isLastRow:t+1===length,activeCardIndex:o},String(t)))),a(st,{...x})]}),p?a("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}):null]})})),cr=e=>e?.map((({data:e})=>e))||[],or=(e,t)=>e?.map(((e,a)=>({header:e,data:t.map((e=>e?.[a]||[{}]))}))),mr={Accordion:We,BenefitsBlock:ze,ComparisonTable:dt,CreditCalculator:Rt,ExchangeRateTile:Xt,Footer:va,Gallery:Be,Header:Ba,Headline:x,LinkDocs:w,MiniGallery:Oe,MobileAppTile:Oa,PictureText:C,ProductBlock:ie,ProductGallery:Wa,ProductTile:Ne,PromoTile:Ja,Recommendation:Ka,StepsBlock:tr,TariffsTable:sr,TextBlock:ce,Tile:be,Navigation:Ha,Placeholder:Ga},dr=n((({className:e,onClick:t,ariaLabel:r})=>a("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:hr()}))),hr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[a("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"}),a("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"})]})},xr=n((({className:e,context:t})=>{const n=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[a(dr,{onClick:n.like,ariaLabel:"Поставить отметку «лайк»"}),a(dr,{onClick:n.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),a("span",{className:"select-none",children:n.likeCount})]})})),pr=({blockClassName:e,block:t,render:a})=>a({blockClassName:e,block:t}),ur=n((({className:e,context:t,blocksRegistry:n,data:{style:l,blocks:i,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=pr})=>{const{header:d}=s;return r("section",{className:`relative ${fr(l)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?a("div",{className:`${fr(d?.style)}`,children:d.blocks.map(((e,a)=>br({block:e,blockDecorator:m,blocksRegistry:n,context:t},a)))}):null,i?.length?a("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,a)=>br({block:e,blockDecorator:m,blocksRegistry:n,context:t},a)))}):null,c&&a("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:a(xr,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function br({block:e,blockDecorator:t,blocksRegistry:r,context:n},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=r[i||"Placeholder"]||Ga;return t({blockClassName:fr(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return a(s,{className:e.blockClassName,version:t,context:n,...r},`${i}-${l}`)}},`block-${l}`)}function fr(e){return e?e.join(" "):""}const gr=n((({HeadComponent:e,data:t,children:n})=>{const{title:l,main:i,og:s,twitter:c,jsonLd:o}=t,{description:m,keywords:d,canonical:h,robots:x}=i||{};return r(e,{children:[a("title",{children:l}),a("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),m&&a("meta",{name:"description",content:m}),d&&a("meta",{name:"keywords",content:d.join(",")}),x&&a("meta",{name:"robots",content:x.join(",")}),Nr(s),vr(c),h&&a("link",{rel:"canonical",href:h}),o&&a("script",{type:"application/ld+json",children:o}),n]})}));function Nr(e){return e?Object.entries(e).map((([e,t])=>a("meta",{property:`og:${e}`,content:t},e))):null}function vr(e){return e?Object.entries(e).map((([e,t])=>a("meta",{name:`twitter:${e}`,content:t},e))):null}function yr(e){const{mobile:t,...a}=e;return a}function wr(e){return e?.filter((e=>{return t=e?.type,(t||"")in mr;var t})).map(yr)}e.Blocks=mr,e.ContentPage=ur,e.ContentPageHead=gr,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))))))(),a=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await a.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ba,e.Icon=m,e.LikeAPI=function(e,t=""){async function a(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");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:a,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:a,name:r})),{token:a,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:n}=await a();try{const a=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:r})}),{likes:l}=await a.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:n,name:l}=await a();try{const a=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await a.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:n,name:l}=await a();try{const a=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await a.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=V,e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:a}=e;return{...e,blocks:wr(t),slots:a&&Object.keys(a).reduce(((e,t)=>({...e,[t]:{...a[t],blocks:wr(a[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=R,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,a)=>{t._jsx=e,t._jsxs=a||e};t.vue=e=>{t(((t,{children:a,dangerouslySetInnerHTML:r,...n}={})=>{const l=Object.assign({},n,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>a:a)}))};const a=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),n=e=>(e._tmpl||(e._tmpl=function(t,a){const{children:r,...n}=t||{},l=a?.slots?.default,i=r||l&&l();return e(Object.assign(n,i&&{children:i}),a)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-title-lg tracking-[-0.3px]",h2:"text-title",h3:"text-title-sm",h4:"text-title-xs",h5:"text-title-2xs tracking-[0.2px]",h6:"text-title-2xs tracking-[0.2px]"},s=n((e=>{const{className:t,headingType:r,title:n}=e;if(!r)return;return a(r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:n})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},o={none:"",primary:"text-primary-main"},m=n((({className:e="",name:t,alt:n=`Icon ${t}`,title:l=n,asSVG:i,color:s="primary",...m})=>{const d=`${c.CDN||""}icons/${t}.svg`;return i?r("svg",{className:`${o[s]} ${e}`,...m,"aria-hidden":"true",children:[l?a("title",{children:l}):null,n?a("desc",{children:n}):null,a("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):a("img",{className:e,src:d,alt:n,title:l,...m,"aria-hidden":"true"})})),d={left:"text-left",center:"text-center",right:"text-right"},h={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},x=n((({bgColorHeadline:e="transparent",align:t="left",className:n="",title:l,description:i})=>r("section",{className:`p-[50px] ${h[e].background} ${n}`,children:[l&&a(s,{headingType:"h2",className:`text-primary-text ${d[t]}`,title:l}),i&&a("p",{className:`font-normal text-base mt-4 ${d[t]}`,children:i})]}))),p=n((({className:e,iconClassName:t,textClassName:n,suffixClassName:l,doc:i,icon:s})=>{const{text:c,fileSize:o,...d}=i;return r("a",{className:e,role:"link",...d,children:[s?a(m,{className:t,name:s,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:n,children:[c,a("span",{className:l,children:d?.href&&u(b(d.href),o)})]}):null]})})),u=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),b=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},f=n((({className:e="",doc:t,icon:r})=>a(p,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6 text-primary-text",textClassName:"self-center",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:r}))),g=n((({className:e,documents:t,columnsMode:r="double",icon:n})=>t?.length?a("div",{className:e,role:"list",children:t.map(((e,t)=>a("div",{className:"double"===r?"basis-[calc(50%-20px)]":"",role:"listitem",children:a(f,{className:"group flex text-sm align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),N={left:"text-left",center:"text-center",right:"text-right"},v={double:"mb-8",single:"mb-[26px]"},y={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},w=n((({className:e="",title:t,subtitle:n,align:l,documents:i,icon:c="DocIcon",columnsMode:o="double"})=>r("section",{className:`font-sans text-primary-text p-12 bg-white ${e}`,children:[t?a(s,{headingType:"h2",className:`${n?"mb-2.5":v[o]} ${N[l??"center"]}`,title:t}):null,n?a("h3",{className:`text-base mt-0 font-normal ${v[o]} ${N[l??"center"]}`,children:n}):null,a(g,{className:y[o],columnsMode:o,documents:i,icon:c})]}))),k=n((({className:e="",image:{size:t,...n},imageClassName:l=""})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:`flex-none ${e}`,children:[n.sources?.length?n.sources.map((({src:e,format:t},r)=>a("source",{srcSet:e,type:$(t)},`${r}_${e}`))):null,a("img",{className:l,src:n.src,alt:n.alt||n.title,title:n.title,style:i,...t})]})}));function $(e){return e?`image/${String(e)}`:void 0}const C=n((({className:e="",title:t,image:n,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[a(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[n?.src&&a(k,{className:"mr-6",image:n}),l?.length?a("div",{className:"flex flex-col",children:l.map(S)}):null]})]})));function S(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&a(m,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&a("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&a("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const T=e=>e?.includes("//"),I=e=>(e||"").replace(/\/?\?.*/,""),D=e=>{if(!e||!T(e))return;const t=e,a=t.indexOf("//"),r=t.indexOf("/",a+"//".length);return-1!==r?t.substring(0,r):t};var R=Object.freeze({__proto__:null,isURL:T,withoutQuery:I,getOrigin:D});const L="/mobile",j=(e,t)=>{if(!e)return e;const a=D(t?.href);return a?e.replace(a,"")||"/":e},_=e=>e;function A({router:e,handlerDecorator:t=_},a){const r=((e,t)=>{if(!e)return e;const a=j(e,t)||"",r=t?.pathname.startsWith(L);return r&&!T(a)?`/mobile${a}`:a})(a.href,e);return{...a,href:r,ariaLabel:a.text,onClick:t((t=>{const n=r&&!T(r),l=!a.target||"_self"===a.target;n&&l&&(t.preventDefault(),e.push(r))}),a)}}const M=n((({text:e,href:t,target:r,onClick:n,className:l="",children:i})=>t?a("a",{className:`no-underline ${l}`,href:t,target:r,onClick:n,children:a("span",{className:l,children:e||i})}):a("span",{className:l,children:e||i})));function V(e){return t=>t.reduce(((t,a,r)=>t.length?t.concat({...e,key:r},a):[a]),[])}const P=n((e=>{const{text:t,aboveText:n,appendLeft:l}=e;return r("div",{className:B(e),children:[l||null,O(e)?r("div",{children:[a("div",{className:"text-m-2xs text-left",children:n}),a("div",{className:"text-m-button font-medium text-left",children:t})]}):null]})})),B=e=>{const{version:t,aboveText:a,rounded:r}=e;if("link"===t)return"";const n="px-8 gap-2 "+(a?"py-2":"py-3.5");return["flex items-center justify-center",O(e)?n:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:a})=>Boolean(e||t||!a),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},G="text-center font-sans select-none",Z=n((e=>{const{text:t,aboveText:r,appendLeft:n,children:l,disabled:i,rounded:s}=e,c=l??a(P,{text:t,aboveText:r,appendLeft:n,rounded:s});return a(i?U:E,{...e,children:c})})),E=n((({className:e,ariaLabel:t,version:r="none",rounded:n,href:l,target:i,children:s,onClick:c,...o})=>a("a",{className:`${G} inline-block cursor-pointer no-underline ${F[r]||""} ${n?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:c,"aria-label":t,role:l?"link":"button",...o,children:s}))),U=n((({className:e,children:t,ariaLabel:r,version:n="none",rounded:l})=>a("div",{role:"button","aria-disabled":"true","aria-label":r,tabIndex:"-1",className:`inline-block ${G} ${H[n]||""} ${l?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),W=n((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:n}=e,l=e.useRouter();return r?.length?a("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return a(Z,e?{appendLeft:a(m,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(A({router:l,handlerDecorator:n},e),t)))}):null}));const z=n((e=>{const{className:t="",description:r}=e;return a("div",{className:`font-normal text-base ${t}`,children:r})})),J={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},X={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},q=n((({className:e="",isDotted:t=!0,children:n,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&a("div",{className:Q(l)}),a("span",{className:`text-m-md ${J[l]}`,children:n})]}))),Q=e=>`rounded-full inline-block mr-3 mt-2 ${X[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,K=n((e=>{const{className:t="",itemClassName:r,isDotted:n,items:l,version:i}=e;return a("section",{className:`${t}`,role:"list",children:l?.length?l.map(((e,t)=>a(q,{className:r,isDotted:n,version:i,children:e},String(t)))):null})})),Y=n((({className:e="",title:t,children:n,buttons:l,image:i})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[a("div",{children:n}),l?.length?a("div",{children:l}):null]}),i]})]}))),ee={primary:"bg-main",secondary:"bg-white/30"},te={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};const re=n((({className:e="",context:t,title:n,headingType:l="h2",description:i,benefits:c,buttons:o,image:d,items:h,version:x="primary"})=>r("div",{className:`flex grow justify-between items-stretch ${e}`,children:[a("div",{className:"flex flex-col",children:r(Y,{context:t,title:n&&a(s,{headingType:l,title:n,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:o?.length?a(W,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:[i&&a(z,{className:"mt-4 max-w-[600px]",description:i}),c?.filter((e=>e.label))?.length?a("div",{className:"flex gap-6 mt-6",children:c.map(((e,t)=>function(e,t,n){return r("div",{className:"flex gap-4 items-center",children:[e.icon&&a(m,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${ee[n]}`,name:e.icon,width:"24",height:"24",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[a("div",{className:`font-medium text-xl m-0 ${te[n]}`,children:e.label}),e.description&&a("div",{className:`font-normal text-sm ${ae[n]}`,children:e.description})]})]},String(t))}(e,t,x)))}):null,h?.length?a(K,{className:"mt-5",items:h,itemClassName:"mb-[10px]",version:x}):null]})}),d?.src&&a(k,{className:"mt-auto",image:d})]}))),ne={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},le={primary:"text-secondary-text",secondary:"text-white/80"},ie=n((e=>{const{context:t,className:n,breadcrumbs:l,version:i="primary"}=e,s=t.useRouter(),{handlerDecorator:c}=t;return r("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${n||""} ${ne[i]}`,children:[l?.length?a("div",{className:"text-xs mb-6",children:V(a("span",{className:`mx-2 ${le[i]}`,children:"/"}))(l.map(((e,t)=>a(M,{...A({router:s,handlerDecorator:c},{className:le[i],...e})},String(t)))))}):null,a(re,{...e})]})})),se={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"}},ce=n((({title:e,description:t,blockVersion:n="primary",iconVersion:l,image:i,className:s})=>{const c=se[n];return r("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:["small"===l?oe(c.icon):null,"big"===l?me(i):null,r("div",{className:"py-0.5",children:[e&&a("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&a("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function oe(e){return a("div",{className:"pt-1.5 pl-1 pr-4",children:a("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function me(e){return e?.src?a(k,{className:"pt-0.5 pr-3",image:e}):null}const de=e=>{const t="col-span-",a=e.split(/\s+/).find((e=>e.startsWith(t)));return a?parseInt(a.substring(t.length),10):12};function he(e=""){const t=de(e);return t<=4?"h4":t<=8?"h3":"h2"}function xe(e=""){const t=de(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function pe(e=""){const t=de(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},be=n((e=>{const{context:t,title:n,description:l,items:i,children:c,buttons:o,image:m,className:d="",version:h="primary",role:x}=e;return a("section",{className:`overflow-hidden font-sans p-9 box-border ${d} ${ue[h]} ${pe(d)} ${xe(d)} `,role:x,children:r(Y,{context:t,title:n&&a(s,{headingType:he(d),title:n,className:`whitespace-pre-wrap max-w-[600px] ${n?"mb-3":""}\n ${"primary"===h?"text-primary-text":""}`}),buttons:o?.length?a(W,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,image:m?.src&&a(k,{className:"mt-auto ml-7",image:m}),children:[l&&a(z,{className:"mt-4 max-w-[600px]",description:l}),c,fe(i,h)]})})}));function fe(e,t){return e?.length?a(K,{items:e,version:t}):null}const ge={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ne=n((({context:e,className:t="",title:n,description:l,benefits:i,buttons:c,image:o,version:m="primary"})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${ge[m]} ${pe(t)} ${xe(t)} `,children:r(Y,{context:e,title:n&&a(s,{headingType:he(t),title:n,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?a(W,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:o?.src&&a(k,{className:"mt-auto ml-7",image:o}),children:[l&&a(z,{className:"mt-4 max-w-[600px]",description:l}),r("div",{className:"flex mt-5 mb-1",children:[i?.length?a("div",{className:"mr-8",children:i.map(ve)}):null,i?.length?a("div",{className:"pt-1",children:i.map(((e,t)=>function(e,t,r="primary"){return a("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,m)))}):null]})]})})));function ve(e,t){return a("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const ye=n((({className:e,viewBox:t,fill:r="none",width:n,height:l,paths:i,...s})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:n,height:l,children:i.map((({d:e,fill:t,...r},n)=>a("path",{d:e,fill:t||"currentColor",...s,...r},n)))}))),we=[{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"}],ke=n((({className:e,disabled:t,...r})=>a(Z,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...r,children:a(ye,{paths:we,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),$e={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Ce={normal:3,mini:4},Se={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Te={normal:380,mini:276},Ie={primary:"text-secondary-text",secondary:"text-white",gray:"text-secondary-text"},De={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},Re=n((({className:e="",isDotted:t=!0,text:n,children:l,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&a("div",{className:Le(i)}),a("span",{className:Ie[i],children:n||l})]}))),Le=e=>`rounded-full inline-block mr-3 mt-2 ${De[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,je=n((({title:e,description:t,image:n,items:l,button:i,version:s})=>{const c=function(e,t,a){return`font-medium text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n ${t||a?.length?"":"text-center"}\n `}(s,t,l);return r("div",{children:[r("div",{children:[n?.src?a("div",{className:"flex justify-center",children:a(k,{className:"mb-6",image:n})}):null,e?Ae(e,c):null,t?a("div",{className:"font-normal text-sm "+(e?"mt-2":""),children:t}):null,l?.length?Me(l,s):null]}),i?.text?_e(i):null]})}));function _e(e){return a(Z,{className:"mt-6 w-full",appendLeft:e.icon&&a(m,{name:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ae(e,t){return a("div",{className:`font-medium text-xl m-0 ${t}`,children:e})}function Me(e,t){return a("section",{className:"max-w-[308px] mt-2",role:"list",children:e.filter((e=>e?.text)).map(((e,r)=>function(e,t,r){return a(Re,{version:r??"primary",children:a("span",{className:"text-sm",children:e})},String(t))}(e.text,r,t)))})}const Ve=n((({context:e,title:t,description:n,cards:l=[],version:i="normal",activeCardIndex:c})=>r("div",{children:[a("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?a(s,{headingType:"h2",className:"text-center",title:t}):null,n?a("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:n}):null]}),a("div",{className:`flex ${l?.length<=Ce[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*Te[i]}px)`},role:"list",children:l?.map(((t,r)=>function({card:e,version:t},r){return a("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${Se[t]} ${$e[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:a(je,{...e})},String(r))}({card:t,version:i,context:e},r)))})]})));const Pe=n((({context:e,cards:t=[],className:n="",version:l="normal",...i})=>{const[s,c]=e.useState(0),o=t?.length>Ce[l],m=o&&t?.length-s>Ce[l],d=o&&s>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${n}`,children:[a(Ve,{context:e,cards:t,version:l,activeCardIndex:s,...i}),d&&a(ke,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(s-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),m&&a(ke,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),a("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),a("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),Be=n((e=>a(Pe,{...e,version:"normal"}))),Oe=n((e=>a(Pe,{...e,version:"mini"}))),Fe=n((({className:e="",documents:t})=>a("section",{className:`font-sans bg-white mt-[10px] ${e}`,children:a("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?He(t):null})}))),He=e=>e.map(((e,t)=>{const{text:r,...n}=e;return a("li",{className:"mb-4 list-none",children:a("a",{className:"hover:text-primary-main",role:"link",...n,children:r||null})},`list_item_${String(t)}`)})),Ge={Headline:x,LinkDocs:w,TextBlock:ce,PictureText:C,ProductBlock:ie,Tile:be,ProductTile:Ne,Gallery:Be,MiniGallery:Oe,LinkList:Fe},Ze=n((({blocks:e,columns:t=1,context:r})=>a("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 flex flex-wrap",children:e?.length?e.map(Ee(r,t)):null}))),Ee=(e,t)=>(r,n)=>{const l=r?.accordionBlockType;if(!l||!(l in Ge))return null;return a("div",{className:`mb-5 last:mb-0 pb-5 ${2===t?"w-1/2":""}`,children:a(Ge[l],{context:e,...r,className:"!p-0"})},`block_${n}`)},Ue=n((({label:e,blocks:t,columns:n,context:l})=>{const{hasContent:i,icon:s,handleToggle:c}=(({context:e,blocks:t})=>{const[a,r]=e.useState(!1),n=t?.length;return{isActive:a,hasContent:n,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!n)return;r(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[r("button",{className:"border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text\n "+(i?"group cursor-pointer":""),onClick:c,children:[a("span",{className:"text-xl pr-2.5 font-medium "+(i?"group-hover:text-primary-main":""),children:e}),i?a(m,{name:s,width:"24",height:"24",asSVG:!0}):null]}),i?a(Ze,{columns:n,blocks:t,context:l}):null]})})),We=n((({title:e,accordionItems:t,context:n,className:l})=>r("section",{className:`p-[50px] font-sans bg-white text-primary-text ${l||""}`,children:[e?a(s,{headingType:"h4",className:"mb-2.5",title:e}):null,t?.length?a("ul",{className:"list-none m-0 p-0",children:t.map(((e,t)=>a(Ue,{...e,context:n},`AccordionItem${t}`)))}):null]}))),ze=n((({className:e,title:t,benefits:n})=>r("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e||""}`,children:[t?a(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,n?.length?a("div",{className:"grid grid-cols-2 gap-8 mt-9",children:n.map(Je)}):null]}))),Je=(e,t)=>r("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e.icon&&a(m,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",name:e.icon,width:"70",height:"70"}),r("div",{children:[a("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&a("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),Xe="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",qe="border-main-stroke border-solid border",Qe="border-main-divider border border-t-0 border-x-0",Ke="w-[200px] mr-6",Ye=n((({children:e})=>a("div",{className:"self-start flex flex-col",role:"row",children:a("div",{className:"flex",children:e})}))),et={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},tt=n((({children:e,activeCardIndex:t,columnWidth:r,version:n="comparison"})=>a("div",{className:"flex flex-1 overflow-hidden",children:a("div",{className:et[n],style:{transform:`translateX(-${t*r}px)`},children:e})}))),at=n((({icon:e,image:t,title:n,link:l})=>r("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${qe} ${Xe}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&a(m,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&a(k,{className:"mb-[18px]",image:t}),n&&a(s,{headingType:"h4",className:"text-center text-white",title:n}),l?.text&&a("div",{className:"mt-auto w-full",children:a(Z,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:a("div",{className:"font-medium text-xs py-[11px]",children:l.text})})})]}))),rt=n((({colHeaders:e,activeCardIndex:t,router:n,handlerDecorator:l})=>r(Ye,{children:[a("div",{className:Ke,role:"columnheader",scope:"col"}),a(tt,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>a(at,{...e,link:e.link&&A({router:n,handlerDecorator:l},e.link)},String(t))))})]}))),nt=n((({cell:e,isFirstRow:t,isLastRow:r,isFillGradient:n})=>a("div",{className:`w-80 box-border flex flex-col ${qe} ${r?"border-t-0 rounded-b-md":"border-y-0"} ${n?Xe:""}`,role:"cell",children:a("div",{className:`mx-7 h-full ${Qe} ${n&&t?"border-t":""} ${r?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>lt(e,t,n)))})}))),lt=({label:e,description:t},n,l)=>r("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&a("h5",{className:"text-xl font-medium m-0 "+(l?"text-white":""),children:e}),t&&a("div",{className:"text-sm opacity-80 "+(l?"text-white":"text-secondary-text"),children:t})]},String(n)),it=n((({row:{header:e,data:t},activeCardIndex:n,isColoredFirstColumn:l,isFirstRow:i,isLastRow:s})=>r(Ye,{children:[e?.title?a("div",{className:`text-sm py-7 ${Qe} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?a(tt,{activeCardIndex:n,columnWidth:336,children:t.map(((e,t)=>a(nt,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:l&&0===t},String(t))))}):null]}))),st=n((({isScrollAvailable:e,onNextClick:t,onPrevClick:n,showNextButton:l,showPrevButton:i})=>e?a("div",{children:r("div",{className:"absolute top-7 right-7 z-10",children:[a(ke,{onClick:t,disabled:!l,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),a(ke,{className:"mt-4 rotate-180",onClick:n,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),ct=n((({rowData:e,activeCardIndex:t,isColoredFirstColumn:n,...l})=>r("div",{className:"relative",children:[e.map(((e,r,{length:l})=>a(it,{row:e,isFirstRow:0===r,isLastRow:r+1===l,activeCardIndex:t,isColoredFirstColumn:n},String(r)))),a(st,{...l})]}))),ot=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:a,setActiveCardIndex:r})=>{const n=e>t;return{onNextClick:()=>r(a+1),onPrevClick:()=>r(a-1),isScrollAvailable:n,showNextButton:n&&e-a>t,showPrevButton:Boolean(n&&a>0)}},mt=n((({context:e,columns:t,rowHeaders:n,isShowAllRow:l,visibleRowLength:i,isColoredFirstColumn:s})=>{const c=e.useRouter(),{handlerDecorator:o}=e,m=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],h=n?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,l?n.length:i),[x,p]=e.useState(0),u=ot({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:p}),{isScrollAvailable:b}=u;return r("div",{children:[r("div",{role:"table",children:[m?.length?a(rt,{colHeaders:m,activeCardIndex:x,router:c,handlerDecorator:o}):null,h?.length?a(ct,{rowData:h,activeCardIndex:x,isColoredFirstColumn:s,...u}):null]}),b?a("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),dt=n((({className:e,context:t,title:n,rowHeaders:l,columns:i,visibleRowLength:c=0,isColoredFirstColumn:o=!1})=>{const[m,d]=t.useState(!c);return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[a(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:n}),a(mt,{context:t,columns:i,rowHeaders:l,isShowAllRow:m,isColoredFirstColumn:o,visibleRowLength:c}),c?ht({isShowAllRow:m,onClick:()=>d(!m)}):null]})})),ht=({isShowAllRow:e,onClick:t})=>a("div",{className:"pr-[50px]",children:r("div",{className:"flex w-full",children:[a("div",{className:Ke}),a("button",{onClick:t,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:a("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),xt=n((({tabs:e,currentTabIndex:t,onTabClick:r})=>a("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(pt(t,r))}))),pt=(e,t)=>(n,l)=>{const i=e===l;return r("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 "+(i?"px-2 h-16 pt-4 pb-2 text-white bg-primary-main":"px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke"),role:"tab",onClick:()=>t(l),"aria-selected":String(i),children:[n?.icon?ut(n,i):null,r("div",{children:[n?.title?a("h3",{className:"font-medium m-0 text-base",children:n?.title}):null,n?.description?a("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:n?.description}):null]})]},String(l))},ut=(e,t)=>a("div",{className:"h-full mt-1",style:t?{filter:"invert(1)"}:null,children:a(m,{className:"w-5 h-5 mr-3",name:e?.icon||"CardIcon",asSVG:!t})});async function bt(e){const t=await fetch(e);return await t.json()}const ft=[{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"}],gt=n((({text:e,checked:t,onChange:n,className:l})=>a("div",{className:l,children:r("label",{className:"flex items-center cursor-pointer relative",children:[a("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=>{n(e.target.checked)},checked:t}),a(ye,{paths:ft,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?a("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),Nt=(e,t,a)=>Math.max(t,Math.min(e,a)),vt=3e4,yt=3e6,wt=Math.round(41.5);const kt=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),$t=n((({className:e,title:t,items:n=[],min:l=1,max:i=100,step:s=1,value:c=l,onChange:o})=>{const m=e=>{if(!o)return;const t=Number(e.replace(/\D/g,""));o(t)},d={backgroundSize:`${(100*(c-l)/(i-l)).toFixed(2)}% 100%`};return r("div",{className:e,children:[r("label",{className:"block relative",children:[t?a("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,a("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:kt(c),onChange:e=>m(e.target.value),onBlur:()=>{o&&(c<l&&o(l),c>i&&o(i))}}),a("div",{className:"absolute inset-x-0 top-[35px] px-4 leading-[18px]",children:a("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:i,step:s,value:c,onChange:e=>m(e.target.value),style:d})})]}),a("div",{className:"flex justify-between my-3",children:n.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:[" ",e," "]},String(t))))})]})}));function Ct(e){const{minMonths:t,maxMonths:r,monthsValue:n,defaultMonths:l,setMonthsValue:i}=e;return a($t,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:r,step:1,value:n||l,onChange:i})}function St(e,t){return r("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[a("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),a("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),r("div",{className:"text-lg mb-3",children:[kt(Math.round(e))," ₽"]}),a("div",{className:"text-sm opacity-60",children:"Ставка"}),r("div",{className:"text-lg",children:[t," %"]})]})}function Tt(e){const{calculatorParams:t,moneyValue:r,defaultSum:n,setMoneyValue:l}=e,i=t?.minSum||vt,s=t?.maxSum||yt;return a($t,{title:"Желаемая сумма кредита, ₽",items:[`От ${kt(i)} рублей`,`До ${kt(s)} рублей`],min:i,max:s,step:1e3,value:r||n,onChange:l})}const It=n((({context:e,directoryName:t})=>{const[n,l]=e.useState(void 0),[i,s]=e.useState(void 0),[c,o]=e.useState(!0),[m,d]=e.useState(!0),h=function(e,t){const{data:a}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),bt);return a||{}}(e.useAsyncData,t).rows,x=(e=>{const{tableRows:t,isAnnuity:a=!1}=e;return t&&t.find((e=>e.isAnnuity===a))||{}})({tableRows:h,isAnnuity:c}),p=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(x),u=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):wt)(x),b=x?.minMonths||1,f=x?.maxMonths||84,g=(e=>{const{calculatorParams:t,isInsurance:a}=e;return t?a?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:m}),N=(e=>{const{calculatorParams:t,paymentType:a,rate:r,sum:n,months:l}=e;if(!t)return 0;const i=Nt(n,t.minSum||vt,t.maxSum||yt);if("annuity"===a){const e=Number(r)/1200;return i*(e+e/(Math.pow(1+e,l)-1))}return i/l+i*(Number(r)/12)})({calculatorParams:x,paymentType:"annuity",rate:g,sum:n||p,months:i||u}),v=((e,t)=>{const a=Math.ceil((t-e)/12),r=Math.floor(e/12)+1,n=new Array(Math.min(a-1,5)).fill(0).map(((e,t)=>r+t)),l=a+r-1;return n.concat(l)})(b,f);function y(e){s(Nt(12*e,b,f))}return a("section",{className:"mt-7",children:r("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[r("div",{className:"flex justify-between",children:[r("div",{className:"mr-[42px]",children:[Tt({calculatorParams:x,moneyValue:n,defaultSum:p,setMoneyValue:l}),Ct({minMonths:b,maxMonths:f,monthsValue:i,defaultMonths:u,setMonthsValue:s}),a("div",{className:"flex mb-7",children:v.map(((e,t)=>function(e,t,n){return a("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:()=>n(e),children:r("span",{className:"font-semibold text-sm",children:[e," ",1===e?"год":e>4?"лет":"года"]})},String(t))}(e,t,y)))}),a(gt,{text:"Получаю пенсию на карту Россельхозбанка",checked:c,onChange:o}),a(gt,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:d})]}),St(N,g)]}),r("div",{className:"flex items-center",children:[a(Z,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),a("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),Dt=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:"CardIcon"},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:"ChartSquareIcon"},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:"DiscountShapeIcon"}],Rt=n((({className:e="",context:t,tabs:n=Dt})=>{const[l,i]=t.useState(0);return r("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,children:[a(s,{className:"w-full text-center mb-8",headingType:he(e),title:"Калькулятор"}),a(xt,{tabs:n,currentTabIndex:l,onTabClick:i}),a(It,{context:t,directoryName:n[l]?.directoryName})]})}));async function Lt(){try{const e=await fetch(jt);return await e.json()}catch(e){console.error(e)}}const jt="/api/v1/exchangerates.json",_t=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),At=e=>e?_t.format(e):"",Mt="text-left font-normal text-sm text-secondary-text",Vt={USD:"DollarIcon",EUR:"EuroIcon"},Pt=n((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[a("thead",{children:r("tr",{children:[a("th",{className:Mt,children:"Валюта"}),a("th",{className:`${Mt} pl-11`,children:"Купить"}),a("th",{className:`${Mt} pl-11`,children:"Продать"})]})}),a("tbody",{children:t.map((e=>Bt(e)))})]}))),Bt=e=>{const t=e?.currency?.currency;return r("tr",{children:[a("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?a(m,{name:Vt[t],width:"24",height:"24"}):null,a("span",{className:"ml-2",children:t})]})}),a("td",{className:"pt-4 pl-11",children:At(e.buyExchangeRate)}),a("td",{className:"pt-4 pl-11",children:At(e.saleExchangeRate)})]},t)},Ot=n((({className:e="",address:t,distance:n})=>r("div",{className:`flex text-sm ${e}`,children:[a(m,{className:"min-w-fit",name:"GpsIcon",width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-1.5",children:[t?a("p",{className:"m-0",children:t}):null,n?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),Ft=n((({className:e="",id:t,name:r,type:n="text",placeholder:l})=>a("input",{className:e,id:t,name:r||t,type:n,placeholder:l}))),Ht=n((({className:e="",id:t,name:r,children:n})=>a("select",{className:e,id:t,name:r||t,children:n}))),Gt=n((({className:e="",value:t,children:r})=>a("option",{className:e,value:`${t}`,children:r}))),Zt=n((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[Et("Хочу продать",e),Et("Получу",e),a(Z,{className:"box-border mt-3.5 py-3 h-12 w-44",version:"primary",href:"#",children:"Купить валюту"})]})));function Et(e,t){return r("div",{className:"flex items-center",children:[a(Ft,{className:"h-10 border pl-2.5 rounded-md text-m-sm w-full appearance-none",type:"number",placeholder:`${e}`}),t.length?a(Ht,{className:"h-9 -translate-x-16",children:t.map(((e,t)=>a(Gt,{value:e,children:e},String(t))))}):null]})}const Ut=["USD","EUR"],Wt=["RUB","USD","EUR"],zt=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],Jt={address:"Москва, ул.Ленина д.28",distance:"6км"},Xt=n((({className:e="",context:t,title:n="Курсы обмена валют"})=>{const l=function(e){const{data:t}=e(jt,Lt);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==Ut.indexOf(e?.currency?.currency||"")))||zt;return a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,children:a(Y,{context:t,title:a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap mb-3"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-20 pt-3",children:[l?a(Pt,{className:"mb-7",exchangeCurrencyItems:l}):null,a(Ot,{...Jt})]}),l?.length?a(Zt,{className:"grow",exchangeCurrencyItems:l,codes:Wt}):null]})})})})),qt=["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"],Qt={"bg-white":"text-primary-main",transparent:"text-white"},Kt={"bg-white":"text-black",transparent:"text-white"},Yt=n((({className:e,href:t,children:n,targetBlank:l,bgColor:i="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[a(ye,{className:`${Qt[i]} w-10`,viewBox:"0 0 40 45",paths:qt.map((e=>({d:e})))}),!s&&a("span",{className:`${Kt[i]} text-base font-medium ml-2.5`,children:n||"Россельхозбанк"})]}))),ea=n((({className:e,context:t})=>{const{term:n,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[a("div",{className:"w-[24px] h-[24px]",children:a(m,{name:"LoupeIcon",width:"24",height:"24"})}),!n&&a("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-base text-secondary-text",children:"Поиск по сайту"})]}),a("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:n,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),a(Z,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:a("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),ta=n((({className:e,items:t,hasButton:n,context:l})=>{const i=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(aa):null,n?a(Z,{version:"primary",className:"mt-0.5 mb-5",...A({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),aa=(e,t)=>{const{type:n,text:l,description:i}=e;return r("div",{className:"mb-3.5",children:[a("div",{children:ra(n,l)}),a("div",{className:"font-sans text-sm text-secondary-text",children:i})]},String(t))},ra=(e,t="")=>{switch(e){case"tel":return a("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${na(t)}`,children:t});case"email":return a("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return a("span",{children:t})}},na=e=>e.replaceAll(/\D/g,""),la=n((({links:e,className:t="",context:r})=>{const n=r.useRouter(),{handlerDecorator:l}=r;return a("div",{className:t,children:e?.length?a("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>a(ia,{index:t,...A({router:n,handlerDecorator:l},e)},String(t))))}):null})})),ia=n((({className:e="",index:t,text:r,href:n,target:l,onClick:i})=>a("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:n,target:l,onClick:i,children:r||`Документ ${t}`}))),sa=e=>t=>e?.href===t?.href,ca=(e,t)=>{return(r=e,n=t,(r||[]).map((e=>n?.find(sa(e))||e))).concat((a=e,(t||[]).filter((e=>!a?.find(sa(e))))));var a,r,n};function oa(e){const{data:t}=e(da(),ma);return t||{}}async function ma(){const e=await fetch(da());return await e.json()}function da(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const ha=n((({className:e,items:t,context:r})=>{const n=oa(r.useAsyncData),l=ca(n.topItems,t),i={router:r.useRouter(),handlerDecorator:r.handlerDecorator};return a("div",{className:`flex items-start justify-start gap-11 xl:gap-5 ${e||""}`,children:l?.map(((e,t)=>xa(e,t,i)))})})),xa=(e,t,{router:n,handlerDecorator:l})=>{const{text:i,href:s,items:c,target:o}=e;return r("div",{className:"flex flex-col gap-[14px]",children:[a("a",{className:"block font-sans font-medium text-base text-primary-text no-underline",href:s,target:o||"_self",children:i||`Раздел ${t}`}),c?.map(((e,t)=>a(pa,{...A({router:n,handlerDecorator:l},e),index:t},String(t))))]},String(t))},pa=n((({text:e,href:t,target:r,index:n})=>a("a",{className:"block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:r||"_self",children:e||`Раздел ${n}`}))),ua=[{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"}],ba=n((({href:e})=>{const{icon:t,width:r,height:n,label:l}=ua.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?a("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:m&&a(m,{name:t,width:r,height:n,asSVG:!0,className:"block",color:"none"})}):null})),fa=n((({className:e,media:t,context:r})=>{const n=r.useRouter(),{handlerDecorator:l}=r;return a("div",{className:`flex items-end justify-end gap-2 pt-[30px] pb-7 ${e||""}`,children:t?.map(((e,t)=>a(ba,{...A({router:n,handlerDecorator:l},e)},String(t))))})})),ga=n((({className:e,links:t,context:n})=>{const l=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`${e||""}`,children:[a("div",{className:"pt-5 pb-[5px]",children:a("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?a("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>a(Na,{index:t,...A({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),Na=n((({className:e,index:t,text:r,href:n,target:l,onClick:i})=>a("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:n,target:l,onClick:i,children:r||`Документ ${t}`}))),va=n((({className:e,documents:t,relatedEnterprises:n,contacts:l,socialMedia:i,topItems:s,context:c})=>r("footer",{className:`px-9 py-10 bg-white ${e||""}`,children:[r("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[a(Yt,{className:"w-[280px] xl:w-[220px]"}),a(ea,{context:c,className:"grow"})]}),r("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a(ta,{className:"w-[280px] shrink-0 overflow-hidden xl:w-[220px]",items:l,context:c,hasButton:!0}),a(ha,{className:"pt-[3px]",context:c,items:s})]}),a(fa,{media:i,context:c}),a(la,{links:n,context:c}),a(ga,{links:t,context:c})]}))),ya=(e,t,a=((e,t)=>t.startsWith(e)))=>a(I(e),(e=>(e||"").replace(L,""))(I(T(e)?t.href:t.pathname))),wa=e=>t=>ya(t.href,e),ka=e=>(t=[])=>{const a=t?.filter(wa(e));var r;return a?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(a):null},$a=e=>t=>t.items?.some(wa(e))||ya(t.href,e)||((e,t)=>D(e)===D(t.href))(t.href,e),Ca="absolute left-0 -bottom-3 w-full h-[2px]",Sa=n((({className:e,text:t,href:n,target:l,active:i,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:n,target:l,onClick:s,children:[a("span",{className:Ta(o,i),children:t||c}),i?a("div",{className:Ia(o,i)}):null]}))),Ta=(e,t)=>{let a="text-white";return"bg-white"===e&&(a=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${a} font-sans font-normal text-base`},Ia=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ca}`:Ca,Da=n((({className:e="",text:t,href:r,target:n,active:l,flat:i,onClick:s,children:c,ariaLabel:o,bgColor:m="bg-white"})=>a("a",{className:`${Ra(m,l,i)} ${e}`,href:r,target:n,onClick:s,rel:"noopener noreferrer","aria-label":o,children:a("span",{className:La(m,l,i),children:t||c})}))),Ra=(e,t,a)=>{let r="border-transparent";return t&&(r="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${r} inline-block border border-solid bg-transparent text-center no-underline ${a?"":"px-4 py-2"}`},La=(e,t,a)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":(a?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${r} font-sans font-normal text-sm`},ja=n((({className:e="",children:t,ariaLabel:r})=>a("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":r,children:t}))),_a={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Aa={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Ma={"bg-white":"GridIcon",transparent:"GridIconWhite"},Va=n((({context:e,className:t,defaultLocation:n="",bgColor:l="bg-white"})=>{const[i,s]=e.useGeolocation(n);return r("div",{className:`flex items-center ${t||""}`,children:[a(Da,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),a(Da,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),a(ja,{className:`mr-5 ${_a[l]}`,ariaLabel:"Поиск по сайту",children:a(m,{name:"LoupeIcon",className:"h-full",asSVG:!0,color:"none"})}),a(ja,{className:`mr-5 ${_a[l]}`,ariaLabel:"Профиль",children:a(m,{name:"ProfileIcon",className:"h-full",asSVG:!0,color:"none"})}),a(ja,{className:`${Aa[l]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:a(m,{name:Ma[l],className:"h-full",asSVG:!0,color:"none"})})]})})),Pa={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ba=n((({className:e,defaultLocation:t,bgColor:n="bg-white",context:l,topItems:i})=>{const s=l.useRouter(),c=oa(l.useAsyncData),{handlerDecorator:o}=l,m=ca(c.topItems,i),d=m.find($a(s)),h=d?.items,x=ka(s)(h),p=m.map(((e,t)=>a(Da,{active:e===d,...A({router:s,handlerDecorator:o},e),ariaLabel:e.text,bgColor:n},String(t)))),u=h?.map((e=>a(Sa,{className:"mr-8",active:e===x,...A({router:s,handlerDecorator:o},e),bgColor:n},e.href)));return a("header",{className:`pt-5 pb-8 px-20 ${n} ${e||""}`,children:r("div",{className:"container",children:[r("div",{className:"flex items-center",children:[a(Yt,{className:"mr-8",bgColor:n}),p,a(Va,{context:l,className:"ml-auto",defaultLocation:t,bgColor:n})]}),a("div",{className:`mt-5 h-[1px] ${Pa[n]}`}),a("nav",{className:"mt-5",children:u})]})})})),Oa=n((({className:e="",context:t,title:n="Мобильное приложение",qr:l,buttons:i=[]})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${pe(e)} ${xe(e)} `,children:a(Y,{context:t,title:n&&a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:i?.length?a(W,{context:t,buttons:i,className:"flex mt-9 gap-3"}):null,children:r("div",{className:"flex items-center",children:[l?.src&&l?.href&&a("a",{href:l.href,target:"_blank","aria-label":n,children:a("img",{src:l.src,alt:n,title:n,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),a("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),Fa=n((({className:e,text:t,onClick:r,href:n,target:l,isActive:i})=>a("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:r,href:n,target:l,children:t}))),Ha=n((({className:e,context:t,title:n,buttons:l})=>{const i=t.useRouter(),{handlerDecorator:s}=t,c=ka(i)(l);return r("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,children:[a("h2",{className:"font-medium text-xl m-0",children:n}),l?.length?a("div",{className:"flex rounded-md overflow-hidden bg-white",children:l.filter((({text:e})=>e)).map(((e,t)=>a(Fa,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...A({router:i,handlerDecorator:s},e)},String(t))))}):null]})})),Ga=n((({className:e,context:t,title:n,description:l="Блок в разработке..."})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${pe(e)} ${xe(e)} `,children:r(Y,{context:t,title:n?a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?a(z,{className:"mt-4 max-w-[600px]",description:l}):null,a("figure",{className:"m-0 min-w-[600px]",children:Za()})]})}))),Za=(e=3)=>Ua(100,e).map((e=>Math.floor(e))).map(Ea),Ea=(e=100,t)=>a("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ua=(e,t)=>[e].concat(t>0?Ua(e/1.618,t-1):[]),Wa=n((({className:e,context:t,duration:n=0,slides:l=[]})=>{const i=l.map((e=>e.nav)),s=l.map((e=>e.productBlock)),[c,o]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[a("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:s.map(((e,r)=>function(e,t,r){return a("section",{className:"flex grow-0 shrink-0 basis-full",role:"listitem",children:a("div",{className:"p-10 flex grow",children:a(re,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:r,...e})})},String(t))}(e,r,t)))}),a("div",{className:"flex",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:l,duration:i}){const s=t===n,c=s?"animate-slide":"",o=s?"text-primary-text":"text-secondary-text";return r("button",{type:"button",onClick:l,"aria-label":e?.title,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-[23px] grow basis-0",children:[r("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[a("div",{className:`text-sm font-medium pb-[3px] group-hover:text-primary-text ${o}`,children:e?.title}),a("div",{className:"text-xs text-secondary-text",children:e.desc})]}),a("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${c}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>o(t),duration:n})))})]})}));const za={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ja=n((({className:e="",context:t,title:n="Акции и спецпредложения",date:l,description:i,buttons:c=[],version:o="primary"})=>a("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${za[o]} ${pe(e)} ${xe(e)} `,children:a(Y,{context:t,title:n?a(s,{headingType:he(e),title:n,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:c?.length?a(W,{context:t,buttons:c,className:"flex mt-9 gap-3"}):null,children:r("div",{className:"mt-1.5",children:[l?a("div",{className:"text-sm mb-2",children:Xa(l)}):null,a("div",{className:"text-base",children:i})]})})})));function Xa(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const qa=n((({context:e,className:t="",title:n,description:l,items:i,image:c,version:o})=>a("section",{className:`border border-solid box-border rounded-md p-7 min-w-[515px] max-w-[515px] ${t}`,role:"listitem",children:r(Y,{context:e,title:n&&a(s,{headingType:"h4",title:n,className:"mb-4"}),image:c?.src&&a(k,{className:"mt-auto ml-7",image:c}),children:[l?a(z,{description:l}):null,i?.length?a(K,{items:i,version:o}):null]})}))),Qa="absolute top-0 bottom-0 w-[84px]",Ka=n((({context:e,recommendations:t=[],className:n="",title:l,version:i})=>{const[c,o]=e.useState(0),m="secondary"===i?"border-main-divider":"border-main-stroke";return r("section",{className:`relative font-sans p-[50px] overflow-hidden ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${n}`,children:[l?a(s,{headingType:"h3",className:"mb-8",title:l}):null,a("div",{className:"flex duration-1000 gap-4",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(Ya({context:e,version:i,className:m})):null}),er({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:o}),a("div",{className:`${Qa} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),a("div",{className:`${Qa} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Ya=({context:e,version:t,className:r})=>(n,l)=>a(qa,{context:e,...n,version:t,className:r},String(l)),er=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const l=e>2,i=l&&e-t>2;return r("div",{children:[l&&t>0&&a(ke,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-6",onClick:()=>n(t-1),ariaLabel:"Пролистать влево"}),i&&a(ke,{className:"absolute top-1/2 right-8 z-10 mt-6",onClick:()=>n(t+1),ariaLabel:"Пролистать вправо"})]})},tr=n((({className:e,title:t,showLines:n=!0,steps:l})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col items-center ${e||""}`,children:[a(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),l?.length?r("div",{className:"box-border py-0.5 mb-0.5 "+(t?"mt-9":""),children:[a("div",{className:"flex items-center px-[88px]",children:V(a("div",{className:"h-0.5 w-full bg-secondary-light "+(n?"":"opacity-0")}))(l.map(((e,t)=>ar(e,t))))}),a("div",{className:"flex justify-between gap-x-[101px]",children:l.map(rr)})]}):null]}))),ar=(e,t)=>a("div",{className:"flex flex-col items-center text-center relative",children:a("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&&a(m,{name:e.icon,width:"48",height:"48"})||a("span",{className:"font-medium text-title-sm text-secondary-text",children:t+1})})},String(t)),rr=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[e.label&&a("div",{className:"font-medium text-xl m-0 mt-4",children:e.label}),e.description&&a("div",{className:"font-normal text-sm text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]},String(t)),nr=n((({cell:e,isLastRow:t})=>a("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:a("div",{children:e.map(lr)})}))),lr=({label:e,description:t,list:n,image:l,buttons:i},s)=>r("div",{className:"first:pt-5 last:pb-5",children:[s>0&&a("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?a("div",{className:"text-xl font-medium m-0",children:e}):null,t?a("div",{className:"text-sm text-secondary-text",children:t}):null,n?.items?.length?a("div",{className:"flex flex-col justify-between items-start",children:a("div",{role:"list",children:n.items.map(((e,t)=>a(Re,{className:"text-sm",text:e,version:"gray",isDotted:n.isDotted??!0},String(t))))})}):null,l&&a(k,{image:l}),i?.length?i.map((({icon:e,...t},r)=>a(Z,{className:(r>0?"ml-3":"")+" w-12 h-12",appendLeft:e&&a(m,{name:e,width:"24px",height:"24px",asSVG:!0}),...t},String(r)))):null]},String(s)),ir=n((({row:{header:e,data:t},activeCardIndex:n,isLastRow:l})=>r(Ye,{children:[a("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:r("div",{className:"flex items-center text-primary-text",children:[e?.icon&&a(m,{className:"mr-[14px] max-w-6 max-h-6",name:e.icon,width:"24px",height:"24px",asSVG:!0}),e?.title]})}),t?.length?a(tt,{activeCardIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>a(nr,{cell:e,isLastRow:l},String(t))))}):null]}))),sr=n((({className:e,context:t,title:n,description:l,rowHeaders:i,columns:c})=>{const[o,m]=t.useState(0),d=cr(c),h=or(i,d),x=ot({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:o,setActiveCardIndex:m}),{isScrollAvailable:p}=x;return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[n?a(s,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:n}):null,l?a("div",{className:"mb-9 text-center text-m-base",children:l}):null,h?.length?r("div",{role:"table",children:[r("div",{className:"relative",children:[h.map(((e,t,{length:r})=>a(ir,{row:e,isLastRow:t+1===r,activeCardIndex:o},String(t)))),a(st,{...x})]}),p?a("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}):null]})})),cr=e=>e?.map((({data:e})=>e))||[],or=(e,t)=>e?.map(((e,a)=>({header:e,data:t.map((e=>e?.[a]||[{}]))}))),mr={Accordion:We,BenefitsBlock:ze,ComparisonTable:dt,CreditCalculator:Rt,ExchangeRateTile:Xt,Footer:va,Gallery:Be,Header:Ba,Headline:x,LinkDocs:w,MiniGallery:Oe,MobileAppTile:Oa,PictureText:C,ProductBlock:ie,ProductGallery:Wa,ProductTile:Ne,PromoTile:Ja,Recommendation:Ka,StepsBlock:tr,TariffsTable:sr,TextBlock:ce,Tile:be,Navigation:Ha,Placeholder:Ga},dr=n((({className:e,onClick:t,ariaLabel:r})=>a("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:hr()}))),hr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[a("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"}),a("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"})]})},xr=n((({className:e,context:t})=>{const n=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[a(dr,{onClick:n.like,ariaLabel:"Поставить отметку «лайк»"}),a(dr,{onClick:n.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),a("span",{className:"select-none",children:n.likeCount})]})})),pr=({blockClassName:e,block:t,render:a})=>a({blockClassName:e,block:t}),ur=n((({className:e,context:t,blocksRegistry:n,data:{style:l,blocks:i,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=pr})=>{const{header:d}=s;return r("section",{className:`relative ${fr(l)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?a("div",{className:`${fr(d?.style)}`,children:d.blocks.map(((e,a)=>br({block:e,blockDecorator:m,blocksRegistry:n,context:t},a)))}):null,i?.length?a("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,a)=>br({block:e,blockDecorator:m,blocksRegistry:n,context:t},a)))}):null,c&&a("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:a(xr,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function br({block:e,blockDecorator:t,blocksRegistry:r,context:n},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=r[i||"Placeholder"]||Ga;return t({blockClassName:fr(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return a(s,{className:e.blockClassName,version:t,context:n,...r},`${i}-${l}`)}},`block-${l}`)}function fr(e){return e?e.join(" "):""}const gr=n((({HeadComponent:e,data:t,children:n})=>{const{title:l,main:i,og:s,twitter:c,jsonLd:o}=t,{description:m,keywords:d,canonical:h,robots:x}=i||{};return r(e,{children:[a("title",{children:l}),a("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),m&&a("meta",{name:"description",content:m}),d&&a("meta",{name:"keywords",content:d.join(",")}),x&&a("meta",{name:"robots",content:x.join(",")}),Nr(s),vr(c),h&&a("link",{rel:"canonical",href:h}),o&&a("script",{type:"application/ld+json",children:o}),n]})}));function Nr(e){return e?Object.entries(e).map((([e,t])=>a("meta",{property:`og:${e}`,content:t},e))):null}function vr(e){return e?Object.entries(e).map((([e,t])=>a("meta",{name:`twitter:${e}`,content:t},e))):null}function yr(e){const{mobile:t,...a}=e;return a}function wr(e){return e?.filter((e=>{return t=e?.type,(t||"")in mr;var t})).map(yr)}e.Blocks=mr,e.ContentPage=ur,e.ContentPageHead=gr,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))))))(),a=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await a.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ba,e.Icon=m,e.LikeAPI=function(e,t=""){async function a(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");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:a,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:a,name:r})),{token:a,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:n}=await a();try{const a=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:r})}),{likes:l}=await a.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:n,name:l}=await a();try{const a=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await a.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:n,name:l}=await a();try{const a=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await a.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=V,e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:a}=e;return{...e,blocks:wr(t),slots:a&&Object.keys(a).reduce(((e,t)=>({...e,[t]:{...a[t],blocks:wr(a[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=R,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -8,11 +8,11 @@ const Contacts_1 = require("./Contacts");
8
8
  const HorizontalNavigation_1 = require("./HorizontalNavigation");
9
9
  const SocialMedia_1 = require("./SocialMedia");
10
10
  const TextInformation_1 = require("./TextInformation");
11
+ const useSitemap_1 = require("../../services/sitemap/useSitemap");
11
12
  const Button_1 = require("../../ui-kit/Button/Button");
12
13
  const Icon_1 = require("../../ui-kit/Icon/Icon");
13
14
  const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
14
15
  const getAccordionItems_1 = require("../../utils/getAccordionItems");
15
- const useSitemap_1 = require("../../services/sitemap/useSitemap");
16
16
  exports.Footer = (0, uni_jsx_1.JSX)(({ className = '', documents, relatedEnterprises, contacts, socialMedia, context, horizontalNavigationTitle, }) => {
17
17
  const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
18
18
  const dispositions = sitemap?.dispositions;
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sDAAmD;AACnD,kEAA+D;AAC/D,yCAAsC;AAEtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD,uDAAoD;AACpD,iDAA8C;AAC9C,gEAA6D;AAC7D,qEAAkE;AAClE,kEAA+D;AAIlD,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,OAAO,EACP,yBAAyB,GAC1B,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,CAAA;IAC1C,OAAO,CACL,oCAAQ,SAAS,EAAE,2BAA2B,SAAS,EAAE,aACvD,uBAAC,mBAAQ,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,SAAG,EACrF,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,WAAW,EACrB,cAAc,EAAE,IAAA,qCAAiB,EAAC,OAAO,CAAC,QAAQ,CAAC,GACnD,EACF,0CAAM,YAAY,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAAO,EACjD,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,8FAA6B,GACzC,EACF,uBAAC,qBAAS,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,GAAG,EAChD,uBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,EACtE,uBAAC,2CAAoB,IACnB,KAAK,EAAE,yBAAyB,EAChC,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,OAAO,GAChB,EACF,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAChD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,IAAiB,EAAE,CAAS,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,CACL,wBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAqB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,mBAAmB,aACjF,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EACjF,iCAAM,SAAS,EAAC,sCAAsC,YAAE,IAAI,GAAQ,KAF1C,UAAU,CAAC,EAAE,CAGhC,CACV,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sDAAmD;AACnD,kEAA+D;AAC/D,yCAAsC;AAEtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD,kEAA+D;AAC/D,uDAAoD;AACpD,iDAA8C;AAC9C,gEAA6D;AAC7D,qEAAkE;AAIrD,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,OAAO,EACP,yBAAyB,GAC1B,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,CAAC;IAC3C,OAAO,CACL,oCAAQ,SAAS,EAAE,2BAA2B,SAAS,EAAE,aACvD,uBAAC,mBAAQ,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,SAAG,EACrF,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,WAAW,EACrB,cAAc,EAAE,IAAA,qCAAiB,EAAC,OAAO,CAAC,QAAQ,CAAC,GACnD,EACF,0CAAM,YAAY,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAAO,EACjD,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,8FAA6B,GACzC,EACF,uBAAC,qBAAS,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,GAAG,EAChD,uBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,EACtE,uBAAC,2CAAoB,IACnB,KAAK,EAAE,yBAAyB,EAChC,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,OAAO,GAChB,EACF,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAChD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,IAAiB,EAAE,CAAS,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,CACL,wBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAqB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,mBAAmB,aACjF,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EACjF,iCAAM,SAAS,EAAC,sCAAsC,YAAE,IAAI,GAAQ,KAF1C,UAAU,CAAC,EAAE,CAGhC,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -5,6 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  const constants_1 = require("./constants");
7
7
  exports.Headline = (0, uni_jsx_1.JSX)(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description }) => {
8
- return ((0, jsx_runtime_1.jsxs)("section", { className: `p-[50px] ${constants_1.BACKGROUND_COLOR[bgColorHeadline]} ${className}`, children: [title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-primary-text ${constants_1.ALIGN_TEXT[align]}`, title: title })), description && ((0, jsx_runtime_1.jsx)("p", { className: `font-normal text-base mt-4 ${constants_1.ALIGN_TEXT[align]}`, children: description }))] }));
8
+ const STYLE_MAPS = constants_1.HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
9
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, children: [title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-primary-text ${constants_1.ALIGN_TEXT[align]}`, title: title })), description && ((0, jsx_runtime_1.jsx)("p", { className: `font-normal text-base mt-4 ${constants_1.ALIGN_TEXT[align]}`, children: description }))] }));
9
10
  });
10
11
  //# sourceMappingURL=Headline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AACvD,2CAA2D;AAK9C,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,eAAe,GAAG,aAAa,EAAE,KAAK,GAAG,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,qCAAS,SAAS,EAAE,YAAY,4BAAgB,CAAC,eAAe,CAAC,IAAI,SAAS,EAAE,aAC7E,KAAK,IAAI,CACR,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,qBAAqB,sBAAU,CAAC,KAAK,CAAC,EAAE,EACnD,KAAK,EAAE,KAAK,GACZ,CACH,EACA,WAAW,IAAI,CACd,8BAAG,SAAS,EAAE,8BAA8B,sBAAU,CAAC,KAAK,CAAC,EAAE,YAAG,WAAW,GAAK,CACnF,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AACvD,2CAAoE;AAKvD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,eAAe,GAAG,aAAa,EAAE,KAAK,GAAG,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;IAC1F,MAAM,UAAU,GAAG,qCAAyB,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,CACL,qCAAS,SAAS,EAAE,YAAY,UAAU,CAAC,UAAU,IAAI,SAAS,EAAE,aACjE,KAAK,IAAI,CACR,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,qBAAqB,sBAAU,CAAC,KAAK,CAAC,EAAE,EACnD,KAAK,EAAE,KAAK,GACZ,CACH,EACA,WAAW,IAAI,CACd,8BAAG,SAAS,EAAE,8BAA8B,sBAAU,CAAC,KAAK,CAAC,EAAE,YAAG,WAAW,GAAK,CACnF,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -6,6 +6,7 @@ const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  const Img_1 = require("../../ui-kit/Img/Img");
7
7
  const constants_1 = require("./constants");
8
8
  exports.Headline = (0, uni_jsx_1.JSX)(({ bgColorHeadline = 'transparent', className = '', title, description, image, align = 'left', }) => {
9
- return ((0, jsx_runtime_1.jsxs)("section", { className: `px-4 py-6 ${constants_1.BACKGROUND_COLOR[bgColorHeadline]} ${className}`, children: [title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-primary-text ${constants_1.ALIGN_TEXT[align]}`, title: title })), description && ((0, jsx_runtime_1.jsx)("p", { className: `font-normal text-m-md ${constants_1.ALIGN_TEXT[align]} ${title ? 'mt-2.5' : ''}`, children: description })), image?.src && ((0, jsx_runtime_1.jsx)("div", { className: "mt-5 mx-auto flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) }))] }));
9
+ const STYLE_MAPS = constants_1.HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
10
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `px-4 py-6 ${STYLE_MAPS.background} ${className}`, children: [title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `${STYLE_MAPS.text} ${constants_1.ALIGN_TEXT[align]}`, title: title })), description && ((0, jsx_runtime_1.jsx)("p", { className: `font-normal text-m-md ${STYLE_MAPS.description} ${constants_1.ALIGN_TEXT[align]} ${title ? 'mt-2.5' : ''}`, children: description })), image?.src && ((0, jsx_runtime_1.jsx)("div", { className: "mt-5 mx-auto flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) }))] }));
10
11
  });
11
12
  //# sourceMappingURL=Headline.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Headline.mobile.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AACvD,8CAA2C;AAC3C,2CAA2D;AAK9C,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,eAAe,GAAG,aAAa,EAC/B,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,OAAO,CACL,qCAAS,SAAS,EAAE,aAAa,4BAAgB,CAAC,eAAe,CAAC,IAAI,SAAS,EAAE,aAC9E,KAAK,IAAI,CACR,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,qBAAqB,sBAAU,CAAC,KAAK,CAAC,EAAE,EACnD,KAAK,EAAE,KAAK,GACZ,CACH,EACA,WAAW,IAAI,CACd,8BAAG,SAAS,EAAE,yBAAyB,sBAAU,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,YAChF,WAAW,GACV,CACL,EACA,KAAK,EAAE,GAAG,IAAI,CACb,gCAAK,SAAS,EAAC,kCAAkC,YAC/C,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,GACjB,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Headline.mobile.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AACvD,8CAA2C;AAC3C,2CAAoE;AAKvD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,eAAe,GAAG,aAAa,EAC/B,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,qCAAyB,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,CACL,qCAAS,SAAS,EAAE,aAAa,UAAU,CAAC,UAAU,IAAI,SAAS,EAAE,aAClE,KAAK,IAAI,CACR,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,GAAG,UAAU,CAAC,IAAI,IAAI,sBAAU,CAAC,KAAK,CAAC,EAAE,EACpD,KAAK,EAAE,KAAK,GACZ,CACH,EACA,WAAW,IAAI,CACd,8BACE,SAAS,EAAE,yBAAyB,UAAU,CAAC,WAAW,IAAI,sBAAU,CAAC,KAAK,CAAC,IAC7E,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EACrB,EAAE,YAED,WAAW,GACV,CACL,EACA,KAAK,EAAE,GAAG,IAAI,CACb,gCAAK,SAAS,EAAC,kCAAkC,YAC/C,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,GACjB,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,4 +1,10 @@
1
1
  import type { AlignType } from '../BaseTile/BaseTileProps';
2
2
  import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
3
3
  export declare const ALIGN_TEXT: Record<AlignType, string>;
4
- export declare const BACKGROUND_COLOR: Record<BlockVersionWithTransparent, string>;
4
+ declare type StyleType = {
5
+ background: string;
6
+ text: string;
7
+ description: string;
8
+ };
9
+ export declare const HEADLINE_BLOCK_STYLE_MAPS: Record<BlockVersionWithTransparent, StyleType>;
10
+ export {};
@@ -1,13 +1,25 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.BACKGROUND_COLOR = exports.ALIGN_TEXT = void 0;
2
+ exports.HEADLINE_BLOCK_STYLE_MAPS = exports.ALIGN_TEXT = void 0;
3
3
  exports.ALIGN_TEXT = {
4
4
  left: 'text-left',
5
5
  center: 'text-center',
6
6
  right: 'text-right',
7
7
  };
8
- exports.BACKGROUND_COLOR = {
9
- transparent: 'bg-transparent',
10
- primary: 'bg-white',
11
- secondary: 'bg-primary-main',
8
+ exports.HEADLINE_BLOCK_STYLE_MAPS = {
9
+ transparent: {
10
+ background: 'bg-transparent',
11
+ text: 'text-primary-text',
12
+ description: 'text-primary-text',
13
+ },
14
+ primary: {
15
+ background: 'bg-white',
16
+ text: 'text-primary-text',
17
+ description: 'text-primary-text',
18
+ },
19
+ secondary: {
20
+ background: 'bg-primary-main',
21
+ text: 'text-white',
22
+ description: 'text-white/80',
23
+ },
12
24
  };
13
25
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Headline/constants.ts"],"names":[],"mappings":";;AAGa,QAAA,UAAU,GAA8B;IACnD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEW,QAAA,gBAAgB,GAAgD;IAC3E,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,iBAAiB;CAC7B,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Headline/constants.ts"],"names":[],"mappings":";;AAGa,QAAA,UAAU,GAA8B;IACnD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAQW,QAAA,yBAAyB,GAAmD;IACvF,WAAW,EAAE;QACX,UAAU,EAAE,gBAAgB;QAC5B,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mBAAmB;KACjC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,eAAe;KAC7B;CACF,CAAC"}
@@ -4,21 +4,43 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  const Icon_1 = require("../../ui-kit/Icon/Icon");
7
- exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className, title, description, steps, size = 'normal' }) => {
8
- return ((0, jsx_runtime_1.jsxs)("section", { className: `box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${className || ''}`, children: [title && (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "text-center", title: title }), description && (0, jsx_runtime_1.jsx)("p", { className: `text-m-md text-center ${title && 'mt-2'}`, children: description }), steps?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map((step, i) => renderStepTitle({ step, size, i, length: steps.length })) }) })) : null] }));
7
+ const STEPS_BLOCK_STYLE_MAPS = {
8
+ primary: {
9
+ background: 'bg-white',
10
+ title: 'text-primary-text',
11
+ description: 'text-secondary-text',
12
+ iconBackground: 'bg-secondary-light',
13
+ iconConnector: 'bg-secondary-light',
14
+ },
15
+ secondary: {
16
+ background: 'bg-primary-main',
17
+ title: 'text-white',
18
+ description: 'text-white/80',
19
+ iconBackground: 'bg-white/30',
20
+ iconConnector: 'bg-white',
21
+ },
22
+ };
23
+ const styleMaps = (version) => STEPS_BLOCK_STYLE_MAPS[version];
24
+ exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className, title, description, steps, size = 'normal', version = 'primary' }) => {
25
+ const style = styleMaps(version);
26
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `box-border font-sans bg-white px-4 py-6 flex flex-col
27
+ ${style.background} ${style.title} ${className || ''}`, children: [title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${style.title}`, title: title })), description && ((0, jsx_runtime_1.jsx)("p", { className: `text-m-md text-center ${style.description} ${title && 'mt-2'}`, children: description })), steps?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map((step, i) => renderStepTitle({ step, size, i, length: steps.length, version: version })) }) })) : null] }));
9
28
  });
10
29
  const renderStepTitle = (params) => {
11
- const { step, size, i, length } = params;
30
+ const { step, size, i, length, version } = params;
12
31
  const isLastStep = length - 1 === i;
13
32
  const margin = size === 'normal' ? 'ml-[34px]' : 'ml-[24px]';
14
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { children: [renderIconArea(step, size, i), !isLastStep && (0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] bg-secondary-light ${margin}` })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-start relative", children: [step.label && ((0, jsx_runtime_1.jsx)("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })), step.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm text-secondary-text text-left ${step.label ? 'mt-1' : ''}`, children: step.description }))] })] }, String(i)) }, String(i)));
33
+ const style = styleMaps(version);
34
+ return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-start relative", children: [step.label && ((0, jsx_runtime_1.jsx)("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })), step.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${style.description} text-left ${step.label ? 'mt-1' : ''}`, children: step.description }))] })] }, String(i)) }, String(i)));
15
35
  };
16
- const renderIconArea = (step, size, i) => {
36
+ const renderIconArea = (params) => {
37
+ const { step, size, i, version } = params;
38
+ const style = styleMaps(version);
17
39
  const iconAreaSize = size === 'normal'
18
40
  ? 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]'
19
41
  : 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
20
42
  const iconSize = size === 'normal' ? '38' : '27';
21
43
  const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
22
- return ((0, jsx_runtime_1.jsx)("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: (0, jsx_runtime_1.jsx)("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: step.icon, width: iconSize, height: iconSize })) || i + 1 }) }));
44
+ return ((0, jsx_runtime_1.jsx)("div", { className: `${iconAreaSize} ${style.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: (0, jsx_runtime_1.jsx)("span", { className: `font-medium flex self-center ${style.title} ${iconTextSize}`, children: (step.icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: step.icon, width: iconSize, height: iconSize, asSVG: true })) || i + 1 }) }));
23
45
  };
24
46
  //# sourceMappingURL=StepsBlock.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AACvD,iDAA8C;AAKjC,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,CACL,qCACE,SAAS,EAAE,2EACT,SAAS,IAAI,EACf,EAAE,aAED,KAAK,IAAI,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,EAC3E,WAAW,IAAI,8BAAG,SAAS,EAAE,yBAAyB,KAAK,IAAI,MAAM,EAAE,YAAG,WAAW,GAAK,EAC1F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,+BAA+B,YAC7C,gCAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAC7E,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AASF,MAAM,eAAe,GAAG,CAAC,MAA6B,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEzC,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IAE7D,OAAO,CACL,0CACE,iCAAqB,SAAS,EAAC,oCAAoC,aACjE,4CACG,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAC7B,CAAC,UAAU,IAAI,gCAAK,SAAS,EAAE,6CAA6C,MAAM,EAAE,GAAI,IACrF,EACN,iCAAK,SAAS,EAAC,sCAAsC,aAClD,IAAI,CAAC,KAAK,IAAI,CACb,gCAAK,SAAS,EAAC,2CAA2C,YAAE,IAAI,CAAC,KAAK,GAAO,CAC9E,EACA,IAAI,CAAC,WAAW,IAAI,CACnB,gCACE,SAAS,EAAE,qDACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACxB,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,IACG,KAlBE,MAAM,CAAC,CAAC,CAAC,CAmBb,IApBE,MAAM,CAAC,CAAC,CAAC,CAqBb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAU,EAAE,IAAiB,EAAE,CAAS,EAAE,EAAE;IAClE,MAAM,YAAY,GAChB,IAAI,KAAK,QAAQ;QACf,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,6CAA6C,CAAC;IAEpD,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAE5E,OAAO,CACL,gCACE,SAAS,EAAE,GAAG,YAAY,+EAA+E,YAEzG,iCAAM,SAAS,EAAE,+CAA+C,YAAY,EAAE,YAC3E,CAAC,IAAI,CAAC,IAAI,IAAI,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAChF,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AACvD,iDAA8C;AAgB9C,MAAM,sBAAsB,GAAoC;IAC9D,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE,oBAAoB;QACpC,aAAa,EAAE,oBAAoB;KACpC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,eAAe;QAC5B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;KAC1B;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,OAAqB,EAAa,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAE3E,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,OAAO,CACL,qCACE,SAAS,EAAE;UACT,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,EAAE,EAAE,aAErD,KAAK,IAAI,CACR,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACpF,EACA,WAAW,IAAI,CACd,8BAAG,SAAS,EAAE,yBAAyB,KAAK,CAAC,WAAW,IAAI,KAAK,IAAI,MAAM,EAAE,YAC1E,WAAW,GACV,CACL,EACA,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,+BAA+B,YAC7C,gCAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACrB,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAC3E,GACG,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAUF,MAAM,eAAe,GAAG,CAAC,MAA6B,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAClD,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IAC7D,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,CACL,0CACE,iCAAqB,SAAS,EAAC,oCAAoC,aACjE,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,cAAc,CAAC,MAAM,CAAC,EACtB,CAAC,UAAU,IAAI,CACd,gCAAK,SAAS,EAAE,0BAA0B,KAAK,CAAC,aAAa,IAAI,MAAM,EAAE,GAAI,CAC9E,IACG,EACN,iCAAK,SAAS,EAAC,sCAAsC,aAClD,IAAI,CAAC,KAAK,IAAI,CACb,gCAAK,SAAS,EAAC,2CAA2C,YAAE,IAAI,CAAC,KAAK,GAAO,CAC9E,EACA,IAAI,CAAC,WAAW,IAAI,CACnB,gCACE,SAAS,EAAE,uBAAuB,KAAK,CAAC,WAAW,cACjD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACxB,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,IACG,KApBE,MAAM,CAAC,CAAC,CAAC,CAqBb,IAtBE,MAAM,CAAC,CAAC,CAAC,CAuBb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,MAA6B,EAAE,EAAE;IACvD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,YAAY,GAChB,IAAI,KAAK,QAAQ;QACf,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,6CAA6C,CAAC;IAEpD,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAE5E,OAAO,CACL,gCACE,SAAS,EAAE,GAAG,YAAY,IAAI,KAAK,CAAC,cAAc,4DAA4D,YAE9G,iCAAM,SAAS,EAAE,gCAAgC,KAAK,CAAC,KAAK,IAAI,YAAY,EAAE,YAC3E,CAAC,IAAI,CAAC,IAAI,IAAI,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GACtF,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { IconName } from '../../ui-kit/Icon/IconProps';
2
2
  import type { SizeVersion } from '../../model/SizeVersion';
3
+ import type { BlockVersion } from '../../model/BlockVersion';
3
4
  /**
4
5
  * @title Шаг
5
6
  */
@@ -27,4 +28,5 @@ export interface StepsBlockContent {
27
28
  */
28
29
  steps?: Step[];
29
30
  size?: SizeVersion;
31
+ version?: BlockVersion;
30
32
  }