@redneckz/wildless-cms-uni-blocks 0.3.82 → 0.3.84

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.
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAGA,mEAAgE;AAChE,iEAA8D;AAQvD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACvB,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAE,cAAc,GAAI,IAD3C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC;AAfS,QAAA,WAAW,eAepB"}
1
+ {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAEA,iEAA8D;AAE9D,mEAAgE;AAQzD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACvB,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,IAD1C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC;AAlBS,QAAA,WAAW,eAkBpB"}
@@ -3,8 +3,8 @@ exports.BlockWrapper = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const changeHashOnObserve_1 = require("../utils/changeHashOnObserve");
6
- exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ anchor, className, context, children, Tag = 'section', ...rest }) => {
6
+ exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ anchor, className, context, children, Tag = 'section' }) => {
7
7
  const { IntersectionObserverTag } = context;
8
- return anchor ? ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve_1.changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, ...rest, children: children })) : ((0, jsx_runtime_1.jsx)(Tag, { className: className, ...rest, children: children }));
8
+ return anchor ? ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve_1.changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : ((0, jsx_runtime_1.jsx)(Tag, { className: className, children: children }));
9
9
  });
10
10
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAStD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yCAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,KACV,IAAI,YAEP,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,uBAAC,GAAG,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAChC,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAStD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yCAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,YAEb,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,uBAAC,GAAG,IAAC,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAC5C,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,13 +1,14 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks.js';
3
2
  import { style2className } from '../../utils/style2className.js';
3
+ import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks.js';
4
4
  export const renderBlock = ({ context, className }) => (block, i) => {
5
5
  const type = block?.blockType;
6
6
  if (!type || !(type in EmbeddableGroupBlocks)) {
7
7
  return null;
8
8
  }
9
- const classNameBlock = style2className(block?.style);
9
+ const { style, ...rest } = block;
10
+ const classNameBlock = style2className(style);
10
11
  const EmbeddedBlock = EmbeddableGroupBlocks[type];
11
- return (_jsx("div", { className: className, children: _jsx(EmbeddedBlock, { context: context, ...block, className: classNameBlock }) }, `block_${i}`));
12
+ return (_jsx("div", { className: className, children: _jsx(EmbeddedBlock, { context: context, ...rest, className: classNameBlock }) }, `block_${i}`));
12
13
  };
13
14
  //# sourceMappingURL=renderBlocksTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAQ9D,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,qBAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,aAAa,GAAa,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,YACvB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAE,cAAc,GAAI,IAD3C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQhE,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,qBAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAa,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,YACvB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,IAD1C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { changeHashOnObserve } from '../utils/changeHashOnObserve.js';
