@redneckz/wildless-cms-uni-blocks 0.3.69 → 0.3.70

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 (126) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +84 -12
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/DoneIcon.svg +1 -0
  5. package/dist/components/BlockContent.d.ts +3 -1
  6. package/dist/components/Blocks.d.ts +1 -0
  7. package/dist/components/Blocks.js +2 -0
  8. package/dist/components/Blocks.js.map +1 -1
  9. package/dist/components/Insurance/Insurance.js +4 -6
  10. package/dist/components/Insurance/Insurance.js.map +1 -1
  11. package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  12. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  13. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
  14. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  15. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  16. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  17. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  18. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  19. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +51 -0
  20. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  21. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  22. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  23. package/dist/icons/IconName.d.ts +4 -2
  24. package/dist/icons/IconName.js +2 -0
  25. package/dist/icons/IconName.js.map +1 -1
  26. package/dist/model/Insurance.d.ts +6 -0
  27. package/dist/model/Insurance.js +2 -0
  28. package/dist/model/Insurance.js.map +1 -0
  29. package/lib/common.css +1 -1
  30. package/lib/components/BlockContent.d.ts +3 -1
  31. package/lib/components/Blocks.d.ts +1 -0
  32. package/lib/components/Blocks.js +2 -0
  33. package/lib/components/Blocks.js.map +1 -1
  34. package/lib/components/Insurance/Insurance.js +4 -6
  35. package/lib/components/Insurance/Insurance.js.map +1 -1
  36. package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  37. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  38. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +4 -0
  39. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
  40. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  41. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  42. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  43. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  44. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  45. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +49 -0
  46. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  47. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  48. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  49. package/lib/icons/IconName.d.ts +4 -2
  50. package/lib/icons/IconName.js +2 -0
  51. package/lib/icons/IconName.js.map +1 -1
  52. package/lib/model/Insurance.d.ts +6 -0
  53. package/lib/model/Insurance.js +2 -0
  54. package/lib/model/Insurance.js.map +1 -0
  55. package/mobile/bundle/bundle.umd.js +2 -0
  56. package/mobile/bundle/bundle.umd.min.js +1 -1
  57. package/mobile/dist/components/BlockContent.d.ts +3 -1
  58. package/mobile/dist/components/Insurance/Insurance.js +4 -6
  59. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  60. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  61. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  62. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
  63. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  64. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  65. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  66. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  67. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  68. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +51 -0
  69. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  70. package/mobile/dist/icons/IconName.d.ts +4 -2
  71. package/mobile/dist/icons/IconName.js +2 -0
  72. package/mobile/dist/icons/IconName.js.map +1 -1
  73. package/mobile/dist/model/Insurance.d.ts +6 -0
  74. package/mobile/dist/model/Insurance.js +2 -0
  75. package/mobile/dist/model/Insurance.js.map +1 -0
  76. package/mobile/lib/components/BlockContent.d.ts +3 -1
  77. package/mobile/lib/components/Insurance/Insurance.js +4 -6
  78. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  79. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  80. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  81. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
  82. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  83. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  84. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  85. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  86. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  87. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +49 -0
  88. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  89. package/mobile/lib/icons/IconName.d.ts +4 -2
  90. package/mobile/lib/icons/IconName.js +2 -0
  91. package/mobile/lib/icons/IconName.js.map +1 -1
  92. package/mobile/lib/model/Insurance.d.ts +6 -0
  93. package/mobile/lib/model/Insurance.js +2 -0
  94. package/mobile/lib/model/Insurance.js.map +1 -0
  95. package/mobile/src/components/BlockContent.ts +5 -1
  96. package/mobile/src/components/ContentPage/ContentPage.page.json +50 -1
  97. package/mobile/src/components/Insurance/Insurance.example.json +21 -0
  98. package/mobile/src/components/Insurance/Insurance.tsx +10 -9
  99. package/mobile/src/components/Insurance/InsuranceContent.ts +9 -11
  100. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
  101. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
  102. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
  103. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +157 -0
  104. package/mobile/src/icons/DoneIcon.svg +4 -0
  105. package/mobile/src/icons/IconName.ts +4 -4
  106. package/mobile/src/model/Insurance.ts +6 -0
  107. package/package.json +2 -2
  108. package/src/components/BlockContent.ts +5 -1
  109. package/src/components/Blocks.ts +2 -0
  110. package/src/components/ContentPage/ContentPage.page.json +50 -1
  111. package/src/components/Insurance/Insurance.example.json +21 -0
  112. package/src/components/Insurance/Insurance.fixture.tsx +5 -4
  113. package/src/components/Insurance/Insurance.tsx +10 -9
  114. package/src/components/Insurance/InsuranceContent.ts +9 -11
  115. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
  116. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +52 -0
  117. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
  118. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
  119. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +157 -0
  120. package/src/components/StepsBlock/StepsBlock.fixture.tsx +3 -3
  121. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  122. package/src/icons/DoneIcon.svg +4 -0
  123. package/src/icons/IconName.ts +4 -1
  124. package/src/model/Insurance.ts +6 -0
  125. package/mobile/src/components/Insurance/Insuranse.example.json +0 -36
  126. package/src/components/Insurance/Insuranse.example.json +0 -36
