@redneckz/wildless-cms-uni-blocks 0.3.31 → 0.3.32
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/README.md +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +54 -28
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +8 -4
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +7 -0
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +31 -15
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/dist/components/Recommendation/Recommendation.js +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 +8 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +10 -4
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +3 -2
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +8 -4
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +7 -0
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts +1 -0
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +31 -15
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/lib/components/Recommendation/Recommendation.js +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +1 -1
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlock.js +8 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +10 -4
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +3 -2
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +11 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +8 -4
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +7 -0
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +31 -15
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/mobile/dist/components/Recommendation/Recommendation.js +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +10 -4
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +3 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +8 -4
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +7 -0
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +31 -15
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/mobile/lib/components/Recommendation/Recommendation.js +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +10 -4
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +3 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/src/components/PictureText/PictureText.example.json +2 -0
- package/mobile/src/components/PictureText/PictureText.tsx +33 -7
- package/mobile/src/components/PictureText/PictureTextContent.ts +7 -0
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +40 -17
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
- package/mobile/src/components/Recommendation/Recommendation.tsx +1 -1
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +14 -5
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +3 -2
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/package.json +2 -3
- package/src/components/MobileAppTile/MobileAppTile.tsx +3 -3
- package/src/components/PictureText/PictureText.example.json +2 -0
- package/src/components/PictureText/PictureText.tsx +33 -7
- package/src/components/PictureText/PictureTextContent.ts +7 -0
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +74 -1
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +40 -17
- package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
- package/src/components/Recommendation/Recommendation.tsx +1 -1
- package/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +14 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +14 -5
- package/src/components/StepsBlock/StepsBlock.tsx +13 -6
- package/src/components/StepsBlock/StepsBlockContent.ts +3 -2
- package/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/src/ui-kit/Heading/Heading.tsx +1 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
3
|
/** @title Кнопка под слайдом */
|
|
3
4
|
interface ProductGalleryNav {
|
|
4
5
|
/** @title Заголовок */
|
|
@@ -26,5 +27,6 @@ export interface ProductGalleryGreenContent {
|
|
|
26
27
|
duration?: number;
|
|
27
28
|
/** @title Слайды */
|
|
28
29
|
slides?: ProductSlide[];
|
|
30
|
+
version?: BlockVersion;
|
|
29
31
|
}
|
|
30
32
|
export {};
|
|
@@ -10,7 +10,7 @@ export const Recommendation = JSX(({ context, recommendations = [], className =
|
|
|
10
10
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
11
11
|
const blockClassName = version === 'secondary' ? 'bg-primary-main text-white' : 'bg-white text-primary-text';
|
|
12
12
|
const cardClassName = version === 'secondary' ? 'border-main-divider' : 'border-main-stroke';
|
|
13
|
-
return (_jsxs("section", { className: `relative font-sans p-[50px] overflow-hidden ${blockClassName} ${className}`, id: anchor, children: [title ? _jsx(Heading, { headingType: "
|
|
13
|
+
return (_jsxs("section", { className: `relative font-sans p-[50px] overflow-hidden ${blockClassName} ${className}`, id: anchor, children: [title ? _jsx(Heading, { headingType: "h2", className: "mb-8", title: title }) : null, _jsx("div", { className: "flex duration-1000 gap-4", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
14
14
|
? recommendations.map(renderRecommendationCard({ context, version, className: cardClassName }))
|
|
15
15
|
: null }), renderNavButtons({
|
|
16
16
|
cardsCount: recommendations.length,
|
|
@@ -6,6 +6,6 @@ import { Img } from '../../ui-kit/Img/Img.js';
|
|
|
6
6
|
import { List } from '../../ui-kit/List/List.js';
|
|
7
7
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
8
8
|
export const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version }) => {
|
|
9
|
-
return (_jsx("section", { className: `border border-solid box-border rounded-md p-7 min-w-[515px] max-w-[515px] ${className}`, role: "listitem", children: _jsxs(BaseTile, { context: context, title: title && _jsx(Heading, { headingType: "h4", title: title, className: "mb-4" }), image: image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? _jsx(Description, { description: description }) : null, items?.length ? _jsx(List, { items: items, version: version }) : null] }) }));
|
|
9
|
+
return (_jsx("section", { className: `border border-solid box-border rounded-md p-7 min-w-[515px] max-w-[515px] ${className}`, role: "listitem", children: _jsxs(BaseTile, { context: context, title: title && _jsx(Heading, { headingType: "h4", title: title, className: "mb-4" }), image: image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? _jsx(Description, { description: description }) : null, items?.length ? _jsx(List, { className: "text-m-base", items: items, version: version }) : null] }) }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=RecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,OAAO,CACL,kBACE,SAAS,EAAE,6EAA6E,SAAS,EAAE,EACnG,IAAI,EAAC,UAAU,YAEf,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,IAAI,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,EAC3E,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9D,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,OAAO,CACL,kBACE,SAAS,EAAE,6EAA6E,SAAS,EAAE,EACnG,IAAI,EAAC,UAAU,YAEf,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,IAAI,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,EAC3E,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9D,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC/E,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,8 +3,14 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
4
4
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
5
|
import { joinList } from '../../utils/joinList.js';
|
|
6
|
-
export const StepsBlock = JSX(({ className, title, showLines = true, steps, anchor = null }) => {
|
|
7
|
-
|
|
6
|
+
export const StepsBlock = JSX(({ className = '', title, showLines = true, steps = [], anchor = null }) => {
|
|
7
|
+
const shortGaps = steps.length > 3;
|
|
8
|
+
return (_jsxs("section", { className: [
|
|
9
|
+
'box-border font-sans text-primary-text bg-white',
|
|
10
|
+
shortGaps ? 'px-20' : 'px-[70px]',
|
|
11
|
+
'py-[50px] flex flex-col items-center',
|
|
12
|
+
className,
|
|
13
|
+
].join(' '), id: anchor, children: [_jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title }), steps?.length ? (_jsxs("div", { className: `box-border py-0.5 mb-0.5 ${title ? 'mt-9' : ''}`, children: [_jsx("div", { className: "flex items-center px-[88px]", children: joinList(_jsx("div", { className: `h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}` }))(steps.map(renderStepIcon)) }), _jsx("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepTitle) })] })) : null] }));
|
|
8
14
|
});
|
|
9
15
|
const renderStepIcon = (step, i) => {
|
|
10
16
|
return (_jsx("div", { className: "flex flex-col items-center text-center relative", children: _jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon && _jsx(Icon, { name: step.icon, width: "48", height: "48" })) || (_jsx("span", { className: "font-medium text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAEnC,OAAO,CACL,mBACE,SAAS,EAAE;YACT,iDAAiD;YACjD,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW;YACjC,sCAAsC;YACtC,SAAS;SACV,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,EAAE,EAAE,MAAM,aAEV,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,2BAA2B,EAAC,KAAK,EAAE,KAAK,GAAI,EAC/E,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,eAAK,SAAS,EAAE,4BAA4B,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,aAC/D,cAAK,SAAS,EAAC,6BAA6B,YACzC,QAAQ,CACP,cACE,SAAS,EAAE,mCAAmC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,GAC7E,CACH,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,GACxB,EACN,cAAK,SAAS,EAAE,wBAAwB,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,EAAE,YAC9E,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,GACvB,IACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAU,EAAE,CAAS,EAAE,EAAE;IAC/C,OAAO,CACL,cAAqB,SAAS,EAAC,iDAAiD,YAC9E,cAAK,SAAS,EAAC,0GAA0G,YACtH,CAAC,IAAI,CAAC,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,IAAI,CAClE,eAAM,SAAS,EAAC,+CAA+C,YAAE,CAAC,GAAG,CAAC,GAAQ,CAC/E,GACG,IALE,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,IAAU,EAAE,CAAS,EAAE,EAAE;IAChD,OAAO,CACL,eAEE,SAAS,EAAC,+FAA+F,aAExG,IAAI,CAAC,KAAK,IAAI,cAAK,SAAS,EAAC,8BAA8B,YAAE,IAAI,CAAC,KAAK,GAAO,EAC9E,IAAI,CAAC,WAAW,IAAI,CACnB,cAAK,SAAS,EAAE,2CAA2C,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,YACtF,IAAI,CAAC,WAAW,GACb,CACP,KARI,MAAM,CAAC,CAAC,CAAC,CASV,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,6 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
4
4
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
|
+
const STEPS_SIZE_MAP = {
|
|
6
|
+
normal: 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]',
|
|
7
|
+
small: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]',
|
|
8
|
+
};
|
|
9
|
+
const STEPS_TILE_DESCRIPTION_HEIGHT_MAP = {
|
|
10
|
+
normal: 'min-h-[70px]',
|
|
11
|
+
small: 'min-h-[50px]',
|
|
12
|
+
};
|
|
5
13
|
const STEPS_BLOCK_STYLE_MAPS = {
|
|
6
14
|
primary: {
|
|
7
15
|
background: 'bg-white',
|
|
@@ -29,14 +37,12 @@ const renderStepTitle = (params) => {
|
|
|
29
37
|
const isLastStep = length - 1 === i;
|
|
30
38
|
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-[24px]';
|
|
31
39
|
const style = styleMaps(version);
|
|
32
|
-
return (_jsx("div", { children: _jsxs("div", { className: "flex flex-row text-center relative", children: [_jsxs("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && (_jsx("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), _jsxs("div", { className:
|
|
40
|
+
return (_jsx("div", { children: _jsxs("div", { className: "flex flex-row text-center relative", children: [_jsxs("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && (_jsx("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), _jsxs("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label && (_jsx("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })), step.description && (_jsx("div", { className: `font-normal text-sm ${style.description} text-left ${step.label ? 'mt-1' : ''}`, children: step.description }))] })] }, String(i)) }, String(i)));
|
|
33
41
|
};
|
|
34
42
|
const renderIconArea = (params) => {
|
|
35
43
|
const { step, size, i, version } = params;
|
|
36
44
|
const style = styleMaps(version);
|
|
37
|
-
const iconAreaSize = size
|
|
38
|
-
? 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]'
|
|
39
|
-
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
45
|
+
const iconAreaSize = STEPS_SIZE_MAP[size];
|
|
40
46
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
41
47
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
42
48
|
return (_jsx("div", { className: `${iconAreaSize} ${style.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: _jsx("span", { className: `font-medium flex self-center ${style.title} ${iconTextSize}`, children: (step.icon && _jsx(Icon, { name: step.icon, width: iconSize, height: iconSize, asSVG: true })) || i + 1 }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAgB9C,MAAM,sBAAsB,GAAoC;IAC9D,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE,oBAAoB;QACpC,aAAa,EAAE,oBAAoB;KACpC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,eAAe;QAC5B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;KAC1B;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,OAAqB,EAAa,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,OAAO,CACL,mBACE,SAAS,EAAE;UACT,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,EAAE,EAAE,aAErD,KAAK,IAAI,CACR,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACpF,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAE,yBAAyB,KAAK,CAAC,WAAW,IAAI,KAAK,IAAI,MAAM,EAAE,YAC1E,WAAW,GACV,CACL,EACA,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,cAAK,SAAS,EAAE,+BAA+B,YAC7C,cAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACrB,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAC3E,GACG,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAUF,MAAM,eAAe,GAAG,CAAC,MAA6B,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAClD,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IAC7D,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,CACL,wBACE,eAAqB,SAAS,EAAC,oCAAoC,aACjE,eAAK,SAAS,EAAC,iBAAiB,aAC7B,cAAc,CAAC,MAAM,CAAC,EACtB,CAAC,UAAU,IAAI,CACd,cAAK,SAAS,EAAE,0BAA0B,KAAK,CAAC,aAAa,IAAI,MAAM,EAAE,GAAI,CAC9E,IACG,EACN,
|
|
1
|
+
{"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAgB9C,MAAM,cAAc,GAAgC;IAClD,MAAM,EAAE,6CAA6C;IACrD,KAAK,EAAE,6CAA6C;CACrD,CAAC;AAEF,MAAM,iCAAiC,GAAgC;IACrE,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,cAAc;CACtB,CAAC;AAEF,MAAM,sBAAsB,GAAoC;IAC9D,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE,oBAAoB;QACpC,aAAa,EAAE,oBAAoB;KACpC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,eAAe;QAC5B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;KAC1B;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,OAAqB,EAAa,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,OAAO,CACL,mBACE,SAAS,EAAE;UACT,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,EAAE,EAAE,aAErD,KAAK,IAAI,CACR,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACpF,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAE,yBAAyB,KAAK,CAAC,WAAW,IAAI,KAAK,IAAI,MAAM,EAAE,YAC1E,WAAW,GACV,CACL,EACA,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,cAAK,SAAS,EAAE,+BAA+B,YAC7C,cAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACrB,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAC3E,GACG,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAUF,MAAM,eAAe,GAAG,CAAC,MAA6B,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAClD,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IAC7D,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,CACL,wBACE,eAAqB,SAAS,EAAC,oCAAoC,aACjE,eAAK,SAAS,EAAC,iBAAiB,aAC7B,cAAc,CAAC,MAAM,CAAC,EACtB,CAAC,UAAU,IAAI,CACd,cAAK,SAAS,EAAE,0BAA0B,KAAK,CAAC,aAAa,IAAI,MAAM,EAAE,GAAI,CAC9E,IACG,EACN,eACE,SAAS,EAAE,sCAAsC,iCAAiC,CAAC,IAAI,CAAC,EAAE,aAEzF,IAAI,CAAC,KAAK,IAAI,CACb,cAAK,SAAS,EAAC,2CAA2C,YAAE,IAAI,CAAC,KAAK,GAAO,CAC9E,EACA,IAAI,CAAC,WAAW,IAAI,CACnB,cACE,SAAS,EAAE,uBAAuB,KAAK,CAAC,WAAW,cACjD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACxB,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,IACG,KAtBE,MAAM,CAAC,CAAC,CAAC,CAuBb,IAxBE,MAAM,CAAC,CAAC,CAAC,CAyBb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,MAA6B,EAAE,EAAE;IACvD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAE1C,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAE5E,OAAO,CACL,cACE,SAAS,EAAE,GAAG,YAAY,IAAI,KAAK,CAAC,cAAc,4DAA4D,YAE9G,eAAM,SAAS,EAAE,gCAAgC,KAAK,CAAC,KAAK,IAAI,YAAY,EAAE,YAC3E,CAAC,IAAI,CAAC,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GACtF,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IconName } from '../../
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
2
2
|
import type { SizeVersion } from '../../model/SizeVersion';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
4
|
/**
|
|
@@ -24,9 +24,10 @@ export interface StepsBlockContent {
|
|
|
24
24
|
/**
|
|
25
25
|
* @title Шаги
|
|
26
26
|
* @minItems 2
|
|
27
|
-
* @maxItems
|
|
27
|
+
* @maxItems 4
|
|
28
28
|
*/
|
|
29
29
|
steps?: Step[];
|
|
30
|
+
/** @title Размер шагов (моб.) */
|
|
30
31
|
size?: SizeVersion;
|
|
31
32
|
version?: BlockVersion;
|
|
32
33
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
export const ButtonInner = JSX((props) => {
|
|
4
4
|
const { text, aboveText, appendLeft } = props;
|
|
5
|
-
return (_jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (_jsxs("div", { children: [_jsx("div", { className: "text-m-2xs text-left", children: aboveText }), _jsx("div", { className: "text-m-button
|
|
5
|
+
return (_jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (_jsxs("div", { children: [_jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), _jsx("div", { className: "text-m-button text-left", children: text })] })) : null] }));
|
|
6
6
|
});
|
|
7
7
|
const getButtonStyle = (props) => {
|
|
8
8
|
const { version, aboveText, rounded } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9C,OAAO,CACL,eAAK,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,aAClC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC9B,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,0BACE,cAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9C,OAAO,CACL,eAAK,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,aAClC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC9B,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,0BACE,cAAK,SAAS,EAAC,iCAAiC,YAAE,SAAS,GAAO,EAClE,cAAK,SAAS,EAAC,yBAAyB,YAAE,IAAI,GAAO,IACjD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,cAAc,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAEpE,OAAO;QACL,kCAAkC;QAClC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW;QAC/C,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KAC9B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAoB,EAAE,EAAE,CACvE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -14,6 +14,6 @@ export const Heading = JSX((props) => {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
const Tag = headingType;
|
|
17
|
-
return (_jsx(Tag, { className: `font-sans
|
|
17
|
+
return (_jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=Heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACrD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACrD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,iBAAiB,iBAAiB,CAAC,WAAW,CAAC,IAAI,SAAS,EAAE,YAAG,KAAK,GAAO,CAC9F,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
|
|
695
695
|
const ButtonInner = JSX((props) => {
|
|
696
696
|
const { text, aboveText, appendLeft } = props;
|
|
697
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button
|
|
697
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-m-button text-left", children: text })] })) : null] }));
|
|
698
698
|
});
|
|
699
699
|
const getButtonStyle = (props) => {
|
|
700
700
|
const { version, aboveText, rounded } = props;
|
|
@@ -1355,6 +1355,14 @@
|
|
|
1355
1355
|
return (jsx("section", { className: `font-sans bg-white overflow-hidden w-100 pb-6 ${className || ''}`, children: jsx(SwipeListControl, { context: context, children: galleryBlocks.map((block, i) => (jsx(ProductGalleryBlock, { block: block, context: context }, String(i)))) }) }));
|
|
1356
1356
|
});
|
|
1357
1357
|
|
|
1358
|
+
const STEPS_SIZE_MAP = {
|
|
1359
|
+
normal: 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]',
|
|
1360
|
+
small: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]',
|
|
1361
|
+
};
|
|
1362
|
+
const STEPS_TILE_DESCRIPTION_HEIGHT_MAP = {
|
|
1363
|
+
normal: 'min-h-[70px]',
|
|
1364
|
+
small: 'min-h-[50px]',
|
|
1365
|
+
};
|
|
1358
1366
|
const STEPS_BLOCK_STYLE_MAPS = {
|
|
1359
1367
|
primary: {
|
|
1360
1368
|
background: 'bg-white',
|
|
@@ -1382,14 +1390,12 @@
|
|
|
1382
1390
|
const isLastStep = length - 1 === i;
|
|
1383
1391
|
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-[24px]';
|
|
1384
1392
|
const style = styleMaps(version);
|
|
1385
|
-
return (jsx("div", { children: jsxs("div", { className: "flex flex-row text-center relative", children: [jsxs("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && (jsx("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), jsxs("div", { className:
|
|
1393
|
+
return (jsx("div", { children: jsxs("div", { className: "flex flex-row text-center relative", children: [jsxs("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && (jsx("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), jsxs("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label && (jsx("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })), step.description && (jsx("div", { className: `font-normal text-sm ${style.description} text-left ${step.label ? 'mt-1' : ''}`, children: step.description }))] })] }, String(i)) }, String(i)));
|
|
1386
1394
|
};
|
|
1387
1395
|
const renderIconArea = (params) => {
|
|
1388
1396
|
const { step, size, i, version } = params;
|
|
1389
1397
|
const style = styleMaps(version);
|
|
1390
|
-
const iconAreaSize = size
|
|
1391
|
-
? 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]'
|
|
1392
|
-
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
1398
|
+
const iconAreaSize = STEPS_SIZE_MAP[size];
|
|
1393
1399
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
1394
1400
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
1395
1401
|
return (jsx("div", { className: `${iconAreaSize} ${style.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium flex self-center ${style.title} ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize, asSVG: true })) || i + 1 }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,o=r||l&&l();return e(Object.assign(a,o&&{children:o}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const o={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},i=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium m-0 ${o[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}};var s,d;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(d||(d={}));const m={none:"",primary:"text-primary-main",secondary:"text-primary-text"},h=a((({className:e="",name:t,alt:a=`Иконка ${d[t]||t}`,title:l=a,asSVG:o,color:i="primary",...s})=>{const h=`${c.CDN||""}icons/${t}.svg`;return o?r("svg",{className:`${m[i]} ${e}`,...s,"aria-hidden":"true",style:"secondary"===i?{filter:"invert(1)"}:null,children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${h}#icon`,xlinkHref:`${h}#icon`})]}):n("img",{className:e,src:h,alt:a,title:l,...s,"aria-hidden":"true"})})),u=a((({className:e="",image:t,imageClassName:a})=>t?r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:x(t)},`${r}_${e}`))):null,p(t,a)]}):null)),p=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:l,title:a,style:r,...e.size})};function x(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={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"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:l,image:o,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(i,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),l&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:l}),o?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:o})})]})})),y=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:l(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:N(a,t,r),"aria-hidden":!0},String(a))))}):null})),N=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:l=14,padding:o=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(o),gap:`${l}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(o/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:l=14,padding:o=16,showDots:i=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:i,children:a};return r("div",{className:e,children:[n(I,{gap:l,padding:o,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:i}=e.currentTarget,m=i[0].offsetWidth-o/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:l})=>{const o=r-n;if(2===a)return[[0,o],[o,r]];const i=l+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?o-c:0,t>0?o:c]:[(t-1)*i+c,t*i+c]));return d[a-1]=[o,r],d})({gap:l,padding:o,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(y,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:o,icon:i})=>{const{text:c,fileSize:s,...d}=o;return r("a",{className:e,role:"link",...d,children:[i?n(h,{className:t,name:i,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:l,children:d?.href&&$(S(d.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:l,icon:o="DocIconMonoColor",documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(i,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:l}):null,"vertical"===s?n(R,{hasBorder:d,documents:c,icon:o}):n(D,{context:t,hasBorder:d,documents:c,icon:o})]}))),P=e=>e?.includes("//"),W=e=>(e||"").replace(/\/?\?.*/,""),L=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var j=Object.freeze({__proto__:null,isURL:P,withoutQuery:W,getOrigin:L,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const M="/mobile",V=(e,t)=>{if(!e)return e;const n=L(t?.href);return n?e.replace(n,"")||"/":e},B=e=>e;function G({router:e,handlerDecorator:t=B},n){const r=((e,t)=>{if(!e)return e;const n=V(e,t)||"",r=t?.pathname.startsWith(M);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!P(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const _=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:E(e),children:[l||null,O(e)?r("div",{children:[n("div",{className:"text-m-2xs text-left",children:a}),n("div",{className:"text-m-button font-medium text-left",children:t})]}):null]})})),E=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-3.5");return["flex items-center justify-center",O(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},U="w-full text-center font-sans select-none",z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:l,target:o,onClick:i,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(_,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${U} ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${U} inline-block cursor-pointer no-underline ${F[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:o,onClick:i,"aria-label":h,role:l?"link":"button",...u,children:p})})),Z=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(h,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(G({router:l,handlerDecorator:a},e),t)))}):null}));const J=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),q={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},K=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Q(l)}),n("span",{children:a})]}))),Q=e=>`rounded-full inline-block mr-3 mt-2 ${q[e]} ${"gray"===e?"w-1.5 h-1.5 min-w-1.5 min-h-1.5":"w-2 h-2 min-w-2 min-h-2"}`,Y={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},X=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:o="primary"}=e;return n("section",{className:`${Y[o]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(K,{className:r,isDotted:a,version:o,children:e},String(t)))):null})})),ee=a((({className:e="",title:t,children:a,buttons:l,image:o,anchor:i=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:i,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),l?n("div",{children:l}):null]}),o]})]}))),te={primary:"text-primary-text",secondary:"text-white"},ne={primary:"text-secondary-text",secondary:"text-white"};const re=a((({className:e="",context:t,title:a,headingType:l="h2",description:o,benefits:c,buttons:s,image:d,items:m,version:u="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?oe(x,u):null,r(ee,{context:t,title:a&&n(i,{headingType:l,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(Z,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[o?n(J,{className:"mt-3 text-m-md",description:o}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(h,{className:"w-6 h-6 rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0,color:a}),n("div",{className:`font-medium text-m-title-xs m-0 ${te[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ne[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,m?.length?n(X,{className:"mt-3 text-m-md",items:m,version:u,isDotted:p}):null]})]}),ae(d)]})));function ae(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const le={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},oe=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${le[t]}`,children:e}),ie={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ce=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ie[r]} ${t}`,children:n(re,{...e})})})),se={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"}},de=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:o,className:i="",items:c,isDotted:s=!0})=>{const d=se[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${i}`,children:["small"===l?me(d.icon):null,"big"===l?he(o):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(X,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function me(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 he(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const ue={primary:"bg-white",secondary:"bg-primary-main text-white"},pe=a((({context:e,title:t,description:a,cards:l=[],className:o,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${o}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(i,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),xe(c,l,e)]})));function xe(e,t,r){return"horizontal"===e?n(k,{context:r,children:t?.map(ge)}):n("div",{className:"grid gap-[14px]",children:t?.map(ge)})}function ge(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 ${ue[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?be(e):null,e.items?.length?fe(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(z,{className:"mt-3",appendLeft:a?.icon&&n(h,{name:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function be(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function fe(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const ye=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ne(t):null})}))),Ne=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),ve={Headline:f,LinkDocs:A,TextBlock:de,ProductBlock:ce,Gallery:pe,LinkList:ye},we=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Ie({context:t,className:n,columns:r})):null,Ie=({context:e,columns:t,className:r})=>(a,l)=>{const o=a?.blockListType;if(!o||!(o in ve))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(ve[o],{context:e,...a,className:"!p-0"})},`block_${l}`)},ke=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:we({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),Ce=a((({label:e,labelIcon:t,blocks:a,bordered:l,context:o})=>{const{hasContent:i,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:o,blocks:a});return r("li",{className:`${$e(l)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${l?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(i?"group-hover:text-primary-main":""),children:[t?n(h,{name:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),i?n(h,{name:c,width:"24",height:"24",asSVG:!0}):null]}),i?n(ke,{blocks:a,context:o}):null]})}));function $e(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Se=a((({title:e,description:t,accordionItems:a,context:l,className:o="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${o}`,children:[e?n(i,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Ce,{...e,context:l,bordered:c},`AccordionItem${t}`)))}):null]}))),Te=a((({icon:e,image:t,title:a,subtitle:l,isFillGradient:o})=>r("div",{role:"columnheader",scope:"col",children:[e&&n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&n("div",{className:"mb-3.5",children:n(u,{image:t})}),a&&n(i,{headingType:"h4",className:""+(o?"text-white":""),title:a}),l&&n("div",{className:"text-m-sm mb-3.5 "+(o?"text-white":"text-secondary-text/80"),children:l})]}))),De=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Re(r,t))})}))),Re=(e,t)=>({label:a,description:l},o)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),l&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l})]})]},String(o)),Ae=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:l,showRow:o,onToggleColumn:i})=>{const c=t?.slice(0,o?t.length:a),s=l?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Te,{...e,isFillGradient:l}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(De,{cell:t,rowHeader:e,isFillGradient:l},String(r)))):null,o&&Pe({header:e,buttonVersion:s}),We({onToggleColumn:i,isFillGradient:l,showRow:o})]})})),Pe=({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}),We=({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?"Скрыть":"Показать описание"})}),Le=a((({className:e,context:t,title:a,rowHeaders:l,columns:o,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=o?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(o?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(i,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),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:a,columnsViewState:l,handleToggleColumn:o,orientation:i="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Me({orientation:i,context:e,columnsViewState:l,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:o}):null}),Me=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:l,visibleRowLength:o,isColoredFirstColumn:i,handleToggleColumn:c})=>"horizontal"===e?n(k,{context:t,onSlideChange:Be(r,a),children:l.map(Ve({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c}))}):l.map(Ve({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c})),Ve=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:l})=>(o,i)=>n(Ae,{context:e,visibleRowLength:t,showRow:a[i],header:o.header,columnData:o.column,isFillGradient:0===i&&r,onToggleColumn:()=>l(i)},String(i)),Be=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Ge(){try{const e=await fetch(_e);return await e.json()}catch(e){console.error(e)}}const _e="/api/v1/exchangerates.json",Ee=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Oe(e=""){const t=Ee(e);return t<=4?"h4":t<=8?"h3":"h2"}const Fe=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),He=e=>e?Fe.format(e):"",Ue="font-light text-left font-normal text-sm text-secondary-text",ze={USD:"DollarIcon",EUR:"EuroIcon"},Ze=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Ue,children:"Валюта"}),n("th",{className:`${Ue} pl-11`,children:"Купить"}),n("th",{className:`${Ue} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Je(e)))})]}))),Je=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(h,{name:ze[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:He(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:He(e.saleExchangeRate)})]},t)},qe=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",name:"GpsIcon",width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Ke=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Qe=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Ye=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),Xe=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[et("Хочу продать",e),et("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function et(e,t){return r("div",{className:"relative flex items-center",children:[n(Ke,{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(Qe,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Ye,{value:e,children:e},String(t))))}):null]})}const tt=["USD","EUR"],nt=["RUB","USD","EUR"],rt=[{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:"Американский доллар"}}],at={address:"Москва, ул.Ленина д.28",distance:"6км"},lt=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:l=null})=>{const o=function(e){const{data:t}=e(_e,Ge);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==tt.indexOf(e?.currency?.currency||"")))||rt;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(ee,{context:t,title:n(i,{headingType:Oe(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[o?n(Ze,{className:"mb-[31px]",exchangeCurrencyItems:o}):null,n(qe,{...at})]}),o?.length?n(Xe,{className:"grow",exchangeCurrencyItems:o,codes:nt}):null]})})})})),ot=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:o,...i})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:o.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...i,...r},a)))}))),it=["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"],ct={"bg-white":"text-primary-main",transparent:"text-white"},st={"bg-white":"text-black",transparent:"text-white"},dt=a((({className:e="",href:t,children:a,targetBlank:l,bgColor:o="bg-white",hideTitle:i})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ot,{className:`${ct[o]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:it.map((e=>({d:e})))}),!i&&n("span",{className:`${st[o]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),mt=a((({className:e,title:t="Мобильное приложение",description:a,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(dt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),ht=a((({className:e,items:t,hasButton:a,context:l})=>{const o=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(ut):null,a?n(z,{version:"primary",className:"mt-0.5 mb-5",...G({router:o,handlerDecorator:i},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),ut=(e,t)=>{const{type:a,text:l,description:o}=e;return r("div",{className:"mb-3.5",children:[n("div",{children:pt(a,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:o})]},String(t))},pt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${xt(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},xt=e=>e.replaceAll(/\D/g,""),gt=a((({title:e,links:t,className:a="",context:l})=>{const o=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(bt,{index:t,...G({router:o,handlerDecorator:i},e)},String(t))))}):null]})})),bt=a((({className:e="",index:t,text:r,href:a,target:l,onClick:o})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:o,children:r||`Документ ${t}`}))),ft=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],yt=a((({href:e})=>{const{icon:t,width:r,height:a,label:l}=ft.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[40px] h-[40px] box-border hover:text-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:h&&n(h,{name:t,width:r,height:a,asSVG:!0,className:"block",color:"none"})}):null})),Nt=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(yt,{...G({router:a,handlerDecorator:l},e)},String(t))))})})),vt=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(wt,{index:t,...G({router:l,handlerDecorator:o},e)},String(t))))}):null]})})),wt=a((({className:e,index:t,text:r,href:a,target:l,onClick:o})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:l,onClick:o,children:r||`Документ ${t}`})));function It(e){const{data:t}=e(Ct(),kt);return t||{}}async function kt(){const e=await fetch(Ct());return await e.json()}function Ct(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const $t=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),l("")},children:n(h,{name:"CloseIcon",width:"24",height:"24"})})]})})),St=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Tt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:l,socialMedia:o,context:i,horizontalNavigationTitle:c})=>{const s=It(i.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(ht,{className:"overflow-hidden",items:l,context:i,hasButton:!0}),n(Se,{context:i,className:"!p-0 mb-4",accordionItems:St(s.topItems)}),n("div",{children:d?.map(Dt)}),n(mt,{context:i,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n($t,{context:i,className:"grow"}),n(Nt,{className:"pb-4",media:o,context:i}),n(gt,{title:c,links:a,context:i}),n(vt,{links:t,context:i})]})})),Dt=(e,t)=>{const{icon:a,href:l,text:o}=e;return r(z,{version:"link",href:l,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:o})]},`footer-${t}`)},Rt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(W(e),(e=>(e||"").replace(M,""))(W(P(e)?t.href:t.pathname))),At=e=>t=>Rt(t.href,e),Pt=e=>t=>t.items?.some(At(e))||Rt(t.href,e)||((e,t)=>L(e)===L(t.href))(t.href,e),Wt=e=>t=>e?.href===t?.href,Lt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Wt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Wt(e))))));var n,r,a},jt="absolute left-0 -bottom-3 w-full h-[2px]",Mt=a((({className:e,text:t,href:a,target:l,active:o,onClick:i,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:l,onClick:i,children:[n("span",{className:Vt(s,o),children:t||c}),o?n("div",{className:Bt(s,o)}):null]}))),Vt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Bt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${jt}`:jt,Gt=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:l="",children:o})=>{const[i,c]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{name:"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(h,{name:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),i]}),o,n("div",{className:"mb-7",children:t?.map(_t)}),n($t,{context:e,className:"grow"})]})})),_t=(e,t)=>{const{icon:a,href:l,text:o}=e;return r("a",{href:l,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:o})]},`headerSubMenu-${t}`)},Et=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(dt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ot=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:l,topItems:o})=>{const i=l.useRouter(),c=It(l.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=l,m=Lt(c.topItems,o).find(Pt(i))?.items,h=(e=>(t=[])=>{const n=t?.filter(At(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(i)(m),[u,p]=l.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Et,{onClick:x,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Ft({...G({router:i,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(Gt,{context:l,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Se,{context:l,accordionItems:St(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ft=(e,t)=>n(Mt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Ht(e=""){const t=Ee(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ut(e=""){const t=Ee(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const zt=a((({className:e,context:t,title:a,description:l="Блок в разработке...",anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ut(e)} ${Ht(e)} `,id:o,children:r(ee,{context:t,title:a?n(i,{headingType:Oe(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(J,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:Zt()})]})}))),Zt=(e=3)=>qt(100,e).map((e=>Math.floor(e))).map(Jt),Jt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),qt=(e,t)=>[e].concat(t>0?qt(e/1.618,t-1):[]),Kt=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 pt-6",children:n("div",{className:"flex grow",children:n(re,{context:r,headingType:t||"h2",...e})})}))),Qt=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(Kt,{block:e,context:t},String(r))))})})})),Yt={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"}},Xt=e=>Yt[e],en=a((({className:e,title:t,description:a,steps:l,size:o="normal",version:c="primary"})=>{const s=Xt(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(i,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),l?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(((e,t)=>tn({step:e,size:o,i:t,length:l.length,version:c})))})}):null]})})),tn=e=>{const{step:t,size:a,i:l,length:o,version:i}=e,c=o-1===l,s="normal"===a?"ml-[34px]":"ml-[24px]",d=Xt(i);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[nn(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:"flex flex-col justify-start relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(l))},String(l))},nn=e=>{const{step:t,size:r,i:a,version:l}=e,o=Xt(l),i="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${"normal"===r?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} ${o.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${o.title} ${c}`,children:t.icon&&n(h,{name:t.icon,width:i,height:i,asSVG:!0})||a+1})})},rn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(i,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",name:t,width:"24px",height:"24px"}):null]}))),an=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(rn,{...e}),t?.length?t.map(ln):null]}))),ln=({label:e,description:t,list:a,image:l,buttons:o},i)=>r("div",{children:[i>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,a?.items?.length?on(a):null,l&&n(u,{image:{...l,className:"m-0"}}),o?.length?cn(o):null]},String(i)),on=e=>n(X,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),cn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,rounded:t,appendLeft:e&&n(h,{name:e,width:"24px",height:"24px",asSVG:!0}),...r,"aria-label":e},String(a))))}),sn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(an,{...e},String(t))))}))),dn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(an,{...e},String(t))))}))),mn=a((({className:e,context:t,title:a,description:l,columns:o,rowHeaders:c,orientation:s="vertical"})=>{const d=un(o),m=pn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(i,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("div",{className:"mb-5 text-center text-m-md",children:l}):null,m?.length?hn(s,m,t):null]})}));function hn(e,t,r){return"vertical"===e?n(sn,{tiles:t}):n(dn,{context:r,tiles:t})}const un=e=>e?.[0].data?e[0].data:[],pn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),xn={Accordion:Se,ComparisonTable:Le,ExchangeRateTile:lt,Footer:Tt,Gallery:pe,Header:Ot,Headline:f,LinkDocs:A,LinkList:ye,MobileAppTile:mt,ProductBlock:ce,ProductGallery:Qt,StepsBlock:en,TariffsTable:mn,TextBlock:de,Placeholder:zt},gn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:bn()}))),bn=()=>{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"})]})},fn=a((({className:e,context:t,anchor:a=null})=>{const l=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(gn,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(gn,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),yn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Nn=a((({className:e,context:t,blocksRegistry:a,data:{style:l,blocks:o,slots:i={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=yn})=>{const{header:m}=i;return r("section",{className:`relative ${wn(l)} ${e||""}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${wn(m?.style)}`,children:m.blocks.map(((e,n)=>vn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,o?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:o.map(((e,n)=>vn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(fn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function vn({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const i=r[o||"Placeholder"]||zt;return t({blockClassName:`scroll-mt-12 ${wn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:l}=e.block;return n(i,{className:e.blockClassName,version:t,context:a,anchor:l,...r})}},`block-${l}`)}function wn(e){return e?e.join(" "):""}const In=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:o,og:i,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=o||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),kn(i),Cn(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function kn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function Cn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function $n(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Sn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in xn&&!e.mobile?.hidden)).map($n)}e.Blocks=xn,e.ContentPage=Nn,e.ContentPageHead=In,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ot,e.Icon=h,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Sn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Sn(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=j,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,o=r||l&&l();return e(Object.assign(a,o&&{children:o}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const o={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},i=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium m-0 ${o[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}};var s,d;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(d||(d={}));const m={none:"",primary:"text-primary-main",secondary:"text-primary-text"},h=a((({className:e="",name:t,alt:a=`Иконка ${d[t]||t}`,title:l=a,asSVG:o,color:i="primary",...s})=>{const h=`${c.CDN||""}icons/${t}.svg`;return o?r("svg",{className:`${m[i]} ${e}`,...s,"aria-hidden":"true",style:"secondary"===i?{filter:"invert(1)"}:null,children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${h}#icon`,xlinkHref:`${h}#icon`})]}):n("img",{className:e,src:h,alt:a,title:l,...s,"aria-hidden":"true"})})),u=a((({className:e="",image:t,imageClassName:a})=>t?r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:x(t)},`${r}_${e}`))):null,p(t,a)]}):null)),p=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:l,title:a,style:r,...e.size})};function x(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={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"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:l,image:o,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(i,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),l&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:l}),o?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:o})})]})})),y=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:l(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:N(a,t,r),"aria-hidden":!0},String(a))))}):null})),N=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:l=14,padding:o=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(o),gap:`${l}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(o/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:l=14,padding:o=16,showDots:i=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:i,children:a};return r("div",{className:e,children:[n(I,{gap:l,padding:o,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:i}=e.currentTarget,m=i[0].offsetWidth-o/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:l})=>{const o=r-n;if(2===a)return[[0,o],[o,r]];const i=l+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?o-c:0,t>0?o:c]:[(t-1)*i+c,t*i+c]));return d[a-1]=[o,r],d})({gap:l,padding:o,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(y,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:o,icon:i})=>{const{text:c,fileSize:s,...d}=o;return r("a",{className:e,role:"link",...d,children:[i?n(h,{className:t,name:i,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:l,children:d?.href&&$(S(d.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:l,icon:o="DocIconMonoColor",documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(i,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:l}):null,"vertical"===s?n(R,{hasBorder:d,documents:c,icon:o}):n(D,{context:t,hasBorder:d,documents:c,icon:o})]}))),P=e=>e?.includes("//"),W=e=>(e||"").replace(/\/?\?.*/,""),L=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var j=Object.freeze({__proto__:null,isURL:P,withoutQuery:W,getOrigin:L,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const M="/mobile",V=(e,t)=>{if(!e)return e;const n=L(t?.href);return n?e.replace(n,"")||"/":e},B=e=>e;function G({router:e,handlerDecorator:t=B},n){const r=((e,t)=>{if(!e)return e;const n=V(e,t)||"",r=t?.pathname.startsWith(M);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!P(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const _=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:E(e),children:[l||null,O(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-m-button text-left",children:t})]}):null]})})),E=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-3.5");return["flex items-center justify-center",O(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},U="w-full text-center font-sans select-none",z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:l,target:o,onClick:i,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(_,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${U} ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${U} inline-block cursor-pointer no-underline ${F[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:o,onClick:i,"aria-label":h,role:l?"link":"button",...u,children:p})})),Z=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(h,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(G({router:l,handlerDecorator:a},e),t)))}):null}));const J=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),q={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},K=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Q(l)}),n("span",{children:a})]}))),Q=e=>`rounded-full inline-block mr-3 mt-2 ${q[e]} ${"gray"===e?"w-1.5 h-1.5 min-w-1.5 min-h-1.5":"w-2 h-2 min-w-2 min-h-2"}`,Y={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},X=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:o="primary"}=e;return n("section",{className:`${Y[o]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(K,{className:r,isDotted:a,version:o,children:e},String(t)))):null})})),ee=a((({className:e="",title:t,children:a,buttons:l,image:o,anchor:i=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:i,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),l?n("div",{children:l}):null]}),o]})]}))),te={primary:"text-primary-text",secondary:"text-white"},ne={primary:"text-secondary-text",secondary:"text-white"};const re=a((({className:e="",context:t,title:a,headingType:l="h2",description:o,benefits:c,buttons:s,image:d,items:m,version:u="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?oe(x,u):null,r(ee,{context:t,title:a&&n(i,{headingType:l,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(Z,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[o?n(J,{className:"mt-3 text-m-md",description:o}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(h,{className:"w-6 h-6 rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0,color:a}),n("div",{className:`font-medium text-m-title-xs m-0 ${te[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ne[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,m?.length?n(X,{className:"mt-3 text-m-md",items:m,version:u,isDotted:p}):null]})]}),ae(d)]})));function ae(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const le={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},oe=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${le[t]}`,children:e}),ie={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ce=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ie[r]} ${t}`,children:n(re,{...e})})})),se={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"}},de=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:o,className:i="",items:c,isDotted:s=!0})=>{const d=se[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${i}`,children:["small"===l?me(d.icon):null,"big"===l?he(o):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(X,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function me(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 he(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const ue={primary:"bg-white",secondary:"bg-primary-main text-white"},pe=a((({context:e,title:t,description:a,cards:l=[],className:o,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${o}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(i,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),xe(c,l,e)]})));function xe(e,t,r){return"horizontal"===e?n(k,{context:r,children:t?.map(ge)}):n("div",{className:"grid gap-[14px]",children:t?.map(ge)})}function ge(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 ${ue[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?be(e):null,e.items?.length?fe(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(z,{className:"mt-3",appendLeft:a?.icon&&n(h,{name:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function be(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function fe(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const ye=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ne(t):null})}))),Ne=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),ve={Headline:f,LinkDocs:A,TextBlock:de,ProductBlock:ce,Gallery:pe,LinkList:ye},we=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Ie({context:t,className:n,columns:r})):null,Ie=({context:e,columns:t,className:r})=>(a,l)=>{const o=a?.blockListType;if(!o||!(o in ve))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(ve[o],{context:e,...a,className:"!p-0"})},`block_${l}`)},ke=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:we({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),Ce=a((({label:e,labelIcon:t,blocks:a,bordered:l,context:o})=>{const{hasContent:i,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:o,blocks:a});return r("li",{className:`${$e(l)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${l?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(i?"group-hover:text-primary-main":""),children:[t?n(h,{name:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),i?n(h,{name:c,width:"24",height:"24",asSVG:!0}):null]}),i?n(ke,{blocks:a,context:o}):null]})}));function $e(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Se=a((({title:e,description:t,accordionItems:a,context:l,className:o="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${o}`,children:[e?n(i,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Ce,{...e,context:l,bordered:c},`AccordionItem${t}`)))}):null]}))),Te=a((({icon:e,image:t,title:a,subtitle:l,isFillGradient:o})=>r("div",{role:"columnheader",scope:"col",children:[e&&n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&n("div",{className:"mb-3.5",children:n(u,{image:t})}),a&&n(i,{headingType:"h4",className:""+(o?"text-white":""),title:a}),l&&n("div",{className:"text-m-sm mb-3.5 "+(o?"text-white":"text-secondary-text/80"),children:l})]}))),De=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Re(r,t))})}))),Re=(e,t)=>({label:a,description:l},o)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),l&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l})]})]},String(o)),Ae=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:l,showRow:o,onToggleColumn:i})=>{const c=t?.slice(0,o?t.length:a),s=l?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Te,{...e,isFillGradient:l}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(De,{cell:t,rowHeader:e,isFillGradient:l},String(r)))):null,o&&Pe({header:e,buttonVersion:s}),We({onToggleColumn:i,isFillGradient:l,showRow:o})]})})),Pe=({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}),We=({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?"Скрыть":"Показать описание"})}),Le=a((({className:e,context:t,title:a,rowHeaders:l,columns:o,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=o?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(o?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(i,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),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:a,columnsViewState:l,handleToggleColumn:o,orientation:i="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Me({orientation:i,context:e,columnsViewState:l,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:o}):null}),Me=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:l,visibleRowLength:o,isColoredFirstColumn:i,handleToggleColumn:c})=>"horizontal"===e?n(k,{context:t,onSlideChange:Be(r,a),children:l.map(Ve({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c}))}):l.map(Ve({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:c})),Ve=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:l})=>(o,i)=>n(Ae,{context:e,visibleRowLength:t,showRow:a[i],header:o.header,columnData:o.column,isFillGradient:0===i&&r,onToggleColumn:()=>l(i)},String(i)),Be=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Ge(){try{const e=await fetch(_e);return await e.json()}catch(e){console.error(e)}}const _e="/api/v1/exchangerates.json",Ee=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Oe(e=""){const t=Ee(e);return t<=4?"h4":t<=8?"h3":"h2"}const Fe=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),He=e=>e?Fe.format(e):"",Ue="font-light text-left font-normal text-sm text-secondary-text",ze={USD:"DollarIcon",EUR:"EuroIcon"},Ze=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Ue,children:"Валюта"}),n("th",{className:`${Ue} pl-11`,children:"Купить"}),n("th",{className:`${Ue} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Je(e)))})]}))),Je=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(h,{name:ze[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:He(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:He(e.saleExchangeRate)})]},t)},qe=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",name:"GpsIcon",width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Ke=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Qe=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Ye=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),Xe=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[et("Хочу продать",e),et("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function et(e,t){return r("div",{className:"relative flex items-center",children:[n(Ke,{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(Qe,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Ye,{value:e,children:e},String(t))))}):null]})}const tt=["USD","EUR"],nt=["RUB","USD","EUR"],rt=[{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:"Американский доллар"}}],at={address:"Москва, ул.Ленина д.28",distance:"6км"},lt=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:l=null})=>{const o=function(e){const{data:t}=e(_e,Ge);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==tt.indexOf(e?.currency?.currency||"")))||rt;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(ee,{context:t,title:n(i,{headingType:Oe(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[o?n(Ze,{className:"mb-[31px]",exchangeCurrencyItems:o}):null,n(qe,{...at})]}),o?.length?n(Xe,{className:"grow",exchangeCurrencyItems:o,codes:nt}):null]})})})})),ot=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:o,...i})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:o.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...i,...r},a)))}))),it=["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"],ct={"bg-white":"text-primary-main",transparent:"text-white"},st={"bg-white":"text-black",transparent:"text-white"},dt=a((({className:e="",href:t,children:a,targetBlank:l,bgColor:o="bg-white",hideTitle:i})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ot,{className:`${ct[o]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:it.map((e=>({d:e})))}),!i&&n("span",{className:`${st[o]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),mt=a((({className:e,title:t="Мобильное приложение",description:a,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(dt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),ht=a((({className:e,items:t,hasButton:a,context:l})=>{const o=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(ut):null,a?n(z,{version:"primary",className:"mt-0.5 mb-5",...G({router:o,handlerDecorator:i},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),ut=(e,t)=>{const{type:a,text:l,description:o}=e;return r("div",{className:"mb-3.5",children:[n("div",{children:pt(a,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:o})]},String(t))},pt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${xt(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},xt=e=>e.replaceAll(/\D/g,""),gt=a((({title:e,links:t,className:a="",context:l})=>{const o=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(bt,{index:t,...G({router:o,handlerDecorator:i},e)},String(t))))}):null]})})),bt=a((({className:e="",index:t,text:r,href:a,target:l,onClick:o})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:o,children:r||`Документ ${t}`}))),ft=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],yt=a((({href:e})=>{const{icon:t,width:r,height:a,label:l}=ft.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[40px] h-[40px] box-border hover:text-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:h&&n(h,{name:t,width:r,height:a,asSVG:!0,className:"block",color:"none"})}):null})),Nt=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(yt,{...G({router:a,handlerDecorator:l},e)},String(t))))})})),vt=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(wt,{index:t,...G({router:l,handlerDecorator:o},e)},String(t))))}):null]})})),wt=a((({className:e,index:t,text:r,href:a,target:l,onClick:o})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:l,onClick:o,children:r||`Документ ${t}`})));function It(e){const{data:t}=e(Ct(),kt);return t||{}}async function kt(){const e=await fetch(Ct());return await e.json()}function Ct(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const $t=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),l("")},children:n(h,{name:"CloseIcon",width:"24",height:"24"})})]})})),St=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Tt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:l,socialMedia:o,context:i,horizontalNavigationTitle:c})=>{const s=It(i.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(ht,{className:"overflow-hidden",items:l,context:i,hasButton:!0}),n(Se,{context:i,className:"!p-0 mb-4",accordionItems:St(s.topItems)}),n("div",{children:d?.map(Dt)}),n(mt,{context:i,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n($t,{context:i,className:"grow"}),n(Nt,{className:"pb-4",media:o,context:i}),n(gt,{title:c,links:a,context:i}),n(vt,{links:t,context:i})]})})),Dt=(e,t)=>{const{icon:a,href:l,text:o}=e;return r(z,{version:"link",href:l,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:o})]},`footer-${t}`)},Rt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(W(e),(e=>(e||"").replace(M,""))(W(P(e)?t.href:t.pathname))),At=e=>t=>Rt(t.href,e),Pt=e=>t=>t.items?.some(At(e))||Rt(t.href,e)||((e,t)=>L(e)===L(t.href))(t.href,e),Wt=e=>t=>e?.href===t?.href,Lt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Wt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Wt(e))))));var n,r,a},jt="absolute left-0 -bottom-3 w-full h-[2px]",Mt=a((({className:e,text:t,href:a,target:l,active:o,onClick:i,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:l,onClick:i,children:[n("span",{className:Vt(s,o),children:t||c}),o?n("div",{className:Bt(s,o)}):null]}))),Vt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Bt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${jt}`:jt,Gt=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:l="",children:o})=>{const[i,c]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{name:"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(h,{name:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),i]}),o,n("div",{className:"mb-7",children:t?.map(_t)}),n($t,{context:e,className:"grow"})]})})),_t=(e,t)=>{const{icon:a,href:l,text:o}=e;return r("a",{href:l,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:o})]},`headerSubMenu-${t}`)},Et=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(dt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ot=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:l,topItems:o})=>{const i=l.useRouter(),c=It(l.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=l,m=Lt(c.topItems,o).find(Pt(i))?.items,h=(e=>(t=[])=>{const n=t?.filter(At(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(i)(m),[u,p]=l.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Et,{onClick:x,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Ft({...G({router:i,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(Gt,{context:l,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Se,{context:l,accordionItems:St(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ft=(e,t)=>n(Mt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Ht(e=""){const t=Ee(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ut(e=""){const t=Ee(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const zt=a((({className:e,context:t,title:a,description:l="Блок в разработке...",anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ut(e)} ${Ht(e)} `,id:o,children:r(ee,{context:t,title:a?n(i,{headingType:Oe(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(J,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:Zt()})]})}))),Zt=(e=3)=>qt(100,e).map((e=>Math.floor(e))).map(Jt),Jt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),qt=(e,t)=>[e].concat(t>0?qt(e/1.618,t-1):[]),Kt=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 pt-6",children:n("div",{className:"flex grow",children:n(re,{context:r,headingType:t||"h2",...e})})}))),Qt=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(Kt,{block:e,context:t},String(r))))})})})),Yt={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},Xt={normal:"min-h-[70px]",small:"min-h-[50px]"},en={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"}},tn=e=>en[e],nn=a((({className:e,title:t,description:a,steps:l,size:o="normal",version:c="primary"})=>{const s=tn(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(i,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),l?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(((e,t)=>rn({step:e,size:o,i:t,length:l.length,version:c})))})}):null]})})),rn=e=>{const{step:t,size:a,i:l,length:o,version:i}=e,c=o-1===l,s="normal"===a?"ml-[34px]":"ml-[24px]",d=tn(i);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[an(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${Xt[a]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(l))},String(l))},an=e=>{const{step:t,size:r,i:a,version:l}=e,o=tn(l),i="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${Yt[r]} ${o.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${o.title} ${c}`,children:t.icon&&n(h,{name:t.icon,width:i,height:i,asSVG:!0})||a+1})})},ln=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(i,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",name:t,width:"24px",height:"24px"}):null]}))),on=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(ln,{...e}),t?.length?t.map(cn):null]}))),cn=({label:e,description:t,list:a,image:l,buttons:o},i)=>r("div",{children:[i>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,a?.items?.length?sn(a):null,l&&n(u,{image:{...l,className:"m-0"}}),o?.length?dn(o):null]},String(i)),sn=e=>n(X,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),dn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,rounded:t,appendLeft:e&&n(h,{name:e,width:"24px",height:"24px",asSVG:!0}),...r,"aria-label":e},String(a))))}),mn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(on,{...e},String(t))))}))),hn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(on,{...e},String(t))))}))),un=a((({className:e,context:t,title:a,description:l,columns:o,rowHeaders:c,orientation:s="vertical"})=>{const d=xn(o),m=gn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(i,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("div",{className:"mb-5 text-center text-m-md",children:l}):null,m?.length?pn(s,m,t):null]})}));function pn(e,t,r){return"vertical"===e?n(mn,{tiles:t}):n(hn,{context:r,tiles:t})}const xn=e=>e?.[0].data?e[0].data:[],gn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),bn={Accordion:Se,ComparisonTable:Le,ExchangeRateTile:lt,Footer:Tt,Gallery:pe,Header:Ot,Headline:f,LinkDocs:A,LinkList:ye,MobileAppTile:mt,ProductBlock:ce,ProductGallery:Qt,StepsBlock:nn,TariffsTable:un,TextBlock:de,Placeholder:zt},fn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:yn()}))),yn=()=>{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"})]})},Nn=a((({className:e,context:t,anchor:a=null})=>{const l=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(fn,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(fn,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),vn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),wn=a((({className:e,context:t,blocksRegistry:a,data:{style:l,blocks:o,slots:i={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=vn})=>{const{header:m}=i;return r("section",{className:`relative ${kn(l)} ${e||""}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${kn(m?.style)}`,children:m.blocks.map(((e,n)=>In({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,o?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:o.map(((e,n)=>In({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Nn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function In({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const i=r[o||"Placeholder"]||zt;return t({blockClassName:`scroll-mt-12 ${kn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:l}=e.block;return n(i,{className:e.blockClassName,version:t,context:a,anchor:l,...r})}},`block-${l}`)}function kn(e){return e?e.join(" "):""}const Cn=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:o,og:i,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=o||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),$n(i),Sn(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function $n(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function Sn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Tn(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Dn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in bn&&!e.mobile?.hidden)).map(Tn)}e.Blocks=bn,e.ContentPage=wn,e.ContentPageHead=Cn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ot,e.Icon=h,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Dn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Dn(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=j,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -5,10 +5,14 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
const pictureTextStyleMap = {
|
|
9
|
+
primary: 'bg-white text-primary-text',
|
|
10
|
+
secondary: 'bg-primary-main text-white',
|
|
11
|
+
};
|
|
12
|
+
exports.PictureText = (0, uni_jsx_1.JSX)(({ className = '', title, image, benefits, version = 'primary', directionRight = false, anchor = null, }) => {
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "text-center", title: title }), (0, jsx_runtime_1.jsxs)("div", { className: 'flex justify-center mt-9', children: [image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: directionRight ? 'order-2 ml-6' : 'mr-6', image: image }), benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null] })] }));
|
|
10
14
|
});
|
|
11
|
-
function renderBenefit(benefit, i) {
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row mb-8", children: [benefit.icon && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && ((0, jsx_runtime_1.jsx)("div", { className:
|
|
15
|
+
function renderBenefit(benefit, i, version) {
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row mb-8", children: [benefit.icon && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && ((0, jsx_runtime_1.jsx)("div", { className: `font-medium text-xl m-0 ${version === 'primary' ? 'text-primary-text' : ''}`, children: benefit.label })), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${version === 'primary' ? 'text-secondary-text' : ''}`, children: benefit.description }))] })] }, String(i)));
|
|
13
17
|
}
|
|
14
18
|
//# sourceMappingURL=PictureText.js.map
|