4
- export const BlockWrapper = JSX(({ anchor, className, context, children, Tag = 'section', ...rest }) => {
4
+ export const BlockWrapper = JSX(({ anchor, className, context, children, Tag = 'section' }) => {
5
5
  const { IntersectionObserverTag } = context;
6
- return anchor ? (_jsx(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, ...rest, children: children })) : (_jsx(Tag, { className: className, ...rest, children: children }));
6
+ return anchor ? (_jsx(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : (_jsx(Tag, { className: className, children: children }));
7
7
  });
8
8
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AASnE,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,mBAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,KACV,IAAI,YAEP,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAChC,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AASnE,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,mBAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,YAEb,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IAAC,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAC5C,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -923,9 +923,9 @@
923
923
  if (entry.isIntersecting) ;
924
924
  };
925
925
 
926
- const BlockWrapper = JSX(({ anchor, className, context, children, Tag = 'section', ...rest }) => {
926
+ const BlockWrapper = JSX(({ anchor, className, context, children, Tag = 'section' }) => {
927
927
  const { IntersectionObserverTag } = context;
928
- return anchor ? (jsx(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, ...rest, children: children })) : (jsx(Tag, { className: className, ...rest, children: children }));
928
+ return anchor ? (jsx(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
929
929
  });
930
930
 
931
931
  const LinkList = JSX(({ className = '', documents, ...rest }) => {
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,o=r||a&&a();return e(Object.assign(l,o&&{children:o}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const o={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},i=l((e=>{const{className:t,headingType:r,title:l,as:a}=e;if(!r)return;return n(a||r,{className:`font-sans font-medium m-0 ${o[r]} ${t||""}`,children:l})}));var c,s;!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"}(c||(c={})),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="Добавить продукт"}(s||(s={}));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:a=`Иконка ${s[l]||l}`,title:o=a,iconVersion:i="normal",asSVG:c,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return c?r("svg",{className:e,...h,"aria-hidden":"true",children:[o?n("title",{children:o}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[i]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:o,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=l((({className:e="",image:t,imageClassName:r="",...l})=>{const a="string"==typeof t?t:t?.icon;return a||""===a?n(h,{className:e,imageClassName:r,iconVersion:u(t),name:a,...l}):n(x,{className:e,imageClassName:r,image:t})})),x=l((({className:e="",image:t,imageClassName:l=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:b(t)},`${r}_${e}`))):null,g(t,l)]}):null)),g=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",a=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:a,title:l,style:r,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}function f(e){return e?e.filter(Boolean).join(" "):""}const y={left:"text-left",center:"text-center",right:"text-right"},v={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"}},N=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:o,align:c="left"})=>{const s=v[e];return r("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${s.background} ${t}`,children:[l?n(i,{headingType:"h2",className:`${s.text} ${y[c]}`,title:l}):null,a?n("p",{className:`font-normal text-m-md ${s.description} ${y[c]} `,children:a}):null,o?.src&&n("div",{className:"mt-2.5 mx-auto flex justify-center",children:n(p,{image:o})})]})})),w=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:I(l,t,r),"aria-hidden":!0},String(l))))}):null})),I=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},C=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),k=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),S=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:o=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...k(o),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(C,{style:k(o/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(C,{children:t})}))),$=l((({className:e,context:t,children:l,gap:a=14,padding:o=16,showDots:i=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:i,children:l};return r("div",{className:e,children:[n(S,{gap:a,padding:o,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:i}=e.currentTarget,m=i[0].offsetWidth-o/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const o=r-n;if(2===l)return[[0,o],[o,r]];const i=a+e,c=n-e-t,s=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===s?[t>0?o-c:0,t>0?o:c]:[(t-1)*i+c,t*i+c]));return d[l-1]=[o,r],d})({gap:a,padding:o,clientWidth:n,scrollWidth:l,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:l}),n(w,{...u})]})})),T=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:o,icon:i})=>{const{text:c,fileSize:s,...d}=o;return r("a",{className:e,role:"link",...d,children:[i?n(p,{className:t,image:i,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:l,children:[c,n("span",{className:a,children:d?.href&&D(B(d.href),s)})]}):null]})})),D=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),B=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},R=l((({className:e="",doc:t,icon:r})=>n(T,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),_=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n($,{context:e,className:"text-m-sm text-primary-main mt-5",children:r?.length?r.map(((e,r)=>n(R,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),V=l((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,l)=>n("div",{role:"listitem",children:n(R,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),A=l((({className:e="",context:t,title:l,description:a,icon:o={icon:"DocIconMonoColor"},documents:i,orientation:c="vertical",hasBorder:s=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[n(N,{className:"!p-0 "+(a?"gap-2":"gap-5"),title:l,description:a,context:t,align:"center",headingType:"h3"}),"vertical"===c?n(V,{hasBorder:s,documents:i,icon:o}):n(_,{context:t,hasBorder:s,documents:i,icon:o})]}))),P=e=>e?.includes("//"),L=e=>(e||"").replace(/\/?\?.*/,""),M=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var G=Object.freeze({__proto__:null,isURL:P,withoutQuery:L,getOrigin:M,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const j="/mobile",W=(e,t)=>{if(!e)return e;const n=M(t?.href);return n?e.replace(n,"")||"/":e},O=e=>e;function U({router:e,handlerDecorator:t=O},n){const r=((e,t)=>{if(!e)return e;const n=W(e,t)||"",r=t?.pathname.startsWith(j);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!P(r),a=!n.target||"_self"===n.target;l&&a&&(t.preventDefault(),e.push(r))}),n)}}const E=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:o}=e;return r("div",{className:F(e),children:[a||null,H(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-base text-left",children:t})]}):null,o||null]})})),F=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="px-9 gap-2 "+(n?"py-2":"py-4");return["flex items-center justify-center",H(e)?l:"h-12 w-12",r?"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:"text-primary-main"},Z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},J="w-full text-center font-sans select-none",q=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:o,onClick:i,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(E,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${J} ${Z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${J} inline-block cursor-pointer no-underline ${z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:o,onClick:i,"aria-label":h,role:a?"link":"button",...u,children:p})})),K=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,iconRight:t,...r},l){if(!r?.text)return;return n(q,e?{appendLeft:n(p,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(p,{image:t,width:"24",height:"24",asSVG:!0}),...r}:{...r},String(l))}(U({router:a,handlerDecorator:l},e),t)))}):null}));const Q=l((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Y={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"},X={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:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:te(a)}):null,n("span",{children:l})]}))),te=e=>`${Y[e]} ${X[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"},re=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:o="primary"}=e;return n("section",{className:`${ne[o]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(ee,{className:r,isDotted:l,version:o,children:e},String(t)))):null})})),le=l((({className:e="",title:t,children:l,buttons:a,image:o})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),a?n("div",{children:a}):null]}),o]})]}))),ae={primary:"text-primary-text",secondary:"text-white"},oe={primary:"text-secondary-text",secondary:"text-white"};function ie(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ce=l((({className:e="",context:t,title:l,headingType:a="h2",description:o,benefits:c,benefitsVersion:s="normal",buttons:d,image:m,items:h,version:u="primary",isDotted:x=!0,label:g})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[g?me(g,u):null,r(le,{context:t,title:l?n(i,{headingType:a,title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:d?.length?n(K,{context:t,buttons:d,className:"flex flex-col mt-5 gap-2.5"}):null,children:[o?n(Q,{className:"mt-3 text-m-md",description:o}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(p,{className:ie(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${ae[t]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${oe[t]}`,children:e.description})]},String(l))}({benefit:e,version:u,benefitsVersion:s},t)))}):null,h?.length?n(re,{className:"mt-3 text-m-md",items:h,version:u,isDotted:x}):null]})]}),se(m)]})));function se(e){return e?.src?n(p,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const de={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},me=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${de[t]}`,children:e}),he={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ue=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${he[r]} ${t}`,children:n(ce,{...e})})})),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"}},xe=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:o,className:i="",items:c,isDotted:s=!0})=>{const d=pe[l];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${i}`,children:["small"===a?ge(d.icon):null,"big"===a?be(o):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(re,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===l?"secondary":"gray"}):null]})]})}));function ge(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function be(e){return e?.src?n(p,{className:"pb-3 mr-auto",image:e}):null}const fe={primary:"bg-white",secondary:"bg-primary-main text-white"},ye=l((({context:e,title:t,description:l,cards:a=[],className:o,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${o}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(i,{headingType:"h3",className:"text-center "+(l?"mb-2":"mb-5"),title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),ve(c,a,e)]})));function ve(e,t,r){return"horizontal"===e?n($,{context:r,children:t?.map(Ne)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ne)})}function Ne(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${fe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(p,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?we(e):null,e.items?.length?Ie(e.items,e.isDotted,e.version):null]}),e?.button?.text?(l=e.button,n(q,{className:"mt-3",appendLeft:l?.icon&&n(p,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function we(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ie(e,t,l="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[t?n("div",{className:te(l)}):null,n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===l?"text-secondary-text":""),children:e.text})]},String(a))))})}const Ce=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},ke=l((({anchor:e,className:t,context:r,children:l,Tag:a="section",...o})=>{const{IntersectionObserverTag:i}=r;return e?n(i,{Tag:a,className:t,observerCallback:Ce,observerOptions:{threshold:1},anchor:e,...o,children:l}):n(a,{className:t,...o,children:l})})),Se=l((({className:e="",documents:t,...r})=>n(ke,{className:`font-sans bg-white mt-[10px] ${e}`,...r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?$e(t):null})}))),$e=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Te={Headline:N,LinkDocs:A,TextBlock:xe,ProductBlock:ue,Gallery:ye,LinkList:Se},De=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Be({context:t,className:n})):null,Be=({context:e,className:t})=>(r,l)=>{const a=r?.blockListType;if(!a||!(a in Te))return null;const{style:o,...i}=r,c=f(o);return n(Te[a],{className:`${t} ${c}`,context:e,...i},`block_${l}`)},Re=l((({blocks:e,context:t})=>n("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:De({context:t,blocks:e,className:"!px-0"})}))),_e=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:o})=>{const{hasContent:i,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;l(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:o,blocks:l});return r("li",{className:`${Ve(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(i?"group-hover:text-primary-main":""),children:[t?n(p,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),i?n(p,{image:c,width:"24",height:"24",asSVG:!0}):null]}),i?n(Re,{blocks:l,context:o}):null]})}));function Ve(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Ae=l((({title:e,description:t,accordionItems:l,context:a,className:o="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${o}`,children:[e?n(i,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(_e,{...e,context:a,bordered:c},`AccordionItem_${t}`)))}):null]}))),Pe=(e=!1)=>e?"text-white":"",Le=(e=!1)=>"text-m-sm mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Me=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:o})=>r("div",{role:"columnheader",scope:"col",children:[e?n(p,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(p,{image:t})}),l?n(i,{headingType:"h4",className:Pe(o),title:l}):null,a?n("div",{className:Le(o),children:a}):null]}))),Ge=l((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(je(r,t))})}))),je=(e,t)=>({label:l,description:a},o)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(o)),We=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:o,onToggleColumn:i})=>{const c=t?.slice(0,o?t.length:l),s=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Me,{...e,isFillGradient:a}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Ge,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,o&&Oe({header:e,buttonVersion:s}),Ue({onToggleColumn:i,isFillGradient:a,showRow:o})]})})),Oe=({header:e,buttonVersion:t})=>n(q,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Ue=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),Ee=l((({className:e,context:t,title:l,rowHeaders:a,columns:o,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=o?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(o?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[l?n(i,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,Fe({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),Fe=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:o,orientation:i="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?He({orientation:i,context:e,columnsViewState:a,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:o}):null}),He=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:o,isColoredFirstColumn:i,handleToggleColumn:c})=>"horizontal"===e?n($,{context:t,onSlideChange:Ze(r,l),children:a.map(ze({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c}))}):a.map(ze({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c})),ze=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(o,i)=>n(We,{context:e,visibleRowLength:t,showRow:l[i],header:o.header,columnData:o.column,isFillGradient:0===i&&r,onToggleColumn:()=>a(i)},String(i)),Ze=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Je(){try{const e=await fetch(qe,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ke)});return await e.json()}catch(e){console.error(e)}}const qe="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Ke={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Qe=e=>e.reduce(((e,t)=>{const n=t.currency_first;if(!Ye(t.rate_buy)&&!Ye(t.rate_sell))return e;const r=n.code;return e.some((e=>e.code===r))||e.push({code:r,buy:Number(t.rate_buy),sell:Number(t.rate_sell)}),e}),[]),Ye=e=>Math.round(e)>0,Xe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function et(e=""){const t=Xe(e);return t<=4?"h4":t<=8?"h3":"h2"}var tt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(tt||(tt={}));const nt=new Intl.NumberFormat("ru",{style:"currency",currency:tt.RUB}),rt=e=>e?nt.format(e):"",lt="font-light text-left font-normal text-sm text-secondary-text",at={USD:"DollarIcon",EUR:"EuroIcon"},ot=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:lt,children:"Валюта"}),n("th",{className:`${lt} pl-11`,children:"Купить"}),n("th",{className:`${lt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>it(e)))})]}))),it=e=>{const t=e?.code;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(p,{image:{icon:at[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:rt(e.buy)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:rt(e.sell)})]},t)},ct=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex text-sm ${e}`,children:[n(p,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),st=(e,t,n)=>{const r=Number(dt(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(r)},dt=e=>e.replace(/[^\d.,]/g,"").replace(",","."),mt=e=>{return(t=[[e=>e.value!==tt.RUB&&e.oppositeValue!==tt.RUB,()=>e.handleConvert(e.value,tt.RUB)],[e=>e.value===tt.RUB&&e.oppositeValue===tt.RUB,()=>e.handleConvert(e.value,tt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};const ht=l((({className:e="",id:t,name:r,type:l="text",placeholder:a,pattern:o,value:i,onChange:c})=>n("input",{className:e,id:t,name:r||t,type:l,pattern:o,placeholder:a,value:i,onChange:e=>(e=>{const t=e.target.validity.valid?e.target.value:i;c(t)})(e)}))),ut=l((({className:e="",id:t,name:r,children:l,value:a,onChange:o})=>n("select",{className:e,id:t,name:r||t,value:a,onChange:e=>o(e.target.value),children:l}))),pt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l})));function xt(e){const{placeholder:t,rates:l,selected:a,value:o,setValue:i,setSelected:c}=e;return r("div",{className:"relative flex items-center",children:[n(ht,{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:o,onChange:i}),l.length?n(ut,{className:"h-9 -translate-x-4",value:a,onChange:e=>c(e),children:l.map(((e,t)=>n(pt,{value:e.code,children:e.code},String(t))))}):null]})}const gt=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:a})=>{const[o,i]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||tt.RUB,selectBuy:a?.[0]?.code||tt.USD}),c=e=>{i((t=>({...t,...e})))};return r("div",{className:`grid gap-3.5 ${t}`,children:[xt({placeholder:"Хочу продать",rates:l,selected:o.selectSell,setSelected:bt(o,c,a),value:o.inputSell,setValue:e=>yt(c,a)(e,o.selectSell,o.selectBuy)}),xt({placeholder:"Получу",rates:a,selected:o.selectBuy,setSelected:ft(o,c,l),value:o.inputBuy,setValue:e=>vt(c,l)(e,o.selectBuy,o.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:"Купить валюту"})]})})),bt=(e,t,n)=>r=>{t({selectSell:r}),mt({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{yt(t,n)(e.inputSell,r,l)}})},ft=(e,t,n)=>r=>{t({selectBuy:r}),mt({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>vt(t,n)(e.inputBuy,r,l)})},yt=(e,t)=>(n,r,l)=>{e({inputSell:dt(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(st(n,a,r===tt.RUB)||"")})},vt=(e,t)=>(n,r,l)=>{e({inputBuy:dt(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(st(n,a,r===tt.RUB)||"")})},Nt={address:"Москва, ул.Ленина д.28",distance:"6км"},wt=l((({className:e="",context:t,title:l="Курсы обмена валют",...a})=>{const o=function(e){const{data:t}=e(qe,Je),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Qe(n):n}(t.useAsyncData),c=o.filter((e=>e.buy));c.unshift({code:tt.RUB});const s=o.filter((e=>e.sell));return s.push({code:tt.RUB}),n(ke,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...a,children:n(le,{context:t,title:n(i,{headingType:et(e),title:l,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[o?n(ot,{className:"mb-[31px]",exchangeCurrencyItems:o}):null,n(ct,{...Nt})]}),o.length&&c.length&&s.length?n(gt,{className:"grow",context:t,currencyRatesBuy:c,currencyRatesSell:s}):null]})})})})),It=l((({className:e,viewBox:t,fill:r="none",width:l,height:a,paths:o,...i})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:l,height:a,children:o.map((({d:e,fill:t,...r},l)=>n("path",{d:e,fill:t||"currentColor",...i,...r},l)))}))),Ct=["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"],kt={"bg-white":"text-primary-main",transparent:"text-white"},St={"bg-white":"text-black",transparent:"text-white"},$t=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:o="bg-white",hideTitle:i})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(It,{className:`${kt[o]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Ct.map((e=>({d:e})))}),i?null:n("span",{className:`${St[o]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),Tt=l((({className:e="",title:t="Мобильное приложение",description:l,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n($t,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:l})]})]}):null}))),Dt=l((({className:e="",items:t,hasButton:l,context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:e,children:[t?.length?t.map(Bt):null,l?n(q,{version:"primary",className:"mb-6 w-full",...U({router:o,handlerDecorator:i},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Bt=(e,t)=>{const{type:l,text:a,description:o}=e;return r("div",{className:"mb-4",children:[n("div",{children:Rt(l,a)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:o})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`tel:${_t(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},_t=e=>e.replaceAll(/\D/g,""),Vt=l((({title:e,links:t,className:l="",context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(At,{index:t,...U({router:o,handlerDecorator:i},e)},String(t))))}):null]})})),At=l((({className:e="",index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`}))),Pt=[{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"}],Lt=l((({href:e,version:t="primary"})=>{const{icon:r,label:l}=Pt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;const a="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"} ${a?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(p,{image:r,imageClassName:a?"group-hover:text-white":"",width:"24",height:"24",asSVG:!0}):null})})),Mt=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Lt,{version:r,...U({router:a,handlerDecorator:o},e)},String(t))))})})),Gt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(jt,{index:t,...U({router:a,handlerDecorator:o},e)},String(t))))}):null]})})),jt=l((({className:e,index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`})));function Wt(e){const{data:t}=e(Ut(),Ot);return t||{}}async function Ot(){const e=await fetch(Ut());return await e.json()}function Ut(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Et=l((({className:e,context:t})=>{const{term:l,setTerm:a}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(p,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),a("")},children:n(p,{image:"CloseIcon",width:"24",height:"24"})})]})})),Ft=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Ht=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:o,context:i,horizontalNavigationTitle:c})=>{const s=Wt(i.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Dt,{className:"overflow-hidden",items:a,context:i,hasButton:!0}),n(Ae,{context:i,className:"!p-0 mb-4",accordionItems:Ft(s.topItems)}),n("div",{children:d?.map(zt)}),n(Tt,{context:i,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Et,{context:i,className:"grow"}),n(Mt,{className:"pb-4",media:o,context:i}),n(Vt,{title:c,links:l,context:i}),n(Gt,{links:t,context:i})]})})),zt=(e,t)=>{const{icon:l,href:a,text:o}=e;return r(q,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(p,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:o})]},`footer-${t}`)},Zt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(L(e),(e=>(e||"").replace(j,""))(L(P(e)?t.href:t.pathname))),Jt=e=>t=>Zt(t.href,e),qt=e=>t=>t.items?.some(Jt(e))||Zt(t.href,e)||((e,t)=>M(e)===M(t.href))(t.href,e),Kt=e=>t=>e?.href===t?.href,Qt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Kt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Kt(e))))));var n,r,l},Yt="absolute left-0 -bottom-3 w-full h-[2px]",Xt=l((({className:e,text:t,href:l,target:a,active:o,onClick:i,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:l,target:a,onClick:i,children:[n("span",{className:en(s,o),children:t||c}),o?n("div",{className:tn(s,o)}):null]}))),en=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},tn=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Yt}`:Yt,nn=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:o})=>{const[i,c]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:l,children:n(p,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(p,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),i]}),o,n("div",{className:"mb-7",children:t?.map(rn)}),n(Et,{context:e,className:"grow"})]})})),rn=(e,t)=>{const{icon:l,href:a,text:o}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(p,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:o})]},`headerSubMenu-${t}`)},ln=l((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(p,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n($t,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),an=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:o})=>{const i=a.useRouter(),c=Wt(a.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=a,m=Qt(c.topItems,o).find(qt(i))?.items,h=(e=>(t=[])=>{const n=t?.filter(Jt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(i)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(ln,{onClick:x,bgColor:l}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>on({...U({router:i,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(nn,{context:a,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Ae,{context:a,accordionItems:Ft(c.topItems),className:"!p-0 mb-4"})}):null]})})),on=(e,t)=>n(Xt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function cn(e=""){const t=Xe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function sn(e=""){const t=Xe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const dn=l((({className:e,context:t,title:l,description:a="Блок в разработке...",...o})=>n(ke,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${sn(e)} ${cn(e)} `,...o,children:r(le,{context:t,title:l?n(i,{headingType:et(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[a?n(Q,{className:"mt-4 max-w-[600px]",description:a}):null,n("figure",{className:"m-0 min-w-[600px]",children:mn()})]})}))),mn=(e=3)=>un(100,e).map((e=>Math.floor(e))).map(hn),hn=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),un=(e,t)=>[e].concat(t>0?un(e/1.618,t-1):[]),pn={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xn=l((({block:e,headingType:t,context:r,className:l=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${pn[e?.version??"primary"]} ${l}`,children:n("div",{className:"flex grow",children:n(ce,{context:r,headingType:t||"h2",...e})})}))),gn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n($,{context:t,children:l.map(((e,r)=>n(xn,{block:e,context:t},String(r))))})})})),bn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},fn=e=>bn[e],yn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},vn={normal:"min-h-[70px]",small:"min-h-[50px]"},Nn=l((({className:e,title:t,description:l,showLines:a=!0,steps:o,size:c="normal",version:s="primary"})=>{const d=fn(s);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${d.background} ${d.title} ${e||""}`,children:[t?n(i,{headingType:"h3",className:`text-center ${d.title}`,title:t}):null,l?n("p",{className:`text-m-md text-center ${d.description} ${t?"mt-2":""}`,children:l}):null,o?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:o.map(wn(c,s,a))})}):null]})})),wn=(e,t,l)=>(a,o,i)=>{const c=i.length-1===o,s="normal"===e?"ml-[34px]":"ml-6",d=fn(t);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[In(e,t),c?null:n("div",{className:`min-h-8 h-full w-[2px] ${l?d.iconConnector:""} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${vn[e]}`,children:[a.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:a.label}):null,a.description?n("div",{className:`font-normal text-sm ${d.description} text-left ${a.label?"mt-1":""}`,children:a.description}):null]})]})},String(o))},In=(e,t)=>(r,l)=>{const a=fn(t),o="normal"===e?"38":"27",i="normal"===e?"text-m-title":"text-m-title-xs";return n("div",{className:`${yn[e]} ${a.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${a.title} ${i}`,children:(c=r?.icon,Boolean(c?.icon||c?.src)?n(p,{image:r.icon,width:o,height:o,asSVG:!0}):n("span",{children:l+1}))})});var c},Cn=l((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(i,{headingType:"h3",className:"font-medium",title:e}):null,t?n(p,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),kn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],Sn=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(Cn,{...e}),t?.length?t.map($n):null]}))),$n=({label:e,description:t,list:l,image:a,buttons:o},i)=>r("div",{children:[i>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,l?.items?.length?Tn(l):null,a?n(p,{image:{...a,className:"m-0"}}):null,o?.length?Dn(o):null]},String(i)),Tn=e=>n(re,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Dn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(q,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:kn(e),rounded:t,appendLeft:e?n(p,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),Bn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(Sn,{...e},String(t))))}))),Rn=l((({tiles:e,context:t})=>n($,{context:t,children:e.map(((e,t)=>n(Sn,{...e},String(t))))}))),_n=l((({className:e,context:t,title:l,description:a,columns:o,rowHeaders:c,orientation:s="vertical"})=>{const d=An(o),m=Pn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(i,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?Vn(s,m,t):null]})}));function Vn(e,t,r){return"vertical"===e?n(Bn,{tiles:t}):n(Rn,{context:r,tiles:t})}const An=e=>e?.[0].data?e[0].data:[],Pn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Ln={Accordion:Ae,ComparisonTable:Ee,ExchangeRateTile:wt,Footer:Ht,Gallery:ye,Header:an,Headline:N,LinkDocs:A,LinkList:Se,MobileAppTile:Tt,ProductBlock:ue,ProductGallery:gn,StepsBlock:Nn,TariffsTable:_n,TextBlock:xe,Placeholder:dn},Mn=l((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Gn()}))),Gn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},jn=l((({className:e,context:t,...l})=>{const a=t.useLikeService();return r(ke,{Tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(Mn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Mn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Wn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),On=l((({className:e="",context:t,blocksRegistry:l,data:{style:a,blocks:o,slots:i={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Wn})=>{const{header:m}=i;return r("section",{className:`relative ${f(a)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${f(m?.style)}`,children:m.blocks.map(((e,n)=>Un({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,o?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:o.map(((e,n)=>Un({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,c?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(jn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Un({block:e,blockDecorator:t,blocksRegistry:r,context:l},a){const{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const i=r[o||"Placeholder"]||dn;return t({blockClassName:`scroll-mt-12 ${f(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(i,{className:e.blockClassName,version:t,context:l,anchor:c,...r},`${o}-${a}`)}},`block-${a}`)}e.Blocks=Ln,e.ContentPage=On,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(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token: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:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:l,name:a}=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:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,name:a}=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:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=d,e.setup=t,e.url=G,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,o=r||a&&a();return e(Object.assign(l,o&&{children:o}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const o={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},i=l((e=>{const{className:t,headingType:r,title:l,as:a}=e;if(!r)return;return n(a||r,{className:`font-sans font-medium m-0 ${o[r]} ${t||""}`,children:l})}));var c,s;!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"}(c||(c={})),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="Добавить продукт"}(s||(s={}));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:a=`Иконка ${s[l]||l}`,title:o=a,iconVersion:i="normal",asSVG:c,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return c?r("svg",{className:e,...h,"aria-hidden":"true",children:[o?n("title",{children:o}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[i]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:o,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=l((({className:e="",image:t,imageClassName:r="",...l})=>{const a="string"==typeof t?t:t?.icon;return a||""===a?n(h,{className:e,imageClassName:r,iconVersion:u(t),name:a,...l}):n(x,{className:e,imageClassName:r,image:t})})),x=l((({className:e="",image:t,imageClassName:l=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:b(t)},`${r}_${e}`))):null,g(t,l)]}):null)),g=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",a=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:a,title:l,style:r,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}function f(e){return e?e.filter(Boolean).join(" "):""}const y={left:"text-left",center:"text-center",right:"text-right"},v={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"}},N=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:o,align:c="left"})=>{const s=v[e];return r("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${s.background} ${t}`,children:[l?n(i,{headingType:"h2",className:`${s.text} ${y[c]}`,title:l}):null,a?n("p",{className:`font-normal text-m-md ${s.description} ${y[c]} `,children:a}):null,o?.src&&n("div",{className:"mt-2.5 mx-auto flex justify-center",children:n(p,{image:o})})]})})),w=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:I(l,t,r),"aria-hidden":!0},String(l))))}):null})),I=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},C=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),k=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),S=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:o=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...k(o),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(C,{style:k(o/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(C,{children:t})}))),$=l((({className:e,context:t,children:l,gap:a=14,padding:o=16,showDots:i=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:i,children:l};return r("div",{className:e,children:[n(S,{gap:a,padding:o,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:i}=e.currentTarget,m=i[0].offsetWidth-o/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const o=r-n;if(2===l)return[[0,o],[o,r]];const i=a+e,c=n-e-t,s=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===s?[t>0?o-c:0,t>0?o:c]:[(t-1)*i+c,t*i+c]));return d[l-1]=[o,r],d})({gap:a,padding:o,clientWidth:n,scrollWidth:l,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:l}),n(w,{...u})]})})),T=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:o,icon:i})=>{const{text:c,fileSize:s,...d}=o;return r("a",{className:e,role:"link",...d,children:[i?n(p,{className:t,image:i,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:l,children:[c,n("span",{className:a,children:d?.href&&D(B(d.href),s)})]}):null]})})),D=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),B=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},R=l((({className:e="",doc:t,icon:r})=>n(T,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),_=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n($,{context:e,className:"text-m-sm text-primary-main mt-5",children:r?.length?r.map(((e,r)=>n(R,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),V=l((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,l)=>n("div",{role:"listitem",children:n(R,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),A=l((({className:e="",context:t,title:l,description:a,icon:o={icon:"DocIconMonoColor"},documents:i,orientation:c="vertical",hasBorder:s=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[n(N,{className:"!p-0 "+(a?"gap-2":"gap-5"),title:l,description:a,context:t,align:"center",headingType:"h3"}),"vertical"===c?n(V,{hasBorder:s,documents:i,icon:o}):n(_,{context:t,hasBorder:s,documents:i,icon:o})]}))),P=e=>e?.includes("//"),L=e=>(e||"").replace(/\/?\?.*/,""),M=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var G=Object.freeze({__proto__:null,isURL:P,withoutQuery:L,getOrigin:M,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const j="/mobile",W=(e,t)=>{if(!e)return e;const n=M(t?.href);return n?e.replace(n,"")||"/":e},O=e=>e;function U({router:e,handlerDecorator:t=O},n){const r=((e,t)=>{if(!e)return e;const n=W(e,t)||"",r=t?.pathname.startsWith(j);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!P(r),a=!n.target||"_self"===n.target;l&&a&&(t.preventDefault(),e.push(r))}),n)}}const E=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:o}=e;return r("div",{className:F(e),children:[a||null,H(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-base text-left",children:t})]}):null,o||null]})})),F=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="px-9 gap-2 "+(n?"py-2":"py-4");return["flex items-center justify-center",H(e)?l:"h-12 w-12",r?"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:"text-primary-main"},Z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},J="w-full text-center font-sans select-none",q=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:o,onClick:i,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(E,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${J} ${Z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${J} inline-block cursor-pointer no-underline ${z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:o,onClick:i,"aria-label":h,role:a?"link":"button",...u,children:p})})),K=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,iconRight:t,...r},l){if(!r?.text)return;return n(q,e?{appendLeft:n(p,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(p,{image:t,width:"24",height:"24",asSVG:!0}),...r}:{...r},String(l))}(U({router:a,handlerDecorator:l},e),t)))}):null}));const Q=l((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Y={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"},X={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:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:te(a)}):null,n("span",{children:l})]}))),te=e=>`${Y[e]} ${X[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"},re=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:o="primary"}=e;return n("section",{className:`${ne[o]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(ee,{className:r,isDotted:l,version:o,children:e},String(t)))):null})})),le=l((({className:e="",title:t,children:l,buttons:a,image:o})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),a?n("div",{children:a}):null]}),o]})]}))),ae={primary:"text-primary-text",secondary:"text-white"},oe={primary:"text-secondary-text",secondary:"text-white"};function ie(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ce=l((({className:e="",context:t,title:l,headingType:a="h2",description:o,benefits:c,benefitsVersion:s="normal",buttons:d,image:m,items:h,version:u="primary",isDotted:x=!0,label:g})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[g?me(g,u):null,r(le,{context:t,title:l?n(i,{headingType:a,title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:d?.length?n(K,{context:t,buttons:d,className:"flex flex-col mt-5 gap-2.5"}):null,children:[o?n(Q,{className:"mt-3 text-m-md",description:o}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(p,{className:ie(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${ae[t]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${oe[t]}`,children:e.description})]},String(l))}({benefit:e,version:u,benefitsVersion:s},t)))}):null,h?.length?n(re,{className:"mt-3 text-m-md",items:h,version:u,isDotted:x}):null]})]}),se(m)]})));function se(e){return e?.src?n(p,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const de={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},me=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${de[t]}`,children:e}),he={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ue=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${he[r]} ${t}`,children:n(ce,{...e})})})),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"}},xe=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:o,className:i="",items:c,isDotted:s=!0})=>{const d=pe[l];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${i}`,children:["small"===a?ge(d.icon):null,"big"===a?be(o):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(re,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===l?"secondary":"gray"}):null]})]})}));function ge(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function be(e){return e?.src?n(p,{className:"pb-3 mr-auto",image:e}):null}const fe={primary:"bg-white",secondary:"bg-primary-main text-white"},ye=l((({context:e,title:t,description:l,cards:a=[],className:o,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${o}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(i,{headingType:"h3",className:"text-center "+(l?"mb-2":"mb-5"),title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),ve(c,a,e)]})));function ve(e,t,r){return"horizontal"===e?n($,{context:r,children:t?.map(Ne)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ne)})}function Ne(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${fe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(p,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?we(e):null,e.items?.length?Ie(e.items,e.isDotted,e.version):null]}),e?.button?.text?(l=e.button,n(q,{className:"mt-3",appendLeft:l?.icon&&n(p,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function we(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ie(e,t,l="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[t?n("div",{className:te(l)}):null,n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===l?"text-secondary-text":""),children:e.text})]},String(a))))})}const Ce=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},ke=l((({anchor:e,className:t,context:r,children:l,Tag:a="section"})=>{const{IntersectionObserverTag:o}=r;return e?n(o,{Tag:a,className:t,observerCallback:Ce,observerOptions:{threshold:1},anchor:e,children:l}):n(a,{className:t,children:l})})),Se=l((({className:e="",documents:t,...r})=>n(ke,{className:`font-sans bg-white mt-[10px] ${e}`,...r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?$e(t):null})}))),$e=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Te={Headline:N,LinkDocs:A,TextBlock:xe,ProductBlock:ue,Gallery:ye,LinkList:Se},De=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Be({context:t,className:n})):null,Be=({context:e,className:t})=>(r,l)=>{const a=r?.blockListType;if(!a||!(a in Te))return null;const{style:o,...i}=r,c=f(o);return n(Te[a],{className:`${t} ${c}`,context:e,...i},`block_${l}`)},Re=l((({blocks:e,context:t})=>n("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:De({context:t,blocks:e,className:"!px-0"})}))),_e=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:o})=>{const{hasContent:i,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;l(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:o,blocks:l});return r("li",{className:`${Ve(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(i?"group-hover:text-primary-main":""),children:[t?n(p,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),i?n(p,{image:c,width:"24",height:"24",asSVG:!0}):null]}),i?n(Re,{blocks:l,context:o}):null]})}));function Ve(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Ae=l((({title:e,description:t,accordionItems:l,context:a,className:o="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${o}`,children:[e?n(i,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(_e,{...e,context:a,bordered:c},`AccordionItem_${t}`)))}):null]}))),Pe=(e=!1)=>e?"text-white":"",Le=(e=!1)=>"text-m-sm mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Me=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:o})=>r("div",{role:"columnheader",scope:"col",children:[e?n(p,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(p,{image:t})}),l?n(i,{headingType:"h4",className:Pe(o),title:l}):null,a?n("div",{className:Le(o),children:a}):null]}))),Ge=l((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(je(r,t))})}))),je=(e,t)=>({label:l,description:a},o)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(o)),We=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:o,onToggleColumn:i})=>{const c=t?.slice(0,o?t.length:l),s=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Me,{...e,isFillGradient:a}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Ge,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,o&&Oe({header:e,buttonVersion:s}),Ue({onToggleColumn:i,isFillGradient:a,showRow:o})]})})),Oe=({header:e,buttonVersion:t})=>n(q,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Ue=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),Ee=l((({className:e,context:t,title:l,rowHeaders:a,columns:o,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=o?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(o?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[l?n(i,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,Fe({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),Fe=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:o,orientation:i="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?He({orientation:i,context:e,columnsViewState:a,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:o}):null}),He=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:o,isColoredFirstColumn:i,handleToggleColumn:c})=>"horizontal"===e?n($,{context:t,onSlideChange:Ze(r,l),children:a.map(ze({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c}))}):a.map(ze({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c})),ze=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(o,i)=>n(We,{context:e,visibleRowLength:t,showRow:l[i],header:o.header,columnData:o.column,isFillGradient:0===i&&r,onToggleColumn:()=>a(i)},String(i)),Ze=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Je(){try{const e=await fetch(qe,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ke)});return await e.json()}catch(e){console.error(e)}}const qe="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Ke={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Qe=e=>e.reduce(((e,t)=>{const n=t.currency_first;if(!Ye(t.rate_buy)&&!Ye(t.rate_sell))return e;const r=n.code;return e.some((e=>e.code===r))||e.push({code:r,buy:Number(t.rate_buy),sell:Number(t.rate_sell)}),e}),[]),Ye=e=>Math.round(e)>0,Xe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function et(e=""){const t=Xe(e);return t<=4?"h4":t<=8?"h3":"h2"}var tt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(tt||(tt={}));const nt=new Intl.NumberFormat("ru",{style:"currency",currency:tt.RUB}),rt=e=>e?nt.format(e):"",lt="font-light text-left font-normal text-sm text-secondary-text",at={USD:"DollarIcon",EUR:"EuroIcon"},ot=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:lt,children:"Валюта"}),n("th",{className:`${lt} pl-11`,children:"Купить"}),n("th",{className:`${lt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>it(e)))})]}))),it=e=>{const t=e?.code;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(p,{image:{icon:at[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:rt(e.buy)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:rt(e.sell)})]},t)},ct=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex text-sm ${e}`,children:[n(p,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),st=(e,t,n)=>{const r=Number(dt(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(r)},dt=e=>e.replace(/[^\d.,]/g,"").replace(",","."),mt=e=>{return(t=[[e=>e.value!==tt.RUB&&e.oppositeValue!==tt.RUB,()=>e.handleConvert(e.value,tt.RUB)],[e=>e.value===tt.RUB&&e.oppositeValue===tt.RUB,()=>e.handleConvert(e.value,tt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};const ht=l((({className:e="",id:t,name:r,type:l="text",placeholder:a,pattern:o,value:i,onChange:c})=>n("input",{className:e,id:t,name:r||t,type:l,pattern:o,placeholder:a,value:i,onChange:e=>(e=>{const t=e.target.validity.valid?e.target.value:i;c(t)})(e)}))),ut=l((({className:e="",id:t,name:r,children:l,value:a,onChange:o})=>n("select",{className:e,id:t,name:r||t,value:a,onChange:e=>o(e.target.value),children:l}))),pt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l})));function xt(e){const{placeholder:t,rates:l,selected:a,value:o,setValue:i,setSelected:c}=e;return r("div",{className:"relative flex items-center",children:[n(ht,{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:o,onChange:i}),l.length?n(ut,{className:"h-9 -translate-x-4",value:a,onChange:e=>c(e),children:l.map(((e,t)=>n(pt,{value:e.code,children:e.code},String(t))))}):null]})}const gt=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:a})=>{const[o,i]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||tt.RUB,selectBuy:a?.[0]?.code||tt.USD}),c=e=>{i((t=>({...t,...e})))};return r("div",{className:`grid gap-3.5 ${t}`,children:[xt({placeholder:"Хочу продать",rates:l,selected:o.selectSell,setSelected:bt(o,c,a),value:o.inputSell,setValue:e=>yt(c,a)(e,o.selectSell,o.selectBuy)}),xt({placeholder:"Получу",rates:a,selected:o.selectBuy,setSelected:ft(o,c,l),value:o.inputBuy,setValue:e=>vt(c,l)(e,o.selectBuy,o.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:"Купить валюту"})]})})),bt=(e,t,n)=>r=>{t({selectSell:r}),mt({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{yt(t,n)(e.inputSell,r,l)}})},ft=(e,t,n)=>r=>{t({selectBuy:r}),mt({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>vt(t,n)(e.inputBuy,r,l)})},yt=(e,t)=>(n,r,l)=>{e({inputSell:dt(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(st(n,a,r===tt.RUB)||"")})},vt=(e,t)=>(n,r,l)=>{e({inputBuy:dt(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(st(n,a,r===tt.RUB)||"")})},Nt={address:"Москва, ул.Ленина д.28",distance:"6км"},wt=l((({className:e="",context:t,title:l="Курсы обмена валют",...a})=>{const o=function(e){const{data:t}=e(qe,Je),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Qe(n):n}(t.useAsyncData),c=o.filter((e=>e.buy));c.unshift({code:tt.RUB});const s=o.filter((e=>e.sell));return s.push({code:tt.RUB}),n(ke,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...a,children:n(le,{context:t,title:n(i,{headingType:et(e),title:l,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[o?n(ot,{className:"mb-[31px]",exchangeCurrencyItems:o}):null,n(ct,{...Nt})]}),o.length&&c.length&&s.length?n(gt,{className:"grow",context:t,currencyRatesBuy:c,currencyRatesSell:s}):null]})})})})),It=l((({className:e,viewBox:t,fill:r="none",width:l,height:a,paths:o,...i})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:l,height:a,children:o.map((({d:e,fill:t,...r},l)=>n("path",{d:e,fill:t||"currentColor",...i,...r},l)))}))),Ct=["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"],kt={"bg-white":"text-primary-main",transparent:"text-white"},St={"bg-white":"text-black",transparent:"text-white"},$t=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:o="bg-white",hideTitle:i})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(It,{className:`${kt[o]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Ct.map((e=>({d:e})))}),i?null:n("span",{className:`${St[o]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),Tt=l((({className:e="",title:t="Мобильное приложение",description:l,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n($t,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:l})]})]}):null}))),Dt=l((({className:e="",items:t,hasButton:l,context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:e,children:[t?.length?t.map(Bt):null,l?n(q,{version:"primary",className:"mb-6 w-full",...U({router:o,handlerDecorator:i},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Bt=(e,t)=>{const{type:l,text:a,description:o}=e;return r("div",{className:"mb-4",children:[n("div",{children:Rt(l,a)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:o})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`tel:${_t(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},_t=e=>e.replaceAll(/\D/g,""),Vt=l((({title:e,links:t,className:l="",context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(At,{index:t,...U({router:o,handlerDecorator:i},e)},String(t))))}):null]})})),At=l((({className:e="",index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`}))),Pt=[{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"}],Lt=l((({href:e,version:t="primary"})=>{const{icon:r,label:l}=Pt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;const a="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"} ${a?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(p,{image:r,imageClassName:a?"group-hover:text-white":"",width:"24",height:"24",asSVG:!0}):null})})),Mt=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Lt,{version:r,...U({router:a,handlerDecorator:o},e)},String(t))))})})),Gt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(jt,{index:t,...U({router:a,handlerDecorator:o},e)},String(t))))}):null]})})),jt=l((({className:e,index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`})));function Wt(e){const{data:t}=e(Ut(),Ot);return t||{}}async function Ot(){const e=await fetch(Ut());return await e.json()}function Ut(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Et=l((({className:e,context:t})=>{const{term:l,setTerm:a}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(p,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),a("")},children:n(p,{image:"CloseIcon",width:"24",height:"24"})})]})})),Ft=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Ht=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:o,context:i,horizontalNavigationTitle:c})=>{const s=Wt(i.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Dt,{className:"overflow-hidden",items:a,context:i,hasButton:!0}),n(Ae,{context:i,className:"!p-0 mb-4",accordionItems:Ft(s.topItems)}),n("div",{children:d?.map(zt)}),n(Tt,{context:i,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Et,{context:i,className:"grow"}),n(Mt,{className:"pb-4",media:o,context:i}),n(Vt,{title:c,links:l,context:i}),n(Gt,{links:t,context:i})]})})),zt=(e,t)=>{const{icon:l,href:a,text:o}=e;return r(q,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(p,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:o})]},`footer-${t}`)},Zt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(L(e),(e=>(e||"").replace(j,""))(L(P(e)?t.href:t.pathname))),Jt=e=>t=>Zt(t.href,e),qt=e=>t=>t.items?.some(Jt(e))||Zt(t.href,e)||((e,t)=>M(e)===M(t.href))(t.href,e),Kt=e=>t=>e?.href===t?.href,Qt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Kt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Kt(e))))));var n,r,l},Yt="absolute left-0 -bottom-3 w-full h-[2px]",Xt=l((({className:e,text:t,href:l,target:a,active:o,onClick:i,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:l,target:a,onClick:i,children:[n("span",{className:en(s,o),children:t||c}),o?n("div",{className:tn(s,o)}):null]}))),en=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},tn=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Yt}`:Yt,nn=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:o})=>{const[i,c]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:l,children:n(p,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(p,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),i]}),o,n("div",{className:"mb-7",children:t?.map(rn)}),n(Et,{context:e,className:"grow"})]})})),rn=(e,t)=>{const{icon:l,href:a,text:o}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(p,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:o})]},`headerSubMenu-${t}`)},ln=l((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(p,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n($t,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),an=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:o})=>{const i=a.useRouter(),c=Wt(a.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=a,m=Qt(c.topItems,o).find(qt(i))?.items,h=(e=>(t=[])=>{const n=t?.filter(Jt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(i)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(ln,{onClick:x,bgColor:l}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>on({...U({router:i,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(nn,{context:a,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Ae,{context:a,accordionItems:Ft(c.topItems),className:"!p-0 mb-4"})}):null]})})),on=(e,t)=>n(Xt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function cn(e=""){const t=Xe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function sn(e=""){const t=Xe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const dn=l((({className:e,context:t,title:l,description:a="Блок в разработке...",...o})=>n(ke,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${sn(e)} ${cn(e)} `,...o,children:r(le,{context:t,title:l?n(i,{headingType:et(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[a?n(Q,{className:"mt-4 max-w-[600px]",description:a}):null,n("figure",{className:"m-0 min-w-[600px]",children:mn()})]})}))),mn=(e=3)=>un(100,e).map((e=>Math.floor(e))).map(hn),hn=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),un=(e,t)=>[e].concat(t>0?un(e/1.618,t-1):[]),pn={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xn=l((({block:e,headingType:t,context:r,className:l=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${pn[e?.version??"primary"]} ${l}`,children:n("div",{className:"flex grow",children:n(ce,{context:r,headingType:t||"h2",...e})})}))),gn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n($,{context:t,children:l.map(((e,r)=>n(xn,{block:e,context:t},String(r))))})})})),bn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},fn=e=>bn[e],yn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},vn={normal:"min-h-[70px]",small:"min-h-[50px]"},Nn=l((({className:e,title:t,description:l,showLines:a=!0,steps:o,size:c="normal",version:s="primary"})=>{const d=fn(s);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${d.background} ${d.title} ${e||""}`,children:[t?n(i,{headingType:"h3",className:`text-center ${d.title}`,title:t}):null,l?n("p",{className:`text-m-md text-center ${d.description} ${t?"mt-2":""}`,children:l}):null,o?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:o.map(wn(c,s,a))})}):null]})})),wn=(e,t,l)=>(a,o,i)=>{const c=i.length-1===o,s="normal"===e?"ml-[34px]":"ml-6",d=fn(t);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[In(e,t),c?null:n("div",{className:`min-h-8 h-full w-[2px] ${l?d.iconConnector:""} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${vn[e]}`,children:[a.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:a.label}):null,a.description?n("div",{className:`font-normal text-sm ${d.description} text-left ${a.label?"mt-1":""}`,children:a.description}):null]})]})},String(o))},In=(e,t)=>(r,l)=>{const a=fn(t),o="normal"===e?"38":"27",i="normal"===e?"text-m-title":"text-m-title-xs";return n("div",{className:`${yn[e]} ${a.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${a.title} ${i}`,children:(c=r?.icon,Boolean(c?.icon||c?.src)?n(p,{image:r.icon,width:o,height:o,asSVG:!0}):n("span",{children:l+1}))})});var c},Cn=l((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(i,{headingType:"h3",className:"font-medium",title:e}):null,t?n(p,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),kn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],Sn=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(Cn,{...e}),t?.length?t.map($n):null]}))),$n=({label:e,description:t,list:l,image:a,buttons:o},i)=>r("div",{children:[i>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,l?.items?.length?Tn(l):null,a?n(p,{image:{...a,className:"m-0"}}):null,o?.length?Dn(o):null]},String(i)),Tn=e=>n(re,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Dn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(q,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:kn(e),rounded:t,appendLeft:e?n(p,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),Bn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(Sn,{...e},String(t))))}))),Rn=l((({tiles:e,context:t})=>n($,{context:t,children:e.map(((e,t)=>n(Sn,{...e},String(t))))}))),_n=l((({className:e,context:t,title:l,description:a,columns:o,rowHeaders:c,orientation:s="vertical"})=>{const d=An(o),m=Pn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(i,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?Vn(s,m,t):null]})}));function Vn(e,t,r){return"vertical"===e?n(Bn,{tiles:t}):n(Rn,{context:r,tiles:t})}const An=e=>e?.[0].data?e[0].data:[],Pn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Ln={Accordion:Ae,ComparisonTable:Ee,ExchangeRateTile:wt,Footer:Ht,Gallery:ye,Header:an,Headline:N,LinkDocs:A,LinkList:Se,MobileAppTile:Tt,ProductBlock:ue,ProductGallery:gn,StepsBlock:Nn,TariffsTable:_n,TextBlock:xe,Placeholder:dn},Mn=l((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Gn()}))),Gn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},jn=l((({className:e,context:t,...l})=>{const a=t.useLikeService();return r(ke,{Tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(Mn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Mn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Wn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),On=l((({className:e="",context:t,blocksRegistry:l,data:{style:a,blocks:o,slots:i={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Wn})=>{const{header:m}=i;return r("section",{className:`relative ${f(a)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${f(m?.style)}`,children:m.blocks.map(((e,n)=>Un({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,o?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:o.map(((e,n)=>Un({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,c?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(jn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Un({block:e,blockDecorator:t,blocksRegistry:r,context:l},a){const{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const i=r[o||"Placeholder"]||dn;return t({blockClassName:`scroll-mt-12 ${f(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(i,{className:e.blockClassName,version:t,context:l,anchor:c,...r},`${o}-${a}`)}},`block-${a}`)}e.Blocks=Ln,e.ContentPage=On,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(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token: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:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:l,name:a}=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:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,name:a}=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:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=d,e.setup=t,e.url=G,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,16 +1,17 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderBlock = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const EmbeddableGroupBlocks_1 = require("./EmbeddableGroupBlocks");
5
4
  const style2className_1 = require("../../utils/style2className");
5
+ const EmbeddableGroupBlocks_1 = require("./EmbeddableGroupBlocks");
6
6
  const renderBlock = ({ context, className }) => (block, i) => {
7
7
  const type = block?.blockType;
8
8
  if (!type || !(type in EmbeddableGroupBlocks_1.EmbeddableGroupBlocks)) {
9
9
  return null;
10
10
  }
11
- const classNameBlock = (0, style2className_1.style2className)(block?.style);
11
+ const { style, ...rest } = block;
12
+ const classNameBlock = (0, style2className_1.style2className)(style);
12
13
  const EmbeddedBlock = EmbeddableGroupBlocks_1.EmbeddableGroupBlocks[type];
13
- return ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...block, className: classNameBlock }) }, `block_${i}`));
14
+ return ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...rest, className: classNameBlock }) }, `block_${i}`));
14
15
  };