@@ -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,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:a,...l}={})=>{const r=Object.assign({},l,a?{innerHTML:a.__html}:{});return e(t,r,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),a=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const r="likesToken";const i={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title-lg",h3:"text-title",h4:"text-title-sm",h5:"text-title-xs",h6:"text-title-2xs tracking-[0.2px]"},s=l((e=>{const{className:t="",headingType:a,title:l,as:r}=e;if(!a)return;return n(r||a,{className:`font-sans m-0 ${i[a]} ${t}`,children:l})}));var o,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(o||(o={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));const m=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},d={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:r=`Иконка ${c[l]||l}`,title:i=r,iconVersion:s="normal",asSVG:o,...h})=>{const u=`${m.CDN||""}icons/${l}.svg`;return o?a("svg",{className:e,...h,"aria-hidden":"true",children:[i?n("title",{children:i}):null,r?n("desc",{children:r}):null,n("use",{className:`${d[s]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:r,title:i,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const x=l((({className:e="",image:t,imageClassName:a="",...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?n(h,{className:e,imageClassName:a,iconVersion:u(t),name:r,...l}):null:n(p,{className:e,imageClassName:a,image:t})})),p=l((({className:e="",image:t,imageClassName:l=""})=>t?a("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t},a)=>n("source",{srcSet:e,type:g(t)},`${a}_${e}`))):null,b(t,l)]}):null)),b=(e,t="")=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",r=e.alt||e.title;return n("img",{src:e.src,className:t,alt:r,title:l,style:a,...e.size})};function g(e){return e?`image/${String(e)}`:void 0}const f={left:"text-left",center:"text-center",right:"text-right"},N={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"}},v=l((({bgColorHeadline:e="transparent",align:t="left",className:l="",title:r,description:i,anchor:o=null})=>{const c=N[e];return a("section",{className:`p-[50px] ${c.background} ${l}`,id:o,children:[r?n(s,{headingType:"h2",className:`text-primary-text ${c.text} ${f[t]}`,title:r}):null,i?n("p",{className:`font-normal text-base mt-4 ${c.text} ${f[t]}`,children:i}):null]})})),y=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:r,doc:i,icon:s})=>{const{text:o,fileSize:c,...m}=i;return a("a",{className:e,role:"link",...m,children:[s?n(x,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?a("span",{className:l,children:[o,n("span",{className:r,children:m?.href&&w(I(m.href),c)})]}):null]})})),w=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),I=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},k=l((({className:e="",doc:t,icon:a})=>n(y,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:a}))),C=l((({className:e,documents:t,columnsMode:a="double",icon:l})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===a?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(k,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:l})},String(t))))}):null)),$={left:"text-left",center:"text-center",right:"text-right"},S={double:"mb-8",single:"mb-[26px]"},T={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},M=l((({className:e="",title:t,subtitle:l,align:r,documents:i,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:m=null})=>a("section",{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,id:m,children:[t?n(s,{headingType:"h2",className:`${l?"mb-2.5":S[c]} ${$[r??"center"]}`,title:t}):null,l?n("h3",{className:`text-base mt-0 font-normal ${S[c]} ${$[r??"center"]}`,children:l}):null,n(C,{className:T[c],columnsMode:c,documents:i,icon:o})]}))),D={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},A=l((({className:e="",title:t,image:l,benefits:r,version:i="primary",directionRight:o=!1,anchor:c=null})=>a("section",{className:`relative font-sans p-14 ${D[i]} ${e}`,id:c,children:[n(s,{headingType:"h2",className:"text-center",title:t}),a("div",{className:"flex justify-center mt-9",children:[l?.src&&n(x,{className:o?"order-2 ml-6":"mr-6",image:l}),r?.length?n("div",{className:"flex flex-col",children:r.map(((e,t)=>function(e,t,l){return a("div",{className:"flex flex-row mb-8",children:[e.icon?n(x,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,a("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-xl m-0 "+("primary"===l?"text-primary-text":""),children:e.label}),e.description&&n("div",{className:"font-normal text-sm "+("primary"===l?"text-secondary-text":""),children:e.description})]})]},String(t))}(e,t,i)))}):null]})]})));const P=e=>e?.includes("//"),R=e=>(e||"").replace(/\/?\?.*/,""),L=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},V=e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var B=Object.freeze({__proto__:null,isURL:P,withoutQuery:R,getOrigin:L,getHash:V});const j="/mobile",_=(e,t)=>{if(!e)return e;const n=L(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function E({router:e,handlerDecorator:t=G},n){const a=((e,t)=>{if(!e)return e;const n=_(e,t)||"",a=t?.pathname.startsWith(j);return a&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!P(a),r=!n.target||"_self"===n.target;l&&r&&(t.preventDefault(),e.push(a))}),n)}}const O=l((({text:e,href:t,target:a,onClick:l,className:r="",children:i})=>t?n("a",{className:`no-underline ${r}`,href:t,target:a,onClick:l,children:n("span",{className:r,children:e||i})}):n("span",{className:r,children:e||i})));function W(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const F=l((e=>{const{text:t,aboveText:l,appendLeft:r,appendRight:i}=e;return a("div",{className:U(e),children:[r||null,H(e)?a("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-button text-left",children:t})]}):null,i||null]})})),U=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const l="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",H(e)?l:"h-12 w-12",a?"rounded-full":""].join(" ")},H=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Z={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},q="text-center font-sans select-none",J=l((e=>{const{text:t,aboveText:a,appendLeft:l,appendRight:r,children:i,disabled:s,rounded:o,...c}=e,m=i??n(F,{text:t,aboveText:a,appendLeft:l,appendRight:r,rounded:o});return n(s?K:X,{rounded:o,...c,children:m})})),X=l((({className:e="",ariaLabel:t,version:a="none",rounded:l,href:r,target:i,children:s,onClick:o,...c})=>n("a",{className:`${q} inline-block cursor-pointer no-underline ${Z[a]||""} ${l?"rounded-full":"rounded-md"} ${e}`,href:r,target:i,onClick:o,"aria-label":t,role:r?"link":"button",...c,children:s}))),K=l((({className:e,children:t,ariaLabel:a,version:l="none",rounded:r})=>n("div",{role:"button","aria-disabled":"true","aria-label":a,tabIndex:"-1",className:`inline-block ${q} ${z[l]||""} ${r?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),Q=l((({context:e,className:t="",buttons:a})=>{const{handlerDecorator:l}=e,r=e.useRouter();return a?.length?n("div",{className:t,children:a.map(((e,t)=>function({icon:e,...t},a){if(!t?.text)return;return n(J,e?{appendLeft:n(x,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(a))}(E({router:r,handlerDecorator:l},e),t)))}):null}));const Y=l((e=>{const{className:t="",description:a}=e;return n("div",{className:`font-normal text-base ${t}`,children:a})})),ee={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},te={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ne=l((({className:e="",isDotted:t=!0,children:l,version:r="primary"})=>a("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ae(r)}):null,n("span",{children:l})]}))),ae=e=>`${ee[e]} ${te[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,le={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},re=l((e=>{const{className:t="",itemClassName:a,isDotted:l,items:r,version:i="primary"}=e;return n("section",{className:`${le[i]} ${t}`,role:"list",children:r?.length?r.map(((e,t)=>n(ne,{className:a,isDotted:l,version:i,children:e},String(t)))):null})})),ie=l((({className:e="",title:t,children:l,buttons:r,image:i,anchor:s=null})=>a("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:s,children:[t,a("div",{className:"flex grow w-full justify-between",children:[a("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),r?n("div",{children:r}):null]}),i]})]}))),se={primary:"text-primary-text",secondary:"text-white"},oe={primary:"text-secondary-text",secondary:"text-white"};function ce(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${n}`}const me=l((({className:e="",context:t,title:l,headingType:r="h2",description:i,benefits:s,benefitsVersion:o="normal",buttons:c,image:m,items:d,version:h="primary",isDotted:u=!0,textBlockClassName:p=""})=>{const b="secondary"===h?"text-white":"text-primary-text";return a("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${p}`,children:a(ie,{context:t,title:de(l,r),buttons:he(t,c),children:[i?n(Y,{className:`mt-4 max-w-[600px] text-md font-light ${b}`,description:i}):null,s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function({benefit:e,version:t="primary",benefitsVersion:l="normal"},r){const i="white"===l||"secondary"===t;return a("div",{className:"flex gap-4 items-center",children:[e.icon?n(x,{className:ce(t,l),image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,a("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]",children:[n("div",{className:`text-xl m-0 ${se[t]}`,children:e.label}),e.description&&n("div",{className:`font-light text-m-md ${oe[t]}`,children:e.description})]})]},String(r))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,d?.length?n(re,{className:"mt-5 text-title-2xs font-light",items:d,itemClassName:"mb-[7px]",version:h,isDotted:u}):null]})}),m?.src&&n(x,{className:"mt-[-50px]",image:m})]})})),de=(e,t)=>e?n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,he=(e,t)=>t?.length?n(Q,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function ue(e,t,l){const r="primary"===t?"white":"black",i=e?.icon||{icon:"ArrowLeftIcon"};return a("div",{className:`flex items-center ${l}`,children:[n(J,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:e?.text,href:e?.href,children:n(x,{className:"w-4 h-4",image:{...i,iconVersion:r},asSVG:!0})}),e?.text?n("span",{className:"text-m-md font-light",children:e.text}):null]})}const xe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe={primary:"text-secondary-text",secondary:"text-white/80"},be=l((e=>{const{context:t,className:l="",breadcrumbs:r,backwardButton:i,version:s="primary",anchor:o=null,...c}=e,m=t.useRouter(),{handlerDecorator:d}=t;return a("section",{className:`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${xe[s]} ${l}`,id:o,children:[i?.text?ue(i,s,"mb-10 -mt-2.5"):null,r?.length?n("div",{className:"text-xs mb-6",children:W(n("span",{className:`mx-2 ${pe[s]}`,children:"/"}))(r.map(((e,t)=>n(O,{...E({router:m,handlerDecorator:d},{className:pe[s],...e})},String(t)))))}):null,n(me,{context:t,version:s,...c})]})})),ge={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"}},fe=l((({title:e,description:t,blockVersion:l="primary",iconVersion:r,image:i,className:s,anchor:o=null})=>{const c=ge[l];return a("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===r?Ne(c.icon):null,"big"===r?ve(i):null,a("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}):null,t?n("div",{className:`text-sm ${c.description}`,children:t}):null]})]})}));function Ne(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ve(e){return e?.src?n(x,{className:"pt-0.5 pr-3",image:e}):null}const ye=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function we(e=""){const t=ye(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ie(e=""){const t=ye(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ke={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ce=l((e=>{const{context:t,title:l,headingType:r="h3",description:i,items:o,children:c,buttons:m,image:d,className:h="",version:u="primary",role:p,anchor:b=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${h} ${ke[u]} ${Ie(h)} ${we(h)} `,role:p,id:b,children:a(ie,{context:t,title:l?n(s,{headingType:r,as:"h3",title:l,className:`whitespace-pre-wrap max-w-[600px] ${l?"mb-3":""}\n ${"primary"===u?"text-primary-text":""}`}):null,buttons:m?.length?n(Q,{context:t,buttons:m.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-9 gap-3"}):null,image:d?.src&&n(x,{className:"mt-auto ml-7",image:d}),children:[i?n(Y,{className:"max-w-[600px] text-title-new-sm font-light",description:i}):null,c,$e(o,u)]})})}));function $e(e,t){return e?.length?n(re,{items:e,itemClassName:"text-title-2xs font-light mt-2",version:"primary"===t?"tile":"tile-white"}):null}const Se={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Te=l((({context:e,className:t="",title:l,headingType:r="h3",description:i,additionalDescription:o,benefits:c,buttons:m,image:d,version:h="primary",anchor:u=null})=>n("section",{className:`bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${t} ${Se[h]} ${Ie(t)} ${we(t)} `,id:u,children:a(ie,{context:e,title:l?n(s,{headingType:r,as:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:m?.length?n(Q,{context:e,buttons:m,className:"flex mt-9 gap-3"}):null,image:d?.src&&n(x,{className:"mt-auto ml-7",image:d}),children:[i?n(Y,{className:"mt-4 max-w-[600px]",description:i}):null,Me(c,h),o?Ae(o,h):null]})})));function Me(e=[],t){return a("div",{className:"flex mt-5 mb-1",children:[e.length?n("div",{className:"mr-8",children:e.map(De)}):null,e.length?n("div",{className:"pt-1",children:e.map(((e,a)=>function(e,t,a="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[a]}`,children:e.description},String(t))}(e,a,t)))}):null]})}function De(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}function Ae(e,t="primary"){return n("div",{className:`text-sm mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Pe=l((({className:e,disabled:t,...a})=>n(J,{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,...a,children:n(x,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},width:"16",height:"16",asSVG:!0})}))),Re={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Le={normal:3,mini:4},Ve={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Be={normal:380,mini:276},je=l((({title:e,description:t,image:l,items:r,button:i,version:s,isDotted:o=!0})=>{const c=function(e){return`text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return a("div",{className:"h-full flex flex-col justify-between text-center",children:[a("div",{children:[l?.src?n("div",{className:"flex justify-center",children:n(x,{className:"mb-6",image:l})}):null,e?Ge(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,r?.length?Ee(r,s,o):null]}),i?.text?_e(i):null]})}));function _e(e){return n(J,{className:"mt-6 w-full",appendLeft:e.icon&&n(x,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ge(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function Ee(e,t="primary",a){return n(re,{className:"max-w-[308px] mt-2 text-sm "+("primary"===t?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:a,version:t})}const Oe=l((({context:e,title:t,description:l,cards:r=[],version:i="normal",activeCardIndex:o})=>a("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),a("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,l?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:l}):null]}),n("div",{className:`flex ${r?.length<=Le[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*Be[i]}px)`},role:"list",children:r?.map(((t,a)=>function({card:e,version:t},a){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Ve[t]} ${Re[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(je,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const We=l((({context:e,cards:t=[],className:l="",version:r="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),m=t?.length>Le[r],d=m&&t?.length-o>Le[r],h=m&&o>0;return a("section",{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${l}`,id:i,children:[n(Oe,{context:e,cards:t,version:r,activeCardIndex:o,...s}),h?n(Pe,{className:"absolute top-1/2 left-8 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,d?n(Pe,{className:"absolute top-1/2 right-8 z-10 mt-[25px] rotate-180",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null,n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),Fe=l((e=>n(We,{...e,version:"normal"}))),Ue=l((e=>n(We,{...e,version:"mini"}))),He=l((({className:e="",documents:t,anchor:a=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:a,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ze(t):null})}))),Ze=e=>e.map(((e,t)=>{const{text:a,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:a||null})},`list_item_${String(t)}`)})),ze={Headline:v,LinkDocs:M,TextBlock:fe,PictureText:A,ProductBlock:be,Tile:Ce,ProductTile:Te,Gallery:Fe,MiniGallery:Ue,LinkList:He},qe=({blocks:e,context:t,className:n,columns:a})=>e?.length?e.map(Je({context:t,className:n,columns:a})):null,Je=({context:e,columns:t,className:a})=>(l,r)=>{const i=l?.blockListType;if(!i||!(i in ze))return null;return n("div",{className:`${a} ${2===t?"w-1/2":""}`,children:n(ze[i],{context:e,...l,className:"!p-0"})},`block_${r}`)},Xe=l((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:qe({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Ke=l((({label:e,isExpanded:t,blocks:l,context:r})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,l]=e.useState(n),r=t?.length;return{isActive:a,hasContent:r,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!r)return;l(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:r,blocks:l,initialState:t});return a("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[a("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl pr-2.5 font-medium",children:e}),s?n(x,{image:o,className:"text-primary-main",width:"24",height:"24",asSVG:!0}):null]}),s?n(Xe,{isExpanded:i,blocks:l,context:r}):null]})})),Qe={left:"text-left",center:"text-center",right:"text-right"},Ye=l((({title:e,description:t,accordionItems:l,context:r,className:i="",anchor:o=null,accordionAlignTitle:c="center"})=>a("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i}`,id:o,children:[e?n(s,{headingType:"h4",className:`mb-2.5 ${Qe[c]}`,title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Ke,{...e,context:r},`AccordionItem${t}`)))}):null]}))),et=l((({className:e="",title:t,benefits:l,anchor:r=null})=>a("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e}`,id:r,children:[t?n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?n("div",{className:"grid grid-cols-2 gap-8 mt-9",children:l.map(tt)}):null]}))),tt=(e,t)=>a("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e?.icon?n(x,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",image:e.icon,width:"70",height:"70"}):null,a("div",{children:[e?.label?n("h3",{className:"font-medium text-xl m-0",children:e.label}):null,e?.description?n("div",{className:"font-normal text-sm mt-2",children:e.description}):null]})]},String(t)),nt=l((e=>{const{className:t="",title:l,description:r,bonusItems:i,anchor:o=null}=e;return n("section",{className:`font-sans bg-white p-[50px] pb-9 ${t}`,id:o,children:a("div",{className:"container",children:[l?n(s,{headingType:"h3",className:"text-center",title:l}):null,r?n("div",{className:"text-md font-light text-center mt-[10px]",children:r}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:a("div",{className:"flex justify-between w-full",children:[a("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.name}),n("div",{className:"text-md font-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?a("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})})),at=l((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),lt="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",rt="border-main-stroke border-solid border",it="border-main-divider border border-t-0 border-x-0",st="w-[200px] mr-6",ot={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ct=l((({children:e,activeCardIndex:t,columnWidth:a,version:l="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:ot[l],style:{transform:`translateX(-${t*a}px)`},children:e})}))),mt=l((({icon:e,image:t,title:l,link:r})=>a("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${rt} ${lt}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(x,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(x,{className:"mb-[18px]",image:t}),l?n(s,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,r?.text&&n("div",{className:"mt-auto w-full",children:n(J,{href:r.href,target:r.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:r.text})})})]}))),dt=l((({colHeaders:e,activeCardIndex:t,router:l,handlerDecorator:r})=>a(at,{children:[n("div",{className:st,role:"columnheader",scope:"col"}),n(ct,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(mt,{...e,link:e.link&&E({router:l,handlerDecorator:r},e.link)},String(t))))})]}))),ht=l((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:l})=>n("div",{className:`w-80 box-border flex flex-col ${rt} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${l?lt:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${it} ${l&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ut(e,t,l)))})}))),ut=({label:e,description:t},l,r)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:"text-xl font-medium m-0 "+(r?"text-white":""),children:e}):null,t?n("div",{className:"text-sm opacity-80 "+(r?"text-white":"text-secondary-text"),children:t}):null]},String(l)),xt=l((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:r,isFirstRow:i,isLastRow:s})=>a(at,{children:[e?.title?n("div",{className:`text-sm py-7 ${it} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?n(ct,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>n(ht,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:r&&0===t},String(t))))}):null]}))),pt=l((({isScrollAvailable:e,onNextClick:t,onPrevClick:l,showNextButton:r,showPrevButton:i})=>e?n("div",{children:a("div",{className:"absolute top-7 right-7 z-10",children:[n(Pe,{className:"mt-4 rotate-180",onClick:t,disabled:!r,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n(Pe,{className:"mt-4",onClick:l,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),bt=l((({rowData:e,activeCardIndex:t,isColoredFirstColumn:l,...r})=>a("div",{className:"relative",children:[e.map(((e,a,{length:r})=>n(xt,{row:e,isFirstRow:0===a,isLastRow:a+1===r,activeCardIndex:t,isColoredFirstColumn:l},String(a)))),n(pt,{...r})]}))),gt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{onNextClick:()=>a(n+1),onPrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},ft=l((({context:e,columns:t,rowHeaders:l,isShowAllRow:r,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,m=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],h=l?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,r?l.length:i),[u,x]=e.useState(0),p=gt({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:u,setActiveCardIndex:x}),{isScrollAvailable:b}=p;return a("div",{children:[a("div",{role:"table",children:[m?.length?n(dt,{colHeaders:m,activeCardIndex:u,router:o,handlerDecorator:c}):null,h?.length?n(bt,{rowData:h,activeCardIndex:u,isColoredFirstColumn:s,...p}):null]}),b?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Nt=l((({className:e,context:t,title:l,rowHeaders:r,columns:i,visibleRowLength:o=0,isColoredFirstColumn:c=!1,anchor:m=null})=>{const[d,h]=t.useState(!o);return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:m,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:l}),n(ft,{context:t,columns:i,rowHeaders:r,isShowAllRow:d,isColoredFirstColumn:c,visibleRowLength:o}),o?vt({isShowAllRow:d,onClick:()=>h(!d)}):null]})})),vt=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:st}),n("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:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})});function yt(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),wt);return n||{}}async function wt(e){const t=await fetch(e);return await t.json()}const It=l((({className:e,viewBox:t,fill:a="none",width:l,height:r,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:a,width:l,height:r,children:i.map((({d:e,fill:t,...a},l)=>n("path",{d:e,fill:t||"currentColor",...s,...a},l)))}))),kt=[{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"}],Ct=l((({text:e,checked:t,onChange:l,className:r})=>n("div",{className:r,children:a("label",{className:"flex items-center cursor-pointer relative",children:[n("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=>{l(e.target.checked)},checked:t}),n(It,{paths:kt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-m-base cursor-pointer",children:e}):null]})}))),$t=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),St=l((({title:e,value:t,postfix:l="",prefix:r,className:i=""})=>a("div",{className:`mb-5 ${i}`,children:[e?n("div",{className:"text-base font-light",children:e}):null,t?a("div",{className:"text-title font-normal",children:[r," ",$t(Math.round(t))," ",l]}):null]}))),Tt=3e4,Mt=3e6,Dt=Math.round(41.5),At=l((({className:e,title:t,items:l=[],min:r=1,max:i=100,step:s=1,value:o=r,onChange:c})=>{const m=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},d={backgroundSize:`${(100*(o-r)/(i-r)).toFixed(2)}% 100%`};return a("div",{className:e,children:[a("label",{className:"block relative",children:[t?n("span",{className:"text-base text-secondary-text pl-4",children:t}):null,n("input",{className:"m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text",value:$t(o),onChange:e=>m(e.target.value),onBlur:()=>{c&&(o<r&&c(r),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:r,max:i,step:s,value:o,onChange:e=>m(e.target.value),style:d})})]}),n("div",{className:"flex justify-between my-3",children:l.map(((e,t)=>n("span",{className:"text-sm leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})}));function Pt(e){const{title:t,className:a="",calculatorParams:l,moneyValue:r,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=l?.minSum||Tt,m=l?.maxSum||Mt,d=[`От ${$t(c)} ₽`,`До ${$t(m)} ₽`];return n(At,{className:a,title:t,items:o?d:[],min:c,max:m,step:1e3,value:r||i,onChange:s})}const Rt=10.2,Lt=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||Rt:t?.rateWithoutInsurance||Rt:Rt},Vt=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},Bt=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,jt=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):Dt,_t=(e,t,n)=>Math.max(t,Math.min(e,n));function Gt(e){const{title:t,minMonths:a,maxMonths:l,monthsValue:r,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(At,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(l)}`],min:a,max:l,step:1,value:r||i,onChange:s})}function Et(e,t){return t?.length?n(Q,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function Ot({rate:e,title:t,sup:l,className:r=""}){const i=String(e).replace(".",",");return a("div",{children:[n("div",{className:"text-sm font-light ml-3",children:t}),a("div",{className:"flex justify-start",children:[n("span",{className:`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${r}`,children:i}),l?n("span",{className:"calc-rate-text text-[65px] leading-[75px]",children:l}):""]})]})}const Wt=l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,m]=e.useState(!1),[d,h]=e.useState(!1),[u,x]=e.useState(!1),p=yt(e.useAsyncData,"directoryName").rows,b=Vt({tableRows:p,isAnnuity:c}),g=Bt(b),f=jt(b),N=b?.minMonths||1,v=b?.maxMonths||84,y=Lt({calculatorParams:b,isInsurance:u}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=_t(l,t.minSum||Tt,t.maxSum||Mt);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:b,paymentType:"annuity",rate:y,sum:r||g,months:s||f});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({title:"Сумма кредита, ₽",calculatorParams:b,moneyValue:r,defaultSum:g,setMoneyValue:i}),Gt({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(Ct,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:m}),n(Ct,{className:"mt-3",text:"Работаю в бюджетной организации",checked:d,onChange:h}),n(Ct,{className:"mt-3",text:"Комплексная страховая защита",checked:u,onChange:x})]})]}),n("div",{children:y?Ot({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n(St,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,Et(e,l)]})]})}));function Ft(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Tt,s=t?.maxSum||Mt;return n(At,{title:"Стоимость недвижимости, ₽ ",items:[`От ${$t(i)} ₽`,`До ${$t(s)} ₽`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Ut(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Tt,s=t?.maxSum||Mt;return n(At,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${$t(i)} рублей`,`До ${$t(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Ht({credit:e,period:t,taxRefund:l}){return a("div",{children:[n(St,{title:"Сумма кредита",value:e,postfix:"₽"}),n(St,{title:"Срок",value:t,postfix:"лет"}),n(St,{title:"Налоговый вычет",value:l,postfix:"₽"})]})}const Zt={CreditCalculatorForm:Wt,MortgageCalculatorForm:l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,m]=e.useState(!1),[d,h]=e.useState(!1),u=yt(e.useAsyncData,"directoryName").rows,x=Vt({tableRows:u,isAnnuity:c}),p=Bt(x),b=jt(x),g=x?.minMonths||1,f=x?.maxMonths||84,N=Lt({calculatorParams:x,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Ft({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Ut({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Gt({title:"Срок ипотеки, месяцев",minMonths:g,maxMonths:f,monthsValue:s,defaultMonths:b,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(Ct,{text:"Страхование жизни",checked:c,onChange:m}),n(Ct,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:d,onChange:h})]})]}),a("div",{children:[n("div",{children:N?Ot({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n(St,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:Ht({credit:3892e3,period:15,taxRefund:65e4})}),Et(e,l)]})]})})),DepositCalculatorForm:l((({context:e,className:t="",buttons:l,rate:r,minSum:i,maxSum:s,minMonths:o,maxMonths:c})=>{const[m,d]=e.useState(void 0),[h,u]=e.useState(void 0),x=yt(e.useAsyncData,"directoryName").rows,p=Vt({tableRows:x,isAnnuity:!1}),b=Bt(p),g=jt(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:m,defaultSum:b,setMoneyValue:d}),Gt({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:g,setMonthsValue:u})]}),n("div",{children:r?Ot({rate:r,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n(St,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n(St,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),Et(e,l)]})]})})),BonusCalculatorForm:l((({context:e,className:t="",buttons:l,bonus:r,minSumTrip:i,maxSumTrip:s,minSumOther:o,maxSumOther:c})=>{const[m,d]=e.useState(void 0),[h,u]=e.useState(void 0),x={minSum:i,maxSum:s},p={minSum:o,maxSum:c},b=r||2528;return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:x,moneyValue:m,defaultSum:Bt(x),setMoneyValue:d,isShowItems:!1}),Pt({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:Bt(p),setMoneyValue:u,isShowItems:!1})]}),n("div",{children:b?Ot({rate:b,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n(St,{title:"Баллов за год",value:948841}),Et(e,l)]})]})}))},zt=({context:e,className:t})=>(a,l)=>{const r=a?.calcType;if(!r||!(r in Zt))return null;return n("section",{className:`box-border relative flex shrink-0 basis-full ${t}`,role:"listitem",children:n("div",{className:"box-border p-9 w-full",children:n(Zt[r],{context:e,...a,className:"flex justify-between"})})},String(l))},qt="absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full",Jt=l((({className:e="",context:t,calcTabs:l=[],anchor:r=null})=>{const i=l.map((e=>e.nav||{})),s=l.map((({calculatorBlock:e})=>e||{})),[o,c]=t.useState(0),[m,d]=t.useState(0),h=l?.length>3&&l?.length>m+3,u=m>0;return a("section",{id:r,className:`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${e}`,children:[a("div",{children:[i.length>1?Xt({tabsShift:m,tabsNav:i,activeSlideIndex:o,setActiveSlideIndex:c}):null,u?n(Pe,{className:`${qt} left-3 top-3`,onClick:()=>d(m-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,h?n(Pe,{className:`${qt} right-3 top-3 rotate-180`,onClick:()=>d(m+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null]}),n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:s?.length?s.map(zt({context:t,className:e})):null})]})}));function Xt({tabsShift:e,tabsNav:t,activeSlideIndex:l,setActiveSlideIndex:r}){return a("div",{children:[n("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000",children:n("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:l,onClick:r}){const i=t===l,s=i?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",o=i?"text-md-new mb-1.5":"text-base mb-[3px]",c=i?"text-base text-white":"text-m-md",m=i?"":"text-primary-main";return a("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative border border-main-stroke cursor-pointer text-left border-b-0 flex\n ${s}`,children:[n(x,{className:`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${m}`,image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}),a("div",{className:"border-0",children:[n("div",{className:`font-medium ${o}`,children:e?.title}),n("div",{className:`text-secondary-text ${c}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:l,onClick:()=>r(t)})))})}),n("div",{className:"w-full h-2 bg-primary-main"})]})}const Kt=l((({tabs:e,currentTabIndex:t,onTabClick:a})=>n("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(Qt(t,a))}))),Qt=(e,t)=>(l,r)=>{const i=e===r;return a("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content "+(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(r),"aria-selected":String(i),children:[l?.icon?Yt(l,i):null,a("div",{children:[l?.title?n("h3",{className:"font-medium m-0 text-base",children:l?.title}):null,l?.description?n("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:l?.description}):null]})]},String(r))},Yt=(e,t)=>n("div",{className:"h-full mt-1",children:n(x,{className:"w-5 h-5 mr-3 "+(t?"invert":""),image:e?.icon||"CardIcon",asSVG:!t})});function en(e=""){const t=ye(e);return t<=4?"h4":t<=8?"h3":"h2"}const tn=3e4,nn=3e6,an=Math.round(41.5),ln=(rn=[[e=>1===e,"год"],[e=>e<=4,"года"],[()=>!0,"лет"]],e=>{const[,t]=rn.find((([t])=>t(e)))||[];return t});var rn;function sn(e){const{minMonths:t,maxMonths:a,monthsValue:l,defaultMonths:r,setMonthsValue:i}=e;return n(At,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:a,step:1,value:l||r,onChange:i})}function on(e,t){return a("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[n("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),n("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),a("div",{className:"text-lg mb-3",children:[$t(Math.round(e))," ₽"]}),n("div",{className:"text-sm opacity-60",children:"Ставка"}),a("div",{className:"text-lg",children:[t," %"]})]})}function cn(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||tn,s=t?.maxSum||nn;return n(At,{title:"Желаемая сумма кредита, ₽",items:[`От ${$t(i)} рублей`,`До ${$t(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}const mn=l((({context:e,directoryName:t})=>{const[l,r]=e.useState(void 0),[i,s]=e.useState(void 0),[o,c]=e.useState(!0),[m,d]=e.useState(!0),h=(e=>{const{tableRows:t,isAnnuity:n=!1}=e;return t&&t.find((e=>e.isAnnuity===n))||{}})({tableRows:yt(e.useAsyncData,t).rows,isAnnuity:o}),u=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(h),x=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):an)(h),p=h?.minMonths||1,b=h?.maxMonths||84,g=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:h,isInsurance:m}),f=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=_t(l,t.minSum||tn,t.maxSum||nn);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:h,paymentType:"annuity",rate:g,sum:l||u,months:i||x}),N=((e,t)=>{const n=Math.ceil((t-e)/12),a=Math.floor(e/12)+1,l=new Array(Math.min(n-1,5)).fill(0).map(((e,t)=>a+t)),r=n+a-1;return l.concat(r)})(p,b);function v(e){s(_t(12*e,p,b))}return n("section",{className:"mt-7",children:a("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[a("div",{className:"flex justify-between",children:[a("div",{className:"mr-[42px]",children:[cn({calculatorParams:h,moneyValue:l,defaultSum:u,setMoneyValue:r}),sn({minMonths:p,maxMonths:b,monthsValue:i,defaultMonths:x,setMonthsValue:s}),n("div",{className:"flex mb-7",children:N.map(((e,t)=>function(e,t,l){const r=ln(e);return n("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:()=>l(e),children:a("span",{className:"font-semibold text-sm",children:[e," ",r]})},String(t))}(e,t,v)))}),n(Ct,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:c}),n(Ct,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:d})]}),on(f,g)]}),a("div",{className:"flex items-center",children:[n(J,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),n("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),dn=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:{icon:"CardIcon"}},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:{icon:"ChartSquareIcon"}},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:{icon:"DiscountShapeIcon"}}],hn=l((({className:e="",context:t,tabs:l=dn,anchor:r=null})=>{const[i,o]=t.useState(0);return a("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,id:r,children:[n(s,{className:"w-full text-center mb-8",headingType:en(e),title:"Калькулятор"}),n(Kt,{tabs:l,currentTabIndex:i,onTabClick:o}),n(mn,{context:t,directoryName:l[i]?.directoryName})]})}));async function un(){try{const e=await fetch(xn);return await e.json()}catch(e){console.error(e)}}const xn="/api/v1/exchangerates.json",pn=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),bn=e=>e?pn.format(e):"",gn="font-light text-left font-normal text-sm text-secondary-text",fn={USD:"DollarIcon",EUR:"EuroIcon"},Nn=l((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:gn,children:"Валюта"}),n("th",{className:`${gn} pl-11`,children:"Купить"}),n("th",{className:`${gn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>vn(e)))})]}))),vn=e=>{const t=e?.currency?.currency;return a("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:a("div",{className:"flex items-center",children:[t?n(x,{image:{icon:fn[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:bn(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:bn(e.saleExchangeRate)})]},t)},yn=l((({className:e="",address:t,distance:l})=>a("div",{className:`flex text-sm ${e}`,children:[n(x,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),a("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?a("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),wn=l((({className:e="",id:t,name:a,type:l="text",placeholder:r})=>n("input",{className:e,id:t,name:a||t,type:l,placeholder:r}))),In=l((({className:e="",id:t,name:a,children:l})=>n("select",{className:e,id:t,name:a||t,children:l}))),kn=l((({className:e="",value:t,selected:a,children:l})=>n("option",{className:e,value:`${t}`,selected:a,children:l}))),Cn=l((({codes:e,className:t=""})=>a("div",{className:`grid gap-3.5 ${t}`,children:[$n("Хочу продать",e),$n("Получу",e,"USD"),n(J,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function $n(e,t,l){return a("div",{className:"relative flex items-center",children:[n(wn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(In,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(kn,{value:e,selected:e===l,children:e},String(t))))}):null]})}const Sn=["USD","EUR"],Tn=["RUB","USD","EUR"],Mn=[{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:"Американский доллар"}}],Dn={address:"Москва, ул.Ленина д.28",distance:"6км"},An=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:r=null})=>{const i=function(e){const{data:t}=e(xn,un);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==Sn.indexOf(e?.currency?.currency||"")))||Mn;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:r,children:n(ie,{context:t,title:n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n(Nn,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(yn,{...Dn})]}),i?.length?n(Cn,{className:"grow",exchangeCurrencyItems:i,codes:Tn}):null]})})})})),Pn=["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"],Rn={"bg-white":"text-primary-main",transparent:"text-white"},Ln={"bg-white":"text-black",transparent:"text-white"},Vn=l((({className:e="",href:t,logo:l,children:r=l?.title,targetBlank:i,bgColor:s="bg-white",hideTitle:o})=>a("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[l?.image?.src?n(x,{image:l.image,className:Rn[s],width:"40",height:"45",asSVG:!0}):n(It,{className:`${Rn[s]} w-10`,viewBox:"0 0 40 45",paths:Pn.map((e=>({d:e})))}),o?null:Bn(r,s,l?.title)]}))),Bn=(e,t,a)=>n("span",{className:`${Ln[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),jn=l((({className:e,context:t})=>{const{term:l,setTerm:r}=t.useSearch();return a("form",{className:`relative ${e||""}`,children:[a("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[24px] h-[24px]",children:n(x,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input"}),n(J,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),_n=l((({className:e="",items:t,hasButton:l,context:r})=>{const i=r.useRouter(),{handlerDecorator:s}=r;return a("div",{className:e,children:[t?.length?t.map(Gn):null,l?n(J,{version:"primary",className:"mb-6 w-full",...E({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Gn=(e,t)=>{const{type:l,text:r,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:En(l,r)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},En=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${On(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},On=e=>e.replaceAll(/\D/g,""),Wn=l((({links:e,className:t="",context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return n("div",{className:t,children:e?.length?n("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)=>n(Fn,{index:t,...E({router:l,handlerDecorator:r},e)},String(t))))}):null})})),Fn=l((({className:e="",index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),Un=e=>t=>e?.href===t?.href,Hn=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(Un(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Un(e))))));var n,a,l};function Zn(e){const{data:t}=e(qn(),zn);return t||{}}async function zn(){const e=await fetch(qn());return await e.json()}function qn(){return`/wcms-resources/${m.SITEMAP||"sitemap"}.json`}const Jn=l((({className:e="",items:t,context:a})=>{const l=Zn(a.useAsyncData),r=Hn(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:r?.map(((e,t)=>Xn(e,t,i)))})})),Xn=(e,t,{router:l,handlerDecorator:r})=>{const{text:i,href:s,items:o,target:c}=e;return a("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(Kn,{...E({router:l,handlerDecorator:r},e),index:t},String(t))))]},String(t))},Kn=l((({text:e,href:t,target:a,index:l})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:a||"_self",children:e||`Раздел ${l}`}))),Qn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Yn=l((({href:e,version:t="primary"})=>{const{icon:a,width:l,height:r,label:i}=Qn.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;const s="primary"===t;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-main-divider border-solid border-[1px] hover:bg-primary-main"} ${s?"hover:text-black":""}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:a?n(x,{image:{...a,iconVersion:"normal"},imageClassName:s?"group-hover:text-white":"",width:l,height:r,asSVG:!0}):null})})),ea=l((({className:e="",media:t,version:l,context:r,children:i})=>{const s=r.useRouter(),{handlerDecorator:o}=r;return a("div",{children:[n("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>n(Yn,{version:l,...E({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),ta=l((({className:e,links:t,context:l})=>{const r=l.useRouter(),{handlerDecorator:i}=l;return a("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(na,{index:t,...E({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),na=l((({className:e,index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),aa="w-[204px]",la=l((({className:e,documents:t,relatedEnterprises:l,contacts:r,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:m=null})=>a("footer",{className:`px-9 pt-9 pb-10 bg-white ${e||""}`,id:m,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(Vn,{className:aa}),n(jn,{context:c,className:"grow"})]}),a("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(_n,{items:r,context:c,hasButton:!0}),n(ea,{media:i,context:c,children:"Соцсети"}),n(ea,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(Jn,{className:"pt-[3px]",context:c,items:o})]}),n(Wn,{className:"mt-[98px]",links:l,context:c}),n(ta,{links:t,context:c})]}))),ra=l((({className:e="",title:t,description:l,calendar:r,anchor:i=null})=>a("section",{className:`font-sans bg-white p-[50px] ${e}`,id:i,children:[n(s,{headingType:"h3",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:l}),r?ia(r):null]}))),ia=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return a("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md text-center",children:l.map((e=>sa(e,t)))}),n("div",{className:"flex w-full",children:l.map(((e,t)=>a("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[n("div",{className:"flex",children:oa(e)}),a("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.blackText})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},sa=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),oa=e=>e.month.map((e=>e.image?.src?n("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:n(x,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),ca=(e,t,n=((e,t)=>t.startsWith(e)))=>n(R(e),(e=>(e||"").replace(j,""))(R(P(e)?t.href:t.pathname))),ma=e=>t=>ca(t.href,e),da=e=>t=>t.items?.some(ma(e))||ca(t.href,e)||((e,t)=>L(e)===L(t.href))(t.href,e),ha=l((({className:e="",text:t,href:a,target:l,active:r,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:m="bg-white"})=>n("a",{className:`${ua(m,r,i)} ${e}`,href:a,target:l,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:xa(m,r,i),children:t||o})}))),ua=(e,t,n)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},xa=(e,t,n)=>{let a="text-white";return"bg-white"===e&&(a=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${a} font-sans font-light text-sm`},pa=l((({className:e="",children:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":a,children:t}))),ba={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},ga={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},fa={"bg-white":"black",transparent:"white"},Na=l((({context:e,className:t,defaultLocation:l="",bgColor:r="bg-white"})=>{const[i,s]=e.useGeolocation(l);return a("div",{className:`flex items-center ${t||""}`,children:[n(ha,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:r}),n(ha,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:r}),n(pa,{className:`mr-5 ${ba[r]}`,ariaLabel:"Поиск по сайту",children:n(x,{image:{icon:"LoupeIcon",iconVersion:fa[r]},className:"h-full",asSVG:!0})}),n(pa,{className:`${ga[r]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(x,{image:{icon:"GridIcon",iconVersion:fa[r]},className:"h-full bg-secondary-light rounded-full",asSVG:!0})})]})})),va=e=>(t=[])=>{const n=t?.filter(ma(e));var a;return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):null},ya="absolute left-0 -bottom-3 w-full h-[2px]",wa=l((({className:e="",text:t,href:l,target:r,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:m})=>a("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:r,onClick:s,"data-item-name":m,children:[n("span",{className:Ia(c,i),children:t||o}),i?n("div",{className:ka(c,i)}):null]}))),Ia=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},ka=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${ya}`:ya,Ca=()=>!("undefined"!=typeof window&&window.document&&window.document.createElement),$a=!Ca()?new IntersectionObserver((e=>{const t=window.document.querySelector("[data-header-submenu-visible=toggled]"),[n,a]=["[data-item-name=header-submenu]","[data-item-name=dots-header-submenu]"].map((e=>Array.from(window.document.querySelectorAll(e))));const l={};e.forEach((e=>{l[e.target.toString()]=e.isIntersecting}));const r=Sa(l,a,"hidden");Sa(l,n,"invisible"),t&&(r?t.classList.remove("hidden"):t.classList.add("hidden"))}),{root:window.document,threshold:1}):void 0,Sa=(e,t,n)=>{const a="hidden"!==n;return t.some((t=>{const l=t.toString(),r=a?!e[l]:e[l];return l in e&&t.classList.toggle(n,r),a?t.classList.contains("hidden"):!t.classList.contains("hidden")}))},Ta={"bg-white":"bg-primary-text",transparent:"bg-white"},Ma=l((({context:e,subItems:t,bgColor:l})=>{const[r,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o}=e;setTimeout((()=>{if(Ca())return;globalThis.document.querySelectorAll("[data-item-name=header-submenu]").forEach((e=>{$a?.observe(e)}))}),200);const c=va(s)(t),m=t?.map((e=>n(wa,{className:"mr-8",active:e===c,...E({router:s,handlerDecorator:o},e),dataItemName:"header-submenu",bgColor:l},e.href)));return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:m}),Da({subMenuIsShow:r,toggleSubMenu:()=>i(!r),subItems:t,bgColor:l,router:s,handlerDecorator:o})]})})),Da=({subMenuIsShow:e,toggleSubMenu:t,subItems:l,bgColor:r,router:i,handlerDecorator:s})=>a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(e?"bg-white rounded-md shadow-blue-gray/24":""),"data-header-submenu-visible":"toggled",children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:t,"aria-label":""+(e?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(r).map(Pa)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(e?"":"hidden"),"aria-hidden":!e,children:Aa(l,i,s)})]}),Aa=(e,t,a)=>e?.map((e=>n("a",{...E({router:t,handlerDecorator:a},e),"data-item-name":"dots-header-submenu",className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),Pa=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Ta[e]}`},String(t)),Ra={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},La=l((({className:e="",defaultLocation:t="Москва",showSubMenu:l=!0,bgColor:r="bg-white",context:i,topItems:s,anchor:o=null,logo:c})=>{const m=i.useRouter(),d=Zn(i.useAsyncData),{handlerDecorator:h}=i,u=Hn(d.topItems,s),x=u.find(da(m)),p=u.map(((e,t)=>n(ha,{active:e===x,...E({router:m,handlerDecorator:h},e),"aria-label":e.text,bgColor:r},String(t))));return n("header",{className:`pt-6 pb-8 px-20 ${r} ${e}`,id:o,children:a("div",{className:"container",children:[a("div",{className:"flex items-center",children:[n(Vn,{className:"mr-8",bgColor:r,logo:c}),p,n(Na,{context:i,className:"ml-auto",defaultLocation:t,bgColor:r})]}),n("div",{className:`mt-6 h-[1px] ${Ra[r]}`}),l&&x?.items?.length?n(Ma,{context:i,subItems:x.items,bgColor:r}):null]})})})),Va=l((({className:e="",title:t,description:l,image:r,benefits:i,insuranceSum:o,monthLimit:c})=>a("section",{className:`px-[100px] py-[50px] bg-white text-primary-text ${e}`,children:[t?n(s,{headingType:"h3",title:t,className:"text-center"}):null,l?n("div",{className:"text-center text-md mt-3",children:l}):null,n("div",{children:a("div",{className:"mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]",children:[r?.src?n(x,{image:r}):null,a("div",{className:"w-[558px] m-auto",children:[i?n("div",{className:"flex flex-col gap-4",children:i.map(Ba)}):null,a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[o?ja("Страховая сумма:",o,Boolean(c)):null,c?ja("Ежемесячный лимит:",c,Boolean(o)):null]})]})]})})]})));function Ba(e,t){return a("div",{className:"flex items-center gap-5",children:[e?.icon?n(x,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light",image:e.icon,width:"24",height:"24",asSVG:!0}):null,n("div",{className:"flex",children:n("div",{className:"text-title-2xs",children:e.label})})]},String(t))}function ja(e,t,l){return a("div",{className:`flex justify-between items-center gap-2 w-full ${l?"w-fit":"w-full"}`,children:[n("span",{className:"text-secondary-text text-base",children:e}),a("span",{className:"text-primary-main text-title-2xs",children:[$t(t)," ₽"]})]})}const _a=l((({className:e="",context:t,title:l="Мобильное приложение",qr:r,buttons:i=[],anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ie(e)} ${we(e)} `,id:o,children:n(ie,{context:t,title:l?n(s,{headingType:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}):null,buttons:i?.length?n(Q,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:a("div",{className:"flex items-center",children:[r?.src&&r?.href&&n("a",{href:r.href,target:"_blank","aria-label":l,children:n("img",{src:r.src,alt:l,title:l,width:"164",height:"164",className:"w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light"})}),n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),Ga=l((({className:e,text:t,onClick:a,href:l,target:r,isActive:i})=>n("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:a,href:l,target:r,children:t}))),Ea=l((({className:e,context:t,title:l,buttons:r,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=va(s)(r);return a("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,id:i,children:[n("h2",{className:"font-medium text-xl m-0",children:l}),r?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:r.filter((({text:e})=>e)).map(((e,t)=>n(Ga,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...E({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),Oa=l((({className:e="",text:t,active:a,children:l,onClick:r,href:i,target:s="_self"})=>n("a",{className:Wa(e,a),target:s,href:i,onClick:r,children:n("span",{className:Fa(a),children:t||l})}))),Wa=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,Fa=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-m-md`,Ua=l((({className:e="",navigatorTabs:t,context:a,anchor:l=null})=>{const r=globalThis.location?.href;return n("section",{className:`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${e}`,id:l,children:t?t.map(Ha(a,r)):null})})),Ha=(e,t)=>(a,l)=>{const{useRouter:r,handlerDecorator:i}=e,s=r(),o=V(t),c=o?a.href===o:0===l;return n(Oa,{active:c,...E({router:s,handlerDecorator:i},a)},a.href)},Za="transition-all duration-300 max-h-0 overflow-hidden",za=l((({blocks:e=[],context:t,hiddenBlocksNum:l=0,foldButtonClasses:r,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,render:c=(e=>e)})=>{const m=_t(l,0,e.length),{icon:d,handleToggle:u,isActive:x}=(({context:e,initialState:t=!1})=>{const[n,a]=e.useState(t);return{icon:n?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;a(!n);const l=t.previousSibling.getElementsByClassName(Za)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:n}})({context:t,initialState:o});return e?a("div",{children:[qa(e,c,{blocksToHide:m,isActive:x}),l?a("button",{className:r||"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer","data-theme":s,onClick:u,children:[n("span",{className:"pr-3",children:x?"Скрыть":i}),n(h,{name:d,iconVersion:"white",width:"20",height:"20",asSVG:!0})]}):null]}):null})),qa=(e,t,{blocksToHide:l,isActive:r})=>{const i=e.slice(0,e.length-l),s=e.slice(-l);return t(a("div",{children:[i,n("div",{className:Za,children:s})]}),r)},Ja=l((({label:e,blocks:t,columns:a=1,context:l,dataTheme:r,isUnfolded:i})=>{const s=qe({context:l,className:"box-border p-5",columns:a,blocks:t});return n("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?n(za,{foldButtonDataTheme:r,hiddenBlocksNum:t?.length,blocks:s,isUnfolded:i,context:l,foldButtonLabel:e,render:(e,t)=>n(Xa,{columns:a,isActive:t,children:e})}):null})})),Xa=l((({columns:e,children:t,isActive:a})=>n("div",{className:`box-border w-full ${a?"p-9":""} ${e>1?"flex flex-wrap":""}`,children:t}))),Ka=l((({blockItems:e,colorPalette:t,context:a,className:l=""})=>n("section",{className:`font-sans bg-white text-primary-text ${l}`,children:e?.length?n("div",{className:"list-none m-0 p-0",children:e.map(((e,l)=>n(Ja,{...e,dataTheme:t,context:a},`BlockItem${l}`)))}):null}))),Qa=l((({className:e,context:t,title:l,description:r="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ie(e)} ${we(e)} `,id:i,children:a(ie,{context:t,title:l?n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[r?n(Y,{className:"mt-4 max-w-[600px]",description:r}):null,n("figure",{className:"m-0 min-w-[600px]",children:Ya()})]})}))),Ya=(e=3)=>tl(100,e).map((e=>Math.floor(e))).map(el),el=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tl=(e,t)=>[e].concat(t>0?tl(e/1.618,t-1):[]),nl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},al={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ll={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},rl=l((({className:e="",context:t,slides:l=[],version:r="primary",anchor:i=null})=>{const s=l.map((e=>e.nav)),o=l.map((e=>e.productBlock)),[c,m]=t.useState(0);return a("section",{id:i,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${nl[r]}`,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${c}00%)`},role:"list",children:o.map(((e,a)=>function(e,t,a){const{version:l}=e,r=l?al[l].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(me,{className:`pl-[50px] z-[1] ${r}`,context:a,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:r},a,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:s.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:r,version:i}){const s=t===l,o=s?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${ll[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${al[i].title}`,m=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${al[i].text}`,d="secondary"===i?"border-white/50":"border-black/50";return n("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${o} ${d}\n `,children:a("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${c}`,children:e?.title}),n("div",{className:`text-secondary-text ${m}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>m(t),version:r})))})]})}));const il={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},sl=l((({className:e="",context:t,title:l="Акции и спецпредложения",date:r,description:i,buttons:o=[],version:c="primary",anchor:m=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${il[c]} ${Ie(e)} ${we(e)} `,id:m,children:n(ie,{context:t,title:l?n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(Q,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:a("div",{className:"mt-1.5",children:[r?n("div",{className:"text-sm mb-2",children:ol(r)}):null,n("div",{className:"text-base",children:i})]})})})));function ol(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const cl=l((({context:e,className:t="",title:l,description:r,items:i,image:o,version:c,socialMedia:m})=>n("section",{className:`border border-solid box-border p-[30px] min-w-[524px] ${t}`,role:"listitem",children:a(ie,{context:e,className:"flex justify-between",title:l?n(s,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:l}):null,image:o?.src&&n(x,{className:"mt-auto ml-7",image:o}),children:[r?n(Y,{className:"text-left",description:r}):null,i?.length?n(re,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:c}):null,n(ea,{className:"pt-[42px] pb-0",media:m,version:c,context:e})]})}))),ml="absolute top-0 bottom-0 w-[84px]",dl=l((({context:e,recommendations:t=[],className:l="",title:r,version:i,anchor:o=null})=>{const[c,m]=e.useState(0),d="secondary"===i?"border-white/50":"border-main-stroke";return a("section",{className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${l}`,id:o,children:[r?n(s,{headingType:"h2",className:"mb-6",title:r}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(hl({context:e,version:i,className:d})):null}),ul({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:m}),n("div",{className:`${ml} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${ml} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),hl=({context:e,version:t,className:a})=>(l,r)=>n(cl,{context:e,...l,version:t,className:a},String(r)),ul=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const r=e>2,i=r&&e-t>2;return a("div",{children:[r&&t>0?n(Pe,{className:"absolute top-1/2 left-8 z-10 mt-6",onClick:()=>l(t-1),ariaLabel:"Пролистать влево"}):null,i?n(Pe,{className:"absolute top-1/2 right-8 z-10 mt-6 rotate-180",onClick:()=>l(t+1),ariaLabel:"Пролистать вправо"}):null]})},xl=l((({className:e="",title:t,showLines:l=!0,steps:r=[],button:i,anchor:o=null})=>{const c=r.length>3;return a("section",{className:["box-border font-sans text-primary-text bg-white",c?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",e].join(" "),id:o,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),r?.length?a("div",{className:"box-border "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:W(n("div",{className:"h-0.5 w-full bg-secondary-light "+(l?"":"opacity-0")}))(r.map(pl))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:r.map(((e,t)=>bl(e,t,Boolean(i?.text))))})]}):null,i?.text?n(J,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),pl=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("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?.icon&&n(x,{image:e.icon,width:"48",height:"48"})||n("span",{className:"font-normal text-title-sm text-secondary-text",children:t+1})})},String(t)),bl=(e,t,l)=>a("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[a("div",{children:[e.label&&n("div",{className:"font-normal text-xl m-0 mt-4",children:e.label}),e.description&&n("div",{className:"font-light text-base text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]}),e?.button?.text&&!l?n(J,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:e.button.text}):null]},String(t)),gl=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],fl=l((({cell:e,isLastRow:t})=>n("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:n("div",{children:e.map(Nl)})}))),Nl=({label:e,description:t,list:l,image:r,buttons:i},s)=>a("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,l?.items?.length?vl(l):null,r?n(x,{image:r}):null,i?.length?yl(i):null]},String(s)),vl=e=>n(re,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),yl=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},l)=>n(J,{className:(l>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:gl(e),rounded:t,appendLeft:e?n(x,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(l))))}),wl=l((({row:{header:e,data:t},activeCardIndex:l,isLastRow:r})=>a(at,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(r?"":"border-solid"),children:a("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(x,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(ct,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(fl,{cell:e,isLastRow:r},String(t))))}):null]}))),Il=l((({className:e,context:t,title:l,description:r,rowHeaders:i,columns:o,anchor:c=null,hiddenRowsNum:m=0})=>{const[d,h]=t.useState(0),u=kl(o),x=Cl(i,u),p=gt({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:d,setActiveCardIndex:h}),b=x?.map(((e,t,{length:a})=>n(wl,{row:e,isLastRow:t+1===a,activeCardIndex:d},String(t))));return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:c,children:[l?n(s,{headingType:"h2",className:"text-center "+(r?"mb-2.5":"mb-9"),title:l}):null,r?n("div",{className:"mb-9 text-center text-m-base",children:r}):null,x?.length?n(za,{blocks:b,hiddenBlocksNum:m,context:t,render:e=>n($l,{tableArrowScrollControlProps:p,children:e}),foldButtonLabel:"Развернуть"}):null]})})),kl=e=>e?.map((({data:e})=>e))||[],Cl=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),$l=l((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:l}=t;return a("div",{role:"table",children:[a("div",{className:"relative",children:[e,n(pt,{...t})]}),l?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Sl=l((e=>{const{tabs:t,currentTag:a,onTabClick:l,className:r="",isShowCounter:i=!0}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${r}`,role:"tablist",children:t?.map(Tl(l,i,a))})})),Tl=(e,t,l)=>(r,i)=>{const s=l===r.tag,o=s?"text-white":"text-secondary-text group-hover:text-primary-main",c="min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm \n "+(s?"bg-white/30 text-white":"bg-secondary-light text-secondary-text");return n("div",{className:`flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${s?"bg-primary-main":"group bg-white"}`,role:"tab",onClick:()=>e(r.tag),"aria-selected":String(s),tag:r?.tag,children:a("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?n("h3",{className:`mr-8 ${o}`,children:r?.title}):null,t?n("div",{className:`flex items-center justify-center ${c}`,children:n("span",{children:r.count})}):null]})},String(i))};function Ml(e){return e?e.filter(Boolean).join(" "):""}const Dl={ProductBlock:be,ProductTile:Te},Al=l((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-2 box-border",children:e?.length?e.map(Pl(t)):null}))),Pl=e=>(t,a)=>{const l=t?.blockType;if(!l||!(l in Dl))return null;const r=Ml(t?.style);return n(Dl[l],{context:e,...t,className:r},`block_${a}`)},Rl=l((({className:e="",tabs:t,context:l,anchor:r=null,groupBlocks:i=[]})=>{const[s,o]=l.useState(t?.[0]?.tag),c=(m=i,(d=s)?m.filter((e=>e?.tags?.includes(d))):m);var m,d;const h=t?.map((e=>{const t=e.tag?i.filter((t=>t?.tags?.includes(`${e.tag}`))).length:i.length;return{...e,count:t}}));return a("section",{id:r,className:`box-border gap-1 h-12 ${e}`,children:[h?.length?n(Sl,{currentTag:s,onTabClick:o,tabs:h}):null,i.length?n(Al,{context:l,groupBlocks:c}):null]})}));function Ll(e=""){const t=ye(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Vl=l((({className:e="",title:t,subtitle:l,bonusBenefits:r,anchor:i=null})=>a("section",{className:`font-sans text-primary-text bg-white p-50 flex flex-col ${e}`,id:i,children:[t?n(s,{headingType:"h3",className:"text-center mb-[10px]",title:t}):null,l?n("span",{className:"text-md font-normal text-center",children:l}):null,r?.length?n("div",{className:`grid gap-1 ${Ll(e)}`,children:r.map(Bl)}):null]}))),Bl=(e,t)=>a("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?n(x,{className:"h-[180px] w-[160px] min-w-[160px] min-h-[160px]",image:e.icon,width:"160",height:"180"}):null,n("div",{children:e?.label?n("span",{className:"title-2xs text-center m-0",children:e.label}):null})]},String(t)),jl={Accordion:Ye,BenefitsBlock:et,Bonus:nt,ComparisonTable:Nt,Calculator:Jt,CreditCalculator:hn,ExchangeRateTile:An,Footer:la,Gallery:Fe,GracePeriod:ra,Header:La,Headline:v,Insurance:Va,LinkDocs:M,MiniGallery:Ue,MobileAppTile:_a,NavigatorTabs:Ua,PictureText:A,ProductBlock:be,ProductGallery:rl,ProductTile:Te,PromoTile:sl,OtherProducts:Ka,Recommendation:dl,StepsBlock:xl,TariffsTable:Il,TextBlock:fe,Tile:Ce,Navigation:Ea,Placeholder:Qa,GroupBlock:Rl,BonusBenefitsBlock:Vl},_l=l((({className:e,onClick:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":a,children:Gl()}))),Gl=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},El=l((({className:e,context:t,anchor:l=null})=>{const r=t.useLikeService();return a("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:l,children:[n(_l,{onClick:r.like,ariaLabel:"Поставить отметку «лайк»"}),n(_l,{onClick:r.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:r.likeCount})]})})),Ol=!Ca(),Wl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Fl=l((({className:e="",context:t,blocksRegistry:l,data:{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:m=Wl})=>{const{header:d}=s,h=t.useRouter();return Ol&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const a=t?.getBoundingClientRect();a&&a.top>0&&a.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),a("section",{className:`relative ${Ml(r)} ${e}`,"data-theme":c,children:[d?.blocks?.length?n("div",{className:`${Ml(d?.style)}`,children:d.blocks.map(((e,n)=>Ul({block:e,blockDecorator:m,blocksRegistry:l,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Ul({block:e,blockDecorator:m,blocksRegistry:l,context:t},n)))}):null,o?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(El,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Ul({block:e,blockDecorator:t,blocksRegistry:a,context:l},r){const{type:i}=e;i&&i in a||console.warn(`No block with "${i}" is registered`);const s=a[i||"Placeholder"]||Qa;return t({blockClassName:`scroll-mt-12 ${Ml(e.style)}`,block:e,render:e=>{const{version:t,content:a,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,anchor:o,...a},`${i}-${r}`)}},`block-${r}`)}e.Blocks=jl,e.ContentPage=Fl,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(r)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:a}=await e.json();return globalThis.localStorage.setItem(r,JSON.stringify({token:n,name:a})),{token:n,name:a}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...a){if(!a.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:a})}),{likes:r}=await n.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=W,e.projectSettings=m,e.setup=t,e.url=B,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,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:a,...l}={})=>{const r=Object.assign({},l,a?{innerHTML:a.__html}:{});return e(t,r,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),a=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const r="likesToken";const i={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title-lg",h3:"text-title",h4:"text-title-sm",h5:"text-title-xs",h6:"text-title-2xs tracking-[0.2px]"},s=l((e=>{const{className:t="",headingType:a,title:l,as:r}=e;if(!a)return;return n(r||a,{className:`font-sans m-0 ${i[a]} ${t}`,children:l})}));var o,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(o||(o={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));const d=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}},m={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:r=`Иконка ${c[l]||l}`,title:i=r,iconVersion:s="normal",asSVG:o,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return o?a("svg",{className:e,...h,"aria-hidden":"true",children:[i?n("title",{children:i}):null,r?n("desc",{children:r}):null,n("use",{className:`${m[s]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:r,title:i,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const x=l((({className:e="",image:t,imageClassName:a="",...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?n(h,{className:e,imageClassName:a,iconVersion:u(t),name:r,...l}):null:n(p,{className:e,imageClassName:a,image:t})})),p=l((({className:e="",image:t,imageClassName:l=""})=>t?a("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t},a)=>n("source",{srcSet:e,type:g(t)},`${a}_${e}`))):null,b(t,l)]}):null)),b=(e,t="")=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",r=e.alt||e.title;return n("img",{src:e.src,className:t,alt:r,title:l,style:a,...e.size})};function g(e){return e?`image/${String(e)}`:void 0}const f={left:"text-left",center:"text-center",right:"text-right"},N={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"}},v=l((({bgColorHeadline:e="transparent",align:t="left",className:l="",title:r,description:i,anchor:o=null})=>{const c=N[e];return a("section",{className:`p-[50px] ${c.background} ${l}`,id:o,children:[r?n(s,{headingType:"h2",className:`text-primary-text ${c.text} ${f[t]}`,title:r}):null,i?n("p",{className:`font-normal text-base mt-4 ${c.text} ${f[t]}`,children:i}):null]})})),y=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:r,doc:i,icon:s})=>{const{text:o,fileSize:c,...d}=i;return a("a",{className:e,role:"link",...d,children:[s?n(x,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?a("span",{className:l,children:[o,n("span",{className:r,children:d?.href&&w(I(d.href),c)})]}):null]})})),w=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),I=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},k=l((({className:e="",doc:t,icon:a})=>n(y,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:a}))),C=l((({className:e,documents:t,columnsMode:a="double",icon:l})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===a?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(k,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:l})},String(t))))}):null)),S={left:"text-left",center:"text-center",right:"text-right"},$={double:"mb-8",single:"mb-[26px]"},T={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},M=l((({className:e="",title:t,subtitle:l,align:r,documents:i,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:d=null})=>a("section",{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,id:d,children:[t?n(s,{headingType:"h2",className:`${l?"mb-2.5":$[c]} ${S[r??"center"]}`,title:t}):null,l?n("h3",{className:`text-base mt-0 font-normal ${$[c]} ${S[r??"center"]}`,children:l}):null,n(C,{className:T[c],columnsMode:c,documents:i,icon:o})]}))),D={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},A=l((({className:e="",title:t,image:l,benefits:r,version:i="primary",directionRight:o=!1,anchor:c=null})=>a("section",{className:`relative font-sans p-14 ${D[i]} ${e}`,id:c,children:[n(s,{headingType:"h2",className:"text-center",title:t}),a("div",{className:"flex justify-center mt-9",children:[l?.src&&n(x,{className:o?"order-2 ml-6":"mr-6",image:l}),r?.length?n("div",{className:"flex flex-col",children:r.map(((e,t)=>function(e,t,l){return a("div",{className:"flex flex-row mb-8",children:[e.icon?n(x,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,a("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-xl m-0 "+("primary"===l?"text-primary-text":""),children:e.label}),e.description&&n("div",{className:"font-normal text-sm "+("primary"===l?"text-secondary-text":""),children:e.description})]})]},String(t))}(e,t,i)))}):null]})]})));const P=e=>e?.includes("//"),R=e=>(e||"").replace(/\/?\?.*/,""),L=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},V=e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var B=Object.freeze({__proto__:null,isURL:P,withoutQuery:R,getOrigin:L,getHash:V});const j="/mobile",_=(e,t)=>{if(!e)return e;const n=L(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function E({router:e,handlerDecorator:t=G},n){const a=((e,t)=>{if(!e)return e;const n=_(e,t)||"",a=t?.pathname.startsWith(j);return a&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!P(a),r=!n.target||"_self"===n.target;l&&r&&(t.preventDefault(),e.push(a))}),n)}}const O=l((({text:e,href:t,target:a,onClick:l,className:r="",children:i})=>t?n("a",{className:`no-underline ${r}`,href:t,target:a,onClick:l,children:n("span",{className:r,children:e||i})}):n("span",{className:r,children:e||i})));function W(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const F=l((e=>{const{text:t,aboveText:l,appendLeft:r,appendRight:i}=e;return a("div",{className:U(e),children:[r||null,H(e)?a("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-button text-left",children:t})]}):null,i||null]})})),U=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const l="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",H(e)?l:"h-12 w-12",a?"rounded-full":""].join(" ")},H=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Z={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},q="text-center font-sans select-none",J=l((e=>{const{text:t,aboveText:a,appendLeft:l,appendRight:r,children:i,disabled:s,rounded:o,...c}=e,d=i??n(F,{text:t,aboveText:a,appendLeft:l,appendRight:r,rounded:o});return n(s?K:X,{rounded:o,...c,children:d})})),X=l((({className:e="",ariaLabel:t,version:a="none",rounded:l,href:r,target:i,children:s,onClick:o,...c})=>n("a",{className:`${q} inline-block cursor-pointer no-underline ${Z[a]||""} ${l?"rounded-full":"rounded-md"} ${e}`,href:r,target:i,onClick:o,"aria-label":t,role:r?"link":"button",...c,children:s}))),K=l((({className:e,children:t,ariaLabel:a,version:l="none",rounded:r})=>n("div",{role:"button","aria-disabled":"true","aria-label":a,tabIndex:"-1",className:`inline-block ${q} ${z[l]||""} ${r?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),Q=l((({context:e,className:t="",buttons:a})=>{const{handlerDecorator:l}=e,r=e.useRouter();return a?.length?n("div",{className:t,children:a.map(((e,t)=>function({icon:e,...t},a){if(!t?.text)return;return n(J,e?{appendLeft:n(x,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(a))}(E({router:r,handlerDecorator:l},e),t)))}):null}));const Y=l((e=>{const{className:t="",description:a}=e;return n("div",{className:`font-normal text-base ${t}`,children:a})})),ee={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},te={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ne=l((({className:e="",isDotted:t=!0,children:l,version:r="primary"})=>a("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ae(r)}):null,n("span",{children:l})]}))),ae=e=>`${ee[e]} ${te[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,le={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},re=l((e=>{const{className:t="",itemClassName:a,isDotted:l,items:r,version:i="primary"}=e;return n("section",{className:`${le[i]} ${t}`,role:"list",children:r?.length?r.map(((e,t)=>n(ne,{className:a,isDotted:l,version:i,children:e},String(t)))):null})})),ie=l((({className:e="",title:t,children:l,buttons:r,image:i,anchor:s=null})=>a("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:s,children:[t,a("div",{className:"flex grow w-full justify-between",children:[a("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),r?n("div",{children:r}):null]}),i]})]}))),se={primary:"text-primary-text",secondary:"text-white"},oe={primary:"text-secondary-text",secondary:"text-white"};function ce(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${n}`}const de=l((({className:e="",context:t,title:l,headingType:r="h2",description:i,benefits:s,benefitsVersion:o="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:u=!0,textBlockClassName:p=""})=>{const b="secondary"===h?"text-white":"text-primary-text";return a("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${p}`,children:a(ie,{context:t,title:me(l,r),buttons:he(t,c),children:[i?n(Y,{className:`mt-4 max-w-[600px] text-md font-light ${b}`,description:i}):null,s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function({benefit:e,version:t="primary",benefitsVersion:l="normal"},r){const i="white"===l||"secondary"===t;return a("div",{className:"flex gap-4 items-center",children:[e.icon?n(x,{className:ce(t,l),image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,a("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]",children:[n("div",{className:`text-xl m-0 ${se[t]}`,children:e.label}),e.description&&n("div",{className:`font-light text-m-md ${oe[t]}`,children:e.description})]})]},String(r))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,m?.length?n(re,{className:"mt-5 text-title-2xs font-light",items:m,itemClassName:"mb-[7px]",version:h,isDotted:u}):null]})}),d?.src&&n(x,{className:"mt-[-50px]",image:d})]})})),me=(e,t)=>e?n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,he=(e,t)=>t?.length?n(Q,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function ue(e,t,l){const r="primary"===t?"white":"black",i=e?.icon||{icon:"ArrowLeftIcon"};return a("div",{className:`flex items-center ${l}`,children:[n(J,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:e?.text,href:e?.href,children:n(x,{className:"w-4 h-4",image:{...i,iconVersion:r},asSVG:!0})}),e?.text?n("span",{className:"text-m-md font-light",children:e.text}):null]})}const xe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe={primary:"text-secondary-text",secondary:"text-white/80"},be=l((e=>{const{context:t,className:l="",breadcrumbs:r,backwardButton:i,version:s="primary",anchor:o=null,...c}=e,d=t.useRouter(),{handlerDecorator:m}=t;return a("section",{className:`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${xe[s]} ${l}`,id:o,children:[i?.text?ue(i,s,"mb-10 -mt-2.5"):null,r?.length?n("div",{className:"text-xs mb-6",children:W(n("span",{className:`mx-2 ${pe[s]}`,children:"/"}))(r.map(((e,t)=>n(O,{...E({router:d,handlerDecorator:m},{className:pe[s],...e})},String(t)))))}):null,n(de,{context:t,version:s,...c})]})})),ge={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"}},fe=l((({title:e,description:t,blockVersion:l="primary",iconVersion:r,image:i,className:s,anchor:o=null})=>{const c=ge[l];return a("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===r?Ne(c.icon):null,"big"===r?ve(i):null,a("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}):null,t?n("div",{className:`text-sm ${c.description}`,children:t}):null]})]})}));function Ne(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ve(e){return e?.src?n(x,{className:"pt-0.5 pr-3",image:e}):null}const ye=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function we(e=""){const t=ye(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ie(e=""){const t=ye(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ke={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ce=l((e=>{const{context:t,title:l,headingType:r="h3",description:i,items:o,children:c,buttons:d,image:m,className:h="",version:u="primary",role:p,anchor:b=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${h} ${ke[u]} ${Ie(h)} ${we(h)} `,role:p,id:b,children:a(ie,{context:t,title:l?n(s,{headingType:r,as:"h3",title:l,className:`whitespace-pre-wrap max-w-[600px] ${l?"mb-3":""}\n ${"primary"===u?"text-primary-text":""}`}):null,buttons:d?.length?n(Q,{context:t,buttons:d.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-9 gap-3"}):null,image:m?.src&&n(x,{className:"mt-auto ml-7",image:m}),children:[i?n(Y,{className:"max-w-[600px] text-title-new-sm font-light",description:i}):null,c,Se(o,u)]})})}));function Se(e,t){return e?.length?n(re,{items:e,itemClassName:"text-title-2xs font-light mt-2",version:"primary"===t?"tile":"tile-white"}):null}const $e={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Te=l((({context:e,className:t="",title:l,headingType:r="h3",description:i,additionalDescription:o,benefits:c,buttons:d,image:m,version:h="primary",anchor:u=null})=>n("section",{className:`bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${t} ${$e[h]} ${Ie(t)} ${we(t)} `,id:u,children:a(ie,{context:e,title:l?n(s,{headingType:r,as:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:d?.length?n(Q,{context:e,buttons:d,className:"flex mt-9 gap-3"}):null,image:m?.src&&n(x,{className:"mt-auto ml-7",image:m}),children:[i?n(Y,{className:"mt-4 max-w-[600px]",description:i}):null,Me(c,h),o?Ae(o,h):null]})})));function Me(e=[],t){return a("div",{className:"flex mt-5 mb-1",children:[e.length?n("div",{className:"mr-8",children:e.map(De)}):null,e.length?n("div",{className:"pt-1",children:e.map(((e,a)=>function(e,t,a="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[a]}`,children:e.description},String(t))}(e,a,t)))}):null]})}function De(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}function Ae(e,t="primary"){return n("div",{className:`text-sm mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Pe=l((({className:e,disabled:t,...a})=>n(J,{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,...a,children:n(x,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},width:"16",height:"16",asSVG:!0})}))),Re={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Le={normal:3,mini:4},Ve={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Be={normal:380,mini:276},je=l((({title:e,description:t,image:l,items:r,button:i,version:s,isDotted:o=!0})=>{const c=function(e){return`text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return a("div",{className:"h-full flex flex-col justify-between text-center",children:[a("div",{children:[l?.src?n("div",{className:"flex justify-center",children:n(x,{className:"mb-6",image:l})}):null,e?Ge(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,r?.length?Ee(r,s,o):null]}),i?.text?_e(i):null]})}));function _e(e){return n(J,{className:"mt-6 w-full",appendLeft:e.icon&&n(x,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ge(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function Ee(e,t="primary",a){return n(re,{className:"max-w-[308px] mt-2 text-sm "+("primary"===t?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:a,version:t})}const Oe=l((({context:e,title:t,description:l,cards:r=[],version:i="normal",activeCardIndex:o})=>a("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),a("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,l?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:l}):null]}),n("div",{className:`flex ${r?.length<=Le[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*Be[i]}px)`},role:"list",children:r?.map(((t,a)=>function({card:e,version:t},a){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Ve[t]} ${Re[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(je,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const We=l((({context:e,cards:t=[],className:l="",version:r="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),d=t?.length>Le[r],m=d&&t?.length-o>Le[r],h=d&&o>0;return a("section",{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${l}`,id:i,children:[n(Oe,{context:e,cards:t,version:r,activeCardIndex:o,...s}),h?n(Pe,{className:"absolute top-1/2 left-8 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,m?n(Pe,{className:"absolute top-1/2 right-8 z-10 mt-[25px] rotate-180",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null,n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),Fe=l((e=>n(We,{...e,version:"normal"}))),Ue=l((e=>n(We,{...e,version:"mini"}))),He=l((({className:e="",documents:t,anchor:a=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:a,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ze(t):null})}))),Ze=e=>e.map(((e,t)=>{const{text:a,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:a||null})},`list_item_${String(t)}`)})),ze={Headline:v,LinkDocs:M,TextBlock:fe,PictureText:A,ProductBlock:be,Tile:Ce,ProductTile:Te,Gallery:Fe,MiniGallery:Ue,LinkList:He},qe=({blocks:e,context:t,className:n,columns:a})=>e?.length?e.map(Je({context:t,className:n,columns:a})):null,Je=({context:e,columns:t,className:a})=>(l,r)=>{const i=l?.blockListType;if(!i||!(i in ze))return null;return n("div",{className:`${a} ${2===t?"w-1/2":""}`,children:n(ze[i],{context:e,...l,className:"!p-0"})},`block_${r}`)},Xe=l((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:qe({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Ke=l((({label:e,isExpanded:t,blocks:l,context:r})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,l]=e.useState(n),r=t?.length;return{isActive:a,hasContent:r,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!r)return;l(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:r,blocks:l,initialState:t});return a("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[a("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl pr-2.5 font-medium",children:e}),s?n(x,{image:o,className:"text-primary-main",width:"24",height:"24",asSVG:!0}):null]}),s?n(Xe,{isExpanded:i,blocks:l,context:r}):null]})})),Qe={left:"text-left",center:"text-center",right:"text-right"},Ye=l((({title:e,description:t,accordionItems:l,context:r,className:i="",anchor:o=null,accordionAlignTitle:c="center"})=>a("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i}`,id:o,children:[e?n(s,{headingType:"h4",className:`mb-2.5 ${Qe[c]}`,title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Ke,{...e,context:r},`AccordionItem${t}`)))}):null]}))),et=l((({className:e="",title:t,benefits:l,anchor:r=null})=>a("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e}`,id:r,children:[t?n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?n("div",{className:"grid grid-cols-2 gap-8 mt-9",children:l.map(tt)}):null]}))),tt=(e,t)=>a("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e?.icon?n(x,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",image:e.icon,width:"70",height:"70"}):null,a("div",{children:[e?.label?n("h3",{className:"font-medium text-xl m-0",children:e.label}):null,e?.description?n("div",{className:"font-normal text-sm mt-2",children:e.description}):null]})]},String(t)),nt=l((e=>{const{className:t="",title:l,description:r,bonusItems:i,anchor:o=null}=e;return n("section",{className:`font-sans bg-white p-[50px] pb-9 ${t}`,id:o,children:a("div",{className:"container",children:[l?n(s,{headingType:"h3",className:"text-center",title:l}):null,r?n("div",{className:"text-md font-light text-center mt-[10px]",children:r}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:a("div",{className:"flex justify-between w-full",children:[a("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.name}),n("div",{className:"text-md font-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?a("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})})),at=l((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),lt="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",rt="border-main-stroke border-solid border",it="border-main-divider border border-t-0 border-x-0",st="w-[200px] mr-6",ot={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ct=l((({children:e,activeCardIndex:t,columnWidth:a,version:l="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:ot[l],style:{transform:`translateX(-${t*a}px)`},children:e})}))),dt=l((({icon:e,image:t,title:l,link:r})=>a("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${rt} ${lt}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(x,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(x,{className:"mb-[18px]",image:t}),l?n(s,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,r?.text&&n("div",{className:"mt-auto w-full",children:n(J,{href:r.href,target:r.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:r.text})})})]}))),mt=l((({colHeaders:e,activeCardIndex:t,router:l,handlerDecorator:r})=>a(at,{children:[n("div",{className:st,role:"columnheader",scope:"col"}),n(ct,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(dt,{...e,link:e.link&&E({router:l,handlerDecorator:r},e.link)},String(t))))})]}))),ht=l((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:l})=>n("div",{className:`w-80 box-border flex flex-col ${rt} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${l?lt:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${it} ${l&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ut(e,t,l)))})}))),ut=({label:e,description:t},l,r)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:"text-xl font-medium m-0 "+(r?"text-white":""),children:e}):null,t?n("div",{className:"text-sm opacity-80 "+(r?"text-white":"text-secondary-text"),children:t}):null]},String(l)),xt=l((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:r,isFirstRow:i,isLastRow:s})=>a(at,{children:[e?.title?n("div",{className:`text-sm py-7 ${it} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?n(ct,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>n(ht,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:r&&0===t},String(t))))}):null]}))),pt=l((({isScrollAvailable:e,onNextClick:t,onPrevClick:l,showNextButton:r,showPrevButton:i})=>e?n("div",{children:a("div",{className:"absolute top-7 right-7 z-10",children:[n(Pe,{className:"mt-4 rotate-180",onClick:t,disabled:!r,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n(Pe,{className:"mt-4",onClick:l,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),bt=l((({rowData:e,activeCardIndex:t,isColoredFirstColumn:l,...r})=>a("div",{className:"relative",children:[e.map(((e,a,{length:r})=>n(xt,{row:e,isFirstRow:0===a,isLastRow:a+1===r,activeCardIndex:t,isColoredFirstColumn:l},String(a)))),n(pt,{...r})]}))),gt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{onNextClick:()=>a(n+1),onPrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},ft=l((({context:e,columns:t,rowHeaders:l,isShowAllRow:r,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,d=t?.map((({header:e})=>e||{})),m=t?.map((({data:e})=>e))||[],h=l?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[{}]))}))).slice(0,r?l.length:i),[u,x]=e.useState(0),p=gt({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:u,setActiveCardIndex:x}),{isScrollAvailable:b}=p;return a("div",{children:[a("div",{role:"table",children:[d?.length?n(mt,{colHeaders:d,activeCardIndex:u,router:o,handlerDecorator:c}):null,h?.length?n(bt,{rowData:h,activeCardIndex:u,isColoredFirstColumn:s,...p}):null]}),b?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Nt=l((({className:e,context:t,title:l,rowHeaders:r,columns:i,visibleRowLength:o=0,isColoredFirstColumn:c=!1,anchor:d=null})=>{const[m,h]=t.useState(!o);return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:d,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:l}),n(ft,{context:t,columns:i,rowHeaders:r,isShowAllRow:m,isColoredFirstColumn:c,visibleRowLength:o}),o?vt({isShowAllRow:m,onClick:()=>h(!m)}):null]})})),vt=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:st}),n("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:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})});function yt(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),wt);return n||{}}async function wt(e){const t=await fetch(e);return await t.json()}const It=l((({className:e,viewBox:t,fill:a="none",width:l,height:r,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:a,width:l,height:r,children:i.map((({d:e,fill:t,...a},l)=>n("path",{d:e,fill:t||"currentColor",...s,...a},l)))}))),kt=[{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"}],Ct=l((({text:e,checked:t,onChange:l,className:r})=>n("div",{className:r,children:a("label",{className:"flex items-center cursor-pointer relative",children:[n("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=>{l(e.target.checked)},checked:t}),n(It,{paths:kt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-m-base cursor-pointer",children:e}):null]})}))),St=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),$t=l((({title:e,value:t,postfix:l="",prefix:r,className:i=""})=>a("div",{className:`mb-5 ${i}`,children:[e?n("div",{className:"text-base font-light",children:e}):null,t?a("div",{className:"text-title font-normal",children:[r," ",St(Math.round(t))," ",l]}):null]}))),Tt=3e4,Mt=3e6,Dt=Math.round(41.5),At=l((({className:e,title:t,items:l=[],min:r=1,max:i=100,step:s=1,value:o=r,onChange:c})=>{const d=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},m={backgroundSize:`${(100*(o-r)/(i-r)).toFixed(2)}% 100%`};return a("div",{className:e,children:[a("label",{className:"block relative",children:[t?n("span",{className:"text-base text-secondary-text pl-4",children:t}):null,n("input",{className:"m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text",value:St(o),onChange:e=>d(e.target.value),onBlur:()=>{c&&(o<r&&c(r),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:r,max:i,step:s,value:o,onChange:e=>d(e.target.value),style:m})})]}),n("div",{className:"flex justify-between my-3",children:l.map(((e,t)=>n("span",{className:"text-sm leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})}));function Pt(e){const{title:t,className:a="",calculatorParams:l,moneyValue:r,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=l?.minSum||Tt,d=l?.maxSum||Mt,m=[`От ${St(c)} ₽`,`До ${St(d)} ₽`];return n(At,{className:a,title:t,items:o?m:[],min:c,max:d,step:1e3,value:r||i,onChange:s})}const Rt=10.2,Lt=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||Rt:t?.rateWithoutInsurance||Rt:Rt},Vt=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},Bt=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,jt=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):Dt,_t=(e,t,n)=>Math.max(t,Math.min(e,n));function Gt(e){const{title:t,minMonths:a,maxMonths:l,monthsValue:r,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(At,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(l)}`],min:a,max:l,step:1,value:r||i,onChange:s})}function Et(e,t){return t?.length?n(Q,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function Ot({rate:e,title:t,sup:l,className:r=""}){const i=String(e).replace(".",",");return a("div",{children:[n("div",{className:"text-sm font-light ml-3",children:t}),a("div",{className:"flex justify-start",children:[n("span",{className:`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${r}`,children:i}),l?n("span",{className:"calc-rate-text text-[65px] leading-[75px]",children:l}):""]})]})}const Wt=l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,d]=e.useState(!1),[m,h]=e.useState(!1),[u,x]=e.useState(!1),p=yt(e.useAsyncData,"directoryName").rows,b=Vt({tableRows:p,isAnnuity:c}),g=Bt(b),f=jt(b),N=b?.minMonths||1,v=b?.maxMonths||84,y=Lt({calculatorParams:b,isInsurance:u}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=_t(l,t.minSum||Tt,t.maxSum||Mt);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:b,paymentType:"annuity",rate:y,sum:r||g,months:s||f});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({title:"Сумма кредита, ₽",calculatorParams:b,moneyValue:r,defaultSum:g,setMoneyValue:i}),Gt({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(Ct,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),n(Ct,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:h}),n(Ct,{className:"mt-3",text:"Комплексная страховая защита",checked:u,onChange:x})]})]}),n("div",{children:y?Ot({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n($t,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,Et(e,l)]})]})}));function Ft(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Tt,s=t?.maxSum||Mt;return n(At,{title:"Стоимость недвижимости, ₽ ",items:[`От ${St(i)} ₽`,`До ${St(s)} ₽`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Ut(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Tt,s=t?.maxSum||Mt;return n(At,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${St(i)} рублей`,`До ${St(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Ht({credit:e,period:t,taxRefund:l}){return a("div",{children:[n($t,{title:"Сумма кредита",value:e,postfix:"₽"}),n($t,{title:"Срок",value:t,postfix:"лет"}),n($t,{title:"Налоговый вычет",value:l,postfix:"₽"})]})}const Zt={CreditCalculatorForm:Wt,MortgageCalculatorForm:l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,d]=e.useState(!1),[m,h]=e.useState(!1),u=yt(e.useAsyncData,"directoryName").rows,x=Vt({tableRows:u,isAnnuity:c}),p=Bt(x),b=jt(x),g=x?.minMonths||1,f=x?.maxMonths||84,N=Lt({calculatorParams:x,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Ft({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Ut({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Gt({title:"Срок ипотеки, месяцев",minMonths:g,maxMonths:f,monthsValue:s,defaultMonths:b,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(Ct,{text:"Страхование жизни",checked:c,onChange:d}),n(Ct,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:m,onChange:h})]})]}),a("div",{children:[n("div",{children:N?Ot({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n($t,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:Ht({credit:3892e3,period:15,taxRefund:65e4})}),Et(e,l)]})]})})),DepositCalculatorForm:l((({context:e,className:t="",buttons:l,rate:r,minSum:i,maxSum:s,minMonths:o,maxMonths:c})=>{const[d,m]=e.useState(void 0),[h,u]=e.useState(void 0),x=yt(e.useAsyncData,"directoryName").rows,p=Vt({tableRows:x,isAnnuity:!1}),b=Bt(p),g=jt(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:d,defaultSum:b,setMoneyValue:m}),Gt({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:g,setMonthsValue:u})]}),n("div",{children:r?Ot({rate:r,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n($t,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n($t,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),Et(e,l)]})]})})),BonusCalculatorForm:l((({context:e,className:t="",buttons:l,bonus:r,minSumTrip:i,maxSumTrip:s,minSumOther:o,maxSumOther:c})=>{const[d,m]=e.useState(void 0),[h,u]=e.useState(void 0),x={minSum:i,maxSum:s},p={minSum:o,maxSum:c},b=r||2528;return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:x,moneyValue:d,defaultSum:Bt(x),setMoneyValue:m,isShowItems:!1}),Pt({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:Bt(p),setMoneyValue:u,isShowItems:!1})]}),n("div",{children:b?Ot({rate:b,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n($t,{title:"Баллов за год",value:948841}),Et(e,l)]})]})}))},zt=({context:e,className:t})=>(a,l)=>{const r=a?.calcType;if(!r||!(r in Zt))return null;return n("section",{className:`box-border relative flex shrink-0 basis-full ${t}`,role:"listitem",children:n("div",{className:"box-border p-9 w-full",children:n(Zt[r],{context:e,...a,className:"flex justify-between"})})},String(l))},qt="absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full",Jt=l((({className:e="",context:t,calcTabs:l=[],anchor:r=null})=>{const i=l.map((e=>e.nav||{})),s=l.map((({calculatorBlock:e})=>e||{})),[o,c]=t.useState(0),[d,m]=t.useState(0),h=l?.length>3&&l?.length>d+3,u=d>0;return a("section",{id:r,className:`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${e}`,children:[a("div",{children:[i.length>1?Xt({tabsShift:d,tabsNav:i,activeSlideIndex:o,setActiveSlideIndex:c}):null,u?n(Pe,{className:`${qt} left-3 top-3`,onClick:()=>m(d-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,h?n(Pe,{className:`${qt} right-3 top-3 rotate-180`,onClick:()=>m(d+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null]}),n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:s?.length?s.map(zt({context:t,className:e})):null})]})}));function Xt({tabsShift:e,tabsNav:t,activeSlideIndex:l,setActiveSlideIndex:r}){return a("div",{children:[n("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000",children:n("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:l,onClick:r}){const i=t===l,s=i?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",o=i?"text-md-new mb-1.5":"text-base mb-[3px]",c=i?"text-base text-white":"text-m-md",d=i?"":"text-primary-main";return a("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative border border-main-stroke cursor-pointer text-left border-b-0 flex\n ${s}`,children:[n(x,{className:`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${d}`,image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}),a("div",{className:"border-0",children:[n("div",{className:`font-medium ${o}`,children:e?.title}),n("div",{className:`text-secondary-text ${c}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:l,onClick:()=>r(t)})))})}),n("div",{className:"w-full h-2 bg-primary-main"})]})}const Kt=l((({tabs:e,currentTabIndex:t,onTabClick:a})=>n("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(Qt(t,a))}))),Qt=(e,t)=>(l,r)=>{const i=e===r;return a("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content "+(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(r),"aria-selected":String(i),children:[l?.icon?Yt(l,i):null,a("div",{children:[l?.title?n("h3",{className:"font-medium m-0 text-base",children:l?.title}):null,l?.description?n("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:l?.description}):null]})]},String(r))},Yt=(e,t)=>n("div",{className:"h-full mt-1",children:n(x,{className:"w-5 h-5 mr-3 "+(t?"invert":""),image:e?.icon||"CardIcon",asSVG:!t})});function en(e=""){const t=ye(e);return t<=4?"h4":t<=8?"h3":"h2"}const tn=3e4,nn=3e6,an=Math.round(41.5),ln=(rn=[[e=>1===e,"год"],[e=>e<=4,"года"],[()=>!0,"лет"]],e=>{const[,t]=rn.find((([t])=>t(e)))||[];return t});var rn;function sn(e){const{minMonths:t,maxMonths:a,monthsValue:l,defaultMonths:r,setMonthsValue:i}=e;return n(At,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:a,step:1,value:l||r,onChange:i})}function on(e,t){return a("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[n("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),n("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),a("div",{className:"text-lg mb-3",children:[St(Math.round(e))," ₽"]}),n("div",{className:"text-sm opacity-60",children:"Ставка"}),a("div",{className:"text-lg",children:[t," %"]})]})}function cn(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||tn,s=t?.maxSum||nn;return n(At,{title:"Желаемая сумма кредита, ₽",items:[`От ${St(i)} рублей`,`До ${St(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}const dn=l((({context:e,directoryName:t})=>{const[l,r]=e.useState(void 0),[i,s]=e.useState(void 0),[o,c]=e.useState(!0),[d,m]=e.useState(!0),h=(e=>{const{tableRows:t,isAnnuity:n=!1}=e;return t&&t.find((e=>e.isAnnuity===n))||{}})({tableRows:yt(e.useAsyncData,t).rows,isAnnuity:o}),u=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(h),x=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):an)(h),p=h?.minMonths||1,b=h?.maxMonths||84,g=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:h,isInsurance:d}),f=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=_t(l,t.minSum||tn,t.maxSum||nn);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:h,paymentType:"annuity",rate:g,sum:l||u,months:i||x}),N=((e,t)=>{const n=Math.ceil((t-e)/12),a=Math.floor(e/12)+1,l=new Array(Math.min(n-1,5)).fill(0).map(((e,t)=>a+t)),r=n+a-1;return l.concat(r)})(p,b);function v(e){s(_t(12*e,p,b))}return n("section",{className:"mt-7",children:a("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[a("div",{className:"flex justify-between",children:[a("div",{className:"mr-[42px]",children:[cn({calculatorParams:h,moneyValue:l,defaultSum:u,setMoneyValue:r}),sn({minMonths:p,maxMonths:b,monthsValue:i,defaultMonths:x,setMonthsValue:s}),n("div",{className:"flex mb-7",children:N.map(((e,t)=>function(e,t,l){const r=ln(e);return n("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:()=>l(e),children:a("span",{className:"font-semibold text-sm",children:[e," ",r]})},String(t))}(e,t,v)))}),n(Ct,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:c}),n(Ct,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:d,onChange:m})]}),on(f,g)]}),a("div",{className:"flex items-center",children:[n(J,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),n("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),mn=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:{icon:"CardIcon"}},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:{icon:"ChartSquareIcon"}},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:{icon:"DiscountShapeIcon"}}],hn=l((({className:e="",context:t,tabs:l=mn,anchor:r=null})=>{const[i,o]=t.useState(0);return a("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,id:r,children:[n(s,{className:"w-full text-center mb-8",headingType:en(e),title:"Калькулятор"}),n(Kt,{tabs:l,currentTabIndex:i,onTabClick:o}),n(dn,{context:t,directoryName:l[i]?.directoryName})]})}));async function un(){try{const e=await fetch(xn);return await e.json()}catch(e){console.error(e)}}const xn="/api/v1/exchangerates.json",pn=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),bn=e=>e?pn.format(e):"",gn="font-light text-left font-normal text-sm text-secondary-text",fn={USD:"DollarIcon",EUR:"EuroIcon"},Nn=l((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:gn,children:"Валюта"}),n("th",{className:`${gn} pl-11`,children:"Купить"}),n("th",{className:`${gn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>vn(e)))})]}))),vn=e=>{const t=e?.currency?.currency;return a("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:a("div",{className:"flex items-center",children:[t?n(x,{image:{icon:fn[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:bn(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:bn(e.saleExchangeRate)})]},t)},yn=l((({className:e="",address:t,distance:l})=>a("div",{className:`flex text-sm ${e}`,children:[n(x,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),a("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?a("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),wn=l((({className:e="",id:t,name:a,type:l="text",placeholder:r})=>n("input",{className:e,id:t,name:a||t,type:l,placeholder:r}))),In=l((({className:e="",id:t,name:a,children:l})=>n("select",{className:e,id:t,name:a||t,children:l}))),kn=l((({className:e="",value:t,selected:a,children:l})=>n("option",{className:e,value:`${t}`,selected:a,children:l}))),Cn=l((({codes:e,className:t=""})=>a("div",{className:`grid gap-3.5 ${t}`,children:[Sn("Хочу продать",e),Sn("Получу",e,"USD"),n(J,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function Sn(e,t,l){return a("div",{className:"relative flex items-center",children:[n(wn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(In,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(kn,{value:e,selected:e===l,children:e},String(t))))}):null]})}const $n=["USD","EUR"],Tn=["RUB","USD","EUR"],Mn=[{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:"Американский доллар"}}],Dn={address:"Москва, ул.Ленина д.28",distance:"6км"},An=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:r=null})=>{const i=function(e){const{data:t}=e(xn,un);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==$n.indexOf(e?.currency?.currency||"")))||Mn;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:r,children:n(ie,{context:t,title:n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n(Nn,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(yn,{...Dn})]}),i?.length?n(Cn,{className:"grow",exchangeCurrencyItems:i,codes:Tn}):null]})})})})),Pn=["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"],Rn={"bg-white":"text-primary-main",transparent:"text-white"},Ln={"bg-white":"text-black",transparent:"text-white"},Vn=l((({className:e="",href:t,logo:l,children:r=l?.title,targetBlank:i,bgColor:s="bg-white",hideTitle:o})=>a("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[l?.image?.src?n(x,{image:l.image,className:Rn[s],width:"40",height:"45",asSVG:!0}):n(It,{className:`${Rn[s]} w-10`,viewBox:"0 0 40 45",paths:Pn.map((e=>({d:e})))}),o?null:Bn(r,s,l?.title)]}))),Bn=(e,t,a)=>n("span",{className:`${Ln[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),jn=l((({className:e,context:t})=>{const{term:l,setTerm:r}=t.useSearch();return a("form",{className:`relative ${e||""}`,children:[a("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[24px] h-[24px]",children:n(x,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input"}),n(J,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),_n=l((({className:e="",items:t,hasButton:l,context:r})=>{const i=r.useRouter(),{handlerDecorator:s}=r;return a("div",{className:e,children:[t?.length?t.map(Gn):null,l?n(J,{version:"primary",className:"mb-6 w-full",...E({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Gn=(e,t)=>{const{type:l,text:r,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:En(l,r)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},En=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${On(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},On=e=>e.replaceAll(/\D/g,""),Wn=l((({links:e,className:t="",context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return n("div",{className:t,children:e?.length?n("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)=>n(Fn,{index:t,...E({router:l,handlerDecorator:r},e)},String(t))))}):null})})),Fn=l((({className:e="",index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),Un=e=>t=>e?.href===t?.href,Hn=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(Un(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Un(e))))));var n,a,l};function Zn(e){const{data:t}=e(qn(),zn);return t||{}}async function zn(){const e=await fetch(qn());return await e.json()}function qn(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Jn=l((({className:e="",items:t,context:a})=>{const l=Zn(a.useAsyncData),r=Hn(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:r?.map(((e,t)=>Xn(e,t,i)))})})),Xn=(e,t,{router:l,handlerDecorator:r})=>{const{text:i,href:s,items:o,target:c}=e;return a("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(Kn,{...E({router:l,handlerDecorator:r},e),index:t},String(t))))]},String(t))},Kn=l((({text:e,href:t,target:a,index:l})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:a||"_self",children:e||`Раздел ${l}`}))),Qn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Yn=l((({href:e,version:t="primary"})=>{const{icon:a,width:l,height:r,label:i}=Qn.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;const s="primary"===t;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-main-divider border-solid border-[1px] hover:bg-primary-main"} ${s?"hover:text-black":""}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:a?n(x,{image:{...a,iconVersion:"normal"},imageClassName:s?"group-hover:text-white":"",width:l,height:r,asSVG:!0}):null})})),ea=l((({className:e="",media:t,version:l,context:r,children:i})=>{const s=r.useRouter(),{handlerDecorator:o}=r;return a("div",{children:[n("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>n(Yn,{version:l,...E({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),ta=l((({className:e,links:t,context:l})=>{const r=l.useRouter(),{handlerDecorator:i}=l;return a("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(na,{index:t,...E({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),na=l((({className:e,index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),aa="w-[204px]",la=l((({className:e,documents:t,relatedEnterprises:l,contacts:r,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:d=null})=>a("footer",{className:`px-9 pt-9 pb-10 bg-white ${e||""}`,id:d,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(Vn,{className:aa}),n(jn,{context:c,className:"grow"})]}),a("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(_n,{items:r,context:c,hasButton:!0}),n(ea,{media:i,context:c,children:"Соцсети"}),n(ea,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(Jn,{className:"pt-[3px]",context:c,items:o})]}),n(Wn,{className:"mt-[98px]",links:l,context:c}),n(ta,{links:t,context:c})]}))),ra=l((({className:e="",title:t,description:l,calendar:r,anchor:i=null})=>a("section",{className:`font-sans bg-white p-[50px] ${e}`,id:i,children:[n(s,{headingType:"h3",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:l}),r?ia(r):null]}))),ia=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return a("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md text-center",children:l.map((e=>sa(e,t)))}),n("div",{className:"flex w-full",children:l.map(((e,t)=>a("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[n("div",{className:"flex",children:oa(e)}),a("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.blackText})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},sa=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),oa=e=>e.month.map((e=>e.image?.src?n("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:n(x,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),ca=(e,t,n=((e,t)=>t.startsWith(e)))=>n(R(e),(e=>(e||"").replace(j,""))(R(P(e)?t.href:t.pathname))),da=e=>t=>ca(t.href,e),ma=e=>t=>t.items?.some(da(e))||ca(t.href,e)||((e,t)=>L(e)===L(t.href))(t.href,e),ha=l((({className:e="",text:t,href:a,target:l,active:r,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:d="bg-white"})=>n("a",{className:`${ua(d,r,i)} ${e}`,href:a,target:l,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:xa(d,r,i),children:t||o})}))),ua=(e,t,n)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},xa=(e,t,n)=>{let a="text-white";return"bg-white"===e&&(a=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${a} font-sans font-light text-sm`},pa=l((({className:e="",children:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":a,children:t}))),ba={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},ga={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},fa={"bg-white":"black",transparent:"white"},Na=l((({context:e,className:t,defaultLocation:l="",bgColor:r="bg-white"})=>{const[i,s]=e.useGeolocation(l);return a("div",{className:`flex items-center ${t||""}`,children:[n(ha,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:r}),n(ha,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:r}),n(pa,{className:`mr-5 ${ba[r]}`,ariaLabel:"Поиск по сайту",children:n(x,{image:{icon:"LoupeIcon",iconVersion:fa[r]},className:"h-full",asSVG:!0})}),n(pa,{className:`${ga[r]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(x,{image:{icon:"GridIcon",iconVersion:fa[r]},className:"h-full bg-secondary-light rounded-full",asSVG:!0})})]})})),va=e=>(t=[])=>{const n=t?.filter(da(e));var a;return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):null},ya="absolute left-0 -bottom-3 w-full h-[2px]",wa=l((({className:e="",text:t,href:l,target:r,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:d})=>a("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:r,onClick:s,"data-item-name":d,children:[n("span",{className:Ia(c,i),children:t||o}),i?n("div",{className:ka(c,i)}):null]}))),Ia=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},ka=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${ya}`:ya,Ca=()=>!("undefined"!=typeof window&&window.document&&window.document.createElement),Sa=!Ca()?new IntersectionObserver((e=>{const t=window.document.querySelector("[data-header-submenu-visible=toggled]"),[n,a]=["[data-item-name=header-submenu]","[data-item-name=dots-header-submenu]"].map((e=>Array.from(window.document.querySelectorAll(e))));const l={};e.forEach((e=>{l[e.target.toString()]=e.isIntersecting}));const r=$a(l,a,"hidden");$a(l,n,"invisible"),t&&(r?t.classList.remove("hidden"):t.classList.add("hidden"))}),{root:window.document,threshold:1}):void 0,$a=(e,t,n)=>{const a="hidden"!==n;return t.some((t=>{const l=t.toString(),r=a?!e[l]:e[l];return l in e&&t.classList.toggle(n,r),a?t.classList.contains("hidden"):!t.classList.contains("hidden")}))},Ta={"bg-white":"bg-primary-text",transparent:"bg-white"},Ma=l((({context:e,subItems:t,bgColor:l})=>{const[r,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o}=e;setTimeout((()=>{if(Ca())return;globalThis.document.querySelectorAll("[data-item-name=header-submenu]").forEach((e=>{Sa?.observe(e)}))}),200);const c=va(s)(t),d=t?.map((e=>n(wa,{className:"mr-8",active:e===c,...E({router:s,handlerDecorator:o},e),dataItemName:"header-submenu",bgColor:l},e.href)));return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:d}),Da({subMenuIsShow:r,toggleSubMenu:()=>i(!r),subItems:t,bgColor:l,router:s,handlerDecorator:o})]})})),Da=({subMenuIsShow:e,toggleSubMenu:t,subItems:l,bgColor:r,router:i,handlerDecorator:s})=>a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(e?"bg-white rounded-md shadow-blue-gray/24":""),"data-header-submenu-visible":"toggled",children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:t,"aria-label":""+(e?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(r).map(Pa)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(e?"":"hidden"),"aria-hidden":!e,children:Aa(l,i,s)})]}),Aa=(e,t,a)=>e?.map((e=>n("a",{...E({router:t,handlerDecorator:a},e),"data-item-name":"dots-header-submenu",className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),Pa=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Ta[e]}`},String(t)),Ra={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},La=l((({className:e="",defaultLocation:t="Москва",showSubMenu:l=!0,bgColor:r="bg-white",context:i,topItems:s,anchor:o=null,logo:c})=>{const d=i.useRouter(),m=Zn(i.useAsyncData),{handlerDecorator:h}=i,u=Hn(m.topItems,s),x=u.find(ma(d)),p=u.map(((e,t)=>n(ha,{active:e===x,...E({router:d,handlerDecorator:h},e),"aria-label":e.text,bgColor:r},String(t))));return n("header",{className:`pt-6 pb-8 px-20 ${r} ${e}`,id:o,children:a("div",{className:"container",children:[a("div",{className:"flex items-center",children:[n(Vn,{className:"mr-8",bgColor:r,logo:c}),p,n(Na,{context:i,className:"ml-auto",defaultLocation:t,bgColor:r})]}),n("div",{className:`mt-6 h-[1px] ${Ra[r]}`}),l&&x?.items?.length?n(Ma,{context:i,subItems:x.items,bgColor:r}):null]})})})),Va=l((({className:e="",title:t,description:l,image:r,benefits:i,sum:o,monthLimit:c})=>a("section",{className:`px-[100px] py-[50px] bg-white text-primary-text ${e}`,children:[t?n(s,{headingType:"h3",title:t,className:"text-center"}):null,l?n("div",{className:"text-center text-md mt-3",children:l}):null,n("div",{children:a("div",{className:"mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]",children:[r?.src?n(x,{image:r}):null,a("div",{className:"w-[558px] m-auto",children:[i?n("div",{className:"flex flex-col gap-4",children:i.map(Ba)}):null,a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[o?ja("Страховая сумма:",o,Boolean(c)):null,c?ja("Ежемесячный лимит:",c,Boolean(o)):null]})]})]})})]})));function Ba(e,t){return a("div",{className:"flex items-center gap-5",children:[e?.icon?n(x,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light",image:e.icon,width:"24",height:"24",asSVG:!0}):null,a("div",{children:[e?.label?n("div",{className:"text-title-2xs",children:e.label}):null,e?.description?n("div",{className:"mt-2 font-light text-secondary-text",children:e.description}):null]})]},String(t))}function ja(e,t,l){return a("div",{className:`flex justify-between items-center gap-2 w-full ${l?"w-fit":"w-full"}`,children:[n("span",{className:"text-secondary-text text-base",children:e}),a("span",{className:"text-primary-main text-title-2xs",children:[St(t)," ₽"]})]})}const _a="absolute w-12 h-12 min-h-12 max-h-12 top-1 z-10 mt-[25px] bg-white rounded-full text-primary-text",Ga=l((({className:e="",context:t,cards:l=[],anchor:r=null})=>{const[i,s]=t.useState(0),[o,c]=t.useState(0),d=l?.length,m=l?.length>2&&d>o+2,h=o>0;return n("section",{id:r,className:`min-w-full ${e}`,children:a("div",{className:"relative mt-7 overflow-hidden",children:[d>1?Ea({tabsShift:o,cards:l,activeSlideIndex:i,isLastShift:d===o+2,setActiveSlideIndex:s}):null,h?a("div",{children:[n(Pe,{className:`${_a} left-0 top-9`,onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),n("div",{className:"absolute top-0 left-0 h-[168px] w-[84px] bg-opacity-from-white"})]}):null,m?a("div",{children:[n(Pe,{className:`${_a} right-0 top-9 rotate-180`,onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n("div",{className:"absolute top-0 right-0 h-[168px] w-[100px] bg-opacity-to-white"})]}):null]})})}));function Ea({tabsShift:e,cards:t,activeSlideIndex:l,isLastShift:r,setActiveSlideIndex:i}){return n("div",{style:{transform:`translateX(-${r?460*e-240:460*e}px)`},className:"duration-1000",children:n("div",{className:"w-full flex flex-nowrap gap-3.5 pb-[38px] px-[50px]",children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:r}){const i=t===l;return a("button",{type:"button",onClick:r,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(i?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?n(x,{className:"h-[108px] w-[108px] p-3 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"24",height:"24"}):null,a("div",{className:"flex gap-3.5",children:[e?.sum?Oa("страховая сумма",e.sum):null,e?.fee?Oa("страховой взнос",e.fee):null]}),Wa(i)]},String(t))}({slide:e,i:t,activeSlideIndex:l,onClick:()=>i(t)})))})})}function Oa(e,t){return a("div",{className:"flex flex-col text-left",children:[a("span",{className:"whitespace-pre text-title-2xs",children:[St(t)," ₽"]}),n("span",{className:"whitespace-pre text-secondary-text font-light text-base mt-1",children:e})]})}function Wa(e){return e?n(x,{className:"h-[24px] w-[24px] min-w-[24px] min-h-[24px] absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const Fa=l((({className:e="",context:t,title:l,insuranceTabs:r=[],button:i,anchor:o=null})=>{const c=r.map((e=>e.cards)),[d,m]=t.useState(0);return a("section",{id:o,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,children:[l?n(s,{className:"text-center",title:l,headingType:"h3"}):null,n("div",{className:"p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]",children:r.map(((e,t)=>function({title:e,i:t,activeSlideIndex:a,onClick:l}){return n("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m-md "+(t===a?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:d,onClick:()=>m(t)})))}),n("div",{className:"flex",style:{transform:`translateX(-${d}00%)`},role:"list",children:Ua({context:t,className:e,insuranceGalleries:c})}),i?.text?n("div",{className:"flex justify-center",children:n(J,{className:"box-border p-4 h-14 w-full max-w-[240px]",version:i?.version||"primary",href:i.href,children:i.text})}):null]})})),Ua=({insuranceGalleries:e,context:t,className:a})=>e?.length?e.map((e=>n(Ga,{context:t,className:a,cards:e}))):null;const Ha=l((({className:e="",context:t,title:l="Мобильное приложение",qr:r,buttons:i=[],anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ie(e)} ${we(e)} `,id:o,children:n(ie,{context:t,title:l?n(s,{headingType:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}):null,buttons:i?.length?n(Q,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:a("div",{className:"flex items-center",children:[r?.src&&r?.href&&n("a",{href:r.href,target:"_blank","aria-label":l,children:n("img",{src:r.src,alt:l,title:l,width:"164",height:"164",className:"w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light"})}),n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),Za=l((({className:e,text:t,onClick:a,href:l,target:r,isActive:i})=>n("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:a,href:l,target:r,children:t}))),za=l((({className:e,context:t,title:l,buttons:r,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=va(s)(r);return a("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,id:i,children:[n("h2",{className:"font-medium text-xl m-0",children:l}),r?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:r.filter((({text:e})=>e)).map(((e,t)=>n(Za,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...E({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),qa=l((({className:e="",text:t,active:a,children:l,onClick:r,href:i,target:s="_self"})=>n("a",{className:Ja(e,a),target:s,href:i,onClick:r,children:n("span",{className:Xa(a),children:t||l})}))),Ja=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,Xa=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-m-md`,Ka=l((({className:e="",navigatorTabs:t,context:a,anchor:l=null})=>{const r=globalThis.location?.href;return n("section",{className:`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${e}`,id:l,children:t?t.map(Qa(a,r)):null})})),Qa=(e,t)=>(a,l)=>{const{useRouter:r,handlerDecorator:i}=e,s=r(),o=V(t),c=o?a.href===o:0===l;return n(qa,{active:c,...E({router:s,handlerDecorator:i},a)},a.href)},Ya="transition-all duration-300 max-h-0 overflow-hidden",el=l((({blocks:e=[],context:t,hiddenBlocksNum:l=0,foldButtonClasses:r,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,render:c=(e=>e)})=>{const d=_t(l,0,e.length),{icon:m,handleToggle:u,isActive:x}=(({context:e,initialState:t=!1})=>{const[n,a]=e.useState(t);return{icon:n?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;a(!n);const l=t.previousSibling.getElementsByClassName(Ya)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:n}})({context:t,initialState:o});return e?a("div",{children:[tl(e,c,{blocksToHide:d,isActive:x}),l?a("button",{className:r||"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer","data-theme":s,onClick:u,children:[n("span",{className:"pr-3",children:x?"Скрыть":i}),n(h,{name:m,iconVersion:"white",width:"20",height:"20",asSVG:!0})]}):null]}):null})),tl=(e,t,{blocksToHide:l,isActive:r})=>{const i=e.slice(0,e.length-l),s=e.slice(-l);return t(a("div",{children:[i,n("div",{className:Ya,children:s})]}),r)},nl=l((({label:e,blocks:t,columns:a=1,context:l,dataTheme:r,isUnfolded:i})=>{const s=qe({context:l,className:"box-border p-5",columns:a,blocks:t});return n("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?n(el,{foldButtonDataTheme:r,hiddenBlocksNum:t?.length,blocks:s,isUnfolded:i,context:l,foldButtonLabel:e,render:(e,t)=>n(al,{columns:a,isActive:t,children:e})}):null})})),al=l((({columns:e,children:t,isActive:a})=>n("div",{className:`box-border w-full ${a?"p-9":""} ${e>1?"flex flex-wrap":""}`,children:t}))),ll=l((({blockItems:e,colorPalette:t,context:a,className:l=""})=>n("section",{className:`font-sans bg-white text-primary-text ${l}`,children:e?.length?n("div",{className:"list-none m-0 p-0",children:e.map(((e,l)=>n(nl,{...e,dataTheme:t,context:a},`BlockItem${l}`)))}):null}))),rl=l((({className:e,context:t,title:l,description:r="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ie(e)} ${we(e)} `,id:i,children:a(ie,{context:t,title:l?n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[r?n(Y,{className:"mt-4 max-w-[600px]",description:r}):null,n("figure",{className:"m-0 min-w-[600px]",children:il()})]})}))),il=(e=3)=>ol(100,e).map((e=>Math.floor(e))).map(sl),sl=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ol=(e,t)=>[e].concat(t>0?ol(e/1.618,t-1):[]),cl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},dl={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ml={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},hl=l((({className:e="",context:t,slides:l=[],version:r="primary",anchor:i=null})=>{const s=l.map((e=>e.nav)),o=l.map((e=>e.productBlock)),[c,d]=t.useState(0);return a("section",{id:i,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${cl[r]}`,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${c}00%)`},role:"list",children:o.map(((e,a)=>function(e,t,a){const{version:l}=e,r=l?dl[l].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(de,{className:`pl-[50px] z-[1] ${r}`,context:a,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:r},a,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:s.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:r,version:i}){const s=t===l,o=s?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${ml[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${dl[i].title}`,d=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${dl[i].text}`,m="secondary"===i?"border-white/50":"border-black/50";return n("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${o} ${m}\n `,children:a("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${c}`,children:e?.title}),n("div",{className:`text-secondary-text ${d}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>d(t),version:r})))})]})}));const ul={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xl=l((({className:e="",context:t,title:l="Акции и спецпредложения",date:r,description:i,buttons:o=[],version:c="primary",anchor:d=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ul[c]} ${Ie(e)} ${we(e)} `,id:d,children:n(ie,{context:t,title:l?n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(Q,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:a("div",{className:"mt-1.5",children:[r?n("div",{className:"text-sm mb-2",children:pl(r)}):null,n("div",{className:"text-base",children:i})]})})})));function pl(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const bl=l((({context:e,className:t="",title:l,description:r,items:i,image:o,version:c,socialMedia:d})=>n("section",{className:`border border-solid box-border p-[30px] min-w-[524px] ${t}`,role:"listitem",children:a(ie,{context:e,className:"flex justify-between",title:l?n(s,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:l}):null,image:o?.src&&n(x,{className:"mt-auto ml-7",image:o}),children:[r?n(Y,{className:"text-left",description:r}):null,i?.length?n(re,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:c}):null,n(ea,{className:"pt-[42px] pb-0",media:d,version:c,context:e})]})}))),gl="absolute top-0 bottom-0 w-[84px]",fl=l((({context:e,recommendations:t=[],className:l="",title:r,version:i,anchor:o=null})=>{const[c,d]=e.useState(0),m="secondary"===i?"border-white/50":"border-main-stroke";return a("section",{className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${l}`,id:o,children:[r?n(s,{headingType:"h2",className:"mb-6",title:r}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(Nl({context:e,version:i,className:m})):null}),vl({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:d}),n("div",{className:`${gl} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${gl} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Nl=({context:e,version:t,className:a})=>(l,r)=>n(bl,{context:e,...l,version:t,className:a},String(r)),vl=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const r=e>2,i=r&&e-t>2;return a("div",{children:[r&&t>0?n(Pe,{className:"absolute top-1/2 left-8 z-10 mt-6",onClick:()=>l(t-1),ariaLabel:"Пролистать влево"}):null,i?n(Pe,{className:"absolute top-1/2 right-8 z-10 mt-6 rotate-180",onClick:()=>l(t+1),ariaLabel:"Пролистать вправо"}):null]})},yl=l((({className:e="",title:t,showLines:l=!0,steps:r=[],button:i,anchor:o=null})=>{const c=r.length>3;return a("section",{className:["box-border font-sans text-primary-text bg-white",c?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",e].join(" "),id:o,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),r?.length?a("div",{className:"box-border "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:W(n("div",{className:"h-0.5 w-full bg-secondary-light "+(l?"":"opacity-0")}))(r.map(wl))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:r.map(((e,t)=>Il(e,t,Boolean(i?.text))))})]}):null,i?.text?n(J,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),wl=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("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?.icon&&n(x,{image:e.icon,width:"48",height:"48"})||n("span",{className:"font-normal text-title-sm text-secondary-text",children:t+1})})},String(t)),Il=(e,t,l)=>a("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[a("div",{children:[e.label&&n("div",{className:"font-normal text-xl m-0 mt-4",children:e.label}),e.description&&n("div",{className:"font-light text-base text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]}),e?.button?.text&&!l?n(J,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:e.button?.href,children:e.button.text}):null]},String(t)),kl=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],Cl=l((({cell:e,isLastRow:t})=>n("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:n("div",{children:e.map(Sl)})}))),Sl=({label:e,description:t,list:l,image:r,buttons:i},s)=>a("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,l?.items?.length?$l(l):null,r?n(x,{image:r}):null,i?.length?Tl(i):null]},String(s)),$l=e=>n(re,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Tl=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},l)=>n(J,{className:(l>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:kl(e),rounded:t,appendLeft:e?n(x,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(l))))}),Ml=l((({row:{header:e,data:t},activeCardIndex:l,isLastRow:r})=>a(at,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(r?"":"border-solid"),children:a("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(x,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(ct,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(Cl,{cell:e,isLastRow:r},String(t))))}):null]}))),Dl=l((({className:e,context:t,title:l,description:r,rowHeaders:i,columns:o,anchor:c=null,hiddenRowsNum:d=0})=>{const[m,h]=t.useState(0),u=Al(o),x=Pl(i,u),p=gt({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:m,setActiveCardIndex:h}),b=x?.map(((e,t,{length:a})=>n(Ml,{row:e,isLastRow:t+1===a,activeCardIndex:m},String(t))));return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:c,children:[l?n(s,{headingType:"h2",className:"text-center "+(r?"mb-2.5":"mb-9"),title:l}):null,r?n("div",{className:"mb-9 text-center text-m-base",children:r}):null,x?.length?n(el,{blocks:b,hiddenBlocksNum:d,context:t,render:e=>n(Rl,{tableArrowScrollControlProps:p,children:e}),foldButtonLabel:"Развернуть"}):null]})})),Al=e=>e?.map((({data:e})=>e))||[],Pl=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),Rl=l((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:l}=t;return a("div",{role:"table",children:[a("div",{className:"relative",children:[e,n(pt,{...t})]}),l?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ll=l((e=>{const{tabs:t,currentTag:a,onTabClick:l,className:r="",isShowCounter:i=!0}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${r}`,role:"tablist",children:t?.map(Vl(l,i,a))})})),Vl=(e,t,l)=>(r,i)=>{const s=l===r.tag,o=s?"text-white":"text-secondary-text group-hover:text-primary-main",c="min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm \n "+(s?"bg-white/30 text-white":"bg-secondary-light text-secondary-text");return n("div",{className:`flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${s?"bg-primary-main":"group bg-white"}`,role:"tab",onClick:()=>e(r.tag),"aria-selected":String(s),tag:r?.tag,children:a("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?n("h3",{className:`mr-8 ${o}`,children:r?.title}):null,t?n("div",{className:`flex items-center justify-center ${c}`,children:n("span",{children:r.count})}):null]})},String(i))};function Bl(e){return e?e.filter(Boolean).join(" "):""}const jl={ProductBlock:be,ProductTile:Te},_l=l((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-2 box-border",children:e?.length?e.map(Gl(t)):null}))),Gl=e=>(t,a)=>{const l=t?.blockType;if(!l||!(l in jl))return null;const r=Bl(t?.style);return n(jl[l],{context:e,...t,className:r},`block_${a}`)},El=l((({className:e="",tabs:t,context:l,anchor:r=null,groupBlocks:i=[]})=>{const[s,o]=l.useState(t?.[0]?.tag),c=(d=i,(m=s)?d.filter((e=>e?.tags?.includes(m))):d);var d,m;const h=t?.map((e=>{const t=e.tag?i.filter((t=>t?.tags?.includes(`${e.tag}`))).length:i.length;return{...e,count:t}}));return a("section",{id:r,className:`box-border gap-1 h-12 ${e}`,children:[h?.length?n(Ll,{currentTag:s,onTabClick:o,tabs:h}):null,i.length?n(_l,{context:l,groupBlocks:c}):null]})}));function Ol(e=""){const t=ye(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Wl=l((({className:e="",title:t,subtitle:l,bonusBenefits:r,anchor:i=null})=>a("section",{className:`font-sans text-primary-text bg-white p-50 flex flex-col ${e}`,id:i,children:[t?n(s,{headingType:"h3",className:"text-center mb-[10px]",title:t}):null,l?n("span",{className:"text-md font-normal text-center",children:l}):null,r?.length?n("div",{className:`grid gap-1 ${Ol(e)}`,children:r.map(Fl)}):null]}))),Fl=(e,t)=>a("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?n(x,{className:"h-[180px] w-[160px] min-w-[160px] min-h-[160px]",image:e.icon,width:"160",height:"180"}):null,n("div",{children:e?.label?n("span",{className:"title-2xs text-center m-0",children:e.label}):null})]},String(t)),Ul={Accordion:Ye,BenefitsBlock:et,Bonus:nt,ComparisonTable:Nt,Calculator:Jt,CreditCalculator:hn,ExchangeRateTile:An,Footer:la,Gallery:Fe,GracePeriod:ra,Header:La,Headline:v,Insurance:Va,InsuranceAmountBlock:Fa,LinkDocs:M,MiniGallery:Ue,MobileAppTile:Ha,NavigatorTabs:Ka,PictureText:A,ProductBlock:be,ProductGallery:hl,ProductTile:Te,PromoTile:xl,OtherProducts:ll,Recommendation:fl,StepsBlock:yl,TariffsTable:Dl,TextBlock:fe,Tile:Ce,Navigation:za,Placeholder:rl,GroupBlock:El,BonusBenefitsBlock:Wl},Hl=l((({className:e,onClick:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":a,children:Zl()}))),Zl=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},zl=l((({className:e,context:t,anchor:l=null})=>{const r=t.useLikeService();return a("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:l,children:[n(Hl,{onClick:r.like,ariaLabel:"Поставить отметку «лайк»"}),n(Hl,{onClick:r.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:r.likeCount})]})})),ql=!Ca(),Jl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Xl=l((({className:e="",context:t,blocksRegistry:l,data:{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:d=Jl})=>{const{header:m}=s,h=t.useRouter();return ql&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const a=t?.getBoundingClientRect();a&&a.top>0&&a.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),a("section",{className:`relative ${Bl(r)} ${e}`,"data-theme":c,children:[m?.blocks?.length?n("div",{className:`${Bl(m?.style)}`,children:m.blocks.map(((e,n)=>Kl({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Kl({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,o?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(zl,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Kl({block:e,blockDecorator:t,blocksRegistry:a,context:l},r){const{type:i}=e;i&&i in a||console.warn(`No block with "${i}" is registered`);const s=a[i||"Placeholder"]||rl;return t({blockClassName:`scroll-mt-12 ${Bl(e.style)}`,block:e,render:e=>{const{version:t,content:a,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,anchor:o,...a},`${i}-${r}`)}},`block-${r}`)}e.Blocks=Ul,e.ContentPage=Xl,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(r)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:a}=await e.json();return globalThis.localStorage.setItem(r,JSON.stringify({token:n,name:a})),{token:n,name:a}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...a){if(!a.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:a})}),{likes:r}=await n.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=W,e.projectSettings=d,e.setup=t,e.url=B,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1 @@
1
+ <svg id="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" rx="12" fill="#42AB44"/><path d="M7 13.005 9.724 16 17 8" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -7,6 +7,7 @@ import type { GalleryContent } from './Gallery/GalleryContent';
7
7
  import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
8
8
  import type { GroupBlockContent } from './GroupBlock/GroupBlockContent';
9
9
  import type { HeaderContent } from './Header/HeaderContent';
10
+ import type { InsuranceAmountBlockContent } from './InsuranceAmountBlock/InsuranceAmountBlockContent';
10
11
  import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
11
12
  import type { LinkListContent } from './LinkList/LinkListContent';
12
13
  import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
@@ -23,7 +24,8 @@ import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
23
24
  import type { TextBlockContent } from './TextBlock/TextBlockContent';
24
25
  import type { TileContent } from './Tile/TileContent';
25
26
  import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
27
+ import type { InsuranceContent } from './Insurance/InsuranceContent';
26
28
  /**
27
29
  * @hidden
28
30
  */
29
- export declare type BlockContent = BenefitsBlockContent | BonusContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent | GroupBlockContent | BonusBenefitsBlockContent;
31
+ export declare type BlockContent = BenefitsBlockContent | BonusContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | InsuranceAmountBlockContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent | GroupBlockContent | BonusBenefitsBlockContent | InsuranceContent;