@redneckz/wildless-cms-uni-blocks 0.5.12 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +125 -69
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Accordion/AccordionContent.d.ts +9 -7
- package/bundle/components/Accordion/AccordionItem.d.ts +1 -4
- package/bundle/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/bundle/components/Blocks.d.ts +1 -0
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/bundle/components/StepsBlock/renderItems.d.ts +7 -2
- package/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/bundle/model/BlockDecorator.d.ts +1 -0
- package/bundle/model/BlocksRegistry.d.ts +4 -1
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/dist/components/Accordion/Accordion.js +3 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +5 -2
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +9 -7
- package/dist/components/Accordion/AccordionItem.d.ts +1 -4
- package/dist/components/Accordion/AccordionItem.js +3 -8
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/dist/components/Accordion/AccordionItem.mobile.js +2 -5
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/dist/components/Accordion/AccordionItemProps.js +2 -0
- package/dist/components/Accordion/AccordionItemProps.js.map +1 -0
- package/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/dist/components/Accordion/AccordionItemsList.js +6 -0
- package/dist/components/Accordion/AccordionItemsList.js.map +1 -0
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ContentPage/filterBlocks.js +1 -2
- package/dist/components/ContentPage/filterBlocks.js.map +1 -1
- package/dist/components/ContentPage/filterBlocks.mobile.js +1 -3
- package/dist/components/ContentPage/filterBlocks.mobile.js.map +1 -1
- package/dist/components/ContentPage/renderBlock.js +1 -1
- package/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +8 -7
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +5 -5
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/dist/components/OtherProducts/OtherProductsItem.js +4 -6
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -8
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/StepsBlock/renderItems.d.ts +7 -2
- package/dist/components/StepsBlock/renderItems.js +5 -1
- package/dist/components/StepsBlock/renderItems.js.map +1 -1
- package/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/dist/components/StepsBlock/renderStepContent.js +20 -0
- package/dist/components/StepsBlock/renderStepContent.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +11 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/model/BlockDecorator.d.ts +1 -0
- package/dist/model/BlockDecorator.js +2 -1
- package/dist/model/BlockDecorator.js.map +1 -1
- package/dist/model/BlocksRegistry.d.ts +4 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/dist/ui-kit/Foldable/Foldable.js +7 -23
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
- package/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/dist/ui-kit/Foldable/FoldableSection.js +17 -0
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +3 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +5 -2
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +9 -7
- package/lib/components/Accordion/AccordionItem.d.ts +1 -4
- package/lib/components/Accordion/AccordionItem.js +3 -8
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/lib/components/Accordion/AccordionItem.mobile.js +2 -5
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/lib/components/Accordion/AccordionItemProps.js +2 -0
- package/lib/components/Accordion/AccordionItemProps.js.map +1 -0
- package/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/lib/components/Accordion/AccordionItemsList.js +4 -0
- package/lib/components/Accordion/AccordionItemsList.js.map +1 -0
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ContentPage/filterBlocks.js +1 -2
- package/lib/components/ContentPage/filterBlocks.js.map +1 -1
- package/lib/components/ContentPage/filterBlocks.mobile.js +1 -3
- package/lib/components/ContentPage/filterBlocks.mobile.js.map +1 -1
- package/lib/components/ContentPage/renderBlock.js +2 -2
- package/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +8 -7
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +5 -5
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +7 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/lib/components/OtherProducts/OtherProductsItem.js +4 -6
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +2 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -8
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/StepsBlock/renderItems.d.ts +7 -2
- package/lib/components/StepsBlock/renderItems.js +6 -2
- package/lib/components/StepsBlock/renderItems.js.map +1 -1
- package/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/lib/components/StepsBlock/renderStepContent.js +17 -0
- package/lib/components/StepsBlock/renderStepContent.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.js +11 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/model/BlockDecorator.d.ts +1 -0
- package/lib/model/BlockDecorator.js +1 -0
- package/lib/model/BlockDecorator.js.map +1 -1
- package/lib/model/BlocksRegistry.d.ts +4 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/lib/ui-kit/Foldable/Foldable.js +9 -25
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/lib/ui-kit/Foldable/FoldableSection.js +15 -0
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +131 -153
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/bundle/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/bundle/components/StepsBlock/renderItems.d.ts +7 -2
- package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/bundle/model/BlockDecorator.d.ts +1 -0
- package/mobile/bundle/model/BlocksRegistry.d.ts +4 -1
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/mobile/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/dist/components/Accordion/Accordion.js +5 -2
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/dist/components/Accordion/AccordionItem.js +2 -5
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/dist/components/Accordion/AccordionItemProps.js +2 -0
- package/mobile/dist/components/Accordion/AccordionItemProps.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.js +6 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.js.map +1 -0
- package/mobile/dist/components/ContentPage/filterBlocks.js +1 -3
- package/mobile/dist/components/ContentPage/filterBlocks.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.js +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +8 -7
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +5 -5
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -6
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderItems.d.ts +7 -2
- package/mobile/dist/components/StepsBlock/renderItems.js +5 -1
- package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.js +20 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -0
- package/mobile/dist/model/BlockDecorator.d.ts +1 -0
- package/mobile/dist/model/BlockDecorator.js +2 -1
- package/mobile/dist/model/BlockDecorator.js.map +1 -1
- package/mobile/dist/model/BlocksRegistry.d.ts +4 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/mobile/dist/ui-kit/Foldable/Foldable.js +7 -23
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +17 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +5 -2
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/lib/components/Accordion/AccordionItem.js +2 -5
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/lib/components/Accordion/AccordionItemProps.js +2 -0
- package/mobile/lib/components/Accordion/AccordionItemProps.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.js +4 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.js.map +1 -0
- package/mobile/lib/components/ContentPage/filterBlocks.js +1 -3
- package/mobile/lib/components/ContentPage/filterBlocks.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlock.js +2 -2
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +8 -7
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +5 -5
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -6
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderItems.d.ts +7 -2
- package/mobile/lib/components/StepsBlock/renderItems.js +6 -2
- package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.js +17 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -0
- package/mobile/lib/model/BlockDecorator.d.ts +1 -0
- package/mobile/lib/model/BlockDecorator.js +1 -0
- package/mobile/lib/model/BlockDecorator.js.map +1 -1
- package/mobile/lib/model/BlocksRegistry.d.ts +4 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/mobile/lib/ui-kit/Foldable/Foldable.js +9 -25
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +15 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/src/common.css +11 -3
- package/mobile/src/components/Accordion/Accordion.tsx +17 -7
- package/mobile/src/components/Accordion/AccordionContent.ts +10 -7
- package/mobile/src/components/Accordion/AccordionItem.tsx +34 -30
- package/mobile/src/components/Accordion/AccordionItemProps.ts +6 -0
- package/mobile/src/components/Accordion/AccordionItemsList.tsx +5 -0
- package/mobile/src/components/ContentPage/filterBlocks.ts +1 -3
- package/mobile/src/components/ContentPage/renderBlock.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
- package/mobile/src/components/Footer/Footer.tsx +15 -13
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +5 -0
- package/mobile/src/components/Header/Header.tsx +16 -11
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +18 -15
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
- package/mobile/src/components/StepsBlock/renderItems.tsx +24 -15
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +63 -0
- package/mobile/src/model/BlockDecorator.ts +2 -0
- package/mobile/src/model/BlocksRegistry.ts +4 -1
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +19 -67
- package/mobile/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
- package/package.json +2 -2
- package/src/common.css +11 -3
- package/src/components/Accordion/Accordion.mobile.tsx +17 -7
- package/src/components/Accordion/Accordion.tsx +12 -3
- package/src/components/Accordion/AccordionContent.ts +10 -7
- package/src/components/Accordion/AccordionItem.mobile.tsx +34 -30
- package/src/components/Accordion/AccordionItem.tsx +24 -23
- package/src/components/Accordion/AccordionItemProps.ts +6 -0
- package/src/components/Accordion/AccordionItemsList.tsx +5 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/ContentPage/filterBlocks.mobile.ts +1 -3
- package/src/components/ContentPage/filterBlocks.ts +1 -2
- package/src/components/ContentPage/renderBlock.tsx +2 -2
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
- package/src/components/Footer/Footer.mobile.tsx +15 -13
- package/src/components/GracePeriod/GracePeriod.ui.json +5 -0
- package/src/components/Header/Header.mobile.tsx +16 -11
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +107 -0
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
- package/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
- package/src/components/OtherProducts/OtherProductsItem.tsx +18 -15
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +39 -25
- package/src/components/StepsBlock/StepsBlock.tsx +3 -49
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
- package/src/components/StepsBlock/renderItems.tsx +24 -15
- package/src/components/StepsBlock/renderStepContent.tsx +63 -0
- package/src/components/TariffsTable/TariffsTable.tsx +32 -23
- package/src/model/BlockDecorator.ts +2 -0
- package/src/model/BlocksRegistry.ts +4 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
- package/src/ui-kit/Foldable/Foldable.tsx +19 -67
- package/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
- package/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
- package/tailwind.config.cjs +5 -0
- package/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/bundle/utils/getAccordionItems.d.ts +0 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/dist/components/ContentPage/isBlockInRegistry.js +0 -7
- package/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/dist/ui-kit/Foldable/DefaultButton.js +0 -12
- package/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/dist/utils/getAccordionItems.d.ts +0 -1
- package/dist/utils/getAccordionItems.js +0 -13
- package/dist/utils/getAccordionItems.js.map +0 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/lib/components/ContentPage/isBlockInRegistry.js +0 -4
- package/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/lib/ui-kit/Foldable/DefaultButton.js +0 -10
- package/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
- package/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/lib/utils/getAccordionItems.d.ts +0 -1
- package/lib/utils/getAccordionItems.js +0 -10
- package/lib/utils/getAccordionItems.js.map +0 -1
- package/mobile/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/mobile/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/mobile/bundle/utils/getAccordionItems.d.ts +0 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +0 -7
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/mobile/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/mobile/dist/ui-kit/Foldable/DefaultButton.js +0 -12
- package/mobile/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/mobile/dist/utils/getAccordionItems.d.ts +0 -1
- package/mobile/dist/utils/getAccordionItems.js +0 -13
- package/mobile/dist/utils/getAccordionItems.js.map +0 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +0 -4
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/mobile/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/mobile/lib/ui-kit/Foldable/DefaultButton.js +0 -10
- package/mobile/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/mobile/lib/utils/getAccordionItems.d.ts +0 -1
- package/mobile/lib/utils/getAccordionItems.js +0 -10
- package/mobile/lib/utils/getAccordionItems.js.map +0 -1
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +0 -5
- package/mobile/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
- package/mobile/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
- package/mobile/src/utils/getAccordionItems.ts +0 -10
- package/src/components/ContentPage/isBlockInRegistry.ts +0 -5
- package/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
- package/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
- package/src/utils/getAccordionItems.ts +0 -10
|
@@ -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 n=e=>(...n)=>t[e](...n),r=n("useState"),i=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");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:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)}return t.inheritAttrs=!1,t},g={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},b=p((e=>{const{className:t,headingType:n="h3",title:r,as:i="h3"}=e;return h(i,{className:`font-sans font-medium m-0 ${g[n]} ${t||""}`,children:r})}));function f(e){return e?e.filter(Boolean).join(" "):""}const N={normal:"text-primary-main",black:"text-black",white:"text-black"},y=p((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${n}`,title:i=r,iconVersion:l="normal",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a?h(k,{className:e,children:u("svg",{className:[w(e,s.width),N[l],t,v(l)].join(" "),...s,"aria-hidden":"true",children:[i?h("title",{children:i}):null,r?h("desc",{children:r}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:r,title:i,...s,"aria-hidden":"true"})})),v=e=>"white"===e?"invert":"",w=(e,t)=>t?`width: ${t}px `:"w-full h-full",k=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function $(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const C=(e,t)=>e.media&&t.media?e.media-t.media:0,S=p((({className:e="",image:t,imageClassName:n="",isMobile:r=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(C).map((({src:e,format:n,media:r},i)=>h("source",{srcSet:e,type:_(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${i}_${e}`))):null,T(t,n,r)]})})),T=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:i,style:r,...e.size})};function _(e){return e?`image/${String(e)}`:void 0}const D=p((({className:e="",image:t,imageClassName:n="",isMobile:r,...i})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(y,{className:e,imageClassName:n,iconVersion:$(t),name:l,...i}):null:h(S,{className:e,imageClassName:n,image:t,isMobile:r})})),I=p((e=>h(D,{...e,isMobile:!0}))),j={left:"text-left",center:"text-center",right:"text-right"},L={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},R=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:r,image:i,align:l="left"})=>{const a=L[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(b,{headingType:"h2",className:`${a.text} ${j[l]}`,title:n}):null,r?h("p",{className:`text-m ${a.description} ${j[l]}`,children:r}):null,i?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(I,{image:i})})]})})),A=p((({children:e,activeIndex:t,indexFraction:n,showDots:r})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return r&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,r)=>h("div",{onClick:i(r),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:M(r,t,n),"aria-hidden":!0},String(r))))}):null})),M=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},B=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),O=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),P=p((({className:e="",children:t,activeIndex:n,onScroll:r,gap:i=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...O(l),gap:`${i}px`},role:"list",onScroll:r,children:t?.length?t?.map(((e,t)=>h(B,{style:O(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(B,{children:t})}))),V=p((({className:e,children:t,gap:n=14,padding:i=16,showDots:l=!0,onSlideChange:a})=>{const[s,o]=r(0),[c,d]=r(0),m={activeIndex:s,indexFraction:c,showDots:l,children:t};return u("div",{className:e,children:[h(P,{gap:n,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:r,childElementCount:l,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:i,itemWidth:l})=>{const a=r-n;if(2===i)return[[0,a],[a,r]];const s=l+e,o=n-e-t,c=i-2,d=new Array(i).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[i-1]=[a,r],d})({gap:n,padding:i,clientWidth:r,scrollWidth:c,childElementCount:l,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,i]=t[n];return{index:n,fraction:(e-r)/(i-r)}})(t,u);p!==s&&a&&a(),o(p),d(x)},children:t}),h(A,{...m})]})})),E=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:i,icon:l})=>{const{text:a,fileSize:s,...o}=i;return u("a",{className:e,role:"link",...o,children:[l?h(I,{className:t,image:l,width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:r,children:o?.href&&F(G(o.href),s)})]}):null]})})),F=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),G=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},z=p((({className:e="",doc:t,icon:n})=>h(E,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),H=p((({context:e,hasBorder:t=!0,documents:n,icon:r})=>h(V,{context:e,className:"text-s text-primary-main mt-5",children:n?.length?n.map(((e,n)=>h(z,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:r},String(n)))):null}))),W=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>h("div",{role:"listitem",children:h(z,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),J=p((({className:e="",context:t,title:n,description:r,icon:i={icon:"DocIconMonoColor"},documents:l,orientation:a="vertical",hasBorder:s=!0})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(R,{className:"!p-0 "+(r?"gap-2":"gap-5"),title:n,description:r,context:t,align:"center"}),"vertical"===a?h(W,{hasBorder:s,documents:l,icon:i}):h(H,{context:t,hasBorder:s,documents:l,icon:i})]}))),U={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Y=e=>e?.includes("//"),K=e=>(e||"").replace(/\/?\?.*/,""),X=e=>{if(!e||!Y(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var Q=Object.freeze({__proto__:null,isURL:Y,withoutQuery:K,getOrigin:X,getHash:e=>{if(!e||!Y(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const Z="/mobile",q=(e,t)=>{if(!e)return e;const n=X(t?.href);return n?e.replace(n,"")||"/":e},ee=e=>e;function te({router:e,handlerDecorator:t=ee},n){const r=((e,t)=>{if(!e)return e;const n=q(e,t)||"",r=t?.pathname.startsWith(Z);return r&&!Y(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const i=r&&!Y(r),l=!n.target||"_self"===n.target;i&&l&&(t?.preventDefault(),e.push(r))}),n)}}const ne={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},re=p((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:i,version:l="primary"}=e;return u("div",{className:ie(e),children:[r?h("div",{className:ne[l],children:r}):null,le(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,i?h("div",{className:ne[l],children:i}):null]})})),ie=e=>{const{className:t="",version:n,aboveText:r,rounded:i}=e;if("link"===n)return"";const l="gap-2 "+(r?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",le(e)?l:"h-12 w-12",i?"rounded-full":"",t].join(" ")},le=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ae={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",link:"text-primary-main"},se={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",white:"bg-white text-primary-text",link:""},oe="w-full text-center font-sans select-none",ce=p((({className:e,text:t,aboveText:n,appendLeft:r,href:i,target:l,onClick:a,children:s,disabled:o,rounded:c,version:d="primary",ariaLabel:m,...u})=>{const{appendRight:p,...x}=u,g=s??h(re,{text:t,aboveText:n,appendLeft:r,rounded:c,version:d});return o?h("div",{role:"button","aria-disabled":"true","aria-label":m,tabIndex:-1,className:`inline-block ${oe} ${se[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,children:g}):h("a",{className:`${oe} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${ae[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:a,"aria-label":m,role:i?"link":"button",...x,children:g})})),de=p((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:r}=e,i=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>h(me,{button:e,handlerDecorator:r,router:i},String(t))))}):null})),me=p((({router:e,handlerDecorator:t,button:n})=>{const r=te({router:e,handlerDecorator:t},n);return h(ce,{...n,...r})})),he={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},ue={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5"},pe=p((({className:e="",isDotted:t=!0,children:n,version:r="primary",size:i="M"})=>u("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?h("div",{className:`rounded-full inline-block ${he[r]} ${ue[i]}`}):null,h("span",{children:n})]}))),xe={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},ge={S:"text-l-light",M:"text-h6",L:"text-h5"},be={S:"ml-2",M:"ml-3",L:"ml-4"},fe=p((e=>{const{className:t="",hasIndent:n,isDotted:r,itemClassName:i="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${xe[s]} ${ge[a]} ${t} ${n?be[a]:""}`,role:"list",children:l.map(((e,t)=>h(pe,{className:`${i} mb-1.5`,isDotted:r,version:s,size:a,children:e},String(t))))}):null})),Ne=p((({className:e="",title:t="",children:n,buttons:r,image:i})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),r?h("div",{className:"mt-auto pt-8",children:r}):null]}),i]})]}))),ye={primary:"text-primary-text",secondary:"text-white"},ve={primary:"text-secondary-text",secondary:"text-white"},we=p((e=>{const{className:t="",icon:n,label:r,description:i,version:l="primary",benefitsVersion:a="normal"}=e,s=i?"items-start":"items-center",o=$e(n,"white"===a||"secondary"===l);return u("div",{className:`flex gap-5 ${s} ${t}`,children:[n?h("div",{className:ke(l,a),children:h(I,{className:"w-6 h-6",image:{...n,iconVersion:o},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[r?h("div",{className:`text-h6 ${ye[l]}`,children:r}):null,i?h("div",{className:`text-m-light ${ve[l]}`,children:i}):null]})]})}));function ke(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const $e=(e,t)=>e?.iconVersion||t?"white":"normal",Ce=(e="primary",t="normal")=>({icon:n,label:r,description:i},l)=>h(we,{icon:n,label:r,description:i,version:e,benefitsVersion:t},String(l)),Se=p((({className:e="",context:t,title:n,headlineVersion:r="L",description:i,benefits:l,benefitsVersion:a="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,label:p})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[p?De(p,d):null,h(R,{context:t,className:"!p-0 max-w-[600px]",title:n,description:i,bgColorHeadline:d,headlineVersion:r}),u(Ne,{context:t,buttons:s?.length?h(de,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:l.map(Ce(d,a))}):null,c?.length?h(fe,{className:"mt-3 text-m",items:c,version:d,isDotted:m}):null]})]}),Te(o)]})));function Te(e){return e?.src?h(I,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const _e={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},De=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${_e[t]}`,children:e}),Ie=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${U[n]} ${t}`,children:h(Se,{...e})})})),je={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Le=p((({title:e,description:t,blockVersion:n="primary",iconVersion:r,image:i,className:l="",items:a,isDotted:s=!0})=>{const o=je[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===r?Re(o.icon):null,"big"===r?Ae(i):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(fe,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Re(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Ae(e){return e?.src?h(I,{className:"pb-3 mr-auto",image:e}):null}const Me=p((({context:e,title:t,description:n,cards:r=[],className:i,orientation:l="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[t?h(b,{headingType:"h3",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),Be(l,r,e)]})));function Be(e,t,n){return"horizontal"===e?h(V,{context:n,children:t?.map(Oe)}):h("div",{className:"grid gap-[14px]",children:t?.map(Oe)})}function Oe(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${U[e.version??"primary"]}`,children:[u("div",{children:[e.image?.src?h("div",{className:"flex justify-center",children:h(I,{className:"mb-3.5",image:e.image})}):null,e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Pe(e):null,e.items?.length?Ee(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(ce,{className:"mt-3",appendLeft:n?.icon&&h(I,{image:n?.icon,width:"24px",height:"24px",asSVG:!0}),...n})):null]},t);var n}function Pe(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const Ve={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function Ee(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,r)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${Ve[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(r))))})}class Fe{static inst=new Fe;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const Ge=p((e=>{const{tag:t="section",observerCallback:n,observerOptions:r,className:i="",anchor:a=null,children:o}=e,c=s(null),d=l((e=>{e&&(c.current&&c.current.disconnect(),c.current=new IntersectionObserver(n,r),c.current.observe(e))}),[n,r]);return h(t,{ref:d,className:i,id:a,children:o})})),ze=100,He=p((({anchor:e,className:t,children:n,tag:l="section",labels:o})=>{const c=l,[d,m]=r(!0),u=s({}),p=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[r]=n;!r.isIntersecting||r.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(Fe.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),Fe.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||Fe.inst.fire("tab",{type:"link",label:e}))})({anchor:e,anchorClickRef:u})),[e]);return i((()=>{const e=Fe.inst.subscribe("anchorClick",(e=>{u.current=e})),t=Fe.inst.subscribe("tab",(e=>{var t;"group"===e.type?m(!o?.length||!e.label||o.includes(e.label)):((t=e.label)&&(globalThis.document.location.hash=t),m(!0))}));return()=>{e(),t()}}),[]),d?e?h(Ge,{tag:l,className:t,observerCallback:p,observerOptions:{threshold:new Array(18).fill(0).map(We)},anchor:e,children:n}):h(c,{className:t,children:n}):null}));function We(e,t){const n=(t+1)/ze+.82;return Math.round(n*ze)/ze}const Je=p((({className:e="",documents:t,...n})=>h(He,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ue(t):null})}))),Ue=e=>e.map(((e,t)=>{const{text:n,...r}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),Ye={Headline:R,LinkDocs:J,TextBlock:Le,ProductBlock:Ie,Gallery:Me,LinkList:Je},Ke=({context:e,className:t})=>(n,r)=>{if(!n)return null;const{style:i,blockListType:l,...a}=n;if(!l||!(l in Ye))return null;const s=f(i);return h(Ye[l],{className:`${t} ${s}`,context:e,...a},`block_${r}`)},Xe=p((({icon:e,label:t,dataTheme:n="",onClick:r})=>u("button",{className:"border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer","data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),e?h(I,{image:{icon:e,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Qe=p((({blocks:e=[],hiddenBlocksNum:t=0,isFoldButtonOnTop:n=!1,unfoldedByDefault:i=!1,containerClassName:l="",blockWrapper:a=(e=>e),renderFoldButton:o=Ze})=>{const[c,d]=r(i),m=(p=t,x=0,g=e?.length,Math.max(x,Math.min(p,g)));var p,x,g;const b=e.slice(0,e.length-m),f=m>0?e.slice(-m):[],N=s(null),y=t?o({isUnfolded:c,onToggle:()=>{d(!c),N.current&&(N.current.style.maxHeight=c?"":`${N.current.scrollHeight}px`)}}):null,v=a(u("div",{children:[b,h("div",{ref:N,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${l}`,children:f})]}));return h("div",{children:u("div",n?{children:[y,v]}:{children:[v,y]})})})),Ze=e=>h(Xe,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e.isUnfolded)],label:["Развернуть","Скрыть"][Number(e.isUnfolded)],onClick:e.onToggle}),qe=["PlusIcon","MinusIcon"],et=p((({label:e="",labelIcon:t,blocks:n,bordered:r,context:i})=>{const l=n?(({blocks:e,context:t,className:n=""})=>e?.length?e.map(Ke({context:t,className:n})):[])({context:i,blocks:n,className:"!px-0"}):[];return h("li",{className:`${nt(r)} border-solid border-main-divider`,children:h(Qe,{hiddenBlocksNum:l.length,blocks:l,isFoldButtonOnTop:!0,containerClassName:"flex flex-wrap group-last:last:pb-0",renderFoldButton:i=>h(tt,{className:r?"":"py-[14px] px-0",icon:qe[Number(i.isUnfolded)],label:e,primaryIcon:t,hasContent:Boolean(n?.length),onClick:i.onToggle})})})})),tt=p((({className:e,hasContent:t,icon:n,label:r,primaryIcon:i,onClick:l})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${e}\n ${t?"group cursor-pointer":""}`,onClick:l,children:[u("span",{className:"text-m-title-xs font-medium pr-2.5 flex "+(t?"group-hover:text-primary-main":""),children:[i?h(I,{image:i,className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,r]}),t?h(I,{className:"flex-shrink-0",image:n,width:"24",height:"24",asSVG:!0}):null]})));function nt(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const rt=p((({title:e,description:t,accordionItems:n,context:r,className:i="",bordered:l})=>u("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${i}`,children:[e?h(b,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5 text-m-light text-center",children:t}):null,n?.length?h("ul",{className:"list-none m-0 p-0",children:n.map(((e,t)=>h(et,{...e,context:r,bordered:l},`AccordionItem_${t}`)))}):null]}))),it=(e=!1)=>e?"text-white":"",lt=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),at=p((({icon:e,image:t,title:n,subtitle:r,isFillGradient:i})=>u("div",{role:"columnheader",children:[e?h(I,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(I,{image:t})}),n?h(b,{headingType:"h4",className:it(i),title:n}):null,r?h("div",{className:lt(i),children:r}):null]}))),st=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(ot(n,t))})}))),ot=(e,t)=>({label:n,description:r},i)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(i)),ct=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:i,onToggleColumn:l})=>{const a=t?.slice(0,i?t.length:n),s=r?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(at,{...e,isFillGradient:r}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(st,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,i&&e?.link?h(ce,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,dt({onToggleColumn:l,isFillGradient:r,showRow:i})]})})),dt=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),mt=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(b,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(ht,{...e})})]})})),ht=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:i,orientation:a,context:s})=>{const[o,c]=r(new Array(e?.length||0).fill(!i)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:r},l)=>{return h(ct,{context:s,visibleRowLength:i,showRow:o[l],header:r,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l)},String(l));var a}));return"horizontal"===a?h(V,{context:s,onSlideChange:m,children:u}):u})),ut={"bg-white":"text-primary-main",transparent:"text-white"},pt={"bg-white":"text-black",transparent:"text-white"},xt=p((({className:e="",href:t,children:n,targetBlank:r,bgColor:i="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:r?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(I,{image:{icon:"LogoIcon",iconVersion:ut[i]},className:`${ut[i]} w-10 h-[38px]`,asSVG:!0}),l?h("span",{className:`${pt[i]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),gt=p((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(xt,{className:"w-[33px]",bgColor:"transparent",showTitle:!0})}),u("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),bt=p((({className:e="",items:t,hasButton:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:e,children:[t?.length?t.map(ft):null,n?h(ce,{version:"primary",className:"mb-6 w-full",...te({router:i,handlerDecorator:l},{text:"Обратная связь",href:"/",target:"_blank"}),ariaLabel:"Обратная связь"}):null]})})),ft=(e,t)=>{const{type:n,text:r,description:i}=e;return u("div",{className:"mb-4",children:[h("div",{children:Nt(n,r)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Nt=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${yt(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},yt=e=>e.replaceAll(/\D/g,""),vt=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:l,children:n||`Документ ${t}`}))),wt=p((({title:e,links:t,className:n="",context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(vt,{index:t,className:"text-s",...te({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),kt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],$t=p((({href:e,version:t="primary"})=>{const{icon:n,label:r}=kt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":r,target:"_blank",rel:"noopener noreferrer",children:n?h(I,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Ct=p((({className:e,media:t,version:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>h($t,{version:n,...te({router:i,handlerDecorator:l},e)},String(t))))})})),St=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("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:r,target:i,onClick:l,children:n||`Документ ${t}`}))),Tt=p((({className:e,links:t,context:n})=>{const r=n.useRouter(),{handlerDecorator:i}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(St,{index:t,className:"",...te({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),_t=new Map;function Dt(e,t,{fallback:n}={}){const l=a((()=>It(e)),[e]),[s,o]=r(),[c,d]=r(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};i((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>_t.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function It(e){return e?Array.isArray(e)?e:e instanceof Function?It(e()):[e]:[e]}async function jt(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Lt(e={}){const{data:t}=Dt(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,jt,{fallback:e});return t||{}}const Rt=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:i}=(()=>{const[e,t]=r("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(I,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:h(I,{image:"CloseIcon",width:"24",height:"24"})}):h(ce,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),At=p((({className:e=""})=>h(Rt,{className:e,isMobile:!0}))),Mt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Bt=p((({className:e="",documents:t,relatedEnterprises:n,contacts:r,socialMedia:i,context:l,horizontalNavigationTitle:a,page:s})=>{const o=s?.fallback,c=Lt(o),d=c?.dispositions;return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(bt,{className:"overflow-hidden",items:r,context:l,hasButton:!0}),h(rt,{context:l,className:"!p-0 mb-4",accordionItems:Mt(c.topItems)}),h("div",{children:d?.map(Ot)}),h(gt,{context:l,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),h(At,{context:l,className:"grow"}),h(Ct,{className:"pb-4",media:i,context:l}),h(wt,{title:a,links:n,context:l}),h(Tt,{links:t,context:l})]})})),Ot=(e,t)=>{const{icon:n,href:r,text:i}=e;return u(ce,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?h(I,{className:"pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Pt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(K(e),(e=>(e||"").replace(Z,""))(K(Y(e)?t.href:t.pathname))),Vt=e=>t=>Pt(t.href,e),Et=e=>t=>t.items?.some(Vt(e))||Pt(t.href,e)||((e,t)=>X(e)===X(t.href))(t.href,e),Ft=e=>t=>e?.href===t?.href,Gt=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Ft(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Ft(e))))));var n,r,i},zt="absolute left-0 -bottom-3 w-full h-[2px]",Ht=p((({className:e="",text:t,href:n,target:r,active:i,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:r,onClick:l,children:[h("span",{className:Wt(s,i),children:t||a}),i?h("div",{className:Jt(s,i)}):null]}))),Wt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Jt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${zt}`:zt,Ut=o("https://10.80.4.9");const Yt=p((({context:e,burgerSubMenu:t,onClick:n,defaultLocation:a="",children:s})=>{const[o,c]=function(e){const[t,n]=r(e);return i((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{Ut.getFetcherAddress().then((t=>{const r=t||e;globalThis?.localStorage.setItem("location",r),n(r)}))}),[e])]}(a);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:n,children:h(I,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:c,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(I,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),s,h("div",{className:"mb-7",children:t?.map(Kt)}),h(At,{context:e,className:"grow"})]})})),Kt=(e,t)=>{const{icon:n,href:r,text:i}=e;return u("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(I,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},Xt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(I,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(xt,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Qt=p((({className:e="",defaultLocation:t,bgColor:n="bg-white",context:i,topItems:l,page:a})=>{const s=i.useRouter(),o=a?.fallback,c=Lt(o),d=c?.dispositions,{handlerDecorator:m}=i,p=Gt(c.topItems,l).find(Et(s))?.items,x=(e=>(t=[])=>{const n=t?.filter(Vt(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(s)(p),[g,b]=r(!1),f=()=>b(!g);return u("header",{className:`${n} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(Xt,{onClick:f,bgColor:n}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,t)=>Zt({...te({router:s,handlerDecorator:m},e),active:e===x,bgColor:n},t)))})})]}),g?h(Yt,{context:i,onClick:f,burgerSubMenu:d,defaultLocation:t,children:h(rt,{context:i,accordionItems:Mt(c.topItems),className:"!p-0 mb-4"})}):null]})})),Zt=(e,t)=>h(Ht,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),qt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function en(e=""){const t=qt(e);return t<=4?"S":t<=8?"M":"L"}function tn(e=""){const t=qt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function nn(e=""){const t=qt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const rn=p((({className:e,context:t,title:n,description:r="Блок в разработке...",...i})=>u(He,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${nn(e)} ${tn(e)} `,...i,children:[h(R,{context:t,className:"!p-0 max-w-[600px]",title:n,description:r,headlineVersion:en(e)}),h("figure",{className:"m-0 min-w-[80%]",children:ln()})]}))),ln=(e=3)=>sn(100,e).map((e=>Math.floor(e))).map(an),an=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),sn=(e,t)=>[e].concat(t>0?sn(e/1.618,t-1):[]),on=p((({block:e,context:t,className:n=""})=>h("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${U[e?.version??"primary"]} ${n}`,role:"listitem",children:h("div",{className:"flex grow",children:h(Se,{context:t,...e})})}))),cn=p((({className:e,context:t,slides:n=[]})=>{const r=n.map((e=>e.productBlock));return h("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:h(V,{context:t,children:r.map(((e,n)=>h(on,{block:e,context:t},String(n))))})})})),dn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},mn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},hn={normal:"min-h-[70px]",small:"min-h-[50px]"},un={primary:"normal",secondary:"white"},pn=p((({className:e,title:t,description:n,showLines:r=!0,steps:i,size:l="normal",version:a="primary"})=>{const s=dn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(b,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,i?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(xn(l,a,r))})}):null]})})),xn=(e,t,n)=>(r,i,l)=>{const a=l.length-1===i,s="normal"===e?"ml-[34px]":"ml-6",o=dn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[gn(e,t)(r,i),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${hn[e]}`,children:[r.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?h("div",{className:`text-s ${o.description} text-left`,children:r.description}):null]})]})},String(i))},gn=(e,t)=>(n,r)=>{const i=dn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${mn[e]} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${i.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(I,{image:{...n.icon,iconVersion:un[t]},width:l,height:l,asSVG:!0}):h("span",{children:r+1}))})});var s},bn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,appendLeft:t,ariaLabel:n,...r},i)=>h(ce,{className:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,appendLeft:t,rounded:e,ariaLabel:n,...r},String(i))))}):null,Img:({image:e})=>e?.src?h(I,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(fe,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},fn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(b,{headingType:"h3",className:"font-medium",title:e}):null,t?h(I,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Nn=p((({context:e,header:t,data:n})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(fn,{...t}),n?.length?n.map(yn(e)):null]}))),yn=e=>(t,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,vn(t,e)]},String(n)),vn=(e,t)=>{if(!e)return null;const{tableCellType:n,...r}=e;if(!n||!(n in bn))return null;return h(bn[n],{context:t,...r})},wn=p((({tiles:e,context:t})=>h(V,{context:t,children:e.map(((e,t)=>h(Nn,{...e},String(t))))}))),kn=p((({tiles:e})=>h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>h(Nn,{...e},String(t))))}))),$n=p((({className:e,context:t,title:n,description:r,tariffsColumns:i,rowHeaders:l,orientation:a="vertical"})=>{const s=Sn(i),o=Tn(l,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[n?h(b,{headingType:"h2",className:`text-center ${r?"mb-2":"mb-5"}`,title:n}):null,r?h("div",{className:"mb-5 text-center text-m",children:r}):null,o?.length?Cn(a,o,t):null]})}));function Cn(e,t,n){return h("vertical"===e?kn:wn,{context:n,tiles:t})}const Sn=e=>e?.[0].data?e[0].data:[],Tn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),_n={Accordion:rt,ComparisonTable:mt,Footer:Bt,Gallery:Me,Header:Qt,Headline:R,LinkDocs:J,LinkList:Je,MobileAppTile:gt,ProductBlock:Ie,ProductGallery:cn,StepsBlock:pn,TariffsTable:$n,TextBlock:Le,Placeholder:rn},Dn=m();const In=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:jn()}))),jn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},Ln=p((({className:e,context:t,...n})=>{const{useRouter:a,handlerDecorator:s=ee}=t,o=function(e){const[t,n]=r(0);return i((()=>{(async()=>{const[t]=await Dn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Dn.like(e))}),[e]),dislike:l((async()=>{n(await Dn.dislike(e))}),[e])}}(a().pathname);return u(He,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(In,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(In,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})}));function Rn(e,t,n=[null]){const{key:r,page:i,blockDecorator:l,blocksRegistry:a,context:s}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return l({blockClassName:`scroll-mt-12 ${f(e.style)}`,block:e,ancestors:n,render:({block:l,blockClassName:a})=>{const{version:o,content:d,anchor:m,labels:u,blocks:p}=l,x=p?p.map(((r,i)=>Rn(r,{...t,key:`${t.key}-${i}`},[...n,e]))):null;return c?h(c,{className:a,version:o,context:s,page:i,anchor:m,labels:u,...d,children:x},r):null}},r)}const An=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Mn=p((e=>{const{className:t="",context:n,data:r={}}=e,{style:i,blocks:l,slots:a,likeControl:s,colorPalette:o="pc"}=r,c=function({blocksRegistry:e,data:t,blockDecorator:n,context:r}){return(i,l)=>i.map(((i,a)=>Rn(i,{key:`${i.type||"#"}-${a}`,blocksRegistry:e,page:t||{},blockDecorator:n||An,context:r},l)))}(e);return u("section",{className:`relative ${f(i)} ${t}`,"data-theme":o,children:[a?.header?.blocks?.length?h("div",{className:`${f(a.header.style)}`,children:c(a.header.blocks,["header"])}):null,l?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:c(l)}):null,s?Bn(n):null]})}));function Bn(e){return h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Ln,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:e},"LikeControl")})}e.Blocks=_n,e.ContentPage=Mn,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Q,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 n=e=>(...n)=>t[e](...n),r=n("useState"),i=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");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:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},f=p((e=>{const{className:t,headingType:n="h3",title:r,as:i="h3"}=e;return h(i,{className:`font-sans font-medium m-0 ${b[n]} ${t||""}`,children:r})})),N={normal:"text-primary-main",black:"text-black",white:"text-black"},y=p((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${n}`,title:i=r,iconVersion:l="normal",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a?h(k,{className:e,children:u("svg",{className:[w(e,s.width),N[l],t,v(l)].join(" "),...s,"aria-hidden":"true",children:[i?h("title",{children:i}):null,r?h("desc",{children:r}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:r,title:i,...s,"aria-hidden":"true"})})),v=e=>"white"===e?"invert":"",w=(e,t)=>t?`width: ${t}px `:"w-full h-full",k=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function $(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const C=(e,t)=>e.media&&t.media?e.media-t.media:0,S=p((({className:e="",image:t,imageClassName:n="",isMobile:r=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(C).map((({src:e,format:n,media:r},i)=>h("source",{srcSet:e,type:_(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${i}_${e}`))):null,T(t,n,r)]})})),T=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:i,style:r,...e.size})};function _(e){return e?`image/${String(e)}`:void 0}const D=p((({className:e="",image:t,imageClassName:n="",isMobile:r,...i})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(y,{className:e,imageClassName:n,iconVersion:$(t),name:l,...i}):null:h(S,{className:e,imageClassName:n,image:t,isMobile:r})})),I=p((e=>h(D,{...e,isMobile:!0}))),j={left:"text-left",center:"text-center",right:"text-right"},R={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},L=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:r,image:i,align:l="left"})=>{const a=R[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(f,{headingType:"h2",className:`${a.text} ${j[l]}`,title:n}):null,r?h("p",{className:`text-m ${a.description} ${j[l]}`,children:r}):null,i?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(I,{image:i})})]})})),A=p((({children:e,activeIndex:t,indexFraction:n,showDots:r})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return r&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,r)=>h("div",{onClick:i(r),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:M(r,t,n),"aria-hidden":!0},String(r))))}):null})),M=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},O=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),B=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),P=p((({className:e="",children:t,activeIndex:n,onScroll:r,gap:i=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...B(l),gap:`${i}px`},role:"list",onScroll:r,children:t?.length?t?.map(((e,t)=>h(O,{style:B(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(O,{children:t})}))),V=p((({className:e,children:t,gap:n=14,padding:i=16,showDots:l=!0,onSlideChange:a})=>{const[s,o]=r(0),[c,d]=r(0),m={activeIndex:s,indexFraction:c,showDots:l,children:t};return u("div",{className:e,children:[h(P,{gap:n,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:r,childElementCount:l,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:i,itemWidth:l})=>{const a=r-n;if(2===i)return[[0,a],[a,r]];const s=l+e,o=n-e-t,c=i-2,d=new Array(i).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[i-1]=[a,r],d})({gap:n,padding:i,clientWidth:r,scrollWidth:c,childElementCount:l,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,i]=t[n];return{index:n,fraction:(e-r)/(i-r)}})(t,u);p!==s&&a&&a(),o(p),d(x)},children:t}),h(A,{...m})]})})),F=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:i,icon:l})=>{const{text:a,fileSize:s,...o}=i;return u("a",{className:e,role:"link",...o,children:[l?h(I,{className:t,image:l,width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:r,children:o?.href&&E(G(o.href),s)})]}):null]})})),E=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),G=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},z=p((({className:e="",doc:t,icon:n})=>h(F,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),H=p((({context:e,hasBorder:t=!0,documents:n,icon:r})=>h(V,{context:e,className:"text-s text-primary-main mt-5",children:n?.length?n.map(((e,n)=>h(z,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:r},String(n)))):null}))),W=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>h("div",{role:"listitem",children:h(z,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),J=p((({className:e="",context:t,title:n,description:r,icon:i={icon:"DocIconMonoColor"},documents:l,orientation:a="vertical",hasBorder:s=!0})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(L,{className:"!p-0 "+(r?"gap-2":"gap-5"),title:n,description:r,context:t,align:"center"}),"vertical"===a?h(W,{hasBorder:s,documents:l,icon:i}):h(H,{context:t,hasBorder:s,documents:l,icon:i})]}))),U={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Y=e=>e?.includes("//"),K=e=>(e||"").replace(/\/?\?.*/,""),X=e=>{if(!e||!Y(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var Q=Object.freeze({__proto__:null,isURL:Y,withoutQuery:K,getOrigin:X,getHash:e=>{if(!e||!Y(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const Z="/mobile",q=(e,t)=>{if(!e)return e;const n=X(t?.href);return n?e.replace(n,"")||"/":e},ee=e=>e;function te({router:e,handlerDecorator:t=ee},n){const r=((e,t)=>{if(!e)return e;const n=q(e,t)||"",r=t?.pathname.startsWith(Z);return r&&!Y(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const i=r&&!Y(r),l=!n.target||"_self"===n.target;i&&l&&(t?.preventDefault(),e.push(r))}),n)}}const ne={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},re=p((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:i,version:l="primary"}=e;return u("div",{className:ie(e),children:[r?h("div",{className:ne[l],children:r}):null,le(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,i?h("div",{className:ne[l],children:i}):null]})})),ie=e=>{const{className:t="",version:n,aboveText:r,rounded:i}=e;if("link"===n)return"";const l="gap-2 "+(r?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",le(e)?l:"h-12 w-12",i?"rounded-full":"",t].join(" ")},le=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ae={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",link:"text-primary-main"},se={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",white:"bg-white text-primary-text",link:""},oe="w-full text-center font-sans select-none",ce=p((({className:e,text:t,aboveText:n,appendLeft:r,href:i,target:l,onClick:a,children:s,disabled:o,rounded:c,version:d="primary",ariaLabel:m,...u})=>{const{appendRight:p,...x}=u,g=s??h(re,{text:t,aboveText:n,appendLeft:r,rounded:c,version:d});return o?h("div",{role:"button","aria-disabled":"true","aria-label":m,tabIndex:-1,className:`inline-block ${oe} ${se[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,children:g}):h("a",{className:`${oe} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${ae[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:a,"aria-label":m,role:i?"link":"button",...x,children:g})})),de=p((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:r}=e,i=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>h(me,{button:e,handlerDecorator:r,router:i},String(t))))}):null})),me=p((({router:e,handlerDecorator:t,button:n})=>{const r=te({router:e,handlerDecorator:t},n);return h(ce,{...n,...r})})),he={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},ue={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5"},pe=p((({className:e="",isDotted:t=!0,children:n,version:r="primary",size:i="M"})=>u("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?h("div",{className:`rounded-full inline-block ${he[r]} ${ue[i]}`}):null,h("span",{children:n})]}))),xe={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},ge={S:"text-l-light",M:"text-h6",L:"text-h5"},be={S:"ml-2",M:"ml-3",L:"ml-4"},fe=p((e=>{const{className:t="",hasIndent:n,isDotted:r,itemClassName:i="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${xe[s]} ${ge[a]} ${t} ${n?be[a]:""}`,role:"list",children:l.map(((e,t)=>h(pe,{className:`${i} mb-1.5`,isDotted:r,version:s,size:a,children:e},String(t))))}):null})),Ne=p((({className:e="",title:t="",children:n,buttons:r,image:i})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),r?h("div",{className:"mt-auto pt-8",children:r}):null]}),i]})]}))),ye={primary:"text-primary-text",secondary:"text-white"},ve={primary:"text-secondary-text",secondary:"text-white"},we=p((e=>{const{className:t="",icon:n,label:r,description:i,version:l="primary",benefitsVersion:a="normal"}=e,s=i?"items-start":"items-center",o=$e(n,"white"===a||"secondary"===l);return u("div",{className:`flex gap-5 ${s} ${t}`,children:[n?h("div",{className:ke(l,a),children:h(I,{className:"w-6 h-6",image:{...n,iconVersion:o},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[r?h("div",{className:`text-h6 ${ye[l]}`,children:r}):null,i?h("div",{className:`text-m-light ${ve[l]}`,children:i}):null]})]})}));function ke(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const $e=(e,t)=>e?.iconVersion||t?"white":"normal",Ce=(e="primary",t="normal")=>({icon:n,label:r,description:i},l)=>h(we,{icon:n,label:r,description:i,version:e,benefitsVersion:t},String(l)),Se=p((({className:e="",context:t,title:n,headlineVersion:r="L",description:i,benefits:l,benefitsVersion:a="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,label:p})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[p?De(p,d):null,h(L,{context:t,className:"!p-0 max-w-[600px]",title:n,description:i,bgColorHeadline:d,headlineVersion:r}),u(Ne,{context:t,buttons:s?.length?h(de,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:l.map(Ce(d,a))}):null,c?.length?h(fe,{className:"mt-3 text-m",items:c,version:d,isDotted:m}):null]})]}),Te(o)]})));function Te(e){return e?.src?h(I,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const _e={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},De=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${_e[t]}`,children:e}),Ie=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${U[n]} ${t}`,children:h(Se,{...e})})})),je={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Re=p((({title:e,description:t,blockVersion:n="primary",iconVersion:r,image:i,className:l="",items:a,isDotted:s=!0})=>{const o=je[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===r?Le(o.icon):null,"big"===r?Ae(i):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(fe,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Le(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Ae(e){return e?.src?h(I,{className:"pb-3 mr-auto",image:e}):null}const Me=p((({context:e,title:t,description:n,cards:r=[],className:i,orientation:l="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[t?h(f,{headingType:"h3",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),Oe(l,r,e)]})));function Oe(e,t,n){return"horizontal"===e?h(V,{context:n,children:t?.map(Be)}):h("div",{className:"grid gap-[14px]",children:t?.map(Be)})}function Be(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${U[e.version??"primary"]}`,children:[u("div",{children:[e.image?.src?h("div",{className:"flex justify-center",children:h(I,{className:"mb-3.5",image:e.image})}):null,e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Pe(e):null,e.items?.length?Fe(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(ce,{className:"mt-3",appendLeft:n?.icon&&h(I,{image:n?.icon,width:"24px",height:"24px",asSVG:!0}),...n})):null]},t);var n}function Pe(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const Ve={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function Fe(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,r)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${Ve[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(r))))})}class Ee{static inst=new Ee;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const Ge=p((e=>{const{tag:t="section",observerCallback:n,observerOptions:r,className:i="",anchor:a=null,children:o}=e,c=s(null),d=l((e=>{e&&(c.current&&c.current.disconnect(),c.current=new IntersectionObserver(n,r),c.current.observe(e))}),[n,r]);return h(t,{ref:d,className:i,id:a,children:o})})),ze=100,He=p((({anchor:e,className:t,children:n,tag:l="section",labels:o})=>{const c=l,[d,m]=r(!0),u=s({}),p=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[r]=n;!r.isIntersecting||r.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(Ee.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),Ee.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||Ee.inst.fire("tab",{type:"link",label:e}))})({anchor:e,anchorClickRef:u})),[e]);return i((()=>{const e=Ee.inst.subscribe("anchorClick",(e=>{u.current=e})),t=Ee.inst.subscribe("tab",(e=>{var t;"group"===e.type?m(!o?.length||!e.label||o.includes(e.label)):((t=e.label)&&(globalThis.document.location.hash=t),m(!0))}));return()=>{e(),t()}}),[]),d?e?h(Ge,{tag:l,className:t,observerCallback:p,observerOptions:{threshold:new Array(18).fill(0).map(We)},anchor:e,children:n}):h(c,{className:t,children:n}):null}));function We(e,t){const n=(t+1)/ze+.82;return Math.round(n*ze)/ze}const Je=p((({className:e="",documents:t,...n})=>h(He,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ue(t):null})}))),Ue=e=>e.map(((e,t)=>{const{text:n,...r}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),Ye={Headline:L,LinkDocs:J,TextBlock:Re,ProductBlock:Ie,Gallery:Me,LinkList:Je},Ke=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Xe({context:t,className:n})):[],Xe=({context:e,className:t})=>(n,r)=>{if(!n)return null;const{style:i,blockListType:l,...a}=n;if(!l||!(l in Ye))return null;const s=g(i);return h(Ye[l],{className:`${t} ${s}`,context:e,...a},`block_${r}`)},Qe=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[a,s]=r(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=i?i({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),Ze=p((({className:e="",isUnfolded:t,children:n})=>{const r=s(null);return i((()=>{r.current&&(r.current.style.maxHeight=t?`${r.current.scrollHeight}px`:"")}),[t]),h("div",{ref:r,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),qe=["PlusIcon","MinusIcon"],et=p((({label:e="",labelIcon:t,bordered:n,children:r,hasContent:i=!0})=>h("li",{className:`${nt(n)} border-solid border-main-divider`,children:h(Qe,{isFoldButtonOnTop:!0,renderFoldableSection:({isUnfolded:e})=>h(Ze,{className:"flex flex-wrap group-last:last:pb-0",isUnfolded:e,children:r}),renderFoldButton:({isUnfolded:r,onToggle:l})=>h(tt,{className:n?"":"py-[14px] px-0",label:e,icon:qe[Number(r)],primaryIcon:t,hasContent:i,onClick:l})})}))),tt=p((({className:e,hasContent:t,icon:n,label:r,primaryIcon:i,onClick:l})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${e}\n ${t?"group cursor-pointer":""}`,onClick:l,children:[u("span",{className:"text-m-title-xs font-medium pr-2.5 flex "+(t?"group-hover:text-primary-main":""),children:[i?h(I,{image:i,className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,r]}),t?h(I,{className:"flex-shrink-0",image:n,width:"24",height:"24",asSVG:!0}):null]})));function nt(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const rt=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),it=p((({title:e,description:t,accordionItems:n,context:r,className:i="",bordered:l,...a})=>u(He,{context:r,className:`py-6 px-4 font-sans bg-white text-primary-text ${i}`,...a,children:[e?h(f,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5 text-m-light text-center",children:t}):null,n?.length?h(rt,{children:n.map(((e,t)=>h(et,{context:r,bordered:l,hasContent:Boolean(e.blocks?.length),...e,children:Ke({blocks:e.blocks,context:r,className:"!p-0 mb-5"})},`AccordionItem_${t}`)))}):null]}))),lt=(e=!1)=>e?"text-white":"",at=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),st=p((({icon:e,image:t,title:n,subtitle:r,isFillGradient:i})=>u("div",{role:"columnheader",children:[e?h(I,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(I,{image:t})}),n?h(f,{headingType:"h4",className:lt(i),title:n}):null,r?h("div",{className:at(i),children:r}):null]}))),ot=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(ct(n,t))})}))),ct=(e,t)=>({label:n,description:r},i)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(i)),dt=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:i,onToggleColumn:l})=>{const a=t?.slice(0,i?t.length:n),s=r?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(st,{...e,isFillGradient:r}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(ot,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,i&&e?.link?h(ce,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,mt({onToggleColumn:l,isFillGradient:r,showRow:i})]})})),mt=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),ht=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(f,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(ut,{...e})})]})})),ut=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:i,orientation:a,context:s})=>{const[o,c]=r(new Array(e?.length||0).fill(!i)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:r},l)=>{return h(dt,{context:s,visibleRowLength:i,showRow:o[l],header:r,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l)},String(l));var a}));return"horizontal"===a?h(V,{context:s,onSlideChange:m,children:u}):u})),pt=new Map;function xt(e,t,{fallback:n}={}){const l=a((()=>gt(e)),[e]),[s,o]=r(),[c,d]=r(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};i((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>pt.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function gt(e){return e?Array.isArray(e)?e:e instanceof Function?gt(e()):[e]:[e]}async function bt(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function ft(e={}){const{data:t}=xt(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,bt,{fallback:e});return t||{}}const Nt=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:i}=(()=>{const[e,t]=r("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(I,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:h(I,{image:"CloseIcon",width:"24",height:"24"})}):h(ce,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),yt=p((({className:e=""})=>h(Nt,{className:e,isMobile:!0}))),vt={"bg-white":"text-primary-main",transparent:"text-white"},wt={"bg-white":"text-black",transparent:"text-white"},kt=p((({className:e="",href:t,children:n,targetBlank:r,bgColor:i="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:r?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(I,{image:{icon:"LogoIcon",iconVersion:vt[i]},className:`${vt[i]} w-10 h-[38px]`,asSVG:!0}),l?h("span",{className:`${wt[i]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),$t=p((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(kt,{className:"w-[33px]",bgColor:"transparent",showTitle:!0})}),u("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Ct=p((({className:e="",items:t,hasButton:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:e,children:[t?.length?t.map(St):null,n?h(ce,{version:"primary",className:"mb-6 w-full",...te({router:i,handlerDecorator:l},{text:"Обратная связь",href:"/",target:"_blank"}),ariaLabel:"Обратная связь"}):null]})})),St=(e,t)=>{const{type:n,text:r,description:i}=e;return u("div",{className:"mb-4",children:[h("div",{children:Tt(n,r)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Tt=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${_t(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},_t=e=>e.replaceAll(/\D/g,""),Dt=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:l,children:n||`Документ ${t}`}))),It=p((({title:e,links:t,className:n="",context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Dt,{index:t,className:"text-s",...te({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),jt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Rt=p((({href:e,version:t="primary"})=>{const{icon:n,label:r}=jt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":r,target:"_blank",rel:"noopener noreferrer",children:n?h(I,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Lt=p((({className:e,media:t,version:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>h(Rt,{version:n,...te({router:i,handlerDecorator:l},e)},String(t))))})})),At=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("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:r,target:i,onClick:l,children:n||`Документ ${t}`}))),Mt=p((({className:e,links:t,context:n})=>{const r=n.useRouter(),{handlerDecorator:i}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(At,{index:t,className:"",...te({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),Ot=p((({className:e="",documents:t,relatedEnterprises:n,contacts:r,socialMedia:i,context:l,horizontalNavigationTitle:a,page:s})=>{const o=s?.fallback,c=ft(o),d=c?.dispositions;return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Ct,{className:"overflow-hidden",items:r,context:l,hasButton:!0}),h(rt,{children:c.topItems?.map(((e,t)=>h(et,{context:l,label:e.text,children:h(Je,{context:l,documents:e.items})},String(t))))}),h("div",{children:d?.map(Bt)}),h($t,{context:l,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),h(yt,{context:l,className:"grow"}),h(Lt,{className:"pb-4",media:i,context:l}),h(It,{title:a,links:n,context:l}),h(Mt,{links:t,context:l})]})})),Bt=(e,t)=>{const{icon:n,href:r,text:i}=e;return u(ce,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?h(I,{className:"pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Pt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(K(e),(e=>(e||"").replace(Z,""))(K(Y(e)?t.href:t.pathname))),Vt=e=>t=>Pt(t.href,e),Ft=e=>t=>t.items?.some(Vt(e))||Pt(t.href,e)||((e,t)=>X(e)===X(t.href))(t.href,e),Et=e=>t=>e?.href===t?.href,Gt=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Et(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Et(e))))));var n,r,i},zt="absolute left-0 -bottom-3 w-full h-[2px]",Ht=p((({className:e="",text:t,href:n,target:r,active:i,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:r,onClick:l,children:[h("span",{className:Wt(s,i),children:t||a}),i?h("div",{className:Jt(s,i)}):null]}))),Wt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Jt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${zt}`:zt,Ut=o("https://10.80.4.9");const Yt=p((({context:e,burgerSubMenu:t,onClick:n,defaultLocation:a="",children:s})=>{const[o,c]=function(e){const[t,n]=r(e);return i((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{Ut.getFetcherAddress().then((t=>{const r=t||e;globalThis?.localStorage.setItem("location",r),n(r)}))}),[e])]}(a);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:n,children:h(I,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:c,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(I,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),s,h("div",{className:"mb-7",children:t?.map(Kt)}),h(yt,{context:e,className:"grow"})]})})),Kt=(e,t)=>{const{icon:n,href:r,text:i}=e;return u("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(I,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},Xt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(I,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(kt,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Qt=p((({className:e="",defaultLocation:t,bgColor:n="bg-white",context:i,topItems:l,page:a})=>{const{handlerDecorator:s}=i,o=i.useRouter(),c=a?.fallback,d=ft(c),m=Gt(d.topItems,l).find(Ft(o))?.items,p=(e=>(t=[])=>{const n=t?.filter(Vt(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(o)(m),[x,g]=r(!1),b=()=>g(!x);return u("header",{className:`${n} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(Xt,{onClick:b,bgColor:n}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Zt({...te({router:o,handlerDecorator:s},e),active:e===p,bgColor:n},t)))})})]}),x?h(Yt,{context:i,onClick:b,burgerSubMenu:d?.dispositions,defaultLocation:t,children:h(rt,{children:d.topItems?.map(((e,t)=>h(et,{context:i,label:e.text,children:h(Je,{context:i,documents:e.items})},String(t))))})}):null]})})),Zt=(e,t)=>h(Ht,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),qt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function en(e=""){const t=qt(e);return t<=4?"S":t<=8?"M":"L"}function tn(e=""){const t=qt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function nn(e=""){const t=qt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const rn=p((({className:e,context:t,title:n,description:r="Блок в разработке...",...i})=>u(He,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${nn(e)} ${tn(e)} `,...i,children:[h(L,{context:t,className:"!p-0 max-w-[600px]",title:n,description:r,headlineVersion:en(e)}),h("figure",{className:"m-0 min-w-[80%]",children:ln()})]}))),ln=(e=3)=>sn(100,e).map((e=>Math.floor(e))).map(an),an=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),sn=(e,t)=>[e].concat(t>0?sn(e/1.618,t-1):[]),on=p((({block:e,context:t,className:n=""})=>h("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${U[e?.version??"primary"]} ${n}`,role:"listitem",children:h("div",{className:"flex grow",children:h(Se,{context:t,...e})})}))),cn=p((({className:e,context:t,slides:n=[]})=>{const r=n.map((e=>e.productBlock));return h("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:h(V,{context:t,children:r.map(((e,n)=>h(on,{block:e,context:t},String(n))))})})})),dn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},mn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},hn={normal:"min-h-[70px]",small:"min-h-[50px]"},un={primary:"normal",secondary:"white"},pn=p((({className:e,title:t,description:n,showLines:r=!0,steps:i,size:l="normal",version:a="primary"})=>{const s=dn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(f,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,i?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(xn(l,a,r))})}):null]})})),xn=(e,t,n)=>(r,i,l)=>{const a=l.length-1===i,s="normal"===e?"ml-[34px]":"ml-6",o=dn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[gn(e,t)(r,i),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${hn[e]}`,children:[r.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?h("div",{className:`text-s ${o.description} text-left`,children:r.description}):null]})]})},String(i))},gn=(e,t)=>(n,r)=>{const i=dn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${mn[e]} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${i.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(I,{image:{...n.icon,iconVersion:un[t]},width:l,height:l,asSVG:!0}):h("span",{children:r+1}))})});var s},bn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,appendLeft:t,ariaLabel:n,...r},i)=>h(ce,{className:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,appendLeft:t,rounded:e,ariaLabel:n,...r},String(i))))}):null,Img:({image:e})=>e?.src?h(I,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(fe,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},fn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(f,{headingType:"h3",className:"font-medium",title:e}):null,t?h(I,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Nn=p((({context:e,header:t,data:n})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(fn,{...t}),n?.length?n.map(yn(e)):null]}))),yn=e=>(t,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,vn(t,e)]},String(n)),vn=(e,t)=>{if(!e)return null;const{tableCellType:n,...r}=e;if(!n||!(n in bn))return null;return h(bn[n],{context:t,...r})},wn=p((({tiles:e,context:t})=>h(V,{context:t,children:e.map(((e,t)=>h(Nn,{...e},String(t))))}))),kn=p((({tiles:e})=>h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>h(Nn,{...e},String(t))))}))),$n=p((({className:e,context:t,title:n,description:r,tariffsColumns:i,rowHeaders:l,orientation:a="vertical"})=>{const s=Sn(i),o=Tn(l,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[n?h(f,{headingType:"h2",className:`text-center ${r?"mb-2":"mb-5"}`,title:n}):null,r?h("div",{className:"mb-5 text-center text-m",children:r}):null,o?.length?Cn(a,o,t):null]})}));function Cn(e,t,n){return h("vertical"===e?kn:wn,{context:n,tiles:t})}const Sn=e=>e?.[0].data?e[0].data:[],Tn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),_n={Accordion:it,ComparisonTable:ht,Footer:Ot,Gallery:Me,Header:Qt,Headline:L,LinkDocs:J,LinkList:Je,MobileAppTile:$t,ProductBlock:Ie,ProductGallery:cn,StepsBlock:pn,TariffsTable:$n,TextBlock:Re,Placeholder:rn},Dn=m();const In=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:jn()}))),jn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},Rn=p((({className:e,context:t,...n})=>{const{useRouter:a,handlerDecorator:s=ee}=t,o=function(e){const[t,n]=r(0);return i((()=>{(async()=>{const[t]=await Dn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Dn.like(e))}),[e]),dislike:l((async()=>{n(await Dn.dislike(e))}),[e])}}(a().pathname);return u(He,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(In,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(In,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})})),Ln=[null];function An(e,t,n=Ln){const{key:r,page:i,blockDecorator:l,blocksRegistry:a,context:s}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return l({blockClassName:`scroll-mt-12 ${g(e.style)}`,block:e,ancestors:n,render:({block:l,blockClassName:a})=>{const{version:o,content:d,anchor:m,labels:u,blocks:p}=l,x=p?p.map(((r,i)=>An(r,{...t,key:`${t.key}-${i}`},[...n,e]))):null;return c?h(c,{className:a,version:o,context:s,page:i,anchor:m,labels:u,...d,children:x},r):null}},r)}const Mn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),On=p((e=>{const{className:t="",context:n,data:r={}}=e,{style:i,blocks:l,slots:a,likeControl:s,colorPalette:o="pc"}=r,c=function({blocksRegistry:e,data:t,blockDecorator:n,context:r}){return(i,l)=>i.map(((i,a)=>An(i,{key:`${i.type||"#"}-${a}`,blocksRegistry:e,page:t||{},blockDecorator:n||Mn,context:r},l)))}(e);return u("section",{className:`relative ${g(i)} ${t}`,"data-theme":o,children:[a?.header?.blocks?.length?h("div",{className:`${g(a.header.style)}`,children:c(a.header.blocks,["header"])}):null,l?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:c(l)}):null,s?Bn(n):null]})}));function Bn(e){return h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Rn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:e},"LikeControl")})}e.Blocks=_n,e.ContentPage=On,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Q,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { AlignType } from '../../model/AlignType';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
4
|
import type { Picture } from '../../model/Picture';
|
|
4
5
|
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
5
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
6
|
-
/**
|
|
7
|
-
* @title Элемент списка
|
|
8
|
-
*/
|
|
9
6
|
export interface AccordionItemCommonProps {
|
|
10
7
|
/**
|
|
11
8
|
* @title Название
|
|
@@ -14,8 +11,6 @@ export interface AccordionItemCommonProps {
|
|
|
14
11
|
label?: string;
|
|
15
12
|
/** @title Отображать в раскрытом виде */
|
|
16
13
|
isExpanded?: boolean;
|
|
17
|
-
/** @title Блоки */
|
|
18
|
-
blocks?: BlockDef[];
|
|
19
14
|
/**
|
|
20
15
|
* @title Отображать/скрывать обводку элемента
|
|
21
16
|
* @default false
|
|
@@ -23,6 +18,13 @@ export interface AccordionItemCommonProps {
|
|
|
23
18
|
bordered?: boolean;
|
|
24
19
|
labelIcon?: Picture;
|
|
25
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @title Элемент списка
|
|
23
|
+
*/
|
|
24
|
+
export interface AccordionItem extends AccordionItemCommonProps {
|
|
25
|
+
/** @title Блоки */
|
|
26
|
+
blocks?: BlockDef[];
|
|
27
|
+
}
|
|
26
28
|
/**
|
|
27
29
|
* @title Аккордеон
|
|
28
30
|
*/
|
|
@@ -34,7 +36,7 @@ export declare type AccordionContent = HeadlineCommonProps & {
|
|
|
34
36
|
accordionAlignTitle?: AlignType;
|
|
35
37
|
version?: BlockVersion;
|
|
36
38
|
/** @title Список */
|
|
37
|
-
accordionItems?:
|
|
39
|
+
accordionItems?: AccordionItem[];
|
|
38
40
|
/**
|
|
39
41
|
* @title Отображать/скрывать обводку у элемента списка
|
|
40
42
|
* @default false
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
-
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
-
}
|
|
1
|
+
import type { AccordionItemProps } from './AccordionItemProps';
|
|
5
2
|
export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
+
import type { InvestmentInfoContent } from './InvestmentInfoContent';
|
|
3
|
+
export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<InvestmentInfoProps, any, any>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
2
|
+
/**
|
|
3
|
+
* @title Цвет
|
|
4
|
+
* @enumNames ["Желтый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
|
|
5
|
+
*/
|
|
6
|
+
export declare type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
|
|
7
|
+
/**
|
|
8
|
+
* @title Высота
|
|
9
|
+
* @enumNames ["Очень большой", "Большой", "Средний", "Маленький", "Очень маленький"]
|
|
10
|
+
*/
|
|
11
|
+
export declare type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
12
|
+
/**
|
|
13
|
+
* @title Ячейка
|
|
14
|
+
*/
|
|
15
|
+
export declare type InvestmentCell = {
|
|
16
|
+
/** @title Текст */
|
|
17
|
+
text?: string;
|
|
18
|
+
cellColor?: InvestmentCellColor;
|
|
19
|
+
cellSize?: InvestmentCellSize;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @title Элемент данных 1
|
|
23
|
+
*/
|
|
24
|
+
export declare type InvestmentZeroColumn = {
|
|
25
|
+
/** @title Название */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** @hidden */
|
|
28
|
+
cells?: InvestmentCell[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @title Элемент данных
|
|
32
|
+
*/
|
|
33
|
+
export declare type InvestmentColumn = {
|
|
34
|
+
/** @title Название */
|
|
35
|
+
title?: string;
|
|
36
|
+
/** @title Ячейки */
|
|
37
|
+
cells?: InvestmentCell[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @title Блок инвестиций
|
|
41
|
+
*/
|
|
42
|
+
export declare type InvestmentInfoContent = ListContent & {
|
|
43
|
+
/** @title Буллиты */
|
|
44
|
+
isDotted?: boolean;
|
|
45
|
+
/** @title Элемент данных 1 */
|
|
46
|
+
investmentZeroColumn?: InvestmentZeroColumn;
|
|
47
|
+
/** @title Остальные элементы данных */
|
|
48
|
+
investmentColumns?: InvestmentColumn[];
|
|
49
|
+
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
export declare const renderItems: (items
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
export declare const renderItems: ({ items, isDotted, version, className, }: {
|
|
4
|
+
items?: string[] | undefined;
|
|
5
|
+
isDotted?: boolean | undefined;
|
|
6
|
+
version?: BlockVersion | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
}) => JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
|
|
4
|
+
import type { Step } from './StepsBlockContent';
|
|
5
|
+
import type { StyleType } from './StepsBlockStyleMaps';
|
|
6
|
+
export declare const renderStepContent: ({ styleMap, isMainButton, version, router, handlerDecorator, }: {
|
|
7
|
+
styleMap: StyleType;
|
|
8
|
+
isMainButton: boolean;
|
|
9
|
+
version: BlockVersion;
|
|
10
|
+
router: Router;
|
|
11
|
+
handlerDecorator?: HandlerDecorator | undefined;
|
|
12
|
+
}) => (step: Step, i: number, { length }: {
|
|
13
|
+
length: number;
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BlockDef, Slot, SlotsMap } from './ContentPageDef';
|
|
2
2
|
export declare const DEFAULT_SLOT_NAME: null;
|
|
3
3
|
export declare type BlockAncestors = [keyof SlotsMap | typeof DEFAULT_SLOT_NAME, ...Slot[]];
|
|
4
|
+
export declare const DEFAULT_ANCESTORS: BlockAncestors;
|
|
4
5
|
interface BlockDecoratorProps<VNode> {
|
|
5
6
|
blockClassName: string;
|
|
6
7
|
block: BlockDef;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { UNIComponent } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from './ContentPageDef';
|
|
3
3
|
import type { VNode } from './VNode';
|
|
4
|
-
export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]
|
|
4
|
+
export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]> & {
|
|
5
|
+
childrenTypes?: string[];
|
|
6
|
+
renderChild?: (child: VNode, i: number) => VNode;
|
|
7
|
+
};
|
|
5
8
|
export declare type BlocksRegistry<BlockProps = Record<string, any>> = Record<string, JSXBlock<BlockProps>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
3
|
+
import type { IconName } from '../Icon/IconProps';
|
|
4
|
+
import type { FoldablePartProps } from './FoldablePartProps';
|
|
5
|
+
interface DefaultFoldButtonProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: IconName;
|
|
9
|
+
dataTheme?: ColorPalette;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const DefaultFoldButton: import("@redneckz/uni-jsx").UNIComponent<DefaultFoldButtonProps, any, any>;
|
|
13
|
+
export declare const renderDefaultFoldButton: ({ isUnfolded, onToggle }: FoldablePartProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import type { VNode } from '../../model/VNode';
|
|
2
|
-
|
|
3
|
-
isUnfolded: boolean;
|
|
4
|
-
onToggle: () => void;
|
|
5
|
-
}
|
|
2
|
+
import type { FoldablePartProps } from './FoldablePartProps';
|
|
6
3
|
export interface FoldableProps {
|
|
7
|
-
blocks?: VNode[];
|
|
8
|
-
hiddenBlocksNum?: number;
|
|
9
4
|
unfoldedByDefault?: boolean;
|
|
10
5
|
isFoldButtonOnTop?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
renderFoldButton?: (props: RenderFoldButtonProps) => VNode;
|
|
6
|
+
renderFoldableSection: (props: FoldablePartProps) => VNode;
|
|
7
|
+
renderFoldButton?: (props: FoldablePartProps) => VNode;
|
|
14
8
|
}
|
|
15
9
|
export declare const Foldable: import("@redneckz/uni-jsx").UNIComponent<FoldableProps, any, any>;
|
|
16
|
-
export {};
|
|
@@ -2,9 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Accordion = 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 renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
5
7
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
8
|
const AccordionItem_1 = require("./AccordionItem");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
const AccordionItemsList_1 = require("./AccordionItemsList");
|
|
10
|
+
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered, ...rest }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-light text-center", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, bordered: bordered, hasContent: Boolean(item.blocks?.length), ...item, children: (0, renderBlocksList_1.renderBlocksList)({ blocks: item.blocks, context, className: '!p-0 mb-5' }) }, `AccordionItem_${i}`))) })) : null] }));
|
|
9
12
|
});
|
|
10
13
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,mDAAgD;
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+EAA4E;AAC5E,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;AAChD,6DAA0D;AAI7C,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,kDAAkD,SAAS,EAAE,KACpE,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,uBAAC,uCAAkB,cAChB,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,IAEZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KACpC,IAAI,YAEP,IAAA,mCAAgB,EAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,IANtE,iBAAiB,CAAC,EAAE,CAOX,CACjB,CAAC,GACiB,CACtB,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { AlignType } from '../../model/AlignType';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
4
|
import type { Picture } from '../../model/Picture';
|
|
4
5
|
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
5
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
6
|
-
/**
|
|
7
|
-
* @title Элемент списка
|
|
8
|
-
*/
|
|
9
6
|
export interface AccordionItemCommonProps {
|
|
10
7
|
/**
|
|
11
8
|
* @title Название
|
|
@@ -14,8 +11,6 @@ export interface AccordionItemCommonProps {
|
|
|
14
11
|
label?: string;
|
|
15
12
|
/** @title Отображать в раскрытом виде */
|
|
16
13
|
isExpanded?: boolean;
|
|
17
|
-
/** @title Блоки */
|
|
18
|
-
blocks?: BlockDef[];
|
|
19
14
|
/**
|
|
20
15
|
* @title Отображать/скрывать обводку элемента
|
|
21
16
|
* @default false
|
|
@@ -23,6 +18,13 @@ export interface AccordionItemCommonProps {
|
|
|
23
18
|
bordered?: boolean;
|
|
24
19
|
labelIcon?: Picture;
|
|
25
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @title Элемент списка
|
|
23
|
+
*/
|
|
24
|
+
export interface AccordionItem extends AccordionItemCommonProps {
|
|
25
|
+
/** @title Блоки */
|
|
26
|
+
blocks?: BlockDef[];
|
|
27
|
+
}
|
|
26
28
|
/**
|
|
27
29
|
* @title Аккордеон
|
|
28
30
|
*/
|
|
@@ -34,7 +36,7 @@ export declare type AccordionContent = HeadlineCommonProps & {
|
|
|
34
36
|
accordionAlignTitle?: AlignType;
|
|
35
37
|
version?: BlockVersion;
|
|
36
38
|
/** @title Список */
|
|
37
|
-
accordionItems?:
|
|
39
|
+
accordionItems?: AccordionItem[];
|
|
38
40
|
/**
|
|
39
41
|
* @title Отображать/скрывать обводку у элемента списка
|
|
40
42
|
* @default false
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
-
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
-
}
|
|
1
|
+
import type { AccordionItemProps } from './AccordionItemProps';
|
|
5
2
|
export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
|
|
@@ -2,14 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.AccordionItem = 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 renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
5
|
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
6
|
+
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
8
|
const icons = ['PlusIcon', 'MinusIcon'];
|
|
9
|
-
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', labelIcon,
|
|
10
|
-
const foldableBlocks = blocks ? (0, renderBlocksList_1.renderBlocksList)({ context, blocks, className: '!px-0' }) : [];
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "flex flex-wrap group-last:last:pb-0", renderFoldButton: (props) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', icon: icons[Number(props.isUnfolded)], label: label, primaryIcon: labelIcon, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
|
|
12
|
-
});
|
|
9
|
+
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', labelIcon, bordered, children, hasContent = true }) => ((0, jsx_runtime_1.jsx)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, hasContent: hasContent, onClick: onToggle })) }) })));
|
|
13
10
|
const FoldButton = (0, uni_jsx_1.JSX)(({ className, hasContent, icon, label, primaryIcon, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
14
11
|
${className}
|
|
15
12
|
${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsxs)("span", { className: `text-m-title-xs font-medium pr-2.5 flex ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex-shrink-0", image: icon, width: "24", height: "24", asSVG: true })) : null] })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAG3C,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACpE,+BAAI,SAAS,EAAE,GAAG,eAAe,CAAC,QAAQ,CAAC,mCAAmC,YAC5E,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,SAAS,EAAC,qCAAqC,EAAC,UAAU,EAAE,UAAU,YACpF,QAAQ,GACO,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAC3C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,WAAW,EAAE,SAAS,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CACF,CAAC;AAWF,MAAM,UAAU,GAAG,IAAA,aAAG,EACpB,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChE,oCACE,SAAS,EAAE;IACb,SAAS;IACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EACxC,OAAO,EAAE,OAAO,aAEhB,kCACE,SAAS,EAAE,2CACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,aAED,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,SAAG,IAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACxF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IACD,EACN,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,SAAG,IAAC,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAC5E,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,QAAkB;IACzC,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCAAmC,CAAC;AACpF,CAAC"}
|