15
16
  exports.renderBlock = renderBlock;
16
17
  //# sourceMappingURL=renderBlocksTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAGA,mEAAgE;AAChE,iEAA8D;AAQvD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACvB,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAE,cAAc,GAAI,IAD3C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC;AAfS,QAAA,WAAW,eAepB"}
1
+ {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAEA,iEAA8D;AAE9D,mEAAgE;AAQzD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACvB,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,IAD1C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC;AAlBS,QAAA,WAAW,eAkBpB"}
@@ -3,8 +3,8 @@ exports.BlockWrapper = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const changeHashOnObserve_1 = require("../utils/changeHashOnObserve");
6
- exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ anchor, className, context, children, Tag = 'section', ...rest }) => {
6
+ exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ anchor, className, context, children, Tag = 'section' }) => {
7
7
  const { IntersectionObserverTag } = context;
8
- return anchor ? ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve_1.changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, ...rest, children: children })) : ((0, jsx_runtime_1.jsx)(Tag, { className: className, ...rest, children: children }));
8
+ return anchor ? ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve_1.changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : ((0, jsx_runtime_1.jsx)(Tag, { className: className, children: children }));
9
9
  });
10
10
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAStD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yCAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,KACV,IAAI,YAEP,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,uBAAC,GAAG,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAChC,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAStD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yCAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,YAEb,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,uBAAC,GAAG,IAAC,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAC5C,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,13 +1,14 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks.js';
3
2
  import { style2className } from '../../utils/style2className.js';
