@redneckz/wildless-cms-uni-blocks 0.14.841 → 0.14.843
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 +30 -148
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/Header/HeaderTopMenu.js +1 -1
- package/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -1
- package/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/Header/HeaderTopMenu.js +1 -1
- package/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/bundle/bundle.umd.js +22 -147
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/package.json +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -16
- package/src/components/Carousel/Carousel.fixture.tsx +0 -35
- package/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/TextInformationLink.tsx +1 -1
- package/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/src/icons/IconName.ts +4 -4
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/src/ui-kit/Loader/Loader.tsx +1 -1
- package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/bundle/components/CarouselCard/constants.d.ts +0 -2
- package/bundle/components/CarouselCard/titleSize.d.ts +0 -1
- package/bundle/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/bundle/components/Depository/Depository.d.ts +0 -11
- package/bundle/components/Depository/DepositoryContent.d.ts +0 -5
- package/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
- package/bundle/components/Depository/DepositoryItem.d.ts +0 -2
- package/bundle/components/Depository/useDepository.d.ts +0 -15
- package/bundle/ui-kit/Unit/Unit.d.ts +0 -2
- package/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/dist/components/CarouselCard/CarouselCard.js +0 -16
- package/dist/components/CarouselCard/CarouselCard.js.map +0 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/dist/components/CarouselCard/CarouselCardContent.js +0 -2
- package/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/dist/components/CarouselCard/constants.d.ts +0 -2
- package/dist/components/CarouselCard/constants.js +0 -7
- package/dist/components/CarouselCard/constants.js.map +0 -1
- package/dist/components/CarouselCard/titleSize.d.ts +0 -1
- package/dist/components/CarouselCard/titleSize.js +0 -4
- package/dist/components/CarouselCard/titleSize.js.map +0 -1
- package/dist/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/dist/components/CarouselCard/titleSize.mobile.js +0 -4
- package/dist/components/CarouselCard/titleSize.mobile.js.map +0 -1
- package/dist/components/Depository/Depository.d.ts +0 -11
- package/dist/components/Depository/Depository.js +0 -42
- package/dist/components/Depository/Depository.js.map +0 -1
- package/dist/components/Depository/DepositoryContent.d.ts +0 -5
- package/dist/components/Depository/DepositoryContent.js +0 -2
- package/dist/components/Depository/DepositoryContent.js.map +0 -1
- package/dist/components/Depository/DepositoryFilter.d.ts +0 -9
- package/dist/components/Depository/DepositoryFilter.js +0 -9
- package/dist/components/Depository/DepositoryFilter.js.map +0 -1
- package/dist/components/Depository/DepositoryItem.d.ts +0 -2
- package/dist/components/Depository/DepositoryItem.js +0 -15
- package/dist/components/Depository/DepositoryItem.js.map +0 -1
- package/dist/components/Depository/useDepository.d.ts +0 -15
- package/dist/components/Depository/useDepository.js +0 -22
- package/dist/components/Depository/useDepository.js.map +0 -1
- package/dist/ui-kit/Unit/Unit.d.ts +0 -2
- package/dist/ui-kit/Unit/Unit.js +0 -9
- package/dist/ui-kit/Unit/Unit.js.map +0 -1
- package/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/dist/ui-kit/Unit/UnitProps.js +0 -2
- package/dist/ui-kit/Unit/UnitProps.js.map +0 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +0 -11
- package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +0 -7
- package/lib/components/CarouselCard/CarouselCard.js +0 -14
- package/lib/components/CarouselCard/CarouselCard.js.map +0 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/lib/components/CarouselCard/CarouselCardContent.js +0 -2
- package/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/lib/components/CarouselCard/constants.d.ts +0 -2
- package/lib/components/CarouselCard/constants.js +0 -5
- package/lib/components/CarouselCard/constants.js.map +0 -1
- package/lib/components/CarouselCard/titleSize.d.ts +0 -1
- package/lib/components/CarouselCard/titleSize.js +0 -2
- package/lib/components/CarouselCard/titleSize.js.map +0 -1
- package/lib/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/lib/components/CarouselCard/titleSize.mobile.js +0 -2
- package/lib/components/CarouselCard/titleSize.mobile.js.map +0 -1
- package/lib/components/Depository/Depository.d.ts +0 -11
- package/lib/components/Depository/Depository.fixture.d.ts +0 -5
- package/lib/components/Depository/Depository.fixture.mobile.d.ts +0 -5
- package/lib/components/Depository/Depository.js +0 -40
- package/lib/components/Depository/Depository.js.map +0 -1
- package/lib/components/Depository/DepositoryContent.d.ts +0 -5
- package/lib/components/Depository/DepositoryContent.js +0 -2
- package/lib/components/Depository/DepositoryContent.js.map +0 -1
- package/lib/components/Depository/DepositoryFilter.d.ts +0 -9
- package/lib/components/Depository/DepositoryFilter.js +0 -7
- package/lib/components/Depository/DepositoryFilter.js.map +0 -1
- package/lib/components/Depository/DepositoryItem.d.ts +0 -2
- package/lib/components/Depository/DepositoryItem.js +0 -13
- package/lib/components/Depository/DepositoryItem.js.map +0 -1
- package/lib/components/Depository/useDepository.d.ts +0 -15
- package/lib/components/Depository/useDepository.js +0 -19
- package/lib/components/Depository/useDepository.js.map +0 -1
- package/lib/ui-kit/Unit/Unit.d.ts +0 -2
- package/lib/ui-kit/Unit/Unit.js +0 -7
- package/lib/ui-kit/Unit/Unit.js.map +0 -1
- package/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/lib/ui-kit/Unit/UnitProps.js +0 -2
- package/lib/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/bundle/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/bundle/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/bundle/components/Depository/Depository.d.ts +0 -11
- package/mobile/bundle/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/bundle/components/Depository/useDepository.d.ts +0 -15
- package/mobile/bundle/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/dist/components/CarouselCard/CarouselCard.js +0 -16
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +0 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js +0 -2
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/dist/components/CarouselCard/constants.js +0 -7
- package/mobile/dist/components/CarouselCard/constants.js.map +0 -1
- package/mobile/dist/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/dist/components/CarouselCard/titleSize.js +0 -4
- package/mobile/dist/components/CarouselCard/titleSize.js.map +0 -1
- package/mobile/dist/components/Depository/Depository.d.ts +0 -11
- package/mobile/dist/components/Depository/Depository.js +0 -42
- package/mobile/dist/components/Depository/Depository.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/dist/components/Depository/DepositoryContent.js +0 -2
- package/mobile/dist/components/Depository/DepositoryContent.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/dist/components/Depository/DepositoryFilter.js +0 -9
- package/mobile/dist/components/Depository/DepositoryFilter.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/dist/components/Depository/DepositoryItem.js +0 -15
- package/mobile/dist/components/Depository/DepositoryItem.js.map +0 -1
- package/mobile/dist/components/Depository/useDepository.d.ts +0 -15
- package/mobile/dist/components/Depository/useDepository.js +0 -22
- package/mobile/dist/components/Depository/useDepository.js.map +0 -1
- package/mobile/dist/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/dist/ui-kit/Unit/Unit.js +0 -9
- package/mobile/dist/ui-kit/Unit/Unit.js.map +0 -1
- package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/dist/ui-kit/Unit/UnitProps.js +0 -2
- package/mobile/dist/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/lib/components/CarouselCard/CarouselCard.js +0 -14
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +0 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js +0 -2
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/lib/components/CarouselCard/constants.js +0 -5
- package/mobile/lib/components/CarouselCard/constants.js.map +0 -1
- package/mobile/lib/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/lib/components/CarouselCard/titleSize.js +0 -2
- package/mobile/lib/components/CarouselCard/titleSize.js.map +0 -1
- package/mobile/lib/components/Depository/Depository.d.ts +0 -11
- package/mobile/lib/components/Depository/Depository.js +0 -40
- package/mobile/lib/components/Depository/Depository.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/lib/components/Depository/DepositoryContent.js +0 -2
- package/mobile/lib/components/Depository/DepositoryContent.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/lib/components/Depository/DepositoryFilter.js +0 -7
- package/mobile/lib/components/Depository/DepositoryFilter.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/lib/components/Depository/DepositoryItem.js +0 -13
- package/mobile/lib/components/Depository/DepositoryItem.js.map +0 -1
- package/mobile/lib/components/Depository/useDepository.d.ts +0 -15
- package/mobile/lib/components/Depository/useDepository.js +0 -19
- package/mobile/lib/components/Depository/useDepository.js.map +0 -1
- package/mobile/lib/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/lib/ui-kit/Unit/Unit.js +0 -7
- package/mobile/lib/ui-kit/Unit/Unit.js.map +0 -1
- package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/lib/ui-kit/Unit/UnitProps.js +0 -2
- package/mobile/lib/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +0 -14
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +0 -47
- package/mobile/src/components/CarouselCard/CarouselCard.ui.json +0 -1
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +0 -13
- package/mobile/src/components/CarouselCard/constants.ts +0 -6
- package/mobile/src/components/CarouselCard/titleSize.tsx +0 -1
- package/mobile/src/components/Depository/Depository.example.json +0 -6
- package/mobile/src/components/Depository/Depository.tsx +0 -84
- package/mobile/src/components/Depository/Depository.ui.json +0 -1
- package/mobile/src/components/Depository/DepositoryContent.ts +0 -6
- package/mobile/src/components/Depository/DepositoryFilter.tsx +0 -41
- package/mobile/src/components/Depository/DepositoryItem.tsx +0 -31
- package/mobile/src/components/Depository/useDepository.ts +0 -46
- package/mobile/src/ui-kit/Unit/Unit.tsx +0 -26
- package/mobile/src/ui-kit/Unit/UnitProps.ts +0 -8
- package/src/components/CarouselCard/CarouselCard.example.json +0 -14
- package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +0 -28
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +0 -53
- package/src/components/CarouselCard/CarouselCard.tsx +0 -47
- package/src/components/CarouselCard/CarouselCard.ui.json +0 -1
- package/src/components/CarouselCard/CarouselCardContent.ts +0 -13
- package/src/components/CarouselCard/constants.ts +0 -6
- package/src/components/CarouselCard/titleSize.mobile.tsx +0 -1
- package/src/components/CarouselCard/titleSize.tsx +0 -1
- package/src/components/Depository/Depository.example.json +0 -6
- package/src/components/Depository/Depository.fixture.mobile.tsx +0 -12
- package/src/components/Depository/Depository.fixture.tsx +0 -12
- package/src/components/Depository/Depository.tsx +0 -84
- package/src/components/Depository/Depository.ui.json +0 -1
- package/src/components/Depository/DepositoryContent.ts +0 -6
- package/src/components/Depository/DepositoryFilter.tsx +0 -41
- package/src/components/Depository/DepositoryItem.tsx +0 -31
- package/src/components/Depository/useDepository.ts +0 -46
- package/src/ui-kit/Unit/Unit.tsx +0 -26
- package/src/ui-kit/Unit/UnitProps.ts +0 -8
|
@@ -33,6 +33,6 @@ export const DraftDialog = JSX(function ({ task, isFromLead = false, sendAspects
|
|
|
33
33
|
const handleGoToNewTask = useCallback(() => {
|
|
34
34
|
navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
|
|
35
35
|
}, []);
|
|
36
|
-
return (_jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: _jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs
|
|
36
|
+
return (_jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: _jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [_jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), _jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [_jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), _jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=DraftDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAStF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,UAAU,EACzD,IAAI,EACJ,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,IAAI,EAClB,OAAO,GAAG,IAAI,GACf;IACC,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAC7C,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;IAEtC,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,GAAG,EAAE,EAAE,EA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W,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAClF,OAAO,EAAE,eAAe,GACxB,EACF,KAAC,iBAAiB,IAChB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB,EACnF,IAAI,EAAC,aAAa,EAClB,WAAW,EAAC,gHAAsB,EAClC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,GACjD,IACE,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -45,5 +45,5 @@ export const VerifyPhoneDialog = JSX(({ phone, code = true, withDescription = tr
|
|
|
45
45
|
return (_jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: _jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [_jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (_jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText(timeNextReq, handleSendCode), withDescription ? (_jsxs(RichText, { itemSize: "list-s", children: [_jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), _jsx("ul", { children: consents?.map((_, i) => (_jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? _jsx(Loader, { blur: false }) : null] }) }));
|
|
46
46
|
});
|
|
47
47
|
const renderNextButton = (disabled, onClick) => (_jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
|
|
48
|
-
const renderText = (timeNextReq, handleSendCode) => timeNextReq ? (_jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", _jsx(Timer, { className: "
|
|
48
|
+
const renderText = (timeNextReq, handleSendCode) => timeNextReq ? (_jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", _jsx(Timer, { className: "pl-2xs", seconds: timeNextReq })] })) : (_jsx(Button, { embedded: true, onClick: handleSendCode, children: _jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
|
|
49
49
|
//# sourceMappingURL=VerifyPhoneDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyPhoneDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE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rapper: 'flex flex-col justify-between lg:flex-row gap-
|
|
2
|
+
wrapper: 'flex flex-col justify-between lg:flex-row gap-4xl',
|
|
3
3
|
input: 'flex flex-col lg:w-1/2 gap-2xl',
|
|
4
4
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorStyle.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/CalculatorStyle.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CalculatorStyle.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/CalculatorStyle.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,mDAAmD;IAC5D,KAAK,EAAE,gCAAgC;IACvC,MAAM,EAAE,iCAAiC;CAC1C,CAAC"}
|
|
@@ -21,7 +21,7 @@ export const InputRange = JSX((props) => {
|
|
|
21
21
|
const handleChange = useCallback((ev) => {
|
|
22
22
|
onChange && onChange(parseDecimal(ev.target?.value));
|
|
23
23
|
}, [onChange]);
|
|
24
|
-
return (_jsxs("div", { className: className, children: [_jsxs("label", { className: "block relative", children: [title ? (_jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, _jsx("input", { className: style('text-h3 w-full h-14', 'pl-m
|
|
24
|
+
return (_jsxs("div", { className: className, children: [_jsxs("label", { className: "block relative", children: [title ? (_jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, _jsx("input", { className: style('text-h3 w-full h-14', 'pl-m box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
|
|
25
25
|
});
|
|
26
26
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
27
27
|
const renderRangeCaption = (items) => (_jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (_jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputRange.js","sourceRoot":"","sources":["../../../src/ui-kit/InputRange/InputRange.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,kBAAkB,GAAG,+CAA+C,CAAC;AAE3E,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,EACJ,SAAS,EACT,KAAK,EACL,KAAK,GAAG,EAAE,EACV,IAAI,GAAG,EAAE,EACT,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EACnC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC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A4B,YACxC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,KAAC,IAAI,IAAiB,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9E,IAAI,IADI,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,GACE,CACP,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { iconStyleMap } from './buttonClassNameConstants.js';
|
|
|
6
6
|
export const ButtonInner = JSX((props) => {
|
|
7
7
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
8
8
|
const iconHideStyle = isWithText(props) && 'hidden lg:block';
|
|
9
|
-
return (_jsxs("div", { className: style(buttonStyle(props), 'flex gap-xs'), children: [appendLeft ? (_jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendLeft })) : null, isWithText(props) ? (_jsxs("div", { className: "whitespace-pre", children: [aboveText ? _jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, _jsx("div", { className: `text-left ${aboveText ? 'text-s
|
|
9
|
+
return (_jsxs("div", { className: style(buttonStyle(props), 'flex gap-xs'), children: [appendLeft ? (_jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendLeft })) : null, isWithText(props) ? (_jsxs("div", { className: "whitespace-pre", children: [aboveText ? _jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, _jsx("div", { className: `text-left ${aboveText ? 'text-s' : 'text-l'}`, children: text })] })) : null, appendRight ? (_jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendRight })) : null] }));
|
|
10
10
|
});
|
|
11
11
|
const buttonStyle = (props) => {
|
|
12
12
|
const { version, aboveText, rounded } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAA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C,EACvC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,EACtD;QACE,cAAc,EAAE,OAAO;KACxB,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAmB,EAAE,EAAE,CACtE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/ui-kit/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/ui-kit/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAU1C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,KAAK,GAAG,mBAAmB,EAAE,QAAQ,GAAG,UAAU,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACrF,cACE,SAAS,EAAE,KAAK,CAAC,qDAAqD,EAAE,QAAQ,EAAE;QAChF,eAAe,EAAE,IAAI;KACtB,CAAC,YAEF,cACE,SAAS,EAAE,KAAK,CACd,cAAc,EACd,2BAA2B,EAC3B,6BAA6B,EAC7B,sBAAsB,EACtB,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,EAC5D,KAAK,CACN,EACD,IAAI,EAAC,QAAQ,GACb,GACE,CACP,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
4
|
-
export const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (_jsxs("div", { children: [_jsx("div", { className: "h-4 w-full bg-gray relative", children: _jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), _jsxs("div", { className: "relative", children: [showPercentage ? _jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? _jsx("div", { className: "text-right
|
|
4
|
+
export const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (_jsxs("div", { children: [_jsx("div", { className: "h-4 w-full bg-gray relative", children: _jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), _jsxs("div", { className: "relative", children: [showPercentage ? _jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? _jsx("div", { className: "text-right pr-m text-gray", children: description }) : null] })] })));
|
|
5
5
|
//# sourceMappingURL=ProgressBar.js.map
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
const ButtonInner = JSX((props) => {
|
|
522
522
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
523
523
|
const iconHideStyle = isWithText(props) && 'hidden lg:block';
|
|
524
|
-
return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s
|
|
524
|
+
return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendRight })) : null] }));
|
|
525
525
|
});
|
|
526
526
|
const buttonStyle$1 = (props) => {
|
|
527
527
|
const { version, aboveText, rounded } = props;
|
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
const handleChange = useCallback((ev) => {
|
|
1587
1587
|
onChange && onChange(parseDecimal(ev.target?.value));
|
|
1588
1588
|
}, [onChange]);
|
|
1589
|
-
return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m
|
|
1589
|
+
return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
|
|
1590
1590
|
});
|
|
1591
1591
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
1592
1592
|
const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
@@ -3978,7 +3978,7 @@
|
|
|
3978
3978
|
const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
|
|
3979
3979
|
|
|
3980
3980
|
const CalculatorStyle = {
|
|
3981
|
-
wrapper: 'flex flex-col justify-between lg:flex-row gap-
|
|
3981
|
+
wrapper: 'flex flex-col justify-between lg:flex-row gap-4xl',
|
|
3982
3982
|
input: 'flex flex-col lg:w-1/2 gap-2xl',
|
|
3983
3983
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
3984
3984
|
};
|
|
@@ -5092,7 +5092,7 @@
|
|
|
5092
5092
|
.then((res) => res.text())
|
|
5093
5093
|
.then((text) => text === 'OK');
|
|
5094
5094
|
|
|
5095
|
-
const ICON_SIZE
|
|
5095
|
+
const ICON_SIZE = { width: '103', height: '21' };
|
|
5096
5096
|
|
|
5097
5097
|
const logoTitleSizeStyle = 'text-s';
|
|
5098
5098
|
|
|
@@ -5118,7 +5118,7 @@
|
|
|
5118
5118
|
'bg-white': 'text-primary-text',
|
|
5119
5119
|
transparent: 'text-white',
|
|
5120
5120
|
};
|
|
5121
|
-
const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, data, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: logo?.href ?? href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title ?? 'Россельхозбанк', ...getAspectsAttributes(data), children: [renderImage(bgColor, logo?.image, ICON_SIZE
|
|
5121
|
+
const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, data, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: logo?.href ?? href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title ?? 'Россельхозбанк', ...getAspectsAttributes(data), children: [renderImage(bgColor, logo?.image, ICON_SIZE), showTitle
|
|
5122
5122
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
5123
5123
|
: null] })));
|
|
5124
5124
|
|
|
@@ -5149,7 +5149,7 @@
|
|
|
5149
5149
|
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
5150
5150
|
}, []);
|
|
5151
5151
|
useEffect(handleCreateCaptcha, []);
|
|
5152
|
-
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center
|
|
5152
|
+
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: close, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
5153
5153
|
});
|
|
5154
5154
|
|
|
5155
5155
|
const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
|
|
@@ -5274,7 +5274,7 @@
|
|
|
5274
5274
|
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
5275
5275
|
});
|
|
5276
5276
|
const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
|
|
5277
|
-
const renderText$2 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "
|
|
5277
|
+
const renderText$2 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "pl-2xs", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
|
|
5278
5278
|
|
|
5279
5279
|
const defaultConsentText = {
|
|
5280
5280
|
title: 'Подпишите согласие на запрос в БКИ',
|
|
@@ -5611,7 +5611,7 @@
|
|
|
5611
5611
|
const handleGoToNewTask = useCallback(() => {
|
|
5612
5612
|
navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
|
|
5613
5613
|
}, []);
|
|
5614
|
-
return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs
|
|
5614
|
+
return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
|
|
5615
5615
|
});
|
|
5616
5616
|
|
|
5617
5617
|
const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
|
|
@@ -6590,9 +6590,9 @@
|
|
|
6590
6590
|
};
|
|
6591
6591
|
|
|
6592
6592
|
const EMPTY_SCHEMA = {};
|
|
6593
|
-
const initialFiltrationState$
|
|
6593
|
+
const initialFiltrationState$1 = {};
|
|
6594
6594
|
const BankAccountFiltration = UniBlock(({ className, filtrationSchema = EMPTY_SCHEMA, consumerField = {}, resetButton, ...rest }) => {
|
|
6595
|
-
const [, { blocksToRender }, { field, reset }] = useFiltrationForm(initialFiltrationState$
|
|
6595
|
+
const [, { blocksToRender }, { field, reset }] = useFiltrationForm(initialFiltrationState$1, {
|
|
6596
6596
|
block: rest.block,
|
|
6597
6597
|
page: rest.options?.page,
|
|
6598
6598
|
});
|
|
@@ -6631,7 +6631,7 @@
|
|
|
6631
6631
|
const isMobileMode = useMobileMode();
|
|
6632
6632
|
return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: getAlignStyles(isMobileMode), title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] }));
|
|
6633
6633
|
});
|
|
6634
|
-
const renderBenefit = ({ label, description, __html, icon, isDotted = false, iconBgVersion }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-
|
|
6634
|
+
const renderBenefit = ({ label, description, __html, icon, isDotted = false, iconBgVersion }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-lg", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", iconBgVersion: iconBgVersion, ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), __html ? jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) : null] })) : null] }, String(i)));
|
|
6635
6635
|
|
|
6636
6636
|
const bonusBenefitStyles = 'justify-between p-m h-full border border-gray';
|
|
6637
6637
|
|
|
@@ -7271,7 +7271,7 @@
|
|
|
7271
7271
|
...field('moneyExtra'),
|
|
7272
7272
|
value: calcParams.moneyExtra,
|
|
7273
7273
|
})
|
|
7274
|
-
: null, jsx("div", { className: "sm:hidden
|
|
7274
|
+
: null, jsx("div", { className: "sm:hidden pb-m border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
|
|
7275
7275
|
});
|
|
7276
7276
|
const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
|
|
7277
7277
|
|
|
@@ -7336,7 +7336,7 @@
|
|
|
7336
7336
|
const FAILED_TITLE = 'Ошибка перевода';
|
|
7337
7337
|
const SubmitFailedDialog = ({ onClose, errorCode, errorMessage, }) => {
|
|
7338
7338
|
const description = errorCode ? `Код ошибки - ${errorCode}` : 'Пожалуйста, повторите позднее';
|
|
7339
|
-
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl
|
|
7339
|
+
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12", children: [jsx("div", { className: "col-span-8", children: errorMessage }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
|
|
7340
7340
|
};
|
|
7341
7341
|
|
|
7342
7342
|
const useSubmitCardTransfer = (formType) => {
|
|
@@ -7371,16 +7371,11 @@
|
|
|
7371
7371
|
amount: 1500,
|
|
7372
7372
|
};
|
|
7373
7373
|
const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, button, formType = 'private', ...rest }) => {
|
|
7374
|
-
const [isDisabled, { setValue: setDisabled }] = useBool(false);
|
|
7375
7374
|
const handleSubmit = useSubmitCardTransfer(formType);
|
|
7376
7375
|
const [{ amount }, { field, onSubmit }] = useForm(INITIAL_FORM_STATE, {
|
|
7377
7376
|
onSubmit: handleSubmit,
|
|
7378
7377
|
});
|
|
7379
|
-
|
|
7380
|
-
useEffect(() => {
|
|
7381
|
-
setDisabled(amount <= 0);
|
|
7382
|
-
}, [amount]);
|
|
7383
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", onSubmit: onSubmit, children: [jsx(CurrencyInput, { valid: !isDisabled, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(SubmitButton$1, { className: "w-full mt-lg", disabled: isDisabled, children: button.text })) : null] })] }));
|
|
7378
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col gap-4xl items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-md space-y-lg", method: "POST", onSubmit: onSubmit, children: [jsx(CurrencyInput, { valid: amount > 0, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(SubmitButton$1, { className: "w-full", disabled: amount <= 0, children: button.text })) : null] })] }));
|
|
7384
7379
|
});
|
|
7385
7380
|
|
|
7386
7381
|
const ITEMS_GAP = 16;
|
|
@@ -7412,9 +7407,9 @@
|
|
|
7412
7407
|
: null] }, String(blockIndex))),
|
|
7413
7408
|
});
|
|
7414
7409
|
};
|
|
7415
|
-
const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-
|
|
7410
|
+
const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-16'));
|
|
7416
7411
|
const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
7417
|
-
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-
|
|
7412
|
+
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
|
|
7418
7413
|
const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
|
|
7419
7414
|
|
|
7420
7415
|
const VISIBLE_ITEM_COUNT = 0;
|
|
@@ -7443,15 +7438,6 @@
|
|
|
7443
7438
|
};
|
|
7444
7439
|
}) ?? [];
|
|
7445
7440
|
|
|
7446
|
-
const titleSize = 'XS';
|
|
7447
|
-
|
|
7448
|
-
const layerBaseStyle = 'z-10 border border-solid w-full h-full';
|
|
7449
|
-
const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
|
|
7450
|
-
const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative h-full", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
|
|
7451
|
-
className: 'mt-m sm:mt-6xl sm:justify-center',
|
|
7452
|
-
isVertical: true,
|
|
7453
|
-
})] })] }) })));
|
|
7454
|
-
|
|
7455
7441
|
const cardStyleMap = {
|
|
7456
7442
|
black: 'bg-black',
|
|
7457
7443
|
white: 'bg-white',
|
|
@@ -7614,7 +7600,7 @@
|
|
|
7614
7600
|
return () => clearInterval(timer);
|
|
7615
7601
|
};
|
|
7616
7602
|
|
|
7617
|
-
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right
|
|
7603
|
+
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right pr-m text-gray", children: description }) : null] })] })));
|
|
7618
7604
|
|
|
7619
7605
|
const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
|
|
7620
7606
|
const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
|
|
@@ -8965,7 +8951,7 @@
|
|
|
8965
8951
|
|
|
8966
8952
|
const DEFAULT_MIN_SUM = 500;
|
|
8967
8953
|
const DEFAULT_MAX_SUM = 1000000000;
|
|
8968
|
-
const initialFiltrationState
|
|
8954
|
+
const initialFiltrationState = {
|
|
8969
8955
|
sum: {
|
|
8970
8956
|
min: 10000,
|
|
8971
8957
|
max: DEFAULT_MAX_SUM,
|
|
@@ -8973,7 +8959,7 @@
|
|
|
8973
8959
|
period: 3,
|
|
8974
8960
|
};
|
|
8975
8961
|
const DepositFiltration = UniBlock(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
|
|
8976
|
-
const [, { blocksToRender, blocksWithProps }, { field, reset }] = useFiltrationForm(initialFiltrationState
|
|
8962
|
+
const [, { blocksToRender, blocksWithProps }, { field, reset }] = useFiltrationForm(initialFiltrationState, {
|
|
8977
8963
|
block: rest.block,
|
|
8978
8964
|
page: rest.options?.page,
|
|
8979
8965
|
normalize: (content) => ({ ...content, period: getPeriod(content) }),
|
|
@@ -9002,115 +8988,6 @@
|
|
|
9002
8988
|
.filter(isRateRow)
|
|
9003
8989
|
.flatMap((_) => numberRange(_.minMonths, _.maxMonths))).sort((a, b) => a - b) || [];
|
|
9004
8990
|
|
|
9005
|
-
const DEFAULT_OPTIONS = [{ key: '10' }, { key: '50' }, { key: '100' }];
|
|
9006
|
-
const PageSizeSelector = ({ itemCount, onItemCountChange }) => {
|
|
9007
|
-
const handleItemCountChange = useCallback(({ key }) => onItemCountChange(Number(key)), []);
|
|
9008
|
-
return (jsxs("div", { className: "mt-2 @lg:mt-0 items-center gap-s hidden @lg:flex", children: [jsx("span", { children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E" }), jsx(Select, { className: "min-w-20", onChange: handleItemCountChange, value: { key: String(itemCount) }, options: DEFAULT_OPTIONS, iconVersion: "black" })] }));
|
|
9009
|
-
};
|
|
9010
|
-
|
|
9011
|
-
const paginationBlockStyle = 'py-m @lg:px-lg px-m rounded-md cursor-pointer text-center min-w-10 @lg:min-w-0 hover:bg-primary-hover hover:text-white';
|
|
9012
|
-
|
|
9013
|
-
const checkPageRange = (page, currentPage, totalPages) => (currentPage <= 2 && page <= currentPage + 2) ||
|
|
9014
|
-
(currentPage >= totalPages - 1 && page >= totalPages - 3);
|
|
9015
|
-
const shouldRenderPage = (page, currentPage, totalPages) => (page < currentPage && page >= currentPage - 1) ||
|
|
9016
|
-
(page <= currentPage + 1 && page > currentPage) ||
|
|
9017
|
-
checkPageRange(page, currentPage, totalPages);
|
|
9018
|
-
|
|
9019
|
-
const renderPages = (pagesParams, index) => {
|
|
9020
|
-
const { currentPage, onPageChange, totalPages } = pagesParams;
|
|
9021
|
-
const page = index + 1;
|
|
9022
|
-
if (page === currentPage) {
|
|
9023
|
-
return (jsx("div", { "aria-current": "true", className: "py-m @lg:px-lg px-m bg-primary-main text-center min-w-10 @lg:min-w-0 text-white rounded-md", children: page }, String(index)));
|
|
9024
|
-
}
|
|
9025
|
-
if (page !== 1 && page !== totalPages && shouldRenderPage(page, currentPage, totalPages)) {
|
|
9026
|
-
return (jsx("div", { onClick: () => onPageChange(page), className: paginationBlockStyle, "aria-label": `Страница ${page}`, children: page }, String(index)));
|
|
9027
|
-
}
|
|
9028
|
-
return null;
|
|
9029
|
-
};
|
|
9030
|
-
|
|
9031
|
-
const ICON_SIZE = { width: '24', height: '24' };
|
|
9032
|
-
const PaginationContainer = ({ currentPage, onPageChange, totalPages, }) => {
|
|
9033
|
-
const pages = useMemo(() => Array.from({ length: totalPages }).fill({
|
|
9034
|
-
currentPage,
|
|
9035
|
-
onPageChange,
|
|
9036
|
-
totalPages,
|
|
9037
|
-
}), [totalPages, currentPage]);
|
|
9038
|
-
const handlePrevPage = useCallback(() => {
|
|
9039
|
-
if (currentPage > 1) {
|
|
9040
|
-
onPageChange(currentPage - 1);
|
|
9041
|
-
}
|
|
9042
|
-
}, [currentPage]);
|
|
9043
|
-
const handleNextPage = useCallback(() => {
|
|
9044
|
-
if (currentPage < totalPages) {
|
|
9045
|
-
onPageChange(currentPage + 1);
|
|
9046
|
-
}
|
|
9047
|
-
}, [currentPage, totalPages]);
|
|
9048
|
-
const handleFirstPage = useCallback(() => onPageChange(1), []);
|
|
9049
|
-
const handleLastPage = useCallback(() => onPageChange(totalPages), [totalPages]);
|
|
9050
|
-
return (jsxs("div", { className: "flex gap-m items-center", children: [jsx("div", { onClick: handlePrevPage, children: jsx(Icon, { name: "ArrowLeftIcon", iconVersion: "black", imageClassName: getIconStyle(currentPage === 1), ...ICON_SIZE }) }), jsxs("div", { className: "flex @lg:gap-2xs", children: [currentPage > 1 ? (jsx("div", { onClick: handleFirstPage, className: paginationBlockStyle, "aria-label": "\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 1", children: "1" })) : null, currentPage > 3 ? jsx("div", { className: "py-m @lg:px-s", children: "..." }) : null, pages.map(renderPages), currentPage < totalPages - 2 ? jsx("div", { className: "py-m @lg:px-s", children: "..." }) : null, currentPage < totalPages ? (jsx("div", { onClick: handleLastPage, className: paginationBlockStyle, "aria-label": `Страница ${totalPages}`, children: totalPages })) : null] }), jsx("div", { onClick: handleNextPage, children: jsx(Icon, { className: "rotate-180", name: "ArrowLeftIcon", iconVersion: "black", imageClassName: getIconStyle(currentPage === totalPages), ...ICON_SIZE }) })] }));
|
|
9051
|
-
};
|
|
9052
|
-
const getIconStyle = (condition) => condition ? 'opacity-20' : 'cursor-pointer hover:opacity-60';
|
|
9053
|
-
|
|
9054
|
-
const Pagination = ({ currentPage, onPageChange, totalPages, itemCount, onItemCountChange, }) => (jsxs("div", { className: "mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none", role: "navigation", "aria-label": "\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F", children: [jsx(PaginationContainer, { currentPage: currentPage, onPageChange: onPageChange, totalPages: totalPages }), itemCount && onItemCountChange ? (jsx(PageSizeSelector, { itemCount: itemCount, onItemCountChange: onItemCountChange })) : null] }));
|
|
9055
|
-
|
|
9056
|
-
const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus, placeholder = 'Поиск по сайту' }) => {
|
|
9057
|
-
const handleChange = useCallback((ev) => {
|
|
9058
|
-
onChange && onChange(ev.target?.value || '');
|
|
9059
|
-
}, [onChange]);
|
|
9060
|
-
return (jsxs("div", { className: style('relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 text-l text-black box-border rounded-md', inputValidStyle), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
|
|
9061
|
-
});
|
|
9062
|
-
|
|
9063
|
-
const DepositoryFilter = JSX(({ field, onClearFilter, filtrationState }) => (jsxs("div", { className: "grid grid-cols-12 mb-3xl @lg:space-x-xl", children: [jsx(SearchInput, { className: "col-span-12 @lg:col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), jsx(DatePicker, { className: "col-span-12 @lg:col-span-3 mt-4 @lg:mt-0", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), jsx(DatePicker, { className: "col-span-12 @lg:col-span-3 mt-4 @lg:mt-0", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), jsx("div", { className: "col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto", children: jsx(Button, { type: "reset", className: "w-full", version: "secondary", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C" }) })] })));
|
|
9064
|
-
|
|
9065
|
-
const DepositoryItem = JSX(({ title, timestamp, publicId }) => {
|
|
9066
|
-
const link = useLink();
|
|
9067
|
-
const { href } = link({ href: `${API_BASE_URI$1}/depository/${publicId}/file` });
|
|
9068
|
-
return (jsxs("div", { className: "flex gap-3 items-center py-lg border-gray border-opacity-50 border-b", children: [jsx(RoundedIcon, { className: "shrink-0", icon: "DocDownloadIcon", iconVersion: "black" }), jsxs("div", { className: "flex flex-col gap-x-6xl lg:flex-row lg:items-center", children: [timestamp ? (jsx(Text, { size: "text-m", "font-weight": "font-light", children: formatDate(timestamp) })) : null, jsx("a", { className: "text-h6 hover:text-primary-active", href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title })] })] }, publicId));
|
|
9069
|
-
});
|
|
9070
|
-
|
|
9071
|
-
const DEPOSITARY_URL = `${API_BASE_URI$1}/depository`;
|
|
9072
|
-
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
9073
|
-
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
9074
|
-
const formatEndDate = endDate ? formatDate(endDate, true) : '';
|
|
9075
|
-
const searchParams = new URLSearchParams(DEPOSITARY_URL);
|
|
9076
|
-
searchParams.set('page', String(page));
|
|
9077
|
-
searchParams.set('size', String(size));
|
|
9078
|
-
searchParams.set('query', query);
|
|
9079
|
-
searchParams.set('timestampStart', formatStartDate);
|
|
9080
|
-
searchParams.set('timestampEnd', formatEndDate);
|
|
9081
|
-
const queryString = `?${searchParams.toString()}`;
|
|
9082
|
-
const { data } = useAsyncData(DEPOSITARY_URL + queryString, fetchJSONUnsafe);
|
|
9083
|
-
return { items: data?.content, totalPages: data?.totalPages };
|
|
9084
|
-
};
|
|
9085
|
-
|
|
9086
|
-
const DEFAULT_ITEMS_COUNT = 10;
|
|
9087
|
-
const initialFiltrationState = {
|
|
9088
|
-
startDate: undefined,
|
|
9089
|
-
endDate: undefined,
|
|
9090
|
-
query: '',
|
|
9091
|
-
};
|
|
9092
|
-
const Depository = UniBlock(({ className, ...rest }) => {
|
|
9093
|
-
const [currentPage, setCurrentPage] = useState(0);
|
|
9094
|
-
const [itemCount, setItemCount] = useState(DEFAULT_ITEMS_COUNT);
|
|
9095
|
-
const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
|
|
9096
|
-
const { totalPages = 0, items = [] } = useDepository({
|
|
9097
|
-
size: itemCount,
|
|
9098
|
-
page: currentPage,
|
|
9099
|
-
...filtrationState,
|
|
9100
|
-
});
|
|
9101
|
-
const handleChangePage = useCallback((page) => setCurrentPage(page - 1), []);
|
|
9102
|
-
const handleItemCountChange = useCallback((count) => {
|
|
9103
|
-
if (itemCount !== count) {
|
|
9104
|
-
setItemCount(count);
|
|
9105
|
-
setCurrentPage(0);
|
|
9106
|
-
}
|
|
9107
|
-
else {
|
|
9108
|
-
setItemCount(count);
|
|
9109
|
-
}
|
|
9110
|
-
}, []);
|
|
9111
|
-
return (jsxs(BlockWrapper, { className: style(className, 'container p-6xl'), ...rest, children: [jsx(DepositoryFilter, { filtrationState: filtrationState, field: field, onClearFilter: reset }), jsxs("div", { className: "flex flex-col", children: [jsxs("div", { className: "grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-4 @lg:col-span-2 hidden @lg:block", children: jsx(Text, { size: "text-m", color: "text-secondary-text", children: "\u0414\u0430\u0442\u0430" }) }), jsx("span", { className: "col-span-8 @lg:col-span-10 hidden @lg:block", children: jsx(Text, { size: "text-m", color: "text-secondary-text", children: "\u0422\u0435\u043C\u0430" }) })] }), items.length ? (items.map((params) => jsx(DepositoryItem, { ...params }, String(params.publicId)))) : (jsx(NotFound, { title: "\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E", description: "\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B" })), jsx(Pagination, { currentPage: currentPage + 1, onPageChange: handleChangePage, totalPages: totalPages, itemCount: itemCount, onItemCountChange: handleItemCountChange })] })] }));
|
|
9112
|
-
});
|
|
9113
|
-
|
|
9114
8991
|
const renderErrorContent = (error) => {
|
|
9115
8992
|
if (error?.contentType === 'Image' && error?.image) {
|
|
9116
8993
|
return jsx(Img, { image: error.image });
|
|
@@ -9164,7 +9041,7 @@
|
|
|
9164
9041
|
return (jsx("a", { className: style('text-secondary-text', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
9165
9042
|
});
|
|
9166
9043
|
|
|
9167
|
-
const HorizontalNavigation = JSX(({ className = '', title, links }) => (jsx("div", { className: className, children: links?.length ? (jsxs("div", { className: "flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider", children: [jsx("div", { className: "lg:hidden", children: jsx(Text, { size: "text-l", font: "font-normal", children: title }) }), links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light lg:max-w-
|
|
9044
|
+
const HorizontalNavigation = JSX(({ className = '', title, links }) => (jsx("div", { className: className, children: links?.length ? (jsxs("div", { className: "flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider", children: [jsx("div", { className: "lg:hidden", children: jsx(Text, { size: "text-l", font: "font-normal", children: title }) }), links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light lg:max-w-72", ..._ }, String(i))))] })) : null })));
|
|
9168
9045
|
|
|
9169
9046
|
const LEFT_COLUMN_STYLE = 'w-full lg:w-52';
|
|
9170
9047
|
|
|
@@ -9174,7 +9051,7 @@
|
|
|
9174
9051
|
const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
|
|
9175
9052
|
const link = useLink();
|
|
9176
9053
|
const { href, target, text, onClick } = link(rest);
|
|
9177
|
-
return (jsx("a", { className: style('text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-
|
|
9054
|
+
return (jsx("a", { className: style('text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-72', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
9178
9055
|
});
|
|
9179
9056
|
|
|
9180
9057
|
const TextInformation = JSX(({ className = '', links, license }) => (jsxs("div", { className: style('@container space-y-lg', className), children: [license ? (jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0${license}` }) })) : null, links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
@@ -10422,12 +10299,10 @@
|
|
|
10422
10299
|
CalculatorRefinancing,
|
|
10423
10300
|
CardTransfer,
|
|
10424
10301
|
Carousel,
|
|
10425
|
-
CarouselCard,
|
|
10426
10302
|
CarouselCatalogCard,
|
|
10427
10303
|
CarouselRecommendationCard,
|
|
10428
10304
|
CarouselTariffsCard,
|
|
10429
10305
|
DepositFiltration,
|
|
10430
|
-
Depository,
|
|
10431
10306
|
ErrorBlock,
|
|
10432
10307
|
Footer,
|
|
10433
10308
|
GalleryLayout,
|
|
@@ -10572,7 +10447,7 @@
|
|
|
10572
10447
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10573
10448
|
});
|
|
10574
10449
|
|
|
10575
|
-
const packageVersion = "0.14.
|
|
10450
|
+
const packageVersion = "0.14.842";
|
|
10576
10451
|
|
|
10577
10452
|
exports.Blocks = Blocks;
|
|
10578
10453
|
exports.ContentPage = ContentPage;
|