@redneckz/wildless-cms-uni-blocks 0.12.3 → 0.12.5
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/bin/migration-scripts/0.12.3.js +2 -0
- package/bin/migration-scripts/0.9.10.js +1 -1
- package/bundle/bundle.umd.js +43 -77
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
- package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +20 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +8 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
- package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js +5 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
- package/dist/components/Tabs/LinkTab.js +2 -1
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +3 -2
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/renderGroupTab.js +7 -13
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/tabItemClasses.d.ts +2 -3
- package/dist/components/Tabs/tabItemClasses.js +10 -46
- package/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +6 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.d.ts +7 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +17 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +3 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +5 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +0 -11
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +6 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
- package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +7 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js +3 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
- package/lib/components/Tabs/LinkTab.js +3 -2
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/Tabs.fixture.mobile.d.ts +8 -0
- package/lib/components/Tabs/Tabs.js +3 -2
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/renderGroupTab.d.ts +0 -1
- package/lib/components/Tabs/renderGroupTab.js +9 -15
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +0 -1
- package/lib/components/Tabs/tabItemClasses.d.ts +2 -3
- package/lib/components/Tabs/tabItemClasses.js +8 -43
- package/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +507 -335
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +8 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/mobile/dist/components/Tabs/LinkTab.js +2 -1
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +3 -2
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js +7 -13
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/dist/components/Tabs/tabItemClasses.js +10 -46
- package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +5 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/mobile/lib/components/Tabs/LinkTab.js +3 -2
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +3 -2
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js +9 -15
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/lib/components/Tabs/tabItemClasses.js +8 -43
- package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/src/common.css +3 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +14 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
- package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
- package/mobile/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
- package/mobile/src/components/PictureText/PictureText.example.json +1 -11
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/mobile/src/components/ProductTile/ProductTile.example.json +4 -12
- package/mobile/src/components/Tabs/LinkTab.tsx +19 -8
- package/mobile/src/components/Tabs/Tabs.tsx +7 -4
- package/mobile/src/components/Tabs/renderGroupTab.tsx +21 -33
- package/mobile/src/components/Tabs/tabItemClasses.ts +12 -45
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +0 -1
- package/mobile/src/components/Tile/Tile.example.json +1 -11
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
- package/package.json +1 -1
- package/src/common.css +3 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +43 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +67 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +14 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +27 -0
- package/src/components/Carousel/Carousel.fixture.tsx +13 -2
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +23 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +3 -25
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
- package/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +34 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -7
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
- package/src/components/CarouselProgramsCard/programCardStyles.mobile.ts +2 -0
- package/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
- package/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
- package/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
- package/src/components/PictureText/PictureText.example.json +1 -11
- package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -6
- package/src/components/PictureText/PictureText.fixture.tsx +0 -6
- package/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -6
- package/src/components/ProductTile/ProductTile.example.json +4 -12
- package/src/components/Tabs/LinkTab.tsx +19 -8
- package/src/components/Tabs/Tabs.fixture.mobile.tsx +55 -0
- package/src/components/Tabs/Tabs.fixture.tsx +8 -17
- package/src/components/Tabs/Tabs.tsx +7 -4
- package/src/components/Tabs/renderGroupTab.tsx +21 -33
- package/src/components/Tabs/tabItemClasses.ts +12 -45
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -1
- package/src/components/Tile/Tile.example.json +1 -11
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
- package/tailwind.config.cjs +25 -12
|
@@ -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";let t;const i=e=>(...i)=>t[e](...i),n=i("useState"),l=i("useEffect"),r=i("useCallback"),a=i("useMemo"),s=i("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;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||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:i}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:i})),{token:t,name:i}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:i,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:i,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),g=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,i){const{children:n,...l}=t||{},r=i?.slots?.default,a=n||r&&r();return e(Object.assign(l,a&&{children:a}),i)}return t.inheritAttrs=!1,t};class f{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const i=this.subjectsStateMap[e];return i&&t(i),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const x=new f;function v(e,{sensitivity:t,rootRef:i}={}){const n=s(null),r=a((()=>({threshold:y(t),root:i?.current})),[t,i?.current]);return l((()=>{if(!n.current)return;const t=new IntersectionObserver(e,r);return t.observe(n.current),()=>{t.disconnect()}}),[e,r]),n}function y(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,i)=>Math.min(i/t)),1).concat(1)}const N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},C=p((({className:e,version:t="primary",isTheme:i=!0,defaultPadding:a="p-m",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,g=function(e){return v(r((t=>{if(!e||!t?.length)return;const i=t[t.length-1];N.fire("intersection",{block:e,intersection:i})}),[e]),{sensitivity:1})}(o),[p,b]=n(!1);l((()=>x.subscribe("tab",(e=>{b(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&i;return u(h,{className:w("font-sans",f?"group":"",k[t],p?"hidden":"",s||a,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:g}:{},role:d,children:m})}));function T(){return T._impl()}T._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),T.setup=e=>{T._impl=e};const _=e=>Boolean(e?.includes(":")),S=(e,t)=>Boolean(e&&!_(e)&&(!t||"_self"===t)),I=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var P=Object.freeze({__proto__:null,isURL:_,isLocalURL:S,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:I});const R=e=>(t,i=d.BASE_PATH)=>{if(!t||_(t)||A(t,d.CDN))return t;const n=t.startsWith("/");return I(A(t,i)?"":i,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},A=(e,t)=>t&&e&&e.startsWith(t),B={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},j=p((({className:e="",imageClassName:t="",name:i="",alt:n=`Иконка ${i}`,title:l=n,iconVersion:r="color",...a})=>{const s=T(),o=R(s)(I(d.CDN,"/icons",`${i}.svg`));return"normal"!==r?u(V,{className:e,children:g("svg",{className:w(L(a.width),B[r],"white"===r?"invert":"",t),...a,"aria-hidden":"true",children:[l?u("title",{children:l}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(a.style={height:`${a.height}px`}),u("img",{className:e,src:o,alt:n,title:l,"aria-hidden":"true",...a}))})),L=e=>e?"":"w-full h-full",V=p((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),z=(e,t)=>e?.media&&t?.media?e.media-t.media:0,$=p((({className:e="",image:t,imageClassName:i="",pathPrefix:n})=>{const l=T();return g("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(z).map((({src:e,format:i,media:r},a)=>u("source",{srcSet:O(l,n)(e),type:M(i),media:r?`(max-width: ${r}px)`:"",...t.size},`${a}_${e}`))):null,t?.src?D({...t,src:O(l,n)(t.src)},i):null]})})),D=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),O=(e,t)=>i=>i&&!_(i)?R(e)(I(t,i)):i,M=e=>e?`image/${String(e)}`:void 0,F=p((({className:e="",image:t,imageClassName:i="",pathPrefix:n,...l})=>t?.src||t?.icon?t.icon?u(j,{className:e,imageClassName:i,iconVersion:t?.iconVersion,name:t.icon,...l}):u($,{className:e,imageClassName:i,image:t,pathPrefix:n}):null)),H=(e,t)=>H._impl(e,t);function E(e={}){const{isRemote:t,basePath:i}=e,n=T(),{close:l}=((e="")=>({open:t=>x.fire("dialog",{type:"open",id:e,message:t}),close:()=>x.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!i?e.href:R(n)(e.href,i),"aria-label":e.text,onClick:H(r(e),e)});function r({href:e,target:i,onClick:r}){return a=>{r&&r(a),e&&!t&&S(e,i)&&(l(),a?.preventDefault(),n.push(e))}}}H._impl=e=>e,H.setup=e=>{H._impl=e};const U={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},X="bg-main-divider text-main-disabled",J={primary:X,secondary:X,white:X,link:"",transparent:"",gray:X,"":""},G="text-center font-sans select-none",Y={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},W=p((e=>{const{text:t,aboveText:i,appendLeft:n,appendRight:l,version:r="primary"}=e;return g("div",{className:w(K(e),"flex gap-2"),children:[n?u("div",{className:Y[r],children:n}):null,q(e)?g("div",{children:[i?u("div",{className:"text-xs-light text-left",children:i}):null,u("div",{className:"text-left "+(i?"text-s -mt-0.5":"text-l"),children:t})]}):null,l?u("div",{className:Y[r],children:l}):null]})})),K=e=>{const{version:t,aboveText:i,rounded:n}=e;if("link"===t)return"";const l=""+(i?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",q(e)?l:"h-12 w-12",n?"rounded-full":""].join(" ")},q=({text:e,aboveText:t,appendLeft:i})=>Boolean(e||t||!i),Q=({className:e,rounded:t,version:i})=>["inline-block",G,i?J[i]:"",t?"rounded-full":"rounded-md",e].join(" "),Z=({className:e,rounded:t,version:i})=>[G,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",i?U[i]:"",t?"rounded-full":"rounded-md",e].join(" "),ee=p((({disabled:e,children:t,...i})=>{const n=E()(i),l=t??u(W,{...n});return u(e?ie:te,{...n,children:l})})),te=p((({className:e="",href:t,rel:i,target:n,ariaLabel:l,version:r,rounded:a,onClick:s,children:o})=>u("a",{className:Z({className:e,version:r,rounded:a}),href:t,rel:i,target:n,"aria-label":l,role:t?"link":"button",onClick:s,children:o}))),ie=p((({className:e,ariaLabel:t,version:i,rounded:n,children:l})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Q({className:e,rounded:n,version:i}),children:l}))),ne=(e,{className:t,buttonClassName:i,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-s",t),children:e.map(le(i))}):null,le=(e="")=>(t,i)=>{const{text:n,icon:l,iconRight:r,version:a,...s}=t||{},o="secondary"===a?"color":"white",c=l?.iconVersion?l?.iconVersion:o;return n||l?.icon?u(ee,{className:w("basis-full sm:basis-auto",e),appendLeft:re({...l,iconVersion:c}),appendRight:re({...r,iconVersion:c}),version:a,text:n,...s},i?String(i):""):null},re=e=>e?.icon||e?.src?u(F,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,ae=p((({buttons:e,className:t,...i})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...i,children:ne(e)}))),se=e=>e,oe=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0),ce=p((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),de=p((({key:e,className:t="",inputClassName:i="",id:n,name:l,type:a="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:p,onBlur:b,pattern:f})=>{const x=r((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return g("div",{className:w("relative",t),children:[g("label",{children:[s?u("div",{className:"mb-2",children:u(ce,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,i),id:n,name:l||n,placeholder:o,type:a,value:c,onInput:x,onFocus:p,onBlur:b,pattern:f},e)]}),m]})})),me=p((e=>{const{onChange:t,min:i,max:l,defaultValue:a="0",fractionDigits:s=0,...o}=e,c=((e,{normalize:t,format:i})=>{const{value:l,onFocus:a,onBlur:s,onChange:o}=e,[c,d]=n(!1),m=r((e=>{d(!0),a&&a(e)}),[]),h=r((()=>{d(!1),o&&o(t(l)),s&&s()}),[o,l]);return{value:c||!i?l:i(l),onFocus:m,onBlur:h}})(e,{normalize:(e=a)=>i&&l?String(((e,t,i)=>Math.max(t,Math.min(e,i)))(Number(he(e)),i,l)):he(e),format:oe(s)}),d=r((e=>t&&t(he(e))),[t]);return u(de,{onChange:d,...o,...c})})),he=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),ue=p((e=>u(me,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(ce,{size:"text-xl",font:"font-light",children:"₽"})})}))),ge={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},pe={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},be=p((({className:e="",headingType:t="h3",as:i="h3",title:n,children:l})=>{const r=ge[i]||"h3";return u(r,{className:w("font-sans m-0",pe[t],e),children:n||l})})),fe="amount",xe={[fe]:1500},ve=p((({className:e="",title:t="Укажите сумму перевода",label:i="Сумма перевода",placeholder:l="1500",button:a,...o})=>{const[{amount:c},{field:d}]=((e,t)=>{const[i,l]=n(e),[a,o]=n(!1),[c,d]=n({}),m=s({}),h=r(((e,t)=>{const{parse:n=se,format:r=se}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{l((i=>({...i,[e]:n(t)}))),d((t=>({...t,[e]:!0})))},{value:r(i[e]),isDirty:a||c[e],onChange:m.current[e]}}),[i,a,c]),u=r((()=>{l(e),o(!1),d({})}),[e]),g=r((e=>{e.preventDefault(),o(!0),t&&t(i)}),[t,i]);return[i,{isDirty:a||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:g}]})(xe),m=c<=0,h=m?Q({version:a?.version}):Z({className:"text-white",version:a?.version}),p=E();return g(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-default",...o,children:[t?u(be,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,g("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(ue,{name:fe,valid:!m,placeholder:l,label:i,...d(fe,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",h),disabled:m,...p(a),children:a.text}):null]})]})})),ye=({blockClassName:e,block:t,render:i})=>i({blockClassName:e,block:t}),Ne=[];function we(e,t,{className:i,...n}={}){const{key:l,blockDecorator:r=ye,blocksRegistry:a={},ancestors:s=Ne}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return r({blockClassName:w("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:s,render:({block:i,blockClassName:r})=>{const{content:a}=i;return c?u(c,{className:r,block:e,options:t,...a,...n},l):null}},l)}const ke=[],Ce=(e,{key:t,ancestors:i=ke,slotName:n=null,renderProps:l=we,...r})=>(e||[]).map(((e,a)=>l(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...i||ke,[r.parent,n]]:i})));function Te({children:e,block:t,options:i,renderProps:n}){return e||(t&&i?Ce(t.blocks,{...i,parent:t,renderProps:n}):null)}const _e=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Se=p((({className:e="",style:t,idx:i,activeIndex:n,observerOptions:l,children:a,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(i||0,e[e.length-1])}),[s,i]),l);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(i===n),ref:o,children:a})})),Ie=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Pe=p((({className:e="",containerRef:t,activeIndex:i,visibleItemCount:n=0,gap:l=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:g})=>{const p={sensitivity:1,rootRef:t},b=s([]),f=r(((e,t)=>{const i=[...b.current||[]];i[e]=t,b.current=i,h&&h(i),g&&g(Ae(i))}),[h,g]),x=n>0?l*Number(n)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?Re(a,x):{},...v?_e(d):{},gap:`${l}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(Se,{className:w(c,n?Ie[n-1]:"",v?"h-full":""),style:y?Re(a/4):{},activeIndex:i,idx:t,observerOptions:p,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),Re=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Ae=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Be={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},je={"horizontal-list":"w-6","vertical-list":"h-6"},Le=p((({containerRef:e,activeIndex:t,dotCount:i=0,listType:n="horizontal-list",version:l})=>i?u("div",{className:w("flex gap-2",Be[n],l?"group":""),...l?{"data-ver":l}:{},children:new Array(i).fill(null).map(((i,l)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${l===t?je[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(i=>{i!==t&&e?.current&&e.current.children[i]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(l)},String(l))))}):null)),Ve=e=>e,ze=(e=Ve)=>t=>t.reduceRight(((t,i)=>e(t)>e(i)?t:i)),$e=(e=Ve)=>ze((t=>-e(t))),De=e=>t=>e.scrollWidth/t,Oe=e=>(t,i)=>{e.scrollBy({left:i*De(e)(t),behavior:"smooth"})},Me=({itemCount:e,isCyclic:t,onVisibleIndicesChange:i})=>{const l=s(null),[a,o]=n([]),c=r((e=>{o((t=>{return(i=t)===(n=e)||Boolean(i&&n&&i?.length===n?.length&&i.every(((e,t)=>e===n[t])))?t:e;var i,n})),i&&i(e)}),[e]),[d,m]=a.length?[$e()(a),ze()(a)]:[-1,-1],h=d>0,u=m<e-1,g=r((()=>{var i;l.current&&(t&&!h?(i=l.current).scrollTo({left:i.scrollWidth,behavior:"smooth"}):Oe(l.current)(e,-1))}),[t,e,h]),p=r((()=>{l.current&&(t&&!u?l.current.scrollTo({left:0,behavior:"smooth"}):Oe(l.current)(e,1))}),[e,t,u]);return[l,{scrollLeft:g,scrollRight:p,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Fe=p((({className:e,disabled:t,...i})=>u(ee,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...i,children:u(F,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),He=p((e=>u(Fe,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Ee=p((e=>u(Fe,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Ue="absolute top-[calc(50%-24px)] z-40",Xe="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Je=p((({scroll:e,arrowsPadded:t,isBlur:i,onScrollLeft:n,onScrollRight:l,hasEdgeBlocks:a,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,p=a?s>0:c,b=a?s<o-1:d,f=r((()=>{a?(c&&s!==o-1&&m(),n()):m()}),[m,n,a,c,s,o]),x=r((()=>{a?(d&&0!==s&&h(),l()):h()}),[h,l,a,c,s,o]);return g("div",{children:[Ge(i,e),p?u(He,{className:w(Ue,t?"left-8":"left-0"),onClick:f}):null,b?u(Ee,{className:w(Ue,t?"right-8":"right-0"),onClick:x}):null]})})),Ge=(e,t)=>e?g("div",{children:[t.canScrollLeft?u("div",{className:w(Xe,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Xe,"right-0 bg-opacity-to-white")}):null]}):null,Ye=p((({className:e="",itemCount:t,visibleItemCount:i,isBlur:l=!0,isCyclic:a=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},p=t||h?.length,[b,f]=n(Math.floor((i||0)/2)),x=r((()=>f((e=>e+1))),[]),v=r((()=>f((e=>e-1))),[]),[y,N]=Me({itemCount:p,isCyclic:a}),[k]=N.visibleIndicesRange,T=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(C,{className:e,defaultPadding:We(o),...m,children:g("div",{className:w(Ke(d),"relative max-w-full"),children:[u(Pe,{containerRef:y,visibleItemCount:i,snapAlign:"snap-start",gap:16,onVisibleIndicesChange:N.handleVisibleIndicesChange,children:Te({...m,renderProps:T?(e,t)=>we(e,t,{blocksLength:h?.length,activeIndex:b}):we})}),u(Je,{scroll:N,isBlur:l,arrowsPadded:s,onScrollLeft:v,onScrollRight:x,hasEdgeBlocks:T,activeIndex:b,itemCount:p}),c?qe(y,k,p):null]})})}));Ye.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const We=e=>e?"p-default":"",Ke=e=>e?"flex justify-center":"",qe=(e,t,i)=>u(Le,{containerRef:e,activeIndex:t,dotCount:i,listType:"horizontal-list"}),Qe=p((({className:e="",href:t,target:i,isRemote:n=!1,children:l})=>{const r=E({isRemote:n})({href:t,target:i});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:l})})),Ze=p((({className:e="",title:t,icon:i,list:n=[],href:l,target:r,...a})=>u(C,{className:w("border border-gray",e),defaultPadding:"p-0",...a,children:g(Qe,{className:"flex",href:l,target:r,children:[g("div",{className:"w-[200px] min-w-[200px] self-center",children:[i?.icon?u(F,{image:i}):null,i?.src?u(F,{image:i}):null]}),g("div",{className:"p-8 pl-3 w-full",children:[t?u(be,{className:"mb-3.5",headingType:"h5",title:t}):null,n.length?u("div",{className:"flex flex-col gap-3",children:n?.map(et)}):null]})]})}))),et=(e,t)=>g("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),tt={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},it=p((({className:e,isDotted:t=!0,children:i,size:n="M"})=>g("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",tt[n])})}):null,u("span",{children:i})]}))),nt={S:"text-l-light",M:"text-h6",L:"text-h5"},lt={S:"ml-2",M:"ml-3",L:"ml-4"},rt=p((({className:e,hasIndent:t,isDotted:i,items:n,listItemSize:l="M"})=>n?.length?u("section",{className:w("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",nt[l],t?lt[l]:"",e),role:"list",children:n.map(((e,t)=>u(it,{isDotted:i,size:l,children:e},String(t))))}):null)),at={default:"w-24 h-14",small:"w-12 h-12"},st=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",at[t]),ot=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],ct=p((({buttonSize:e="default",rounded:t=!1,icon:i,...n})=>{const{href:l,version:r,text:a=""}=n,{iconMapped:s,label:o}=ot.find((({origins:e})=>e.some((e=>l?.includes(e)))))||{},c=dt(i)??s;return u(ee,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",st(a,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:a,version:r,...n,children:c&&!a?u(F,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),dt=e=>e?.src||e?.icon?e:void 0,mt=p((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(ct,{...e},String(t))))}))),ht=p((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ut={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionStyle:"mt-m"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light",descriptionStyle:"mt-s"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-s"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-text"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l-light",descriptionStyle:"mt-xs"}},gt=p((({className:e,version:t="",headlineVersion:i="XL",title:n,description:l,align:r="text-center",as:a,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=ut[i],m={marginTop:d.descriptionStyle};return g(C,{className:e,defaultPadding:s?"p-default":"",version:t,isTheme:o,...c,children:[n?u(be,{className:w("whitespace-pre-wrap",r),...d?.title,as:a||d?.title.as,title:n}):null,l?u(ht,{size:d.descriptionSize,align:r,...m,children:l}):null]})})),pt=p((({className:e="",description:t,href:i,icon:n,items:l=[],socialMedia:r=[],target:a,title:s,align:o="text-left",...c})=>u(C,{className:w("relative box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-default",...c,children:g(Qe,{href:i,target:a,children:[u(gt,{className:"mb-2",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),l.length?u(rt,{className:"flex flex-col gap-2",items:l,listItemSize:"S"}):null,bt(n),r.length?u(mt,{className:"mt-5",media:r}):null]})}))),bt=e=>e?.src||e?.icon?u("div",{children:u(F,{image:e})}):null,ft=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:i=!1,renderFoldableSection:l,renderFoldButton:a})=>{const[s,o]=n(i),c=r((()=>{o((e=>!e))}),[]),d=l({isUnfolded:s,onToggle:c}),m=a?a({isUnfolded:s,onToggle:c}):null;return g("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),xt=p((({className:e="",isUnfolded:t,children:i})=>{const n=s(null);return l((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,i?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:i})})),vt=(e=!1)=>e?"p-default mt-6":"mt-6 p-default",yt=(e,t)=>{const{title:i,description:n,buttons:l}=e;return g("div",{className:"py-5 border-b border-main-divider",children:[i?u("div",{className:"opacity-80",children:u(ce,{size:"text-m",color:"text-secondary-text",children:i})}):null,n?u("div",{className:"mt-1",children:u(ce,{size:"text-l",color:"text-primary-text",children:n})}):null,l?.length?u("div",{className:"text-primary-main",children:ne(l)}):null]},String(t))},Nt=p((({className:e="",title:t,icon:i,isHighlighting:n=!1,button:l,cardCells:r=[],...a})=>{const s=r.map(yt),o=s.slice(0,1),c=s.slice(1);return g(C,{className:w("relative border border-gray flex flex-col",e),defaultPadding:vt(n),...a,children:[n?Ct():null,wt(i),t?u(be,{className:"text-center pt-2",headingType:"h5",title:t}):null,l?u(ee,{className:"w-full mt-4",...l}):null,r.length?u(ft,{renderFoldableSection:({isUnfolded:e})=>g("div",{children:[o,u(xt,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?kt:null}):null]})})),wt=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(F,{image:e}):null}),kt=({isUnfolded:e,onToggle:t})=>g("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(j,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Ct=()=>g("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(j,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ht,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Tt=p((({className:e,version:t,gap:i=14,padding:n=16,showDots:l=!0,minHeight:r,children:a,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(a)?a.length:0,[d,m]=Me({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return g("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Pe,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:i,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:r,children:a}),l?u(Le,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),_t=(e=!1)=>e?"text-white":"",St=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),It=p((({icon:e,image:t,title:i,subtitle:n,isFillGradient:l})=>g("div",{role:"columnheader",children:[e?u(F,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(F,{image:t})}),i?u(be,{headingType:"h4",className:_t(l),title:i}):null,n?u("div",{className:St(l),children:n}):null]}))),Pt=p((({cell:e,rowHeader:t,isFillGradient:i=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Rt(i,t))})}))),Rt=(e,t)=>({label:i,description:n},l)=>g("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),g("div",{className:"basis-1/2",children:[i?u("div",{className:"text-right "+(e?"text-white":""),children:i}):null,n?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:n}):null]})]},String(l)),At=p((({header:e,columnData:t,visibleRowLength:i=0,isFillGradient:n,showRow:l,onToggleColumn:r})=>{const a=t?.slice(0,l?t.length:i),s=n?"secondary":"primary";return g("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${n?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(It,{...e,isFillGradient:n}),a?.length?a.map((({rowHeader:e,cell:t},i)=>u(Pt,{cell:t,rowHeader:e,isFillGradient:n},String(i)))):null,l&&e?.link?u(ee,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Bt({onToggleColumn:r,isFillGradient:n,showRow:l})]})})),Bt=({onToggleColumn:e,isFillGradient:t,showRow:i})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:i?"Скрыть":"Показать описание"})}),jt=p((e=>{const{className:t,title:i}=e;return g("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[i?u(be,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:i}):null,u("div",{role:"table",children:u(Lt,{...e})})]})})),Lt=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:i,visibleRowLength:l,orientation:a,...s})=>{const[o,c]=n(new Array(e.length).fill(!l)),d=r((e=>{const t=(t,i)=>i===e?!t:t;c((e=>e.map(t)))}),[]),m=r((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:n},r)=>{return u(At,{visibleRowLength:l,showRow:o[r],header:n,columnData:(a=e,a?.map(((e,i)=>({cell:e,rowHeader:t?.[i]?.title})))),isFillGradient:0===r&&i,onToggleColumn:()=>d(r),...s},String(r));var a}));return"horizontal"===a?u(Tt,{onVisibleIndicesChange:m,children:h}):h})),Vt=e=>null!=e,zt=new Map;function $t(e,t,{fallback:i,cache:r}={}){const s=a((()=>Dt(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=n(void 0),[m,h]=n(void 0);l((()=>{!s.some(Vt)||(async()=>{try{const e=await(o?((e,t=zt)=>i=>{const n=t.get(i);if(Vt(n))return n;const l=e(i);return Vt(l)?t.set(i,Promise.resolve(l)):t.delete(i),l})(t,r)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,r,s]);const u=i&&o&&i[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Dt(e){return Array.isArray(e)?e:e instanceof Function?Dt(e()):[e]}async function Ot(e,t){const i=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await i.json()}const Mt={};function Ft(e,t={}){const{data:i}=$t(`/wcms-resources/${e}.json`,Ot,{fallback:t});return i||Mt}const Ht=p((({className:e="",items:t})=>t?.length?u("ul",{className:w("flex flex-col p-0","",e),children:t.map(Et)}):null)),Et=(e,t)=>{const{text:i,...n}=e;return u("li",{className:"list-none mb-4 sm:mb-6 sm:last:mb-0",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...n,children:i||null})},`list_item_${String(t)}`)},Ut=p((({className:e="",label:t,icon:i,dataTheme:n="",disabled:l=!1,onClick:r})=>g("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",l?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:l,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),i?u(F,{image:{icon:i,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Xt=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",Jt={primary:"bg-main-divider",secondary:"bg-white/30","secondary-light":"bg-secondary-light"},Gt=p((({iconBgVersion:e="primary",size:t,icon:i,...n})=>{const l=String(t?.width||24),r=String(t?.height||24);return i?u("div",{className:w("rounded-icon p-2.5",Jt[e]),children:u(j,{...n,width:l,height:r,name:i})}):null})),Yt=(e,t)=>u(Gt,{...e,iconBgVersion:t}),Wt=p((({className:e="",label:t="Развернуть",labelIcon:i,labelIconBgVersion:n,isExpanded:l,isFoldButtonOnTop:r=!0,version:a="primary",...s})=>u(C,{className:w("w-full","",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(ft,{isFoldButtonOnTop:r,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(xt,{className:w("gap-5 [&>*]:p-0","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:Te(s)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>Kt({version:a,label:t,labelIcon:i,labelIconBgVersion:n,isUnfolded:e,onToggle:l})})})));Wt.childrenTypes={exclude:["RollupItem"]};const Kt=({version:e,label:t,labelIcon:i,labelIconBgVersion:n,isUnfolded:l,onToggle:r})=>{const a=t||(l?"Скрыть":"Развернуть");return"primary"===e?qt({label:a,labelIcon:i,labelIconBgVersion:n,icon:Xt(l),onToggle:r}):u(Ut,{label:a,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},qt=({label:e,labelIconBgVersion:t,icon:i,onToggle:n,labelIcon:l})=>g("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",l?.icon?"py-2":"py-5"),onClick:n,children:[g("div",{className:"flex items-center group-hover/button:text-primary-main",children:[Yt(l,t),e?u(ce,{size:"text-l",font:"font-normal",children:e}):null]}),i?u(j,{name:i,iconVersion:"normal",width:"24",height:"24"}):null]}),Qt=p((({className:e="",items:t,hasButton:i})=>g("div",{className:e,children:[t?.length?t.map(Zt):null,i?u(ee,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Zt=(e,t)=>g("div",{className:"mb-6",children:[u("div",{className:"mb-4",children:u(ce,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(ei)})]},String(t)),ei=(e,t)=>g("div",{className:"mb-4",children:[u("div",{children:ti(e.type,e.text)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:e.description})]},String(t)),ti=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ii(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},ii=e=>e.replaceAll(/\D/g,""),ni=p((({className:e="",index:t,text:i,...n})=>{const l=E(),{href:r,target:a,onClick:s}=l(n);return u("a",{className:w("",e),href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),li=p((({title:e,links:t,className:i=""})=>g("div",{className:i,children:[u(ce,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(ni,{index:t,...e},String(t))))}):null]}))),ri=p((({className:e="",index:t,...i})=>{const n=E({isRemote:!0}),{href:l,target:r,text:a,onClick:s}=n(i);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:r,onClick:s,children:a||`Документ ${t}`})})),ai=p((({className:e="",links:t})=>g("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(ce,{size:"text-s",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(ri,{index:t,...e},String(t))))}):null]}))),si=p((({className:e="",...t})=>{const i=t.options?.page?.fallback,n=Ft(d.SITEMAP||"sitemap",i),{relatedEnterprises:l,contacts:r,socialMedia:a,horizontalNavigationTitle:s}=Ft(d.FOOTER||"footer",i);return g(C,{tag:"footer",className:e,defaultPadding:"px-4 py-6",...t,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:n.topItems?.map(((e,t)=>u(Wt,{label:e?.text,labelIcon:e?.icon,children:u(Ht,{items:e.items,className:"my-3"})},String(t))))}),u(Qt,{className:"overflow-hidden",items:r}),u(mt,{className:"mb-4",media:a}),u(ee,{className:"w-full mb-4",text:"Google Play",version:"secondary",href:"/",target:"_blank"}),u(li,{className:"pt-4 pb-7 border-y border-main-divider",title:s,links:l}),u(ai,{})]})})),oi={"bg-white":"color",transparent:"white"},ci={"bg-white":"text-primary-main",transparent:"text-white"},di=(e,t,i)=>u(F,t?.src?{image:t,className:ci[e],width:i?.width,height:i?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:oi[e]},className:ci[e],width:i?.width,height:i?.height}),mi={"bg-white":"text-primary-text",transparent:"text-white"},hi=(e,t,i)=>u("span",{className:`${mi[t]} ml-2.5 font-medium ${i||""}`,children:e||"Россельхозбанк"}),ui=p((({bgColor:e="bg-white",children:t,className:i="",href:n,logo:l,showTitle:r=!0,targetBlank:a})=>g("a",{className:`inline-flex items-center font-sans no-underline ${i}`,href:n||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[di(e,l?.image,{width:"34",height:"34"}),r?hi(t||l?.title,e,"text-s"):null]}))),gi={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},pi=p((({bgColor:e,logo:t,internetBankUrl:i,version:n,mobileHeaderType:l,mobileTitle:r,mobileBackwardButtonTitle:a})=>{const s="none"===l,o="withTitle"===l;return g("div",{className:"flex items-center justify-between w-full",children:[s||o?u(ui,{bgColor:e,logo:t,showTitle:s}):null,o?r:null,"backwardButton"===l?g(ee,{className:"flex items-center text-l",children:[u(F,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),a]}):null,i?u(ee,{href:i,ariaLabel:"Войти",target:"_blank",className:w("p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover",gi["transparent"===n?"transparent":"default"]),children:"Войти"}):null]})})),bi={"bg-white":"primary",transparent:"transparent"},fi=p((({bgColor:e="bg-white",version:t=bi[e],mobileHeaderType:i="none",...n})=>{const l=n.options?.page?.fallback,{logo:r,internetBankUrl:a}=Ft(d.SITEMAP||"sitemap",l);return u(C,{tag:"header",defaultPadding:"",version:t,...n,children:u("div",{className:"container px-4 py-1 box-border",children:u(pi,{bgColor:e,logo:r,internetBankUrl:a,version:t,mobileHeaderType:i,...n})})})})),xi=p((e=>{const{className:t,image:i,...n}=e;return u(C,{className:t,defaultPadding:"p-0",...n,children:u(F,{image:i})})})),vi=p((({doc:e,icon:t})=>{const{text:i,fileSize:n,...l}=e;return g("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...l,children:[t,i?g(ce,{size:"text-l",font:"font-light",children:[i,u(ce,{color:"text-secondary-text",children:l?.href&&yi(Ni(l.href),n)})]}):null]})})),yi=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ni=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},wi=p((({className:e="",title:t,description:i,icon:n={icon:"DocDownloadIcon",iconVersion:"black"},documents:l,align:r,...a})=>g(C,{className:e,defaultPadding:"p-default",...a,children:[u(gt,{isPadding:!1,title:t,description:i,align:r,headlineVersion:"M"}),l?.length?u("div",{className:"mt-5 flex flex-col gap-6",role:"list",children:l.map(((e,t)=>u("div",{role:"listitem",children:u(vi,{doc:e,icon:n?u(F,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:n,width:"24",height:"24"}):null})},String(t))))}):null]}))),ki={left:"text-left",center:"text-center",right:"text-right"},Ci={start:"self-start",center:"self-center",end:"self-end"},Ti=p((({className:e,defaultPadding:t,padding:i,title:n="",insetTitle:l="",buttons:r,leftImage:a,rightImage:s,imageAlign:o,backImage:c,children:d})=>g("div",{className:w("relative flex flex-col gap-lg font-sans overflow-hidden",i||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,n?u("div",{className:"relative",children:n}):null,g("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-lg",children:[_i(a,{imageAlign:o}),g("div",{className:w("flex flex-col gap-lg max-w-[600px] xl:max-w-[728px]",a?"":"grow"),children:[l,u("div",{className:"grow",children:d}),r]}),_i(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),_i=(e,{className:t,imageAlign:i})=>e?u("div",{className:w("flex-shrink-0",i&&Ci[i],t),children:e}):null,Si=e=>e?u("div",{className:"mb-5 pt-0.5 sm:mb-0 sm:pt-0",children:u(ce,{size:"text-xl","font-weight":"light",children:e})}):null,Ii=e=>e?.length?u(rt,{items:e,className:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Pi=p((({className:e,padding:t,alignTitle:i="left",buttons:n=[],description:l,headingType:r="h4",image:a,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-3.5 min-w-[120px]":"min-w-[92px]";return u(C,{className:w("min-h-80",e),defaultPadding:"p-0",version:d,...m,children:g(Ti,{className:"h-full",padding:t,defaultPadding:"p-default",title:c?u(be,{headingType:r,title:c,className:w("whitespace-pre-wrap",ki[i])}):null,backImage:a?.src?u(F,{image:a}):null,buttons:ne(n,{isVertical:n.length>3}),children:[Si(l),g("div",{className:"flex flex-1 gap-s items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(F,{className:"w-fit",image:o})}):null,Ii(s)]})]})})})),Ri=(e=[])=>e?.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e)/e.length:0,Ai=p((({className:e,icon:t,label:i,description:n,benefitsVersion:l="normal"})=>g("div",{className:w("flex gap-s",n?"items-start":"items-center",e),children:[t?u("div",{className:Bi(l),children:u(F,{className:"w-6 h-6",image:{...t,iconVersion:t.iconVersion||l}})}):null,g("div",{className:"gap-0.5",children:[i?u(ce,{color:"text-primary-text group-data-secondary:text-white",size:"text-l",children:i}):null,n?u(ht,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:n}):null]})]})));function Bi(e){return w("w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon","normal"===e?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black")}const ji=p((e=>{const{__html:t="",richVersion:i=""}=e;return u("div",{className:w(i,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Li=e=>({type:t,...i},n)=>"rte"===t&&"__html"in i?u(ji,{__html:i.__html}):u(Ai,{benefitsVersion:e,...i},String(n)),Vi=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),zi=e=>{return((t=e.map(Vi))?.length?Math.sqrt(Math.abs(Ri(t.map((e=>e**2)))-Ri(t)**2)):0)>16;var t},$i=p((({className:e,benefitsVersion:t="normal",benefits:i})=>i?.length?u("div",{className:w("flex gap-x-m gap-y-s",zi(i)?"flex-col":"flex-wrap",e),children:i.map(Li(t))}):null)),Di=p((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(Oi)}):null)),Oi=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(ce,{size:"text-m-light",children:e})},String(t)),Mi=p((({className:e,title:t,description:i,headlineVersion:n="L",align:l="text-left",isInsetTitle:r=!0,benefits:a,benefitsVersion:s,__html:o,items:c,isDotted:d=!0,listItemSize:m,tags:h,buttons:p,image:b,imageOptions:{imageAlign:f,directionRight:x=!0}={},children:v})=>{const y=b?.src?u(F,{image:b}):null,N=u(gt,{title:t,description:i,headlineVersion:n,align:l,isPadding:!1});return u(Ti,{className:e,...r?{insetTitle:N}:{title:N},...x?{rightImage:y}:{leftImage:y},imageAlign:f,buttons:ne(p),children:g("div",{className:"flex flex-col gap-m",children:[u($i,{benefitsVersion:s,benefits:a}),o?u(ji,{__html:o}):null,c?.length?u(rt,{items:c,isDotted:d,listItemSize:m}):null,v,h?.length?u(Di,{tags:h}):null]})})})),Fi=(e,t)=>e||t?g("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-m",children:[Number(e)>0?Hi("Страховая сумма:",e):null,Number(t)>0?Hi("Ежемесячный лимит:",t):null]}):null,Hi=(e,t=0)=>g("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(ce,{font:"font-light",size:"text-l",children:e}),g(ce,{size:"text-h6",color:"text-primary-text",children:[oe(2)(t)," ₽"]})]}),Ei=p((({className:e,headlineVersion:t="M",align:i="text-center",sum:n,monthLimit:l,...r})=>u(C,{className:e,defaultPadding:"p-default",...r,children:u(Mi,{className:"h-full",headlineVersion:t,align:i,isInsetTitle:!1,...r,imageOptions:{directionRight:!1,imageAlign:"center",...r.imageOptions},children:Fi(Number(n),Number(l))})}))),Ui=p((({className:e,title:t,description:i="Блок в разработке...",...n})=>g(C,{className:w("box-border",e),...n,children:[u(gt,{className:"max-w-[600px]",title:t,description:i,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-m min-w-[80%]",children:Xi()})]}))),Xi=(e=3)=>Gi(100,e).map((e=>Math.floor(e))).map(Ji),Ji=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Gi=(e,t)=>[e].concat(t>0?Gi(e/1.618,t-1):[]);function Yi({text:e,href:t,target:i,icon:n},l){const r="primary"===l?"white":"black",a={text:e,href:t,target:i,ariaLabel:e};return g("div",{className:"flex items-center gap-3",children:[u(ee,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:l,rounded:!0,...a,children:u(F,{className:"w-4 h-4",image:{...n,icon:n?.icon||"ArrowLeftIcon",iconVersion:n?.iconVersion||r}})}),u(ee,{version:"link",...a})]})}const Wi=p((({className:e,backwardButton:t,...i})=>g(C,{className:w("overflow-hidden flex flex-col gap-lg box-border",e),defaultPadding:"p-default",...i,children:[t?.text?Yi(t,i.version&&"primary"!==i.version?"white":"primary"):null,u(Mi,{className:"grow h-full",...i})]}))),Ki=p((({className:e,slides:t=[],...i})=>u(C,{className:w("overflow-hidden relative",e),defaultPadding:"p-m",...i,children:u(Tt,{gap:0,padding:0,children:t.map((e=>e.productBlock)).map(((e,t)=>u("div",{className:"box-border h-full",role:"listitem",children:u(Mi,{className:"px-5 h-full",headlineVersion:"L",...e,...i})},String(t))))})}))),qi=p((e=>{const{__html:t,richVersion:i,...n}=e;return u(C,{defaultPadding:"p-0",...n,children:u(ji,{__html:t,richVersion:i})})}));function Qi(e){throw new Error(e)}const Zi={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},en={normal:"min-h-[70px]",small:"min-h-12"},tn={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},nn=p((({className:e="",title:t,description:i,showLines:n=!0,steps:l,size:r="normal",version:a="primary",...s})=>g(C,{className:`box-border flex flex-col ${e}`,defaultPadding:"px-4 py-6",version:a,...s,children:[t?u(be,{headingType:"h3",className:"text-center",title:t}):null,i?u("p",{className:`text-m-light text-center ${tn.description} ${t?"mt-2":""}`,children:i}):null,l?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(ln(r,a,n))})}):null]}))),ln=(e,t,i)=>(n,l,r)=>{const{type:a}=n;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return rn(e,t,i)(n,l,r);case"rte":return u(ji,{__html:n.__html});default:Qi(n)}},rn=(e,t,i)=>(n,l,r)=>{const a=r.length-1===l,s="normal"===e?"ml-[34px]":"ml-6";return u("div",{children:g("div",{className:"flex flex-row text-center relative",children:[g("div",{className:"overflow-hidden flex-shrink-0",children:[an(e,t)(n,l),a?null:u("div",{className:`min-h-8 h-full w-0.5 ${i?tn.iconConnector:""} ${s}`})]}),g("div",{className:`flex flex-col justify-center h-fit ${en[e]}`,children:[n.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:n.label}):null,n.description?u("div",{className:`text-s ${tn.description} text-left`,children:n.description}):null]})]})},String(l))},an=(e,t)=>(i,n)=>{const l="normal"===e?"38":"27",r="secondary"===t?"white":"color";return u("div",{className:`${Zi[e]} ${tn.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${"normal"===e?"text-m-title":"text-m-title-xs"}`,children:(a=i?.icon,Boolean(a?.icon||a?.src)?u(F,{image:{...i.icon,iconVersion:i.icon?.iconVersion||r},width:l,height:l}):u("span",{children:n+1}))})});var a},sn={Buttons:({buttons:e})=>ne(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(F,{image:e,className:"m-0",imageClassName:"m-0"}):null,List:({isDotted:e,...t})=>u(rt,{className:"flex flex-col justify-between items-start text-m pl-2 text-base",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>g("div",{children:[e?u("div",{className:"mb-2",children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},on=p((({title:e,icon:t})=>g("div",{className:"mb-2",children:[e?u(ce,{size:"text-l-light",children:e}):null,t?u(F,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),cn=p((({tile:e,...t})=>g("div",{className:"h-full",children:[u(on,{title:e?.header?.title}),e?.data?.length?e.data.map(((e,i)=>u("div",{className:"mb-2",children:dn(e,t)},String(i)))):null]})));function dn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in sn))return null;const i=sn[e.tableCellType];return u(i,{displayTable:()=>null,isVisible:!0,...e,...t})}const mn=p((({tiles:e,...t})=>e?.length?u(Tt,{...t,padding:void 0,children:e.map(((e,i)=>u(cn,{tile:e,...t},String(i))))}):null)),hn=p((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,i)=>u(cn,{tile:e,...t},String(i))))}):null)),un=p((({className:e,title:t,description:i,tariffsColumns:n,rowHeaders:l,orientation:r="vertical",...a})=>{const s=gn(n),o=pn(l,s);return g("section",{className:`p-default bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[u(gt,{title:t,description:i,headlineVersion:"M",align:"text-left",isPadding:!1,className:"mb-8"}),u("vertical"===r?hn:mn,{tiles:o,...a})]})})),gn=e=>e?.[0]?.data?e[0].data:[],pn=(e,t)=>e?.map(((e,i)=>({header:e,data:t?.[i]||[{}]}))),bn=p((({className:e="",title:t,description:i,iconVersion:n,image:l,__html:r,items:a=[],...s})=>g(C,{className:w("flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:fn()}):null,"big"===n?xn(l):null,g("div",{className:"flex flex-col w-fit gap-3",children:[t?u(ce,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,i?vn(i):null,a?.length?yn(a,!0):null,r?u(ji,{__html:r}):null]})]}))),fn=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),xn=e=>e?.src?u(F,{className:"h-fit",image:e}):null,vn=e=>u(ht,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),yn=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(ce,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Nn={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},wn={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},kn=p((({className:e="",gap:t="",align:i="stretch",isPadding:n=!1,isInnerPadding:l=!0,version:r="transparent",isTheme:a=!1,...s})=>{const o=l?"":"!p-0";return u(C,{className:w("relative","flex flex-col [&>*]:max-w-full",Nn[t],i&&wn[i],e),defaultPadding:n?"p-default":"",version:r,isTheme:a,...s,children:Te({...s,renderProps:(e,t)=>we(e,t,{className:o})})})}));kn.childrenTypes=[];const Cn={ButtonsBlock:ae,CardTransfer:ve,Carousel:Ye,CarouselTariffsCard:Nt,ComparisonTable:jt,Footer:si,Header:fi,Headline:gt,ImgBlock:xi,LinkDocs:wi,MobileAppTile:Pi,PictureText:Ei,Placeholder:Ui,ProductBlock:Wi,StepsBlock:nn,TariffsTable:un,TextBlock:bn,RichTextBlock:qi,RollupItem:Wt,VerticalLayout:kn,CarouselRecommendationCard:pt,CarouselProgramsCard:Ze,ProductGallery:Ki};function Tn(e=!1){const[t,i]=n(e),l=r((()=>i(!0)),[]),a=r((()=>i(!1)),[]),s=r((()=>i((e=>!e))),[]);return[t,{setValue:i,setTrue:l,setFalse:a,toggle:s}]}const _n=["Header","Footer"],Sn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function In(e=globalThis){const t=s(new Map);l((()=>N.subscribe("intersection",(({block:e,intersection:i})=>{t.current&&t.current.set(e,i)}))),[]),l((()=>{const i=((e,t=600)=>{let i;const n=(...l)=>{n.dispose(),i=setTimeout((()=>{e(...l)}),t)};return n.dispose=()=>{i&&clearTimeout(i)},n})((()=>{!function(e){const t=`#${i=e?.anchor,i?.replace("#","")||""}`;var i;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!_n.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[i]=t.length>0?$e(Sn)(t):[];return i}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",i),()=>{i.dispose(),e.removeEventListener("scroll",i)}}),[e])}const Pn=p((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(F,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Rn({onOpen:e,onClose:t}={}){l((()=>x.subscribe("dialog",(i=>{switch(i.type){case"open":e&&e(i);break;case"close":t&&t();break;default:Qi(i)}}))),[e,t])}const An="cookieClose",Bn=p((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:i,onClose:l}=function(e,t=!1){const[i,{setTrue:l,setFalse:a}]=Tn(t),[o,c]=n({id:e}),d=s(i);d.current||=i,Rn({onOpen:r((t=>{t.id===e?(c(t),l()):a()}),[e]),onClose:a});const m=r((()=>{a(),x.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:i,wasOpened:d.current,onClose:m}}("cookie",!globalThis.localStorage?.getItem(An)),a=r((()=>{globalThis.localStorage?.setItem(An,"true"),l&&l()}),[l]);return i?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:g("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:g(ht,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(Qe,{isRemote:!0,className:w(jn(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(Qe,{isRemote:!0,className:w(jn(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(Pn,{className:"bg-main-gray rounded-md",onClick:a})})]})}):null})),jn=e=>["inline mx-1",e?"text-green-dark":""],Ln=h();const Vn=p((({className:e,onClick:t,ariaLabel:i})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":i,children:zn()}))),zn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return g("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("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"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},$n=p((({className:e=""})=>{const t=function(e){const[t,i]=n(0);return l((()=>{(async()=>{const[t]=await Ln.getLikeCount(e);i(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{i(await Ln.like(e))}),[e]),dislike:r((async()=>{i(await Ln.dislike(e))}),[e])}}(T().pathname);return g("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Vn,{onClick:H(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Vn,{onClick:H(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Dn=p((e=>{const{className:t="",blocksRegistry:i,blockDecorator:n,data:l={}}=e,{style:r,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=l,d={key:"",page:l,blocksRegistry:i,blockDecorator:n,parent:l};In();const[m,{setTrue:h,setFalse:p}]=Tn();return Rn({onOpen:h,onClose:p}),g("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Ce(s?.header,{...d,slotName:"header"})}):null,g("div",{className:"container grid grid-cols-12 gap-1",children:[Ce(a,d),s?.footer?Ce(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u($n,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Bn,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));Dn.childrenTypes=[],Dn.slots=()=>["header","footer"];e.Blocks=Cn,e.ContentPage=Dn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),i=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await i.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=H,e.joinList=e=>t=>t.reduce(((t,i,n)=>t.length?t.concat({...e,key:`sep-${n}`},i):[i]),[]),e.packageVersion="0.12.3",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=P,e.useRouter=T,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";let t;const i=e=>(...i)=>t[e](...i),l=i("useState"),n=i("useEffect"),r=i("useCallback"),a=i("useMemo"),s=i("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;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||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:i}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:i})),{token:t,name:i}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:i,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:i,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),g=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,i){const{children:l,...n}=t||{},r=i?.slots?.default,a=l||r&&r();return e(Object.assign(n,a&&{children:a}),i)}return t.inheritAttrs=!1,t};class f{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const i=this.subjectsStateMap[e];return i&&t(i),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const x=new f;function y(e,{sensitivity:t,rootRef:i}={}){const l=s(null),r=a((()=>({threshold:v(t),root:i?.current})),[t,i?.current]);return n((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function v(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,i)=>Math.min(i/t)),1).concat(1)}const N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},C=p((({className:e,version:t="primary",isTheme:i=!0,defaultPadding:a="p-m",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,g=function(e){return y(r((t=>{if(!e||!t?.length)return;const i=t[t.length-1];N.fire("intersection",{block:e,intersection:i})}),[e]),{sensitivity:1})}(o),[p,b]=l(!1);n((()=>x.subscribe("tab",(e=>{b(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&i;return u(h,{className:w("font-sans",f?"group":"",k[t],p?"hidden":"",s||a,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:g}:{},role:d,children:m})})),T={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},S={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},_=p((({className:e="",headingType:t="h3",as:i="h3",title:l,children:n})=>{const r=T[i]||"h3";return u(r,{className:w("font-sans m-0",S[t],e),children:l||n})})),I=p((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),P={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionStyle:"mt-m"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light",descriptionStyle:"mt-s"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-s"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-text"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l-light",descriptionStyle:"mt-xs"}},R=p((({className:e,version:t="",headlineVersion:i="XL",title:l,description:n,align:r="text-center",as:a,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=P[i],m={marginTop:d.descriptionStyle};return g(C,{className:e,defaultPadding:s?"p-default":"",version:t,isTheme:o,...c,children:[l?u(_,{className:w("whitespace-pre-wrap",r),...d?.title,as:a||d?.title.as,title:l}):null,n?u(I,{size:d.descriptionSize,align:r,...m,children:n}):null]})})),$=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),A=p((({className:e="",style:t,idx:i,activeIndex:l,observerOptions:n,children:a,onIntersection:s})=>{const o=y(r((e=>{e.length&&s&&s(i||0,e[e.length-1])}),[s,i]),n);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(i===l),ref:o,children:a})})),B=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],j=p((({className:e="",containerRef:t,activeIndex:i,visibleItemCount:l=0,gap:n=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:g})=>{const p={sensitivity:1,rootRef:t},b=s([]),f=r(((e,t)=>{const i=[...b.current||[]];i[e]=t,b.current=i,h&&h(i),g&&g(L(i))}),[h,g]),x=l>0?n*Number(l)-1:0,y="vertical-list"===o,v="horizontal-list"===o,N={...v?z(a,x):{},...y?$(d):{},gap:`${n}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(A,{className:w(c,l?B[l-1]:"",y?"h-full":""),style:v?z(a/4):{},activeIndex:i,idx:t,observerOptions:p,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),z=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),L=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),V={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},D={"horizontal-list":"w-6","vertical-list":"h-6"},M=p((({containerRef:e,activeIndex:t,dotCount:i=0,listType:l="horizontal-list",version:n})=>i?u("div",{className:w("flex gap-2",V[l],n?"group":""),...n?{"data-ver":n}:{},children:new Array(i).fill(null).map(((i,n)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?D[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(i=>{i!==t&&e?.current&&e.current.children[i]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(n)},String(n))))}):null)),O=e=>e,F=(e=O)=>t=>t.reduceRight(((t,i)=>e(t)>e(i)?t:i)),H=(e=O)=>F((t=>-e(t))),E=e=>t=>e.scrollWidth/t,U=e=>(t,i)=>{e.scrollBy({left:i*E(e)(t),behavior:"smooth"})},X=({itemCount:e,isCyclic:t,onVisibleIndicesChange:i})=>{const n=s(null),[a,o]=l([]),c=r((e=>{o((t=>{return(i=t)===(l=e)||Boolean(i&&l&&i?.length===l?.length&&i.every(((e,t)=>e===l[t])))?t:e;var i,l})),i&&i(e)}),[e]),[d,m]=a.length?[H()(a),F()(a)]:[-1,-1],h=d>0,u=m<e-1,g=r((()=>{var i;n.current&&(t&&!h?(i=n.current).scrollTo({left:i.scrollWidth,behavior:"smooth"}):U(n.current)(e,-1))}),[t,e,h]),p=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):U(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:g,scrollRight:p,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},J=p((({className:e,version:t,gap:i=14,padding:l=16,showDots:n=!0,minHeight:r,children:a,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(a)?a.length:0,[d,m]=X({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return g("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(j,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:i,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:r,children:a}),n?u(M,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})}));function G(){return G._impl()}G._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),G.setup=e=>{G._impl=e};const Y=e=>Boolean(e?.includes(":")),W=(e,t)=>Boolean(e&&!Y(e)&&(!t||"_self"===t)),K=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var q=Object.freeze({__proto__:null,isURL:Y,isLocalURL:W,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:K});const Q=e=>(t,i=d.BASE_PATH)=>{if(!t||Y(t)||Z(t,d.CDN))return t;const l=t.startsWith("/");return K(Z(t,i)?"":i,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},Z=(e,t)=>t&&e&&e.startsWith(t),ee={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},te=p((({className:e="",imageClassName:t="",name:i="",alt:l=`Иконка ${i}`,title:n=l,iconVersion:r="color",...a})=>{const s=G(),o=Q(s)(K(d.CDN,"/icons",`${i}.svg`));return"normal"!==r?u(le,{className:e,children:g("svg",{className:w(ie(a.width),ee[r],"white"===r?"invert":"",t),...a,"aria-hidden":"true",children:[n?u("title",{children:n}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(a.style={height:`${a.height}px`}),u("img",{className:e,src:o,alt:l,title:n,"aria-hidden":"true",...a}))})),ie=e=>e?"":"w-full h-full",le=p((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ne=(e,t)=>e?.media&&t?.media?e.media-t.media:0,re=p((({className:e="",image:t,imageClassName:i="",pathPrefix:l})=>{const n=G();return g("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(ne).map((({src:e,format:i,media:r},a)=>u("source",{srcSet:se(n,l)(e),type:oe(i),media:r?`(max-width: ${r}px)`:"",...t.size},`${a}_${e}`))):null,t?.src?ae({...t,src:se(n,l)(t.src)},i):null]})})),ae=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),se=(e,t)=>i=>i&&!Y(i)?Q(e)(K(t,i)):i,oe=e=>e?`image/${String(e)}`:void 0,ce=p((({className:e="",image:t,imageClassName:i="",pathPrefix:l,...n})=>t?.src||t?.icon?t.icon?u(te,{className:e,imageClassName:i,iconVersion:t?.iconVersion,name:t.icon,...n}):u(re,{className:e,imageClassName:i,image:t,pathPrefix:l}):null)),de=p((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),me="text-left",he=(e,t,i)=>u(J,{children:e.map(((e,t)=>(({icon:e,title:t,description:i},l)=>g("div",{className:w("flex flex-col","justify-between p-4 h-full border border-gray",i||t?"":"justify-center"),children:[t?u(de,{size:"text-h6",font:"font-normal",align:me,children:t}):null,e?u(ce,{image:e,height:"180",className:"w-auto"}):null,i?u(de,{size:"text-h6",font:"font-normal",align:me,children:i}):null]},String(l)))({...e},t)))}),ue=p((({bonusBenefits:e,cardTextAlign:t="center",className:i="",columnsCount:l="4",subtitle:n,title:r,...a})=>g(C,{className:w("p-default",i),defaultPadding:"p-default",...a,children:[u(R,{className:"mb-4 sm:mb-8",isPadding:!1,title:r,description:n,headlineVersion:"M"}),e?.length?he(e):null]}))),ge=(e,t)=>ge._impl(e,t);function pe(e={}){const{isRemote:t,basePath:i}=e,l=G(),{close:n}=((e="")=>({open:t=>x.fire("dialog",{type:"open",id:e,message:t}),close:()=>x.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!i?e.href:Q(l)(e.href,i),"aria-label":e.text,onClick:ge(r(e),e)});function r({href:e,target:i,onClick:r}){return a=>{r&&r(a),e&&!t&&W(e,i)&&(n(),a?.preventDefault(),l.push(e))}}}ge._impl=e=>e,ge.setup=e=>{ge._impl=e};const be={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},fe="bg-main-divider text-main-disabled",xe={primary:fe,secondary:fe,white:fe,link:"",transparent:"",gray:fe,"":""},ye="text-center font-sans select-none",ve={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Ne=p((e=>{const{text:t,aboveText:i,appendLeft:l,appendRight:n,version:r="primary"}=e;return g("div",{className:w(we(e),"flex gap-2"),children:[l?u("div",{className:ve[r],children:l}):null,ke(e)?g("div",{children:[i?u("div",{className:"text-xs-light text-left",children:i}):null,u("div",{className:"text-left "+(i?"text-s -mt-0.5":"text-l"),children:t})]}):null,n?u("div",{className:ve[r],children:n}):null]})})),we=e=>{const{version:t,aboveText:i,rounded:l}=e;if("link"===t)return"";const n=""+(i?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ke(e)?n:"h-12 w-12",l?"rounded-full":""].join(" ")},ke=({text:e,aboveText:t,appendLeft:i})=>Boolean(e||t||!i),Ce=({className:e,rounded:t,version:i})=>["inline-block",ye,i?xe[i]:"",t?"rounded-full":"rounded-md",e].join(" "),Te=({className:e,rounded:t,version:i})=>[ye,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",i?be[i]:"",t?"rounded-full":"rounded-md",e].join(" "),Se=p((({disabled:e,children:t,...i})=>{const l=pe()(i),n=t??u(Ne,{...l});return u(e?Ie:_e,{...l,children:n})})),_e=p((({className:e="",href:t,rel:i,target:l,ariaLabel:n,version:r,rounded:a,onClick:s,children:o})=>u("a",{className:Te({className:e,version:r,rounded:a}),href:t,rel:i,target:l,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),Ie=p((({className:e,ariaLabel:t,version:i,rounded:l,children:n})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ce({className:e,rounded:l,version:i}),children:n}))),Pe=(e,{className:t,buttonClassName:i,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-s",t),children:e.map(Re(i))}):null,Re=(e="")=>(t,i)=>{const{text:l,icon:n,iconRight:r,version:a,...s}=t||{},o="secondary"===a?"color":"white",c=n?.iconVersion?n?.iconVersion:o;return l||n?.icon?u(Se,{className:w("basis-full sm:basis-auto",e),appendLeft:$e({...n,iconVersion:c}),appendRight:$e({...r,iconVersion:c}),version:a,text:l,...s},i?String(i):""):null},$e=e=>e?.icon||e?.src?u(ce,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Ae=p((({buttons:e,className:t,...i})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...i,children:Pe(e)}))),Be=e=>e,je=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0),ze=p((({key:e,className:t="",inputClassName:i="",id:l,name:n,type:a="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:p,onBlur:b,pattern:f})=>{const x=r((e=>{h&&h(e.target?.value||"")}),[h]),y=m?"pr-8":"",v=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return g("div",{className:w("relative",t),children:[g("label",{children:[s?u("div",{className:"mb-2",children:u(de,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",y,v,i),id:l,name:n||l,placeholder:o,type:a,value:c,onInput:x,onFocus:p,onBlur:b,pattern:f},e)]}),m]})})),Le=p((e=>{const{onChange:t,min:i,max:n,defaultValue:a="0",fractionDigits:s=0,...o}=e,c=((e,{normalize:t,format:i})=>{const{value:n,onFocus:a,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=r((e=>{d(!0),a&&a(e)}),[]),h=r((()=>{d(!1),o&&o(t(n)),s&&s()}),[o,n]);return{value:c||!i?n:i(n),onFocus:m,onBlur:h}})(e,{normalize:(e=a)=>i&&n?String(((e,t,i)=>Math.max(t,Math.min(e,i)))(Number(Ve(e)),i,n)):Ve(e),format:je(s)}),d=r((e=>t&&t(Ve(e))),[t]);return u(ze,{onChange:d,...o,...c})})),Ve=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),De=p((e=>u(Le,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(de,{size:"text-xl",font:"font-light",children:"₽"})})}))),Me="amount",Oe={[Me]:1500},Fe=p((({className:e="",title:t="Укажите сумму перевода",label:i="Сумма перевода",placeholder:n="1500",button:a,...o})=>{const[{amount:c},{field:d}]=((e,t)=>{const[i,n]=l(e),[a,o]=l(!1),[c,d]=l({}),m=s({}),h=r(((e,t)=>{const{parse:l=Be,format:r=Be}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{n((i=>({...i,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:r(i[e]),isDirty:a||c[e],onChange:m.current[e]}}),[i,a,c]),u=r((()=>{n(e),o(!1),d({})}),[e]),g=r((e=>{e.preventDefault(),o(!0),t&&t(i)}),[t,i]);return[i,{isDirty:a||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:g}]})(Oe),m=c<=0,h=m?Ce({version:a?.version}):Te({className:"text-white",version:a?.version}),p=pe();return g(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-default",...o,children:[t?u(_,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,g("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(De,{name:Me,valid:!m,placeholder:n,label:i,...d(Me,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",h),disabled:m,...p(a),children:a.text}):null]})]})})),He=({blockClassName:e,block:t,render:i})=>i({blockClassName:e,block:t}),Ee=[];function Ue(e,t,{className:i,...l}={}){const{key:n,blockDecorator:r=He,blocksRegistry:a={},ancestors:s=Ee}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return r({blockClassName:w("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:s,render:({block:i,blockClassName:r})=>{const{content:a}=i;return c?u(c,{className:r,block:e,options:t,...a,...l},n):null}},n)}const Xe=[],Je=(e,{key:t,ancestors:i=Xe,slotName:l=null,renderProps:n=Ue,...r})=>(e||[]).map(((e,a)=>n(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...i||Xe,[r.parent,l]]:i})));function Ge({children:e,block:t,options:i,renderProps:l}){return e||(t&&i?Je(t.blocks,{...i,parent:t,renderProps:l}):null)}const Ye=p((({className:e,disabled:t,...i})=>u(Se,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...i,children:u(ce,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),We=p((e=>u(Ye,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Ke=p((e=>u(Ye,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),qe="absolute top-[calc(50%-24px)] z-40",Qe="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Ze=p((({scroll:e,arrowsPadded:t,isBlur:i,onScrollLeft:l,onScrollRight:n,hasEdgeBlocks:a,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,p=a?s>0:c,b=a?s<o-1:d,f=r((()=>{a?(c&&s!==o-1&&m(),l()):m()}),[m,l,a,c,s,o]),x=r((()=>{a?(d&&0!==s&&h(),n()):h()}),[h,n,a,c,s,o]);return g("div",{children:[et(i,e),p?u(We,{className:w(qe,t?"left-8":"left-0"),onClick:f}):null,b?u(Ke,{className:w(qe,t?"right-8":"right-0"),onClick:x}):null]})})),et=(e,t)=>e?g("div",{children:[t.canScrollLeft?u("div",{className:w(Qe,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Qe,"right-0 bg-opacity-to-white")}):null]}):null,tt=p((({className:e="",itemCount:t,visibleItemCount:i,isBlur:n=!0,isCyclic:a=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},p=t||h?.length,[b,f]=l(Math.floor((i||0)/2)),x=r((()=>f((e=>e+1))),[]),y=r((()=>f((e=>e-1))),[]),[v,N]=X({itemCount:p,isCyclic:a}),[k]=N.visibleIndicesRange,T=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(C,{className:e,defaultPadding:it(o),...m,children:g("div",{className:w(lt(d),"relative max-w-full"),children:[u(j,{containerRef:v,visibleItemCount:i,snapAlign:"snap-start",gap:16,onVisibleIndicesChange:N.handleVisibleIndicesChange,children:Ge({...m,renderProps:T?(e,t)=>Ue(e,t,{blocksLength:h?.length,activeIndex:b}):Ue})}),u(Ze,{scroll:N,isBlur:n,arrowsPadded:s,onScrollLeft:y,onScrollRight:x,hasEdgeBlocks:T,activeIndex:b,itemCount:p}),c?nt(v,k,p):null]})})}));tt.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const it=e=>e?"p-default":"",lt=e=>e?"flex justify-center":"",nt=(e,t,i)=>u(M,{containerRef:e,activeIndex:t,dotCount:i,listType:"horizontal-list"}),rt=p((({className:e="",href:t,target:i,isRemote:l=!1,children:n})=>{const r=pe({isRemote:l})({href:t,target:i});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:n})})),at=p((({className:e="",title:t,icon:i,list:l=[],href:n,target:r,...a})=>u(C,{className:w("border border-gray",e),defaultPadding:"p-lg sm:p-0",...a,children:g(rt,{className:"sm:flex sm:items-center",href:n,target:r,children:[u("div",{className:"min-w-[200px] flex justify-center",children:i?.src||i?.icon?u(ce,{image:i}):null}),g("div",{className:"sm:px-3 py-xl",children:[t?u(_,{className:"mb-2 sm:mb-3.5",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-2 sm:gap-3",children:l?.map(st)}):null]})]})}))),st=(e,t)=>g("div",{className:"flex flex-row-reverse justify-between gap-y-1 sm:flex-col",children:[e.title?u(de,{size:"text-l",font:"font-light",children:e.title}):null,e.description?u(I,{size:"text-l",font:"font-light",color:"",children:e.description}):null]},String(t)),ot={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},ct=p((({className:e,isDotted:t=!0,children:i,size:l="M"})=>g("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",ot[l])})}):null,u("span",{children:i})]}))),dt={S:"text-l-light",M:"text-h6",L:"text-h5"},mt={S:"ml-2",M:"ml-3",L:"ml-4"},ht=p((({className:e,hasIndent:t,isDotted:i,items:l,listItemSize:n="M"})=>l?.length?u("section",{className:w("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",dt[n],t?mt[n]:"",e),role:"list",children:l.map(((e,t)=>u(ct,{isDotted:i,size:n,children:e},String(t))))}):null)),ut={default:"w-24 h-14",small:"w-12 h-12"},gt=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",ut[t]),pt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],bt=p((({buttonSize:e="default",rounded:t=!1,icon:i,...l})=>{const{href:n,version:r,text:a=""}=l,{iconMapped:s,label:o}=pt.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{},c=ft(i)??s;return u(Se,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",gt(a,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:a,version:r,...l,children:c&&!a?u(ce,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),ft=e=>e?.src||e?.icon?e:void 0,xt=p((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(bt,{...e},String(t))))}))),yt=p((({className:e="",description:t,href:i,icon:l,items:n=[],socialMedia:r=[],target:a,title:s,align:o="text-left",...c})=>u(C,{className:w("relative box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-default",...c,children:g(rt,{href:i,target:a,children:[u(R,{className:"mb-2",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),n.length?u(ht,{className:"flex flex-col gap-2",items:n,listItemSize:"S"}):null,vt(l),r.length?u(xt,{className:"mt-5",media:r}):null]})}))),vt=e=>e?.src||e?.icon?u("div",{children:u(ce,{image:e})}):null,Nt=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:i=!1,renderFoldableSection:n,renderFoldButton:a})=>{const[s,o]=l(i),c=r((()=>{o((e=>!e))}),[]),d=n({isUnfolded:s,onToggle:c}),m=a?a({isUnfolded:s,onToggle:c}):null;return g("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),wt=p((({className:e="",isUnfolded:t,children:i})=>{const l=s(null);return n((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,i?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:i})})),kt=(e=!1)=>e?"p-default mt-6":"mt-6 p-default",Ct=(e,t)=>{const{title:i,description:l,buttons:n}=e;return g("div",{className:"py-5 border-b border-main-divider",children:[i?u("div",{className:"opacity-80",children:u(de,{size:"text-m",color:"text-secondary-text",children:i})}):null,l?u("div",{className:"mt-1",children:u(de,{size:"text-l",color:"text-primary-text",children:l})}):null,n?.length?u("div",{className:"text-primary-main",children:Pe(n)}):null]},String(t))},Tt=p((({className:e="",title:t,icon:i,isHighlighting:l=!1,button:n,cardCells:r=[],...a})=>{const s=r.map(Ct),o=s.slice(0,1),c=s.slice(1);return g(C,{className:w("relative border border-gray flex flex-col",e),defaultPadding:kt(l),...a,children:[l?It():null,St(i),t?u(_,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?u(Se,{className:"w-full mt-4",...n}):null,r.length?u(Nt,{renderFoldableSection:({isUnfolded:e})=>g("div",{children:[o,u(wt,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?_t:null}):null]})})),St=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(ce,{image:e}):null}),_t=({isUnfolded:e,onToggle:t})=>g("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(te,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),It=()=>g("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(te,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(I,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Pt=(e=!1)=>e?"text-white":"",Rt=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),$t=p((({icon:e,image:t,title:i,subtitle:l,isFillGradient:n})=>g("div",{role:"columnheader",children:[e?u(ce,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(ce,{image:t})}),i?u(_,{headingType:"h4",className:Pt(n),title:i}):null,l?u("div",{className:Rt(n),children:l}):null]}))),At=p((({cell:e,rowHeader:t,isFillGradient:i=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Bt(i,t))})}))),Bt=(e,t)=>({label:i,description:l},n)=>g("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),g("div",{className:"basis-1/2",children:[i?u("div",{className:"text-right "+(e?"text-white":""),children:i}):null,l?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l}):null]})]},String(n)),jt=p((({header:e,columnData:t,visibleRowLength:i=0,isFillGradient:l,showRow:n,onToggleColumn:r})=>{const a=t?.slice(0,n?t.length:i),s=l?"secondary":"primary";return g("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u($t,{...e,isFillGradient:l}),a?.length?a.map((({rowHeader:e,cell:t},i)=>u(At,{cell:t,rowHeader:e,isFillGradient:l},String(i)))):null,n&&e?.link?u(Se,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,zt({onToggleColumn:r,isFillGradient:l,showRow:n})]})})),zt=({onToggleColumn:e,isFillGradient:t,showRow:i})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:i?"Скрыть":"Показать описание"})}),Lt=p((e=>{const{className:t,title:i}=e;return g("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[i?u(_,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:i}):null,u("div",{role:"table",children:u(Vt,{...e})})]})})),Vt=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:i,visibleRowLength:n,orientation:a,...s})=>{const[o,c]=l(new Array(e.length).fill(!n)),d=r((e=>{const t=(t,i)=>i===e?!t:t;c((e=>e.map(t)))}),[]),m=r((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:l},r)=>{return u(jt,{visibleRowLength:n,showRow:o[r],header:l,columnData:(a=e,a?.map(((e,i)=>({cell:e,rowHeader:t?.[i]?.title})))),isFillGradient:0===r&&i,onToggleColumn:()=>d(r),...s},String(r));var a}));return"horizontal"===a?u(J,{onVisibleIndicesChange:m,children:h}):h})),Dt=e=>null!=e,Mt=new Map;function Ot(e,t,{fallback:i,cache:r}={}){const s=a((()=>Ft(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);n((()=>{!s.some(Dt)||(async()=>{try{const e=await(o?((e,t=Mt)=>i=>{const l=t.get(i);if(Dt(l))return l;const n=e(i);return Dt(n)?t.set(i,Promise.resolve(n)):t.delete(i),n})(t,r)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,r,s]);const u=i&&o&&i[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ft(e){return Array.isArray(e)?e:e instanceof Function?Ft(e()):[e]}async function Ht(e,t){const i=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await i.json()}const Et={};function Ut(e,t={}){const{data:i}=Ot(`/wcms-resources/${e}.json`,Ht,{fallback:t});return i||Et}const Xt=p((({className:e="",items:t})=>t?.length?u("ul",{className:w("flex flex-col p-0","",e),children:t.map(Jt)}):null)),Jt=(e,t)=>{const{text:i,...l}=e;return u("li",{className:"list-none mb-4 sm:mb-6 sm:last:mb-0",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...l,children:i||null})},`list_item_${String(t)}`)},Gt=p((({className:e="",label:t,icon:i,dataTheme:l="",disabled:n=!1,onClick:r})=>g("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",n?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:n,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),i?u(ce,{image:{icon:i,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Yt=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",Wt={primary:"bg-main-divider",secondary:"bg-white/30","secondary-light":"bg-secondary-light"},Kt=p((({iconBgVersion:e="primary",size:t,icon:i,...l})=>{const n=String(t?.width||24),r=String(t?.height||24);return i?u("div",{className:w("rounded-icon p-2.5",Wt[e]),children:u(te,{...l,width:n,height:r,name:i})}):null})),qt=(e,t)=>u(Kt,{...e,iconBgVersion:t}),Qt=p((({className:e="",label:t="Развернуть",labelIcon:i,labelIconBgVersion:l,isExpanded:n,isFoldButtonOnTop:r=!0,version:a="primary",...s})=>u(C,{className:w("w-full","",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(Nt,{isFoldButtonOnTop:r,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(wt,{className:w("gap-5 [&>*]:p-0","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:Ge(s)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>Zt({version:a,label:t,labelIcon:i,labelIconBgVersion:l,isUnfolded:e,onToggle:n})})})));Qt.childrenTypes={exclude:["RollupItem"]};const Zt=({version:e,label:t,labelIcon:i,labelIconBgVersion:l,isUnfolded:n,onToggle:r})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?ei({label:a,labelIcon:i,labelIconBgVersion:l,icon:Yt(n),onToggle:r}):u(Gt,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},ei=({label:e,labelIconBgVersion:t,icon:i,onToggle:l,labelIcon:n})=>g("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",n?.icon?"py-2":"py-5"),onClick:l,children:[g("div",{className:"flex items-center group-hover/button:text-primary-main",children:[qt(n,t),e?u(de,{size:"text-l",font:"font-normal",children:e}):null]}),i?u(te,{name:i,iconVersion:"normal",width:"24",height:"24"}):null]}),ti=p((({className:e="",items:t,hasButton:i})=>g("div",{className:e,children:[t?.length?t.map(ii):null,i?u(Se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ii=(e,t)=>g("div",{className:"mb-6",children:[u("div",{className:"mb-4",children:u(de,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(li)})]},String(t)),li=(e,t)=>g("div",{className:"mb-4",children:[u("div",{children:ni(e.type,e.text)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:e.description})]},String(t)),ni=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ri(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},ri=e=>e.replaceAll(/\D/g,""),ai=p((({className:e="",index:t,text:i,...l})=>{const n=pe(),{href:r,target:a,onClick:s}=n(l);return u("a",{className:w("",e),href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),si=p((({title:e,links:t,className:i=""})=>g("div",{className:i,children:[u(de,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(ai,{index:t,...e},String(t))))}):null]}))),oi=p((({className:e="",index:t,...i})=>{const l=pe({isRemote:!0}),{href:n,target:r,text:a,onClick:s}=l(i);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:n,target:r,onClick:s,children:a||`Документ ${t}`})})),ci=p((({className:e="",links:t})=>g("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(de,{size:"text-s",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(oi,{index:t,...e},String(t))))}):null]}))),di=p((({className:e="",...t})=>{const i=t.options?.page?.fallback,l=Ut(d.SITEMAP||"sitemap",i),{relatedEnterprises:n,contacts:r,socialMedia:a,horizontalNavigationTitle:s}=Ut(d.FOOTER||"footer",i);return g(C,{tag:"footer",className:e,defaultPadding:"px-4 py-6",...t,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:l.topItems?.map(((e,t)=>u(Qt,{label:e?.text,labelIcon:e?.icon,children:u(Xt,{items:e.items,className:"my-3"})},String(t))))}),u(ti,{className:"overflow-hidden",items:r}),u(xt,{className:"mb-4",media:a}),u(Se,{className:"w-full mb-4",text:"Google Play",version:"secondary",href:"/",target:"_blank"}),u(si,{className:"pt-4 pb-7 border-y border-main-divider",title:s,links:n}),u(ci,{})]})})),mi={"bg-white":"color",transparent:"white"},hi={"bg-white":"text-primary-main",transparent:"text-white"},ui=(e,t,i)=>u(ce,t?.src?{image:t,className:hi[e],width:i?.width,height:i?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:mi[e]},className:hi[e],width:i?.width,height:i?.height}),gi={"bg-white":"text-primary-text",transparent:"text-white"},pi=(e,t,i)=>u("span",{className:`${gi[t]} ml-2.5 font-medium ${i||""}`,children:e||"Россельхозбанк"}),bi=p((({bgColor:e="bg-white",children:t,className:i="",href:l,logo:n,showTitle:r=!0,targetBlank:a})=>g("a",{className:`inline-flex items-center font-sans no-underline ${i}`,href:l||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[ui(e,n?.image,{width:"34",height:"34"}),r?pi(t||n?.title,e,"text-s"):null]}))),fi={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},xi=p((({bgColor:e,logo:t,internetBankUrl:i,version:l,mobileHeaderType:n,mobileTitle:r,mobileBackwardButtonTitle:a})=>{const s="none"===n,o="withTitle"===n;return g("div",{className:"flex items-center justify-between w-full",children:[s||o?u(bi,{bgColor:e,logo:t,showTitle:s}):null,o?r:null,"backwardButton"===n?g(Se,{className:"flex items-center text-l",children:[u(ce,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),a]}):null,i?u(Se,{href:i,ariaLabel:"Войти",target:"_blank",className:w("p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover",fi["transparent"===l?"transparent":"default"]),children:"Войти"}):null]})})),yi={"bg-white":"primary",transparent:"transparent"},vi=p((({bgColor:e="bg-white",version:t=yi[e],mobileHeaderType:i="none",...l})=>{const n=l.options?.page?.fallback,{logo:r,internetBankUrl:a}=Ut(d.SITEMAP||"sitemap",n);return u(C,{tag:"header",defaultPadding:"",version:t,...l,children:u("div",{className:"container px-4 py-1 box-border",children:u(xi,{bgColor:e,logo:r,internetBankUrl:a,version:t,mobileHeaderType:i,...l})})})})),Ni=p((e=>{const{className:t,image:i,...l}=e;return u(C,{className:t,defaultPadding:"p-0",...l,children:u(ce,{image:i})})})),wi=p((({doc:e,icon:t})=>{const{text:i,fileSize:l,...n}=e;return g("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...n,children:[t,i?g(de,{size:"text-l",font:"font-light",children:[i,u(de,{color:"text-secondary-text",children:n?.href&&ki(Ci(n.href),l)})]}):null]})})),ki=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ci=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ti=p((({className:e="",title:t,description:i,icon:l={icon:"DocDownloadIcon",iconVersion:"black"},documents:n,align:r,...a})=>g(C,{className:e,defaultPadding:"p-default",...a,children:[u(R,{isPadding:!1,title:t,description:i,align:r,headlineVersion:"M"}),n?.length?u("div",{className:"mt-5 flex flex-col gap-6",role:"list",children:n.map(((e,t)=>u("div",{role:"listitem",children:u(wi,{doc:e,icon:l?u(ce,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:l,width:"24",height:"24"}):null})},String(t))))}):null]}))),Si={left:"text-left",center:"text-center",right:"text-right"},_i={start:"self-start",center:"self-center",end:"self-end"},Ii=p((({className:e,defaultPadding:t,padding:i,title:l="",insetTitle:n="",buttons:r,leftImage:a,rightImage:s,imageAlign:o,backImage:c,children:d})=>g("div",{className:w("relative flex flex-col gap-lg font-sans overflow-hidden",i||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,l?u("div",{className:"relative",children:l}):null,g("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-lg",children:[Pi(a,{imageAlign:o}),g("div",{className:w("flex flex-col gap-lg max-w-[600px] xl:max-w-[728px]",a?"":"grow"),children:[n,u("div",{className:"grow",children:d}),r]}),Pi(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),Pi=(e,{className:t,imageAlign:i})=>e?u("div",{className:w("flex-shrink-0",i&&_i[i],t),children:e}):null,Ri=e=>e?u("div",{className:"mb-5 pt-0.5 sm:mb-0 sm:pt-0",children:u(de,{size:"text-xl","font-weight":"light",children:e})}):null,$i=e=>e?.length?u(ht,{items:e,className:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ai=p((({className:e,padding:t,alignTitle:i="left",buttons:l=[],description:n,headingType:r="h4",image:a,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-3.5 min-w-[120px]":"min-w-[92px]";return u(C,{className:w("min-h-80",e),defaultPadding:"p-0",version:d,...m,children:g(Ii,{className:"h-full",padding:t,defaultPadding:"p-default",title:c?u(_,{headingType:r,title:c,className:w("whitespace-pre-wrap",Si[i])}):null,backImage:a?.src?u(ce,{image:a}):null,buttons:Pe(l,{isVertical:l.length>3}),children:[Ri(n),g("div",{className:"flex flex-1 gap-s items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(ce,{className:"w-fit",image:o})}):null,$i(s)]})]})})})),Bi=(e=[])=>e?.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e)/e.length:0,ji=p((({className:e,icon:t,label:i,description:l,benefitsVersion:n="normal"})=>g("div",{className:w("flex gap-s",l?"items-start":"items-center",e),children:[t?u("div",{className:zi(n),children:u(ce,{className:"w-6 h-6",image:{...t,iconVersion:t.iconVersion||n}})}):null,g("div",{className:"gap-0.5",children:[i?u(de,{color:"text-primary-text group-data-secondary:text-white",size:"text-l",children:i}):null,l?u(I,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:l}):null]})]})));function zi(e){return w("w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon","normal"===e?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black")}const Li=p((e=>{const{__html:t="",richVersion:i=""}=e;return u("div",{className:w(i,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Vi=e=>({type:t,...i},l)=>"rte"===t&&"__html"in i?u(Li,{__html:i.__html}):u(ji,{benefitsVersion:e,...i},String(l)),Di=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),Mi=e=>{return((t=e.map(Di))?.length?Math.sqrt(Math.abs(Bi(t.map((e=>e**2)))-Bi(t)**2)):0)>16;var t},Oi=p((({className:e,benefitsVersion:t="normal",benefits:i})=>i?.length?u("div",{className:w("flex gap-x-m gap-y-s",Mi(i)?"flex-col":"flex-wrap",e),children:i.map(Vi(t))}):null)),Fi=p((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(Hi)}):null)),Hi=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(de,{size:"text-m-light",children:e})},String(t)),Ei=p((({className:e,title:t,description:i,headlineVersion:l="L",align:n="text-left",isInsetTitle:r=!0,benefits:a,benefitsVersion:s,__html:o,items:c,isDotted:d=!0,listItemSize:m,tags:h,buttons:p,image:b,imageOptions:{imageAlign:f,directionRight:x=!0}={},children:y})=>{const v=b?.src?u(ce,{image:b}):null,N=u(R,{title:t,description:i,headlineVersion:l,align:n,isPadding:!1});return u(Ii,{className:e,...r?{insetTitle:N}:{title:N},...x?{rightImage:v}:{leftImage:v},imageAlign:f,buttons:Pe(p),children:g("div",{className:"flex flex-col gap-m",children:[u(Oi,{benefitsVersion:s,benefits:a}),o?u(Li,{__html:o}):null,c?.length?u(ht,{items:c,isDotted:d,listItemSize:m}):null,y,h?.length?u(Fi,{tags:h}):null]})})})),Ui=(e,t)=>e||t?g("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-m",children:[Number(e)>0?Xi("Страховая сумма:",e):null,Number(t)>0?Xi("Ежемесячный лимит:",t):null]}):null,Xi=(e,t=0)=>g("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(de,{font:"font-light",size:"text-l",children:e}),g(de,{size:"text-h6",color:"text-primary-text",children:[je(2)(t)," ₽"]})]}),Ji=p((({className:e,headlineVersion:t="M",align:i="text-center",sum:l,monthLimit:n,...r})=>u(C,{className:e,defaultPadding:"p-default",...r,children:u(Ei,{className:"h-full",headlineVersion:t,align:i,isInsetTitle:!1,...r,imageOptions:{directionRight:!1,imageAlign:"center",...r.imageOptions},children:Ui(Number(l),Number(n))})}))),Gi=p((({className:e,title:t,description:i="Блок в разработке...",...l})=>g(C,{className:w("box-border",e),...l,children:[u(R,{className:"max-w-[600px]",title:t,description:i,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-m min-w-[80%]",children:Yi()})]}))),Yi=(e=3)=>Ki(100,e).map((e=>Math.floor(e))).map(Wi),Wi=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ki=(e,t)=>[e].concat(t>0?Ki(e/1.618,t-1):[]);function qi({text:e,href:t,target:i,icon:l},n){const r="primary"===n?"white":"black",a={text:e,href:t,target:i,ariaLabel:e};return g("div",{className:"flex items-center gap-3",children:[u(Se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:n,rounded:!0,...a,children:u(ce,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||r}})}),u(Se,{version:"link",...a})]})}const Qi=p((({className:e,backwardButton:t,...i})=>g(C,{className:w("overflow-hidden flex flex-col gap-lg box-border",e),defaultPadding:"p-default",...i,children:[t?.text?qi(t,i.version&&"primary"!==i.version?"white":"primary"):null,u(Ei,{className:"grow h-full",...i})]}))),Zi=p((({className:e,slides:t=[],...i})=>u(C,{className:w("overflow-hidden relative",e),defaultPadding:"p-m",...i,children:u(J,{gap:0,padding:0,children:t.map((e=>e.productBlock)).map(((e,t)=>u("div",{className:"box-border h-full",role:"listitem",children:u(Ei,{className:"px-5 h-full",headlineVersion:"L",...e,...i})},String(t))))})}))),el=p((e=>{const{__html:t,richVersion:i,...l}=e;return u(C,{defaultPadding:"p-0",...l,children:u(Li,{__html:t,richVersion:i})})}));function tl(e){throw new Error(e)}const il={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},ll={normal:"min-h-[70px]",small:"min-h-12"},nl={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},rl=p((({className:e="",title:t,description:i,showLines:l=!0,steps:n,size:r="normal",version:a="primary",...s})=>g(C,{className:`box-border flex flex-col ${e}`,defaultPadding:"px-4 py-6",version:a,...s,children:[t?u(_,{headingType:"h3",className:"text-center",title:t}):null,i?u("p",{className:`text-m-light text-center ${nl.description} ${t?"mt-2":""}`,children:i}):null,n?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:n.map(al(r,a,l))})}):null]}))),al=(e,t,i)=>(l,n,r)=>{const{type:a}=l;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return sl(e,t,i)(l,n,r);case"rte":return u(Li,{__html:l.__html});default:tl(l)}},sl=(e,t,i)=>(l,n,r)=>{const a=r.length-1===n,s="normal"===e?"ml-[34px]":"ml-6";return u("div",{children:g("div",{className:"flex flex-row text-center relative",children:[g("div",{className:"overflow-hidden flex-shrink-0",children:[ol(e,t)(l,n),a?null:u("div",{className:`min-h-8 h-full w-0.5 ${i?nl.iconConnector:""} ${s}`})]}),g("div",{className:`flex flex-col justify-center h-fit ${ll[e]}`,children:[l.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:l.label}):null,l.description?u("div",{className:`text-s ${nl.description} text-left`,children:l.description}):null]})]})},String(n))},ol=(e,t)=>(i,l)=>{const n="normal"===e?"38":"27",r="secondary"===t?"white":"color";return u("div",{className:`${il[e]} ${nl.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${"normal"===e?"text-m-title":"text-m-title-xs"}`,children:(a=i?.icon,Boolean(a?.icon||a?.src)?u(ce,{image:{...i.icon,iconVersion:i.icon?.iconVersion||r},width:n,height:n}):u("span",{children:l+1}))})});var a},cl="h-12 flex-1 flex items-center justify-center cursor-pointer",dl="font-sans text-m text-center",ml="text-secondary-text sm:group-hover/btn:text-primary-main",hl={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${cl} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${cl} group/btn bg-white`},centered:{active:`px-4 rounded-md ${cl} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${cl} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${cl} bg-primary-main text-white whitespace-nowrap`,default:`${cl} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${dl} flex items-center h-full border-0 border-b-2`,default:`${dl} ${ml}`},centered:{active:`${dl} text-white`,default:`${dl} ${ml}`},wideScreen:{active:`${dl} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${dl} ${ml} px-2.5 bg-white`}}},ul=(e,t,i)=>{const l=t?"active":"default";return hl[e][i||"wideScreen"][l]},gl=p((e=>{const{tab:t,currentTab:i,onClick:l,tabsMode:n}=e,r="link"===i?.type&&i.href===t.href,a=pe()(t);return u("div",{className:ul("block",r,n),role:"tab","aria-selected":r,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",ul("text",r,n)),target:t.target,href:a.href,onClick:e=>{a.onClick(e),l(t)},children:u("span",{children:t.text})})})})),pl=(e,t,i)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center",i&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),bl=({page:e,showCounter:t,...i})=>(l,n)=>{const r=l.type;if("group"!==r&&"link"!==r)return null;switch(r){case"group":return(({page:e,currentTab:t,showCounter:i,onClick:l,tabsMode:n})=>(r,a)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:ul("block",s,n),role:"tab","aria-selected":s,onClick:()=>l(r),children:g("div",{className:w("flex flex-1 items-center justify-center h-full",ul("text",s,n)),children:[u("span",{children:r.title}),i&&o?pl(n,o,s):null]})},`group-${String(a)}`)})({page:e,showCounter:t,...i})(l,n);case"link":return u(gl,{tab:l,...i},String(n));default:tl(r)}return null},fl=p((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(bl({...t}))}))),xl=p((e=>{const{tabs:t,...i}=e,[l,n]=X({itemCount:t?.length||0,isCyclic:!1});return g("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(j,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:n.handleVisibleIndicesChange,children:t?.map(bl({...i}))})}),n.canScrollLeft?u(We,{className:"absolute z-40 top-0 left-6",onClick:n.scrollLeft}):null,n.canScrollRight?u(Ke,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:n.scrollRight}):null]})})),yl=p((e=>{const{className:t="",isSticky:i,tabs:a,...s}=e,[o,c]=l(a?a[0]:void 0);n((()=>{a&&a[0]&&Nl(a[0])}),[]),n((()=>{"group"===o?.type&&x.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=r((e=>{Nl(e),c(e)}),[]);return u(C,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",i?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:vl({tabs:a,onClick:d,currentTab:o,...s})})})),vl=({tabsMode:e,tabs:t,...i})=>{switch(e){case"wideScreen":return t?.map(bl({tabsMode:e,...i}));case"centered":return u(fl,{tabs:t,tabsMode:e,...i});case"scrollable":return u(xl,{tabs:t,tabsMode:e,...i})}return null},Nl=e=>{"group"===e.type&&x.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&x.fire("tab",{type:e.type,label:e.href})},wl={Buttons:({buttons:e})=>Pe(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(ce,{image:e,className:"m-0",imageClassName:"m-0"}):null,List:({isDotted:e,...t})=>u(ht,{className:"flex flex-col justify-between items-start text-m pl-2 text-base",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>g("div",{children:[e?u("div",{className:"mb-2",children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},kl=p((({title:e,icon:t})=>g("div",{className:"mb-2",children:[e?u(de,{size:"text-l-light",children:e}):null,t?u(ce,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),Cl=p((({tile:e,...t})=>g("div",{className:"h-full",children:[u(kl,{title:e?.header?.title}),e?.data?.length?e.data.map(((e,i)=>u("div",{className:"mb-2",children:Tl(e,t)},String(i)))):null]})));function Tl(e,t){if(!e||!e.tableCellType||!(e.tableCellType in wl))return null;const i=wl[e.tableCellType];return u(i,{displayTable:()=>null,isVisible:!0,...e,...t})}const Sl=p((({tiles:e,...t})=>e?.length?u(J,{...t,padding:void 0,children:e.map(((e,i)=>u(Cl,{tile:e,...t},String(i))))}):null)),_l=p((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,i)=>u(Cl,{tile:e,...t},String(i))))}):null)),Il=p((({className:e,title:t,description:i,tariffsColumns:l,rowHeaders:n,orientation:r="vertical",...a})=>{const s=Pl(l),o=Rl(n,s);return g("section",{className:`p-default bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[u(R,{title:t,description:i,headlineVersion:"M",align:"text-left",isPadding:!1,className:"mb-8"}),u("vertical"===r?_l:Sl,{tiles:o,...a})]})})),Pl=e=>e?.[0]?.data?e[0].data:[],Rl=(e,t)=>e?.map(((e,i)=>({header:e,data:t?.[i]||[{}]}))),$l=p((({className:e="",title:t,description:i,iconVersion:l,image:n,__html:r,items:a=[],...s})=>g(C,{className:w("flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:Al()}):null,"big"===l?Bl(n):null,g("div",{className:"flex flex-col w-fit gap-3",children:[t?u(de,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,i?jl(i):null,a?.length?zl(a,!0):null,r?u(Li,{__html:r}):null]})]}))),Al=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Bl=e=>e?.src?u(ce,{className:"h-fit",image:e}):null,jl=e=>u(I,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),zl=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(de,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Ll={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Vl={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},Dl=p((({className:e="",gap:t="",align:i="stretch",isPadding:l=!1,isInnerPadding:n=!0,version:r="transparent",isTheme:a=!1,...s})=>{const o=n?"":"!p-0";return u(C,{className:w("relative","flex flex-col [&>*]:max-w-full",Ll[t],i&&Vl[i],e),defaultPadding:l?"p-default":"",version:r,isTheme:a,...s,children:Ge({...s,renderProps:(e,t)=>Ue(e,t,{className:o})})})}));Dl.childrenTypes=[];const Ml=p((({className:e="",title:t,benefitList:i,...l})=>g(C,{className:e,defaultPadding:"p-default",...l,children:[t?u(_,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,i?.length?u("div",{className:"sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8",role:"list",children:i.map(Ol)}):null]}))),Ol=(e,t)=>g("div",{className:"flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14",role:"listitem",children:[e?.icon?.icon?u(ce,{className:w("p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black","w-56 h-56 min-w-56"),image:e.icon}):null,e?.icon?.src?u(ce,{className:"mr-5 shrink-0",image:e.icon}):null,e?.label?g("div",{className:"sm:h-full",children:[u(_,{headingType:"h6",children:e.label}),Fl(e.description)]}):null]},String(t)),Fl=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?El(e):Hl(e)}):null},Hl=e=>e?.name||null,El=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Ul={ButtonsBlock:Ae,BonusBenefitsBlock:ue,CardTransfer:Fe,Carousel:tt,CarouselTariffsCard:Tt,ComparisonTable:Lt,Footer:di,Header:vi,Headline:R,ImgBlock:Ni,LinkDocs:Ti,MobileAppTile:Ai,PictureText:Ji,Placeholder:Gi,ProductBlock:Qi,StepsBlock:rl,Tabs:yl,TariffsTable:Il,TextBlock:$l,RichTextBlock:el,RollupItem:Qt,VerticalLayout:Dl,CarouselRecommendationCard:yt,CarouselProgramsCard:at,ProductGallery:Zi,BenefitsBlock:Ml};function Xl(e=!1){const[t,i]=l(e),n=r((()=>i(!0)),[]),a=r((()=>i(!1)),[]),s=r((()=>i((e=>!e))),[]);return[t,{setValue:i,setTrue:n,setFalse:a,toggle:s}]}const Jl=["Header","Footer"],Gl=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Yl(e=globalThis){const t=s(new Map);n((()=>N.subscribe("intersection",(({block:e,intersection:i})=>{t.current&&t.current.set(e,i)}))),[]),n((()=>{const i=((e,t=600)=>{let i;const l=(...n)=>{l.dispose(),i=setTimeout((()=>{e(...n)}),t)};return l.dispose=()=>{i&&clearTimeout(i)},l})((()=>{!function(e){const t=`#${i=e?.anchor,i?.replace("#","")||""}`;var i;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Jl.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[i]=t.length>0?H(Gl)(t):[];return i}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",i),()=>{i.dispose(),e.removeEventListener("scroll",i)}}),[e])}const Wl=p((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(ce,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Kl({onOpen:e,onClose:t}={}){n((()=>x.subscribe("dialog",(i=>{switch(i.type){case"open":e&&e(i);break;case"close":t&&t();break;default:tl(i)}}))),[e,t])}const ql="cookieClose",Ql=p((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:i,onClose:n}=function(e,t=!1){const[i,{setTrue:n,setFalse:a}]=Xl(t),[o,c]=l({id:e}),d=s(i);d.current||=i,Kl({onOpen:r((t=>{t.id===e?(c(t),n()):a()}),[e]),onClose:a});const m=r((()=>{a(),x.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:i,wasOpened:d.current,onClose:m}}("cookie",!globalThis.localStorage?.getItem(ql)),a=r((()=>{globalThis.localStorage?.setItem(ql,"true"),n&&n()}),[n]);return i?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:g("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:g(I,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(rt,{isRemote:!0,className:w(Zl(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(rt,{isRemote:!0,className:w(Zl(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(Wl,{className:"bg-main-gray rounded-md",onClick:a})})]})}):null})),Zl=e=>["inline mx-1",e?"text-green-dark":""],en=h();const tn=p((({className:e,onClick:t,ariaLabel:i})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":i,children:ln()}))),ln=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return g("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("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"}),u("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=p((({className:e=""})=>{const t=function(e){const[t,i]=l(0);return n((()=>{(async()=>{const[t]=await en.getLikeCount(e);i(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{i(await en.like(e))}),[e]),dislike:r((async()=>{i(await en.dislike(e))}),[e])}}(G().pathname);return g("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(tn,{onClick:ge(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(tn,{onClick:ge(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),rn=p((e=>{const{className:t="",blocksRegistry:i,blockDecorator:l,data:n={}}=e,{style:r,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=n,d={key:"",page:n,blocksRegistry:i,blockDecorator:l,parent:n};Yl();const[m,{setTrue:h,setFalse:p}]=Xl();return Kl({onOpen:h,onClose:p}),g("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Je(s?.header,{...d,slotName:"header"})}):null,g("div",{className:"container grid grid-cols-12 gap-1",children:[Je(a,d),s?.footer?Je(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(nn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Ql,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));rn.childrenTypes=[],rn.slots=()=>["header","footer"];e.Blocks=Ul,e.ContentPage=rn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),i=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await i.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=ge,e.joinList=e=>t=>t.reduce(((t,i,l)=>t.length?t.concat({...e,key:`sep-${l}`},i):[i]),[]),e.packageVersion="0.12.5",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=q,e.useRouter=G,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
1
|
import type { BenefitsBlockContent } from './BenefitsBlockContent';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const BenefitsBlock: import("@redneckz/uni-jsx").UNIComponent<BenefitsBlockProps, any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bonusBenefitAlign = "text-left";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bonusBenefitStyles = "justify-between p-4 h-full border border-gray";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AlignType } from '../../model/AlignType';
|
|
3
|
+
import { BonusBenefit, ColumnsCount } from './BonusBenefitsBlockContent';
|
|
4
|
+
export declare const renderBonusBenefits: (bonusBenefits: BonusBenefit[], columnsCount: ColumnsCount, cardTextAlign: AlignType) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ProductColorVersion } from '../../model/ProductColorVersion';
|
|
2
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
export declare const CATALOG_CARD: {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
price: number;
|
|
7
|
+
colors: ProductColorVersion[];
|
|
8
|
+
button: ButtonWithIconProps;
|
|
9
|
+
};
|
|
@@ -6,7 +6,6 @@ export declare const SCROLLABLE_ACTIVE_LINK_CLASSES = "bg-white text-primary-mai
|
|
|
6
6
|
export declare const WIDESCREEN_ACTIVE_LINK_CLASSES = "bg-primary-main text-white";
|
|
7
7
|
export declare const TEXT_CLASSES = "font-sans text-m text-center";
|
|
8
8
|
export declare const ACTIVE_TEXT_CLASSES = "text-white";
|
|
9
|
-
export declare const INACTIVE_TEXT_CLASSES = "text-secondary-text group-hover/btn:text-primary-main";
|
|
9
|
+
export declare const INACTIVE_TEXT_CLASSES = "text-secondary-text sm:group-hover/btn:text-primary-main";
|
|
10
10
|
export declare const WHITE_ACTIVE_TEXT_CLASSES = "text-primary-main";
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const getLinkTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => any;
|
|
11
|
+
export declare const getTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
1
|
import type { BenefitsBlockContent } from './BenefitsBlockContent';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const BenefitsBlock: import("@redneckz/uni-jsx").UNIComponent<BenefitsBlockProps, any, any>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.BenefitsBlock = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const benefitImageStyles_1 = require("./benefitImageStyles");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
8
9
|
const style_1 = require("../../utils/style");
|
|
9
|
-
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title, benefitList, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className:
|
|
10
|
-
const
|
|
11
|
-
const description = benefit.description;
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black", image: benefit.icon })) : null, benefit?.icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: benefit.icon }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "ml-5 h-full", children: [benefit?.label ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", children: benefit.label }) : null, renderDescription(description)] })] }, String(i)));
|
|
13
|
-
};
|
|
10
|
+
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title, benefitList, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
11
|
+
const renderBenefit = (benefit, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14", role: "listitem", children: [benefit?.icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black', benefitImageStyles_1.benefitImageStyles), image: benefit.icon })) : null, benefit?.icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-5 shrink-0", image: benefit.icon }) : null, benefit?.label ? ((0, jsx_runtime_1.jsxs)("div", { className: "sm:h-full", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", children: benefit.label }), renderDescription(benefit.description)] })) : null] }, String(i)));
|
|
14
12
|
const renderDescription = (description) => {
|
|
15
13
|
const benefitType = description?.benefitType || null;
|
|
16
14
|
return description && benefitType ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAOA,6DAA0D;AAC1D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,+CAAwC;AACxC,6CAA0C;AAK7B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACnD,wBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,WAAW,KAAK,IAAI,aACpE,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACzF,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,gCACE,SAAS,EAAC,mFAAmF,EAC7F,IAAI,EAAC,MAAM,YAEV,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,GAC3B,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,OAA8B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,iCAEE,SAAS,EAAC,uDAAuD,EACjE,IAAI,EAAC,UAAU,aAEd,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACrB,uBAAC,SAAG,IACF,SAAS,EAAE,IAAA,aAAK,EACd,sHAAsH,EACtH,uCAAkB,CACnB,EACD,KAAK,EAAE,OAAO,CAAC,IAAI,GACnB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,OAAO,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAClF,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAChB,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,YAAE,OAAO,CAAC,KAAK,GAAW,EAClD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,IACnC,CACP,CAAC,CAAC,CAAC,IAAI,KAnBH,MAAM,CAAC,CAAC,CAAC,CAoBV,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAAuC,EAAE,EAAE;IACpE,MAAM,WAAW,GAAG,WAAW,EAAE,WAAW,IAAI,IAAI,CAAC;IAErD,OAAO,WAAW,IAAI,WAAW,CAAC,CAAC,CAAC,CAClC,gCAAK,SAAS,EAAC,0EAA0E,YACtF,WAAW,KAAK,MAAM;YACrB,CAAC,CAAC,iBAAiB,CAAC,WAA6B,CAAC;YAClD,CAAC,CAAC,iBAAiB,CAAC,WAA6B,CAAC,GAChD,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,EAAE,CAAC,WAAW,EAAE,IAAI,IAAI,IAAI,CAAC;AAEtF,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,EAAE;IACzD,MAAM,aAAa,GAAG,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnE,OAAO,WAAW,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1D,+BAAI,SAAS,EAAE,aAAa,YACzB,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,yCAAkC,CAAC,IAA1B,mBAAmB,CAAC,EAAE,CAAU,CAC1C,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benefitImageStyles.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.tsx"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.Blocks = void 0;
|
|
3
|
+
const BonusBenefitsBlock_1 = require("./BonusBenefitsBlock/BonusBenefitsBlock");
|
|
3
4
|
const ButtonsBlock_1 = require("./ButtonsBlock/ButtonsBlock");
|
|
4
5
|
const CardTransfer_1 = require("./CardTransfer/CardTransfer");
|
|
5
6
|
const Carousel_1 = require("./Carousel/Carousel");
|
|
@@ -20,11 +21,14 @@ const ProductGallery_1 = require("./ProductGallery/ProductGallery");
|
|
|
20
21
|
const RichTextBlock_1 = require("./RichTextBlock/RichTextBlock");
|
|
21
22
|
const RollupItem_1 = require("./RollupItem/RollupItem");
|
|
22
23
|
const StepsBlock_1 = require("./StepsBlock/StepsBlock");
|
|
24
|
+
const Tabs_1 = require("./Tabs/Tabs");
|
|
23
25
|
const TariffsTable_1 = require("./TariffsTable/TariffsTable");
|
|
24
26
|
const TextBlock_1 = require("./TextBlock/TextBlock");
|
|
25
27
|
const VerticalLayout_1 = require("./VerticalLayout/VerticalLayout");
|
|
28
|
+
const BenefitsBlock_1 = require("./BenefitsBlock/BenefitsBlock");
|
|
26
29
|
exports.Blocks = {
|
|
27
30
|
ButtonsBlock: ButtonsBlock_1.ButtonsBlock,
|
|
31
|
+
BonusBenefitsBlock: BonusBenefitsBlock_1.BonusBenefitsBlock,
|
|
28
32
|
CardTransfer: CardTransfer_1.CardTransfer,
|
|
29
33
|
Carousel: Carousel_1.Carousel,
|
|
30
34
|
CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
|
|
@@ -39,6 +43,7 @@ exports.Blocks = {
|
|
|
39
43
|
Placeholder: Placeholder_1.Placeholder,
|
|
40
44
|
ProductBlock: ProductBlock_1.ProductBlock,
|
|
41
45
|
StepsBlock: StepsBlock_1.StepsBlock,
|
|
46
|
+
Tabs: Tabs_1.Tabs,
|
|
42
47
|
TariffsTable: TariffsTable_1.TariffsTable,
|
|
43
48
|
TextBlock: TextBlock_1.TextBlock,
|
|
44
49
|
RichTextBlock: RichTextBlock_1.RichTextBlock,
|
|
@@ -47,5 +52,6 @@ exports.Blocks = {
|
|
|
47
52
|
CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
|
|
48
53
|
CarouselProgramsCard: CarouselProgramsCard_1.CarouselProgramsCard,
|
|
49
54
|
ProductGallery: ProductGallery_1.ProductGallery,
|
|
55
|
+
BenefitsBlock: BenefitsBlock_1.BenefitsBlock,
|
|
50
56
|
};
|
|
51
57
|
//# sourceMappingURL=Blocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,8DAA2D;AAC3D,8DAA2D;AAC3D,kDAA+C;AAC/C,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF,uEAAoE;AACpE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,oEAAiE;
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,gFAA6E;AAC7E,8DAA2D;AAC3D,8DAA2D;AAC3D,kDAA+C;AAC/C,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF,uEAAoE;AACpE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,oEAAiE;AACjE,iEAA8D;AAEjD,QAAA,MAAM,GAAmB;IACpC,YAAY,EAAZ,2BAAY;IACZ,kBAAkB,EAAlB,uCAAkB;IAClB,YAAY,EAAZ,2BAAY;IACZ,QAAQ,EAAR,mBAAQ;IACR,mBAAmB,EAAnB,yCAAmB;IACnB,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,IAAI,EAAJ,WAAI;IACJ,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,0BAA0B,EAA1B,uDAA0B;IAC1B,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;IACd,aAAa,EAAb,6BAAa;CACd,CAAC"}
|
|
@@ -2,25 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.BonusBenefitsBlock = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const AlignText_1 = require("../../model/AlignText");
|
|
6
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
6
|
const style_1 = require("../../utils/style");
|
|
9
7
|
const Headline_1 = require("../Headline/Headline");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
const getElementsColsValue = (colValue) => {
|
|
15
|
-
switch (colValue) {
|
|
16
|
-
case '3':
|
|
17
|
-
return 'grid-cols-3';
|
|
18
|
-
case '4':
|
|
19
|
-
return 'grid-cols-4';
|
|
20
|
-
case '5':
|
|
21
|
-
return 'grid-cols-5';
|
|
22
|
-
default:
|
|
23
|
-
return 'grid-cols-5';
|
|
24
|
-
}
|
|
25
|
-
};
|
|
8
|
+
const renderBonusBenefits_1 = require("./renderBonusBenefits");
|
|
9
|
+
exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('p-default', className), defaultPadding: "p-default", ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "mb-4 sm:mb-8", isPadding: false, title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
10
|
+
? (0, renderBonusBenefits_1.renderBonusBenefits)(bonusBenefits, columnsCount, cardTextAlign)
|
|
11
|
+
: null] })));
|
|
26
12
|
//# sourceMappingURL=BonusBenefitsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,mDAAgD;AAEhD,+DAA4D;AAI/C,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,aAAa,EACb,aAAa,GAAG,QAAQ,EACxB,SAAS,GAAG,EAAE,EACd,YAAY,GAAG,GAAG,EAClB,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,SAAS,CAAC,EAAE,cAAc,EAAC,WAAW,KAAK,IAAI,aACzF,uBAAC,mBAAQ,IACP,SAAS,EAAC,cAAc,EACxB,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,QAAQ,EACrB,eAAe,EAAC,GAAG,GACnB,EACD,aAAa,EAAE,MAAM;YACpB,CAAC,CAAC,IAAA,yCAAmB,EAAC,aAAa,EAAE,YAAY,EAAE,aAAa,CAAC;YACjE,CAAC,CAAC,IAAI,IACK,CAChB,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bonusBenefitAlign = "text-left";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bonusBenefitAlign.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/bonusBenefitAlign.ts"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bonusBenefitStyles = "justify-between p-4 h-full border border-gray";
|