3
+ import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks.js';
4
4
  export const renderBlock = ({ context, className }) => (block, i) => {
5
5
  const type = block?.blockType;
6
6
  if (!type || !(type in EmbeddableGroupBlocks)) {
7
7
  return null;
8
8
  }
9
- const classNameBlock = style2className(block?.style);
9
+ const { style, ...rest } = block;
10
+ const classNameBlock = style2className(style);
10
11
  const EmbeddedBlock = EmbeddableGroupBlocks[type];
11
- return (_jsx("div", { className: className, children: _jsx(EmbeddedBlock, { context: context, ...block, className: classNameBlock }) }, `block_${i}`));
12
+ return (_jsx("div", { className: className, children: _jsx(EmbeddedBlock, { context: context, ...rest, className: classNameBlock }) }, `block_${i}`));
12
13
  };
13
14
  //# sourceMappingURL=renderBlocksTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAQ9D,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,qBAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,aAAa,GAAa,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,YACvB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAE,cAAc,GAAI,IAD3C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQhE,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,qBAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAa,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,YACvB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,IAD1C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { changeHashOnObserve } from '../utils/changeHashOnObserve.js';
4
- export const BlockWrapper = JSX(({ anchor, className, context, children, Tag = 'section', ...rest }) => {
4
+ export const BlockWrapper = JSX(({ anchor, className, context, children, Tag = 'section' }) => {
5
5
  const { IntersectionObserverTag } = context;
6
- return anchor ? (_jsx(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, ...rest, children: children })) : (_jsx(Tag, { className: className, ...rest, children: children }));
6
+ return anchor ? (_jsx(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : (_jsx(Tag, { className: className, children: children }));
7
7
  });
8
8
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AASnE,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,mBAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,KACV,IAAI,YAEP,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAChC,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AASnE,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,mBAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,YAEb,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IAAC,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAC5C,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { JSXBlock } from '../../components/ContentPage/ContentPage';
2
2
  import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
3
+ import { style2className } from '../../utils/style2className';
3
4
  import type { GroupBlockDef } from './BlocksTypeProps';
4
5
  import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks';
5
- import { style2className } from '../../utils/style2className';
6
6
 
7
7
  type EmbeddableBlocksProps = {
8
8
  groupBlocks?: GroupBlockDef[];
@@ -17,12 +17,15 @@ export const renderBlock =
17
17
  if (!type || !(type in EmbeddableGroupBlocks)) {
18
18
  return null;
19
19
  }
20
- const classNameBlock = style2className(block?.style);
20
+
21
+ const { style, ...rest } = block;
22
+
23
+ const classNameBlock = style2className(style);
21
24
  const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
22
25
 
23
26
  return (
24
27
  <div className={className} key={`block_${i}`}>
25
- <EmbeddedBlock context={context} {...block} className={classNameBlock} />
28
+ <EmbeddedBlock context={context} {...rest} className={classNameBlock} />
26
29
  </div>
27
30
  );
28
31
  };
@@ -10,7 +10,7 @@ interface BlockWrapperProps {
10
10
  }
11
11
 
12
12
  export const BlockWrapper = JSX<BlockWrapperProps>(
13
- ({ anchor, className, context, children, Tag = 'section', ...rest }) => {
13
+ ({ anchor, className, context, children, Tag = 'section' }) => {
14
14
  const { IntersectionObserverTag } = context;
15
15
 
16
16
  return anchor ? (
@@ -20,14 +20,11 @@ export const BlockWrapper = JSX<BlockWrapperProps>(
20
20
  observerCallback={changeHashOnObserve}
21
21
  observerOptions={{ threshold: 1 }} // Lower threshold when hash change needed
22
22
  anchor={anchor}
23
- {...rest}
24
23
  >
25
24
  {children}
26
25
  </IntersectionObserverTag>
27
26
  ) : (
28
- <Tag className={className} {...rest}>
29
- {children}
30
- </Tag>
27
+ <Tag className={className}>{children}</Tag>
31
28
  );
32
29
  },
33
30
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.82",
3
+ "version": "0.3.84",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",