@redneckz/wildless-cms-uni-blocks 0.3.71 → 0.3.73
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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +29 -20
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/dist/components/Bonus/BonusContent.d.ts +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +1 -3
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +1 -1
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -1
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +16 -2
- package/dist/components/LinkDocs/LinkDocs.js +3 -12
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +9 -2
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/dist/react/IntersectionObserverTag.d.ts +2 -3
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/lib/components/Bonus/BonusContent.d.ts +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +1 -3
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +1 -1
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -1
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +16 -2
- package/lib/components/LinkDocs/LinkDocs.js +3 -12
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +9 -2
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/lib/react/IntersectionObserverTag.d.ts +2 -3
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +1 -3
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -1
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/Insurance/InsuranceContent.d.ts +16 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +9 -2
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +2 -3
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +1 -3
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -1
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/Insurance/InsuranceContent.d.ts +16 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +9 -2
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +2 -3
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +9 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +48 -12
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +46 -16
- package/mobile/src/components/Bonus/BonusContent.ts +1 -1
- package/mobile/src/components/ComparisonTable/TableCell.tsx +8 -7
- package/mobile/src/components/ContentPage/ContentPage.page.json +1 -1
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +5 -1
- package/mobile/src/components/Headline/Headline.tsx +3 -5
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -1
- package/mobile/src/components/Insurance/Insurance.tsx +2 -3
- package/mobile/src/components/Insurance/InsuranceContent.ts +23 -9
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +10 -12
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +3 -1
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +1 -1
- package/mobile/src/components/PictureText/PictureText.tsx +6 -7
- package/mobile/src/components/PictureText/PictureTextContent.ts +10 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +11 -3
- package/mobile/src/components/ProductTile/ProductTile.tsx +1 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +7 -1
- package/mobile/src/react/IntersectionObserverTag.tsx +3 -3
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +9 -1
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +72 -9
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +48 -12
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +46 -16
- package/src/components/Bonus/Bonus.fixture.tsx +3 -3
- package/src/components/Bonus/BonusContent.ts +1 -1
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +0 -9
- package/src/components/ComparisonTable/TableCell.mobile.tsx +8 -7
- package/src/components/ContentPage/ContentPage.page.json +1 -1
- package/src/components/ContentPage/ContentPageContext.tsx +5 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -7
- package/src/components/Headline/Headline.mobile.tsx +3 -5
- package/src/components/Headline/Headline.tsx +8 -5
- package/src/components/Headline/HeadlineContent.ts +2 -1
- package/src/components/Insurance/Insurance.fixture.tsx +2 -2
- package/src/components/Insurance/Insurance.tsx +2 -3
- package/src/components/Insurance/InsuranceContent.ts +23 -9
- package/src/components/LinkDocs/LinkDocs.example.json +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -6
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +10 -12
- package/src/components/LinkDocs/LinkDocs.tsx +13 -34
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +3 -1
- package/src/components/LinkDocs/linkDocsContentExample.ts +1 -1
- package/src/components/PictureText/PictureText.tsx +6 -7
- package/src/components/PictureText/PictureTextContent.ts +10 -2
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -3
- package/src/components/ProductBlock/ProductBlockContent.ts +11 -3
- package/src/components/ProductBlock/renderBenefit.tsx +3 -3
- package/src/components/ProductTile/ProductTile.tsx +1 -2
- package/src/components/ProductTile/ProductTileContent.ts +7 -1
- package/src/react/IntersectionObserverTag.tsx +3 -3
package/bundle/bundle.umd.min.js
CHANGED
|
@@ -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.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"},D=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})]}))),B={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},M=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 ${B[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 A=e=>e?.includes("//"),R=e=>(e||"").replace(/\/?\?.*/,""),P=e=>{if(!e||!A(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||!A(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var L=Object.freeze({__proto__:null,isURL:A,withoutQuery:R,getOrigin:P,getHash:V});const _="/mobile",j=(e,t)=>{if(!e)return e;const n=P(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function U({router:e,handlerDecorator:t=G},n){const a=((e,t)=>{if(!e)return e;const n=j(e,t)||"",a=t?.pathname.startsWith(_);return a&&!A(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!A(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 E=l((e=>{const{text:t,aboveText:l,appendLeft:r,appendRight:i}=e;return a("div",{className:F(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]})})),F=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:""},J="text-center font-sans select-none",q=l((e=>{const{text:t,aboveText:a,appendLeft:l,appendRight:r,children:i,disabled:s,rounded:o,...c}=e,d=i??n(E,{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:`${J} 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 ${J} ${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(q,e?{appendLeft:n(x,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(a))}(U({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(q,{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,{...U({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,isDotted:h=!0,className:u="",version:p="primary",role:b,anchor:g=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${u} ${ke[p]} ${Ie(u)} ${we(u)} `,role:b,id:g,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"===p?"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,p,h)]})})}));function Se(e,t,a){return e?.length?n(re,{items:e,isDotted:a,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,De(c||[],h),o?Me(o,h):null]})})));function De(e,t){return a("div",{className:"flex mt-5 mb-1",children:[e.length?n("div",{className:"mr-8",children:e.map(Be)}):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 Be(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}function Me(e,t="primary"){return n("div",{className:`text-sm mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Ae={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Re={normal:3,mini:4},Pe={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Ve={normal:380,mini:276},Le=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?je(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,r?.length?Ge(r,o,s):null]}),i?.text?_e(i):null]})}));function _e(e){return n(q,{className:"mt-6 w-full",appendLeft:e.icon&&n(x,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function je(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function Ge(e,t,a="primary"){return n(re,{className:"max-w-[308px] mt-2 text-sm "+("primary"===a?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:a})}const Ue=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<=Re[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*Ve[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 ${Pe[t]} ${Ae[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Le,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const Oe=l((({className:e,disabled:t,...a})=>n(q,{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})})));function We({handler:e,isShown:t,btnClass:l,className:r="",isDisabled:i=!1}){return a("div",{children:[t[0]||i?n(Oe,{className:`absolute z-10 ${l[0]} ${r}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||i?n(Oe,{className:`absolute z-10 rotate-180 ${l[1]} ${r}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const Ee=l((({context:e,cards:t=[],className:l="",version:r="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),d=t?.length>Re[r],m=d&&t?.length-o>Re[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(Ue,{context:e,cards:t,version:r,activeCardIndex:o,...s}),We({handler:[()=>c(o-1),()=>c(o+1)],isShown:[h,m],btnClass:["left-8","right-8"],className:"top-1/2"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),Fe=l((e=>n(Ee,{...e,version:"normal"}))),He=l((e=>n(Ee,{...e,version:"mini"}))),Ze=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)}`)})),Je={Headline:v,LinkDocs:D,TextBlock:fe,PictureText:M,ProductBlock:be,Tile:Ce,ProductTile:Te,Gallery:Fe,MiniGallery:He,LinkList:Ze},qe=({blocks:e,context:t,className:n,columns:a})=>e?.length?e.map(Xe({context:t,className:n,columns:a})):null,Xe=({context:e,columns:t,className:a})=>(l,r)=>{const i=l?.blockListType;if(!i||!(i in Je))return null;return n("div",{className:`${a} ${2===t?"w-1/2":""}`,children:n(Je[i],{context:e,...l,className:"!p-0"})},`block_${r}`)},Ke=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})}))),Qe=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(Ke,{isExpanded:i,blocks:l,context:r}):null]})})),Ye={left:"text-left",center:"text-center",right:"text-right"},et=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 ${Ye[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(Qe,{...e,context:r},`AccordionItem${t}`)))}):null]}))),tt=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(nt)}):null]}))),nt=(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)),at=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})]})})})),lt=l((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),rt="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",it="border-main-stroke border-solid border",st="border-main-divider border border-t-0 border-x-0",ot="w-[200px] mr-6",ct={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},dt=l((({children:e,activeCardIndex:t,columnWidth:a,version:l="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:ct[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] ${it} ${rt}`,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(q,{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})})})]}))),ht=l((({colHeaders:e,activeCardIndex:t,router:l,handlerDecorator:r})=>a(lt,{children:[n("div",{className:ot,role:"columnheader",scope:"col"}),n(dt,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(mt,{...e,link:e.link&&U({router:l,handlerDecorator:r},e.link)},String(t))))})]}))),ut=l((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:l})=>n("div",{className:`w-80 box-border flex flex-col ${it} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${l?rt:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${st} ${l&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>bt(e,t,l)))})}))),xt=(e=!1)=>"text-xl font-medium m-0 "+(e?"text-white":""),pt=(e=!1)=>"text-sm opacity-80 "+(e?"text-white":"text-secondary-text"),bt=({label:e,description:t},l,r)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:xt(r),children:e}):null,t?n("div",{className:pt(r),children:t}):null]},String(l)),gt=(e=!1)=>`text-sm py-7 ${st} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,ft=l((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:r,isFirstRow:i,isLastRow:s})=>a(lt,{children:[e?.title?n("div",{className:gt(s),children:e.title}):null,t?.length?n(dt,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>n(ut,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:r&&0===t},String(t))))}):null]}))),Nt=l((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:a,showNextButton:l,showPrevButton:r})=>e?n("div",{children:We({handler:[a,t],isShown:[r,l],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),vt=l((({rowData:e,activeCardIndex:t,isColoredFirstColumn:l,...r})=>a("div",{className:"relative",children:[e.map(((e,a,{length:r})=>n(ft,{row:e,isFirstRow:0===a,isLastRow:a+1===r,activeCardIndex:t,isColoredFirstColumn:l},String(a)))),n(Nt,{...r})]}))),yt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},wt=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=yt({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:u,setActiveCardIndex:x}),{isScrollAvailable:b}=p;return a("div",{children:[a("div",{role:"table",children:[d?.length?n(ht,{colHeaders:d,activeCardIndex:u,router:o,handlerDecorator:c}):null,h?.length?n(vt,{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]})})),It=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(wt,{context:t,columns:i,rowHeaders:r,isShowAllRow:m,isColoredFirstColumn:c,visibleRowLength:o}),o?kt({isShowAllRow:m,onClick:()=>h(!m)}):null]})})),kt=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:ot}),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 Ct(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),St);return n||{}}async function St(e){const t=await fetch(e);return await t.json()}const $t=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)))}))),Tt=[{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"}],Dt=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($t,{paths:Tt,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]})}))),Bt=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Mt=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," ",Bt(Math.round(t))," ",l]}):null]}))),At=3e4,Rt=3e6,Pt=Math.round(41.5),Vt=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:Bt(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 Lt(e){const{title:t,className:a="",calculatorParams:l,moneyValue:r,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=l?.minSum||At,d=l?.maxSum||Rt,m=[`От ${Bt(c)} ₽`,`До ${Bt(d)} ₽`];return n(Vt,{className:a,title:t,items:o?m:[],min:c,max:d,step:1e3,value:r||i,onChange:s})}const _t=10.2,jt=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||_t:t?.rateWithoutInsurance||_t:_t},Gt=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},Ut=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,Ot=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):Pt,Wt=(e,t,n)=>Math.max(t,Math.min(e,n));function Et(e){const{title:t,minMonths:a,maxMonths:l,monthsValue:r,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(Vt,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(l)}`],min:a,max:l,step:1,value:r||i,onChange:s})}function Ft(e,t){return t?.length?n(Q,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function Ht({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 Zt=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=Ct(e.useAsyncData,"directoryName").rows,b=Gt({tableRows:p,isAnnuity:c}),g=Ut(b),f=Ot(b),N=b?.minMonths||1,v=b?.maxMonths||84,y=jt({calculatorParams:b,isInsurance:u}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=Wt(l,t.minSum||At,t.maxSum||Rt);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:[Lt({title:"Сумма кредита, ₽",calculatorParams:b,moneyValue:r,defaultSum:g,setMoneyValue:i}),Et({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(Dt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),n(Dt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:h}),n(Dt,{className:"mt-3",text:"Комплексная страховая защита",checked:u,onChange:x})]})]}),n("div",{children:y?Ht({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n(Mt,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,Ft(e,l)]})]})}));function zt(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||At,s=t?.maxSum||Rt;return n(Vt,{title:"Стоимость недвижимости, ₽ ",items:[`От ${Bt(i)} ₽`,`До ${Bt(s)} ₽`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Jt(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||At,s=t?.maxSum||Rt;return n(Vt,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${Bt(i)} рублей`,`До ${Bt(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function qt({credit:e,period:t,taxRefund:l}){return a("div",{children:[n(Mt,{title:"Сумма кредита",value:e,postfix:"₽"}),n(Mt,{title:"Срок",value:t,postfix:"лет"}),n(Mt,{title:"Налоговый вычет",value:l,postfix:"₽"})]})}const Xt={CreditCalculatorForm:Zt,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=Ct(e.useAsyncData,"directoryName").rows,x=Gt({tableRows:u,isAnnuity:c}),p=Ut(x),b=Ot(x),g=x?.minMonths||1,f=x?.maxMonths||84,N=jt({calculatorParams:x,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[zt({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Jt({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Et({title:"Срок ипотеки, месяцев",minMonths:g,maxMonths:f,monthsValue:s,defaultMonths:b,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(Dt,{text:"Страхование жизни",checked:c,onChange:d}),n(Dt,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:m,onChange:h})]})]}),a("div",{children:[n("div",{children:N?Ht({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n(Mt,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:qt({credit:3892e3,period:15,taxRefund:65e4})}),Ft(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=Ct(e.useAsyncData,"directoryName").rows,p=Gt({tableRows:x,isAnnuity:!1}),b=Ut(p),g=Ot(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Lt({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:d,defaultSum:b,setMoneyValue:m}),Et({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:g,setMonthsValue:u})]}),n("div",{children:r?Ht({rate:r,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n(Mt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n(Mt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),Ft(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:[Lt({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:x,moneyValue:d,defaultSum:Ut(x),setMoneyValue:m,isShowItems:!1}),Lt({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:Ut(p),setMoneyValue:u,isShowItems:!1})]}),n("div",{children:b?Ht({rate:b,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n(Mt,{title:"Баллов за год",value:948841}),Ft(e,l)]})]})}))},Kt=({context:e,className:t})=>(a,l)=>{const r=a?.calcType;if(!r||!(r in Xt))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(Xt[r],{context:e,...a,className:"flex justify-between"})})},String(l))},Qt=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?Yt({tabsShift:d,tabsNav:i,activeSlideIndex:o,setActiveSlideIndex:c}):null,We({handler:[()=>m(d-1),()=>m(d+1)],isShown:[u,h],btnClass:["left-3","right-3"],className:"top-8"})]}),n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:s?.length?s.map(Kt({context:t,className:e})):null})]})}));function Yt({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"})]})}async function en(){try{const e=await fetch(tn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(nn)});return await e.json()}catch(e){console.error(e)}}const tn="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",nn={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},an=e=>e.reduce(((e,t)=>{const n=t.currency_first;if(!ln(t.rate_buy)&&!ln(t.rate_sell))return e;const a=n.code;return e.some((e=>e.code===a))||e.push({code:a,buy:Number(t.rate_buy),sell:Number(t.rate_sell)}),e}),[]),ln=e=>Math.round(e)>0;function rn(e=""){const t=ye(e);return t<=4?"h4":t<=8?"h3":"h2"}var sn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(sn||(sn={}));const on=new Intl.NumberFormat("ru",{style:"currency",currency:sn.RUB}),cn=e=>e?on.format(e):"",dn="font-light text-left font-normal text-sm text-secondary-text",mn={USD:"DollarIcon",EUR:"EuroIcon"},hn=l((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:dn,children:"Валюта"}),n("th",{className:`${dn} pl-11`,children:"Купить"}),n("th",{className:`${dn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>un(e)))})]}))),un=e=>{const t=e?.code;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:mn[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:cn(e.buy)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:cn(e.sell)})]},t)},xn=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]})]}))),pn=(e,t,n)=>{const a=Number(bn(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(a)},bn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),gn=e=>{return(t=[[e=>e.value!==sn.RUB&&e.oppositeValue!==sn.RUB,()=>e.handleConvert(e.value,sn.RUB)],[e=>e.value===sn.RUB&&e.oppositeValue===sn.RUB,()=>e.handleConvert(e.value,sn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};const fn=l((({className:e="",id:t,name:a,type:l="text",placeholder:r,pattern:i,value:s,onChange:o})=>n("input",{className:e,id:t,name:a||t,type:l,pattern:i,placeholder:r,value:s,onChange:e=>(e=>{const t=e.target.validity.valid?e.target.value:s;o(t)})(e)}))),Nn=l((({className:e="",id:t,name:a,children:l,value:r,onChange:i})=>n("select",{className:e,id:t,name:a||t,value:r,onChange:e=>i(e.target.value),children:l}))),vn=l((({className:e="",value:t,selected:a,children:l})=>n("option",{className:e,value:`${t}`,selected:a,children:l})));function yn(e){const{placeholder:t,rates:l,selected:r,value:i,setValue:s,setSelected:o}=e;return a("div",{className:"relative flex items-center",children:[n(fn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",placeholder:t,type:"text",value:i,onChange:s}),l.length?n(Nn,{className:"h-9 -translate-x-4",value:r,onChange:e=>o(e),children:l.map(((e,t)=>n(vn,{value:e.code,children:e.code},String(t))))}):null]})}const wn=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:r})=>{const[i,s]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||sn.RUB,selectBuy:r?.[0]?.code||sn.USD}),o=e=>{s((t=>({...t,...e})))};return a("div",{className:`grid gap-3.5 ${t}`,children:[yn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:In(i,o,r),value:i.inputSell,setValue:e=>Cn(o,r)(e,i.selectSell,i.selectBuy)}),yn({placeholder:"Получу",rates:r,selected:i.selectBuy,setSelected:kn(i,o,l),value:i.inputBuy,setValue:e=>Sn(o,l)(e,i.selectBuy,i.selectSell)}),n(q,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"https://coins.rshb.ru/exchange",target:"_blank",children:"Купить валюту"})]})})),In=(e,t,n)=>a=>{t({selectSell:a}),gn({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,l=e.selectBuy)=>{Cn(t,n)(e.inputSell,a,l)}})},kn=(e,t,n)=>a=>{t({selectBuy:a}),gn({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,l=e.selectSell)=>Sn(t,n)(e.inputBuy,a,l)})},Cn=(e,t)=>(n,a,l)=>{e({inputSell:bn(n),selectBuy:l});const r=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===a))?.sell;r&&e({inputBuy:String(pn(n,r,a===sn.RUB)||"")})},Sn=(e,t)=>(n,a,l)=>{e({inputBuy:bn(n),selectSell:l});const r=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===a))?.buy;r&&e({inputSell:String(pn(n,r,a===sn.RUB)||"")})},$n={address:"Москва, ул.Ленина д.28",distance:"6км"},Tn=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:r=null})=>{const i=function(e){const{data:t}=e(tn,en),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?an(n):n}(t.useAsyncData),o=i.filter((e=>e.buy));o.unshift({code:sn.RUB});const c=i.filter((e=>e.sell));return c.push({code:sn.RUB}),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:rn(e),title:l,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n(hn,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(xn,{...$n})]}),i.length&&o.length&&c.length?n(wn,{className:"grow",context:t,currencyRatesBuy:o,currencyRatesSell:c}):null]})})})})),Dn=["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"],Bn={"bg-white":"text-primary-main",transparent:"text-white"},Mn={"bg-white":"text-black",transparent:"text-white"},An=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:Bn[s],width:"40",height:"45",asSVG:!0}):n($t,{className:`${Bn[s]} w-10`,viewBox:"0 0 40 45",paths:Dn.map((e=>({d:e})))}),o?null:Rn(r,s,l?.title)]}))),Rn=(e,t,a)=>n("span",{className:`${Mn[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),Pn=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(q,{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:"Найти"})})]})})),Vn=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(Ln):null,l?n(q,{version:"primary",className:"mb-6 w-full",...U({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Ln=(e,t)=>{const{type:l,text:r,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:_n(l,r)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},_n=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${jn(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})}},jn=e=>e.replaceAll(/\D/g,""),Gn=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(Un,{index:t,...U({router:l,handlerDecorator:r},e)},String(t))))}):null})})),Un=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}`}))),On=e=>t=>e?.href===t?.href,Wn=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(On(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(On(e))))));var n,a,l};function En(e){const{data:t}=e(Hn(),Fn);return t||{}}async function Fn(){const e=await fetch(Hn());return await e.json()}function Hn(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Zn=l((({className:e="",items:t,context:a})=>{const l=En(a.useAsyncData),r=Wn(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)=>zn(e,t,i)))})})),zn=(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(Jn,{...U({router:l,handlerDecorator:r},e),index:t},String(t))))]},String(t))},Jn=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:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Xn=l((({href:e,version:t="primary"})=>{const{icon:a,label:l}=qn.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;const r="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"} ${r?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:a?n(x,{image:a,imageClassName:r?"group-hover:text-white":"",width:"24",height:"24",asSVG:!0}):null})})),Kn=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(Xn,{version:l,...U({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),Qn=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",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-2.5",children:t.map(((e,t)=>n(Yn,{index:t,...U({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),Yn=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}`}))),ea="w-[204px]",ta=l((({className:e,documents:t,relatedEnterprises:l,contacts:r,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:d=null})=>a("footer",{className:`p-9 bg-white ${e||""}`,id:d,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(An,{className:ea}),n(Pn,{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(Vn,{items:r,context:c,hasButton:!0}),n(Kn,{media:i,context:c,children:"Соцсети"}),n(Kn,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(Zn,{className:"pt-[3px]",context:c,items:o})]}),n(Gn,{className:"mt-[98px]",links:l,context:c}),n(Qn,{links:t,context:c})]}))),na=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?aa(r):null]}))),aa=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=>la(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:ra(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}`)))})]})},la=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),ra=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)),ia=(e,t,n=((e,t)=>t.startsWith(e)))=>n(R(e),(e=>(e||"").replace(_,""))(R(A(e)?t.href:t.pathname))),sa=e=>t=>ia(t.href,e),oa=e=>t=>t.items?.some(sa(e))||ia(t.href,e)||((e,t)=>P(e)===P(t.href))(t.href,e),ca="font-sans font-light text-sm",da=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:`${ma(d,r,i)} ${e}`,href:a,target:l,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:ha(d,r,i),children:t||o})}))),ma=(e,t=!1,n=!1)=>{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"}`},ha=(e,t=!1,n=!1)=>{if("bg-white"!==e)return`text-white ${ca}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${ca}`},ua=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}))),xa={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},pa={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},ba={"bg-white":"black",transparent:"white"},ga=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(da,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:r}),n(da,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:r}),n(ua,{className:`mr-5 ${xa[r]}`,ariaLabel:"Поиск по сайту",children:n(x,{image:{icon:"LoupeIcon",iconVersion:ba[r]},className:"h-full",asSVG:!0})}),n(ua,{className:`${pa[r]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(x,{image:{icon:"GridIcon",iconVersion:ba[r]},className:"h-full bg-secondary-light rounded-full",asSVG:!0})})]})})),fa=e=>(t=[])=>{const n=t?.filter(sa(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},Na="absolute left-0 -bottom-3 w-full h-[2px]",va=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:ya(c,i),children:t||o}),i?n("div",{className:wa(c,i)}):null]}))),ya=(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`},wa=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Na}`:Na,Ia={"bg-white":"bg-primary-text",transparent:"bg-white"},ka=l((e=>{const{menuVisible:t,toggleMenu:l,menuItems:r,bgColor:i,context:s}=e,{useRouter:o,handlerDecorator:c}=s,d=o();return a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:l,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(i).map(Sa)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:Ca(r,d,c)})]})})),Ca=(e,t,a)=>e?.map((e=>n("a",{...U({router:t,handlerDecorator:a},e),className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),Sa=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Ia[e]}`},String(t)),$a=l((({context:e,subItems:t=[],bgColor:l})=>{const[r,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o,IntersectionObserverTag:c}=e,[d,m]=e.useState(t.length),h=t.slice(d),u=fa(s)(t);return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:t.map(((e,t)=>{return n(c,{Tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?m((e=>Math.min(e,a))):m((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:n(va,{className:"mr-8 "+(d-1<t?"invisible":""),active:e===u,...U({router:s,handlerDecorator:o},e),bgColor:l})},String(t));var a}))}),h.length?n(ka,{context:e,menuVisible:r,toggleMenu:()=>i(!r),menuItems:h,bgColor:l}):null]})})),Ta={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Da=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=En(i.useAsyncData),{handlerDecorator:h}=i,u=Wn(m.topItems,s),x=u.find(oa(d)),p=u.map(((e,t)=>n(da,{active:e===x,...U({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(An,{className:"mr-8",bgColor:r,logo:c}),p,n(ga,{context:i,className:"ml-auto",defaultLocation:t,bgColor:r})]}),n("div",{className:`mt-6 h-[1px] ${Ta[r]}`}),l&&x?.items?.length?n($a,{context:i,subItems:x.items,bgColor:r}):null]})})})),Ba=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(Ma)}):null,a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[o?Aa("Страховая сумма:",o,Boolean(c)):null,c?Aa("Ежемесячный лимит:",c,Boolean(o)):null]})]})]})})]})));function Ma(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 Aa(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:[Bt(t)," ₽"]})]})}const Ra=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?Pa({tabsShift:o,cards:l,activeSlideIndex:i,isLastShift:d===o+2,setActiveSlideIndex:s}):null,We({handler:[()=>c(o-1),()=>c(o+1)],isShown:[h,m],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),h?n("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,m?n("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]})})}));function Pa({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 px-[50px]",children:n("div",{className:"w-full flex flex-nowrap gap-3.5 pb-[38px]",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?Va("страховая сумма",e.sum):null,e?.fee?Va("страховой взнос",e.fee):null]}),La(i)]},String(t))}({slide:e,i:t,activeSlideIndex:l,onClick:()=>i(t)})))})})}function Va(e,t){return a("div",{className:"flex flex-col text-left",children:[a("span",{className:"whitespace-pre text-title-2xs",children:[Bt(t)," ₽"]}),n("span",{className:"whitespace-pre text-secondary-text font-light text-base mt-1",children:e})]})}function La(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 _a=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:ja({context:t,className:e,insuranceGalleries:c})}),i?.text?n("div",{className:"flex justify-center",children:n(q,{className:"box-border p-4 h-14 w-full max-w-[240px]",version:i?.version||"primary",href:i.href,children:i.text})}):null]})})),ja=({insuranceGalleries:e,context:t,className:a})=>e?.length?e.map((e=>n(Ra,{context:t,className:a,cards:e}))):null;const Ga=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-код и скачайте приложение"})]})})}))),Ua=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}))),Oa=l((({className:e,context:t,title:l,buttons:r,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=fa(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(Ua,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...U({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),Wa=l((({className:e="",text:t,active:a,children:l,onClick:r,href:i,target:s="_self"})=>n("a",{className:Ea(e,a),target:s,href:i,onClick:r,children:n("span",{className:Fa(a),children:t||l})}))),Ea=(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`,Ha=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(Za(a,r)):null})})),Za=(e,t)=>(a,l)=>{const{useRouter:r,handlerDecorator:i}=e,s=r(),o=V(t),c=o?a.href===o:0===l;return n(Wa,{active:c,...U({router:s,handlerDecorator:i},a)},a.href)},za="transition-all duration-300 max-h-0 overflow-hidden",Ja=l((({blocks:e=[],context:t,hiddenBlocksNum:l=0,foldButtonClasses:r,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,render:c=(e=>e)})=>{const d=Wt(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(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: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})),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)},Xa=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(Ja,{foldButtonDataTheme:r,hiddenBlocksNum:t?.length,blocks:s,isUnfolded:i,context:l,foldButtonLabel:e,render:(e,t)=>n(Ka,{columns:a,isActive:t,children:e})}):null})})),Ka=l((({columns:e,children:t,isActive:a})=>n("div",{className:`box-border w-full ${a?"p-9":""} ${e>1?"flex flex-wrap":""}`,children:t}))),Qa=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(Xa,{...e,dataTheme:t,context:a},`BlockItem${l}`)))}):null}))),Ya=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:rn(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:el()})]})}))),el=(e=3)=>nl(100,e).map((e=>Math.floor(e))).map(tl),tl=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),nl=(e,t)=>[e].concat(t>0?nl(e/1.618,t-1):[]),al={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ll={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},rl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},il=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 ${al[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?ll[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 ${rl[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${ll[i].title}`,d=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${ll[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 sl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ol=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} ${sl[c]} ${Ie(e)} ${we(e)} `,id:d,children:n(ie,{context:t,title:l?n(s,{headingType:rn(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:cl(r)}):null,n("div",{className:"text-base",children:i})]})})})));function cl(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const dl=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(Kn,{className:"pt-[42px] pb-0",media:d,version:c,context:e})]})}))),ml="absolute top-0 bottom-0 w-[84px]",hl=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(ul({context:e,version:i,className:m})):null}),xl({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:d}),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"}`})]})})),ul=({context:e,version:t,className:a})=>(l,r)=>n(dl,{context:e,...l,version:t,className:a},String(r)),xl=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:a})=>{const l=e>2;return n("div",{children:We({handler:[()=>a(t-1),()=>a(t+1)],isShown:[l&&t>0,l&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-6"})})},pl=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(bl))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:r.map(((e,t)=>gl(e,t,Boolean(i?.text))))})]}):null,i?.text?n(q,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),bl=(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)),gl=(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(q,{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)),fl=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],Nl=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(vl)})}))),vl=({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?yl(l):null,r?n(x,{image:r}):null,i?.length?wl(i):null]},String(s)),yl=e=>n(re,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),wl=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},l)=>n(q,{className:(l>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:fl(e),rounded:t,appendLeft:e?n(x,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(l))))}),Il=l((({row:{header:e,data:t},activeCardIndex:l,isLastRow:r})=>a(lt,{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(dt,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(Nl,{cell:e,isLastRow:r},String(t))))}):null]}))),kl=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=Cl(o),x=Sl(i,u),p=yt({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:m,setActiveCardIndex:h}),b=x?.map(((e,t,{length:a})=>n(Il,{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(Ja,{blocks:b,hiddenBlocksNum:d,context:t,render:e=>n($l,{tableArrowScrollControlProps:p,children:e}),foldButtonLabel:"Развернуть"}):null]})})),Cl=e=>e?.map((({data:e})=>e))||[],Sl=(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(Nt,{...t})]}),l?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Tl=l((e=>{const{tabs:t,currentTag:a,onTabClick:l,className:r="",isShowCounter:i}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${r}`,role:"tablist",children:t?.map(Dl(l,i,a))})})),Dl=(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:o,children:r?.title}):null,t?n("div",{className:`flex items-center justify-center ml-8 ${c}`,children:n("span",{children:r.count})}):null]})},String(i))};function Bl(e){return e?e.filter(Boolean).join(" "):""}const Ml={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(Rl(t)):null}))),Rl=e=>(t,a)=>{const l=t?.blockType;if(!l||!(l in Ml))return null;const r=Bl(t?.style);return n(Ml[l],{context:e,...t,className:r},`block_${a}`)},Pl=l((({className:e="",tabs:t,context:l,anchor:r=null,groupBlocks:i=[],isShowCounter:s})=>{const[o,c]=l.useState(t?.[0]?.tag),d=(m=i,(h=o)?m.filter((e=>e?.tags?.includes(h))):m);var m,h;const u=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 ${e}`,children:[u?.length?n(Tl,{currentTag:o,onTabClick:c,tabs:u,isShowCounter:s}):null,i.length?n(Al,{context:l,groupBlocks:d}):null]})}));function Vl(e=""){const t=ye(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Ll=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 text-center ${e}`,id:i,children:[t?n(s,{headingType:"h3",className:"mb-[10px]",title:t}):null,l?n("span",{className:"text-md font-normal",children:l}):null,r?.length?n("div",{className:`grid gap-1 ${Vl(e)}`,children:r.map(_l)}):null]}))),_l=(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 m-0",children:e.label}):null})]},String(t)),jl={Accordion:et,BenefitsBlock:tt,Bonus:at,ComparisonTable:It,Calculator:Qt,ExchangeRateTile:Tn,Footer:ta,Gallery:Fe,GracePeriod:na,Header:Da,Headline:v,Insurance:Ba,InsuranceAmountBlock:_a,LinkDocs:D,MiniGallery:He,MobileAppTile:Ga,NavigatorTabs:Ha,PictureText:M,ProductBlock:be,ProductGallery:il,ProductTile:Te,PromoTile:ol,OtherProducts:Qa,Recommendation:hl,StepsBlock:pl,TariffsTable:kl,TextBlock:fe,Tile:Ce,Navigation:Oa,Placeholder:Ya,GroupBlock:Pl,BonusBenefitsBlock:Ll},Gl=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:Ul()}))),Ul=()=>{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"})]})},Ol=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(Gl,{onClick:r.like,ariaLabel:"Поставить отметку «лайк»"}),n(Gl,{onClick:r.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:r.likeCount})]})})),Wl=!("undefined"==typeof window||!window.document||!window.document.createElement),El=({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:d=El})=>{const{header:m}=s,h=t.useRouter();return Wl&&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)=>Hl({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)=>Hl({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(Ol,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Hl({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"]||Ya;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=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=d,e.setup=t,e.url=L,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,headingType:c="h2"})=>{const d=N[e];return a("section",{className:`p-[50px] flex flex-col gap-4 ${d.background} ${l}`,id:o,children:[r?n(s,{headingType:c,className:`text-primary-text ${d.text} ${f[t]}`,title:r}):null,i?n("p",{className:`text-base ${d.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={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},$=l((({context:e,className:t="",title:l,description:r,align:i="center",documents:s,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:d=null})=>a("section",{className:`font-sans text-primary-text p-[50px] bg-white ${t}`,id:d,children:[n(v,{className:"!p-0",title:l,description:r,context:e,align:i,headingType:"h3"}),n(C,{className:`mt-8 ${S[c]}`,columnsMode:c,documents:s,icon:o})]}))),T={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},D=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 ${T[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}):null,e?.description?n("div",{className:"font-normal text-sm "+("primary"===l?"text-secondary-text":""),children:e.description}):null]})]},String(t))}(e,t,i)))}):null]})]})));const B=e=>e?.includes("//"),M=e=>(e||"").replace(/\/?\?.*/,""),A=e=>{if(!e||!B(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},R=e=>{if(!e||!B(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var P=Object.freeze({__proto__:null,isURL:B,withoutQuery:M,getOrigin:A,getHash:R});const V="/mobile",L=(e,t)=>{if(!e)return e;const n=A(t?.href);return n?e.replace(n,"")||"/":e},_=e=>e;function j({router:e,handlerDecorator:t=_},n){const a=((e,t)=>{if(!e)return e;const n=L(e,t)||"",a=t?.pathname.startsWith(V);return a&&!B(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!B(a),r=!n.target||"_self"===n.target;l&&r&&(t.preventDefault(),e.push(a))}),n)}}const G=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 U(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const O=l((e=>{const{text:t,aboveText:l,appendLeft:r,appendRight:i}=e;return a("div",{className:W(e),children:[r||null,E(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]})})),W=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",E(e)?l:"h-12 w-12",a?"rounded-full":""].join(" ")},E=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Z="text-center font-sans select-none",z=l((e=>{const{text:t,aboveText:a,appendLeft:l,appendRight:r,children:i,disabled:s,rounded:o,...c}=e,d=i??n(O,{text:t,aboveText:a,appendLeft:l,appendRight:r,rounded:o});return n(s?q:J,{rounded:o,...c,children:d})})),J=l((({className:e="",ariaLabel:t,version:a="none",rounded:l,href:r,target:i,children:s,onClick:o,...c})=>n("a",{className:`${Z} inline-block cursor-pointer no-underline ${F[a]||""} ${l?"rounded-full":"rounded-md"} ${e}`,href:r,target:i,onClick:o,"aria-label":t,role:r?"link":"button",...c,children:s}))),q=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 ${Z} ${H[l]||""} ${r?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),X=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(z,e?{appendLeft:n(x,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(a))}(j({router:r,handlerDecorator:l},e),t)))}):null}));const K=l((e=>{const{className:t="",description:a}=e;return n("div",{className:`font-normal text-base ${t}`,children:a})})),Q={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"},Y={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ee=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:te(r)}):null,n("span",{children:l})]}))),te=e=>`${Q[e]} ${Y[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]}`,ne={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ae=l((e=>{const{className:t="",itemClassName:a,isDotted:l,items:r,version:i="primary"}=e;return n("section",{className:`${ne[i]} ${t}`,role:"list",children:r?.length?r.map(((e,t)=>n(ee,{className:a,isDotted:l,version:i,children:e},String(t)))):null})})),le=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]})]}))),re={primary:"text-primary-text",secondary:"text-white"},ie={primary:"text-secondary-text",secondary:"text-white"};function se(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 oe=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(le,{context:t,title:ce(l,r),buttons:de(t,c),children:[i?n(K,{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:se(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 ${re[t]}`,children:e.label}),e.description?n("div",{className:`font-light text-m-md ${ie[t]}`,children:e.description}):null]})]},String(r))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,m?.length?n(ae,{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})]})})),ce=(e,t)=>e?n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,de=(e,t)=>t?.length?n(X,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function me(e,t,l){const r="primary"===t?"white":"black",i=e?.icon||{icon:"ArrowLeftIcon"};return a("div",{className:`flex items-center ${l}`,children:[n(z,{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 he={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ue={primary:"text-secondary-text",secondary:"text-white/80"},xe=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] ${he[s]} ${l}`,id:o,children:[i?.text?me(i,s,"mb-10 -mt-2.5"):null,r?.length?n("div",{className:"text-xs mb-6",children:U(n("span",{className:`mx-2 ${ue[s]}`,children:"/"}))(r.map(((e,t)=>n(G,{...j({router:d,handlerDecorator:m},{className:ue[s],...e})},String(t)))))}):null,n(oe,{context:t,version:s,...c})]})})),pe={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"}},be=l((({title:e,description:t,blockVersion:l="primary",iconVersion:r,image:i,className:s,anchor:o=null})=>{const c=pe[l];return a("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===r?ge(c.icon):null,"big"===r?fe(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 ge(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 fe(e){return e?.src?n(x,{className:"pt-0.5 pr-3",image:e}):null}const Ne=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ve(e=""){const t=Ne(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function ye(e=""){const t=Ne(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const we={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ie=l((e=>{const{context:t,title:l,headingType:r="h3",description:i,items:o,children:c,buttons:d,image:m,isDotted:h=!0,className:u="",version:p="primary",role:b,anchor:g=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${u} ${we[p]} ${ye(u)} ${ve(u)} `,role:b,id:g,children:a(le,{context:t,title:l?n(s,{headingType:r,as:"h3",title:l,className:`whitespace-pre-wrap max-w-[600px] ${l?"mb-3":""}\n ${"primary"===p?"text-primary-text":""}`}):null,buttons:d?.length?n(X,{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(K,{className:"max-w-[600px] text-title-new-sm font-light",description:i}):null,c,ke(o,p,h)]})})}));function ke(e,t,a){return e?.length?n(ae,{items:e,isDotted:a,itemClassName:"text-title-2xs font-light mt-2",version:"primary"===t?"tile":"tile-white"}):null}const Ce={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Se=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} ${Ce[h]} ${ye(t)} ${ve(t)} `,id:u,children:a(le,{context:e,title:l?n(s,{headingType:r,as:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:d?.length?n(X,{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(K,{className:"mt-4 max-w-[600px]",description:i}):null,$e(c||[],h),o?De(o,h):null]})})));function $e(e,t){return a("div",{className:"flex mt-5 mb-1",children:[e.length?n("div",{className:"mr-8",children:e.map(Te)}):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 Te(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}function De(e,t="primary"){return n("div",{className:`text-sm mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Be={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Me={normal:3,mini:4},Ae={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Re={normal:380,mini:276},Pe=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?Le(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,r?.length?_e(r,o,s):null]}),i?.text?Ve(i):null]})}));function Ve(e){return n(z,{className:"mt-6 w-full",appendLeft:e.icon&&n(x,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Le(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function _e(e,t,a="primary"){return n(ae,{className:"max-w-[308px] mt-2 text-sm "+("primary"===a?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:a})}const je=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<=Me[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*Re[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 ${Ae[t]} ${Be[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Pe,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const Ge=l((({className:e,disabled:t,...a})=>n(z,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...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})})));function Ue({handler:e,isShown:t,btnClass:l,className:r="",isDisabled:i=!1}){return a("div",{children:[t[0]||i?n(Ge,{className:`absolute z-10 ${l[0]} ${r}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||i?n(Ge,{className:`absolute z-10 rotate-180 ${l[1]} ${r}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const Oe=l((({context:e,cards:t=[],className:l="",version:r="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),d=t?.length>Me[r],m=d&&t?.length-o>Me[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(je,{context:e,cards:t,version:r,activeCardIndex:o,...s}),Ue({handler:[()=>c(o-1),()=>c(o+1)],isShown:[h,m],btnClass:["left-8","right-8"],className:"top-1/2"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),We=l((e=>n(Oe,{...e,version:"normal"}))),Ee=l((e=>n(Oe,{...e,version:"mini"}))),Fe=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?He(t):null})}))),He=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:$,TextBlock:be,PictureText:D,ProductBlock:xe,Tile:Ie,ProductTile:Se,Gallery:We,MiniGallery:Ee,LinkList:Fe},ze=({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}`)},qe=l((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:ze({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Xe=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(qe,{isExpanded:i,blocks:l,context:r}):null]})})),Ke={left:"text-left",center:"text-center",right:"text-right"},Qe=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 ${Ke[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(Xe,{...e,context:r},`AccordionItem${t}`)))}):null]}))),Ye=l((({className:e="",headingType:t="h2",title:l,benefitList:r,anchor:i=null})=>a("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e}`,id:i,children:[l?n(s,{headingType:t,as:"h2",className:"max-w-[47rem] text-center",title:l}):null,r?.length?et(r):null]}))),et=e=>n("div",{className:"flex flex-wrap justify-center gap-x-20 mt-9",children:e.map(tt)}),tt=(e,t)=>{const l=e?.description||void 0;return a("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-[46px]",children:[e?.icon?n(x,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px] mr-5",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,nt(l)]})]},String(t))},nt=e=>{const t=e?e?.benefitType:null;return t&&e?n("div",{className:"font-light text-base text-secondary-text mt-2",children:"list"===t?lt(e):at(e)}):null},at=e=>e?e.name:null,lt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?n("ul",{className:t,children:e.items.map(((e,t)=>n("li",{children:e},`benefitListItem-${t}`)))}):null},rt=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})]})})})),it=l((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),st="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",ot="border-main-stroke border-solid border",ct="border-main-divider border border-t-0 border-x-0",dt="w-[200px] mr-6",mt={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ht=l((({children:e,activeCardIndex:t,columnWidth:a,version:l="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:mt[l],style:{transform:`translateX(-${t*a}px)`},children:e})}))),ut=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] ${ot} ${st}`,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(z,{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})})})]}))),xt=l((({colHeaders:e,activeCardIndex:t,router:l,handlerDecorator:r})=>a(it,{children:[n("div",{className:dt,role:"columnheader",scope:"col"}),n(ht,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(ut,{...e,link:e.link&&j({router:l,handlerDecorator:r},e.link)},String(t))))})]}))),pt=l((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:l})=>n("div",{className:`w-80 box-border flex flex-col ${ot} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${l?st:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${ct} ${l&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ft(e,t,l)))})}))),bt=(e=!1)=>"text-xl font-medium m-0 "+(e?"text-white":""),gt=(e=!1)=>"text-sm opacity-80 "+(e?"text-white":"text-secondary-text"),ft=({label:e,description:t},l,r)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:bt(r),children:e}):null,t?n("div",{className:gt(r),children:t}):null]},String(l)),Nt=(e=!1)=>`text-sm py-7 ${ct} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,vt=l((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:r,isFirstRow:i,isLastRow:s})=>a(it,{children:[e?.title?n("div",{className:Nt(s),children:e.title}):null,t?.length?n(ht,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>n(pt,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:r&&0===t},String(t))))}):null]}))),yt=l((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:a,showNextButton:l,showPrevButton:r})=>e?n("div",{children:Ue({handler:[a,t],isShown:[r,l],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),wt=l((({rowData:e,activeCardIndex:t,isColoredFirstColumn:l,...r})=>a("div",{className:"relative",children:[e.map(((e,a,{length:r})=>n(vt,{row:e,isFirstRow:0===a,isLastRow:a+1===r,activeCardIndex:t,isColoredFirstColumn:l},String(a)))),n(yt,{...r})]}))),It=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},kt=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=It({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:u,setActiveCardIndex:x}),{isScrollAvailable:b}=p;return a("div",{children:[a("div",{role:"table",children:[d?.length?n(xt,{colHeaders:d,activeCardIndex:u,router:o,handlerDecorator:c}):null,h?.length?n(wt,{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]})})),Ct=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(kt,{context:t,columns:i,rowHeaders:r,isShowAllRow:m,isColoredFirstColumn:c,visibleRowLength:o}),o?St({isShowAllRow:m,onClick:()=>h(!m)}):null]})})),St=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:dt}),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 $t(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),Tt);return n||{}}async function Tt(e){const t=await fetch(e);return await t.json()}const Dt=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)))}))),Bt=[{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"}],Mt=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(Dt,{paths:Bt,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]})}))),At=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Rt=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," ",At(Math.round(t))," ",l]}):null]}))),Pt=3e4,Vt=3e6,Lt=Math.round(41.5),_t=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:At(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 jt(e){const{title:t,className:a="",calculatorParams:l,moneyValue:r,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=l?.minSum||Pt,d=l?.maxSum||Vt,m=[`От ${At(c)} ₽`,`До ${At(d)} ₽`];return n(_t,{className:a,title:t,items:o?m:[],min:c,max:d,step:1e3,value:r||i,onChange:s})}const Gt=10.2,Ut=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||Gt:t?.rateWithoutInsurance||Gt:Gt},Ot=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},Wt=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,Et=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):Lt,Ft=(e,t,n)=>Math.max(t,Math.min(e,n));function Ht(e){const{title:t,minMonths:a,maxMonths:l,monthsValue:r,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(_t,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(l)}`],min:a,max:l,step:1,value:r||i,onChange:s})}function Zt(e,t){return t?.length?n(X,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function zt({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 Jt=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=$t(e.useAsyncData,"directoryName").rows,b=Ot({tableRows:p,isAnnuity:c}),g=Wt(b),f=Et(b),N=b?.minMonths||1,v=b?.maxMonths||84,y=Ut({calculatorParams:b,isInsurance:u}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=Ft(l,t.minSum||Pt,t.maxSum||Vt);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:[jt({title:"Сумма кредита, ₽",calculatorParams:b,moneyValue:r,defaultSum:g,setMoneyValue:i}),Ht({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(Mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),n(Mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:h}),n(Mt,{className:"mt-3",text:"Комплексная страховая защита",checked:u,onChange:x})]})]}),n("div",{children:y?zt({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n(Rt,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,Zt(e,l)]})]})}));function qt(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Pt,s=t?.maxSum||Vt;return n(_t,{title:"Стоимость недвижимости, ₽ ",items:[`От ${At(i)} ₽`,`До ${At(s)} ₽`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Xt(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Pt,s=t?.maxSum||Vt;return n(_t,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${At(i)} рублей`,`До ${At(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Kt({credit:e,period:t,taxRefund:l}){return a("div",{children:[n(Rt,{title:"Сумма кредита",value:e,postfix:"₽"}),n(Rt,{title:"Срок",value:t,postfix:"лет"}),n(Rt,{title:"Налоговый вычет",value:l,postfix:"₽"})]})}const Qt={CreditCalculatorForm:Jt,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=$t(e.useAsyncData,"directoryName").rows,x=Ot({tableRows:u,isAnnuity:c}),p=Wt(x),b=Et(x),g=x?.minMonths||1,f=x?.maxMonths||84,N=Ut({calculatorParams:x,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[qt({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Xt({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Ht({title:"Срок ипотеки, месяцев",minMonths:g,maxMonths:f,monthsValue:s,defaultMonths:b,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(Mt,{text:"Страхование жизни",checked:c,onChange:d}),n(Mt,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:m,onChange:h})]})]}),a("div",{children:[n("div",{children:N?zt({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n(Rt,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:Kt({credit:3892e3,period:15,taxRefund:65e4})}),Zt(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=$t(e.useAsyncData,"directoryName").rows,p=Ot({tableRows:x,isAnnuity:!1}),b=Wt(p),g=Et(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[jt({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:d,defaultSum:b,setMoneyValue:m}),Ht({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:g,setMonthsValue:u})]}),n("div",{children:r?zt({rate:r,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n(Rt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n(Rt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),Zt(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:[jt({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:x,moneyValue:d,defaultSum:Wt(x),setMoneyValue:m,isShowItems:!1}),jt({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:Wt(p),setMoneyValue:u,isShowItems:!1})]}),n("div",{children:b?zt({rate:b,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n(Rt,{title:"Баллов за год",value:948841}),Zt(e,l)]})]})}))},Yt=({context:e,className:t})=>(a,l)=>{const r=a?.calcType;if(!r||!(r in Qt))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(Qt[r],{context:e,...a,className:"flex justify-between"})})},String(l))},en=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?tn({tabsShift:d,tabsNav:i,activeSlideIndex:o,setActiveSlideIndex:c}):null,Ue({handler:[()=>m(d-1),()=>m(d+1)],isShown:[u,h],btnClass:["left-3","right-3"],className:"top-8"})]}),n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:s?.length?s.map(Yt({context:t,className:e})):null})]})}));function tn({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"})]})}async function nn(){try{const e=await fetch(an,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ln)});return await e.json()}catch(e){console.error(e)}}const an="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",ln={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},rn=e=>e.reduce(((e,t)=>{const n=t.currency_first;if(!sn(t.rate_buy)&&!sn(t.rate_sell))return e;const a=n.code;return e.some((e=>e.code===a))||e.push({code:a,buy:Number(t.rate_buy),sell:Number(t.rate_sell)}),e}),[]),sn=e=>Math.round(e)>0;function on(e=""){const t=Ne(e);return t<=4?"h4":t<=8?"h3":"h2"}var cn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(cn||(cn={}));const dn=new Intl.NumberFormat("ru",{style:"currency",currency:cn.RUB}),mn=e=>e?dn.format(e):"",hn="font-light text-left font-normal text-sm text-secondary-text",un={USD:"DollarIcon",EUR:"EuroIcon"},xn=l((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:hn,children:"Валюта"}),n("th",{className:`${hn} pl-11`,children:"Купить"}),n("th",{className:`${hn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>pn(e)))})]}))),pn=e=>{const t=e?.code;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:un[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:mn(e.buy)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:mn(e.sell)})]},t)},bn=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]})]}))),gn=(e,t,n)=>{const a=Number(fn(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(a)},fn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Nn=e=>{return(t=[[e=>e.value!==cn.RUB&&e.oppositeValue!==cn.RUB,()=>e.handleConvert(e.value,cn.RUB)],[e=>e.value===cn.RUB&&e.oppositeValue===cn.RUB,()=>e.handleConvert(e.value,cn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};const vn=l((({className:e="",id:t,name:a,type:l="text",placeholder:r,pattern:i,value:s,onChange:o})=>n("input",{className:e,id:t,name:a||t,type:l,pattern:i,placeholder:r,value:s,onChange:e=>(e=>{const t=e.target.validity.valid?e.target.value:s;o(t)})(e)}))),yn=l((({className:e="",id:t,name:a,children:l,value:r,onChange:i})=>n("select",{className:e,id:t,name:a||t,value:r,onChange:e=>i(e.target.value),children:l}))),wn=l((({className:e="",value:t,selected:a,children:l})=>n("option",{className:e,value:`${t}`,selected:a,children:l})));function In(e){const{placeholder:t,rates:l,selected:r,value:i,setValue:s,setSelected:o}=e;return a("div",{className:"relative flex items-center",children:[n(vn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",placeholder:t,type:"text",value:i,onChange:s}),l.length?n(yn,{className:"h-9 -translate-x-4",value:r,onChange:e=>o(e),children:l.map(((e,t)=>n(wn,{value:e.code,children:e.code},String(t))))}):null]})}const kn=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:r})=>{const[i,s]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||cn.RUB,selectBuy:r?.[0]?.code||cn.USD}),o=e=>{s((t=>({...t,...e})))};return a("div",{className:`grid gap-3.5 ${t}`,children:[In({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Cn(i,o,r),value:i.inputSell,setValue:e=>$n(o,r)(e,i.selectSell,i.selectBuy)}),In({placeholder:"Получу",rates:r,selected:i.selectBuy,setSelected:Sn(i,o,l),value:i.inputBuy,setValue:e=>Tn(o,l)(e,i.selectBuy,i.selectSell)}),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"https://coins.rshb.ru/exchange",target:"_blank",children:"Купить валюту"})]})})),Cn=(e,t,n)=>a=>{t({selectSell:a}),Nn({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,l=e.selectBuy)=>{$n(t,n)(e.inputSell,a,l)}})},Sn=(e,t,n)=>a=>{t({selectBuy:a}),Nn({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,l=e.selectSell)=>Tn(t,n)(e.inputBuy,a,l)})},$n=(e,t)=>(n,a,l)=>{e({inputSell:fn(n),selectBuy:l});const r=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===a))?.sell;r&&e({inputBuy:String(gn(n,r,a===cn.RUB)||"")})},Tn=(e,t)=>(n,a,l)=>{e({inputBuy:fn(n),selectSell:l});const r=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===a))?.buy;r&&e({inputSell:String(gn(n,r,a===cn.RUB)||"")})},Dn={address:"Москва, ул.Ленина д.28",distance:"6км"},Bn=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:r=null})=>{const i=function(e){const{data:t}=e(an,nn),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?rn(n):n}(t.useAsyncData),o=i.filter((e=>e.buy));o.unshift({code:cn.RUB});const c=i.filter((e=>e.sell));return c.push({code:cn.RUB}),n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:r,children:n(le,{context:t,title:n(s,{headingType:on(e),title:l,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n(xn,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(bn,{...Dn})]}),i.length&&o.length&&c.length?n(kn,{className:"grow",context:t,currencyRatesBuy:o,currencyRatesSell:c}):null]})})})})),Mn=["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"],An={"bg-white":"text-primary-main",transparent:"text-white"},Rn={"bg-white":"text-black",transparent:"text-white"},Pn=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:An[s],width:"40",height:"45",asSVG:!0}):n(Dt,{className:`${An[s]} w-10`,viewBox:"0 0 40 45",paths:Mn.map((e=>({d:e})))}),o?null:Vn(r,s,l?.title)]}))),Vn=(e,t,a)=>n("span",{className:`${Rn[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),Ln=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(z,{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(jn):null,l?n(z,{version:"primary",className:"mb-6 w-full",...j({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),jn=(e,t)=>{const{type:l,text:r,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:Gn(l,r)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},Gn=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${Un(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})}},Un=e=>e.replaceAll(/\D/g,""),On=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(Wn,{index:t,...j({router:l,handlerDecorator:r},e)},String(t))))}):null})})),Wn=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}`}))),En=e=>t=>e?.href===t?.href,Fn=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(En(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(En(e))))));var n,a,l};function Hn(e){const{data:t}=e(zn(),Zn);return t||{}}async function Zn(){const e=await fetch(zn());return await e.json()}function zn(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Jn=l((({className:e="",items:t,context:a})=>{const l=Hn(a.useAsyncData),r=Fn(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)=>qn(e,t,i)))})})),qn=(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(Xn,{...j({router:l,handlerDecorator:r},e),index:t},String(t))))]},String(t))},Xn=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}`}))),Kn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Qn=l((({href:e,version:t="primary"})=>{const{icon:a,label:l}=Kn.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;const r="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"} ${r?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:a?n(x,{image:a,imageClassName:r?"group-hover:text-white":"",width:"24",height:"24",asSVG:!0}):null})})),Yn=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(Qn,{version:l,...j({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),ea=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",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-2.5",children:t.map(((e,t)=>n(ta,{index:t,...j({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),ta=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}`}))),na="w-[204px]",aa=l((({className:e,documents:t,relatedEnterprises:l,contacts:r,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:d=null})=>a("footer",{className:`p-9 bg-white ${e||""}`,id:d,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(Pn,{className:na}),n(Ln,{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(Yn,{media:i,context:c,children:"Соцсети"}),n(Yn,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(Jn,{className:"pt-[3px]",context:c,items:o})]}),n(On,{className:"mt-[98px]",links:l,context:c}),n(ea,{links:t,context:c})]}))),la=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?ra(r):null]}))),ra=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=>ia(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:sa(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}`)))})]})},ia=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),sa=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)),oa=(e,t,n=((e,t)=>t.startsWith(e)))=>n(M(e),(e=>(e||"").replace(V,""))(M(B(e)?t.href:t.pathname))),ca=e=>t=>oa(t.href,e),da=e=>t=>t.items?.some(ca(e))||oa(t.href,e)||((e,t)=>A(e)===A(t.href))(t.href,e),ma="font-sans font-light text-sm",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=!1,n=!1)=>{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=!1,n=!1)=>{if("bg-white"!==e)return`text-white ${ma}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${ma}`},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(ca(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={"bg-white":"bg-primary-text",transparent:"bg-white"},Sa=l((e=>{const{menuVisible:t,toggleMenu:l,menuItems:r,bgColor:i,context:s}=e,{useRouter:o,handlerDecorator:c}=s,d=o();return a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:l,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(i).map(Ta)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:$a(r,d,c)})]})})),$a=(e,t,a)=>e?.map((e=>n("a",{...j({router:t,handlerDecorator:a},e),className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),Ta=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Ca[e]}`},String(t)),Da=l((({context:e,subItems:t=[],bgColor:l})=>{const[r,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o,IntersectionObserverTag:c}=e,[d,m]=e.useState(t.length),h=t.slice(d),u=va(s)(t);return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:t.map(((e,t)=>{return n(c,{Tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?m((e=>Math.min(e,a))):m((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:n(wa,{className:"mr-8 "+(d-1<t?"invisible":""),active:e===u,...j({router:s,handlerDecorator:o},e),bgColor:l})},String(t));var a}))}),h.length?n(Sa,{context:e,menuVisible:r,toggleMenu:()=>i(!r),menuItems:h,bgColor:l}):null]})})),Ba={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ma=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=Hn(i.useAsyncData),{handlerDecorator:h}=i,u=Fn(m.topItems,s),x=u.find(da(d)),p=u.map(((e,t)=>n(ha,{active:e===x,...j({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(Pn,{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] ${Ba[r]}`}),l&&x?.items?.length?n(Da,{context:i,subItems:x.items,bgColor:r}):null]})})})),Aa=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(Ra)}):null,a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[o?Pa("Страховая сумма:",o,Boolean(c)):null,c?Pa("Ежемесячный лимит:",c,Boolean(o)):null]})]})]})})]})));function Ra(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 Pa(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:[At(t)," ₽"]})]})}const Va=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?La({tabsShift:o,cards:l,activeSlideIndex:i,isLastShift:d===o+2,setActiveSlideIndex:s}):null,Ue({handler:[()=>c(o-1),()=>c(o+1)],isShown:[h,m],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),h?n("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,m?n("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]})})}));function La({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 px-[50px]",children:n("div",{className:"w-full flex flex-nowrap gap-3.5 pb-[38px]",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?_a("страховая сумма",e.sum):null,e?.fee?_a("страховой взнос",e.fee):null]}),ja(i)]},String(t))}({slide:e,i:t,activeSlideIndex:l,onClick:()=>i(t)})))})})}function _a(e,t){return a("div",{className:"flex flex-col text-left",children:[a("span",{className:"whitespace-pre text-title-2xs",children:[At(t)," ₽"]}),n("span",{className:"whitespace-pre text-secondary-text font-light text-base mt-1",children:e})]})}function ja(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 Ga=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(z,{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(Va,{context:t,className:a,cards:e}))):null;const Oa=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} ${ye(e)} ${ve(e)} `,id:o,children:n(le,{context:t,title:l?n(s,{headingType:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}):null,buttons:i?.length?n(X,{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-код и скачайте приложение"})]})})}))),Wa=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(Wa,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...j({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),Fa=l((({className:e="",text:t,active:a,children:l,onClick:r,href:i,target:s="_self"})=>n("a",{className:Ha(e,a),target:s,href:i,onClick:r,children:n("span",{className:Za(a),children:t||l})}))),Ha=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,Za=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-m-md`,za=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(Ja(a,r)):null})})),Ja=(e,t)=>(a,l)=>{const{useRouter:r,handlerDecorator:i}=e,s=r(),o=R(t),c=o?a.href===o:0===l;return n(Fa,{active:c,...j({router:s,handlerDecorator:i},a)},a.href)},qa="transition-all duration-300 max-h-0 overflow-hidden",Xa=l((({blocks:e=[],context:t,hiddenBlocksNum:l=0,foldButtonClasses:r,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,render:c=(e=>e)})=>{const d=Ft(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(qa)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:n}})({context:t,initialState:o});return e?a("div",{children:[Ka(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})),Ka=(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:qa,children:s})]}),r)},Qa=l((({label:e,blocks:t,columns:a=1,context:l,dataTheme:r,isUnfolded:i})=>{const s=ze({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(Xa,{foldButtonDataTheme:r,hiddenBlocksNum:t?.length,blocks:s,isUnfolded:i,context:l,foldButtonLabel:e,render:(e,t)=>n(Ya,{columns:a,isActive:t,children:e})}):null})})),Ya=l((({columns:e,children:t,isActive:a})=>n("div",{className:`box-border w-full ${a?"p-9":""} ${e>1?"flex flex-wrap":""}`,children:t}))),el=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(Qa,{...e,dataTheme:t,context:a},`BlockItem${l}`)))}):null}))),tl=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} ${ye(e)} ${ve(e)} `,id:i,children:a(le,{context:t,title:l?n(s,{headingType:on(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[r?n(K,{className:"mt-4 max-w-[600px]",description:r}):null,n("figure",{className:"m-0 min-w-[600px]",children:nl()})]})}))),nl=(e=3)=>ll(100,e).map((e=>Math.floor(e))).map(al),al=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ll=(e,t)=>[e].concat(t>0?ll(e/1.618,t-1):[]),rl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},il={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},sl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ol=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 ${rl[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?il[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(oe,{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 ${sl[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${il[i].title}`,d=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${il[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 cl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},dl=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} ${cl[c]} ${ye(e)} ${ve(e)} `,id:d,children:n(le,{context:t,title:l?n(s,{headingType:on(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(X,{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:ml(r)}):null,n("div",{className:"text-base",children:i})]})})})));function ml(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const hl=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(le,{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(K,{className:"text-left",description:r}):null,i?.length?n(ae,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:c}):null,n(Yn,{className:"pt-[42px] pb-0",media:d,version:c,context:e})]})}))),ul="absolute top-0 bottom-0 w-[84px]",xl=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(pl({context:e,version:i,className:m})):null}),bl({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:d}),n("div",{className:`${ul} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${ul} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),pl=({context:e,version:t,className:a})=>(l,r)=>n(hl,{context:e,...l,version:t,className:a},String(r)),bl=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:a})=>{const l=e>2;return n("div",{children:Ue({handler:[()=>a(t-1),()=>a(t+1)],isShown:[l&&t>0,l&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-6"})})},gl=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:U(n("div",{className:"h-0.5 w-full bg-secondary-light "+(l?"":"opacity-0")}))(r.map(fl))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:r.map(((e,t)=>Nl(e,t,Boolean(i?.text))))})]}):null,i?.text?n(z,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),fl=(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)),Nl=(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(z,{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)),vl=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],yl=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(wl)})}))),wl=({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?Il(l):null,r?n(x,{image:r}):null,i?.length?kl(i):null]},String(s)),Il=e=>n(ae,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),kl=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},l)=>n(z,{className:(l>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:vl(e),rounded:t,appendLeft:e?n(x,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(l))))}),Cl=l((({row:{header:e,data:t},activeCardIndex:l,isLastRow:r})=>a(it,{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(ht,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(yl,{cell:e,isLastRow:r},String(t))))}):null]}))),Sl=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=$l(o),x=Tl(i,u),p=It({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:m,setActiveCardIndex:h}),b=x?.map(((e,t,{length:a})=>n(Cl,{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(Xa,{blocks:b,hiddenBlocksNum:d,context:t,render:e=>n(Dl,{tableArrowScrollControlProps:p,children:e}),foldButtonLabel:"Развернуть"}):null]})})),$l=e=>e?.map((({data:e})=>e))||[],Tl=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),Dl=l((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:l}=t;return a("div",{role:"table",children:[a("div",{className:"relative",children:[e,n(yt,{...t})]}),l?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Bl=l((e=>{const{tabs:t,currentTag:a,onTabClick:l,className:r="",isShowCounter:i}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${r}`,role:"tablist",children:t?.map(Ml(l,i,a))})})),Ml=(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:o,children:r?.title}):null,t?n("div",{className:`flex items-center justify-center ml-8 ${c}`,children:n("span",{children:r.count})}):null]})},String(i))};function Al(e){return e?e.filter(Boolean).join(" "):""}const Rl={ProductBlock:xe,ProductTile:Se},Pl=l((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-2 box-border",children:e?.length?e.map(Vl(t)):null}))),Vl=e=>(t,a)=>{const l=t?.blockType;if(!l||!(l in Rl))return null;const r=Al(t?.style);return n(Rl[l],{context:e,...t,className:r},`block_${a}`)},Ll=l((({className:e="",tabs:t,context:l,anchor:r=null,groupBlocks:i=[],isShowCounter:s})=>{const[o,c]=l.useState(t?.[0]?.tag),d=(m=i,(h=o)?m.filter((e=>e?.tags?.includes(h))):m);var m,h;const u=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 ${e}`,children:[u?.length?n(Bl,{currentTag:o,onTabClick:c,tabs:u,isShowCounter:s}):null,i.length?n(Pl,{context:l,groupBlocks:d}):null]})}));function _l(e=""){const t=Ne(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const jl=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 text-center ${e}`,id:i,children:[t?n(s,{headingType:"h3",className:"mb-[10px]",title:t}):null,l?n("span",{className:"text-md font-normal",children:l}):null,r?.length?n("div",{className:`grid gap-1 ${_l(e)}`,children:r.map(Gl)}):null]}))),Gl=(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 m-0",children:e.label}):null})]},String(t)),Ul={Accordion:Qe,BenefitsBlock:Ye,Bonus:rt,ComparisonTable:Ct,Calculator:en,ExchangeRateTile:Bn,Footer:aa,Gallery:We,GracePeriod:la,Header:Ma,Headline:v,Insurance:Aa,InsuranceAmountBlock:Ga,LinkDocs:$,MiniGallery:Ee,MobileAppTile:Oa,NavigatorTabs:za,PictureText:D,ProductBlock:xe,ProductGallery:ol,ProductTile:Se,PromoTile:dl,OtherProducts:el,Recommendation:xl,StepsBlock:gl,TariffsTable:Sl,TextBlock:be,Tile:Ie,Navigation:Ea,Placeholder:tl,GroupBlock:Ll,BonusBenefitsBlock:jl},Ol=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:Wl()}))),Wl=()=>{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(Ol,{onClick:r.like,ariaLabel:"Поставить отметку «лайк»"}),n(Ol,{onClick:r.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:r.likeCount})]})})),Fl=!("undefined"==typeof window||!window.document||!window.document.createElement),Hl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Zl=l((({className:e="",context:t,blocksRegistry:l,data:{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:d=Hl})=>{const{header:m}=s,h=t.useRouter();return Fl&&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 ${Al(r)} ${e}`,"data-theme":c,children:[m?.blocks?.length?n("div",{className:`${Al(m?.style)}`,children:m.blocks.map(((e,n)=>zl({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)=>zl({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(El,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function zl({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"]||tl;return t({blockClassName:`scroll-mt-12 ${Al(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=Zl,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=U,e.projectSettings=d,e.setup=t,e.url=P,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -4,10 +4,28 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
-
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title,
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className}`, id: anchor, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title })) : null,
|
|
7
|
+
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', headingType = 'h2', title, benefitList, anchor = null }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className}`, id: anchor, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefitList?.length ? renderBenefits(benefitList) : null] }));
|
|
9
9
|
});
|
|
10
|
+
const renderBenefits = (benefits) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap justify-center gap-x-20 mt-9", children: benefits.map(renderStep) }));
|
|
12
|
+
};
|
|
10
13
|
const renderStep = (benefit, i) => {
|
|
11
|
-
|
|
14
|
+
const description = benefit?.description || undefined;
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-[46px]", children: [benefit?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "h-[70px] w-[70px] min-w-[70px] min-h-[70px] mr-5", image: benefit.icon, width: "70", height: "70" })) : null, (0, jsx_runtime_1.jsxs)("div", { children: [benefit?.label ? (0, jsx_runtime_1.jsx)("h3", { className: "font-medium text-xl m-0", children: benefit.label }) : null, renderDescription(description)] })] }, String(i)));
|
|
16
|
+
};
|
|
17
|
+
const renderDescription = (description) => {
|
|
18
|
+
const benefitType = description ? description?.benefitType : null;
|
|
19
|
+
if (!benefitType) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-light text-base text-secondary-text mt-2", children: benefitType === 'list'
|
|
23
|
+
? renderListBenefit(description)
|
|
24
|
+
: renderTextBenefit(description) })) : null;
|
|
25
|
+
};
|
|
26
|
+
const renderTextBenefit = (description) => (description ? description.name : null);
|
|
27
|
+
const renderListBenefit = (description) => {
|
|
28
|
+
const listStyleType = description?.bullets ? 'list-disc pl-6' : '';
|
|
29
|
+
return description?.items && description.items.length > 0 ? ((0, jsx_runtime_1.jsx)("ul", { className: listStyleType, children: description.items.map((_, i) => ((0, jsx_runtime_1.jsx)("li", { children: _ }, `benefitListItem-${i}`))) })) : null;
|
|
12
30
|
};
|
|
13
31
|
//# sourceMappingURL=BenefitsBlock.js.map
|