@redneckz/wildless-cms-uni-blocks 0.14.828 → 0.14.829
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.828.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +113 -345
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Blocks.js +0 -10
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -8
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -10
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -8
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +107 -304
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Blocks.js +0 -8
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -8
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -8
- package/package.json +2 -2
- package/src/components/Blocks.mobile.ts +0 -8
- package/src/components/Blocks.ts +0 -10
- package/bundle/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/bundle/components/Placeholder/Placeholder.d.ts +0 -5
- package/bundle/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/bundle/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/bundle/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/bundle/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/bundle/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/bundle/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/bundle/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/bundle/components/SafeDepositRental/utils.d.ts +0 -4
- package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/dist/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/dist/components/GracePeriod/GracePeriod.js +0 -25
- package/dist/components/GracePeriod/GracePeriod.js.map +0 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/dist/components/GracePeriod/GracePeriodContent.js +0 -2
- package/dist/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/dist/components/MortgageFiltration/MortgageFiltration.js +0 -36
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/dist/components/Placeholder/Placeholder.d.ts +0 -5
- package/dist/components/Placeholder/Placeholder.js +0 -10
- package/dist/components/Placeholder/Placeholder.js.map +0 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/dist/components/Placeholder/PlaceholderContent.js +0 -2
- package/dist/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/dist/components/ProductGallery/ProductGallery.js +0 -33
- package/dist/components/ProductGallery/ProductGallery.js.map +0 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/dist/components/ProductGallery/ProductGallery.mobile.js +0 -12
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +0 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/dist/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/dist/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/dist/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/dist/components/SafeDepositRental/RadioButtons.js +0 -13
- package/dist/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +0 -7
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/dist/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/dist/components/SafeDepositRental/RentalPeriod.js +0 -11
- package/dist/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/dist/components/SafeDepositRental/SafeBoxCases.js +0 -7
- package/dist/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/dist/components/SafeDepositRental/SafeDepositRental.js +0 -33
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +0 -18
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +0 -27
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -34
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/dist/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/dist/components/SafeDepositRental/WrapperSelect.js +0 -13
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/dist/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/dist/components/SafeDepositRental/useGetRegions.js +0 -13
- package/dist/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/dist/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/dist/components/SafeDepositRental/useSafeBoxes.js +0 -17
- package/dist/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/dist/components/SafeDepositRental/utils.d.ts +0 -4
- package/dist/components/SafeDepositRental/utils.js +0 -21
- package/dist/components/SafeDepositRental/utils.js.map +0 -1
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/lib/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +0 -7
- package/lib/components/GracePeriod/GracePeriod.js +0 -23
- package/lib/components/GracePeriod/GracePeriod.js.map +0 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/lib/components/GracePeriod/GracePeriodContent.js +0 -2
- package/lib/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/lib/components/MortgageFiltration/MortgageFiltration.fixture.d.ts +0 -6
- package/lib/components/MortgageFiltration/MortgageFiltration.fixture.mobile.d.ts +0 -6
- package/lib/components/MortgageFiltration/MortgageFiltration.js +0 -34
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/lib/components/Placeholder/Placeholder.d.ts +0 -5
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +0 -5
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +0 -3
- package/lib/components/Placeholder/Placeholder.js +0 -8
- package/lib/components/Placeholder/Placeholder.js.map +0 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/lib/components/Placeholder/PlaceholderContent.js +0 -2
- package/lib/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +0 -6
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +0 -6
- package/lib/components/ProductGallery/ProductGallery.js +0 -31
- package/lib/components/ProductGallery/ProductGallery.js.map +0 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/lib/components/ProductGallery/ProductGallery.mobile.js +0 -10
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +0 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/lib/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/lib/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/lib/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/lib/components/SafeDepositRental/RadioButtons.js +0 -11
- package/lib/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +0 -5
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/lib/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/lib/components/SafeDepositRental/RentalPeriod.js +0 -9
- package/lib/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/lib/components/SafeDepositRental/SafeBoxCases.js +0 -5
- package/lib/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +0 -5
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.mobile.d.ts +0 -5
- package/lib/components/SafeDepositRental/SafeDepositRental.js +0 -31
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +0 -16
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +0 -25
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -32
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/lib/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/lib/components/SafeDepositRental/WrapperSelect.js +0 -11
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/lib/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/lib/components/SafeDepositRental/useGetRegions.js +0 -10
- package/lib/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/lib/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/lib/components/SafeDepositRental/useSafeBoxes.js +0 -14
- package/lib/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/lib/components/SafeDepositRental/utils.d.ts +0 -4
- package/lib/components/SafeDepositRental/utils.js +0 -17
- package/lib/components/SafeDepositRental/utils.js.map +0 -1
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +0 -5
- package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/mobile/bundle/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/mobile/bundle/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/mobile/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/mobile/bundle/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/mobile/bundle/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/mobile/bundle/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/mobile/bundle/components/SafeDepositRental/utils.d.ts +0 -4
- package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/mobile/dist/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/mobile/dist/components/GracePeriod/GracePeriod.js +0 -25
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +0 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/mobile/dist/components/GracePeriod/GracePeriodContent.js +0 -2
- package/mobile/dist/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +0 -36
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +0 -5
- package/mobile/dist/components/Placeholder/Placeholder.js +0 -10
- package/mobile/dist/components/Placeholder/Placeholder.js.map +0 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/mobile/dist/components/Placeholder/PlaceholderContent.js +0 -2
- package/mobile/dist/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/mobile/dist/components/ProductGallery/ProductGallery.js +0 -12
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +0 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/mobile/dist/components/SafeDepositRental/RadioButtons.js +0 -13
- package/mobile/dist/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +0 -7
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js +0 -11
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +0 -7
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +0 -33
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +0 -18
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +0 -27
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -34
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js +0 -13
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js +0 -13
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js +0 -17
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/utils.d.ts +0 -4
- package/mobile/dist/components/SafeDepositRental/utils.js +0 -21
- package/mobile/dist/components/SafeDepositRental/utils.js.map +0 -1
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.d.ts +0 -5
- package/mobile/lib/components/GracePeriod/GracePeriod.js +0 -23
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +0 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +0 -22
- package/mobile/lib/components/GracePeriod/GracePeriodContent.js +0 -2
- package/mobile/lib/components/GracePeriod/GracePeriodContent.js.map +0 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.d.ts +0 -6
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +0 -34
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +0 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +0 -35
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.js +0 -2
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.js.map +0 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +0 -5
- package/mobile/lib/components/Placeholder/Placeholder.js +0 -8
- package/mobile/lib/components/Placeholder/Placeholder.js.map +0 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +0 -6
- package/mobile/lib/components/Placeholder/PlaceholderContent.js +0 -2
- package/mobile/lib/components/Placeholder/PlaceholderContent.js.map +0 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +0 -5
- package/mobile/lib/components/ProductGallery/ProductGallery.js +0 -10
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +0 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +0 -24
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js +0 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/RadioButtons.d.ts +0 -5
- package/mobile/lib/components/SafeDepositRental/RadioButtons.js +0 -11
- package/mobile/lib/components/SafeDepositRental/RadioButtons.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +0 -12
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +0 -5
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.d.ts +0 -6
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js +0 -9
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.d.ts +0 -11
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +0 -5
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +0 -5
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +0 -31
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +0 -7
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.js +0 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +0 -12
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +0 -16
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +0 -11
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +0 -25
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +0 -6
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +0 -32
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -8
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.js +0 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.d.ts +0 -11
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js +0 -11
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.d.ts +0 -6
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js +0 -10
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.d.ts +0 -20
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js +0 -14
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/utils.d.ts +0 -4
- package/mobile/lib/components/SafeDepositRental/utils.js +0 -17
- package/mobile/lib/components/SafeDepositRental/utils.js.map +0 -1
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +0 -7
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +0 -2
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +0 -1
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +0 -89
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +0 -87
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +0 -20
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +0 -26
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.example.json +0 -115
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +0 -69
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.ui.json +0 -12
- package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +0 -38
- package/mobile/src/components/Placeholder/Placeholder.tsx +0 -25
- package/mobile/src/components/Placeholder/Placeholder.ui.json +0 -1
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +0 -7
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +0 -72
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +0 -29
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +0 -42
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +0 -27
- package/mobile/src/components/SafeDepositRental/RadioButtons.tsx +0 -33
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +0 -48
- package/mobile/src/components/SafeDepositRental/RentalPeriod.tsx +0 -21
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +0 -46
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +0 -75
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +0 -8
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +0 -8
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +0 -74
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +0 -62
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +0 -74
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -9
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +0 -33
- package/mobile/src/components/SafeDepositRental/useGetRegions.ts +0 -19
- package/mobile/src/components/SafeDepositRental/useSafeBoxes.ts +0 -44
- package/mobile/src/components/SafeDepositRental/utils.ts +0 -24
- package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +0 -8
- package/src/components/GracePeriod/GracePeriod.example.json +0 -89
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +0 -109
- package/src/components/GracePeriod/GracePeriod.tsx +0 -87
- package/src/components/GracePeriod/GracePeriod.ui.json +0 -20
- package/src/components/GracePeriod/GracePeriodContent.ts +0 -26
- package/src/components/MortgageFiltration/MortgageFiltration.example.json +0 -115
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +0 -226
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +0 -226
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +0 -69
- package/src/components/MortgageFiltration/MortgageFiltration.ui.json +0 -12
- package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +0 -38
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +0 -9
- package/src/components/Placeholder/Placeholder.fixture.tsx +0 -11
- package/src/components/Placeholder/Placeholder.tsx +0 -25
- package/src/components/Placeholder/Placeholder.ui.json +0 -1
- package/src/components/Placeholder/PlaceholderContent.ts +0 -7
- package/src/components/ProductGallery/ProductGallery.example.json +0 -72
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +0 -146
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +0 -120
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +0 -29
- package/src/components/ProductGallery/ProductGallery.tsx +0 -117
- package/src/components/ProductGallery/ProductGallery.ui.json +0 -42
- package/src/components/ProductGallery/ProductGalleryContent.ts +0 -27
- package/src/components/SafeDepositRental/RadioButtons.tsx +0 -33
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +0 -48
- package/src/components/SafeDepositRental/RentalPeriod.tsx +0 -21
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +0 -46
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.mobile.tsx +0 -15
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +0 -17
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +0 -75
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +0 -8
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +0 -8
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +0 -74
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +0 -62
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +0 -74
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -9
- package/src/components/SafeDepositRental/WrapperSelect.tsx +0 -33
- package/src/components/SafeDepositRental/useGetRegions.ts +0 -19
- package/src/components/SafeDepositRental/useSafeBoxes.ts +0 -44
- package/src/components/SafeDepositRental/utils.ts +0 -24
- package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +0 -8
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.RegionsAndBranches = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const WrapperSelect_1 = require("./WrapperSelect");
|
|
6
|
-
exports.RegionsAndBranches = (0, uni_jsx_1.JSX)(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-1 min-w-0", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), (0, jsx_runtime_1.jsx)("div", { className: "flex-1 min-w-0", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] })));
|
|
7
|
-
//# sourceMappingURL=RegionsAndBranches.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegionsAndBranches.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/RegionsAndBranches.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,mDAAgD;AAWnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,OAAO,GAAG,EAAE,EACZ,cAAc,EACd,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,GAAG,EAAE,EACb,cAAc,EACd,gBAAgB,GACjB,EAAE,EAAE,CAAC,CACJ,iCAAK,SAAS,EAAC,0CAA0C,aACvD,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,6BAAa,IACZ,IAAI,EAAE,OAAO,EACb,UAAU,EAAC,MAAM,EACjB,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAC,sCAAQ,GACd,GACE,EACN,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,6BAAa,IACZ,IAAI,EAAE,QAAQ,EACd,UAAU,EAAC,YAAY,EACvB,UAAU,EAAC,SAAS,EACpB,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAC,wDAAW,EACjB,WAAW,EAAC,yGAAoB,GAChC,GACE,IACF,CACP,CACF,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.RentalPeriod = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
6
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
-
const ITEMS = ['От 1 дня', 'До 365 дней'];
|
|
8
|
-
const MIN = 1;
|
|
9
|
-
const MAX = 365;
|
|
10
|
-
exports.RentalPeriod = (0, uni_jsx_1.JSX)(({ days, setDays }) => ((0, jsx_runtime_1.jsxs)("div", { className: "order-1", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A \u0430\u0440\u0435\u043D\u0434\u044B" }), (0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { min: MIN, max: MAX, value: days, items: ITEMS, onChange: setDays })] })));
|
|
11
|
-
//# sourceMappingURL=RentalPeriod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RentalPeriod.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/RentalPeriod.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAChE,iDAA8C;AAE9C,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AAC1C,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,GAAG,CAAC;AAOH,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACxE,iCAAK,SAAS,EAAC,SAAS,aACtB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,8EAE9B,EACP,uBAAC,uBAAU,IAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,GAAI,IAC5E,CACP,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type SafeBoxCase, type SafeBoxCaseVolume } from './useSafeBoxes';
|
|
2
|
-
interface SafeBoxCasesProps {
|
|
3
|
-
caseVolumes?: SafeBoxCaseVolume[];
|
|
4
|
-
selectedCaseVolume: string;
|
|
5
|
-
onSelectedCaseVolume: (value: string) => void;
|
|
6
|
-
safeBoxCases?: SafeBoxCase[];
|
|
7
|
-
selectedBoxSize: string;
|
|
8
|
-
onSelectedBoxSize: (value: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const SafeBoxCases: import("@redneckz/uni-jsx").UNIComponent<SafeBoxCasesProps, any, any>;
|
|
11
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SafeBoxCases = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const WrapperSelect_1 = require("./WrapperSelect");
|
|
6
|
-
exports.SafeBoxCases = (0, uni_jsx_1.JSX)(({ caseVolumes = [], selectedCaseVolume, onSelectedCaseVolume, safeBoxCases = [], selectedBoxSize, onSelectedBoxSize, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-1 min-w-0", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), (0, jsx_runtime_1.jsx)("div", { className: "flex-1 min-w-0", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] })));
|
|
7
|
-
//# sourceMappingURL=SafeBoxCases.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeBoxCases.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeBoxCases.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mDAAgD;AAWnC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,WAAW,GAAG,EAAE,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GAAG,EAAE,EACjB,eAAe,EACf,iBAAiB,GAClB,EAAE,EAAE,CAAC,CACJ,iCAAK,SAAS,EAAC,0CAA0C,aACvD,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,6BAAa,IACZ,IAAI,EAAE,WAAW,EACjB,UAAU,EAAC,QAAQ,EACnB,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAE,oBAAoB,EACjC,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,GAC7B,GACE,EACN,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,6BAAa,IACZ,IAAI,EAAE,YAAY,EAClB,UAAU,EAAC,kBAAkB,EAC7B,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,iBAAiB,EAC9B,KAAK,EAAC,4IAA8B,EACpC,WAAW,EAAC,wIAA0B,GACtC,GACE,IACF,CACP,CACF,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type SafeDepositRentalContent } from './SafeDepositRentalContent';
|
|
3
|
-
export interface SafeDepositRentalProps extends SafeDepositRentalContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const SafeDepositRental: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalProps, any, any>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SafeDepositRental = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const useRegions_1 = require("../../hooks/useRegions");
|
|
7
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
8
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
10
|
-
const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
|
|
11
|
-
const SafeDepositRentalForm_1 = require("./SafeDepositRentalForm");
|
|
12
|
-
const useSafeBoxes_1 = require("./useSafeBoxes");
|
|
13
|
-
const utils_1 = require("./utils");
|
|
14
|
-
const DEFAULT_DAYS = 26;
|
|
15
|
-
exports.SafeDepositRental = (0, uni_jsx_1.JSX)(({ title, footnote, className = '', ...rest }) => {
|
|
16
|
-
const [showMap, setShowMap] = (0, hooks_1.useState)(false);
|
|
17
|
-
const handleShowMap = (0, hooks_1.useCallback)(() => setShowMap((_) => !_), []);
|
|
18
|
-
const [safeDepositState, setStateDepositState] = (0, hooks_1.useState)({
|
|
19
|
-
selectedRegion: '',
|
|
20
|
-
selectedBranch: '',
|
|
21
|
-
selectedCaseVolume: '',
|
|
22
|
-
selectedBoxSize: '',
|
|
23
|
-
days: DEFAULT_DAYS,
|
|
24
|
-
});
|
|
25
|
-
const regions = (0, useRegions_1.useRegions)();
|
|
26
|
-
const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
|
|
27
|
-
const branches = (0, useSafeBoxes_1.useSafeBoxes)(selectedRegion);
|
|
28
|
-
const handleChangeSafeDepositState = (0, hooks_1.useCallback)((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
29
|
-
const points = (0, utils_1.getCoordinates)((0, utils_1.getBranch)(branches, safeDepositState.selectedBranch) || branches);
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "", ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "p-4xl space-y-xl", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-s text-center" })) : null, (0, jsx_runtime_1.jsx)(SafeDepositRentalForm_1.SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onClick: handleShowMap, onChange: handleChangeSafeDepositState }), footnote ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", children: footnote })) : null] }), points.length && showMap ? (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
31
|
-
});
|
|
32
|
-
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
33
|
-
//# sourceMappingURL=SafeDepositRental.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRental.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRental.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,uDAAiE;AACjE,4DAAyD;AACzD,0DAAuD;AACvD,gEAA6D;AAC7D,gEAA6D;AAG7D,mEAAgE;AAEhE,iDAA8C;AAC9C,mCAAoD;AAIpD,MAAM,YAAY,GAAG,EAAE,CAAC;AAEX,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBA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CAAC,CAAC,IAAI,EACR,uBAAC,6CAAqB,IACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,EAAE,GAAG,gBAAgB,EAAE,cAAc,EAAE,EAC7C,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,4BAA4B,GACtC,EACD,QAAQ,CAAC,CAAC,CAAC,CACV,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YACvC,QAAQ,GACC,CACb,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,uBAAC,qBAAS,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,WAAW,GAAG,CAAC,CAAC,CAAC,IAAI,IACzE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,cAAsB,EAAE,OAAkB,EAAE,EAAE,CAC7E,CAAC,cAAc,IAAI,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Footnote } from '../../model/Footnote';
|
|
2
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
/**
|
|
5
|
-
* @title Аренда сейфовых ячеек
|
|
6
|
-
*/
|
|
7
|
-
export declare type SafeDepositRentalContent = UniBlockContent & Footnote & TitleProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalContent.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type Region } from '../../hooks/useRegions';
|
|
2
|
-
import { type HandleFormStateChange, type SafeDepositRentalState } from './SafeDepositRentalTypes';
|
|
3
|
-
import { type Branch, type SafeBoxCase, type SafeBoxCaseVolume } from './useSafeBoxes';
|
|
4
|
-
export interface SafeDepositRentalFieldsProps extends SafeDepositRentalState {
|
|
5
|
-
regions?: Region[];
|
|
6
|
-
safeBoxCases?: SafeBoxCase[];
|
|
7
|
-
caseVolumes?: SafeBoxCaseVolume[];
|
|
8
|
-
branches?: Branch[];
|
|
9
|
-
onClick: () => void;
|
|
10
|
-
onChange: HandleFormStateChange;
|
|
11
|
-
}
|
|
12
|
-
export declare const SafeDepositRentalFields: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalFieldsProps, any, any>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SafeDepositRentalFields = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
6
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
-
const RadioButtons_1 = require("./RadioButtons");
|
|
8
|
-
const RegionsAndBranches_1 = require("./RegionsAndBranches");
|
|
9
|
-
const RentalPeriod_1 = require("./RentalPeriod");
|
|
10
|
-
const SafeBoxCases_1 = require("./SafeBoxCases");
|
|
11
|
-
exports.SafeDepositRentalFields = (0, uni_jsx_1.JSX)(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "contents @xl:block flex-1 space-y-xl", children: [(0, jsx_runtime_1.jsx)(RegionsAndBranches_1.RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), (0, jsx_runtime_1.jsx)(RentalPeriod_1.RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), (0, jsx_runtime_1.jsx)(SafeBoxCases_1.SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), (0, jsx_runtime_1.jsx)("div", { className: "order-4", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "contents @md:flex justify-between items-center gap-m", children: [(0, jsx_runtime_1.jsx)(RadioButtons_1.RadioButtons, {}), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "order-6", version: "primary", onClick: onClick, children: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435" })] })] })));
|
|
12
|
-
const onSelectedBranch = (onChange) => (value) => {
|
|
13
|
-
onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
|
|
14
|
-
};
|
|
15
|
-
const onSelectedCaseVolume = (onChange) => (value) => {
|
|
16
|
-
onChange({ selectedCaseVolume: value, selectedBoxSize: '' });
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=SafeDepositRentalFields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalFields.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalFields.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,iDAA8C;AAC9C,iDAA8C;AAC9C,6DAA0D;AAC1D,iDAA8C;AAC9C,iDAA8C;AAajC,QAAA,uBAAuB,GA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C;AAEF,MAAM,gBAAgB,GAAG,CAAC,QAA+B,EAAE,EAAE,CAAC,CAAC,KAAa,EAAE,EAAE;IAC9E,QAAQ,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,QAA+B,EAAE,EAAE,CAAC,CAAC,KAAa,EAAE,EAAE;IAClF,QAAQ,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/D,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Region } from '../../hooks/useRegions';
|
|
2
|
-
import { type SafeDepositRentalState } from './SafeDepositRentalTypes';
|
|
3
|
-
import { type Branch } from './useSafeBoxes';
|
|
4
|
-
export interface SafeDepositRentalFormProps {
|
|
5
|
-
regions: Region[];
|
|
6
|
-
branches: Branch[];
|
|
7
|
-
data: SafeDepositRentalState;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
onChange: (data: Partial<SafeDepositRentalState>) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const SafeDepositRentalForm: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalFormProps, any, any>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SafeDepositRentalForm = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const core_1 = require("@redneckz/uni-jsx/lib/hooks/core");
|
|
6
|
-
const SafeDepositRentalFields_1 = require("./SafeDepositRentalFields");
|
|
7
|
-
const SafeDepositRentalTotal_1 = require("./SafeDepositRentalTotal");
|
|
8
|
-
const utils_1 = require("./utils");
|
|
9
|
-
exports.SafeDepositRentalForm = (0, uni_jsx_1.JSX)((props) => {
|
|
10
|
-
const { regions, data, branches, onChange, onClick } = props;
|
|
11
|
-
(0, core_1.useEffect)(() => {
|
|
12
|
-
onChange({
|
|
13
|
-
selectedBranch: '',
|
|
14
|
-
selectedCaseVolume: '',
|
|
15
|
-
selectedBoxSize: '',
|
|
16
|
-
});
|
|
17
|
-
}, [data.selectedRegion, onChange]);
|
|
18
|
-
const branch = (0, utils_1.getBranch)(branches, data.selectedBranch);
|
|
19
|
-
const caseVolumes = getCaseVolumes(branch?.safeBoxCaseVolumes);
|
|
20
|
-
const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, data.selectedCaseVolume)?.safeBoxCases;
|
|
21
|
-
const tariffs = getTariffs(safeBoxCases, data.selectedBoxSize);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col @4xl:flex-row gap-4xl align-top", children: [(0, jsx_runtime_1.jsx)(SafeDepositRentalFields_1.SafeDepositRentalFields, { ...data, regions: regions, onClick: onClick, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), (0, jsx_runtime_1.jsx)(SafeDepositRentalTotal_1.SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
|
|
23
|
-
});
|
|
24
|
-
const getCaseVolumes = (safeBoxCaseVolumes) => safeBoxCaseVolumes?.length ? safeBoxCaseVolumes?.filter((_) => _?.safeBoxCases?.length) : [];
|
|
25
|
-
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
26
|
-
const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
|
|
27
|
-
//# sourceMappingURL=SafeDepositRentalForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalForm.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalForm.ts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EAAE,EAAE,CAClE,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAE/F,MAAM,aAAa,GAAG,CAAC,WAAiC,EAAE,kBAA2B,EAAE,EAAE,CACvF,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,kBAAkB,CAAC,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,YAA4B,EAAE,eAAwB,EAAE,EAAE,CAC5E,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,KAAK,eAAe,CAAC,EAAE,OAAO,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SafeDepositRentalTotal = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
7
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
8
|
-
exports.SafeDepositRentalTotal = (0, uni_jsx_1.JSX)(({ days, tariffs = [] }) => {
|
|
9
|
-
const price = calculatePrice(days, tariffs);
|
|
10
|
-
const imageDescription = 'На рисунке изображена пачка листов\nформата А4';
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "contents @xl:flex flex-col justify-between gap-xl order-2", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none", children: [renderTotal('Аренда за', days), renderTotal('Цена', price + ' ₽')] }), (0, jsx_runtime_1.jsx)("div", { className: "@xl:hidden order-3 mb-xs", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: imageDescription }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "@xl:h-60", name: "PackA4Icon" }), (0, jsx_runtime_1.jsx)("div", { className: "hidden @xl:inline opacity-80 whitespace-pre-line", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-white", children: imageDescription }) })] })] }));
|
|
12
|
-
});
|
|
13
|
-
const renderTotal = (label, total) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: label }), (0, jsx_runtime_1.jsx)("span", { className: "text-l @xl:text-h3 text-primary-text", children: total })] }));
|
|
14
|
-
const calculatePrice = (days, tariffs) => {
|
|
15
|
-
const tariffType = getTariffType(days);
|
|
16
|
-
const tariffValue = tariffs?.find((_) => _.tariffType === String(tariffType))?.tariffValue || 0;
|
|
17
|
-
return days * tariffValue;
|
|
18
|
-
};
|
|
19
|
-
const getTariffType = (days) => {
|
|
20
|
-
let tariffType = 1;
|
|
21
|
-
switch (true) {
|
|
22
|
-
case days > 30 && days <= 90:
|
|
23
|
-
tariffType = 2;
|
|
24
|
-
break;
|
|
25
|
-
case days > 90 && days <= 180:
|
|
26
|
-
tariffType = 3;
|
|
27
|
-
break;
|
|
28
|
-
case days > 180 && days <= 365:
|
|
29
|
-
tariffType = 4;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
return tariffType;
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=SafeDepositRentalTotal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalTotal.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalTotal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,gEAA6D;AAC7D,iDAA8C;AAQjC,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAA8B,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE;IAChG,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC5C,MAAM,gBAAgB,GAAG,gDAAgD,CAAC;IAE1E,OAAO,CACL,iCAAK,SAAS,EAAC,2DAA2D,aACxE,iCAAK,SAAS,EAAC,oIAAoI,aAChJ,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,EAC9B,WAAW,CAAC,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC,IAC9B,EACN,gCAAK,SAAS,EAAC,0BAA0B,YACvC,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACnE,gBAAgB,GACP,GACR,EACN,iCAAK,SAAS,EAAC,mHAAmH,aAChI,uBAAC,WAAI,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,YAAY,GAAG,EAC/C,gCAAK,SAAS,EAAC,kDAAkD,YAC/D,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,YAAY,YAC1D,gBAAgB,GACP,GACR,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,KAAsB,EAAE,EAAE,CAAC,CAC7D,iCAAK,SAAS,EAAC,yEAAyE,aACtF,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,iCAAM,SAAS,EAAC,sCAAsC,YAAE,KAAK,GAAQ,IACjE,CACP,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,OAAiB,EAAE,EAAE;IACzD,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,WAAW,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,WAAW,IAAI,CAAC,CAAC;IAEhG,OAAO,IAAI,GAAG,WAAW,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE;IACrC,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,QAAQ,IAAI,EAAE;QACZ,KAAK,IAAI,GAAG,EAAE,IAAI,IAAI,IAAI,EAAE;YAC1B,UAAU,GAAG,CAAC,CAAC;YACf,MAAM;QAER,KAAK,IAAI,GAAG,EAAE,IAAI,IAAI,IAAI,GAAG;YAC3B,UAAU,GAAG,CAAC,CAAC;YACf,MAAM;QAER,KAAK,IAAI,GAAG,GAAG,IAAI,IAAI,IAAI,GAAG;YAC5B,UAAU,GAAG,CAAC,CAAC;YACf,MAAM;KACT;IAED,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface SafeDepositRentalState {
|
|
2
|
-
selectedRegion: string;
|
|
3
|
-
selectedBranch: string;
|
|
4
|
-
selectedCaseVolume: string;
|
|
5
|
-
selectedBoxSize: string;
|
|
6
|
-
days: number;
|
|
7
|
-
}
|
|
8
|
-
export declare type HandleFormStateChange = (state: Partial<SafeDepositRentalState>) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalTypes.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface WrapperSelectProps {
|
|
2
|
-
data: Record<string, any>[];
|
|
3
|
-
fieldLabel: string;
|
|
4
|
-
fieldValue?: string;
|
|
5
|
-
selected: string;
|
|
6
|
-
setSelected: (value: string) => void;
|
|
7
|
-
label: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const WrapperSelect: import("@redneckz/uni-jsx").UNIComponent<WrapperSelectProps, any, any>;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.WrapperSelect = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Select_1 = require("../../ui-kit/Select/Select");
|
|
6
|
-
exports.WrapperSelect = (0, uni_jsx_1.JSX)(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
|
|
7
|
-
const dataFormat = data
|
|
8
|
-
.filter(Boolean)
|
|
9
|
-
.map((_) => ({ key: _?.[fieldValue || fieldLabel], text: _?.[fieldLabel] }));
|
|
10
|
-
const selectedObj = dataFormat.find((_) => _.key === selected);
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(Select_1.Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=WrapperSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WrapperSelect.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/WrapperSelect.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AAavC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE;IACnF,MAAM,UAAU,GAAa,IAAI;SAC9B,MAAM,CAAC,OAAO,CAAC;SACf,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,UAAU,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/E,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC;IAE/D,OAAO,CACL,uBAAC,eAAM,IACL,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,IAAI,QAAQ,EACpC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,GAAe,CAAC,EAC/C,KAAK,EAAE,WAAW,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useGetRegions = void 0;
|
|
3
|
-
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
-
const apiBaseUrl_1 = require("../../api/apiBaseUrl");
|
|
5
|
-
const fetchJSON_1 = require("../../utils/fetchJSON");
|
|
6
|
-
const REGIONS_URL = `${apiBaseUrl_1.API_BASE_URI}/regions`;
|
|
7
|
-
const EMPTY_VALUE = [];
|
|
8
|
-
function useGetRegions() {
|
|
9
|
-
const { data } = (0, useAsyncData_1.useAsyncData)(REGIONS_URL, fetchJSON_1.fetchJSONUnsafe);
|
|
10
|
-
return data || EMPTY_VALUE;
|
|
11
|
-
}
|
|
12
|
-
exports.useGetRegions = useGetRegions;
|
|
13
|
-
//# sourceMappingURL=useGetRegions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGetRegions.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/useGetRegions.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAoD;AACpD,qDAAkF;AAElF,MAAM,WAAW,GAAG,GAAG,yBAAY,UAAU,CAAC;AAQ9C,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,SAAgB,aAAa;IAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAC,WAAW,EAAE,2BAAgD,CAAC,CAAC;IAE7F,OAAO,IAAI,IAAI,WAAW,CAAC;AAC7B,CAAC;AAJD,sCAIC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface Tariff {
|
|
2
|
-
tariffType?: string;
|
|
3
|
-
tariffValue?: number;
|
|
4
|
-
}
|
|
5
|
-
export interface SafeBoxCase {
|
|
6
|
-
safeBoxCasesSize?: string;
|
|
7
|
-
tariffs?: Tariff[];
|
|
8
|
-
}
|
|
9
|
-
export interface SafeBoxCaseVolume {
|
|
10
|
-
volume?: string;
|
|
11
|
-
safeBoxCases?: SafeBoxCase[];
|
|
12
|
-
}
|
|
13
|
-
export interface Branch {
|
|
14
|
-
branchCode?: string;
|
|
15
|
-
address?: string;
|
|
16
|
-
gpsLatitude?: number;
|
|
17
|
-
gpsLongitude?: number;
|
|
18
|
-
safeBoxCaseVolumes?: SafeBoxCaseVolume[];
|
|
19
|
-
}
|
|
20
|
-
export declare function useSafeBoxes(regionCode?: string): Branch[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useSafeBoxes = void 0;
|
|
3
|
-
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
-
const apiBaseUrl_1 = require("../../api/apiBaseUrl");
|
|
5
|
-
const fetchJSON_1 = require("../../utils/fetchJSON");
|
|
6
|
-
const SAFEBOXES_URL = `${apiBaseUrl_1.API_BASE_URI}/safeboxes`;
|
|
7
|
-
const EMPTY_VALUE = [];
|
|
8
|
-
function useSafeBoxes(regionCode) {
|
|
9
|
-
const { data } = (0, useAsyncData_1.useAsyncData)(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
10
|
-
return data || EMPTY_VALUE;
|
|
11
|
-
}
|
|
12
|
-
exports.useSafeBoxes = useSafeBoxes;
|
|
13
|
-
const fetchSafeBoxes = async (url) => {
|
|
14
|
-
const result = await (0, fetchJSON_1.fetchJSON)(url, { method: 'GET' });
|
|
15
|
-
return result || EMPTY_VALUE;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useSafeBoxes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSafeBoxes.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/useSafeBoxes.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAoD;AACpD,qDAAkD;AAyBlD,MAAM,aAAa,GAAG,GAAG,yBAAY,YAAY,CAAC;AAClD,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,SAAgB,YAAY,CAAC,UAAmB;IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,UAAU,CAAC,CAAC,CAAC,GAAG,aAAa,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,EAC/D,cAAc,CACf,CAAC;IAEF,OAAO,IAAI,IAAI,WAAW,CAAC;AAC7B,CAAC;AAPD,oCAOC;AAED,MAAM,cAAc,GAAG,KAAK,EAAE,GAAW,EAAqB,EAAE;IAC9D,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAS,EAAW,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEjE,OAAO,MAAM,IAAI,WAAW,CAAC;AAC/B,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BalloonPoints } from '../OfficesAtmsMap/YandexMapProps';
|
|
2
|
-
import { type Branch } from './useSafeBoxes';
|
|
3
|
-
export declare const getCoordinates: (data?: Branch | Branch[]) => BalloonPoints[];
|
|
4
|
-
export declare const getBranch: (branches: Branch[], selectedBranch: string) => Branch | undefined;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getBranch = exports.getCoordinates = void 0;
|
|
3
|
-
const getCoordinates = (data) => {
|
|
4
|
-
const getBalloon = () => void 0;
|
|
5
|
-
if (Array.isArray(data)) {
|
|
6
|
-
return data
|
|
7
|
-
.map((_) => ({
|
|
8
|
-
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)].filter(Boolean),
|
|
9
|
-
content: getBalloon(),
|
|
10
|
-
}))
|
|
11
|
-
.filter((_) => _.coords && _.coords.length === 2);
|
|
12
|
-
}
|
|
13
|
-
if (data?.gpsLatitude && data?.gpsLongitude) {
|
|
14
|
-
return [{ coords: [data.gpsLatitude, data.gpsLongitude] }];
|
|
15
|
-
}
|
|
16
|
-
return [];
|
|
17
|
-
};
|
|
18
|
-
exports.getCoordinates = getCoordinates;
|
|
19
|
-
const getBranch = (branches, selectedBranch) => branches.find((_) => _.branchCode === selectedBranch);
|
|
20
|
-
exports.getBranch = getBranch;
|
|
21
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/utils.ts"],"names":[],"mappings":";;AAGO,MAAM,cAAc,GAAG,CAAC,IAAwB,EAAmB,EAAE;IAC1E,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;IAEhC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvB,OAAO,IAAI;aACR,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACX,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;YACvE,OAAO,EAAE,UAAU,EAAE;SACtB,CAAC,CAAC;aACF,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;KACrD;IAED,IAAI,IAAI,EAAE,WAAW,IAAI,IAAI,EAAE,YAAY,EAAE;QAC3C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;KAC5D;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAjBW,QAAA,cAAc,kBAiBzB;AAEK,MAAM,SAAS,GAAG,CAAC,QAAkB,EAAE,cAAsB,EAAE,EAAE,CACtE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,cAAc,CAAC,CAAC;AAD3C,QAAA,SAAS,aACkC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegionsGrantSupportData.js","sourceRoot":"","sources":["../../../src/services/regionsGrantSupport/RegionsGrantSupportData.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type GracePeriodContent } from './GracePeriodContent';
|
|
3
|
-
export interface GracePeriodProps extends GracePeriodContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const GracePeriod: import("@redneckz/uni-jsx").UNIComponent<GracePeriodProps, any, any>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
5
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
6
|
-
import { style } from '../../utils/style.js';
|
|
7
|
-
import { Headline } from '../Headline/Headline.js';
|
|
8
|
-
export const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (_jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [_jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
9
|
-
const renderCalendar = (calendar) => {
|
|
10
|
-
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
11
|
-
const colSize = 100 / colCount;
|
|
12
|
-
const mappedCalendar = calendar
|
|
13
|
-
.filter((_) => _?.month?.length)
|
|
14
|
-
.map((_) => ({
|
|
15
|
-
..._,
|
|
16
|
-
// Condition lower is always true, TS does not understand this, notice filter above
|
|
17
|
-
flexBasis: `${_?.month?.length ? _.month.length * colSize : ''}%`,
|
|
18
|
-
}));
|
|
19
|
-
return (_jsxs("div", { className: "w-full flex flex-col justify-center gap-s", children: [_jsx("div", { className: "flex w-full text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), _jsx("div", { className: "flex gap-s w-full", children: mappedCalendar.map((_, ind) => (_jsxs("div", { className: "border-r border-main-divider last:border-r-0 space-y-s", style: { flexBasis: _.flexBasis }, children: [_jsx("div", { className: "flex gap-s", children: renderMonthImages(_) }), _jsxs("div", { className: "text-s", children: [_jsx(Text, { size: "text-s", font: "font-light", color: "text-primary-text", children: _.text }), "\u2009", _jsx(Text, { size: "text-s", font: "font-light", color: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
20
|
-
};
|
|
21
|
-
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (_jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
22
|
-
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (_jsx("div", { className: "h-52 border-r pr-s border-main-divider last:border-r-0", children: _jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
23
|
-
//# sourceMappingURL=GracePeriod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GracePeriod.js","sourceRoot":"","sources":["../../../src/components/GracePeriod/GracePeriod.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQhD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7D,MAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,cAAc,EAAC,OAAO,KAAK,IAAI,aACrF,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAC,GAAG,EAAC,UAAU,EAAE,IAAI,GAAI,EACzF,QAAQ,CAAC,CAAC,CA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,CAAC,GAAO,EACxD,eAAK,SAAS,EAAC,QAAQ,aACrB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,CAAC,CAAC,IAAI,GACF,YAEP,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,CAAC,CAAC,SAAS,GACP,IACH,KAbD,aAAa,GAAG,EAAE,CAcnB,CACP,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAA6B,EAAE,OAAe,EAAE,EAAE,CAC1E,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,cAA4B,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,GAAG,EAAE,YAC5D,CAAC,CAAC,IAAI,IADC,aAAa,CAAC,EAAE,CAEpB,CACP,CAAC,CAAC;AAEL,MAAM,iBAAiB,GAAG,CAAC,IAA6B,EAAE,EAAE,CAC1D,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACb,cAEE,SAAS,EAAC,wDAAwD,YAElE,KAAC,GAAG,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IAHnC,cAAc,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAI5B,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
3
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
export declare type Month = ImageContent & {
|
|
5
|
-
/** @title Название месяца */
|
|
6
|
-
text?: string;
|
|
7
|
-
};
|
|
8
|
-
export interface CalendarItem {
|
|
9
|
-
/** @title Месяцы */
|
|
10
|
-
month?: Month[];
|
|
11
|
-
/** @title Основной текст */
|
|
12
|
-
text?: string;
|
|
13
|
-
/** @title Вспомогательный текст */
|
|
14
|
-
greenText?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @title Льготный период
|
|
18
|
-
*/
|
|
19
|
-
export declare type GracePeriodContent = UniBlockContent & HeadlineCommonProps & {
|
|
20
|
-
/** @title Периоды */
|
|
21
|
-
calendar?: CalendarItem[];
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GracePeriodContent.js","sourceRoot":"","sources":["../../../src/components/GracePeriod/GracePeriodContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type MortgageFiltrationContent } from './MortgageFiltrationContent';
|
|
3
|
-
interface MortgageFiltrationProps extends MortgageFiltrationContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const MortgageFiltration: import("../../UniBlock/UniBlock").UniBlockComponent<MortgageFiltrationProps>;
|
|
6
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { FilteredBlocks } from '../../ui-kit/BaseFiltration/FilteredBlocks.js';
|
|
4
|
-
import { FiltrationForm } from '../../ui-kit/BaseFiltration/FiltrationForm.js';
|
|
5
|
-
import { useFiltrationForm } from '../../ui-kit/BaseFiltration/useFiltrationForm.js';
|
|
6
|
-
import { useHotFilters } from '../../ui-kit/BaseFiltration/useHotFilters.js';
|
|
7
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
8
|
-
import { TabsControl } from '../../ui-kit/TabsControl/TabsControl.js';
|
|
9
|
-
import { UniBlock } from '../../UniBlock/UniBlock.js';
|
|
10
|
-
import { style } from '../../utils/style.js';
|
|
11
|
-
const initialFiltrationState = {
|
|
12
|
-
categories: [],
|
|
13
|
-
extraOptions: [],
|
|
14
|
-
propertyType: [],
|
|
15
|
-
stage: [],
|
|
16
|
-
};
|
|
17
|
-
export const MortgageFiltration = UniBlock(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
18
|
-
const [filtrationState, { blocksToRender }, { field, reset, update: replaceFiltrationState }] = useFiltrationForm(initialFiltrationState, {
|
|
19
|
-
block: rest.block,
|
|
20
|
-
page: rest.options?.page,
|
|
21
|
-
});
|
|
22
|
-
const handleFiltrationStateChange = useCallback((_ = initialFiltrationState) => replaceFiltrationState(_), []);
|
|
23
|
-
const tabsControlProps = useHotFilters({
|
|
24
|
-
hotFilters,
|
|
25
|
-
filtrationState,
|
|
26
|
-
blocks: rest.block?.blocks,
|
|
27
|
-
onFiltrationStateChange: handleFiltrationStateChange,
|
|
28
|
-
});
|
|
29
|
-
return (_jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [_jsx(TabsControl, { ...tabsControlProps }), _jsx(FiltrationForm, { filtrationSchema: filtrationSchema, resetButton: resetButton, field: field, reset: reset }), _jsx(FilteredBlocks, { blocksToRender: blocksToRender, ...rest })] }));
|
|
30
|
-
}, {
|
|
31
|
-
childrenTypes: ['ProductBlock'],
|
|
32
|
-
childSchema: (content) => content?.filtrationSchema || {},
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=MortgageFiltration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MortgageFiltration.js","sourceRoot":"","sources":["../../../src/components/MortgageFiltration/MortgageFiltration.tsx"],"names":[],"mappings":";AAAA,O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