@redneckz/wildless-cms-uni-blocks 0.3.68 → 0.3.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +108 -41
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/ArrowDownIcon.svg +1 -1
- package/cosmos-static/icons/ArrowUpIcon.svg +1 -1
- package/cosmos-static/icons/DoneIcon.svg +1 -0
- package/cosmos-static/icons/GridIcon.svg +1 -1
- package/dist/components/BlockContent.d.ts +3 -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/Footer/MediaButton.js +5 -4
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -3
- package/dist/components/Header/HeaderSecondaryMenu.js +4 -4
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Insurance/Insurance.js +4 -6
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +51 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +1 -1
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/icons/IconName.d.ts +5 -15
- package/dist/icons/IconName.js +3 -13
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/IconVersion.d.ts +3 -2
- package/dist/model/Insurance.d.ts +6 -0
- package/dist/model/Insurance.js +2 -0
- package/dist/model/Insurance.js.map +1 -0
- package/dist/model/Picture.d.ts +0 -1
- package/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +7 -3
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +1 -0
- package/dist/ui-kit/Img/Img.js +1 -1
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BlockContent.d.ts +3 -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/Footer/MediaButton.js +5 -4
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -3
- package/lib/components/Header/HeaderSecondaryMenu.js +4 -4
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Insurance/Insurance.js +4 -6
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +4 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +49 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +1 -1
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/icons/IconName.d.ts +5 -15
- package/lib/icons/IconName.js +3 -13
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/IconVersion.d.ts +3 -2
- package/lib/model/Insurance.d.ts +6 -0
- package/lib/model/Insurance.js +2 -0
- package/lib/model/Insurance.js.map +1 -0
- package/lib/model/Picture.d.ts +0 -1
- package/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +2 -0
- package/lib/ui-kit/Icon/Icon.js +7 -3
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +1 -0
- package/lib/ui-kit/Img/Img.js +1 -1
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +16 -21
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.d.ts +3 -1
- package/mobile/dist/components/Footer/MediaButton.js +5 -4
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +4 -4
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Insurance/Insurance.js +4 -6
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +51 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +5 -15
- package/mobile/dist/icons/IconName.js +3 -13
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/IconVersion.d.ts +3 -2
- package/mobile/dist/model/Insurance.d.ts +6 -0
- package/mobile/dist/model/Insurance.js +2 -0
- package/mobile/dist/model/Insurance.js.map +1 -0
- package/mobile/dist/model/Picture.d.ts +0 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +7 -3
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +1 -0
- package/mobile/lib/components/BlockContent.d.ts +3 -1
- package/mobile/lib/components/Footer/MediaButton.js +5 -4
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +4 -4
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Insurance/Insurance.js +4 -6
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +49 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +5 -15
- package/mobile/lib/icons/IconName.js +3 -13
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/IconVersion.d.ts +3 -2
- package/mobile/lib/model/Insurance.d.ts +6 -0
- package/mobile/lib/model/Insurance.js +2 -0
- package/mobile/lib/model/Insurance.js.map +1 -0
- package/mobile/lib/model/Picture.d.ts +0 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +7 -3
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +1 -0
- package/mobile/src/components/BlockContent.ts +5 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +50 -1
- package/mobile/src/components/Footer/MediaButton.tsx +17 -5
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +2 -3
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +14 -6
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/Insurance/Insurance.example.json +21 -0
- package/mobile/src/components/Insurance/Insurance.tsx +10 -9
- package/mobile/src/components/Insurance/InsuranceContent.ts +9 -11
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +157 -0
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +4 -1
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/mobile/src/icons/ArrowDownIcon.svg +2 -2
- package/mobile/src/icons/ArrowUpIcon.svg +2 -2
- package/mobile/src/icons/DoneIcon.svg +4 -0
- package/mobile/src/icons/GridIcon.svg +2 -3
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/IconVersion.ts +3 -2
- package/mobile/src/model/Insurance.ts +6 -0
- package/mobile/src/model/Picture.ts +0 -1
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +1 -1
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +14 -3
- package/mobile/src/ui-kit/Icon/IconProps.ts +1 -0
- package/package.json +2 -2
- package/src/components/BlockContent.ts +5 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/ContentPage/ContentPage.page.json +50 -1
- package/src/components/Footer/MediaButton.tsx +17 -5
- package/src/components/GracePeriod/GracePeriodContent.ts +2 -3
- package/src/components/Header/HeaderSecondaryMenu.tsx +14 -6
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/Insurance/Insurance.example.json +21 -0
- package/src/components/Insurance/Insurance.fixture.tsx +5 -4
- package/src/components/Insurance/Insurance.tsx +10 -9
- package/src/components/Insurance/InsuranceContent.ts +9 -11
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +52 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +157 -0
- package/src/components/ProductBlock/renderBackwardButton.tsx +4 -1
- package/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/icons/ArrowDownIcon.svg +2 -2
- package/src/icons/ArrowUpIcon.svg +2 -2
- package/src/icons/DoneIcon.svg +4 -0
- package/src/icons/GridIcon.svg +2 -3
- package/src/icons/IconName.ts +240 -5
- package/src/model/IconVersion.ts +3 -2
- package/src/model/Insurance.ts +6 -0
- package/src/model/Picture.ts +0 -1
- package/src/ui-kit/Button/ArrowButton.tsx +1 -1
- package/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +24 -0
- package/src/ui-kit/Icon/Icon.tsx +14 -3
- package/src/ui-kit/Icon/IconProps.ts +1 -0
- package/src/ui-kit/Img/Img.tsx +2 -1
- package/cosmos-static/icons/ArrowsRewindRight.svg +0 -1
- package/cosmos-static/icons/BurgerIconWhite.svg +0 -1
- package/cosmos-static/icons/CalendarWhiteIcon.svg +0 -1
- package/cosmos-static/icons/EmptyWalletWhiteIcon.svg +0 -1
- package/cosmos-static/icons/GridIconWhite.svg +0 -1
- package/cosmos-static/icons/PercentageSquareWhiteIcon.svg +0 -1
- package/mobile/src/components/Insurance/Insuranse.example.json +0 -36
- package/mobile/src/icons/ArrowsRewindRight.svg +0 -16
- package/mobile/src/icons/BurgerIconWhite.svg +0 -6
- package/mobile/src/icons/CalendarWhiteIcon.svg +0 -17
- package/mobile/src/icons/EmptyWalletWhiteIcon.svg +0 -16
- package/mobile/src/icons/GridIconWhite.svg +0 -4
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +0 -16
- package/src/components/Insurance/Insuranse.example.json +0 -36
- package/src/icons/ArrowsRewindRight.svg +0 -16
- package/src/icons/BurgerIconWhite.svg +0 -6
- package/src/icons/CalendarWhiteIcon.svg +0 -17
- package/src/icons/EmptyWalletWhiteIcon.svg +0 -16
- package/src/icons/GridIconWhite.svg +0 -4
- package/src/icons/PercentageSquareWhiteIcon.svg +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,cAAc,GAAgC;IAClD,MAAM,EAAE,mBAAmB;IAC3B,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,mBAAmB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,EAAE,EACnB,IAAI,GAAG,EAAE,EACT,GAAG,GAAG,UAAU,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,EAC5C,KAAK,GAAG,GAAG,EACX,WAAW,GAAG,QAAQ,EACtB,KAAK,EACL,GAAG,QAAQ,EACZ,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,GAAG,eAAe,CAAC,GAAG,IAAI,EAAE,SAAS,IAAI,MAAM,CAAC;IAE7D,IAAI,KAAK,EAAE;QACT,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,KAAM,QAAQ,iBAAc,MAAM,aACxD,KAAK,CAAC,CAAC,CAAC,0BAAQ,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EACrC,GAAG,CAAC,CAAC,CAAC,yBAAO,GAAG,GAAQ,CAAC,CAAC,CAAC,IAAI,EAChC,cACE,SAAS,EAAE,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,cAAc,EAAE,EAC7D,IAAI,EAAE,GAAG,IAAI,OAAO,EACpB,SAAS,EAAE,GAAG,IAAI,OAAO,GACzB,IACE,CACP,CAAC;KACH;IAED,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,iBACA,MAAM,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/ui-kit/Img/Img.js
CHANGED
|
@@ -9,7 +9,7 @@ export const Img = JSX(({ className = '', image, imageClassName = '', ...iconPro
|
|
|
9
9
|
// backwards compatibility with existing icons in usage
|
|
10
10
|
const icon = typeof image === 'string' ? image : image.icon;
|
|
11
11
|
if (icon || icon === '') {
|
|
12
|
-
return icon.length ? (_jsx(Icon, { className: className, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
|
|
12
|
+
return icon.length ? (_jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
|
|
13
13
|
}
|
|
14
14
|
return (_jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CACpB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE;IAC/D,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,uDAAuD;IACvD,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5D,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,KAAC,IAAI,IACH,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,EAClC,IAAI,EAAE,IAAI,KACN,SAAS,GACb,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;KACV;IAED,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAgB,GACvB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE,EAAE;IACjD,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,mBAAS,SAAS,EAAE,aAAa,SAAS,EAAE,aACzC,KAAK,EAAE,OAAO,EAAE,MAAM;gBACrB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,iBAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;gBACJ,CAAC,CAAC,IAAI,EACP,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,IACzB,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE;IACxD,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAC5D,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KAChE,CAAC;IACF,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IAErC,OAAO,CACL,cACE,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,SAAS,EAAE,cAAc,EACzB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,KACR,KAAK,CAAC,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
|
|
@@ -212,17 +212,14 @@
|
|
|
212
212
|
IconMap["AppleIcon"] = "AppleIcon";
|
|
213
213
|
IconMap["ArrowDownIcon"] = "ArrowDownIcon";
|
|
214
214
|
IconMap["ArrowLeftIcon"] = "ArrowLeftIcon";
|
|
215
|
-
IconMap["ArrowsRewindRight"] = "ArrowsRewindRight";
|
|
216
215
|
IconMap["ArrowUpIcon"] = "ArrowUpIcon";
|
|
217
216
|
IconMap["AtmIcon"] = "AtmIcon";
|
|
218
217
|
IconMap["BankIcon"] = "BankIcon";
|
|
219
218
|
IconMap["BurgerIcon"] = "BurgerIcon";
|
|
220
|
-
IconMap["BurgerIconWhite"] = "BurgerIconWhite";
|
|
221
219
|
IconMap["Calendar2Icon"] = "Calendar2Icon";
|
|
222
220
|
IconMap["CalendarCircleIcon"] = "CalendarCircleIcon";
|
|
223
221
|
IconMap["CalendarIcon"] = "CalendarIcon";
|
|
224
222
|
IconMap["CalendarTickIcon"] = "CalendarTickIcon";
|
|
225
|
-
IconMap["CalendarWhiteIcon"] = "CalendarWhiteIcon";
|
|
226
223
|
IconMap["CardIcon"] = "CardIcon";
|
|
227
224
|
IconMap["CardPosIcon"] = "CardPosIcon";
|
|
228
225
|
IconMap["CardTickIcon"] = "CardTickIcon";
|
|
@@ -240,17 +237,16 @@
|
|
|
240
237
|
IconMap["DocsIcon"] = "DocsIcon";
|
|
241
238
|
IconMap["DocumentTextIcon"] = "DocumentTextIcon";
|
|
242
239
|
IconMap["DollarIcon"] = "DollarIcon";
|
|
240
|
+
IconMap["DoneIcon"] = "DoneIcon";
|
|
243
241
|
IconMap["EarthIcon"] = "EarthIcon";
|
|
244
242
|
IconMap["EmptyWalletChangeIcon"] = "EmptyWalletChangeIcon";
|
|
245
243
|
IconMap["EmptyWalletIcon"] = "EmptyWalletIcon";
|
|
246
|
-
IconMap["EmptyWalletWhiteIcon"] = "EmptyWalletWhiteIcon";
|
|
247
244
|
IconMap["EuroIcon"] = "EuroIcon";
|
|
248
245
|
IconMap["GeolocationIcon"] = "GeolocationIcon";
|
|
249
246
|
IconMap["GlassIcon"] = "GlassIcon";
|
|
250
247
|
IconMap["GlobalIcon"] = "GlobalIcon";
|
|
251
248
|
IconMap["GpsIcon"] = "GpsIcon";
|
|
252
249
|
IconMap["GridIcon"] = "GridIcon";
|
|
253
|
-
IconMap["GridIconWhite"] = "GridIconWhite";
|
|
254
250
|
IconMap["InterestGrowthIcon"] = "InterestGrowthIcon";
|
|
255
251
|
IconMap["InterestIcon"] = "InterestIcon";
|
|
256
252
|
IconMap["JCBIcon"] = "JCBIcon";
|
|
@@ -267,7 +263,6 @@
|
|
|
267
263
|
IconMap["PassSendIcon"] = "PassSendIcon";
|
|
268
264
|
IconMap["PercentageRoundIcon"] = "PercentageRoundIcon";
|
|
269
265
|
IconMap["PercentageSquareIcon"] = "PercentageSquareIcon";
|
|
270
|
-
IconMap["PercentageSquareWhiteIcon"] = "PercentageSquareWhiteIcon";
|
|
271
266
|
IconMap["PersonalCardIcon"] = "PersonalCardIcon";
|
|
272
267
|
IconMap["PlayMarketIcon"] = "PlayMarketIcon";
|
|
273
268
|
IconMap["PlusIcon"] = "PlusIcon";
|
|
@@ -299,17 +294,14 @@
|
|
|
299
294
|
IconTitleMap["AppleIcon"] = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB";
|
|
300
295
|
IconTitleMap["ArrowDownIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043D\u0438\u0437'";
|
|
301
296
|
IconTitleMap["ArrowLeftIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
|
|
302
|
-
IconTitleMap["ArrowsRewindRight"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
|
|
303
297
|
IconTitleMap["ArrowUpIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445";
|
|
304
298
|
IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
|
|
305
299
|
IconTitleMap["BankIcon"] = "\u0411\u0430\u043D\u043A";
|
|
306
300
|
IconTitleMap["BurgerIcon"] = "\u0411\u0443\u0440\u0433\u0435\u0440";
|
|
307
|
-
IconTitleMap["BurgerIconWhite"] = "\u0411\u0443\u0440\u0433\u0435\u0440 (\u0431\u0435\u043B\u044B\u0439)";
|
|
308
301
|
IconTitleMap["Calendar2Icon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C 2";
|
|
309
302
|
IconTitleMap["CalendarCircleIcon"] = "\u0421\u043A\u0440\u0443\u0433\u043B\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
|
|
310
303
|
IconTitleMap["CalendarIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
|
|
311
304
|
IconTitleMap["CalendarTickIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
|
|
312
|
-
IconTitleMap["CalendarWhiteIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C \u0431\u0435\u043B\u044B\u0439";
|
|
313
305
|
IconTitleMap["CardIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430";
|
|
314
306
|
IconTitleMap["CardPosIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u043F\u043E\u0434 \u043D\u0430\u043A\u043B\u043E\u043D\u043E\u043C";
|
|
315
307
|
IconTitleMap["CardTickIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
|
|
@@ -327,17 +319,16 @@
|
|
|
327
319
|
IconTitleMap["DocsIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
|
|
328
320
|
IconTitleMap["DocumentTextIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 \u0441 \u0442\u0435\u043A\u0441\u0442\u043E\u043C";
|
|
329
321
|
IconTitleMap["DollarIcon"] = "\u0414\u043E\u043B\u043B\u0430\u0440";
|
|
322
|
+
IconTitleMap["DoneIcon"] = "\u0417\u0435\u043B\u0451\u043D\u0430\u044F '\u0433\u0430\u043B\u043E\u0447\u043A\u0430'";
|
|
330
323
|
IconTitleMap["EarthIcon"] = "\u0417\u0435\u043C\u043B\u044F";
|
|
331
324
|
IconTitleMap["EmptyWalletChangeIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u043C";
|
|
332
325
|
IconTitleMap["EmptyWalletIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A";
|
|
333
|
-
IconTitleMap["EmptyWalletWhiteIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A (\u0431\u0435\u043B\u044B\u0439)";
|
|
334
326
|
IconTitleMap["EuroIcon"] = "\u0415\u0432\u0440\u043E";
|
|
335
327
|
IconTitleMap["GeolocationIcon"] = "\u0413\u0435\u043E\u043B\u043E\u043A\u0430\u0446\u0438\u044F";
|
|
336
328
|
IconTitleMap["GlassIcon"] = "\u0417\u0435\u0440\u043A\u0430\u043B\u043E";
|
|
337
329
|
IconTitleMap["GlobalIcon"] = "\u0413\u043B\u043E\u0431\u0443\u0441";
|
|
338
330
|
IconTitleMap["GpsIcon"] = "Gps";
|
|
339
|
-
IconTitleMap["GridIcon"] = "\u0421\u0435\u0442\u043A\u0430";
|
|
340
|
-
IconTitleMap["GridIconWhite"] = "\u0421\u0435\u0442\u043A\u0430 (\u0431\u0435\u043B\u0430\u044F)";
|
|
331
|
+
IconTitleMap["GridIcon"] = "\u0421\u0435\u0442\u043A\u0430 (\u0431\u0435\u043B\u0430\u044F)";
|
|
341
332
|
IconTitleMap["InterestGrowthIcon"] = "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0440\u043E\u0441\u0442\u0430";
|
|
342
333
|
IconTitleMap["InterestIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
|
|
343
334
|
IconTitleMap["JCBIcon"] = "JCB";
|
|
@@ -354,7 +345,6 @@
|
|
|
354
345
|
IconTitleMap["PassSendIcon"] = "\u0411\u0438\u0437\u043D\u0435\u0441";
|
|
355
346
|
IconTitleMap["PercentageRoundIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B (\u043A\u0440\u0443\u0433.)";
|
|
356
347
|
IconTitleMap["PercentageSquareIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B";
|
|
357
|
-
IconTitleMap["PercentageSquareWhiteIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B \u0431\u0435\u043B\u044B\u0435";
|
|
358
348
|
IconTitleMap["PersonalCardIcon"] = "\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430";
|
|
359
349
|
IconTitleMap["PlayMarketIcon"] = "\u041B\u043E\u0433\u043E \u00ABPlayMarket\u00BB";
|
|
360
350
|
IconTitleMap["PlusIcon"] = "\u041F\u043B\u044E\u0441";
|
|
@@ -411,11 +401,15 @@
|
|
|
411
401
|
}
|
|
412
402
|
})();
|
|
413
403
|
|
|
414
|
-
const
|
|
404
|
+
const svgUseStyleMap = {
|
|
405
|
+
normal: 'text-primary-main',
|
|
406
|
+
black: 'text-black',
|
|
407
|
+
white: 'text-black invert',
|
|
408
|
+
};
|
|
409
|
+
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
|
|
415
410
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
416
|
-
const svgUseStyle = iconVersion === 'white' ? 'text-black invert' : 'text-primary-main';
|
|
417
411
|
if (asSVG) {
|
|
418
|
-
return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { className:
|
|
412
|
+
return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { className: `${svgUseStyleMap[iconVersion]} ${imageClassName}`, href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
419
413
|
}
|
|
420
414
|
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
421
415
|
});
|
|
@@ -1250,14 +1244,15 @@
|
|
|
1250
1244
|
height: '21px',
|
|
1251
1245
|
},
|
|
1252
1246
|
];
|
|
1253
|
-
const MediaButton = JSX(({ href, version }) => {
|
|
1247
|
+
const MediaButton = JSX(({ href, version = 'primary' }) => {
|
|
1254
1248
|
const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
1255
1249
|
if (!icon)
|
|
1256
1250
|
return null;
|
|
1257
1251
|
const classes = version === 'secondary'
|
|
1258
|
-
? '
|
|
1259
|
-
: '
|
|
1260
|
-
|
|
1252
|
+
? 'bg-secondary-light hover:bg-secondary-hover'
|
|
1253
|
+
: 'border-main-divider border-solid border-[1px] hover:bg-primary-main';
|
|
1254
|
+
const isPrimary = version === 'primary';
|
|
1255
|
+
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(Img, { image: { ...icon, iconVersion: 'normal' }, imageClassName: isPrimary ? 'group-hover:text-white' : '', width: width, height: height, asSVG: true })) : null }));
|
|
1261
1256
|
});
|
|
1262
1257
|
|
|
1263
1258
|
const SocialMedia = JSX(({ className, media, version, context }) => {
|
|
@@ -1368,7 +1363,7 @@
|
|
|
1368
1363
|
return (jsxs("a", { href: href, className: "flex text-sm mb-4 hover:text-primary-main", children: [icon ? (jsx(Img, { className: "text-primary-main pr-1", image: icon, width: "24", height: "24", asSVG: true })) : null, jsx("span", { className: "pl-0.5 font-medium", children: text })] }, `headerSubMenu-${i}`));
|
|
1369
1364
|
};
|
|
1370
1365
|
|
|
1371
|
-
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Img, { image: bgColor === 'bg-white' ? '
|
|
1366
|
+
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text", width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
1372
1367
|
|
|
1373
1368
|
const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems }) => {
|
|
1374
1369
|
const router = context.useRouter();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,i=r||a&&a();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="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=l((e=>{const{className:t,headingType:r,title:l,as:a}=e;if(!r)return;return n(a||r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:l})}));var c,s;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.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.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.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.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(c||(c={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowsRewindRight="Стрелка",e.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.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.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.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(s||(s={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m=l((({className:e="",name:t="",alt:l=`Иконка ${s[t]||t}`,title:a=l,iconVersion:i,asSVG:o,...c})=>{const m=`${d.CDN||""}icons/${t}.svg`,h="white"===i?"text-black invert":"text-primary-main";return o?r("svg",{className:e,...c,"aria-hidden":"true",children:[a?n("title",{children:a}):null,l?n("desc",{children:l}):null,n("use",{className:h,href:`${m}#icon`,xlinkHref:`${m}#icon`})]}):n("img",{className:e,src:m,alt:l,title:a,...c,"aria-hidden":"true"})}));function h(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const u=l((({className:e="",image:t,imageClassName:r="",...l})=>{const a="string"==typeof t?t:t?.icon;return a||""===a?n(m,{className:e,iconVersion:h(t),name:a,...l}):n(p,{className:e,imageClassName:r,image:t})})),p=l((({className:e="",image:t,imageClassName:l=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:g(t)},`${r}_${e}`))):null,x(t,l)]}):null)),x=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",a=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:a,title:l,style:r,...e.size})};function 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=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:i,align:c="left"})=>{const s=f[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[l?n(o,{headingType:"h2",className:`${s.text} ${b[c]}`,title:l}):null,a?n("p",{className:`font-normal text-m-md ${s.description} ${b[c]} ${l?"mt-2.5":""}`,children:a}):null,i?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:i})})]})})),N=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:v(l,t,r),"aria-hidden":!0},String(l))))}):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=l((({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=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...I(i),gap:`${a}px`},role:"list",onScroll:l,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=l((({className:e,context:t,children:l,gap:a=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:l};return r("div",{className:e,children:[n(k,{gap:a,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:o}=e.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const i=r-n;if(2===l)return[[0,i],[i,r]];const o=a+e,c=n-e-t,s=l-2,d=new Array(l).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[l-1]=[i,r],d})({gap:a,padding:i,clientWidth:n,scrollWidth:l,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:l}),n(N,{...u})]})})),$=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,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:l,children:[c,n("span",{className:a,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=l((({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=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>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:l},String(r)))):null}))),A=l((({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,l)=>n("div",{role:"listitem",children:n(D,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),P=l((({className:e="",context:t,title:l,subtitle:a,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:[l?n(o,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:l}):null,a?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:a}):null,"vertical"===s?n(A,{hasBorder:d,documents:c,icon:i}):n(R,{context:t,hasBorder:d,documents:c,icon:i})]}))),L=e=>e?.includes("//"),V=e=>(e||"").replace(/\/?\?.*/,""),W=e=>{if(!e||!L(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var M=Object.freeze({__proto__:null,isURL:L,withoutQuery:V,getOrigin:W,getHash:e=>{if(!e||!L(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=W(t?.href);return n?e.replace(n,"")||"/":e},_=e=>e;function j({router:e,handlerDecorator:t=_},n){const r=((e,t)=>{if(!e)return e;const n=G(e,t)||"",r=t?.pathname.startsWith(B);return r&&!L(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!L(r),a=!n.target||"_self"===n.target;l&&a&&(t.preventDefault(),e.push(r))}),n)}}const E=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:i}=e;return r("div",{className:O(e),children:[a||null,F(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-button text-left",children:t})]}):null,i||null]})})),O=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",F(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},F=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),U={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"},H={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=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,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:l,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${z} ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${z} inline-block cursor-pointer no-underline ${U[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:i,onClick:o,"aria-label":h,role:a?"link":"button",...u,children:p})})),J=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,...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))}(j({router:a,handlerDecorator:l},e),t)))}):null}));const q=l((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),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 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},Q={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Y=l((({className:e="",isDotted:t=!0,children:l,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:X(a)}):null,n("span",{children:l})]}))),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=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:i="primary"}=e;return n("section",{className:`${ee[i]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(Y,{className:r,isDotted:l,version:i,children:e},String(t)))):null})})),ne=l((({className:e="",title:t,children:l,buttons:a,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:l}),a?n("div",{children:a}):null]}),i]})]}))),re={primary:"text-primary-text",secondary:"text-white"},le={primary:"text-secondary-text",secondary:"text-white"};function ae(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ie=l((({className:e="",context:t,title:l,headingType:a="h2",description:i,benefits:c,benefitsVersion:s="normal",buttons:d,image:m,items:h,version:p="primary",isDotted:x=!0,label:g})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[g?se(g,p):null,r(ne,{context:t,title:l?n(o,{headingType:a,title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:d?.length?n(J,{context:t,buttons:d,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({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(u,{className:ae(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${re[t]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${le[t]}`,children:e.description})]},String(l))}({benefit:e,version:p,benefitsVersion:s},t)))}):null,h?.length?n(te,{className:"mt-3 text-m-md",items:h,version:p,isDotted:x}):null]})]}),oe(m)]})));function oe(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const ce={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},se=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${ce[t]}`,children:e}),de={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},me=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${de[r]} ${t}`,children:n(ie,{...e})})})),he={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"}},ue=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:i,className:o="",items:c,isDotted:s=!0})=>{const d=he[l];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===a?pe(d.icon):null,"big"===a?xe(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"===l?"secondary":"gray"}):null]})]})}));function pe(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 xe(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const ge={primary:"bg-white",secondary:"bg-primary-main text-white"},be=l((({context:e,title:t,description:l,cards:a=[],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 "+(l?"mb-2":"mb-5"),title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),fe(c,a,e)]})));function fe(e,t,r){return"horizontal"===e?n(C,{context:r,children:t?.map(ye)}):n("div",{className:"grid gap-[14px]",children:t?.map(ye)})}function ye(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 ${ge[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?Ne(e):null,e.items?.length?ve(e.items,e.version,e.isDotted):null]}),e?.button?.text?(l=e.button,n(Z,{className:"mt-3",appendLeft:l?.icon&&n(u,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function Ne(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ve(e,t="primary",l){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[l?n("div",{className:X(t)}):null,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=l((({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?Ie(t):null})}))),Ie=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),ke={Headline:y,LinkDocs:P,TextBlock:ue,ProductBlock:me,Gallery:be,LinkList:we},Ce=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map($e({context:t,className:n,columns:r})):null,$e=({context:e,columns:t,className:r})=>(l,a)=>{const i=l?.blockListType;if(!i||!(i in ke))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(ke[i],{context:e,...l,className:"!p-0"})},`block_${a}`)},Se=l((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Ce({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),Te=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:i})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;l(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:l});return r("li",{className:`${De(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${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(Se,{blocks:l,context:i}):null]})}));function De(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Re=l((({title:e,description:t,accordionItems:l,context:a,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,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Te,{...e,context:a,bordered:c},`AccordionItem${t}`)))}):null]}))),Ae=l((({icon:e,image:t,title:l,subtitle:a,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})}),l?n(o,{headingType:"h4",className:""+(i?"text-white":""),title:l}):null,a?n("div",{className:"text-m-sm mb-3.5 "+(i?"text-white":"text-secondary-text/80"),children:a}):null]}))),Pe=l((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Le(r,t))})}))),Le=(e,t)=>({label:l,description:a},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:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(i)),Ve=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:i,onToggleColumn:o})=>{const c=t?.slice(0,i?t.length:l),s=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Ae,{...e,isFillGradient:a}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Pe,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,i&&We({header:e,buttonVersion:s}),Me({onToggleColumn:o,isFillGradient:a,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?"Скрыть":"Показать описание"})}),Be=l((({className:e,context:t,title:l,rowHeaders:a,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:a?.[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:[l?n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,Ge({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),Ge=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?_e({orientation:o,context:e,columnsViewState:a,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:i}):null}),_e=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(C,{context:t,onSlideChange:Ee(r,l),children:a.map(je({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):a.map(je({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),je=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(i,o)=>n(Ve,{context:e,visibleRowLength:t,showRow:l[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>a(o)},String(o)),Ee=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Oe(){try{const e=await fetch(Fe);return await e.json()}catch(e){console.error(e)}}const Fe="/api/v1/exchangerates.json",Ue=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=Ue(e);return t<=4?"h4":t<=8?"h3":"h2"}const ze=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ze=e=>e?ze.format(e):"",Je="font-light text-left font-normal text-sm text-secondary-text",qe={USD:"DollarIcon",EUR:"EuroIcon"},Ke=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Je,children:"Валюта"}),n("th",{className:`${Je} pl-11`,children:"Купить"}),n("th",{className:`${Je} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Qe(e)))})]}))),Qe=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:qe[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)},Ye=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex text-sm ${e}`,children:[n(u,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),Xe=l((({className:e="",id:t,name:r,type:l="text",placeholder:a})=>n("input",{className:e,id:t,name:r||t,type:l,placeholder:a}))),et=l((({className:e="",id:t,name:r,children:l})=>n("select",{className:e,id:t,name:r||t,children:l}))),tt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l}))),nt=l((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[rt("Хочу продать",e),rt("Получу",e,"USD"),n(Z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function rt(e,t,l){return r("div",{className:"relative flex items-center",children:[n(Xe,{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(et,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(tt,{value:e,selected:e===l,children:e},String(t))))}):null]})}const lt=["USD","EUR"],at=["RUB","USD","EUR"],it=[{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:"Американский доллар"}}],ot={address:"Москва, ул.Ленина д.28",distance:"6км"},ct=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:a=null})=>{const i=function(e){const{data:t}=e(Fe,Oe);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==lt.indexOf(e?.currency?.currency||"")))||it;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:a,children:n(ne,{context:t,title:n(o,{headingType:He(e),title:l,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[i?n(Ke,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(Ye,{...ot})]}),i?.length?n(nt,{className:"grow",exchangeCurrencyItems:i,codes:at}):null]})})})})),st=l((({className:e,viewBox:t,fill:r="none",width:l,height:a,paths:i,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:l,height:a,children:i.map((({d:e,fill:t,...r},l)=>n("path",{d:e,fill:t||"currentColor",...o,...r},l)))}))),dt=["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"],mt={"bg-white":"text-primary-main",transparent:"text-white"},ht={"bg-white":"text-black",transparent:"text-white"},ut=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(st,{className:`${mt[i]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:dt.map((e=>({d:e})))}),o?null:n("span",{className:`${ht[i]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),pt=l((({className:e,title:t="Мобильное приложение",description:l,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ut,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:l})]})]}):null}))),xt=l((({className:e="",items:t,hasButton:l,context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:e,children:[t?.length?t.map(gt):null,l?n(Z,{version:"primary",className:"mb-6 w-full",...j({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),gt=(e,t)=>{const{type:l,text:a,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:bt(l,a)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},bt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${ft(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})}},ft=e=>e.replaceAll(/\D/g,""),yt=l((({title:e,links:t,className:l="",context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Nt,{index:t,...j({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),Nt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:i})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:i,children:r||`Документ ${t}`}))),vt=[{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=l((({href:e,version:t})=>{const{icon:r,width:l,height:a,label:i}=vt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return 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 ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:r?n(u,{image:r,width:l,height:a,asSVG:!0,className:"block"}):null})})),It=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(wt,{version:r,...j({router:a,handlerDecorator:i},e)},String(t))))})})),kt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(Ct,{index:t,...j({router:a,handlerDecorator:i},e)},String(t))))}):null]})})),Ct=l((({className:e,index:t,text:r,href:l,target:a,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:l,target:a,onClick:i,children:r||`Документ ${t}`})));function $t(e){const{data:t}=e(Tt(),St);return t||{}}async function St(){const e=await fetch(Tt());return await e.json()}function Tt(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Dt=l((({className:e,context:t})=>{const{term:l,setTerm:a}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(u,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),a("")},children:n(u,{image:"CloseIcon",width:"24",height:"24"})})]})})),Rt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),At=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:i,context:o,horizontalNavigationTitle:c})=>{const s=$t(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(xt,{className:"overflow-hidden",items:a,context:o,hasButton:!0}),n(Re,{context:o,className:"!p-0 mb-4",accordionItems:Rt(s.topItems)}),n("div",{children:d?.map(Pt)}),n(pt,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Dt,{context:o,className:"grow"}),n(It,{className:"pb-4",media:i,context:o}),n(yt,{title:c,links:l,context:o}),n(kt,{links:t,context:o})]})})),Pt=(e,t)=>{const{icon:l,href:a,text:i}=e;return r(Z,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(u,{className:"pr-1",image:l,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(V(e),(e=>(e||"").replace(B,""))(V(L(e)?t.href:t.pathname))),Vt=e=>t=>Lt(t.href,e),Wt=e=>t=>t.items?.some(Vt(e))||Lt(t.href,e)||((e,t)=>W(e)===W(t.href))(t.href,e),Mt=e=>t=>e?.href===t?.href,Bt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Mt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Mt(e))))));var n,r,l},Gt="absolute left-0 -bottom-3 w-full h-[2px]",_t=l((({className:e,text:t,href:l,target:a,active:i,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:l,target:a,onClick:o,children:[n("span",{className:jt(s,i),children:t||c}),i?n("div",{className:Et(s,i)}):null]}))),jt=(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`},Et=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Gt}`:Gt,Ot=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:i})=>{const[o,c]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:l,children:n(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(Ft)}),n(Dt,{context:e,className:"grow"})]})})),Ft=(e,t)=>{const{icon:l,href:a,text:i}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(u,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},Ut=l((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(u,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(ut,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ht=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:i})=>{const o=a.useRouter(),c=$t(a.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=a,m=Bt(c.topItems,i).find(Wt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Vt(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]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ut,{onClick:x,bgColor:l}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>zt({...j({router:o,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(Ot,{context:a,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Re,{context:a,accordionItems:Rt(c.topItems),className:"!p-0 mb-4"})}):null]})})),zt=(e,t)=>n(_t,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Zt(e=""){const t=Ue(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Jt(e=""){const t=Ue(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const qt=l((({className:e,context:t,title:l,description:a="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Jt(e)} ${Zt(e)} `,id:i,children:r(ne,{context:t,title:l?n(o,{headingType:He(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[a?n(q,{className:"mt-4 max-w-[600px]",description:a}):null,n("figure",{className:"m-0 min-w-[600px]",children:Kt()})]})}))),Kt=(e=3)=>Yt(100,e).map((e=>Math.floor(e))).map(Qt),Qt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Yt=(e,t)=>[e].concat(t>0?Yt(e/1.618,t-1):[]),Xt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},en=l((({block:e,headingType:t,context:r,className:l=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Xt[e?.version??"primary"]} ${l}`,children:n("div",{className:"flex grow",children:n(ie,{context:r,headingType:t||"h2",...e})})}))),tn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(C,{context:t,children:l.map(((e,r)=>n(en,{block:e,context:t},String(r))))})})})),nn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},rn={normal:"min-h-[70px]",small:"min-h-[50px]"},ln={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=>ln[e],on=l((({className:e,title:t,description:l,steps:a,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}):null,l?n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:l}):null,a?.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:a.map(((e,t)=>cn({step:e,size:i,i:t,length:a.length,version:c})))})}):null]})})),cn=e=>{const{step:t,size:l,i:a,length:i,version:o}=e,c=i-1===a,s="normal"===l?"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:[sn(e),c?null:n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${rn[l]}`,children:[t.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}):null,t.description?n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description}):null]})]},String(a))},String(a))},sn=e=>{const{step:t,size:r,i:l,version:a}=e,i=an(a),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${nn[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})||l+1})})},dn=l((({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]}))),mn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],hn=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(dn,{...e}),t?.length?t.map(un):null]}))),un=({label:e,description:t,list:l,image:a,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,l?.items?.length?pn(l):null,a?n(u,{image:{...a,className:"m-0"}}):null,i?.length?xn(i):null]},String(o)),pn=e=>n(te,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),xn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(Z,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:mn(e),rounded:t,appendLeft:e?n(u,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),gn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(hn,{...e},String(t))))}))),bn=l((({tiles:e,context:t})=>n(C,{context:t,children:e.map(((e,t)=>n(hn,{...e},String(t))))}))),fn=l((({className:e,context:t,title:l,description:a,columns:i,rowHeaders:c,orientation:s="vertical"})=>{const d=Nn(i),m=vn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(o,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?yn(s,m,t):null]})}));function yn(e,t,r){return"vertical"===e?n(gn,{tiles:t}):n(bn,{context:r,tiles:t})}const Nn=e=>e?.[0].data?e[0].data:[],vn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),wn={Accordion:Re,ComparisonTable:Be,ExchangeRateTile:ct,Footer:At,Gallery:be,Header:Ht,Headline:y,LinkDocs:P,LinkList:we,MobileAppTile:pt,ProductBlock:me,ProductGallery:tn,StepsBlock:on,TariffsTable:fn,TextBlock:ue,Placeholder:qt};function In(e){return e?e.filter(Boolean).join(" "):""}const kn=l((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Cn()}))),Cn=()=>{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"})]})},$n=l((({className:e,context:t,anchor:l=null})=>{const a=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:l,children:[n(kn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(kn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Sn=!("undefined"==typeof window||!window.document||!window.document.createElement),Tn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Dn=l((({className:e="",context:t,blocksRegistry:l,data:{style:a,blocks:i,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Tn})=>{const{header:m}=o,h=t.useRouter();return Sn&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${In(a)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${In(m?.style)}`,children:m.blocks.map(((e,n)=>Rn({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Rn({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,c?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n($n,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Rn({block:e,blockDecorator:t,blocksRegistry:r,context:l},a){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const o=r[i||"Placeholder"]||qt;return t({blockClassName:`scroll-mt-12 ${In(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:l,anchor:c,...r},`${i}-${a}`)}},`block-${a}`)}e.Blocks=wn,e.ContentPage=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.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes: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.projectSettings=d,e.setup=t,e.url=M,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,i=r||a&&a();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="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=l((e=>{const{className:t,headingType:r,title:l,as:a}=e;if(!r)return;return n(a||r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:l})}));var c,s;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(c||(c={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(s||(s={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${s[l]||l}`,title:i=a,iconVersion:o="normal",asSVG:c,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return c?r("svg",{className:e,...h,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[o]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:i,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=l((({className:e="",image:t,imageClassName:r="",...l})=>{const a="string"==typeof t?t:t?.icon;return a||""===a?n(h,{className:e,iconVersion:u(t),name:a,...l}):n(x,{className:e,imageClassName:r,image:t})})),x=l((({className:e="",image:t,imageClassName:l=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:b(t)},`${r}_${e}`))):null,g(t,l)]}):null)),g=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",a=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:a,title:l,style:r,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const f={left:"text-left",center:"text-center",right:"text-right"},y={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},N=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:i,align:c="left"})=>{const s=y[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[l?n(o,{headingType:"h2",className:`${s.text} ${f[c]}`,title:l}):null,a?n("p",{className:`font-normal text-m-md ${s.description} ${f[c]} ${l?"mt-2.5":""}`,children:a}):null,i?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(p,{image:i})})]})})),v=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:w(l,t,r),"aria-hidden":!0},String(l))))}):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"}},I=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),k=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),C=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...k(i),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(I,{style:k(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(I,{children:t})}))),$=l((({className:e,context:t,children:l,gap:a=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:l};return r("div",{className:e,children:[n(C,{gap:a,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:o}=e.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const i=r-n;if(2===l)return[[0,i],[i,r]];const o=a+e,c=n-e-t,s=l-2,d=new Array(l).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[l-1]=[i,r],d})({gap:a,padding:i,clientWidth:n,scrollWidth:l,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:l}),n(v,{...u})]})})),S=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:i,icon:o})=>{const{text:c,fileSize:s,...d}=i;return r("a",{className:e,role:"link",...d,children:[o?n(p,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:l,children:[c,n("span",{className:a,children:d?.href&&T(D(d.href),s)})]}):null]})})),T=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),D=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},R=l((({className:e="",doc:t,icon:r})=>n(S,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),A=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n($,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(R,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),P=l((({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,l)=>n("div",{role:"listitem",children:n(R,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),V=l((({className:e="",context:t,title:l,subtitle:a,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:[l?n(o,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:l}):null,a?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:a}):null,"vertical"===s?n(P,{hasBorder:d,documents:c,icon:i}):n(A,{context:t,hasBorder:d,documents:c,icon:i})]}))),L=e=>e?.includes("//"),M=e=>(e||"").replace(/\/?\?.*/,""),_=e=>{if(!e||!L(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var B=Object.freeze({__proto__:null,isURL:L,withoutQuery:M,getOrigin:_,getHash:e=>{if(!e||!L(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const G="/mobile",j=(e,t)=>{if(!e)return e;const n=_(t?.href);return n?e.replace(n,"")||"/":e},E=e=>e;function W({router:e,handlerDecorator:t=E},n){const r=((e,t)=>{if(!e)return e;const n=j(e,t)||"",r=t?.pathname.startsWith(G);return r&&!L(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!L(r),a=!n.target||"_self"===n.target;l&&a&&(t.preventDefault(),e.push(r))}),n)}}const O=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:i}=e;return r("div",{className:F(e),children:[a||null,U(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-button text-left",children:t})]}):null,i||null]})})),F=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",U(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},U=({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"},z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Z="w-full text-center font-sans select-none",J=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:i,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(O,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${Z} ${z[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:a,target:i,onClick:o,"aria-label":h,role:a?"link":"button",...u,children:p})})),q=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(J,e?{appendLeft:n(p,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(W({router:a,handlerDecorator:l},e),t)))}):null}));const K=l((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Q={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},Y={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},X=l((({className:e="",isDotted:t=!0,children:l,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ee(a)}):null,n("span",{children:l})]}))),ee=e=>`${Q[e]} ${Y[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,te={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ne=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:i="primary"}=e;return n("section",{className:`${te[i]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(X,{className:r,isDotted:l,version:i,children:e},String(t)))):null})})),re=l((({className:e="",title:t,children:l,buttons:a,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:l}),a?n("div",{children:a}):null]}),i]})]}))),le={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};function ie(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const oe=l((({className:e="",context:t,title:l,headingType:a="h2",description:i,benefits:c,benefitsVersion:s="normal",buttons:d,image:m,items:h,version:u="primary",isDotted:x=!0,label:g})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[g?de(g,u):null,r(re,{context:t,title:l?n(o,{headingType:a,title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:d?.length?n(q,{context:t,buttons:d,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?n(K,{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({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(p,{className:ie(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${le[t]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ae[t]}`,children:e.description})]},String(l))}({benefit:e,version:u,benefitsVersion:s},t)))}):null,h?.length?n(ne,{className:"mt-3 text-m-md",items:h,version:u,isDotted:x}):null]})]}),ce(m)]})));function ce(e){return e?.src?n(p,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const se={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},de=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${se[t]}`,children:e}),me={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},he=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${me[r]} ${t}`,children:n(oe,{...e})})})),ue={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"}},pe=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:i,className:o="",items:c,isDotted:s=!0})=>{const d=ue[l];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===a?xe(d.icon):null,"big"===a?ge(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(ne,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===l?"secondary":"gray"}):null]})]})}));function xe(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 ge(e){return e?.src?n(p,{className:"pb-3 mr-auto",image:e}):null}const be={primary:"bg-white",secondary:"bg-primary-main text-white"},fe=l((({context:e,title:t,description:l,cards:a=[],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 "+(l?"mb-2":"mb-5"),title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),ye(c,a,e)]})));function ye(e,t,r){return"horizontal"===e?n($,{context:r,children:t?.map(Ne)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ne)})}function Ne(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${be[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(p,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?ve(e):null,e.items?.length?we(e.items,e.version,e.isDotted):null]}),e?.button?.text?(l=e.button,n(J,{className:"mt-3",appendLeft:l?.icon&&n(p,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function ve(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function we(e,t="primary",l){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[l?n("div",{className:ee(t)}):null,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 Ie=l((({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?ke(t):null})}))),ke=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Ce={Headline:N,LinkDocs:V,TextBlock:pe,ProductBlock:he,Gallery:fe,LinkList:Ie},$e=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Se({context:t,className:n,columns:r})):null,Se=({context:e,columns:t,className:r})=>(l,a)=>{const i=l?.blockListType;if(!i||!(i in Ce))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(Ce[i],{context:e,...l,className:"!p-0"})},`block_${a}`)},Te=l((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:$e({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),De=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:i})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;l(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:l});return r("li",{className:`${Re(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${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(p,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(p,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n(Te,{blocks:l,context:i}):null]})}));function Re(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Ae=l((({title:e,description:t,accordionItems:l,context:a,className: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,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(De,{...e,context:a,bordered:c},`AccordionItem${t}`)))}):null]}))),Pe=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:i})=>r("div",{role:"columnheader",scope:"col",children:[e?n(p,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(p,{image:t})}),l?n(o,{headingType:"h4",className:""+(i?"text-white":""),title:l}):null,a?n("div",{className:"text-m-sm mb-3.5 "+(i?"text-white":"text-secondary-text/80"),children:a}):null]}))),Ve=l((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Le(r,t))})}))),Le=(e,t)=>({label:l,description:a},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:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(i)),Me=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:i,onToggleColumn:o})=>{const c=t?.slice(0,i?t.length:l),s=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Pe,{...e,isFillGradient:a}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Ve,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,i&&_e({header:e,buttonVersion:s}),Be({onToggleColumn:o,isFillGradient:a,showRow:i})]})})),_e=({header:e,buttonVersion:t})=>n(J,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Be=({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?"Скрыть":"Показать описание"})}),Ge=l((({className:e,context:t,title:l,rowHeaders:a,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:a?.[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:[l?n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,je({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),je=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Ee({orientation:o,context:e,columnsViewState:a,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:i}):null}),Ee=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n($,{context:t,onSlideChange:Oe(r,l),children:a.map(We({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):a.map(We({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),We=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(i,o)=>n(Me,{context:e,visibleRowLength:t,showRow:l[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>a(o)},String(o)),Oe=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Fe(){try{const e=await fetch(Ue);return await e.json()}catch(e){console.error(e)}}const Ue="/api/v1/exchangerates.json",He=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ze(e=""){const t=He(e);return t<=4?"h4":t<=8?"h3":"h2"}const Ze=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Je=e=>e?Ze.format(e):"",qe="font-light text-left font-normal text-sm text-secondary-text",Ke={USD:"DollarIcon",EUR:"EuroIcon"},Qe=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:qe,children:"Валюта"}),n("th",{className:`${qe} pl-11`,children:"Купить"}),n("th",{className:`${qe} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Ye(e)))})]}))),Ye=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(p,{image:{icon:Ke[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:Je(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Je(e.saleExchangeRate)})]},t)},Xe=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex text-sm ${e}`,children:[n(p,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),et=l((({className:e="",id:t,name:r,type:l="text",placeholder:a})=>n("input",{className:e,id:t,name:r||t,type:l,placeholder:a}))),tt=l((({className:e="",id:t,name:r,children:l})=>n("select",{className:e,id:t,name:r||t,children:l}))),nt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l}))),rt=l((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[lt("Хочу продать",e),lt("Получу",e,"USD"),n(J,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function lt(e,t,l){return r("div",{className:"relative flex items-center",children:[n(et,{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(tt,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(nt,{value:e,selected:e===l,children:e},String(t))))}):null]})}const at=["USD","EUR"],it=["RUB","USD","EUR"],ot=[{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:"Американский доллар"}}],ct={address:"Москва, ул.Ленина д.28",distance:"6км"},st=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:a=null})=>{const i=function(e){const{data:t}=e(Ue,Fe);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==at.indexOf(e?.currency?.currency||"")))||ot;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:a,children:n(re,{context:t,title:n(o,{headingType:ze(e),title:l,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(Xe,{...ct})]}),i?.length?n(rt,{className:"grow",exchangeCurrencyItems:i,codes:it}):null]})})})})),dt=l((({className:e,viewBox:t,fill:r="none",width:l,height:a,paths:i,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:l,height:a,children:i.map((({d:e,fill:t,...r},l)=>n("path",{d:e,fill:t||"currentColor",...o,...r},l)))}))),mt=["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"],ht={"bg-white":"text-primary-main",transparent:"text-white"},ut={"bg-white":"text-black",transparent:"text-white"},pt=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(dt,{className:`${ht[i]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:mt.map((e=>({d:e})))}),o?null:n("span",{className:`${ut[i]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),xt=l((({className:e,title:t="Мобильное приложение",description:l,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(pt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:l})]})]}):null}))),gt=l((({className:e="",items:t,hasButton:l,context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:e,children:[t?.length?t.map(bt):null,l?n(J,{version:"primary",className:"mb-6 w-full",...W({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),bt=(e,t)=>{const{type:l,text:a,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:ft(l,a)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},ft=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${yt(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})}},yt=e=>e.replaceAll(/\D/g,""),Nt=l((({title:e,links:t,className:l="",context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(vt,{index:t,...W({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),vt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:i})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:i,children:r||`Документ ${t}`}))),wt=[{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"}],It=l((({href:e,version:t="primary"})=>{const{icon:r,width:l,height:a,label:i}=wt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;const o="primary"===t;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-main-divider border-solid border-[1px] hover:bg-primary-main"} ${o?"hover:text-black":""}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:r?n(p,{image:{...r,iconVersion:"normal"},imageClassName:o?"group-hover:text-white":"",width:l,height:a,asSVG:!0}):null})})),kt=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(It,{version:r,...W({router:a,handlerDecorator:i},e)},String(t))))})})),Ct=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n($t,{index:t,...W({router:a,handlerDecorator:i},e)},String(t))))}):null]})})),$t=l((({className:e,index:t,text:r,href:l,target:a,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:l,target:a,onClick:i,children:r||`Документ ${t}`})));function St(e){const{data:t}=e(Dt(),Tt);return t||{}}async function Tt(){const e=await fetch(Dt());return await e.json()}function Dt(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Rt=l((({className:e,context:t})=>{const{term:l,setTerm:a}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(p,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),a("")},children:n(p,{image:"CloseIcon",width:"24",height:"24"})})]})})),At=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Pt=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:i,context:o,horizontalNavigationTitle:c})=>{const s=St(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(gt,{className:"overflow-hidden",items:a,context:o,hasButton:!0}),n(Ae,{context:o,className:"!p-0 mb-4",accordionItems:At(s.topItems)}),n("div",{children:d?.map(Vt)}),n(xt,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Rt,{context:o,className:"grow"}),n(kt,{className:"pb-4",media:i,context:o}),n(Nt,{title:c,links:l,context:o}),n(Ct,{links:t,context:o})]})})),Vt=(e,t)=>{const{icon:l,href:a,text:i}=e;return r(J,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(p,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Lt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(M(e),(e=>(e||"").replace(G,""))(M(L(e)?t.href:t.pathname))),Mt=e=>t=>Lt(t.href,e),_t=e=>t=>t.items?.some(Mt(e))||Lt(t.href,e)||((e,t)=>_(e)===_(t.href))(t.href,e),Bt=e=>t=>e?.href===t?.href,Gt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Bt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Bt(e))))));var n,r,l},jt="absolute left-0 -bottom-3 w-full h-[2px]",Et=l((({className:e,text:t,href:l,target:a,active:i,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:l,target:a,onClick:o,children:[n("span",{className:Wt(s,i),children:t||c}),i?n("div",{className:Ot(s,i)}):null]}))),Wt=(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`},Ot=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${jt}`:jt,Ft=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:i})=>{const[o,c]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:l,children:n(p,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(p,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),i,n("div",{className:"mb-7",children:t?.map(Ut)}),n(Rt,{context:e,className:"grow"})]})})),Ut=(e,t)=>{const{icon:l,href:a,text:i}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(p,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},Ht=l((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(p,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(pt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),zt=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:i})=>{const o=a.useRouter(),c=St(a.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=a,m=Gt(c.topItems,i).find(_t(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Mt(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]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ht,{onClick:x,bgColor:l}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Zt({...W({router:o,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(Ft,{context:a,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Ae,{context:a,accordionItems:At(c.topItems),className:"!p-0 mb-4"})}):null]})})),Zt=(e,t)=>n(Et,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Jt(e=""){const t=He(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function qt(e=""){const t=He(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Kt=l((({className:e,context:t,title:l,description:a="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${qt(e)} ${Jt(e)} `,id:i,children:r(re,{context:t,title:l?n(o,{headingType:ze(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[a?n(K,{className:"mt-4 max-w-[600px]",description:a}):null,n("figure",{className:"m-0 min-w-[600px]",children:Qt()})]})}))),Qt=(e=3)=>Xt(100,e).map((e=>Math.floor(e))).map(Yt),Yt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Xt=(e,t)=>[e].concat(t>0?Xt(e/1.618,t-1):[]),en={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},tn=l((({block:e,headingType:t,context:r,className:l=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${en[e?.version??"primary"]} ${l}`,children:n("div",{className:"flex grow",children:n(oe,{context:r,headingType:t||"h2",...e})})}))),nn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n($,{context:t,children:l.map(((e,r)=>n(tn,{block:e,context:t},String(r))))})})})),rn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},ln={normal:"min-h-[70px]",small:"min-h-[50px]"},an={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"}},on=e=>an[e],cn=l((({className:e,title:t,description:l,steps:a,size:i="normal",version:c="primary"})=>{const s=on(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}):null,l?n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:l}):null,a?.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:a.map(((e,t)=>sn({step:e,size:i,i:t,length:a.length,version:c})))})}):null]})})),sn=e=>{const{step:t,size:l,i:a,length:i,version:o}=e,c=i-1===a,s="normal"===l?"ml-[34px]":"ml-[24px]",d=on(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[dn(e),c?null:n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${ln[l]}`,children:[t.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}):null,t.description?n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description}):null]})]},String(a))},String(a))},dn=e=>{const{step:t,size:r,i:l,version:a}=e,i=on(a),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${rn[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(p,{image:t.icon,width:o,height:o,asSVG:!0})||l+1})})},mn=l((({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(p,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),hn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],un=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(mn,{...e}),t?.length?t.map(pn):null]}))),pn=({label:e,description:t,list:l,image:a,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,l?.items?.length?xn(l):null,a?n(p,{image:{...a,className:"m-0"}}):null,i?.length?gn(i):null]},String(o)),xn=e=>n(ne,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),gn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(J,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:hn(e),rounded:t,appendLeft:e?n(p,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),bn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(un,{...e},String(t))))}))),fn=l((({tiles:e,context:t})=>n($,{context:t,children:e.map(((e,t)=>n(un,{...e},String(t))))}))),yn=l((({className:e,context:t,title:l,description:a,columns:i,rowHeaders:c,orientation:s="vertical"})=>{const d=vn(i),m=wn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(o,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?Nn(s,m,t):null]})}));function Nn(e,t,r){return"vertical"===e?n(bn,{tiles:t}):n(fn,{context:r,tiles:t})}const vn=e=>e?.[0].data?e[0].data:[],wn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),In={Accordion:Ae,ComparisonTable:Ge,ExchangeRateTile:st,Footer:Pt,Gallery:fe,Header:zt,Headline:N,LinkDocs:V,LinkList:Ie,MobileAppTile:xt,ProductBlock:he,ProductGallery:nn,StepsBlock:cn,TariffsTable:yn,TextBlock:pe,Placeholder:Kt};function kn(e){return e?e.filter(Boolean).join(" "):""}const Cn=l((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:$n()}))),$n=()=>{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"})]})},Sn=l((({className:e,context:t,anchor:l=null})=>{const a=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:l,children:[n(Cn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Cn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Tn=!("undefined"==typeof window||!window.document||!window.document.createElement),Dn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Rn=l((({className:e="",context:t,blocksRegistry:l,data:{style:a,blocks:i,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Dn})=>{const{header:m}=o,h=t.useRouter();return Tn&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${kn(a)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${kn(m?.style)}`,children:m.blocks.map(((e,n)=>An({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>An({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,c?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Sn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function An({block:e,blockDecorator:t,blocksRegistry:r,context:l},a){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const o=r[i||"Placeholder"]||Kt;return t({blockClassName:`scroll-mt-12 ${kn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:l,anchor:c,...r},`${i}-${a}`)}},`block-${a}`)}e.Blocks=In,e.ContentPage=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.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes: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.projectSettings=d,e.setup=t,e.url=B,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -7,6 +7,7 @@ import type { GalleryContent } from './Gallery/GalleryContent';
|
|
|
7
7
|
import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
|
|
8
8
|
import type { GroupBlockContent } from './GroupBlock/GroupBlockContent';
|
|
9
9
|
import type { HeaderContent } from './Header/HeaderContent';
|
|
10
|
+
import type { InsuranceAmountBlockContent } from './InsuranceAmountBlock/InsuranceAmountBlockContent';
|
|
10
11
|
import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
11
12
|
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
12
13
|
import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
|
|
@@ -23,7 +24,8 @@ import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
|
23
24
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
24
25
|
import type { TileContent } from './Tile/TileContent';
|
|
25
26
|
import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
|
|
27
|
+
import type { InsuranceContent } from './Insurance/InsuranceContent';
|
|
26
28
|
/**
|
|
27
29
|
* @hidden
|
|
28
30
|
*/
|
|
29
|
-
export declare type BlockContent = BenefitsBlockContent | BonusContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent | GroupBlockContent | BonusBenefitsBlockContent;
|
|
31
|
+
export declare type BlockContent = BenefitsBlockContent | BonusContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | InsuranceAmountBlockContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent | GroupBlockContent | BonusBenefitsBlockContent | InsuranceContent;
|
|
@@ -40,13 +40,14 @@ const ICONS_MAP = [
|
|
|
40
40
|
height: '21px',
|
|
41
41
|
},
|
|
42
42
|
];
|
|
43
|
-
exports.MediaButton = (0, uni_jsx_1.JSX)(({ href, version }) => {
|
|
43
|
+
exports.MediaButton = (0, uni_jsx_1.JSX)(({ href, version = 'primary' }) => {
|
|
44
44
|
const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
45
45
|
if (!icon)
|
|
46
46
|
return null;
|
|
47
47
|
const classes = version === 'secondary'
|
|
48
|
-
? '
|
|
49
|
-
: '
|
|
50
|
-
|
|
48
|
+
? 'bg-secondary-light hover:bg-secondary-hover'
|
|
49
|
+
: 'border-main-divider border-solid border-[1px] hover:bg-primary-main';
|
|
50
|
+
const isPrimary = version === 'primary';
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...icon, iconVersion: 'normal' }, imageClassName: isPrimary ? 'group-hover:text-white' : '', width: width, height: height, asSVG: true })) : null }));
|
|
51
52
|
});
|
|
52
53
|
//# sourceMappingURL=MediaButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAE3C,MAAM,SAAS,GAMV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;CACF,CAAC;AAOW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAE3C,MAAM,SAAS,GAMV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;CACF,CAAC;AAOW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAClC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,qEAAqE,CAAC;IAE5E,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC;IAExC,OAAO,CACL,8BACE,SAAS,EAAE,0EAA0E,OAAO,IAC1F,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACnC,EAAE,EACF,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,YAExB,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,EACzC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACzD,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
3
|
interface Month {
|
|
3
4
|
/** @title Название месяца */
|
|
4
5
|
name?: string;
|
|
@@ -26,9 +27,7 @@ interface CalendarItem {
|
|
|
26
27
|
/**
|
|
27
28
|
* @title Льготный период
|
|
28
29
|
*/
|
|
29
|
-
export interface GracePeriodContent {
|
|
30
|
-
/** @title Заголовок */
|
|
31
|
-
title?: string;
|
|
30
|
+
export interface GracePeriodContent extends HeadingContent {
|
|
32
31
|
/** @title Описание */
|
|
33
32
|
description?: string;
|
|
34
33
|
/** @title Календарь */
|