@redneckz/wildless-cms-uni-blocks 0.3.36 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +32 -10
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BlockContent.d.ts +2 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +7 -4
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/dist/components/GracePeriod/GracePeriod.js +21 -0
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -0
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +25 -0
- package/dist/components/GracePeriod/GracePeriodContent.js +2 -0
- package/dist/components/GracePeriod/GracePeriodContent.js.map +1 -0
- package/dist/components/Header/HeaderSubMenu.js +4 -0
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuObserver.js +5 -4
- package/dist/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BlockContent.d.ts +2 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +7 -4
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +6 -0
- package/lib/components/GracePeriod/GracePeriod.js +19 -0
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -0
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +25 -0
- package/lib/components/GracePeriod/GracePeriodContent.js +2 -0
- package/lib/components/GracePeriod/GracePeriodContent.js.map +1 -0
- package/lib/components/Header/HeaderSubMenu.js +4 -0
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuObserver.js +5 -4
- package/lib/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.d.ts +2 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +7 -4
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/mobile/dist/components/GracePeriod/GracePeriod.js +21 -0
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -0
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +25 -0
- package/mobile/dist/components/GracePeriod/GracePeriodContent.js +2 -0
- package/mobile/dist/components/GracePeriod/GracePeriodContent.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +4 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js +5 -4
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +2 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +7 -4
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/mobile/lib/components/GracePeriod/GracePeriod.js +19 -0
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -0
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +25 -0
- package/mobile/lib/components/GracePeriod/GracePeriodContent.js +2 -0
- package/mobile/lib/components/GracePeriod/GracePeriodContent.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +4 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js +5 -4
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/src/components/BlockContent.ts +2 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +94 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +10 -6
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +85 -0
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +70 -0
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +27 -0
- package/mobile/src/components/Header/HeaderSubMenu.tsx +5 -0
- package/mobile/src/components/Header/HeaderSubMenuObserver.ts +6 -4
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/package.json +1 -1
- package/src/components/BlockContent.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/ContentPage/ContentPage.page.json +94 -0
- package/src/components/ContentPage/ContentPage.tsx +10 -6
- package/src/components/GracePeriod/GracePeriod.example.json +85 -0
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +109 -0
- package/src/components/GracePeriod/GracePeriod.tsx +70 -0
- package/src/components/GracePeriod/GracePeriodContent.ts +27 -0
- package/src/components/Header/HeaderSubMenu.tsx +5 -0
- package/src/components/Header/HeaderSubMenuObserver.ts +6 -4
- package/src/components/MobileAppTile/MobileAppTile.tsx +4 -5
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
export const ButtonInner = JSX((props) => {
|
|
4
4
|
const { text, aboveText, appendLeft } = props;
|
|
5
|
-
return (_jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (_jsxs("div", { children: [_jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), _jsx("div", { className: "text-button
|
|
5
|
+
return (_jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (_jsxs("div", { children: [_jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), _jsx("div", { className: "text-button text-left", children: text })] })) : null] }));
|
|
6
6
|
});
|
|
7
7
|
const getButtonStyle = (props) => {
|
|
8
8
|
const { version, aboveText, rounded } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9C,OAAO,CACL,eAAK,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,aAClC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC9B,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,0BACE,cAAK,SAAS,EAAC,iCAAiC,YAAE,SAAS,GAAO,EAClE,cAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9C,OAAO,CACL,eAAK,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,aAClC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC9B,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,0BACE,cAAK,SAAS,EAAC,iCAAiC,YAAE,SAAS,GAAO,EAClE,cAAK,SAAS,EAAC,uBAAuB,YAAE,IAAI,GAAO,IAC/C,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,cAAc,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEvE,OAAO;QACL,kCAAkC;QAClC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW;QAC/C,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KAC9B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAoB,EAAE,EAAE,CACvE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
|
|
705
705
|
const ButtonInner = JSX((props) => {
|
|
706
706
|
const { text, aboveText, appendLeft } = props;
|
|
707
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button
|
|
707
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button text-left", children: text })] })) : null] }));
|
|
708
708
|
});
|
|
709
709
|
const getButtonStyle = (props) => {
|
|
710
710
|
const { version, aboveText, rounded } = props;
|
|
@@ -1522,6 +1522,8 @@
|
|
|
1522
1522
|
});
|
|
1523
1523
|
};
|
|
1524
1524
|
|
|
1525
|
+
const isSSR = () => !(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
1526
|
+
|
|
1525
1527
|
const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-[36px] bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
|
|
1526
1528
|
const renderLikeIcon = () => {
|
|
1527
1529
|
const params = {
|
|
@@ -1538,15 +1540,17 @@
|
|
|
1538
1540
|
return (jsxs("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className || ''}`, id: anchor, children: [jsx(LikeButton, { onClick: likeService.like, ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), jsx(LikeButton, { onClick: likeService.dislike, className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), jsx("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
1539
1541
|
});
|
|
1540
1542
|
|
|
1543
|
+
const isClient = !isSSR();
|
|
1541
1544
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
1542
1545
|
const ContentPage = JSX(({ className = '', context, blocksRegistry, data: { style: pageStyle, blocks, slots = {}, likeControl, colorPalette = 'pc' }, blockDecorator = defaultBlockDecorator, }) => {
|
|
1543
1546
|
const { header } = slots;
|
|
1544
1547
|
const router = context.useRouter();
|
|
1545
1548
|
// listener is for NavigatorTabs
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1549
|
+
isClient &&
|
|
1550
|
+
globalThis.addEventListener('load', () => {
|
|
1551
|
+
const sectionsWithAnchors = globalThis.document.querySelectorAll('section[id]');
|
|
1552
|
+
globalThis.document.addEventListener('scroll', () => changeHashOnScroll(router, sectionsWithAnchors));
|
|
1553
|
+
});
|
|
1550
1554
|
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [header?.blocks?.length ? (jsx("div", { className: `${style2className(header?.style)}`, children: header.blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, likeControl && (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") }))] }));
|
|
1551
1555
|
});
|
|
1552
1556
|
function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
|
|
@@ -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,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,i=r||l&&l();return e(Object.assign(a,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={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"},o=a((e=>{const{className:t,headingType:r,title:a,as:l}=e;if(!r)return;return n(l||r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}};var s,d;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",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.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",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"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка 'Влево'",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",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.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(d||(d={}));const m={none:"",primary:"text-white",secondary:"text-white"},h=a((({className:e="",name:t="",alt:a=`Иконка ${d[t]||t}`,title:l=a,asSVG:i,color:o="primary",...s})=>{const h=`${c.CDN||""}icons/${t}.svg`;return i?r("svg",{className:`${m[o]} ${e}`,...s,"aria-hidden":"true",style:"secondary"===o?{filter:"invert(1)"}:null,children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${h}#icon`,xlinkHref:`${h}#icon`})]}):n("img",{className:e,src:h,alt:a,title:l,...s,"aria-hidden":"true"})})),u=a((({className:e="",image:t,imageClassName:r="",...a})=>{const l="string"==typeof t?t:t?.icon;return l||""===l?n(h,{className:e,name:l,...a}):n(p,{className:e,imageClassName:r,image:t})})),p=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:g(t)},`${r}_${e}`))):null,x(t,a)]}):null)),x=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:l,title:a,style:r,...e.size})};function g(e){return e?`image/${String(e)}`:void 0}const b={left:"text-left",center:"text-center",right:"text-right"},f={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"}},y=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:l,image:i,align:c="left"})=>{const s=f[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${b[c]}`,title:a}),l&&n("p",{className:`font-normal text-m-md ${s.description} ${b[c]} ${a?"mt-2.5":""}`,children:l}),i?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:i})})]})})),N=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:l(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:v(a,t,r),"aria-hidden":!0},String(a))))}):null})),v=(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"}},w=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),I=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),k=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:l=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...I(i),gap:`${l}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(w,{style:I(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(w,{children:t})}))),C=a((({className:e,context:t,children:a,gap:l=14,padding:i=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:a};return r("div",{className:e,children:[n(k,{gap:l,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:l})=>{const i=r-n;if(2===a)return[[0,i],[i,r]];const o=l+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?i-c:0,t>0?i:c]:[(t-1)*o+c,t*o+c]));return d[a-1]=[i,r],d})({gap:l,padding:i,clientWidth:n,scrollWidth:a,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,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(N,{...u})]})})),$=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:i,icon:o})=>{const{text:c,fileSize:s,...d}=i;return r("a",{className:e,role:"link",...d,children:[o?n(u,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:l,children:d?.href&&S(T(d.href),s)})]}):null]})})),S=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),T=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},D=a((({className:e="",doc:t,icon:r})=>n($,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),R=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(C,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(D,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),A=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(D,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),L=a((({className:e="",context:t,title:a,subtitle:l,icon:i={icon:"DocIconMonoColor"},documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:l}):null,"vertical"===s?n(A,{hasBorder:d,documents:c,icon:i}):n(R,{context:t,hasBorder:d,documents:c,icon:i})]}))),P=e=>e?.includes("//"),W=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 j=Object.freeze({__proto__:null,isURL:P,withoutQuery:W,getOrigin:M,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const B="/mobile",G=(e,t)=>{if(!e)return e;const n=M(t?.href);return n?e.replace(n,"")||"/":e},V=e=>e;function _({router:e,handlerDecorator:t=V},n){const r=((e,t)=>{if(!e)return e;const n=G(e,t)||"",r=t?.pathname.startsWith(B);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!P(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const E=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:O(e),children:[l||null,F(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button-sm text-left",children:t})]}):null]})})),O=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",F(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},F=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={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"},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},z="w-full text-center font-sans select-none",Z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:l,target:i,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(E,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${z} ${U[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${z} inline-block cursor-pointer no-underline ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:o,"aria-label":h,role:l?"link":"button",...u,children:p})})),J=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(Z,e?{appendLeft:n(u,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(_({router:l,handlerDecorator:a},e),t)))}):null}));const q=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),K={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","tile-white":"rounded-full inline-block mr-4"},Q={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Y=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:X(l)}),n("span",{children:a})]}))),X=e=>`${K[e]} ${Q[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]}`,ee={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},te=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:i="primary"}=e;return n("section",{className:`${ee[i]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(Y,{className:r,isDotted:a,version:i,children:e},String(t)))):null})})),ne=a((({className:e="",title:t,children:a,buttons:l,image:i,anchor:o=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:o,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:a}),l?n("div",{children:l}):null]}),i]})]}))),re={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};const le=a((({className:e="",context:t,title:a,headingType:l="h2",description:i,benefits:c,buttons:s,image:d,items:m,version:h="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?ce(x,h):null,r(ne,{context:t,title:a&&n(o,{headingType:l,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(J,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?n(q,{className:"mt-3 text-m-md",description:i}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(u,{className:"w-6 h-6 rounded-full box-border",image:e.icon,width:"24",height:"24",asSVG:!0,color:a}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${re[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ae[a]}`,children:e.description})]},String(t))}(e,t,h)))}):null,m?.length?n(te,{className:"mt-3 text-m-md",items:m,version:h,isDotted:p}):null]})]}),ie(d)]})));function ie(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const oe={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},ce=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${oe[t]}`,children:e}),se={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},de=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${se[r]} ${t}`,children:n(le,{...e})})})),me={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"}},he=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:i,className:o="",items:c,isDotted:s=!0})=>{const d=me[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===l?ue(d.icon):null,"big"===l?pe(i):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(te,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function ue(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 pe(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const xe={primary:"bg-white",secondary:"bg-primary-main text-white"},ge=a((({context:e,title:t,description:a,cards:l=[],className:i,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),be(c,l,e)]})));function be(e,t,r){return"horizontal"===e?n(C,{context:r,children:t?.map(fe)}):n("div",{className:"grid gap-[14px]",children:t?.map(fe)})}function fe(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 ${xe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(u,{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?ye(e):null,e.items?.length?Ne(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(Z,{className:"mt-3",appendLeft:a?.icon&&n(u,{image:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function ye(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ne(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const ve=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?we(t):null})}))),we=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),Ie={Headline:y,LinkDocs:L,TextBlock:he,ProductBlock:de,Gallery:ge,LinkList:ve},ke=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Ce({context:t,className:n,columns:r})):null,Ce=({context:e,columns:t,className:r})=>(a,l)=>{const i=a?.blockListType;if(!i||!(i in Ie))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(Ie[i],{context:e,...a,className:"!p-0"})},`block_${l}`)},$e=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:ke({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),Se=a((({label:e,labelIcon:t,blocks:a,bordered:l,context:i})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:a});return r("li",{className:`${Te(l)} 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 ${l?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(u,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(u,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n($e,{blocks:a,context:i}):null]})}));function Te(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const De=a((({title:e,description:t,accordionItems:a,context:l,className:i="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${i}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Se,{...e,context:l,bordered:c},`AccordionItem${t}`)))}):null]}))),Re=a((({icon:e,image:t,title:a,subtitle:l,isFillGradient:i})=>r("div",{role:"columnheader",scope:"col",children:[e?n(u,{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(u,{image:t})}),a&&n(o,{headingType:"h4",className:""+(i?"text-white":""),title:a}),l&&n("div",{className:"text-m-sm mb-3.5 "+(i?"text-white":"text-secondary-text/80"),children:l})]}))),Ae=a((({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(Le(r,t))})}))),Le=(e,t)=>({label:a,description:l},i)=>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:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),l&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l})]})]},String(i)),Pe=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:l,showRow:i,onToggleColumn:o})=>{const c=t?.slice(0,i?t.length:a),s=l?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Re,{...e,isFillGradient:l}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Ae,{cell:t,rowHeader:e,isFillGradient:l},String(r)))):null,i&&We({header:e,buttonVersion:s}),Me({onToggleColumn:o,isFillGradient:l,showRow:i})]})})),We=({header:e,buttonVersion:t})=>n(Z,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Me=({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?"Скрыть":"Показать описание"})}),je=a((({className:e,context:t,title:a,rowHeaders:l,columns:i,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=i?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(i?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),Be({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),Be=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:l,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Ge({orientation:o,context:e,columnsViewState:l,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:i}):null}),Ge=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:l,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(C,{context:t,onSlideChange:_e(r,a),children:l.map(Ve({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):l.map(Ve({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),Ve=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:l})=>(i,o)=>n(Pe,{context:e,visibleRowLength:t,showRow:a[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>l(o)},String(o)),_e=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Ee(){try{const e=await fetch(Oe);return await e.json()}catch(e){console.error(e)}}const Oe="/api/v1/exchangerates.json",Fe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function He(e=""){const t=Fe(e);return t<=4?"h4":t<=8?"h3":"h2"}const Ue=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),ze=e=>e?Ue.format(e):"",Ze="font-light text-left font-normal text-sm text-secondary-text",Je={USD:"DollarIcon",EUR:"EuroIcon"},qe=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Ze,children:"Валюта"}),n("th",{className:`${Ze} pl-11`,children:"Купить"}),n("th",{className:`${Ze} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Ke(e)))})]}))),Ke=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(u,{image:{icon:Je[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:ze(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:ze(e.saleExchangeRate)})]},t)},Qe=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(u,{className:"min-w-fit",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,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Ye=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Xe=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),et=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),tt=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[nt("Хочу продать",e),nt("Получу",e),n(Z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function nt(e,t){return r("div",{className:"relative flex items-center",children:[n(Ye,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Xe,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(et,{value:e,children:e},String(t))))}):null]})}const rt=["USD","EUR"],at=["RUB","USD","EUR"],lt=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],it={address:"Москва, ул.Ленина д.28",distance:"6км"},ot=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:l=null})=>{const i=function(e){const{data:t}=e(Oe,Ee);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==rt.indexOf(e?.currency?.currency||"")))||lt;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(ne,{context:t,title:n(o,{headingType:He(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[i?n(qe,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(Qe,{...it})]}),i?.length?n(tt,{className:"grow",exchangeCurrencyItems:i,codes:at}):null]})})})})),ct=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:i,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:i.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),st=["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"],dt={"bg-white":"text-primary-main",transparent:"text-white"},mt={"bg-white":"text-black",transparent:"text-white"},ht=a((({className:e="",href:t,children:a,targetBlank:l,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ct,{className:`${dt[i]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:st.map((e=>({d:e})))}),!o&&n("span",{className:`${mt[i]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),ut=a((({className:e,title:t="Мобильное приложение",description:a,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ht,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,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:a})]})]}):null}))),pt=a((({className:e="",items:t,hasButton:a,context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:e,children:[t?.length?t.map(xt):null,a?n(Z,{version:"primary",className:"mb-6 w-full",..._({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),xt=(e,t)=>{const{type:a,text:l,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:gt(a,l)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},gt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${bt(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},bt=e=>e.replaceAll(/\D/g,""),ft=a((({title:e,links:t,className:a="",context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:a,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(yt,{index:t,..._({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),yt=a((({className:e="",index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),Nt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],vt=a((({href:e})=>{const{icon:t,width:r,height:a,label:l}=Nt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:t?n(u,{image:t,width:r,height:a,asSVG:!0,className:"block",color:"none"}):null}):null})),wt=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(vt,{..._({router:a,handlerDecorator:l},e)},String(t))))})})),It=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:i}=a;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(kt,{index:t,..._({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),kt=a((({className:e,index:t,text:r,href:a,target:l,onClick:i})=>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:a,target:l,onClick:i,children:r||`Документ ${t}`})));function Ct(e){const{data:t}=e(St(),$t);return t||{}}async function $t(){const e=await fetch(St());return await e.json()}function St(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const Tt=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(u,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&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:a,onChange:e=>l(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(),l("")},children:n(u,{image:"CloseIcon",width:"24",height:"24"})})]})})),Dt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Rt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:l,socialMedia:i,context:o,horizontalNavigationTitle:c})=>{const s=Ct(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(pt,{className:"overflow-hidden",items:l,context:o,hasButton:!0}),n(De,{context:o,className:"!p-0 mb-4",accordionItems:Dt(s.topItems)}),n("div",{children:d?.map(At)}),n(ut,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Tt,{context:o,className:"grow"}),n(wt,{className:"pb-4",media:i,context:o}),n(ft,{title:c,links:a,context:o}),n(It,{links:t,context:o})]})})),At=(e,t)=>{const{icon:a,href:l,text:i}=e;return r(Z,{version:"link",href:l,className:"flex text-sm mb-4",children:[a?n(u,{className:"pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Lt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(W(e),(e=>(e||"").replace(B,""))(W(P(e)?t.href:t.pathname))),Pt=e=>t=>Lt(t.href,e),Wt=e=>t=>t.items?.some(Pt(e))||Lt(t.href,e)||((e,t)=>M(e)===M(t.href))(t.href,e),Mt=e=>t=>e?.href===t?.href,jt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Mt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Mt(e))))));var n,r,a},Bt="absolute left-0 -bottom-3 w-full h-[2px]",Gt=a((({className:e,text:t,href:a,target:l,active:i,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:l,onClick:o,children:[n("span",{className:Vt(s,i),children:t||c}),i?n("div",{className:_t(s,i)}):null]}))),Vt=(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`},_t=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Bt}`:Bt,Et=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:l="",children:i})=>{const[o,c]=e.useGeolocation(l);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:a,children:n(u,{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(u,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),i,n("div",{className:"mb-7",children:t?.map(Ot)}),n(Tt,{context:e,className:"grow"})]})})),Ot=(e,t)=>{const{icon:a,href:l,text:i}=e;return r("a",{href:l,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(u,{className:"text-primary-main pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},Ft=a((({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(u,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(ht,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ht=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:l,topItems:i})=>{const o=l.useRouter(),c=Ct(l.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=l,m=jt(c.topItems,i).find(Wt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Pt(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})(o)(m),[u,p]=l.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ft,{onClick:x,bgColor:a}),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)=>Ut({..._({router:o,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(Et,{context:l,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(De,{context:l,accordionItems:Dt(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ut=(e,t)=>n(Gt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function zt(e=""){const t=Fe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Zt(e=""){const t=Fe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Jt=a((({className:e,context:t,title:a,description:l="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Zt(e)} ${zt(e)} `,id:i,children:r(ne,{context:t,title:a?n(o,{headingType:He(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(q,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:qt()})]})}))),qt=(e=3)=>Qt(100,e).map((e=>Math.floor(e))).map(Kt),Kt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Qt=(e,t)=>[e].concat(t>0?Qt(e/1.618,t-1):[]),Yt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Xt=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Yt[e?.version??"primary"]} ${a}`,children:n("div",{className:"flex grow",children:n(le,{context:r,headingType:t||"h2",...e})})}))),en=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(C,{context:t,children:a.map(((e,r)=>n(Xt,{block:e,context:t},String(r))))})})})),tn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},nn={normal:"min-h-[70px]",small:"min-h-[50px]"},rn={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"}},an=e=>rn[e],ln=a((({className:e,title:t,description:a,steps:l,size:i="normal",version:c="primary"})=>{const s=an(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),l?.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:l.map(((e,t)=>on({step:e,size:i,i:t,length:l.length,version:c})))})}):null]})})),on=e=>{const{step:t,size:a,i:l,length:i,version:o}=e,c=i-1===l,s="normal"===a?"ml-[34px]":"ml-[24px]",d=an(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[cn(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${nn[a]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(l))},String(l))},cn=e=>{const{step:t,size:r,i:a,version:l}=e,i=an(l),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${tn[r]} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${i.title} ${c}`,children:t.icon?.icon&&n(u,{image:t.icon,width:o,height:o,asSVG:!0})||a+1})})},sn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(u,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),dn=e=>e?.alt||e?.title||d[e?.icon?e.icon:""],mn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(sn,{...e}),t?.length?t.map(hn):null]}))),hn=({label:e,description:t,list:a,image:l,buttons:i},o)=>r("div",{children:[o>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,a?.items?.length?un(a):null,l&&n(u,{image:{...l,className:"m-0"}}),i?.length?pn(i):null]},String(o)),un=e=>n(te,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),pn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(Z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:dn(e),rounded:t,appendLeft:e?n(u,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(a))))}),xn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(mn,{...e},String(t))))}))),gn=a((({tiles:e,context:t})=>n(C,{context:t,children:e.map(((e,t)=>n(mn,{...e},String(t))))}))),bn=a((({className:e,context:t,title:a,description:l,columns:i,rowHeaders:c,orientation:s="vertical"})=>{const d=yn(i),m=Nn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("div",{className:"mb-5 text-center text-m-md",children:l}):null,m?.length?fn(s,m,t):null]})}));function fn(e,t,r){return"vertical"===e?n(xn,{tiles:t}):n(gn,{context:r,tiles:t})}const yn=e=>e?.[0].data?e[0].data:[],Nn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),vn={Accordion:De,ComparisonTable:je,ExchangeRateTile:ot,Footer:Rt,Gallery:ge,Header:Ht,Headline:y,LinkDocs:L,LinkList:ve,MobileAppTile:ut,ProductBlock:de,ProductGallery:en,StepsBlock:ln,TariffsTable:bn,TextBlock:he,Placeholder:Jt},wn=a((({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:In()}))),In=()=>{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"})]})},kn=a((({className:e,context:t,anchor:a=null})=>{const l=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(wn,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(wn,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),Cn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),$n=a((({className:e="",context:t,blocksRegistry:a,data:{style:l,blocks:i,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Cn})=>{const{header:m}=o,h=t.useRouter();return globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{if(globalThis.location.hash===`#${t?.id}`)return;const n=t?.getBoundingClientRect();n&&n.top>0&&n.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${Tn(l)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Tn(m?.style)}`,children:m.blocks.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(kn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function Sn({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const o=r[i||"Placeholder"]||Jt;return t({blockClassName:`scroll-mt-12 ${Tn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,anchor:c,...r},`${i}-${l}`)}},`block-${l}`)}function Tn(e){return e?e.join(" "):""}const Dn=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:i,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=i||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),Rn(o),An(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function Rn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function An(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Ln(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Pn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in vn&&!e.mobile?.hidden)).map(Ln)}e.Blocks=vn,e.ContentPage=$n,e.ContentPageHead=Dn,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.Header=Ht,e.Icon=h,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,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:a}=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:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=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:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:l}=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:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||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.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Pn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Pn(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=j,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,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,i=r||l&&l();return e(Object.assign(a,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={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"},o=a((e=>{const{className:t,headingType:r,title:a,as:l}=e;if(!r)return;return n(l||r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}};var s,d;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",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.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",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"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка 'Влево'",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",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.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(d||(d={}));const m={none:"",primary:"text-white",secondary:"text-white"},h=a((({className:e="",name:t="",alt:a=`Иконка ${d[t]||t}`,title:l=a,asSVG:i,color:o="primary",...s})=>{const h=`${c.CDN||""}icons/${t}.svg`;return i?r("svg",{className:`${m[o]} ${e}`,...s,"aria-hidden":"true",style:"secondary"===o?{filter:"invert(1)"}:null,children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${h}#icon`,xlinkHref:`${h}#icon`})]}):n("img",{className:e,src:h,alt:a,title:l,...s,"aria-hidden":"true"})})),u=a((({className:e="",image:t,imageClassName:r="",...a})=>{const l="string"==typeof t?t:t?.icon;return l||""===l?n(h,{className:e,name:l,...a}):n(p,{className:e,imageClassName:r,image:t})})),p=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:g(t)},`${r}_${e}`))):null,x(t,a)]}):null)),x=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:l,title:a,style:r,...e.size})};function g(e){return e?`image/${String(e)}`:void 0}const b={left:"text-left",center:"text-center",right:"text-right"},f={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"}},y=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:l,image:i,align:c="left"})=>{const s=f[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${b[c]}`,title:a}),l&&n("p",{className:`font-normal text-m-md ${s.description} ${b[c]} ${a?"mt-2.5":""}`,children:l}),i?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:i})})]})})),N=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:l(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:w(a,t,r),"aria-hidden":!0},String(a))))}):null})),w=(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"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),I=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),k=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:l=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...I(i),gap:`${l}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:I(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),C=a((({className:e,context:t,children:a,gap:l=14,padding:i=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:a};return r("div",{className:e,children:[n(k,{gap:l,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:l})=>{const i=r-n;if(2===a)return[[0,i],[i,r]];const o=l+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?i-c:0,t>0?i:c]:[(t-1)*o+c,t*o+c]));return d[a-1]=[i,r],d})({gap:l,padding:i,clientWidth:n,scrollWidth:a,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,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(N,{...u})]})})),$=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:i,icon:o})=>{const{text:c,fileSize:s,...d}=i;return r("a",{className:e,role:"link",...d,children:[o?n(u,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:l,children:d?.href&&S(T(d.href),s)})]}):null]})})),S=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),T=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},D=a((({className:e="",doc:t,icon:r})=>n($,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),R=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(C,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(D,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),A=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(D,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),L=a((({className:e="",context:t,title:a,subtitle:l,icon:i={icon:"DocIconMonoColor"},documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:l}):null,"vertical"===s?n(A,{hasBorder:d,documents:c,icon:i}):n(R,{context:t,hasBorder:d,documents:c,icon:i})]}))),P=e=>e?.includes("//"),W=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 j=Object.freeze({__proto__:null,isURL:P,withoutQuery:W,getOrigin:M,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const B="/mobile",G=(e,t)=>{if(!e)return e;const n=M(t?.href);return n?e.replace(n,"")||"/":e},V=e=>e;function _({router:e,handlerDecorator:t=V},n){const r=((e,t)=>{if(!e)return e;const n=G(e,t)||"",r=t?.pathname.startsWith(B);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!P(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const E=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:O(e),children:[l||null,F(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button text-left",children:t})]}):null]})})),O=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",F(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},F=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={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"},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},z="w-full text-center font-sans select-none",Z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:l,target:i,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(E,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${z} ${U[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${z} inline-block cursor-pointer no-underline ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:o,"aria-label":h,role:l?"link":"button",...u,children:p})})),J=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(Z,e?{appendLeft:n(u,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(_({router:l,handlerDecorator:a},e),t)))}):null}));const q=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),K={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","tile-white":"rounded-full inline-block mr-4"},Q={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Y=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:X(l)}),n("span",{children:a})]}))),X=e=>`${K[e]} ${Q[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]}`,ee={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},te=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:i="primary"}=e;return n("section",{className:`${ee[i]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(Y,{className:r,isDotted:a,version:i,children:e},String(t)))):null})})),ne=a((({className:e="",title:t,children:a,buttons:l,image:i,anchor:o=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:o,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:a}),l?n("div",{children:l}):null]}),i]})]}))),re={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};const le=a((({className:e="",context:t,title:a,headingType:l="h2",description:i,benefits:c,buttons:s,image:d,items:m,version:h="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?ce(x,h):null,r(ne,{context:t,title:a&&n(o,{headingType:l,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(J,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?n(q,{className:"mt-3 text-m-md",description:i}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(u,{className:"w-6 h-6 rounded-full box-border",image:e.icon,width:"24",height:"24",asSVG:!0,color:a}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${re[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ae[a]}`,children:e.description})]},String(t))}(e,t,h)))}):null,m?.length?n(te,{className:"mt-3 text-m-md",items:m,version:h,isDotted:p}):null]})]}),ie(d)]})));function ie(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const oe={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},ce=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${oe[t]}`,children:e}),se={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},de=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${se[r]} ${t}`,children:n(le,{...e})})})),me={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"}},he=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:i,className:o="",items:c,isDotted:s=!0})=>{const d=me[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===l?ue(d.icon):null,"big"===l?pe(i):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(te,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function ue(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 pe(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const xe={primary:"bg-white",secondary:"bg-primary-main text-white"},ge=a((({context:e,title:t,description:a,cards:l=[],className:i,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),be(c,l,e)]})));function be(e,t,r){return"horizontal"===e?n(C,{context:r,children:t?.map(fe)}):n("div",{className:"grid gap-[14px]",children:t?.map(fe)})}function fe(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 ${xe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(u,{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?ye(e):null,e.items?.length?Ne(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(Z,{className:"mt-3",appendLeft:a?.icon&&n(u,{image:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function ye(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ne(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const we=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ve(t):null})}))),ve=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),Ie={Headline:y,LinkDocs:L,TextBlock:he,ProductBlock:de,Gallery:ge,LinkList:we},ke=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Ce({context:t,className:n,columns:r})):null,Ce=({context:e,columns:t,className:r})=>(a,l)=>{const i=a?.blockListType;if(!i||!(i in Ie))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(Ie[i],{context:e,...a,className:"!p-0"})},`block_${l}`)},$e=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:ke({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),Se=a((({label:e,labelIcon:t,blocks:a,bordered:l,context:i})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:a});return r("li",{className:`${Te(l)} 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 ${l?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(u,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(u,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n($e,{blocks:a,context:i}):null]})}));function Te(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const De=a((({title:e,description:t,accordionItems:a,context:l,className:i="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${i}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Se,{...e,context:l,bordered:c},`AccordionItem${t}`)))}):null]}))),Re=a((({icon:e,image:t,title:a,subtitle:l,isFillGradient:i})=>r("div",{role:"columnheader",scope:"col",children:[e?n(u,{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(u,{image:t})}),a&&n(o,{headingType:"h4",className:""+(i?"text-white":""),title:a}),l&&n("div",{className:"text-m-sm mb-3.5 "+(i?"text-white":"text-secondary-text/80"),children:l})]}))),Ae=a((({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(Le(r,t))})}))),Le=(e,t)=>({label:a,description:l},i)=>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:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),l&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l})]})]},String(i)),Pe=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:l,showRow:i,onToggleColumn:o})=>{const c=t?.slice(0,i?t.length:a),s=l?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Re,{...e,isFillGradient:l}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Ae,{cell:t,rowHeader:e,isFillGradient:l},String(r)))):null,i&&We({header:e,buttonVersion:s}),Me({onToggleColumn:o,isFillGradient:l,showRow:i})]})})),We=({header:e,buttonVersion:t})=>n(Z,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Me=({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?"Скрыть":"Показать описание"})}),je=a((({className:e,context:t,title:a,rowHeaders:l,columns:i,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=i?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(i?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),Be({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),Be=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:l,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Ge({orientation:o,context:e,columnsViewState:l,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:i}):null}),Ge=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:l,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(C,{context:t,onSlideChange:_e(r,a),children:l.map(Ve({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):l.map(Ve({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),Ve=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:l})=>(i,o)=>n(Pe,{context:e,visibleRowLength:t,showRow:a[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>l(o)},String(o)),_e=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Ee(){try{const e=await fetch(Oe);return await e.json()}catch(e){console.error(e)}}const Oe="/api/v1/exchangerates.json",Fe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function He(e=""){const t=Fe(e);return t<=4?"h4":t<=8?"h3":"h2"}const Ue=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),ze=e=>e?Ue.format(e):"",Ze="font-light text-left font-normal text-sm text-secondary-text",Je={USD:"DollarIcon",EUR:"EuroIcon"},qe=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Ze,children:"Валюта"}),n("th",{className:`${Ze} pl-11`,children:"Купить"}),n("th",{className:`${Ze} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Ke(e)))})]}))),Ke=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(u,{image:{icon:Je[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:ze(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:ze(e.saleExchangeRate)})]},t)},Qe=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(u,{className:"min-w-fit",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,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Ye=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Xe=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),et=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),tt=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[nt("Хочу продать",e),nt("Получу",e),n(Z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function nt(e,t){return r("div",{className:"relative flex items-center",children:[n(Ye,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Xe,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(et,{value:e,children:e},String(t))))}):null]})}const rt=["USD","EUR"],at=["RUB","USD","EUR"],lt=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],it={address:"Москва, ул.Ленина д.28",distance:"6км"},ot=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:l=null})=>{const i=function(e){const{data:t}=e(Oe,Ee);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==rt.indexOf(e?.currency?.currency||"")))||lt;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(ne,{context:t,title:n(o,{headingType:He(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[i?n(qe,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(Qe,{...it})]}),i?.length?n(tt,{className:"grow",exchangeCurrencyItems:i,codes:at}):null]})})})})),ct=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:i,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:i.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),st=["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"],dt={"bg-white":"text-primary-main",transparent:"text-white"},mt={"bg-white":"text-black",transparent:"text-white"},ht=a((({className:e="",href:t,children:a,targetBlank:l,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ct,{className:`${dt[i]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:st.map((e=>({d:e})))}),!o&&n("span",{className:`${mt[i]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),ut=a((({className:e,title:t="Мобильное приложение",description:a,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ht,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,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:a})]})]}):null}))),pt=a((({className:e="",items:t,hasButton:a,context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:e,children:[t?.length?t.map(xt):null,a?n(Z,{version:"primary",className:"mb-6 w-full",..._({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),xt=(e,t)=>{const{type:a,text:l,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:gt(a,l)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},gt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${bt(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},bt=e=>e.replaceAll(/\D/g,""),ft=a((({title:e,links:t,className:a="",context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:a,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(yt,{index:t,..._({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),yt=a((({className:e="",index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),Nt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],wt=a((({href:e})=>{const{icon:t,width:r,height:a,label:l}=Nt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:t?n(u,{image:t,width:r,height:a,asSVG:!0,className:"block",color:"none"}):null}):null})),vt=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(wt,{..._({router:a,handlerDecorator:l},e)},String(t))))})})),It=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:i}=a;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(kt,{index:t,..._({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),kt=a((({className:e,index:t,text:r,href:a,target:l,onClick:i})=>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:a,target:l,onClick:i,children:r||`Документ ${t}`})));function Ct(e){const{data:t}=e(St(),$t);return t||{}}async function $t(){const e=await fetch(St());return await e.json()}function St(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const Tt=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(u,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&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:a,onChange:e=>l(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(),l("")},children:n(u,{image:"CloseIcon",width:"24",height:"24"})})]})})),Dt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Rt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:l,socialMedia:i,context:o,horizontalNavigationTitle:c})=>{const s=Ct(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(pt,{className:"overflow-hidden",items:l,context:o,hasButton:!0}),n(De,{context:o,className:"!p-0 mb-4",accordionItems:Dt(s.topItems)}),n("div",{children:d?.map(At)}),n(ut,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Tt,{context:o,className:"grow"}),n(vt,{className:"pb-4",media:i,context:o}),n(ft,{title:c,links:a,context:o}),n(It,{links:t,context:o})]})})),At=(e,t)=>{const{icon:a,href:l,text:i}=e;return r(Z,{version:"link",href:l,className:"flex text-sm mb-4",children:[a?n(u,{className:"pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Lt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(W(e),(e=>(e||"").replace(B,""))(W(P(e)?t.href:t.pathname))),Pt=e=>t=>Lt(t.href,e),Wt=e=>t=>t.items?.some(Pt(e))||Lt(t.href,e)||((e,t)=>M(e)===M(t.href))(t.href,e),Mt=e=>t=>e?.href===t?.href,jt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Mt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Mt(e))))));var n,r,a},Bt="absolute left-0 -bottom-3 w-full h-[2px]",Gt=a((({className:e,text:t,href:a,target:l,active:i,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:l,onClick:o,children:[n("span",{className:Vt(s,i),children:t||c}),i?n("div",{className:_t(s,i)}):null]}))),Vt=(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`},_t=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Bt}`:Bt,Et=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:l="",children:i})=>{const[o,c]=e.useGeolocation(l);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:a,children:n(u,{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(u,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),i,n("div",{className:"mb-7",children:t?.map(Ot)}),n(Tt,{context:e,className:"grow"})]})})),Ot=(e,t)=>{const{icon:a,href:l,text:i}=e;return r("a",{href:l,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(u,{className:"text-primary-main pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},Ft=a((({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(u,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(ht,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ht=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:l,topItems:i})=>{const o=l.useRouter(),c=Ct(l.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=l,m=jt(c.topItems,i).find(Wt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Pt(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})(o)(m),[u,p]=l.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ft,{onClick:x,bgColor:a}),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)=>Ut({..._({router:o,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(Et,{context:l,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(De,{context:l,accordionItems:Dt(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ut=(e,t)=>n(Gt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function zt(e=""){const t=Fe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Zt(e=""){const t=Fe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Jt=a((({className:e,context:t,title:a,description:l="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Zt(e)} ${zt(e)} `,id:i,children:r(ne,{context:t,title:a?n(o,{headingType:He(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(q,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:qt()})]})}))),qt=(e=3)=>Qt(100,e).map((e=>Math.floor(e))).map(Kt),Kt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Qt=(e,t)=>[e].concat(t>0?Qt(e/1.618,t-1):[]),Yt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Xt=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Yt[e?.version??"primary"]} ${a}`,children:n("div",{className:"flex grow",children:n(le,{context:r,headingType:t||"h2",...e})})}))),en=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(C,{context:t,children:a.map(((e,r)=>n(Xt,{block:e,context:t},String(r))))})})})),tn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},nn={normal:"min-h-[70px]",small:"min-h-[50px]"},rn={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"}},an=e=>rn[e],ln=a((({className:e,title:t,description:a,steps:l,size:i="normal",version:c="primary"})=>{const s=an(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),l?.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:l.map(((e,t)=>on({step:e,size:i,i:t,length:l.length,version:c})))})}):null]})})),on=e=>{const{step:t,size:a,i:l,length:i,version:o}=e,c=i-1===l,s="normal"===a?"ml-[34px]":"ml-[24px]",d=an(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[cn(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${nn[a]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(l))},String(l))},cn=e=>{const{step:t,size:r,i:a,version:l}=e,i=an(l),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${tn[r]} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${i.title} ${c}`,children:t.icon?.icon&&n(u,{image:t.icon,width:o,height:o,asSVG:!0})||a+1})})},sn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(u,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),dn=e=>e?.alt||e?.title||d[e?.icon?e.icon:""],mn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(sn,{...e}),t?.length?t.map(hn):null]}))),hn=({label:e,description:t,list:a,image:l,buttons:i},o)=>r("div",{children:[o>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,a?.items?.length?un(a):null,l&&n(u,{image:{...l,className:"m-0"}}),i?.length?pn(i):null]},String(o)),un=e=>n(te,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),pn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(Z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:dn(e),rounded:t,appendLeft:e?n(u,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(a))))}),xn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(mn,{...e},String(t))))}))),gn=a((({tiles:e,context:t})=>n(C,{context:t,children:e.map(((e,t)=>n(mn,{...e},String(t))))}))),bn=a((({className:e,context:t,title:a,description:l,columns:i,rowHeaders:c,orientation:s="vertical"})=>{const d=yn(i),m=Nn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("div",{className:"mb-5 text-center text-m-md",children:l}):null,m?.length?fn(s,m,t):null]})}));function fn(e,t,r){return"vertical"===e?n(xn,{tiles:t}):n(gn,{context:r,tiles:t})}const yn=e=>e?.[0].data?e[0].data:[],Nn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),wn={Accordion:De,ComparisonTable:je,ExchangeRateTile:ot,Footer:Rt,Gallery:ge,Header:Ht,Headline:y,LinkDocs:L,LinkList:we,MobileAppTile:ut,ProductBlock:de,ProductGallery:en,StepsBlock:ln,TariffsTable:bn,TextBlock:he,Placeholder:Jt},vn=a((({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:In()}))),In=()=>{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"})]})},kn=a((({className:e,context:t,anchor:a=null})=>{const l=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(vn,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(vn,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),Cn=!("undefined"==typeof window||!window.document||!window.document.createElement),$n=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Sn=a((({className:e="",context:t,blocksRegistry:a,data:{style:l,blocks:i,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=$n})=>{const{header:m}=o,h=t.useRouter();return Cn&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{if(globalThis.location.hash===`#${t?.id}`)return;const n=t?.getBoundingClientRect();n&&n.top>0&&n.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${Dn(l)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Dn(m?.style)}`,children:m.blocks.map(((e,n)=>Tn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Tn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(kn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function Tn({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const o=r[i||"Placeholder"]||Jt;return t({blockClassName:`scroll-mt-12 ${Dn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,anchor:c,...r},`${i}-${l}`)}},`block-${l}`)}function Dn(e){return e?e.join(" "):""}const Rn=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:i,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=i||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),An(o),Ln(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function An(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function Ln(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Pn(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Wn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in wn&&!e.mobile?.hidden)).map(Pn)}e.Blocks=wn,e.ContentPage=Sn,e.ContentPageHead=Rn,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.Header=Ht,e.Icon=h,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,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:a}=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:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=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:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:l}=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:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||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.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Wn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Wn(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=j,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -3,6 +3,7 @@ import type { ComparisonTableContent } from './ComparisonTable/ComparisonTableCo
|
|
|
3
3
|
import type { ExchangeRateTileContent } from './ExchangeRateTile/ExchangeRateTileContent';
|
|
4
4
|
import type { FooterContent } from './Footer/FooterContent';
|
|
5
5
|
import type { GalleryContent } from './Gallery/GalleryContent';
|
|
6
|
+
import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
|
|
6
7
|
import type { HeaderContent } from './Header/HeaderContent';
|
|
7
8
|
import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
8
9
|
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
@@ -22,4 +23,4 @@ import type { TileContent } from './Tile/TileContent';
|
|
|
22
23
|
/**
|
|
23
24
|
* @hidden
|
|
24
25
|
*/
|
|
25
|
-
export declare type BlockContent = BenefitsBlockContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | HeaderContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent;
|
|
26
|
+
export declare type BlockContent = BenefitsBlockContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent;
|
|
@@ -3,17 +3,20 @@ exports.ContentPage = 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 changeHashOnScroll_1 = require("../../utils/changeHashOnScroll");
|
|
6
|
+
const isSSR_1 = require("../../utils/isSSR");
|
|
6
7
|
const LikeControl_1 = require("../LikeControl/LikeControl");
|
|
7
8
|
const Placeholder_1 = require("../Placeholder/Placeholder");
|
|
9
|
+
const isClient = !(0, isSSR_1.isSSR)();
|
|
8
10
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
9
11
|
exports.ContentPage = (0, uni_jsx_1.JSX)(({ className = '', context, blocksRegistry, data: { style: pageStyle, blocks, slots = {}, likeControl, colorPalette = 'pc' }, blockDecorator = defaultBlockDecorator, }) => {
|
|
10
12
|
const { header } = slots;
|
|
11
13
|
const router = context.useRouter();
|
|
12
14
|
// listener is for NavigatorTabs
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
isClient &&
|
|
16
|
+
globalThis.addEventListener('load', () => {
|
|
17
|
+
const sectionsWithAnchors = globalThis.document.querySelectorAll('section[id]');
|
|
18
|
+
globalThis.document.addEventListener('scroll', () => (0, changeHashOnScroll_1.changeHashOnScroll)(router, sectionsWithAnchors));
|
|
19
|
+
});
|
|
17
20
|
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [header?.blocks?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `${style2className(header?.style)}`, children: header.blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, blocks?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "container grid grid-cols-12 gap-1", children: blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, likeControl && ((0, jsx_runtime_1.jsx)("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: (0, jsx_runtime_1.jsx)(LikeControl_1.LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") }))] }));
|
|
18
21
|
});
|
|
19
22
|
function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAA2D;AAE3D,uEAAoE;
|
|
1
|
+
{"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAA2D;AAE3D,uEAAoE;AACpE,6CAA0C;AAE1C,4DAAyD;AACzD,4DAAyD;AAkCzD,MAAM,QAAQ,GAAG,CAAC,IAAA,aAAK,GAAE,CAAC;AAE1B,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,cAAc,EACd,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI,EAAE,EAChF,cAAc,GAAG,qBAAqB,GACvC,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAEnC,gCAAgC;IAChC,QAAQ;QACN,UAAU,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE;YACvC,MAAM,mBAAmB,GAAG,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;YAChF,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE,CAClD,IAAA,uCAAkB,EAAC,MAAM,EAAE,mBAAmB,CAAC,CAChD,CAAC;QACJ,CAAC,CAAC,CAAC;IAEL,OAAO,CACL,qCACE,SAAS,EAAE,YAAY,eAAe,CAAC,SAAS,CAAC,IAAI,SAAS,EAAE,gBACpD,YAAY,aAEvB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,gCAAK,SAAS,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,YAChD,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC9B,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,gCAAK,SAAS,EAAC,mCAAmC,YAC/C,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CACvB,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,WAAW,IAAI,CACd,gCAAK,SAAS,EAAC,qEAAqE,YAClF,uBAAC,yBAAW,IAEV,SAAS,EAAC,mDAAmD,EAC7D,OAAO,EAAE,OAAO,IAFZ,aAAa,CAGjB,GACE,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAmB,EACnE,CAAS;IAET,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IACD,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,yBAAW,CAAC;IAC5E,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,gBAAgB,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAC9D,KAAK;QACL,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;YACjD,OAAO,CACL,uBAAC,cAAc,IAEb,SAAS,EAAE,KAAK,CAAC,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,KACV,OAAO,IALN,GAAG,IAAI,IAAI,CAAC,EAAE,CAMnB,CACH,CAAC;QACJ,CAAC;KACF,EACD,SAAS,CAAC,EAAE,CACb,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAkC;IACzD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { GracePeriodContent } from './GracePeriodContent';
|
|
3
|
+
export interface GracePeriodProps extends GracePeriodContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const GracePeriod: (props: import("@redneckz/uni-jsx").PropsWithChildren<GracePeriodProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.GracePeriod = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
+
exports.GracePeriod = (0, uni_jsx_1.JSX)(({ className = '', title, description, calendar, anchor = null }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `bg-white p-16 pt-12 ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "text-center", title: title }), (0, jsx_runtime_1.jsx)("div", { className: "font-light text-base-md text-center mt-3", children: description }), renderCalendar(calendar)] }));
|
|
9
|
+
});
|
|
10
|
+
const renderCalendar = (calendar) => {
|
|
11
|
+
const colCount = calendar.reduce((accumulator, currentValue) => accumulator + currentValue.month.length, 0) || 1;
|
|
12
|
+
const colSize = 100 / colCount;
|
|
13
|
+
const mappedCalendar = calendar.map((_) => ({
|
|
14
|
+
..._,
|
|
15
|
+
flexBasis: `${_.month.length * colSize}%`,
|
|
16
|
+
}));
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "w-full flex flex-col justify-center mt-14", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex w-full mb-3 font-light text-m-title-md mb-3 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => ((0, jsx_runtime_1.jsxs)("div", { className: "pr-3 mr-3 border-r border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex", children: renderMonthImages(_) }), (0, jsx_runtime_1.jsxs)("div", { className: "font-light text-sm text-primary-text mt-3", children: [(0, jsx_runtime_1.jsx)("span", { children: _.blackText }), "\u2009", (0, jsx_runtime_1.jsx)("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
18
|
+
};
|
|
19
|
+
const renderMonthNames = (item, colSize) => item.month.map((_) => ((0, jsx_runtime_1.jsx)("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${_.name}`)));
|
|
20
|
+
const renderMonthImages = (item) => item.month.map((_) => ((0, jsx_runtime_1.jsx)("div", { className: "max-h-[207px] border-r-[1px] pr-3 mr-3 border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)));
|
|
21
|
+
//# sourceMappingURL=GracePeriod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GracePeriod.js","sourceRoot":"","sources":["../../../src/components/GracePeriod/GracePeriod.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,0DAAuD;AACvD,8CAA2C;AAI9B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,OAAO,CACL,qCAAS,SAAS,EAAE,uBAAuB,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,aAChE,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,EAClE,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,EAC5E,cAAc,CAAC,QAAQ,CAAC,IACjB,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,EAAE;IAClC,MAAM,QAAQ,GACZ,QAAQ,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,CAAC,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAClG,MAAM,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC;IAE/B,MAAM,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1C,GAAG,CAAC;QACJ,SAAS,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG;KAC1C,CAAC,CAAC,CAAC;IAEJ,OAAO,CACL,iCAAK,SAAS,EAAC,2CAA2C,aACxD,gCAAK,SAAS,EAAC,8DAA8D,YAC1E,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GACpD,EACN,gCAAK,SAAS,EAAC,aAAa,YACzB,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAC9B,iCAEE,SAAS,EAAC,0EAA0E,EACpF,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,aAEjC,gCAAK,SAAS,EAAC,MAAM,YAAE,iBAAiB,CAAC,CAAC,CAAC,GAAO,EAClD,iCAAK,SAAS,EAAC,2CAA2C,aACxD,2CAAO,CAAC,CAAC,SAAS,GAAQ,YAC1B,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,SAAS,GAAQ,IACpD,KARD,aAAa,GAAG,EAAE,CASnB,CACP,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CACzC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACpB,gCAAiC,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,GAAG,EAAE,YACjE,CAAC,CAAC,IAAI,IADC,aAAa,CAAC,CAAC,IAAI,EAAE,CAEzB,CACP,CAAC,CAAC;AACL,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,EAAE,CACjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACpB,gCAEE,SAAS,EAAC,8FAA8F,YAExG,uBAAC,SAAG,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IAHnC,cAAc,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAI5B,CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
|
+
interface Month {
|
|
4
|
+
/** @title Название месяца */
|
|
5
|
+
name?: string;
|
|
6
|
+
/** @title Изображение календарного месяца */
|
|
7
|
+
image?: Picture;
|
|
8
|
+
}
|
|
9
|
+
interface CalendarItem {
|
|
10
|
+
month?: Month[];
|
|
11
|
+
/** @title Основной текст */
|
|
12
|
+
blackText?: string;
|
|
13
|
+
/** @title Вспомогательный текст */
|
|
14
|
+
greenText?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @title Льготный период
|
|
18
|
+
*/
|
|
19
|
+
export interface GracePeriodContent extends HeadingContent {
|
|
20
|
+
/** @title Описание */
|
|
21
|
+
description?: string;
|
|
22
|
+
/** @title Календарь */
|
|
23
|
+
calendar?: CalendarItem[];
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GracePeriodContent.js","sourceRoot":"","sources":["../../../src/components/GracePeriod/GracePeriodContent.ts"],"names":[],"mappings":""}
|
|
@@ -5,12 +5,16 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const useLink_1 = require("../../hooks/useLink");
|
|
6
6
|
const findActiveSubItem_1 = require("../../services/sitemap/findActiveSubItem");
|
|
7
7
|
const HeaderItem_1 = require("../../ui-kit/HeaderItem/HeaderItem");
|
|
8
|
+
const isSSR_1 = require("../../utils/isSSR");
|
|
8
9
|
const HeaderSubMenuObserver_1 = require("./HeaderSubMenuObserver");
|
|
9
10
|
exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ context, subItems, bgColor }) => {
|
|
10
11
|
const [subMenuIsShow, setHiddenMenuIsShow] = context.useState(false);
|
|
11
12
|
const router = context.useRouter();
|
|
12
13
|
const { handlerDecorator } = context;
|
|
13
14
|
setTimeout(() => {
|
|
15
|
+
if ((0, isSSR_1.isSSR)()) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
14
18
|
const headerSubMenu = globalThis.document.querySelectorAll('[data-item-name=header-submenu]');
|
|
15
19
|
headerSubMenu.forEach((_) => {
|
|
16
20
|
HeaderSubMenuObserver_1.headerSubMenuObserver?.observe(_);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gFAA6E;AAC7E,mEAAgE;
|
|
1
|
+
{"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gFAA6E;AAC7E,mEAAgE;AAChE,6CAA0C;AAE1C,mEAAgE;AAQnD,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACtF,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrE,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,IAAA,aAAK,GAAE,EAAE;YACX,OAAO;SACR;QAED,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,iCAAiC,CAAC,CAAC;QAC9F,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1B,6CAAqB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,GAAG,CAAC,CAAC;IAER,MAAM,aAAa,GAAG,IAAA,qCAAiB,EAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,aAAa,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnC,uBAAC,uBAAU,IAET,SAAS,EAAC,MAAM,EAChB,MAAM,EAAE,CAAC,KAAK,aAAa,KACvB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,EAC5C,YAAY,EAAC,gBAAgB,EAC7B,OAAO,EAAE,OAAO,IALX,CAAC,CAAC,IAAI,CAMX,CACH,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,SAAS,EAAC,eAAe,aAC5B,gCAAK,SAAS,EAAC,yCAAyC,YAAE,OAAO,GAAO,EACvE,iBAAiB,CAAC;gBACjB,aAAa;gBACb,aAAa;gBACb,QAAQ;gBACR,MAAM;gBACN,gBAAgB;aACjB,CAAC,IACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAkB;AAClB,MAAM,iBAAiB,GAAG,CAAC,EACzB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,MAAM,EACN,gBAAgB,GACjB,EAAE,EAAE,CAAC,CACJ,iCACE,SAAS,EAAE,0CACT,aAAa,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,EAC9D,EAAE,iCAC0B,SAAS,aAErC,mCACE,SAAS,EAAC,2DAA2D,EACrE,OAAO,EAAE,aAAa,gBACV,GAAG,aAAa,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,yBAAyB,EAAE,YAEnF,KAAK,CAAC,CAAC,CAAC;iBACN,IAAI,CAAC,CAAC,CAAC;iBACP,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GACvB,EACT,gCACE,SAAS,EAAE,8CAA8C,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,iBAC3E,CAAC,aAAa,YAE1B,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,CAAC,GACvD,IACF,CACP,CAAC;AAEF,kBAAkB;AAClB,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CACpE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnB,iCAEM,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,oBAC7B,qBAAqB,EACpC,SAAS,EAAC,mDAAmD,YAE5D,CAAC,CAAC,IAAI,IALF,CAAC,CAAC,IAAI,CAMT,CACL,CAAC,CAAC;AAEL,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAC/B,gCAAqB,SAAS,EAAC,uCAAuC,IAA5D,MAAM,CAAC,CAAC,CAAC,CAAsD,CAC1E,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.headerSubMenuObserver = void 0;
|
|
3
3
|
const isSSR_1 = require("../../utils/isSSR");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const isClient = !(0, isSSR_1.isSSR)();
|
|
5
|
+
exports.headerSubMenuObserver = isClient
|
|
6
|
+
? new IntersectionObserver((entries) => {
|
|
7
7
|
const headerSubMenuButtonElement = window.document.querySelector('[data-header-submenu-visible=toggled]');
|
|
8
8
|
const headerSubMenuItems = Array.from(window.document.querySelectorAll('[data-item-name=header-submenu]'));
|
|
9
9
|
const dotsHeaderSubMenuItems = Array.from(window.document.querySelectorAll('[data-item-name=dots-header-submenu]'));
|
|
@@ -18,7 +18,8 @@ exports.headerSubMenuObserver = (0, isSSR_1.isSSR)()
|
|
|
18
18
|
? headerSubMenuButtonElement.classList.remove('hidden')
|
|
19
19
|
: headerSubMenuButtonElement.classList.add('hidden');
|
|
20
20
|
}
|
|
21
|
-
}, { root: window.document, threshold: 1.0 })
|
|
21
|
+
}, { root: window.document, threshold: 1.0 })
|
|
22
|
+
: undefined;
|
|
22
23
|
// TODO: add types
|
|
23
24
|
const toggleVisibilityInItems = (visibilityList, items, className) => {
|
|
24
25
|
const isReversed = className !== 'hidden';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSubMenuObserver.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenuObserver.ts"],"names":[],"mappings":";;AAAA,6CAA0C;
|
|
1
|
+
{"version":3,"file":"HeaderSubMenuObserver.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenuObserver.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAE1C,MAAM,QAAQ,GAAG,CAAC,IAAA,aAAK,GAAE,CAAC;AAEb,QAAA,qBAAqB,GAAG,QAAQ;IAC3C,CAAC,CAAC,IAAI,oBAAoB,CACtB,CAAC,OAAO,EAAE,EAAE;QACV,MAAM,0BAA0B,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAC9D,uCAAuC,CACxC,CAAC;QACF,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CACnC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,iCAAiC,CAAC,CACpE,CAAC;QACF,MAAM,sBAAsB,GAAG,KAAK,CAAC,IAAI,CACvC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,sCAAsC,CAAC,CACzE,CAAC;QACF,MAAM,cAAc,GAAG,EAAE,CAAC;QAC1B,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACpB,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC;QACjE,CAAC,CAAC,CAAC;QACH,MAAM,yBAAyB,GAAG,uBAAuB,CACvD,cAAc,EACd,sBAAsB,EACtB,QAAQ,CACT,CAAC;QACF,uBAAuB,CAAC,cAAc,EAAE,kBAAkB,EAAE,WAAW,CAAC,CAAC;QACzE,IAAI,0BAA0B,EAAE;YAC9B,yBAAyB;gBACvB,CAAC,CAAC,0BAA0B,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;gBACvD,CAAC,CAAC,0BAA0B,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACxD;IACH,CAAC,EACD,EAAE,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,CAC1C;IACH,CAAC,CAAC,SAAS,CAAC;AAEd,kBAAkB;AAClB,MAAM,uBAAuB,GAAG,CAAC,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IACnE,MAAM,UAAU,GAAG,SAAS,KAAK,QAAQ,CAAC;IAC1C,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QACvE,GAAG,IAAI,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxE,OAAO,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|